(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let n=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",f=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),f&&"object"==typeof f&&(f=String(n.urlQueryToSearchParams(f)));let c=e.search||f&&`?${f}`||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${o}${u}${a}${c}${s}`}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(71645);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(18967),i=e.r(52817);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{default:function(){return g},useLinkStatus:function(){return w}});let n=e.r(90809),i=e.r(43476),o=n._(e.r(71645)),a=e.r(95057),s=e.r(8372),f=e.r(18581),u=e.r(18967),c=e.r(5550);e.r(33525);let l=e.r(88540),d=e.r(91949),h=e.r(73668),p=e.r(9396);function b(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function m(t,r,n,i,a,s,f){if("u">typeof window){let{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&b(t)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:c}=e.r(99781);o.default.startTransition(()=>{c(r,i?"replace":"push",!1===a?l.ScrollBehavior.NoScroll:l.ScrollBehavior.Default,n.current,f)})}}function y(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){let t,r,n,[a,l]=(0,o.useOptimistic)(d.IDLE_LINK_STATUS),h=(0,o.useRef)(null),{href:b,as:g,children:w,prefetch:x=null,passHref:E,replace:S,shallow:M,scroll:A,onClick:R,onMouseEnter:k,onTouchStart:I,legacyBehavior:j=!1,onNavigate:O,transitionTypes:T,ref:P,unstable_dynamicOnHover:N,...L}=e;t=w,j&&("string"==typeof t||"number"==typeof t)&&(t=(0,i.jsx)("a",{children:t}));let B=o.default.useContext(s.AppRouterContext),C=!1!==x,D=!1!==x?_(x):p.FetchStrategy.PPR,U=y(g||b);if(j){if(t?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});r=o.default.Children.only(t)}let $=j?r&&"object"==typeof r&&r.ref:P,q=o.default.useCallback(e=>(null!==B&&(h.current=(0,d.mountLinkInstance)(e,U,B,D,C,l)),()=>{h.current&&((0,d.unmountLinkForCurrentNavigation)(h.current),h.current=null),(0,d.unmountPrefetchableInstance)(e)}),[C,U,B,D,l]),z={ref:(0,f.useMergedRef)(q,$),onClick(e){j||"function"!=typeof R||R(e),j&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),!B||e.defaultPrevented||m(e,U,h,S,A,O,T)},onMouseEnter(e){if(j||"function"!=typeof k||k(e),j&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),!B||!C)return;let t=!0===N;(0,d.onNavigationIntent)(e.currentTarget,t)},onTouchStart:function(e){if(j||"function"!=typeof I||I(e),j&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),!B||!C)return;let t=!0===N;(0,d.onNavigationIntent)(e.currentTarget,t)}};return(0,u.isAbsoluteUrl)(U)?z.href=U:j&&!E&&("a"!==r.type||"href"in r.props)||(z.href=(0,c.addBasePath)(U)),n=j?o.default.cloneElement(r,z):(0,i.jsx)("a",{...L,...z,children:t}),(0,i.jsx)(v.Provider,{value:a,children:n})}e.r(84508);let v=(0,o.createContext)(d.IDLE_LINK_STATUS),w=()=>(0,o.useContext)(v);function _(e){return!0===e?p.FetchStrategy.Full:p.FetchStrategy.PPR}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},98879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(71645),i="u"{}:n.useLayoutEffect,a=i?()=>{}:n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),s()),o(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),o(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},25633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{default:function(){return p},defaultHead:function(){return u}});let n=e.r(55682),i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),s=n._(e.r(98879)),f=e.r(42732);function u(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(33525);let l=["name","httpEquiv","charSet","itemProp"];function d(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=l.length;e{let r=e.key||t;return a.default.cloneElement(e,{key:r})})}let p=function({children:e}){let t=(0,a.useContext)(f.HeadManagerContext);return(0,o.jsx)(s.default,{reduceComponentsToState:h,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88143,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}){let s=20,f=r?40*r:e,u=i?40*i:t,c=f&&u?`viewBox='0 0 ${f} ${u}'`:"",l=c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='${s}'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='${s}'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l}' style='filter: url(%23b);' href="http://approjects.co.za/?big=${o}"/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},87690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return i}});let n=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},8927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return h}}),e.r(33525);let n=e.r(43369),i=e.r(88143),o=e.r(87690),a=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function f(e){return void 0!==e.src}function u(e){return!!e&&"object"==typeof e&&(s(e)||f(e))}function c(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}function d({config:e,src:t,unoptimized:r,width:i,quality:o,sizes:a,loader:s}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:f,kind:u}=l(e,i,a),c=f.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:f.map((r,n)=>`${s({config:e,src:t,quality:o,width:r})} ${"w"===u?r:n+1}${u}`).join(", "),src:s({config:e,src:t,quality:o,width:f[c]})}}function h({src:e,sizes:t,unoptimized:r=!1,priority:n=!1,preload:f=!1,loading:l,className:p,quality:b,width:m,height:y,fill:g=!1,style:v,overrideSrc:w,onLoad:_,onLoadingComplete:x,placeholder:E="empty",blurDataURL:S,fetchPriority:M,decoding:A="async",layout:R,objectFit:k,objectPosition:I,lazyBoundary:j,lazyRoot:O,...T},P){let N,L,B,{imgConf:C,showAltText:D,blurComplete:U,defaultLoader:$}=P,q=C||o.imageConfigDefault;if("allSizes"in q)N=q;else{let e=[...q.deviceSizes,...q.imageSizes].sort((e,t)=>e-t),t=q.deviceSizes.sort((e,t)=>e-t),r=q.qualities?.sort((e,t)=>e-t);N={...q,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===$)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=T.loader||$;delete T.loader,delete T.srcSet;let F="__next_img_default"in z;if(F){if("custom"===N.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=z;z=t=>{let{config:r,...n}=t;return e(n)}}if(R){"fill"===R&&(g=!0);let e={responsive:"100vw",fill:"100vw"},r={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];r&&(v={...v,...r});let n=e[R];n&&!t&&(t=n)}let H="",K=c(m),G=c(y);if(u(e)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(L=t.blurWidth,B=t.blurHeight,S=S||t.blurDataURL,H=t.src,!g)if(K||G){if(K&&!G){let e=K/t.width;G=Math.round(t.height*e)}else if(!K&&G){let e=G/t.height;K=Math.round(t.width*e)}}else K=t.width,G=t.height}let W=!n&&!f&&("lazy"===l||void 0===l);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,W=!1),N.unoptimized&&(r=!0),F&&!N.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let V=c(b),Y=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:k,objectPosition:I}:{},D?{}:{color:"transparent"},v),X=U||"empty"===E?null:"blur"===E?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:K,heightInt:G,blurWidth:L,blurHeight:B,blurDataURL:S||"",objectFit:Y.objectFit})}")`:`url("${E}")`,J=a.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,Z=X?{backgroundSize:J,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Q=d({config:N,src:e,unoptimized:r,width:K,quality:V,sizes:t,loader:z}),ee=W?"lazy":l;return{props:{...T,loading:ee,fetchPriority:M,width:K,height:G,decoding:A,className:p,style:{...Y,...Z},sizes:Q.sizes,srcSet:Q.srcSet,src:w||Q.src},meta:{unoptimized:r,preload:f||n,placeholder:E,fill:g}}}},18556,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=e.r(55682)._(e.r(71645)),i=e.r(87690),o=n.default.createContext(i.imageConfigDefault)},65856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(70965),i=e.r(43369);function o({config:e,src:t,width:r,quality:a}){let s=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),n=r.get("dpl");if(n){s=n,r.delete("dpl");let i=r.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let f=(0,n.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${f}${t.startsWith("/")&&s?`&dpl=${s}`:""}`}o.__next_img_default=!0;let a=o},5500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return w}});let n=e.r(55682),i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),s=n._(e.r(74080)),f=n._(e.r(25633)),u=e.r(8927),c=e.r(87690),l=e.r(18556);e.r(33525);let d=e.r(65856),h=n._(e.r(1948)),p=e.r(18581),b={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,r,n,i,o,a){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"u"{let R=(0,a.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&m(e,l,g,v,w,h,x))},[e,l,g,v,w,S,h,x]),k=(0,p.useMergedRef)(A,R);return(0,o.jsx)("img",{...M,...y(c),loading:d,width:i,height:n,decoding:s,"data-nimg":b?"fill":"1",className:f,style:u,sizes:r,srcSet:t,src:e,ref:k,onLoad:e=>{m(e.currentTarget,l,g,v,w,h,x)},onError:e=>{_(!0),"empty"!==l&&w(!0),S&&S(e)}})});function v({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,r),null):(0,o.jsx)(f.default,{children:(0,o.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,a.forwardRef)((e,t)=>{let r=!(0,a.useContext)(d.RouterContext),n=(0,a.useContext)(l.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=b||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"u"{p.current=s},[s]);let m=(0,a.useRef)(f);(0,a.useEffect)(()=>{m.current=f},[f]);let[y,w]=(0,a.useState)(!1),[_,x]=(0,a.useState)(!1),{props:E,meta:S}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:y,showAltText:_});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{...E,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:w,setShowAltText:x,sizesInput:e.sizes,ref:t}),S.preload?(0,o.jsx)(v,{isAppRouter:r,imgAttributes:E}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88674,e=>{"use strict";function t(e){if(e)return e.startsWith("//")?`https:${e}`:e}function r(e){return!!e&&"object"==typeof e&&"fields"in e}function n(e){return e?r(e)?e.fields:e:null}function i(e){return e&&r(e)?e.fields:null}e.s(["normalizeUrl",0,t,"resolveBadge",0,n,"resolveHeadingFields",0,i])},6510,27344,e=>{"use strict";var t=e.i(47167);let r=new Set(["images","downloads","assets","videos"]);function n(e){return/\/api\/assets\/(images|downloads|assets|videos)\//.test(e)}function i(e){return e.trim().replace(/^https\/\//i,"https://").replace(/^http\/\//i,"http://")}function o(e){let t=i(e);try{if(t.startsWith("//"))return new URL(`https:${t}`);if(/^https?:\/\//i.test(t))return new URL(t);return new URL(t,"https://ctfassets.net")}catch{return null}}function a(e){let t=e?.trim();if(!t)return null;try{if(/^https?:\/\//i.test(t))return new URL(t);return new URL(`https://${t}`)}catch{return null}}function s(e){let t=e.split(".")[0]?.toLowerCase();return r.has(t)?t:"assets"}function f(e,t){if(!e||n(e))return e;let r=o(e);if(!r)return e;let i=a(t);if(!i)return e;let f=s(r.hostname);return r.hostname=i.hostname,r.port=i.port||"",r.protocol="localhost"===i.hostname||"127.0.0.1"===i.hostname?"http:":i.protocol||"https:",r.pathname=`/api/assets/${f}${r.pathname}`,r.toString()}var u=t;function c(){return void 0===u.default?{enabled:!1,assetServiceHostname:"assets.example.com"}:{enabled:"true"===u.default.env.CONTENTFUL_EMBARGOED_ASSETS_ENABLED,assetServiceHostname:u.default.env.APP_URL||"assets.example.com"}}e.s(["getEmbargoedAssetsConfig",0,c],27344);let l=(()=>{try{return JSON.parse(t.default.env.EMBARGOED_ASSETS||"{}")}catch{return{}}})(),d=t.default.env.APP_URL;function h(e){return e?l.embargoedAssetsEnabled?f(e,d):e:""}function p(e,t){if(!e)return"";let r=new URL(e);for(let[e,n]of Object.entries(t))r.searchParams.append(e,String(n));return r.toString()}function b(e,t){let r=h(e);return t&&0!==Object.keys(t).length?p(r,t):r}function m(e){if(!e)return!1;try{return new URL(e,"https://ctfassets.net").hostname.includes("secure.ctfassets.net")}catch{return!1}}function y(e){let t=c();if(!e||!t.enabled)return!1;try{return new URL(e).hostname===t.assetServiceHostname}catch{return!1}}e.s(["addImageParams",0,p,"isEmbargoedAssetUrl",0,m,"isSecuredAssetUrl",0,y,"secureAssetUrl",0,h,"secureAssetUrlWithParams",0,b],6510)},93346,(e,t,r)=>{t.exports={text:{heading:{h1:"ms-h1",h2:"ms-h2",h3:"ms-h3",h4:"ms-h4",h5:"ms-h5",h6:"ms-h6"},body:"ms-body",muted:"text-ms-muted text-sm",link:"text-ms-blue hover:text-ms-blue-hover underline"},layout:{container:"ms-container",section:"py-12 md:py-16",card:"rounded-lg border border-gray-200 bg-white shadow-sm",cards:"bg-neutral-primary-soft block max-w-sm border border-default rounded-base shadow-xs",cardPadding:"p-4 sm:p-6 lg:p-8",stack:{row:"flex flex-row gap-2",rowLg:"flex flex-row gap-4",col:"flex flex-col gap-2",colLg:"flex flex-col gap-4"},grid:"grid grid-cols-12 gap-6",articleGrid:"ms-article-grid",articleContent:"ms-article-content",articleSocial:"ms-article-social",articleBody:"ms-article-body"},spacing:{none:"m-0 p-0",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8",margin:{xs:"m-1",sm:"m-2",md:"m-4",lg:"m-6",xl:"m-8"},sectionY:"py-12 md:py-16",contentGap:"space-y-6",cardGap:"gap-6"},border:{base:"border border-gray-200",subtle:"border border-gray-100",strong:"border border-gray-300",radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},default:"border border-ms-border",light:"border border-ms-gray",rounded:"rounded-lg"},shadow:{sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl",card:"shadow-sm hover:shadow-md transition-shadow",elevated:"shadow-lg"},button:{base:"inline-flex items-center justify-center rounded-md font-medium focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",color:{primary:"bg-ms-blue hover:bg-ms-blue-hover text-white focus-visible:ring-ms-blue",secondary:"bg-ms-blue hover:bg-ms-blue-hover text-white focus-visible:ring-ms-blue",success:"bg-green-500 hover:bg-green-600 text-white focus-visible:ring-green-500",warning:"bg-yellow-500 hover:bg-yellow-600 text-black focus-visible:ring-yellow-500",danger:"bg-rose-500 hover:bg-rose-600 text-white focus-visible:ring-rose-500",ghost:"bg-transparent hover:bg-gray-100 text-gray-900 focus-visible:ring-gray-300",link:"bg-transparent text-ms-blue hover:text-ms-blue-hover hover:underline focus-visible:ring-ms-blue"},outline:{primary:"border border-ms-blue text-ms-blue hover:bg-blue-50 focus-visible:ring-ms-blue",secondary:"border border-ms-blue text-ms-blue hover:bg-blue-50 focus-visible:ring-ms-blue",neutral:"border border-gray-300 text-gray-800 hover:bg-gray-50 focus-visible:ring-gray-400"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base",xl:"px-8 py-3.5 text-lg"},iconOnly:{sm:"p-2",md:"p-2.5",lg:"p-3"}},form:{input:"w-full rounded-md border border-ms-border px-3 py-2 text-sm focus:border-ms-blue focus:ring-1 focus:ring-ms-blue",label:"block text-sm font-medium text-700 mb-1",helperText:"text-sm text-ms-muted mt-1",errorText:"mt-1 text-xs text-rose-500"}}},96463,e=>{"use strict";var t=e.i(71645);let r=e.i(93346).default.text.heading,n=({fields:e,className:n})=>{let{level:i="2",text:o="",visualLevel:a}=e;if(!o)return null;let s=i?`h${i}`:"h2",f=a?r[`h${a}`]:r[s];return t.default.createElement(s,{className:n?`${f} ${n}`:f},o)};e.s(["default",0,n])},94909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{default:function(){return f},getImageProps:function(){return s}});let n=e.r(55682),i=e.r(8927),o=e.r(5500),a=n._(e.r(1948));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let f=o.Image},57688,(e,t,r)=>{t.exports=e.r(94909)},56438,47459,e=>{"use strict";var t=e.i(43476),r=e.i(88674),n=e.i(6510),i=e.i(93346);function o(e){let t=e?.fields?.images?.[0]?.fields?.file?.url;if(!t||"string"!=typeof t)return null;let i=(0,r.normalizeUrl)(t);return i?(0,n.secureAssetUrlWithParams)(i):null}let a=({cta:e,forceInline:r=!1,onClick:n})=>e&&0!==e.length?(e.every(e=>e.fields?.type==="Breadcrumb"),(0,t.jsx)(t.Fragment,{children:e.map((e,a)=>{if(!e?.fields)return null;let{link:s="#",type:f="Button filled",openInNewTab:u=!1,ariaLabel:c,dataBiEcn:l,dataBiEhn:d,dataBiHn:h,dataModal:p,text:b,classes:m="",icon:y}=e.fields,g="CTA with Icon"===f||!!y,v=!g&&"Button filled"===f,w="Button outline"===f,_="CTA with Chevron"===f,x="Inline Link"===f||r,E=m;v?E=`inline-block ${i.default.button.base} ${i.default.button.color.secondary} ${i.default.button.size.md} ${m}`:w?E=`${i.default.button.base} ${i.default.button.outline.secondary} ${i.default.button.size.md} ${m}`:_&&(E="group inline-flex items-center gap-x-1.5 text-sm font-semibold leading-snug text-ms-blue no-underline lg:text-base");let S=b;if(g){let e=o(y);S=e?(0,t.jsx)("img",{src:e,alt:"",className:"w-5 h-5","aria-hidden":"true"}):(0,t.jsx)("span",{className:"w-5 h-5",children:(b||"?").charAt(0)})}else _?S=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"break-keep no-underline decoration-ms-blue underline-offset-2 transition-[text-decoration-color] duration-300 ease-out group-hover:underline",children:b}),(0,t.jsx)("span",{className:"shrink-0 text-3xl font-semibold leading-none text-ms-blue transition-transform duration-300 ease-out group-hover:translate-x-1 mb-1","aria-hidden":"true",children:"›"})]}):x&&(S=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{children:b})}));return(0,t.jsx)("a",{href:s,target:u?"_blank":"_self","aria-label":c||b,"data-bi-ecn":l||b,"data-bi-ehn":d||b,"data-bi-hn":h||b,"data-modal":p||b,rel:u?"noopener noreferrer":void 0,className:E||void 0,onClick:n,children:S},a)})})):null;e.s(["default",0,a],56438);var s=t,f=e.i(57688),u=r,c=n;let l=e=>!!e&&"videos"in e,d=e=>{if(!e?.fields?.file?.url)return null;let t=(0,u.normalizeUrl)(e.fields.file.url)||e.fields.file.url;return{src:(0,c.secureAssetUrlWithParams)(t),width:e.fields.file.details?.image?.width||1200,height:e.fields.file.details?.image?.height||600}},h=({fields:e})=>{let t,r;if(!e)return null;let n="",i="",o="No Round",a="";if(l(e)){let r=e.posterImage;if(!r?.fields?.file?.url)return null;t=r,n=r.fields.description||r.fields.title||"",o=e.style||"No Round"}else{let{images:s=[],altText:f="",caption:u="",style:c="No Round",inlineStyles:l=""}=e;t=s[0],r=s[1]??t,n=f,i=u,o=c,a=l}let u=d(t),c=d(r)??u;if(!u)return null;let h="media-image",p=o.startsWith("More Rounded")?"rounded-2xl":o.startsWith("Rounded")?"rounded-lg":"",b=!!c&&c.src!==u.src;return(0,s.jsxs)("figure",{className:`h-full overflow-hidden ${h} ${p}`,style:a?JSON.parse(a):{margin:0},children:[b&&c&&(0,s.jsx)(f.default,{src:c.src,alt:n||"Image",width:c.width,height:c.height,loading:"lazy",unoptimized:!0,className:"w-full h-full object-cover block md:hidden"}),(0,s.jsx)(f.default,{src:u.src,alt:n||"Image",width:u.width,height:u.height,loading:"lazy",unoptimized:!0,className:`w-full h-full object-cover ${b?"hidden md:block":"block"}`}),i&&(0,s.jsx)("figcaption",{className:"text-sm text-ms-600 mt-1",children:i})]})};e.s(["default",0,h],47459)},27347,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=null;function i(){return n||(n=new Promise((e,t)=>{if(window.ump)return void e();let r=document.createElement("script");r.type="module",r.src="https://www.microsoft.com/videoplayer/ump.mjs",r.onload=()=>{let r=0,i=setInterval(()=>{r++,window.ump?(clearInterval(i),e()):r>=20&&(clearInterval(i),n=null,t(Error("UMP player: window.ump not available after script load")))},200)},r.onerror=()=>{n=null,t(Error("Failed to load UMP player script"))},document.head.appendChild(r)}))}function o({videoUrl:e,posterUrl:n,title:a="",description:s="",ariaLabel:f="",ttmlUrl:u="",transcriptUrl:c="",isAutoPlay:l=!1,componentName:d="umpvideo",borderRadius:h=""}){let p=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let t=p.current;if(!t)return;let r=!1;return i().then(()=>{if(r||!t)return;let i=window.ump;if(!i)return;t.innerHTML="";let o=document.createElement("universal-media-player");t.appendChild(o);let f=document.documentElement.lang?.toLowerCase()||"en-us";i(o,{partnerName:a,autoplay:l,title:a,description:s,language:f,reporting:!0,poster:n,sources:[{src:e,type:"video/mp4",quality:"HQ"}],ccFiles:u?[{url:u,locale:f,ccType:"TTML"}]:[],downloadableFiles:c?[{url:c,locale:f,mediaType:"transcript"}]:[]});let d=()=>{let e=o.shadowRoot;if(!e)return!1;let t=document.createElement("style");return t.textContent="video { object-fit: cover !important; object-position: top !important; } img { object-position: top !important; } :host { background: transparent !important; } .f-video-player { background: transparent !important; }",e.appendChild(t),!0};if(!d()){let e=0,t=setInterval(()=>{e++,(d()||e>=20)&&clearInterval(t)},100)}}).catch(e=>{console.error("UMP player failed to load:",e)}),()=>{r=!0,t&&(t.innerHTML="")}},[e,n,a,s,u,c,l]),(0,t.jsx)("figure",{className:`w-full bg-transparent overflow-hidden ${h}`,children:(0,t.jsx)("div",{ref:p,className:"ump-player-video bg-transparent","data-componentname":d,"data-video-title":a,"data-video-description":s,"data-video-arialabel":f,"data-video-poster":n||"","data-video-src":e,"data-video-ttml":u,"data-video-transcript":c,"data-auto-play":l?"true":""})})}e.s(["default",0,o])},79712,e=>{"use strict";var t=e.i(6510);function r(){return{secureUrl:t.secureAssetUrl,secureUrlWithParams:t.secureAssetUrlWithParams,addParams:t.addImageParams,isEmbargoed:t.isEmbargoedAssetUrl,isSecured:t.isSecuredAssetUrl}}let n=r;e.s(["useAssetUrl",0,n,"useSecureAsset",0,r])},67034,(e,t,r)=>{!function(){var e={675:function(e,t){"use strict";t.byteLength=u,t.toByteArray=l,t.fromByteArray=p;for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function u(e){var t=f(e),r=t[0],n=t[1];return(r+n)*3/4-n}function c(e,t,r){return(t+r)*3/4-r}function l(e){var t,r,o=f(e),a=o[0],s=o[1],u=new i(c(e,a,s)),l=0,d=s>0?a-4:a;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;if?f:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50;var a=0x7fffffff;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function f(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return b(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return m(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);var i=y(e);if(i)return i;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e,t,r){return(l(e),e<=0)?f(e):void 0!==t?"string"==typeof r?f(e).fill(t,r):f(e).fill(t):f(e)}function h(e){return l(e),f(e<0?0:0|g(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|w(e,t),n=f(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function b(e){for(var t=e.length<0?0:0|g(e.length),r=f(t),n=0;n=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),u.alloc(+e)}function w(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function _(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function E(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),Z(r*=1)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return S(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){var o,a=1,s=e.length,f=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,f/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-f),o=r;o>=0;o--){for(var l=!0,d=0;di&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+l<=r)switch(l){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(f=(31&u)<<6|63&o)>127&&(c=f);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(f=(15&u)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(f=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(c=f)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return N(n)}t.kMaxLength=0x7fffffff,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return d(e,t,r)},u.allocUnsafe=function(e){return h(e)},u.allocUnsafeSlow=function(e){return h(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);ir&&(e+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),f=this.slice(n,i),c=e.slice(t,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return M(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":return R(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return I(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function N(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw RangeError("Trying to access beyond buffer length")}function $(e,t,r,n,i,o){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function q(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function z(e,t,r,n,o){return t*=1,r>>>=0,o||q(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,o){return t*=1,r>>>=0,o||q(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return(e>>>=0,t||U(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||U(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||U(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||U(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||U(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;$(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;$(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);$(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>>=0,!n){var i=Math.pow(2,8*r-1);$(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||$(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function W(e){for(var t=[],r=0;r>8,i.push(r%256),i.push(n);return i}function Y(e){return n.toByteArray(K(e))}function X(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,f=(1<>1,c=-7,l=r?i-1:0,d=r?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+l],l+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+l],l+=d,c-=8);if(0===o)o=1-u;else{if(o===f)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,f,u=8*o-i-1,c=(1<>1,d=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,b=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+l>=1?t+=d/f:t+=d*Math.pow(2,1-l),t*f>=2&&(a++,f/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(t*f-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*b}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},a=!0;try{e[t](o,o.exports,n),a=!1}finally{a&&delete r[t]}return o.exports}n.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=n(72)}()},42524,(e,t,r)=>{var n=e.r(67034),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},30662,(e,t,r)=>{!function(){"use strict";var e={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=g,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function f(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(f(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,i(c)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?y(i):b(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(e,t){for(var r=Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var f=o[e];if(void 0===f)return!1;if("function"==typeof f)n(f,this,t);else for(var u=f.length,c=b(f,u),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():m(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},a=!0;try{e[t](o,o.exports,n),a=!1}finally{a&&delete r[t]}return o.exports}n.ab="/ROOT/node_modules/next/dist/compiled/events/",t.exports=n(864)}()},77398,(e,t,r)=>{var n=e.i(67034),i=e.i(47167);!function(){var r={8992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;otypeof Reflect&&Reflect&&Reflect.apply},516:function(e,t,r){"use strict";var n=r(3197),i=r(9042),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},9042:function(e,t,r){"use strict";var n=r(3143),i=r(446),o=r(7152),a=r(9905);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},819:function(e,t,r){"use strict";var n=r(446),i=r(5182),o=r(8202),a=r(3990);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],l=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&l?l.configurable:!u,enumerable:null===s&&l?l.enumerable:!s,value:r,writable:null===f&&l?l.writable:!f});else if(!c&&(s||f||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},6211:function(e,t,r){"use strict";var n,i=r(7152),o=r(3990);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,f=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof f&&function(e){return f(null==e?e:s(e))}},446:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},7181:function(e){"use strict";e.exports=EvalError},1545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},2803:function(e){"use strict";e.exports=ReferenceError},5182:function(e){"use strict";e.exports=SyntaxError},8202:function(e){"use strict";e.exports=TypeError},3284:function(e){"use strict";e.exports=URIError},2811:function(e){"use strict";e.exports=Object},6144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;atypeof Uint8Array&&A?A(Uint8Array):n,P={__proto__:null,"%AggregateError%":"u"typeof Map&&M&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"typeof Set&&M&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(e),n=r.length>0?r[0]:"",i=W("%"+n+"%",t),o=i.name,a=i.value,s=!1,f=i.alias;f&&(n=f[0],$(r,U([0,1],f)));for(var l=1,d=!0;l=r.length){var m=_(a,h);a=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[h]}else d=D(a,h),a=a[h];d&&!s&&(P[o]=a)}}return a}},7823:function(e,t,r){"use strict";e.exports=r(2811).getPrototypeOf||null},7904:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},699:function(e,t,r){"use strict";var n=r(7904),i=r(7823),o=r(6211);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},4596:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},3990:function(e,t,r){"use strict";var n=r(4596);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},7122:function(e,t,r){"use strict";var n=r(446),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},9942:function(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,i=r(3773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},3773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},4871:function(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,i=r(5960);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5960:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},3270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(1212).call(n,i)},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},3391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(t,r,n){"use strict";var i=n(6144),o=n(1349),a=n(516),s=a("Object.prototype.toString"),f=n(9942)()&&"symbol"==typeof Symbol.toStringTag,u=o(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1)}},7173:function(e){"use strict";e.exports=Math.abs},847:function(e){"use strict";e.exports=Math.floor},219:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},2916:function(e){"use strict";e.exports=Math.max},9882:function(e){"use strict";e.exports=Math.min},3291:function(e){"use strict";e.exports=Math.pow},553:function(e){"use strict";e.exports=Math.round},8629:function(e,t,r){"use strict";var n=r(219);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},3143:function(e,t,r){"use strict";var n=r(3197),i=r(819),o=r(7122)(),a=r(3990),s=r(8202),f=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||f(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},2369:function(e){e.exports=function(e){return e instanceof n.Buffer}},5584:function(e,t,r){"use strict";var n=r(5157),i=r(3391),o=r(1490),a=r(994);function s(e){return e.call.bind(e)}var f="u">typeof BigInt,u="u">typeof Symbol,c=s(Object.prototype.toString),l=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(f)var p=s(BigInt.prototype.valueOf);if(u)var b=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function _(e){return"[object ArrayBuffer]"===c(e)}function x(e){return!("u"typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="u">typeof Map&&y(new Map),t.isMap=function(e){return!("u"typeof Set&&g(new Set),t.isSet=function(e){return!("u"typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return!("u"typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="u">typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=x,E.working="u">typeof ArrayBuffer&&"u">typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var M="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function R(e){return void 0!==M&&(void 0===A.working&&(A.working=A(new M)),A.working?A(e):e instanceof M)}function k(e){return m(e,l)}function I(e){return m(e,d)}function j(e){return m(e,h)}function O(e){return f&&m(e,p)}function T(e){return u&&m(e,b)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=k,t.isStringObject=I,t.isBooleanObject=j,t.isBigIntObject=O,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return k(e)||I(e)||j(e)||O(e)||T(e)},t.isAnyArrayBuffer=function(e){return"u">typeof Uint8Array&&(x(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},8177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),h(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function l(e,t){return e}function d(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return E(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),f=d(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),k(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return b(r);if(0===s.length){if(I(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(R(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return b(r)}var c="",l=!1,w=["{","}"];if(v(r)&&(l=!0,w=["[","]"]),I(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(c=" "+RegExp.prototype.toString.call(r)),R(r)&&(c=" "+Date.prototype.toUTCString.call(r)),k(r)&&(c=" "+b(r)),0===s.length&&(!l||0==r.length))return w[0]+c+w[1];if(n<0)if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=l?m(e,r,n,f,s):s.map(function(t){return y(e,r,n,f,t,l)}),e.seen.pop(),g(i,c,w)}function p(e,t){if(S(t))return e.stylize("undefined","undefined");if(E(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return x(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function b(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,i){for(var o=[],a=0,s=t.length;ae.seen.indexOf(f.value)?(s=_(r)?h(e,f.value,null):h(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),S(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function _(e){return null===e}function x(e){return"number"==typeof e}function E(e){return"string"==typeof e}function S(e){return void 0===e}function M(e){return A(e)&&"[object RegExp]"===j(e)}function A(e){return"object"==typeof e&&null!==e}function R(e){return A(e)&&"[object Date]"===j(e)}function k(e){return A(e)&&("[object Error]"===j(e)||e instanceof Error)}function I(e){return"function"==typeof e}function j(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=i.default.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5584),t.isArray=v,t.isBoolean=w,t.isNull=_,t.isNullOrUndefined=function(e){return null==e},t.isNumber=x,t.isString=E,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=M,t.types.isRegExp=M,t.isObject=A,t.isDate=R,t.types.isDate=R,t.isError=k,t.types.isNativeError=k,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(2369);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=r(3782),t._extend=function(e,t){if(!t||!A(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var L="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(L&&e[L]){var t=e[L];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,L,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o{var n=e.i(47167);!function(){var r={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,f;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))f=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";f=`The "${e}" ${r} ${s} ${n(t,"type")}`}return f+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=r(709),a=r(337);r(782)(c,o);for(var s=i(a.prototype),f=0;f0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?M(e,new S):O(e,s,t,!0);else if(s.ended)M(e,new x);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):U(e,s)):O(e,s,t,!1)}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length=P?e=P:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function B(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}}function C(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.default.nextTick(D,e))}function D(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function U(e,t){t.readingMore||(t.readingMore=!0,n.default.nextTick($,e,t))}function $(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function F(e){a("readable nexttick read 0"),e.read(0)}function H(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.default.nextTick(K,e,t))}function K(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function V(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.default.nextTick(Y,t,e))}function Y(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function X(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?V(this):C(this),null;if(0===(e=L(e,r))&&r.ended)return 0===r.length&&V(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e0?W(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&V(this)),null!==t&&this.emit("data",t),t},I.prototype._read=function(e){M(this,new E("_read()"))},I.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,a("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===n.default.stdout||e===n.default.stderr?y:f;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function f(){a("onend"),e.end()}i.endEmitted?n.default.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=q(r);e.on("drain",u);var l=!1;function d(){a("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",f),r.removeListener("end",y),r.removeListener("data",h),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){a("ondata");var n=e.write(t);a("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==X(i.pipes,e))&&!l&&(a("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===c(e,"error")&&M(e,t)}function b(){e.removeListener("finish",m),y()}function m(){a("onfinish"),e.removeListener("close",b),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",h),R(e,"error",p),e.once("close",b),e.once("finish",m),e.emit("pipe",r),i.flowing||(a("pipe resume"),r.resume()),e},I.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?C(this):i.reading||n.default.nextTick(F,this)),r},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(e,t){var r=l.prototype.removeListener.call(this,e,t);return"readable"===e&&n.default.nextTick(z,this),r},I.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.default.nextTick(z,this),t},I.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,H(this,e)),e.paused=!1,this},I.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},I.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new g("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||H(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=p.destroy,k.prototype._undestroy=p.undestroy,k.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),f=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function b(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[s]=null,e[f]=null,t(p(r,!1)))}}function m(e){n.default.nextTick(b,e)}function y(e,t){return function(r,n){e.then(function(){t[c]?r(p(void 0,!0)):t[d](r,n)},n)}}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((i(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){n.default.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var i=this[l];if(i)e=new Promise(y(i,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[l]=e,e}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),o),g);e.exports=function(e){var t,r=Object.create(v,(i(t={},h,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,f,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[s]=null,r[f]=null,e(p(n,!1))):(r[s]=e,r[f]=t)},writable:!0}),t));return r[l]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[f];null!==t&&(r[l]=null,r[s]=null,r[f]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[f]=null,n(p(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return c(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return s||f?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.default.nextTick(i,this,e)):n.default.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?n.default.nextTick(r,a):(a._writableState.errorEmitted=!0,n.default.nextTick(t,a,e)):n.default.nextTick(t,a,e):o?(n.default.nextTick(r,a),o(e)):n.default.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i0,function(t){e||(e=t),t&&o.forEach(l),a||(o.forEach(l),i(e))})});return r.reduce(d)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=b,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=m,this.end=y,t=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function f(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function l(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function b(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{var n=e.i(47167),i=e.r(42524).Buffer,o=e.r(12569);function a(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=i.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=i.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,n.default.nextTick((function(){this.emit("end",e),this.readable=!1,this.emit("close")}).bind(this)),this;throw TypeError("Unexpected data type ("+typeof e+")")}e.r(77398).inherits(a,o),a.prototype.write=function(e){this.buffer=i.concat([this.buffer,i.from(e)]),this.emit("data",e)},a.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},t.exports=a},3361,(e,t,r)=>{!function(){var r={55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},300:function(t){"use strict";t.exports=e.r(67034)}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="/ROOT/node_modules/next/dist/compiled/string_decoder/";var o={};!function(){"use strict";var e=o,t=i(55).Buffer,r=t.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var i=n(e);if("string"!=typeof i&&(t.isEncoding===r||!r(e)))throw Error("Unknown encoding: "+e);return i||e}function s(e){var r;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=b,r=4;break;case"utf8":this.fillLast=l,r=4;break;case"base64":this.text=m,this.end=y,r=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(r)}function f(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function l(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function b(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}e.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;rtypeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/vm-browserify/");var __webpack_exports__={};__webpack_modules__[950](0,__webpack_exports__),module.exports=__webpack_exports__}()},86914,(e,t,r)=>{var n=e.i(67034),i=e.i(47167);!function(){var r={7160:function(e,t,r){var n=t;n.bignum=r(711),n.define=r(495).define,n.base=r(853),n.constants=r(7335),n.decoders=r(6701),n.encoders=r(3418)},495:function(e,t,r){var n=r(7160),i=r(3782);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var n=r(3782),i=r(853).Reporter,o=r(4300).Buffer;function a(e,t){(i.call(this,t),o.isBuffer(e))?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.C=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var n=t;n.Reporter=r(1293).b,n.DecoderBuffer=r(6483).C,n.EncoderBuffer=r(6483).R,n.Node=r(9374)},9374:function(e,t,r){var n=r(853).Reporter,i=r(853).EncoderBuffer,o=r(853).DecoderBuffer,a=r(3523),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],f=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=c;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};l.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState;f.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},u.forEach(function(e){c.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var f=null;if(null!==n.explicit?f=n.explicit:null!==n.implicit?f=n.implicit:null!==n.tag&&(f=n.tag),null!==f||n.any){if(a=this._peekTag(e,f,n.any),e.isError(a))return a}else{var u=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(u)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var c=this._decodeTag(e,n.explicit);if(e.isError(c))return c;e=c}var l=e.offset;if(null===n.use&&null===n.choice){if(n.any)var u=e.save();var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(u):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),l,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===a)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},c.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);else if("null_"===e)return this._decodeNull(t,r);else if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var f=s._decode(e,t);if(e.isError(f))return!1;n={type:o,value:f},i=!0}catch(t){return e.restore(a),!1}return!0},this),i)?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},c.prototype._encodeValue=function(e,t,r){var i,o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,o.optional&&void 0===e)if(null===o.default)return;else e=o.default;var a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!(o.args&&1===o.args.length))return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var f=this.clone();f._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},f))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var u=null!==o.implicit?o.implicit:o.tag,c=null===o.implicit?"universal":"context";null===u?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(u,s,c,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i)),i},c.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();else if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);else if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var n=r(3782);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var n=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},7335:function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},n.der=r(9791)},2259:function(e,t,r){var n=r(3782),i=r(7160),o=i.base,a=i.bignum,s=i.constants.der;function f(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function c(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=(32&r)==0;if((31&r)==31){var o=r;for(r=0;(128&o)==128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}e.exports=f,f.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,a.Node),u.prototype._encodeComposite=function(e,t,r,n){var o=l(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,f=n.length;f>=256;f>>=8)s++;var a=new i(2+s);a[0]=o,a[1]=128|s;for(var f=1+s,u=n.length;u>0;f--,u>>=8)a[f]=255&u;return this._createEncoderBuffer([a,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,n=0;n=128;a>>=7)o++}for(var s=new i(o),f=s.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(s[f--]=127&a;(a>>=7)>0;)s[f--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=""+c(n.getFullYear())+c(n.getUTCMonth()+1)+c(n.getUTCDate())+c(n.getUTCHours())+c(n.getUTCMinutes())+c(n.getUTCSeconds())+"Z":"utctime"===t?r=""+c(n.getFullYear()%100)+c(n.getUTCMonth()+1)+c(n.getUTCDate())+c(n.getUTCHours())+c(n.getUTCMinutes())+c(n.getUTCSeconds())+"Z":this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var o=Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(255*!!e)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n=49&&a<=54?n|=a-49+10:a>=17&&a<=22?n|=a-17+10:n|=15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,f=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var f,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function d(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,f=a/0x4000000|0;r.words[0]=s;for(var u=1;u>>26,l=0x3ffffff&f,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/0x4000000|0,l=0x3ffffff&a}r.words[u]=0|l,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a>>24-i&0xffffff)||a!==this.length-1?u[6-f.length]+f+r:f+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var f="le"===t,u=new e(s),c=this.clone();if(f){for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[o]=i;for(;o=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a>26,this.words[a]=0x3ffffff&n;if(0===o&&a>>13,h=0|a[1],p=8191&h,b=h>>>13,m=0|a[2],y=8191&m,g=m>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],E=8191&x,S=x>>>13,M=0|a[5],A=8191&M,R=M>>>13,k=0|a[6],I=8191&k,j=k>>>13,O=0|a[7],T=8191&O,P=O>>>13,N=0|a[8],L=8191&N,B=N>>>13,C=0|a[9],D=8191&C,U=C>>>13,$=0|s[0],q=8191&$,z=$>>>13,F=0|s[1],H=8191&F,K=F>>>13,G=0|s[2],W=8191&G,V=G>>>13,Y=0|s[3],X=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ef=8191&es,eu=es>>>13,ec=0|s[8],el=8191&ec,ed=ec>>>13,eh=0|s[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(l,q);var em=(u+n|0)+((8191&(i=(i=Math.imul(l,z))+Math.imul(d,q)|0))<<13)|0;u=((o=Math.imul(d,z))+(i>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(l,H)|0;var ey=(u+n|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,H)|0))<<13)|0;u=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(l,W)|0;var eg=(u+n|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(d,W)|0))<<13)|0;u=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(l,X)|0;var ev=(u+n|0)+((8191&(i=(i=i+Math.imul(l,J)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(S,q)|0,o=Math.imul(S,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,V)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(l,Q)|0;var ew=(u+n|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(R,q)|0,o=Math.imul(R,z),n=n+Math.imul(E,H)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(l,er)|0;var e_=(u+n|0)+((8191&(i=(i=i+Math.imul(l,en)|0)+Math.imul(d,er)|0))<<13)|0;u=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(I,q),i=(i=Math.imul(I,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(l,eo)|0;var ex=(u+n|0)+((8191&(i=(i=i+Math.imul(l,ea)|0)+Math.imul(d,eo)|0))<<13)|0;u=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(P,q)|0,o=Math.imul(P,z),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(l,ef)|0;var eE=(u+n|0)+((8191&(i=(i=i+Math.imul(l,eu)|0)+Math.imul(d,ef)|0))<<13)|0;u=((o=o+Math.imul(d,eu)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(b,ef)|0,o=o+Math.imul(b,eu)|0,n=n+Math.imul(l,el)|0;var eS=(u+n|0)+((8191&(i=(i=i+Math.imul(l,ed)|0)+Math.imul(d,el)|0))<<13)|0;u=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,o=Math.imul(U,z),n=n+Math.imul(L,H)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(B,H)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,ea)|0,n=n+Math.imul(y,ef)|0,i=(i=i+Math.imul(y,eu)|0)+Math.imul(g,ef)|0,o=o+Math.imul(g,eu)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,ed)|0,n=n+Math.imul(l,ep)|0;var eM=(u+n|0)+((8191&(i=(i=i+Math.imul(l,eb)|0)+Math.imul(d,ep)|0))<<13)|0;u=((o=o+Math.imul(d,eb)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(D,H),i=(i=Math.imul(D,K))+Math.imul(U,H)|0,o=Math.imul(U,K),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(w,ef)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(_,ef)|0,o=o+Math.imul(_,eu)|0,n=n+Math.imul(y,el)|0,i=(i=i+Math.imul(y,ed)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,ed)|0,n=n+Math.imul(p,ep)|0;var eA=(u+n|0)+((8191&(i=(i=i+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,eb)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(D,W),i=(i=Math.imul(D,V))+Math.imul(U,W)|0,o=Math.imul(U,V),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(I,er)|0,i=(i=i+Math.imul(I,en)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,ea)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(S,ef)|0,o=o+Math.imul(S,eu)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,ed)|0)+Math.imul(_,el)|0,o=o+Math.imul(_,ed)|0,n=n+Math.imul(y,ep)|0;var eR=(u+n|0)+((8191&(i=(i=i+Math.imul(y,eb)|0)+Math.imul(g,ep)|0))<<13)|0;u=((o=o+Math.imul(g,eb)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(I,eo)|0,i=(i=i+Math.imul(I,ea)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,ea)|0,n=n+Math.imul(A,ef)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(R,ef)|0,o=o+Math.imul(R,eu)|0,n=n+Math.imul(E,el)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,ed)|0,n=n+Math.imul(w,ep)|0;var ek=(u+n|0)+((8191&(i=(i=i+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;u=((o=o+Math.imul(_,eb)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),n=n+Math.imul(L,er)|0,i=(i=i+Math.imul(L,en)|0)+Math.imul(B,er)|0,o=o+Math.imul(B,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(I,ef)|0,i=(i=i+Math.imul(I,eu)|0)+Math.imul(j,ef)|0,o=o+Math.imul(j,eu)|0,n=n+Math.imul(A,el)|0,i=(i=i+Math.imul(A,ed)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,ed)|0,n=n+Math.imul(E,ep)|0;var eI=(u+n|0)+((8191&(i=(i=i+Math.imul(E,eb)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,eb)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,o=Math.imul(U,en),n=n+Math.imul(L,eo)|0,i=(i=i+Math.imul(L,ea)|0)+Math.imul(B,eo)|0,o=o+Math.imul(B,ea)|0,n=n+Math.imul(T,ef)|0,i=(i=i+Math.imul(T,eu)|0)+Math.imul(P,ef)|0,o=o+Math.imul(P,eu)|0,n=n+Math.imul(I,el)|0,i=(i=i+Math.imul(I,ed)|0)+Math.imul(j,el)|0,o=o+Math.imul(j,ed)|0,n=n+Math.imul(A,ep)|0;var ej=(u+n|0)+((8191&(i=(i=i+Math.imul(A,eb)|0)+Math.imul(R,ep)|0))<<13)|0;u=((o=o+Math.imul(R,eb)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,n=Math.imul(D,eo),i=(i=Math.imul(D,ea))+Math.imul(U,eo)|0,o=Math.imul(U,ea),n=n+Math.imul(L,ef)|0,i=(i=i+Math.imul(L,eu)|0)+Math.imul(B,ef)|0,o=o+Math.imul(B,eu)|0,n=n+Math.imul(T,el)|0,i=(i=i+Math.imul(T,ed)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,ed)|0,n=n+Math.imul(I,ep)|0;var eO=(u+n|0)+((8191&(i=(i=i+Math.imul(I,eb)|0)+Math.imul(j,ep)|0))<<13)|0;u=((o=o+Math.imul(j,eb)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(D,ef),i=(i=Math.imul(D,eu))+Math.imul(U,ef)|0,o=Math.imul(U,eu),n=n+Math.imul(L,el)|0,i=(i=i+Math.imul(L,ed)|0)+Math.imul(B,el)|0,o=o+Math.imul(B,ed)|0,n=n+Math.imul(T,ep)|0;var eT=(u+n|0)+((8191&(i=(i=i+Math.imul(T,eb)|0)+Math.imul(P,ep)|0))<<13)|0;u=((o=o+Math.imul(P,eb)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(D,el),i=(i=Math.imul(D,ed))+Math.imul(U,el)|0,o=Math.imul(U,ed),n=n+Math.imul(L,ep)|0;var eP=(u+n|0)+((8191&(i=(i=i+Math.imul(L,eb)|0)+Math.imul(B,ep)|0))<<13)|0;u=((o=o+Math.imul(B,eb)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(D,ep);var eN=(u+n|0)+((8191&(i=(i=Math.imul(D,eb))+Math.imul(U,ep)|0))<<13)|0;return u=((o=Math.imul(U,eb))+(i>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,f[0]=em,f[1]=ey,f[2]=eg,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=ex,f[7]=eE,f[8]=eS,f[9]=eM,f[10]=eA,f[11]=eR,f[12]=ek,f[13]=eI,f[14]=ej,f[15]=eO,f[16]=eT,f[17]=eP,f[18]=eN,0!==u&&(f[19]=u,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function m(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?b(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=(i/0x4000000|0)+(o>>>26),this.words[r]=0x3ffffff&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=d(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=i);u--){var l=0|this.words[u];this.words[u]=c<<26-o|l>>>o,c=l&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=0x3ffffff&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var f=i.length-a.length;if("mod"!==t){(r=new o(null)).length=f+1,r.words=Array(r.length);for(var u=0;u=0;l--){var d=(0|i.words[a.length+l])*0x4000000+(0|i.words[a.length+l-1]);for(d=Math.min(d/s|0,0x3ffffff),i._ishlnsubmul(a,d,l);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,l),i.isZero()||(i.negative^=1);r&&(r.words[l]=d)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=0x3ffffff);for(var t=0x4000000%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+0x4000000*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;(r.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(l)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(f)):(r.isub(t),s.isub(i),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),f=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,c=1;(r.words[0]&c)==0&&u<26;++u,c<<=1);if(u>0)for(r.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var l=0,d=1;(i.words[0]&d)==0&&l<26;++l,d<<=1);if(l>0)for(i.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(w,v),w.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new w;else if("p224"===e)t=new _;else if("p192"===e)t=new x;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var l=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,m=0;0!==b.cmp(s);m++)b=b.redSqr();n(m=0;i--){for(var c=t.words[i],l=u-1;l>=0;l--){var d=c>>l&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){f=0;continue}s<<=1,s|=d,(++f===r||0===i&&0===l)&&(a=this.mul(a,n[s]),f=0,s=0)}u=26}return a},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new M(e)},i(M,S),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{c=r(4300).Buffer}catch(e){}function a(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,a|=f}return n(!(240&a),"Invalid character in "+e),i}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),f=t;f=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a"}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,f=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u:o.prototype.inspect=u;var c,l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a>>24-i&0xffffff)||a!==this.length-1?l[6-f.length]+f+r:f+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?b+r:l[u-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function b(e){for(var t=Array(e.bitLength()),r=0;r>>i&1}return t}function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,f=a/0x4000000|0;r.words[0]=s;for(var u=1;u>>26,l=0x3ffffff&f,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/0x4000000|0,l=0x3ffffff&a}r.words[u]=0|l,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=p(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a>26,this.words[a]=0x3ffffff&n;if(0===o&&a>>13,h=0|a[1],p=8191&h,b=h>>>13,m=0|a[2],y=8191&m,g=m>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],E=8191&x,S=x>>>13,M=0|a[5],A=8191&M,R=M>>>13,k=0|a[6],I=8191&k,j=k>>>13,O=0|a[7],T=8191&O,P=O>>>13,N=0|a[8],L=8191&N,B=N>>>13,C=0|a[9],D=8191&C,U=C>>>13,$=0|s[0],q=8191&$,z=$>>>13,F=0|s[1],H=8191&F,K=F>>>13,G=0|s[2],W=8191&G,V=G>>>13,Y=0|s[3],X=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ef=8191&es,eu=es>>>13,ec=0|s[8],el=8191&ec,ed=ec>>>13,eh=0|s[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(l,q);var em=(u+n|0)+((8191&(i=(i=Math.imul(l,z))+Math.imul(d,q)|0))<<13)|0;u=((o=Math.imul(d,z))+(i>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(l,H)|0;var ey=(u+n|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,H)|0))<<13)|0;u=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(l,W)|0;var eg=(u+n|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(d,W)|0))<<13)|0;u=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(l,X)|0;var ev=(u+n|0)+((8191&(i=(i=i+Math.imul(l,J)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(S,q)|0,o=Math.imul(S,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,V)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(l,Q)|0;var ew=(u+n|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(R,q)|0,o=Math.imul(R,z),n=n+Math.imul(E,H)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(l,er)|0;var e_=(u+n|0)+((8191&(i=(i=i+Math.imul(l,en)|0)+Math.imul(d,er)|0))<<13)|0;u=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(I,q),i=(i=Math.imul(I,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(l,eo)|0;var ex=(u+n|0)+((8191&(i=(i=i+Math.imul(l,ea)|0)+Math.imul(d,eo)|0))<<13)|0;u=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(P,q)|0,o=Math.imul(P,z),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(l,ef)|0;var eE=(u+n|0)+((8191&(i=(i=i+Math.imul(l,eu)|0)+Math.imul(d,ef)|0))<<13)|0;u=((o=o+Math.imul(d,eu)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(b,ef)|0,o=o+Math.imul(b,eu)|0,n=n+Math.imul(l,el)|0;var eS=(u+n|0)+((8191&(i=(i=i+Math.imul(l,ed)|0)+Math.imul(d,el)|0))<<13)|0;u=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(D,q),i=(i=Math.imul(D,z))+Math.imul(U,q)|0,o=Math.imul(U,z),n=n+Math.imul(L,H)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(B,H)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,ea)|0,n=n+Math.imul(y,ef)|0,i=(i=i+Math.imul(y,eu)|0)+Math.imul(g,ef)|0,o=o+Math.imul(g,eu)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,ed)|0,n=n+Math.imul(l,ep)|0;var eM=(u+n|0)+((8191&(i=(i=i+Math.imul(l,eb)|0)+Math.imul(d,ep)|0))<<13)|0;u=((o=o+Math.imul(d,eb)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(D,H),i=(i=Math.imul(D,K))+Math.imul(U,H)|0,o=Math.imul(U,K),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(w,ef)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(_,ef)|0,o=o+Math.imul(_,eu)|0,n=n+Math.imul(y,el)|0,i=(i=i+Math.imul(y,ed)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,ed)|0,n=n+Math.imul(p,ep)|0;var eA=(u+n|0)+((8191&(i=(i=i+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,eb)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(D,W),i=(i=Math.imul(D,V))+Math.imul(U,W)|0,o=Math.imul(U,V),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(I,er)|0,i=(i=i+Math.imul(I,en)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,ea)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(S,ef)|0,o=o+Math.imul(S,eu)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,ed)|0)+Math.imul(_,el)|0,o=o+Math.imul(_,ed)|0,n=n+Math.imul(y,ep)|0;var eR=(u+n|0)+((8191&(i=(i=i+Math.imul(y,eb)|0)+Math.imul(g,ep)|0))<<13)|0;u=((o=o+Math.imul(g,eb)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(I,eo)|0,i=(i=i+Math.imul(I,ea)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,ea)|0,n=n+Math.imul(A,ef)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(R,ef)|0,o=o+Math.imul(R,eu)|0,n=n+Math.imul(E,el)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,ed)|0,n=n+Math.imul(w,ep)|0;var ek=(u+n|0)+((8191&(i=(i=i+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;u=((o=o+Math.imul(_,eb)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),n=n+Math.imul(L,er)|0,i=(i=i+Math.imul(L,en)|0)+Math.imul(B,er)|0,o=o+Math.imul(B,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(I,ef)|0,i=(i=i+Math.imul(I,eu)|0)+Math.imul(j,ef)|0,o=o+Math.imul(j,eu)|0,n=n+Math.imul(A,el)|0,i=(i=i+Math.imul(A,ed)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,ed)|0,n=n+Math.imul(E,ep)|0;var eI=(u+n|0)+((8191&(i=(i=i+Math.imul(E,eb)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,eb)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(U,er)|0,o=Math.imul(U,en),n=n+Math.imul(L,eo)|0,i=(i=i+Math.imul(L,ea)|0)+Math.imul(B,eo)|0,o=o+Math.imul(B,ea)|0,n=n+Math.imul(T,ef)|0,i=(i=i+Math.imul(T,eu)|0)+Math.imul(P,ef)|0,o=o+Math.imul(P,eu)|0,n=n+Math.imul(I,el)|0,i=(i=i+Math.imul(I,ed)|0)+Math.imul(j,el)|0,o=o+Math.imul(j,ed)|0,n=n+Math.imul(A,ep)|0;var ej=(u+n|0)+((8191&(i=(i=i+Math.imul(A,eb)|0)+Math.imul(R,ep)|0))<<13)|0;u=((o=o+Math.imul(R,eb)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,n=Math.imul(D,eo),i=(i=Math.imul(D,ea))+Math.imul(U,eo)|0,o=Math.imul(U,ea),n=n+Math.imul(L,ef)|0,i=(i=i+Math.imul(L,eu)|0)+Math.imul(B,ef)|0,o=o+Math.imul(B,eu)|0,n=n+Math.imul(T,el)|0,i=(i=i+Math.imul(T,ed)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,ed)|0,n=n+Math.imul(I,ep)|0;var eO=(u+n|0)+((8191&(i=(i=i+Math.imul(I,eb)|0)+Math.imul(j,ep)|0))<<13)|0;u=((o=o+Math.imul(j,eb)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(D,ef),i=(i=Math.imul(D,eu))+Math.imul(U,ef)|0,o=Math.imul(U,eu),n=n+Math.imul(L,el)|0,i=(i=i+Math.imul(L,ed)|0)+Math.imul(B,el)|0,o=o+Math.imul(B,ed)|0,n=n+Math.imul(T,ep)|0;var eT=(u+n|0)+((8191&(i=(i=i+Math.imul(T,eb)|0)+Math.imul(P,ep)|0))<<13)|0;u=((o=o+Math.imul(P,eb)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(D,el),i=(i=Math.imul(D,ed))+Math.imul(U,el)|0,o=Math.imul(U,ed),n=n+Math.imul(L,ep)|0;var eP=(u+n|0)+((8191&(i=(i=i+Math.imul(L,eb)|0)+Math.imul(B,ep)|0))<<13)|0;u=((o=o+Math.imul(B,eb)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(D,ep);var eN=(u+n|0)+((8191&(i=(i=Math.imul(D,eb))+Math.imul(U,ep)|0))<<13)|0;return u=((o=Math.imul(U,eb))+(i>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,f[0]=em,f[1]=ey,f[2]=eg,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=ex,f[7]=eE,f[8]=eS,f[9]=eM,f[10]=eA,f[11]=eR,f[12]=ek,f[13]=eI,f[14]=ej,f[15]=eO,f[16]=eT,f[17]=eP,f[18]=eN,0!==u&&(f[19]=u,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return g(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(y=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):r<63?m(this,e,t):r<1024?g(this,e,t):v(this,e,t)},w.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},w.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=(o/0x4000000|0)+(a>>>26),this.words[i]=0x3ffffff&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=b(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<a)for(this.length-=a,u=0;u=0&&(0!==c||u>=i);u--){var l=0|this.words[u];this.words[u]=c<<26-o|l>>>o,c=l&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=0x3ffffff&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var f=i.length-a.length;if("mod"!==t){(r=new o(null)).length=f+1,r.words=Array(r.length);for(var u=0;u=0;l--){var d=(0|i.words[a.length+l])*0x4000000+(0|i.words[a.length+l-1]);for(d=Math.min(d/s|0,0x3ffffff),i._ishlnsubmul(a,d,l);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,l),i.isZero()||(i.negative^=1);r&&(r.words[l]=d)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+0x4000000*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;(r.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(l)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(f)):(r.isub(t),s.isub(i),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),f=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,c=1;(r.words[0]&c)==0&&u<26;++u,c<<=1);if(u>0)for(r.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var l=0,d=1;(i.words[0]&d)==0&&l<26;++l,d<<=1);if(l>0)for(i.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new R(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){R.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(E,x),E.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(_[e])return _[e];if("k256"===e)t=new E;else if("p224"===e)t=new S;else if("p192"===e)t=new M;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return _[e]=t,t},R.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},R.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},R.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},R.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},R.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},R.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},R.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},R.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},R.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},R.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},R.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},R.prototype.isqr=function(e){return this.imul(e,e.clone())},R.prototype.sqr=function(e){return this.mul(e,e)},R.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var l=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,m=0;0!==b.cmp(s);m++)b=b.redSqr();n(m=0;i--){for(var c=t.words[i],l=u-1;l>=0;l--){var d=c>>l&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){f=0;continue}s<<=1,s|=d,(++f===r||0===i&&0===l)&&(a=this.mul(a,n[s]),f=0,s=0)}u=26}return a},R.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},R.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,R),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>24]^c[p>>>16&255]^l[b>>>8&255]^d[255&m]^t[y++],a=u[p>>>24]^c[b>>>16&255]^l[m>>>8&255]^d[255&h]^t[y++],s=u[b>>>24]^c[m>>>16&255]^l[h>>>8&255]^d[255&p]^t[y++],f=u[m>>>24]^c[h>>>16&255]^l[p>>>8&255]^d[255&b]^t[y++],h=o,p=a,b=s,m=f;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&m])^t[y++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[m>>>8&255]<<8|n[255&h])^t[y++],s=(n[b>>>24]<<24|n[m>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[y++],[o>>>=0,a>>>=0,s>>>=0,f=((n[m>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[y++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var c=e[a],l=e[c],d=e[l],h=257*e[u]^0x1010100*u;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=0x1010101*d^65537*l^257*c^0x1010100*a,o[0][u]=h<<24|h>>>8,o[1][u]=h<<16|h>>>16,o[2][u]=h<<8|h>>>24,o[3][u]=h,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o>>24,a=(f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a])^s[o/t|0]<<24):t>6&&o%t==4&&(a=f.SBOX[a>>>24]<<24|f.SBOX[a>>>16&255]<<16|f.SBOX[a>>>8&255]<<8|f.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[d>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[d>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},6624:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043),a=r(3782),s=r(7225),f=r(4734),u=r(598);function c(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i16)throw Error("unable to decrypt data");for(var r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},2:function(e,t,r){var n=r(6370),i=r(6624),o=r(6911).Buffer,a=r(126),s=r(1043),f=r(1387),u=r(8368);function c(e,t,r){s.call(this),this._cache=new d,this._cipher=new f.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3782)(c,s),c.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var l=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new c(s.module,t,r)}function p(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return h(e,i.key,i.iv)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(l))throw this._cipher.scrub(),Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-0x1f000000^r[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},598:function(e){e.exports=function(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}},9825:function(e,t,r){var n=r(4734);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var n=r(6911).Buffer,i=r(4734);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i);else{a=n.concat([a,o(e,t,r)]);break}return a}},3147:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){for(var n,i,a,s=-1,f=8,u=0;++s>s%8,e._prev=o(e._prev,r?i:a);return u}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new i(o(t));return r}e.exports=s,s.getr=f},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var n=r(6911).Buffer,i=r(9739),o=r(3726),a=r(3782),s=r(9807),f=r(4013),u=r(2908);function c(e){o.Writable.call(this);var t=u[e];if(!t)throw Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){o.Writable.call(this);var t=u[e];if(!t)throw Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new c(e)}function h(e){return new l(e)}Object.keys(u).forEach(function(e){u[e].id=n.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]}),a(c,o.Writable),c.prototype._write=function(e,t,r){this._hash.update(e),r()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=n.from(t,r)),this.end(),f(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},9807:function(e,t,r){var n=r(6911).Buffer,i=r(4873),o=r(7166),a=r(949).ec,s=r(1670),f=r(9902),u=r(9267);function c(e,t){var r=u[t.curve.join(".")];if(!r)throw Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}function l(e,t,r){for(var n,i=t.params.priv_key,o=t.params.p,a=t.params.q,f=t.params.g,u=new s(0),c=p(e,a).mod(a),l=!1,b=h(i,a,e,r);!1===l;)u=y(f,n=m(a,b,r),o,a),0===(l=n.invm(a).imul(c.add(i.mul(u))).mod(a)).cmpn(0)&&(l=!1,u=new s(0));return d(u,l)}function d(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}function h(e,t,r,o){if((e=n.from(e.toArray())).length0&&r.ishrn(n),r}function b(e,t){e=(e=p(e,t)).mod(t);var r=n.from(e.toArray());if(r.length=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=function(e,t,r,o,s){var c=a(r);if("ec"===c.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");return f(e,t,c)}if("dsa"===c.type){if("dsa"!==o)throw Error("wrong public key type");return u(e,t,c)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");t=n.concat([s,t]);for(var l=c.modulus.byteLength(),d=[1],h=0;t.length+d.length+2r?t=("rmd160"===e?new f:u(e)).update(t).digest():t.lengths?t=e(t):t.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},f.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,a=h}o.rip(s,a,n,i)},f.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,f=e.keys.length-2;f>=0;f-=2){var u=e.keys[f],c=e.keys[f+1];o.expand(a,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var l=o.substitute(u,c),d=o.permute(l),h=a;a=(s^d)>>>0,s=h}o.rip(a,s,n,i)}},6159:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(9876),a=r(1016);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function f(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(f,o),e.exports=f,f.create=function(e){return new f(e)},f.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},f.prototype._pad=a.prototype._pad,f.prototype._unpad=a.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,f=0;f>>r[f]&1;for(var f=s;f>>r[f]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var o=e>>>18-6*i&63,a=n[64*i+o];r<<=4,r|=a}for(var i=0;i<4;i++){var o=t>>>18-6*i&63,a=n[256+64*i+o];r<<=4,r|=a}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(u))for(;r.mod(c).cmp(l);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&y(p)&&y(r)&&a.test(p)&&a.test(r))return r}}},949:function(e,t,r){"use strict";var n=t;n.version=r(2531).i8,n.utils=r(4401),n.rand=r(3500),n.curve=r(9359),n.curves=r(6226),n.ec=r(4088),n.eddsa=r(8511)},2727:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.getNAF,a=i.getJSF,s=i.assert;function f(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=f;t--)u=(u<<1)+n[t];a.push(u)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(var f=0;f=0;u--){for(var t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(i[c-1>>1]):f.mixedAdd(i[-c-1>>1].neg()):c>0?f.add(i[c-1>>1]):f.add(i[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,l=0;l=1;l-=2){var p=l-1,b=l;if(1!==s[p]||1!==s[b]){u[p]=o(r[p],s[p],this._bitLength),u[b]=o(r[b],s[b],this._bitLength),c=Math.max(u[p].length,c),c=Math.max(u[b].length,c);continue}var m=[t[p],null,null,t[b]];0===t[p].y.cmp(t[b].y)?(m[1]=t[p].add(t[b]),m[2]=t[p].toJ().mixedAdd(t[b].neg())):0===t[p].y.cmp(t[b].y.redNeg())?(m[1]=t[p].toJ().mixedAdd(t[b]),m[2]=t[p].add(t[b].neg())):(m[1]=t[p].toJ().mixedAdd(t[b]),m[2]=t[p].toJ().mixedAdd(t[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[p],r[b]);c=Math.max(g[0].length,c),u[p]=Array(c),u[b]=Array(c);for(var v=0;v=0;l--){for(var S=0;l>=0;){for(var M=!0,v=0;v=0&&S++,x=x.dblp(S),l<0)break;for(var v=0;v0?d=f[v][A-1>>1]:A<0&&(d=f[v][-A-1>>1].neg()),x="affine"===d.type?x.mixedAdd(d):x.add(d))}}for(var l=0;l=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),f=i.redMul(a),u=o.redMul(s),c=i.redMul(s),l=a.redMul(o);return this.curve.point(f,u,l,c)},u.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var f=this.z.redSqr(),u=s.redSub(f).redISub(f);e=n.redSub(i).redISub(o).redMul(u),t=s.redMul(a.redSub(o)),r=s.redMul(u)}}else{var a=i.redAdd(o),f=this.curve._mulC(this.z).redSqr(),u=a.redSub(f).redSub(f);e=this.curve._mulC(n.redISub(a)).redMul(u),t=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(u)}return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),f=r.redAdd(t),u=o.redMul(a),c=s.redMul(f),l=o.redMul(f),d=a.redMul(s);return this.curve.point(u,c,d,l)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=i.redSub(s),u=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(f).redMul(c);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(l,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},9359:function(e,t,r){"use strict";var n=t;n.base=r(2727),n.short=r(4720),n.mont=r(6653),n.edwards=r(2705)},6653:function(e,t,r){"use strict";var n=r(711),i=r(3782),o=r(2727),a=r(4401);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(f,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new f(this,e,t)},s.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function f(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(f,a),e.exports=f,f.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,f,u,c,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),b=new i(0),m=new i(0),y=new i(1),g=0;0!==d.cmpn(0);){var v=h.div(d);u=h.sub(v.mul(d)),c=m.sub(v.mul(p));var w=y.sub(v.mul(b));if(!n&&0>u.cmp(l))t=f.neg(),r=p,n=u.neg(),o=c;else if(n&&2==++g)break;f=u,h=d,d=u,m=p,p=c,y=b,b=w}a=u.neg(),s=c;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),f=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},f.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),f=o.redSub(a);if(0===s.cmpn(0))if(0!==f.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var u=s.redSqr(),c=u.redMul(s),l=n.redMul(u),d=f.redSqr().redIAdd(c).redISub(l).redISub(l),h=f.redMul(l.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var f=a.redSqr(),u=f.redMul(a),c=r.redMul(f),l=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(l)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},c.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var n,i=t,o=r(7028),a=r(9359),s=r(4401).assert;function f(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=f,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(9702)}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},4088:function(e,t,r){"use strict";var n=r(711),i=r(4910),o=r(4401),a=r(6226),s=r(3500),f=o.assert,u=r(4724),c=r(7526);function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(f(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=l,l.prototype.keyPair=function(e){return new u(this,e)},l.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},l.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},l.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),f=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),l=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(u.generate(this.n.byteLength()));if(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(l)>=0)continue;var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var y=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var g=!!p.getY().isOdd()|2*(0!==b.cmp(m));return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),g^=1),new c({r:m,s:y,recoveryParam:g})}}}}},l.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new c(t,"hex")).r,a=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),f=s.mul(e).umod(this.n),u=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var l=this.g.mulAdd(f,r.getPublic(),u);return!l.isInfinity()&&0===l.getX().umod(this.n).cmp(o)}var l=this.g.jmulAdd(f,r.getPublic(),u);return!l.isInfinity()&&l.eqXToP(o)},l.prototype.recoverPubKey=function(e,t,r,i){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,l=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),b=u.mul(h).umod(o);return this.g.mulAdd(p,s,b)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new c(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var n=r(711),i=r(4401).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return""}},7526:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=f(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=f(e,r);if(!1===a)return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place)return!1;var l=e.slice(r.place,c+r.place);if(0===u[0])if(!(128&u[1]))return!1;else u=u.slice(1);if(0===l[0])if(!(128&l[1]))return!1;else l=l.slice(1);return this.r=new n(u),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},8511:function(e,t,r){"use strict";var n=r(7028),i=r(6226),o=r(4401),a=o.assert,s=o.parseBytes,f=r(9917),u=r(9314);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);var e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:f,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(i>>1)-1?(i>>1)-f:f,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s=e.andln(3)+n&3,f=t.andln(3)+i&3;if(3===s&&(s=-1),3===f&&(f=-1),(1&s)==0)o=0;else{var u=e.andln(7)+n&7;o=(3===u||5===u)&&2===f?-s:s}if(r[0].push(o),(1&f)==0)a=0;else{var u=t.andln(7)+i&7;a=(3===u||5===u)&&2===s?-f:f}r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=s,n.intFromLE=function(e){return new i(e,"hex","le")}},8368:function(e,t,r){var n=r(6911).Buffer,i=r(3533);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),f=n.alloc(o||0),u=n.alloc(0);a>0||o>0;){var c=new i;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var l=0;if(a>0){var d=s.length-a;l=Math.min(a,u.length),u.copy(s,d,0,l),a-=l}if(l0){var h=f.length-o,p=Math.min(o,u.length-l);u.copy(f,h,l,l+p),o-=p}}return u.fill(0),{key:s,iv:f}}},9029:function(e,t,r){"use strict";var n=r(6911).Buffer,i=r(3726).Transform;function o(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(o(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=f,(f=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*f);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=a},7028:function(e,t,r){var n=t;n.utils=r(263),n.common=r(1330),n.sha=r(301),n.ripemd=r(3079),n.hmac=r(3092),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},1330:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;othis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},263:function(e,t,r){"use strict";var n=r(3523);function i(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function o(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(3782),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o>6|192:(i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}else for(o=0;o>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=+(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return+(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var f,u=t;return e+r+i+a+(f=0+ +((u=u+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,f,u){var c,l=t;return e+r+i+a+f+(c=0+ +((l=l+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,f,u){return t+n+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},4910:function(e,t,r){"use strict";var n=r(7028),i=r(6545),o=r(3523);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length>>32-t}function u(e,t,r,n,i,o,a){return f(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return f(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return f(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return f(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=u(r,n,i,o,e[0],0xd76aa478,7),o=u(o,r,n,i,e[1],0xe8c7b756,12),i=u(i,o,r,n,e[2],0x242070db,17),n=u(n,i,o,r,e[3],0xc1bdceee,22),r=u(r,n,i,o,e[4],0xf57c0faf,7),o=u(o,r,n,i,e[5],0x4787c62a,12),i=u(i,o,r,n,e[6],0xa8304613,17),n=u(n,i,o,r,e[7],0xfd469501,22),r=u(r,n,i,o,e[8],0x698098d8,7),o=u(o,r,n,i,e[9],0x8b44f7af,12),i=u(i,o,r,n,e[10],0xffff5bb1,17),n=u(n,i,o,r,e[11],0x895cd7be,22),r=u(r,n,i,o,e[12],0x6b901122,7),o=u(o,r,n,i,e[13],0xfd987193,12),i=u(i,o,r,n,e[14],0xa679438e,17),n=u(n,i,o,r,e[15],0x49b40821,22),r=c(r,n,i,o,e[1],0xf61e2562,5),o=c(o,r,n,i,e[6],0xc040b340,9),i=c(i,o,r,n,e[11],0x265e5a51,14),n=c(n,i,o,r,e[0],0xe9b6c7aa,20),r=c(r,n,i,o,e[5],0xd62f105d,5),o=c(o,r,n,i,e[10],0x2441453,9),i=c(i,o,r,n,e[15],0xd8a1e681,14),n=c(n,i,o,r,e[4],0xe7d3fbc8,20),r=c(r,n,i,o,e[9],0x21e1cde6,5),o=c(o,r,n,i,e[14],0xc33707d6,9),i=c(i,o,r,n,e[3],0xf4d50d87,14),n=c(n,i,o,r,e[8],0x455a14ed,20),r=c(r,n,i,o,e[13],0xa9e3e905,5),o=c(o,r,n,i,e[2],0xfcefa3f8,9),i=c(i,o,r,n,e[7],0x676f02d9,14),n=c(n,i,o,r,e[12],0x8d2a4c8a,20),r=l(r,n,i,o,e[5],0xfffa3942,4),o=l(o,r,n,i,e[8],0x8771f681,11),i=l(i,o,r,n,e[11],0x6d9d6122,16),n=l(n,i,o,r,e[14],0xfde5380c,23),r=l(r,n,i,o,e[1],0xa4beea44,4),o=l(o,r,n,i,e[4],0x4bdecfa9,11),i=l(i,o,r,n,e[7],0xf6bb4b60,16),n=l(n,i,o,r,e[10],0xbebfbc70,23),r=l(r,n,i,o,e[13],0x289b7ec6,4),o=l(o,r,n,i,e[0],0xeaa127fa,11),i=l(i,o,r,n,e[3],0xd4ef3085,16),n=l(n,i,o,r,e[6],0x4881d05,23),r=l(r,n,i,o,e[9],0xd9d4d039,4),o=l(o,r,n,i,e[12],0xe6db99e5,11),i=l(i,o,r,n,e[15],0x1fa27cf8,16),n=l(n,i,o,r,e[2],0xc4ac5665,23),r=d(r,n,i,o,e[0],0xf4292244,6),o=d(o,r,n,i,e[7],0x432aff97,10),i=d(i,o,r,n,e[14],0xab9423a7,15),n=d(n,i,o,r,e[5],0xfc93a039,21),r=d(r,n,i,o,e[12],0x655b59c3,6),o=d(o,r,n,i,e[3],0x8f0ccc92,10),i=d(i,o,r,n,e[10],0xffeff47d,15),n=d(n,i,o,r,e[1],0x85845dd1,21),r=d(r,n,i,o,e[8],0x6fa87e4f,6),o=d(o,r,n,i,e[15],0xfe2ce6e0,10),i=d(i,o,r,n,e[6],0xa3014314,15),n=d(n,i,o,r,e[13],0x4e0811a1,21),r=d(r,n,i,o,e[4],0xf7537e82,6),o=d(o,r,n,i,e[11],0xbd3af235,10),i=d(i,o,r,n,e[2],0x2ad7d2bb,15),n=d(n,i,o,r,e[9],0xeb86d391,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var n=r(711),i=r(3500);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0)return r},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),f=0;!s.testn(f);f++);for(var u=e.shrn(f),c=s.toRed(o),l=!0;t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var h=d.toRed(o).redPow(u);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var p=1;p0;t--){var c=this._randrange(new n(2),a),l=e.gcd(c);if(0!==l.cmpn(1))return l;var d=c.toRed(i).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var h=1;h>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},8687:function(e,t,r){"use strict";var n=r(7160);t.certificate=r(8782),t.RSAPrivateKey=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),t.RSAPublicKey=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),t.PublicKey=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())});var i=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});t.PrivateKey=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())}),t.EncryptedPrivateKey=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),t.DSAPrivateKey=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),t.DSAparam=n.define("DSAparam",function(){this.int()}),t.ECPrivateKey=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(o),this.key("publicKey").optional().explicit(1).bitstr())});var o=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(e,t,r){"use strict";var n=r(7160),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),f=n.define("RelativeDistinguishedName",function(){this.setof(o)}),u=n.define("RDNSequence",function(){this.seqof(f)}),c=n.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),l=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(l),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())});e.exports=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())})},6501:function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=r(8368),s=r(6594),f=r(6911).Buffer;e.exports=function(e,t){var r,u=e.toString(),c=u.match(n);if(c){var l="aes"+c[1],d=f.from(c[2],"hex"),h=f.from(c[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(c[1],10)).key,b=[],m=s.createDecipheriv(l,p,d);b.push(m.update(h)),b.push(m.final()),r=f.concat(b)}else r=new f(u.match(o)[2].replace(/[\r\n]/g,""),"base64");return{tag:u.match(i)[1],data:r}}},9902:function(e,t,r){var n=r(8687),i=r(2510),o=r(6501),a=r(6594),s=r(4978),f=r(6911).Buffer;function u(e){"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=f.from(e));var t,r,i,a=o(e,t),s=a.tag,u=a.data;switch(s){case"CERTIFICATE":i=n.certificate.decode(u,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!i&&(i=n.PublicKey.decode(u,"der")),r=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=n.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":u=c(u=n.EncryptedPrivateKey.decode(u,"der"),t);case"PRIVATE KEY":switch(r=(i=n.PrivateKey.decode(u,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:n.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=n.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(u,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(u,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(u,"der")};case"EC PRIVATE KEY":return{curve:(u=n.ECPrivateKey.decode(u,"der")).parameters.value,privateKey:u.privateKey};default:throw Error("unknown key type "+s)}}function c(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,l,"sha1"),h=a.createDecipheriv(o,d,u),p=[];return p.push(h.update(c)),p.push(h.final()),f.concat(p)}e.exports=u,u.signature=n.signature},4978:function(e,t,r){var n=r(6113),i=r(5349),o=r(7007),a=r(5407);function s(e,t,r,s,f,u){if(i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),"function"==typeof f&&(u=f,f="sha1"),"function"!=typeof u)throw Error("No callback provided to pbkdf2");return n.pbkdf2(e,t,r,s,f,u)}function f(e,t,r,s,f){return i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),f=f||"sha1",n.pbkdf2Sync(e,t,r,s,f)}n.pbkdf2Sync&&-1!==n.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=f,t.pbkdf2=s):(t.pbkdf2Sync=r(2127),t.pbkdf2=r(9601))},9601:function(t,r,n){var o,a=n(6911).Buffer,s=n(5349),f=n(7007),u=n(2127),c=n(5407),l=e.g.crypto&&e.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(t){if(e.g.process&&!e.g.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==h[t])return h[t];var r=b(o=o||a.alloc(8),o,10,128,t).then(function(){return!0}).catch(function(){return!1});return h[t]=r,r}function b(e,t,r,n,i){return l.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return l.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return a.from(e)})}function m(e,t){e.then(function(e){i.default.nextTick(function(){t(null,e)})},function(e){i.default.nextTick(function(){t(e)})})}t.exports=function(t,r,n,o,a,l){"function"==typeof a&&(l=a,a=void 0);var h=d[(a=a||"sha1").toLowerCase()];if(!h||"function"!=typeof e.g.Promise)return i.default.nextTick(function(){var e;try{e=u(t,r,n,o,a)}catch(e){return l(e)}l(null,e)});if(s(n,o),t=c(t,f,"Password"),r=c(r,f,"Salt"),"function"!=typeof l)throw Error("No callback provided to pbkdf2");m(p(h).then(function(e){return e?b(t,r,n,o,h):u(t,r,n,o,a)}),l)}},7007:function(e){e.exports="utf-8"},5349:function(e){var t=0x3fffffff;e.exports=function(e,r){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof r)throw TypeError("Key length not a number");if(r<0||r>t||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var n={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=r(4873),o=r(6911).Buffer,a=r(5349),s=r(7007),f=r(5407);e.exports=function(e,t,r,u,c){a(r,u),e=f(e,s,"Password"),t=f(t,s,"Salt"),c=c||"sha1";var l=o.allocUnsafe(u),d=o.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var h=0,p=n[c],b=Math.ceil(u/p),m=1;m<=b;m++){d.writeUInt32BE(m,t.length);for(var y=i(c,e).update(d).digest(),g=y,v=1;v=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}function h(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++ih||new a(t).cmp(f.modulus)>=0)throw Error("decryption error");i=r?u(new a(t),f):s(t,f);var p=c.alloc(h-i.length);if(i=c.concat([p,i],h),4===o)return l(f,i);if(1===o)return d(f,i,r);if(3===o)return i;throw Error("unknown padding")}},3995:function(e,t,r){var n=r(9902),i=r(7223),o=r(9739),a=r(5520),s=r(6386),f=r(711),u=r(1607),c=r(7166),l=r(6911).Buffer;function d(e,t){var r=e.modulus.byteLength(),n=t.length,u=o("sha1").update(l.alloc(0)).digest(),c=u.length,d=2*c;if(n>r-d-2)throw Error("message too long");var h=l.alloc(r-n-d-2),p=r-c-1,b=i(c),m=s(l.concat([u,h,l.alloc(1,1),t],p),a(b,p)),y=s(b,a(m,c));return new f(l.concat([l.alloc(1),y,m],r))}function h(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return n=r?l.alloc(o-i-3,255):p(o-i-3),new f(l.concat([l.from([0,r?1:2]),n,l.alloc(1),t],o))}function p(e){for(var t,r=l.allocUnsafe(e),n=0,o=i(2*e),a=0;n=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?c(i,a):u(i,a)}},1607:function(e,t,r){var n=r(711),i=r(6911).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},6386:function(e){e.exports=function(e,t){for(var r=e.length,n=-1;++na)throw RangeError("requested too many random bytes");var r=f.allocUnsafe(e);if(e>0)if(e>o)for(var n=0;nc||e<0)throw TypeError("offset must be a uint32");if(e>f||e>t)throw RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>c||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>f)throw RangeError("buffer too small")}function h(t,r,n,i){if(!s.isBuffer(t)&&!(t instanceof e.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return l(r,t.length),d(n,r,t.length),p(t,r,n,i)}function p(e,t,r,n){var o=new Uint8Array(e.buffer,t,r);return(u.getRandomValues(o),n)?void i.default.nextTick(function(){n(null,e)}):e}function b(t,r,n){if(void 0===r&&(r=0),!s.isBuffer(t)&&!(t instanceof e.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return l(r,t.length),void 0===n&&(n=t.length-r),d(n,r,t.length),p(t,r,n)}u&&u.getRandomValues?(r.randomFill=h,r.randomFillSync=b):(r.randomFill=o,r.randomFillSync=o)},4646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,f;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))f=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";f=`The "${e}" ${r} ${s} ${n(t,"type")}`}return f+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=r(1709),a=r(7337);r(3782)(c,o);for(var s=n(a.prototype),f=0;f0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?M(e,new S):O(e,s,t,!0);else if(s.ended)M(e,new x);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):U(e,s)):O(e,s,t,!1)}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length=P?e=P:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function B(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}}function C(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.default.nextTick(D,e))}function D(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.default.nextTick($,e,t))}function $(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function F(e){a("readable nexttick read 0"),e.read(0)}function H(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.default.nextTick(K,e,t))}function K(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function V(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.default.nextTick(Y,t,e))}function Y(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function X(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?V(this):C(this),null;if(0===(e=L(e,r))&&r.ended)return 0===r.length&&V(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e0?W(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&V(this)),null!==t&&this.emit("data",t),t},I.prototype._read=function(e){M(this,new E("_read()"))},I.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.default.stdout||e===i.default.stderr?y:f;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function f(){a("onend"),e.end()}n.endEmitted?i.default.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=q(r);e.on("drain",u);var l=!1;function d(){a("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",f),r.removeListener("end",y),r.removeListener("data",h),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==X(n.pipes,e))&&!l&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===c(e,"error")&&M(e,t)}function b(){e.removeListener("finish",m),y()}function m(){a("onfinish"),e.removeListener("close",b),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",h),R(e,"error",p),e.once("close",b),e.once("finish",m),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},I.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?C(this):n.reading||i.default.nextTick(F,this)),r},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(e,t){var r=l.prototype.removeListener.call(this,e,t);return"readable"===e&&i.default.nextTick(z,this),r},I.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.default.nextTick(z,this),t},I.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,H(this,e)),e.paused=!1,this},I.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},I.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new g("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||H(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=p.destroy,k.prototype._undestroy=p.undestroy,k.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(9698),s=Symbol("lastResolve"),f=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function b(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[s]=null,e[f]=null,t(p(r,!1)))}}function m(e){i.default.nextTick(b,e)}function y(e,t){return function(r,n){e.then(function(){t[c]?r(p(void 0,!0)):t[d](r,n)},n)}}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.default.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var n=this[l];if(n)e=new Promise(y(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[l]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),o),g);e.exports=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,f,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[s]=null,r[f]=null,e(p(n,!1))):(r[s]=e,r[f]=t)},writable:!0}),t));return r[l]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[f];null!==t&&(r[l]=null,r[s]=null,r[f]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[f]=null,n(p(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}},4379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return c(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return s||f?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.default.nextTick(n,this,e)):i.default.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.default.nextTick(r,a):(a._writableState.errorEmitted=!0,i.default.nextTick(t,a,e)):i.default.nextTick(t,a,e):o?(i.default.nextTick(r,a),o(e)):i.default.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},9698:function(e,t,r){"use strict";var n=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i0,function(t){e||(e=t),t&&o.forEach(l),a||(o.forEach(l),i(e))})});return r.reduce(d)}},6776:function(e,t,r){"use strict";var n=r(4646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var n=r(2781);"disable"===i.default.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(1709)).Stream=n||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var n=r(4300).Buffer,i=r(3782),o=r(9029),a=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],d=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function h(){o.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function p(e,t){return e<>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e,t,r=a,n=0;n<16;++n)r[n]=this._block.readInt32LE(4*n);for(var i=0|this._a,o=0|this._b,h=0|this._c,w=0|this._d,_=0|this._e,x=0|this._a,E=0|this._b,S=0|this._c,M=0|this._d,A=0|this._e,R=0;R<80;R+=1)R<16?(e=b(i,o,h,w,_,r[s[R]],l[0],u[R]),t=v(x,E,S,M,A,r[f[R]],d[0],c[R])):R<32?(e=m(i,o,h,w,_,r[s[R]],l[1],u[R]),t=g(x,E,S,M,A,r[f[R]],d[1],c[R])):R<48?(e=y(i,o,h,w,_,r[s[R]],l[2],u[R]),t=y(x,E,S,M,A,r[f[R]],d[2],c[R])):R<64?(e=g(i,o,h,w,_,r[s[R]],l[3],u[R]),t=m(x,E,S,M,A,r[f[R]],d[3],c[R])):(e=v(i,o,h,w,_,r[s[R]],l[4],u[R]),t=b(x,E,S,M,A,r[f[R]],d[4],c[R])),i=_,_=w,w=p(h,10),h=o,o=e,x=A,A=M,M=p(S,10),S=E,E=t;var k=this._b+h+M|0;this._b=this._c+w+A|0,this._c=this._d+_+x|0,this._d=this._e+i+E|0,this._e=this._a+o+S|0,this._a=k},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},5055:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},6911:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},2858:function(e,t,r){var n=r(6911).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=0xffffffff)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=r>>>0,i=(r-n)/0x100000000;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=i},4371:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(4018),n.sha1=r(4179),n.sha224=r(532),n.sha256=r(1843),n.sha384=r(7455),n.sha512=r(9934)},4018:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function f(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(f,i),f.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=t[f-3]^t[f-8]^t[f-14]^t[f-16];for(var d=0;d<80;++d){var h=~~(d/20),p=u(r)+l(h,n,i,o)+s+t[d]+a[h]|0;s=o,o=i,i=c(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},f.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=f},4179:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function f(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<1|e>>>31}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(f,i),f.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=u(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var h=0;h<80;++h){var p=~~(h/20),b=c(r)+d(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=l(n),n=r,r=b}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},f.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=f},532:function(e,t,r){var n=r(3782),i=r(1843),o=r(2858),a=r(6911).Buffer,s=Array(64);function f(){this.init(),this._w=s,o.call(this,64,56)}n(f,i),f.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},f.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=f},1843:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],s=Array(64);function f(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(f,i),f.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,f=0|this._f,b=0|this._g,m=0|this._h,y=0;y<16;++y)t[y]=e.readInt32BE(4*y);for(;y<64;++y)t[y]=p(t[y-2])+t[y-7]+h(t[y-15])+t[y-16]|0;for(var g=0;g<64;++g){var v=m+d(s)+u(s,f,b)+a[g]+t[g]|0,w=l(r)+c(r,n,i)|0;m=b,b=f,f=s,s=o+v|0,o=i,i=n,n=r,r=v+w|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=f+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=f},7455:function(e,t,r){var n=r(3782),i=r(9934),o=r(2858),a=r(6911).Buffer,s=Array(160);function f(){this.init(),this._w=s,o.call(this,128,112)}n(f,i),f.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},f.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=f},9934:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],s=Array(160);function f(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return+(e>>>0>>0)}n(f,i),f.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,f=0|this._fh,g=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,x=0|this._cl,E=0|this._dl,S=0|this._el,M=0|this._fl,A=0|this._gl,R=0|this._hl,k=0;k<32;k+=2)t[k]=e.readInt32BE(4*k),t[k+1]=e.readInt32BE(4*k+4);for(;k<160;k+=2){var I=t[k-30],j=t[k-30+1],O=h(I,j),T=p(j,I),P=b(I=t[k-4],j=t[k-4+1]),N=m(j,I),L=t[k-14],B=t[k-14+1],C=t[k-32],D=t[k-32+1],U=T+B|0,$=O+L+y(U,T)|0;$=($=$+P+y(U=U+N|0,N)|0)+C+y(U=U+D|0,D)|0,t[k]=$,t[k+1]=U}for(var q=0;q<160;q+=2){$=t[q],U=t[q+1];var z=c(r,n,i),F=c(w,_,x),H=l(r,w),K=l(w,r),G=d(s,S),W=d(S,s),V=a[q],Y=a[q+1],X=u(s,f,g),J=u(S,M,A),Z=R+W|0,Q=v+G+y(Z,R)|0;Q=(Q=(Q=Q+X+y(Z=Z+J|0,J)|0)+V+y(Z=Z+Y|0,Y)|0)+$+y(Z=Z+U|0,U)|0;var ee=K+F|0,et=H+z+y(ee,K)|0;v=g,R=A,g=f,A=M,f=s,M=S,s=o+Q+y(S=E+Z|0,E)|0,o=i,E=x,i=n,x=_,n=r,_=w,r=Q+et+y(w=Z+ee|0,Z)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+E|0,this._el=this._el+S|0,this._fl=this._fl+M|0,this._gl=this._gl+A|0,this._hl=this._hl+R|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,_)|0,this._ch=this._ch+i+y(this._cl,x)|0,this._dh=this._dh+o+y(this._dl,E)|0,this._eh=this._eh+s+y(this._el,S)|0,this._fh=this._fh+f+y(this._fl,M)|0,this._gh=this._gh+g+y(this._gl,A)|0,this._hh=this._hh+v+y(this._hl,R)|0},f.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=f},3704:function(e,t,r){"use strict";var n=r(5055).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=b,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=m,this.end=y,t=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function f(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function l(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function b(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{"use strict";function n(e){return(e/8|0)+ +(e%8!=0)}var i={ES256:n(256),ES384:n(384),ES512:n(521)};t.exports=function(e){var t=i[e];if(t)return t;throw Error('Unknown algorithm "'+e+'"')}},21762,(e,t,r)=>{"use strict";var n=e.r(42524).Buffer,i=e.r(68679),o=128,a=48,s=2;function f(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function u(e){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,"base64");throw TypeError("ECDSA signature must be a Base64 string or a Buffer")}function c(e,t,r){for(var n=0;t+n=o&&--n,n}t.exports={derToJose:function(e,t){e=u(e);var r=i(t),c=r+1,l=e.length,d=0;if(e[d++]!==a)throw Error('Could not find expected "seq"');var h=e[d++];if(h===(1|o)&&(h=e[d++]),l-d{"use strict";var n=e.r(67034).Buffer,i=e.r(67034).SlowBuffer;function o(e,t){if(!n.isBuffer(e)||!n.isBuffer(t)||e.length!==t.length)return!1;for(var r=0,i=0;i{var n,i=e.r(42524).Buffer,o=e.r(86914),a=e.r(21762),s=e.r(77398),f='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',u="secret must be a string or buffer",c="key must be a string or a buffer",l="key must be a string, a buffer or an object",d="function"==typeof o.createPublicKey;function h(e){if(!i.isBuffer(e)&&"string"!=typeof e&&(!d||"object"!=typeof e||"string"!=typeof e.type||"string"!=typeof e.asymmetricKeyType||"function"!=typeof e.export))throw g(c)}function p(e){if(!i.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw g(l)}function b(e){if(!i.isBuffer(e)){if("string"==typeof e)return e;if(!d||"object"!=typeof e||"secret"!==e.type||"function"!=typeof e.export)throw g(u)}}function m(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function y(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r{var n=e.r(67034).Buffer;t.exports=function(e){return"string"==typeof e?e:"number"==typeof e||n.isBuffer(e)?e.toString():JSON.stringify(e)}},78995,(e,t,r)=>{var n=e.r(42524).Buffer,i=e.r(84598),o=e.r(19695),a=e.r(12569),s=e.r(25502),f=e.r(77398);function u(e,t){return n.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function c(e,t,r){r=r||"utf8";var n=u(s(e),"binary"),i=u(s(t),r);return f.format("%s.%s",n,i)}function l(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,i=e.encoding,a=o(t.alg),s=c(t,r,i),u=a.sign(s,n);return f.format("%s.%s",s,u)}function d(e){var t=e.secret;if(t=null==(t=null==t?e.privateKey:t)?e.key:t,!0===/^hs/i.test(e.header.alg)&&null==t)throw TypeError("secret must be a string or buffer or a KeyObject");var r=new i(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=r,this.payload=new i(e.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}f.inherits(d,a),d.prototype.sign=function(){try{var e=l({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},d.sign=l,t.exports=d},17678,(e,t,r)=>{var n=e.r(42524).Buffer,i=e.r(84598),o=e.r(19695),a=e.r(12569),s=e.r(25502),f=e.r(77398),u=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){if(c(e))return e;try{return JSON.parse(e)}catch(e){return}}function d(e){var t=e.split(".",1)[0];return l(n.from(t,"base64").toString("binary"))}function h(e){return e.split(".",2).join(".")}function p(e){return e.split(".")[2]}function b(e,t){t=t||"utf8";var r=e.split(".")[1];return n.from(r,"base64").toString(t)}function m(e){return u.test(e)&&!!d(e)}function y(e,t,r){if(!t){var n=Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var i=p(e=s(e)),a=h(e);return o(t).verify(a,i,r)}function g(e,t){if(t=t||{},!m(e=s(e)))return null;var r=d(e);if(!r)return null;var n=b(e);return("JWT"===r.typ||t.json)&&(n=JSON.parse(n,t.encoding)),{header:r,payload:n,signature:p(e)}}function v(e){var t=(e=e||{}).secret;if(t=null==(t=null==t?e.publicKey:t)?e.key:t,!0===/^hs/i.test(e.algorithm)&&null==t)throw TypeError("secret must be a string or buffer or a KeyObject");var r=new i(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=r,this.signature=new i(e.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}f.inherits(v,a),v.prototype.verify=function(){try{var e=y(this.signature.buffer,this.algorithm,this.key.buffer),t=g(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},v.decode=g,v.isValid=m,v.verify=y,t.exports=v},72919,(e,t,r)=>{var n=e.r(78995),i=e.r(17678);r.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],r.sign=n.sign,r.verify=i.verify,r.decode=i.decode,r.isValid=i.isValid,r.createSign=function(e){return new n(e)},r.createVerify=function(e){return new i(e)}},39420,(e,t,r)=>{var n=e.r(72919);t.exports=function(e,t){t=t||{};var r=n.decode(e,t);if(!r)return null;var i=r.payload;if("string"==typeof i)try{var o=JSON.parse(i);null!==o&&"object"==typeof o&&(i=o)}catch(e){}return!0===t.complete?{header:r.header,payload:i,signature:r.signature}:i}},80537,(e,t,r)=>{var n=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,t.exports=n},34100,(e,t,r)=>{var n=e.r(80537),i=function(e,t){n.call(this,e),this.name="NotBeforeError",this.date=t};i.prototype=Object.create(n.prototype),i.prototype.constructor=i,t.exports=i},59261,(e,t,r)=>{var n=e.r(80537),i=function(e,t){n.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};i.prototype=Object.create(n.prototype),i.prototype.constructor=i,t.exports=i},76775,(e,t,r)=>{var n=1e3,i=6e4,o=36e5,a=864e5,s=6048e5,f=315576e5;function u(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),u=(t[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return r*f;case"weeks":case"week":case"w":return r*s;case"days":case"day":case"d":return r*a;case"hours":case"hour":case"hrs":case"hr":case"h":return r*o;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function c(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+"d":t>=o?Math.round(e/o)+"h":t>=i?Math.round(e/i)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function l(e){var t=Math.abs(e);return t>=a?d(e,t,a,"day"):t>=o?d(e,t,o,"hour"):t>=i?d(e,t,i,"minute"):t>=n?d(e,t,n,"second"):e+" ms"}function d(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return u(e);if("number"===r&&isFinite(e))return t.long?l(e):c(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},65981,(e,t,r)=>{var n=e.r(76775);t.exports=function(e,t){var r=t||Math.floor(Date.now()/1e3);if("string"==typeof e){var i=n(e);if(void 0===i)return;return Math.floor(r+i/1e3)}if("number"==typeof e)return r+e}},46039,(e,t,r)=>{"use strict";t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},9201,(e,t,r)=>{"use strict";var n=e.i(47167);t.exports="object"==typeof n.default&&n.default.env&&n.default.env.NODE_DEBUG&&/\bsemver\b/i.test(n.default.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}},25488,(e,t,r)=>{"use strict";let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=e.r(46039),a=e.r(9201),s=(r=t.exports={}).re=[],f=r.safeRe=[],u=r.src=[],c=r.safeSrc=[],l=r.t={},d=0,h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[h,i]],b=e=>{for(let[t,r]of p)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},m=(e,t,r)=>{let n=b(t),i=d++;a(e,i,t),l[e]=i,u[i]=t,c[i]=n,s[i]=new RegExp(t,r?"g":void 0),f[i]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),m("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${h}+`),m("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),m("FULL",`^${u[l.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),m("LOOSE",`^${u[l.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),m("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",u[l.COERCE],!0),m("COERCERTLFULL",u[l.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",m("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",m("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},52145,(e,t,r)=>{"use strict";let n=Object.freeze({loose:!0}),i=Object.freeze({});t.exports=e=>e?"object"!=typeof e?n:e:i},19549,(e,t,r)=>{"use strict";let n=/^[0-9]+$/,i=(e,t)=>{if("number"==typeof e&&"number"==typeof t)return e===t?0:ei(t,e);t.exports={compareIdentifiers:i,rcompareIdentifiers:o}},6423,(e,t,r)=>{"use strict";let n=e.r(9201),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=e.r(46039),{safeRe:a,t:s}=e.r(25488),f=e.r(52145),{compareIdentifiers:u}=e.r(19549);class c{constructor(e,t){if(t=f(t),e instanceof c)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&te.major?1:this.minore.minor?1:this.patche.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return u(r,i)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(n("build compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return u(r,i)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?a[s.PRERELEASELOOSE]:a[s.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(r);if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=c},76293,(e,t,r)=>{"use strict";let n=e.r(6423);t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},82880,(e,t,r)=>{"use strict";let n=e.r(76293);t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}},89624,(e,t,r)=>{"use strict";let n=e.r(76293);t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},64894,(e,t,r)=>{"use strict";let n=e.r(6423);t.exports=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}}},26285,(e,t,r)=>{"use strict";let n=e.r(76293);t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;let a=o>0,s=a?r:i,f=a?i:r,u=!!s.prerelease.length;if(f.prerelease.length&&!u){if(!f.patch&&!f.minor)return"major";if(0===f.compareMain(s))return f.minor&&!f.patch?"minor":"patch"}let c=u?"pre":"";return r.major!==i.major?c+"major":r.minor!==i.minor?c+"minor":r.patch!==i.patch?c+"patch":"prerelease"}},56421,(e,t,r)=>{"use strict";let n=e.r(6423);t.exports=(e,t)=>new n(e,t).major},53246,(e,t,r)=>{"use strict";let n=e.r(6423);t.exports=(e,t)=>new n(e,t).minor},27315,(e,t,r)=>{"use strict";let n=e.r(6423);t.exports=(e,t)=>new n(e,t).patch},66415,(e,t,r)=>{"use strict";let n=e.r(76293);t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},41055,(e,t,r)=>{"use strict";let n=e.r(6423);t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},92636,(e,t,r)=>{"use strict";let n=e.r(41055);t.exports=(e,t,r)=>n(t,e,r)},61990,(e,t,r)=>{"use strict";let n=e.r(41055);t.exports=(e,t)=>n(e,t,!0)},80458,(e,t,r)=>{"use strict";let n=e.r(6423);t.exports=(e,t,r)=>{let i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},25379,(e,t,r)=>{"use strict";let n=e.r(80458);t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},49864,(e,t,r)=>{"use strict";let n=e.r(80458);t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},9982,(e,t,r)=>{"use strict";let n=e.r(41055);t.exports=(e,t,r)=>n(e,t,r)>0},2416,(e,t,r)=>{"use strict";let n=e.r(41055);t.exports=(e,t,r)=>0>n(e,t,r)},74171,(e,t,r)=>{"use strict";let n=e.r(41055);t.exports=(e,t,r)=>0===n(e,t,r)},98042,(e,t,r)=>{"use strict";let n=e.r(41055);t.exports=(e,t,r)=>0!==n(e,t,r)},10712,(e,t,r)=>{"use strict";let n=e.r(41055);t.exports=(e,t,r)=>n(e,t,r)>=0},8696,(e,t,r)=>{"use strict";let n=e.r(41055);t.exports=(e,t,r)=>0>=n(e,t,r)},62813,(e,t,r)=>{"use strict";let n=e.r(74171),i=e.r(98042),o=e.r(9982),a=e.r(10712),s=e.r(2416),f=e.r(8696);t.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return o(e,r,u);case">=":return a(e,r,u);case"<":return s(e,r,u);case"<=":return f(e,r,u);default:throw TypeError(`Invalid operator: ${t}`)}}},26439,(e,t,r)=>{"use strict";let n=e.r(6423),i=e.r(76293),{safeRe:o,t:a}=e.r(25488);t.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let n,i=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(n=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i.lastIndex=n.index+n[1].length+n[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===r)return null;let s=r[2],f=r[3]||"0",u=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",l=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${s}.${f}.${u}${c}${l}`,t)}},65059,(e,t,r)=>{"use strict";let n=e.r(76293),i=e.r(46039),o=e.r(6423),a=(e,t)=>n(e instanceof o?e.version:e,t),s=(e,t)=>{if(f(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0}return e.format()},f=e=>e.startsWith("pre");t.exports=(e,t,r)=>{if(!i.RELEASE_TYPES.includes(t))return null;let n=a(e,r);return n&&s(n,t)}},24960,(e,t,r)=>{"use strict";class n{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}t.exports=n},43639,(e,t,r)=>{"use strict";let n=/\s+/g;class i{constructor(e,t){if(t=a(t),e instanceof i)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else return new i(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!v(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(const e of this.set)if(1===e.length&&w(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,"");let t=((this.options.includePrerelease&&m)|(this.options.loose&&y))+":"+e,r=o.get(t);if(r)return r;let n=this.options.loose,i=n?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];f("hyphen replace",e=e.replace(i,T(this.options.includePrerelease))),f("comparator trim",e=e.replace(c[d.COMPARATORTRIM],h)),f("tilde trim",e=e.replace(c[d.TILDETRIM],p)),f("caret trim",e=e.replace(c[d.CARETTRIM],b));let a=e.split(" ").map(e=>x(e,this.options)).join(" ").split(/\s+/).map(e=>O(e,this.options));n&&(a=a.filter(e=>(f("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),f("range list",a);let u=new Map;for(let e of a.map(e=>new s(e,this.options))){if(v(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");let l=[...u.values()];return o.set(t,l),l}intersects(e,t){if(!(e instanceof i))throw TypeError("a Range is required");return this.set.some(r=>_(r,t)&&e.set.some(e=>_(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,w=e=>""===e.value,_=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},x=(e,t)=>(f("comp",e=e.replace(c[d.BUILD],""),t),f("caret",e=A(e,t)),f("tildes",e=S(e,t)),f("xrange",e=k(e,t)),f("stars",e=j(e,t)),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map(e=>M(e,t)).join(" "),M=(e,t)=>{let r=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return f("tilde",e,t,r,n,i,o),E(r)?a="":E(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:E(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(f("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,f("tilde return",a),a})},A=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{f("caret",e,t);let r=t.loose?c[d.CARETLOOSE]:c[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let s;return f("caret",e,t,r,i,o,a),E(r)?s="":E(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(o)?s="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(f("replaceCaret pr",a),s="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(f("no pr"),s="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),f("caret return",s),s})},k=(e,t)=>(f("replaceXRanges",e,t),e.split(/\s+/).map(e=>I(e,t)).join(" ")),I=(e,t)=>{e=e.trim();let r=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(r,(r,n,i,o,a,s)=>{f("xRange",e,r,n,i,o,a,s);let u=E(i),c=u||E(o),l=c||E(a),d=l;return"="===n&&d&&(n=""),s=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+i}.${o}.${a}${s}`):c?r=`>=${i}.0.0${s} <${+i+1}.0.0-0`:l&&(r=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),f("xRange return",r),r})},j=(e,t)=>(f("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),O=(e,t)=>(f("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),T=e=>(t,r,n,i,o,a,s,f,u,c,l,d)=>(r=E(n)?"":E(i)?`>=${n}.0.0${e?"-0":""}`:E(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`,f=E(u)?"":E(c)?`<${+u+1}.0.0-0`:E(l)?`<${u}.${+c+1}.0-0`:d?`<=${u}.${c}.${l}-${d}`:e?`<${u}.${c}.${+l+1}-0`:`<=${f}`,`${r} ${f}`.trim()),P=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},48953,(e,t,r)=>{"use strict";let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i)if(!!t.loose===e.loose)return e;else e=e.value;u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return f(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,t).test(this.value):""===e.operator?""===e.value||new l(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||f(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||f(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}t.exports=i;let o=e.r(52145),{safeRe:a,t:s}=e.r(25488),f=e.r(62813),u=e.r(9201),c=e.r(6423),l=e.r(43639)},47509,(e,t,r)=>{"use strict";let n=e.r(43639);t.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},21130,(e,t,r)=>{"use strict";let n=e.r(43639);t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},89609,(e,t,r)=>{"use strict";let n=e.r(6423),i=e.r(43639);t.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(a=new n(o=e,r))}),o}},78338,(e,t,r)=>{"use strict";let n=e.r(6423),i=e.r(43639);t.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(a=new n(o=e,r))}),o}},37468,(e,t,r)=>{"use strict";let n=e.r(6423),i=e.r(43639),o=e.r(9982);t.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!r||o(r,a))&&(r=a)}return r&&e.test(r)?r:null}},75337,(e,t,r)=>{"use strict";let n=e.r(43639);t.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},72781,(e,t,r)=>{"use strict";let n=e.r(6423),i=e.r(48953),{ANY:o}=i,a=e.r(43639),s=e.r(47509),f=e.r(9982),u=e.r(2416),c=e.r(8696),l=e.r(10712);t.exports=(e,t,r,d)=>{let h,p,b,m,y;switch(e=new n(e,d),t=new a(t,d),r){case">":h=f,p=c,b=u,m=">",y=">=";break;case"<":h=u,p=l,b=f,m="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let r=0;r{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,d)?a=e:b(e.semver,s.semver,d)&&(s=e)}),a.operator===m||a.operator===y||(!s.operator||s.operator===m)&&p(e,s.semver)||s.operator===y&&b(e,s.semver))return!1}return!0}},26539,(e,t,r)=>{"use strict";let n=e.r(72781);t.exports=(e,t,r)=>n(e,t,">",r)},16638,(e,t,r)=>{"use strict";let n=e.r(72781);t.exports=(e,t,r)=>n(e,t,"<",r)},97071,(e,t,r)=>{"use strict";let n=e.r(43639);t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},13782,(e,t,r)=>{"use strict";let n=e.r(47509),i=e.r(41055);t.exports=(e,t,r)=>{let o=[],a=null,s=null,f=e.sort((e,t)=>i(e,t,r));for(let e of f)n(e,t,r)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);let u=[];for(let[e,t]of o)e===t?u.push(e):t||e!==f[0]?t?e===f[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");let c=u.join(" || "),l="string"==typeof t.raw?t.raw:String(t);return c.length{"use strict";let n=e.r(43639),i=e.r(48953),{ANY:o}=i,a=e.r(47509),s=e.r(41055),f=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(let n of e.set){for(let e of t.set){let t=l(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},u=[new i(">=0.0.0-0")],c=[new i(">=0.0.0")],l=(e,t,r)=>{let n,i,f,l,p,b,m;if(e===t)return!0;if(1===e.length&&e[0].semver===o)if(1===t.length&&t[0].semver===o)return!0;else e=r.includePrerelease?u:c;if(1===t.length&&t[0].semver===o)if(r.includePrerelease)return!0;else t=c;let y=new Set;for(let t of e)">"===t.operator||">="===t.operator?n=d(n,t,r):"<"===t.operator||"<="===t.operator?i=h(i,t,r):y.add(t.semver);if(y.size>1)return null;if(n&&i&&((f=s(n.semver,i.semver,r))>0||0===f&&(">="!==n.operator||"<="!==i.operator)))return null;for(let e of y){if(n&&!a(e,String(n),r)||i&&!a(e,String(i),r))return null;for(let n of t)if(!a(e,String(n),r))return!1;return!0}let g=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,v=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(g&&1===g.prerelease.length&&"<"===i.operator&&0===g.prerelease[0]&&(g=!1),t)){if(m=m||">"===e.operator||">="===e.operator,b=b||"<"===e.operator||"<="===e.operator,n){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if((l=d(n,e,r))===e&&l!==n)return!1}else if(">="===n.operator&&!e.test(n.semver))return!1}if(i){if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if((p=h(i,e,r))===e&&p!==i)return!1}else if("<="===i.operator&&!e.test(i.semver))return!1}if(!e.operator&&(i||n)&&0!==f)return!1}return(!n||!b||!!i||0===f)&&(!i||!m||!!n||0===f)&&!v&&!g&&!0},d=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};t.exports=f},8528,(e,t,r)=>{"use strict";let n=e.r(25488),i=e.r(46039),o=e.r(6423),a=e.r(19549),s=e.r(76293),f=e.r(82880),u=e.r(89624),c=e.r(64894),l=e.r(26285),d=e.r(56421),h=e.r(53246),p=e.r(27315),b=e.r(66415),m=e.r(41055),y=e.r(92636),g=e.r(61990),v=e.r(80458),w=e.r(25379),_=e.r(49864),x=e.r(9982),E=e.r(2416),S=e.r(74171),M=e.r(98042),A=e.r(10712),R=e.r(8696),k=e.r(62813),I=e.r(26439),j=e.r(65059),O=e.r(48953),T=e.r(43639),P=e.r(47509),N=e.r(21130),L=e.r(89609),B=e.r(78338),C=e.r(37468),D=e.r(75337),U=e.r(72781),$=e.r(26539),q=e.r(16638),z=e.r(97071);t.exports={parse:s,valid:f,clean:u,inc:c,diff:l,major:d,minor:h,patch:p,prerelease:b,compare:m,rcompare:y,compareLoose:g,compareBuild:v,sort:w,rsort:_,gt:x,lt:E,eq:S,neq:M,gte:A,lte:R,cmp:k,coerce:I,truncate:j,Comparator:O,Range:T,satisfies:P,toComparators:N,maxSatisfying:L,minSatisfying:B,minVersion:C,validRange:D,outside:U,gtr:$,ltr:q,intersects:z,simplifyRange:e.r(13782),subset:e.r(53877),SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},61274,(e,t,r)=>{var n=e.i(47167);t.exports=e.r(8528).satisfies(n.default.version,">=15.7.0")},12036,(e,t,r)=>{var n=e.i(47167);t.exports=e.r(8528).satisfies(n.default.version,">=16.9.0")},76489,(e,t,r)=>{let n=e.r(61274),i=e.r(12036),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},a={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};t.exports=function(e,t){if(!e||!t)return;let r=t.asymmetricKeyType;if(!r)return;let s=o[r];if(!s)throw Error(`Unknown key type "${r}".`);if(!s.includes(e))throw Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(n)switch(r){case"ec":let f=t.asymmetricKeyDetails.namedCurve,u=a[e];if(f!==u)throw Error(`"alg" parameter "${e}" requires curve "${u}".`);break;case"rsa-pss":if(i){let r=parseInt(e.slice(-3),10),{hashAlgorithm:n,mgf1HashAlgorithm:i,saltLength:o}=t.asymmetricKeyDetails;if(n!==`sha${r}`||i!==n)throw Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(void 0!==o&&o>r>>3)throw Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}}},18421,(e,t,r)=>{var n=e.i(47167);t.exports=e.r(8528).satisfies(n.default.version,"^6.12.0 || >=8.0.0")},16493,(e,t,r)=>{var n=e.i(67034);let i=e.r(80537),o=e.r(34100),a=e.r(59261),s=e.r(39420),f=e.r(65981),u=e.r(76489),c=e.r(18421),l=e.r(72919),{KeyObject:d,createSecretKey:h,createPublicKey:p}=e.r(86914),b=["RS256","RS384","RS512"],m=["ES256","ES384","ES512"],y=["RS256","RS384","RS512"],g=["HS256","HS384","HS512"];c&&(b.splice(b.length,0,"PS256","PS384","PS512"),y.splice(y.length,0,"PS256","PS384","PS512")),t.exports=function(e,t,r,c){let v,w,_;if("function"!=typeof r||c||(c=r,r={}),r||(r={}),r=Object.assign({},r),v=c||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return v(new i("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return v(new i("nonce must be a non-empty string"));if(void 0!==r.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof r.allowInvalidAsymmetricKeyTypes)return v(new i("allowInvalidAsymmetricKeyTypes must be a boolean"));let x=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return v(new i("jwt must be provided"));if("string"!=typeof e)return v(new i("jwt must be a string"));let E=e.split(".");if(3!==E.length)return v(new i("jwt malformed"));try{w=s(e,{complete:!0})}catch(e){return v(e)}if(!w)return v(new i("invalid token"));let S=w.header;if("function"==typeof t){if(!c)return v(new i("verify must be called asynchronous if secret or public key is provided as a callback"));_=t}else _=function(e,r){return r(null,t)};return _(S,function(t,s){let c;if(t)return v(new i("error in secret or public key callback: "+t.message));let _=""!==E[2].trim();if(!_&&s)return v(new i("jwt signature is required"));if(_&&!s)return v(new i("secret or public key must be provided"));if(!_&&!r.algorithms)return v(new i('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=s&&!(s instanceof d))try{s=p(s)}catch(e){try{s=h("string"==typeof s?n.Buffer.from(s):s)}catch(e){return v(new i("secretOrPublicKey is not valid key material"))}}if(r.algorithms||("secret"===s.type?r.algorithms=g:["rsa","rsa-pss"].includes(s.asymmetricKeyType)?r.algorithms=y:"ec"===s.asymmetricKeyType?r.algorithms=m:r.algorithms=b),-1===r.algorithms.indexOf(w.header.alg))return v(new i("invalid algorithm"));if(S.alg.startsWith("HS")&&"secret"!==s.type)return v(new i(`secretOrPublicKey must be a symmetric key when using ${S.alg}`));if(/^(?:RS|PS|ES)/.test(S.alg)&&"public"!==s.type)return v(new i(`secretOrPublicKey must be an asymmetric key when using ${S.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{u(S.alg,s)}catch(e){return v(e)}try{c=l.verify(e,w.header.alg,s)}catch(e){return v(e)}if(!c)return v(new i("invalid signature"));let M=w.payload;if(void 0!==M.nbf&&!r.ignoreNotBefore){if("number"!=typeof M.nbf)return v(new i("invalid nbf value"));if(M.nbf>x+(r.clockTolerance||0))return v(new o("jwt not active",new Date(1e3*M.nbf)))}if(void 0!==M.exp&&!r.ignoreExpiration){if("number"!=typeof M.exp)return v(new i("invalid exp value"));if(x>=M.exp+(r.clockTolerance||0))return v(new a("jwt expired",new Date(1e3*M.exp)))}if(r.audience){let e=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(M.aud)?M.aud:[M.aud]).some(function(t){return e.some(function(e){return e instanceof RegExp?e.test(t):e===t})}))return v(new i("jwt audience invalid. expected: "+e.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&M.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(M.iss)))return v(new i("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&M.sub!==r.subject)return v(new i("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&M.jti!==r.jwtid)return v(new i("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&M.nonce!==r.nonce)return v(new i("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof M.iat)return v(new i("iat required when maxAge is specified"));let e=f(r.maxAge,M.iat);if(void 0===e)return v(new i('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(x>=e+(r.clockTolerance||0))return v(new a("maxAge exceeded",new Date(1e3*e)))}return!0===r.complete?v(null,{header:S,payload:M,signature:w.signature}):v(null,M)})}},45505,(e,t,r)=>{var n=1/0,i=0x1fffffffffffff,o=17976931348623157e292,a=0/0,s="[object Arguments]",f="[object Function]",u="[object GeneratorFunction]",c="[object String]",l="[object Symbol]",d=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,b=/^0o[0-7]+$/i,m=/^(?:0|[1-9]\d*)$/,y=parseInt;function g(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r-1&&e%1==0&&e-1&&e%1==0&&e<=i}function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function z(e){return!!e&&"object"==typeof e}function F(e){return"string"==typeof e||!B(e)&&z(e)&&R.call(e)==c}function H(e){return"symbol"==typeof e||z(e)&&R.call(e)==l}function K(e){return e?(e=W(e))===n||e===-n?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}function G(e){var t=K(e),r=t%1;return t==t?r?t-r:t:0}function W(e){if("number"==typeof e)return e;if(H(e))return a;if(q(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=q(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(d,"");var r=p.test(e);return r||b.test(e)?y(e.slice(2),r?2:8):h.test(e)?a:+e}function V(e){return C(e)?O(e):T(e)}function Y(e){return e?E(e,V(e)):[]}t.exports=function(e,t,r,n){e=C(e)?e:Y(e),r=r&&!n?G(r):0;var i=e.length;return r<0&&(r=j(i+r,0)),F(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&w(e,t,r)>-1}},8618,(e,t,r)=>{var n="[object Boolean]",i=Object.prototype.toString;function o(e){return!!e&&"object"==typeof e}t.exports=function(e){return!0===e||!1===e||o(e)&&i.call(e)==n}},11981,(e,t,r)=>{var n=1/0,i=17976931348623157e292,o=0/0,a="[object Symbol]",s=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,d=Object.prototype.toString;function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){return!!e&&"object"==typeof e}function b(e){return"symbol"==typeof e||p(e)&&d.call(e)==a}function m(e){return e?(e=g(e))===n||e===-n?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}function y(e){var t=m(e),r=t%1;return t==t?r?t-r:t:0}function g(e){if("number"==typeof e)return e;if(b(e))return o;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var r=u.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):f.test(e)?o:+e}t.exports=function(e){return"number"==typeof e&&e==y(e)}},51523,(e,t,r)=>{var n="[object Number]",i=Object.prototype.toString;function o(e){return!!e&&"object"==typeof e}t.exports=function(e){return"number"==typeof e||o(e)&&i.call(e)==n}},94425,(e,t,r)=>{var n="[object Object]";function i(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function o(e,t){return function(r){return e(t(r))}}var a=Object.prototype,s=Function.prototype.toString,f=a.hasOwnProperty,u=s.call(Object),c=a.toString,l=o(Object.getPrototypeOf,Object);function d(e){return!!e&&"object"==typeof e}t.exports=function(e){if(!d(e)||c.call(e)!=n||i(e))return!1;var t=l(e);if(null===t)return!0;var r=f.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==u}},23139,(e,t,r)=>{var n="[object String]",i=Object.prototype.toString,o=Array.isArray;function a(e){return!!e&&"object"==typeof e}t.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&i.call(e)==n}},62976,(e,t,r)=>{var n="Expected a function",i=1/0,o=17976931348623157e292,a=0/0,s="[object Symbol]",f=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt,h=Object.prototype.toString;function p(e,t){var r;if("function"!=typeof t)throw TypeError(n);return e=v(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){return!!e&&"object"==typeof e}function y(e){return"symbol"==typeof e||m(e)&&h.call(e)==s}function g(e){return e?(e=w(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}function v(e){var t=g(e),r=t%1;return t==t?r?t-r:t:0}function w(e){if("number"==typeof e)return e;if(y(e))return a;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(f,"");var r=c.test(e);return r||l.test(e)?d(e.slice(2),r?2:8):u.test(e)?a:+e}t.exports=function(e){return p(2,e)}},28316,(e,t,r)=>{var n=e.i(67034);let i=e.r(65981),o=e.r(18421),a=e.r(76489),s=e.r(72919),f=e.r(45505),u=e.r(8618),c=e.r(11981),l=e.r(51523),d=e.r(94425),h=e.r(23139),p=e.r(62976),{KeyObject:b,createSecretKey:m,createPrivateKey:y}=e.r(86914),g=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];o&&g.splice(3,0,"PS256","PS384","PS512");let v={expiresIn:{isValid:function(e){return c(e)||h(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return c(e)||h(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return h(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:f.bind(null,g),message:'"algorithm" must be a valid string enum value'},header:{isValid:d,message:'"header" must be an object'},encoding:{isValid:h,message:'"encoding" must be a string'},issuer:{isValid:h,message:'"issuer" must be a string'},subject:{isValid:h,message:'"subject" must be a string'},jwtid:{isValid:h,message:'"jwtid" must be a string'},noTimestamp:{isValid:u,message:'"noTimestamp" must be a boolean'},keyid:{isValid:h,message:'"keyid" must be a string'},mutatePayload:{isValid:u,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:u,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:u,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},w={iat:{isValid:l,message:'"iat" should be a number of seconds'},exp:{isValid:l,message:'"exp" should be a number of seconds'},nbf:{isValid:l,message:'"nbf" should be a number of seconds'}};function _(e,t,r,n){if(!d(r))throw Error('Expected "'+n+'" to be a plain object.');Object.keys(r).forEach(function(i){let o=e[i];if(!o){if(!t)throw Error('"'+i+'" is not allowed in "'+n+'"');return}if(!o.isValid(r[i]))throw Error(o.message)})}function x(e){return _(v,!1,e,"options")}function E(e){return _(w,!0,e,"payload")}let S={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},M=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];t.exports=function(e,t,r,o){"function"==typeof r?(o=r,r={}):r=r||{};let f="object"==typeof e&&!n.Buffer.isBuffer(e),u=Object.assign({alg:r.algorithm||"HS256",typ:f?"JWT":void 0,kid:r.keyid},r.header);function c(e){if(o)return o(e);throw e}if(!t&&"none"!==r.algorithm)return c(Error("secretOrPrivateKey must have a value"));if(null!=t&&!(t instanceof b))try{t=y(t)}catch(e){try{t=m("string"==typeof t?n.Buffer.from(t):t)}catch(e){return c(Error("secretOrPrivateKey is not valid key material"))}}if(u.alg.startsWith("HS")&&"secret"!==t.type)return c(Error(`secretOrPrivateKey must be a symmetric key when using ${u.alg}`));if(/^(?:RS|PS|ES)/.test(u.alg)){if("private"!==t.type)return c(Error(`secretOrPrivateKey must be an asymmetric key when using ${u.alg}`));if(!r.allowInsecureKeySizes&&!u.alg.startsWith("ES")&&void 0!==t.asymmetricKeyDetails&&t.asymmetricKeyDetails.modulusLength<2048)return c(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${u.alg}`))}if(void 0===e)return c(Error("payload is required"));if(f){try{E(e)}catch(e){return c(e)}r.mutatePayload||(e=Object.assign({},e))}else{let t=M.filter(function(e){return void 0!==r[e]});if(t.length>0)return c(Error("invalid "+t.join(",")+" option for "+typeof e+" payload"))}if(void 0!==e.exp&&void 0!==r.expiresIn)return c(Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==e.nbf&&void 0!==r.notBefore)return c(Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{x(r)}catch(e){return c(e)}if(!r.allowInvalidAsymmetricKeyTypes)try{a(u.alg,t)}catch(e){return c(e)}let l=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:f&&(e.iat=l),void 0!==r.notBefore){try{e.nbf=i(r.notBefore,l)}catch(e){return c(e)}if(void 0===e.nbf)return c(Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==r.expiresIn&&"object"==typeof e){try{e.exp=i(r.expiresIn,l)}catch(e){return c(e)}if(void 0===e.exp)return c(Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(S).forEach(function(t){let n=S[t];if(void 0!==r[t]){if(void 0!==e[n])return c(Error('Bad "options.'+t+'" option. The payload already has an "'+n+'" property.'));e[n]=r[t]}});let d=r.encoding||"utf8";if("function"==typeof o)o=o&&p(o),s.createSign({header:u,privateKey:t,payload:e,encoding:d}).once("error",o).once("done",function(e){if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(u.alg)&&e.length<256)return o(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${u.alg}`));o(null,e)});else{let n=s.sign({header:u,payload:e,secret:t,encoding:d});if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(u.alg)&&n.length<256)throw Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${u.alg}`);return n}}},1952,(e,t,r)=>{t.exports={decode:e.r(39420),verify:e.r(16493),sign:e.r(28316),JsonWebTokenError:e.r(80537),NotBeforeError:e.r(34100),TokenExpiredError:e.r(59261)}},13522,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=(0,r.createContext)(0),i=()=>(0,r.useContext)(n)??0,o=({children:e,as:r,level:o,ref:a,fragment:s,...f})=>{let u=r||"section",c=i();return(0,t.jsx)(n.Provider,{value:o??Math.min(6,c+1),children:s?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)(u,{ref:a,...f,children:e})})};e.s(["Section",0,o,"useSectionContext",0,i])},2388,e=>{"use strict";function t(e,...r){return String.raw({raw:e},...r)}e.s(["tw",0,t])},7670,e=>{"use strict";function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(r=0;r{"use strict";var t=e.i(2388),r=e.i(13522),n=e.i(7670),i=e.i(43476);let o={1:t.tw`heading-1`,2:t.tw`heading-2`,3:t.tw`heading-3`,4:t.tw`heading-4`,5:t.tw`heading-5`,6:t.tw`heading-6`},a=({text:e,level:t,visualLevel:a,className:s,children:f,unstyled:u=!1,...c})=>{let l=(0,r.useSectionContext)();t||l||console.warn("Heading component should be used within a Section component to determine its semantic level. Defaulting to h1 semantics.");let d=(t??l)||1,h=`h${d}`,p=f||e;return(0,i.jsx)(h,{className:(0,n.default)(!u&&o[a??d],"whitespace-pre-wrap",s),...c,children:p})};e.s(["Heading",0,a])},308,e=>{"use strict";var t=e.i(43476);e.i(71645);let r={Link:({href:e,...r})=>(0,t.jsx)("a",{href:e,...r}),Image:({src:e,ref:r,...n})=>{let{unoptimized:i,fill:o,quality:a,blurDataURL:s,placeholder:f,...u}=n;return(0,t.jsx)("img",{ref:r,src:"object"==typeof e?e.src:e,...u})}};e.s(["R",0,r])},71526,e=>{"use strict";let t=e=>"auto"===e?{}:{"data-theme":e};e.s(["getThemeAttribute",0,t])},53402,29315,93733,30628,76477,977,19805,67805,84977,26292,35423,72547,90668,69095,e=>{"use strict";let t;e.i(47167);var r=e.i(71645);function n(){return"u">typeof window}function i(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!n()&&(e instanceof Node||e instanceof o(e).Node)}function f(e){return!!n()&&(e instanceof Element||e instanceof o(e).Element)}function u(e){return!!n()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function c(e){return!(!n()||"u"!!e&&"none"!==e;function y(e){let t=f(e)?_(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!v()&&(m(t.backdropFilter)||m(t.filter))||p.test(t.willChange||"")||b.test(t.contain||"")}function g(e){let t=E(e);for(;u(t)&&!w(t);){if(y(t))return t;if(h(t))break;t=E(t)}return null}function v(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function w(e){return/^(html|body|#document)$/.test(i(e))}function _(e){return o(e).getComputedStyle(e)}function x(e){return f(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function E(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||a(e);return c(t)?t.host:t}function S(e){let t=E(e);return w(t)?e.ownerDocument?e.ownerDocument.body:e.body:u(t)&&l(t)?t:S(t)}function M(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=S(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),s=o(i);if(!a)return t.concat(i,M(i,[],r));{let e=A(s);return t.concat(s,s.visualViewport||[],l(i)?i:[],e&&r?M(e):[])}}function A(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,_,"getContainingBlock",0,g,"getDocumentElement",0,a,"getFrameElement",0,A,"getNodeName",0,i,"getNodeScroll",0,x,"getOverflowAncestors",0,M,"getParentNode",0,E,"getWindow",0,o,"isContainingBlock",0,y,"isElement",0,f,"isHTMLElement",0,u,"isLastTraversableNode",0,w,"isNode",0,s,"isOverflowElement",0,l,"isShadowRoot",0,c,"isTableElement",0,d,"isTopLayer",0,h,"isWebKit",0,v],29315);let R={...r};e.s(["SafeReact",0,R],93733);var k=r;let I={};function j(e,t){let r=k.useRef(I);return r.current===I&&(r.current=e(t)),r}e.s(["useRefWithInit",0,j],30628);let O=R.useInsertionEffect,T=O&&O!==R.useLayoutEffect?O:e=>e();function P(e){let t=j(N).current;return t.next=e,T(t.effect),t.trampoline}function N(){let e={next:void 0,callback:L,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function L(){}e.s(["useStableCallback",0,P],76477);var B=r;let C=()=>{},D="u">typeof document?B.useLayoutEffect:C;function U(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}e.s(["useIsoLayoutEffect",0,D],977);let $={};function q(e,t,r,n,i){if(!r&&!n&&!i&&!e)return F(t);let o=F(e);return t&&(o=H(o,t)),r&&(o=H(o,r)),n&&(o=H(o,n)),i&&(o=H(o,i)),o}function z(e){if(0===e.length)return $;if(1===e.length)return F(e[0]);let t=F(e[0]);for(let r=1;r=65&&i<=90&&("function"==typeof t||void 0===t)}function V(e){return"function"==typeof e}function Y(e,t){return V(e)?e(t):e??$}function X(e,t){return t?e?(...r)=>{let n=r[0];if(ee(n)){let i=n;Z(i);let o=t(...r);return i.baseUIHandlerPrevented||e?.(...r),o}let i=t(...r);return e?.(...r),i}:J(t):e}function J(e){return e?(...t)=>{let r=t[0];return ee(r)&&Z(r),e(...t)}:e}function Z(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Q(e,t){return t?e?t+" "+e:t:e}function ee(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,Z,"mergeClassNames",0,Q,"mergeProps",0,q,"mergePropsN",0,z],19805);let et=function(e,t){return function(r,...n){let i=new URL(e);return i.searchParams.set("code",r.toString()),n.forEach(e=>i.searchParams.append("args[]",e)),`${t} error #${r}; visit ${i} for the full message.`}}("https://base-ui.com/production-error","Base UI");e.s(["default",0,et],67805);var er=r;let en=er.createContext(void 0);function ei(e=!1){let t=er.useContext(en);if(void 0===t&&!e)throw Error(et(16));return t}e.s(["CompositeRootContext",0,en,"useCompositeRootContext",0,ei],84977);var eo=r;function ea(e){let{focusableWhenDisabled:t,disabled:r,composite:n=!1,tabIndex:i=0,isNativeButton:o}=e,a=n&&!1!==t,s=n&&!1===t;return{props:eo.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return n||(e.tabIndex=i,!o&&r&&(e.tabIndex=t?i:-1)),(o&&(t||a)||!o&&r)&&(e["aria-disabled"]=r),o&&(!t||s)&&(e.disabled=r),e},[n,r,t,a,s,o,i])}}function es(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:i=0,native:o=!0,composite:a}=e,s=r.useRef(null),f=ei(!0),u=a??void 0!==f,{props:c}=ea({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:i,isNativeButton:o}),l=r.useCallback(()=>{let e=s.current;ef(e)&&u&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)},[t,c.disabled,u]);return D(l,[l]),{getButtonProps:r.useCallback((e={})=>{let{onClick:r,onMouseDown:n,onKeyUp:i,onKeyDown:a,onPointerDown:s,...f}=e;return q({onClick(e){t?e.preventDefault():r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){if(t||(Z(e),a?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,i=e.currentTarget,s=ef(i),f=!o&&eu(i),c=n&&(o?s:!f),l="Enter"===e.key,d=" "===e.key,h=i.getAttribute("role"),p=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(n&&u&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),f||o&&s?(i.click(),e.preventBaseUIHandler()):c&&(r?.(e),e.preventBaseUIHandler());return}c&&(!o&&(d||l)&&e.preventDefault(),!o&&l&&r?.(e))},onKeyUp(e){t||((Z(e),i?.(e),e.target===e.currentTarget&&o&&u&&ef(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||o||u||" "!==e.key||r?.(e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},o?{type:"button"}:{role:"button"},c,f)},[t,c,u,o]),buttonRef:P(e=>{s.current=e,l()})}}function ef(e){return u(e)&&"BUTTON"===e.tagName}function eu(e){return!!(e?.tagName==="A"&&e?.href)}e.s(["useButton",0,es],53402);var ec=r;function el(e,t,r,n){let i=j(eh).current;return ep(i,e,t,r,n)&&em(i,[e,t,r,n]),i.callback}function ed(e){let t=j(eh).current;return eb(t,e)&&em(t,e),t.callback}function eh(){return{callback:null,cleanup:null,refs:[]}}function ep(e,t,r,n,i){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==n||e.refs[3]!==i}function eb(e,t){return e.refs.length!==t.length||e.refs.some((e,r)=>e!==t[r])}function em(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function ew(e){if(!ey.isValidElement(e))return null;let t=e,r=t.props;return(ev(19)?r?.ref:t.ref)??null}function e_(){}e.s(["isReactVersionAtLeast",0,ev],35423);let ex=Object.freeze([]),eE=Object.freeze({});function eS(e,t){let r={};for(let n in e){let i=e[n];if(t?.hasOwnProperty(n)){let e=t[n](i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=i.toString())}return r}function eM(e,t){return"function"==typeof e?e(t):e}function eA(e,t){return"function"==typeof e?e(t):e}function eR(e,t,r={}){let n=t.render,i=ek(t,r);return!1===r.enabled?null:eO(e,n,i,r.state??eE)}function ek(e,t={}){let{className:r,style:n,render:i}=e,{state:o=eE,ref:a,props:s,stateAttributesMapping:f,enabled:u=!0}=t,c=u?eM(r,o):void 0,l=u?eA(n,o):void 0,d=u?eS(o,f):eE,h=u&&s?eI(s):void 0,p=u?U(d,h)??{}:eE;return("u">typeof document&&(u?Array.isArray(a)?p.ref=ed([p.ref,ew(i),...a]):p.ref=el(p.ref,ew(i),a):el(null,null)),u)?(void 0!==c&&(p.className=Q(p.className,c)),void 0!==l&&(p.style=U(p.style,l)),p):eE}function eI(e){return Array.isArray(e)?z(e):q(void 0,e)}e.s(["EMPTY_ARRAY",0,ex,"EMPTY_OBJECT",0,eE,"NOOP",0,e_],72547),e.s(["resolveStyle",0,eA],90668);let ej=Symbol.for("react.lazy");function eO(e,t,r,n){if(t){if("function"==typeof t)return t(r,n);let e=q(r,t.props);e.ref=r.ref;let i=t;return i?.$$typeof===ej&&(i=ec.Children.toArray(t)[0]),ec.cloneElement(i,e)}if(e&&"string"==typeof e)return eT(e,r);throw Error(et(8))}function eT(e,t){return"button"===e?(0,ec.createElement)("button",{type:"button",...t,key:t.key}):"img"===e?(0,ec.createElement)("img",{alt:"",...t,key:t.key}):ec.createElement(e,t)}e.s(["useRenderElement",0,eR],69095)},72472,e=>{"use strict";var t=e.i(71645),r=e.i(53402),n=e.i(69095);let i=t.forwardRef(function(e,t){let{render:i,className:o,disabled:a=!1,focusableWhenDisabled:s=!1,nativeButton:f=!0,style:u,...c}=e,{getButtonProps:l,buttonRef:d}=(0,r.useButton)({disabled:a,focusableWhenDisabled:s,native:f}),h={disabled:a};return(0,n.useRenderElement)("button",e,{state:h,ref:[t,d],props:[c,l]})});e.s(["Button",0,i])},2085,e=>{"use strict";var t=e.i(308),r=e.i(71526),n=e.i(2388),i=e.i(7670),o=e.i(43476),a=e.i(72472);let s=n.tw`ease-ms inline-flex cursor-pointer items-center justify-center overflow-hidden text-center leading-none tracking-normal whitespace-nowrap transition-colors duration-300 disabled:cursor-not-allowed`,f={primary:n.tw`bg-brand text-white outline-brand hover:bg-brand-hover active:bg-brand-active disabled:opacity-40`,secondary:(0,i.default)("text-black-contrast outline-black-contrast hover:text-black-contrast border disabled:opacity-40",!1,"border-black-contrast/50 bg-black-contrast/10 text-black-contrast hover:text-white-contrast hover:bg-black-contrast"),hyperlink:(0,i.default)("outline-black-contrast disabled:opacity-40",!1,"h-5.5 gap-2"),tag:n.tw`bg-ms-grey-1 text-black hover:bg-brand hover:text-white`,naked:n.tw`disabled:opacity-40`},u=n.tw`outline-offset-4 focus-visible:outline-1`,c={sm:n.tw`label-sm gap-4`,default:n.tw`label-md gap-8`},l={sm:n.tw`py-2`,default:n.tw`py-4`},d={sm:n.tw`rounded-full py-2`,default:n.tw`rounded-full py-4`},h={sm:{before:n.tw`ps-2.5 pe-4`,after:n.tw`ps-4 pe-2.5`,alone:n.tw`px-2`},default:{before:n.tw`px-4`,after:n.tw`px-4`,alone:n.tw`px-4`}},p={sm:n.tw`rounded-full px-6 py-2`,default:n.tw`rounded-full px-5 py-3`},b=({variant:e="primary",size:t="default",icon:r,iconPosition:n="after",children:o,className:a})=>{let b=r&&!o||"alone"===n,m="hyperlink"===e,y="naked"===e,g=!m&&!y;return(0,i.default)(s,f[e],!y&&u,g&&[b?l[t]:[c[t],r?d[t]:p[t]]],b&&"rounded-full",r&&g&&h[t][n],a)},m=({iconPosition:e="after",icon:t,children:r})=>{let n=t&&!r||"alone"===e;return(0,o.jsxs)(o.Fragment,{children:[(n||"before"===e)&&t,"alone"===e&&r?(0,o.jsx)("span",{className:"sr-only",children:r}):r,!n&&"after"===e&&t]})},y=e=>{let{variant:t,size:n,iconPosition:i="after",icon:s,className:f,children:u,theme:c="auto",...l}=e;return(0,o.jsx)(a.Button,{className:b(e),...(0,r.getThemeAttribute)(c),...l,children:(0,o.jsx)(m,{iconPosition:i,icon:s,children:u})})},g=e=>{let{variant:n,size:i,iconPosition:a="after",icon:s,className:f,children:u,theme:c="auto",text:l,...d}=e;return(0,o.jsx)(t.R.Link,{className:b(e),...(0,r.getThemeAttribute)(c),...d,children:(0,o.jsx)(m,{iconPosition:a,icon:s,children:u||l})})};e.s(["Button",0,y,"ButtonLink",0,g,"variants",0,f])},50398,e=>{"use strict";var t=e.i(71645);function r(e,t){if(e){if("function"==typeof e)return void e(t);e.current=t}}function n(...e){let i=(0,t.useRef)(e);return(0,t.useEffect)(()=>{i.current=e}),(0,t.useCallback)(e=>{i.current.forEach(t=>r(t,e))},[])}e.s(["useMergedRefs",0,n])},65265,31461,e=>{"use strict";var t=e.i(308),r=e.i(50398);let n={sm:640,md:768,lg:1024,xl:1280,"2xl":1440,"3xl":1600},i={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",landscape:"(orientation: landscape)"};function o(e){let{default:t,...r}=e;return[...Object.entries(r).sort(([e],[t])=>n[t]-n[e]).map(([e,t])=>`(min-width: ${n[e]}px) ${t}`),t].join(", ")}e.s(["BREAKPOINTS",0,n,"RESPONSIVE_MEDIA_QUERY",0,i],31461);var a=e.i(7670),s=e.i(43476),f=e.i(71645);let u=300,c="ease-out";function l(e){let t=e.animate([{opacity:0},{opacity:1}],{duration:u,easing:c,fill:"forwards"});return t.finished.catch(()=>void 0),t}let d=({fade:e=!0,loading:n="lazy",onLoad:i,sizes:u,ref:c,src:d,style:h,className:p,...b})=>{let m=(0,f.useRef)(null),y=(0,r.useMergedRefs)((0,f.useRef)(null),c),g=(0,f.useMemo)(()=>"object"==typeof u?o(u):u,[]);(0,f.useEffect)(()=>()=>{m.current?.cancel()},[]);let v=(0,f.useCallback)(t=>{e&&(m.current?.cancel(),m.current=l(t))},[e]),w=(0,f.useCallback)(e=>{y(e),e&&e.complete&&0!==e.naturalWidth&&(e.setAttribute("data-loaded",""),v(e),i?.())},[y,v,i]),_=(0,f.useCallback)(t=>{t.currentTarget.setAttribute("data-loaded",""),e&&v(t.currentTarget),i?.(t)},[e,i,v]);return(0,s.jsx)(t.R.Image,{...b,className:(0,a.default)("select-none [-webkit-user-drag:none] [user-drag:none]",p),draggable:!1,sizes:g,src:d,loading:n,ref:w,onLoad:_,style:e?{...h,opacity:0}:h})};e.s(["Image",0,d],65265)},36665,18090,e=>{"use strict";function t(e){if(e?.fields?.link)return{href:e.fields.link,text:e.fields.text??"",...e.fields.openInNewTab&&{target:"_blank",rel:"noopener noreferrer"},...a(e.fields)}}function r(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let n={ecn:"data-bi-ecn",ehn:"data-bi-ehn",hn:"data-bi-hn",bhvr:"data-bi-bhvr",cn:"data-bi-cn"};function i(e){let t={};for(let i of Object.keys(e)){let o=e[i];if("string"==typeof o||"boolean"==typeof o||"number"==typeof o){if(i.startsWith("data-"))t[i]=String(o);else if(/^data[A-Z]/.test(i))t[r(i)]=String(o);else if(i in n){let e=n[i];e in t||(t[e]=String(o))}}}return t}function o(e){if(null==e||"object"!=typeof e)return;let t=i(e);return Object.keys(t).length>0?t:void 0}function a(e){if(null==e||"object"!=typeof e)return;let t=e,r={...i(t)};return"string"==typeof t["aria-label"]?r["aria-label"]=t["aria-label"]:"string"==typeof t.ariaLabel&&(r["aria-label"]=t.ariaLabel),"boolean"==typeof t.disabled&&(r.disabled=String(t.disabled)),"string"==typeof t.variant&&(r.variant=t.variant),Object.keys(r).length>0?r:void 0}e.s(["pickButtonAttributes",0,a,"pickDataAttributes",0,o,"resolveCtaToLink",0,t],36665);var s=e.i(88674),f=e.i(6510);function u(e){let t=e?.fields?.images?.[0]?.fields?.file,r=e?.fields?.file,n=t??r,i=(0,s.normalizeUrl)(n?.url??"")||n?.url||(0,s.normalizeUrl)(e?.fields?.url??"")||e?.fields?.url||"";return{src:i?(0,f.secureAssetUrlWithParams)(i):"",alt:e?.fields?.altText??e?.fields?.title??e?.fields?.description??"",width:n?.details?.image?.width,height:n?.details?.image?.height}}e.s(["resolveMediaImage",0,u],18090)},23485,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=({children:e,animation:n="fade-in",mode:i="once",className:o=""})=>{let a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=a.current;if(!e)return;if("u"{e.forEach(e=>{e.isIntersecting?(e.target.classList.add("show"),"once"===i&&t.unobserve(e.target)):"always"===i&&e.target.classList.remove("show")})},{threshold:.15});return t.observe(e),()=>t.disconnect()},[i]),(0,t.jsx)("div",{ref:a,className:`animate ${n} ${i} ${o}`.trim(),children:e})};e.s(["AnimateOnScroll",0,n])},21235,48533,95877,e=>{"use strict";e.s(["default",()=>e4],21235);var t=e.i(43476),r=e.i(71645),n=e.i(56438),i=e.i(96463);e.s(["RichTextRenderer",()=>e2,"default",()=>e6],95877);var o=t,a=r,s=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),f=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({});function u(e,t){for(let r of Object.keys(e))if(t===e[r])return!0;return!1}function c(e){return u(f,e.nodeType)}function l(e){return u(s,e.nodeType)}function d(e){return"text"===e.nodeType}function h(e){if(e.nodeType!==s.PARAGRAPH||1!==e.content.length)return!1;let t=e.content[0];return"text"===t.nodeType&&""===t.value}function p(e){return null!=e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}let b=2;function m(e){return!p(e)||e.content.length({details:`The type of "${t}" is incorrect, expected type: ${r}`,name:"type",path:e.toArray(),type:r,value:n}),S=({min:e,value:t,path:r})=>({name:"size",min:e,path:r.toArray(),details:`Size must be at least ${e}`,value:t}),M=({max:e,value:t,path:r})=>({name:"size",max:e,path:r.toArray(),details:`Size must be at most ${e}`,value:t}),A=({expected:e,value:t,path:r})=>({details:"Value must be one of expected values",name:"in",expected:[...e].sort(),path:r.toArray(),value:t}),R=({property:e,path:t})=>({details:`The property "${e}" is not expected`,name:"unexpected",path:t.toArray()}),k=({property:e,path:t})=>({details:`The property "${e}" is required here`,name:"required",path:t.toArray()});class I{obj;path;_errors=[];constructor(e,t){this.obj=e,this.path=t}catch=(...e)=>{this._errors.push(...e)};get errors(){let e=e=>JSON.stringify({details:e.details,path:e.path});return this._errors.filter((t,r)=>this._errors.findIndex(r=>e(t)===e(r))===r)}exists=e=>e in this.obj||(this.catch(k({property:e,path:this.path.of(e)})),!1);object=e=>{let t=e?this.obj[e]:this.obj;if(e&&!this.exists(e))return!1;if("object"==typeof t&&!Array.isArray(t)&&null!==t)return!0;let r=e?this.path.of(e):this.path,n=e??this.path.last()??"value";return this.catch(E({typeName:"Object",property:n,path:r,value:t})),!1};string=e=>{let t=this.obj[e];return(!e||!!this.exists(e))&&("string"==typeof t||(this.catch(E({typeName:"String",property:e,path:this.path.of(e),value:t})),!1))};number=(e,t)=>{let r=this.obj[e];return!!t&&!(e in this.obj)||!!this.exists(e)&&(!("number"!=typeof r||Number.isNaN(r))||(this.catch(E({typeName:"Number",property:e,path:this.path.of(e),value:r})),!1))};array=e=>{let t=this.obj[e];return(!e||!!this.exists(e))&&(!!Array.isArray(t)||(this.catch(E({typeName:"Array",property:e,path:this.path.of(e),value:t})),!1))};enum=(e,t)=>{let r=this.obj[e];return!!("string"==typeof r&&t.includes(r))||(this.catch(A({expected:t,value:r,path:this.path.of(e)})),!1)};empty=e=>{if(!this.array(e))return!1;let t=this.obj[e];return 0===t.length||(this.catch(M({max:0,value:t,path:this.path.of(e)})),!1)};minLength=(e,t)=>{if(!this.array(e))return!1;let r=this.obj[e];return r.length>=t||(this.catch(S({min:t,value:r,path:this.path.of(e)})),!1)};noAdditionalProperties=e=>{let t=Object.keys(this.obj).sort().filter(t=>!e.includes(t));return t.forEach(e=>this.catch(R({property:e,path:this.path.of(e)}))),0===t.length};each=(e,t)=>{if(!this.array(e))return;let r=this.obj[e],n=!1;r.forEach((r,i)=>{if(n)return;let o=t(r,this.path.of(e).of(i));o.length>0&&(n=!0),this.catch(...o)})}}let j=[];class O{contentRule;validateData;constructor(e,t){this.contentRule=e,this.validateData=t}assert(e,t){let r=new I(e,t);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);let{nodeTypes:n,min:i=0}=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t);if(0===n.length&&i>0)throw Error(`Invalid content rule. Cannot have enforce a 'min' of ${i} with no nodeTypes`);if(r.minLength("content",i),0===n.length?r.empty("content"):r.each("content",(e,t)=>{let r=new I(e,t);return r.object()&&r.enum("nodeType",n),r.errors}),r.object("data")){let n=this.validateData?.(e.data,t.of("data"))??[];r.catch(...n)}return r.errors}}class T extends O{linkType;type;constructor(e,t){super(t,(e,t)=>this.assertLink(e,t)),this.linkType=e,this.type=this.linkType.startsWith("Contentful:")?"ResourceLink":"Link"}assertLink=(e,t)=>{let r=new I(e,t);if(r.object("target")){let n=new I(e.target.sys,t.of("target").of("sys"));n.object()&&(n.enum("type",[this.type]),n.enum("linkType",[this.linkType]),"Link"===this.type?(n.string("id"),n.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===this.type&&(n.string("urn"),n.noAdditionalProperties(["type","linkType","urn"]))),r.catch(...n.errors)}return r.noAdditionalProperties(["target"]),r.errors}}class P extends O{constructor(){super(["text"],(e,t)=>this.assertLink(e,t))}assertLink=(e,t)=>{let r=new I(e,t);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}}let N=(e,t)=>new O(e,t),L=(e,t)=>new T(e,t);N([...Object.values(f),"text"].sort()),N([s.LIST_ITEM]),L("Entry",j),N(()=>({nodeTypes:[s.PARAGRAPH],min:1}),(e,t)=>{let r=new I(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors}),s.DOCUMENT,N(v),s.PARAGRAPH,s.HEADING_1,s.HEADING_2,s.HEADING_3,s.HEADING_4,s.HEADING_5,s.HEADING_6,s.QUOTE,N(_[s.QUOTE]),s.EMBEDDED_ENTRY,s.EMBEDDED_ASSET,L("Asset",j),s.EMBEDDED_RESOURCE,L("Contentful:Entry",j),s.HR,N(j),s.OL_LIST,s.UL_LIST,s.LIST_ITEM,N([...w].sort()),s.TABLE,N(()=>({nodeTypes:[s.TABLE_ROW],min:1})),s.TABLE_ROW,N(()=>({nodeTypes:[s.TABLE_CELL,s.TABLE_HEADER_CELL],min:1})),s.TABLE_CELL,s.TABLE_HEADER_CELL,f.HYPERLINK,new P,f.EMBEDDED_ENTRY,f.EMBEDDED_RESOURCE,L("Contentful:Entry",j),f.ENTRY_HYPERLINK,L("Entry",["text"]),f.ASSET_HYPERLINK,L("Asset",["text"]),f.RESOURCE_HYPERLINK,L("Contentful:Entry",["text"]);var B=y;function C(e,t){return(0,a.isValidElement)(e)&&null===e.key?(0,a.cloneElement)(e,{key:t}):e}function D(e,t){return e.map((e,r)=>C(U(e,t),r))}function U(e,t){let{renderNode:r,renderMark:n,renderText:i,preserveWhitespace:o}=t;if(B.isText(e)){let t=i?i(e.value):e.value;if(o&&!i){let e=(t=t.replace(/ {2,}/g,e=>" ".repeat(e.length))).split("\n"),r=[];e.forEach((t,n)=>{r.push(t),n!==e.length-1&&r.push(a.default.createElement("br",null))}),t=r}return e.marks.reduce((e,t)=>n[t.type]?n[t.type](e):e,t)}{let n=D(e.content,t);return e.nodeType&&r[e.nodeType]?r[e.nodeType](e,n):a.default.createElement(a.default.Fragment,null,n)}}let $={[s.DOCUMENT]:(e,t)=>t,[s.PARAGRAPH]:(e,t)=>a.default.createElement("p",null,t),[s.HEADING_1]:(e,t)=>a.default.createElement("h1",null,t),[s.HEADING_2]:(e,t)=>a.default.createElement("h2",null,t),[s.HEADING_3]:(e,t)=>a.default.createElement("h3",null,t),[s.HEADING_4]:(e,t)=>a.default.createElement("h4",null,t),[s.HEADING_5]:(e,t)=>a.default.createElement("h5",null,t),[s.HEADING_6]:(e,t)=>a.default.createElement("h6",null,t),[s.EMBEDDED_ENTRY]:(e,t)=>a.default.createElement("div",null,t),[s.EMBEDDED_RESOURCE]:(e,t)=>a.default.createElement("div",null,t),[s.UL_LIST]:(e,t)=>a.default.createElement("ul",null,t),[s.OL_LIST]:(e,t)=>a.default.createElement("ol",null,t),[s.LIST_ITEM]:(e,t)=>a.default.createElement("li",null,t),[s.QUOTE]:(e,t)=>a.default.createElement("blockquote",null,t),[s.HR]:()=>a.default.createElement("hr",null),[s.TABLE]:(e,t)=>a.default.createElement("table",null,a.default.createElement("tbody",null,t)),[s.TABLE_ROW]:(e,t)=>a.default.createElement("tr",null,t),[s.TABLE_HEADER_CELL]:(e,t)=>a.default.createElement("th",null,t),[s.TABLE_CELL]:(e,t)=>a.default.createElement("td",null,t),[f.ASSET_HYPERLINK]:e=>z(f.ASSET_HYPERLINK,e),[f.ENTRY_HYPERLINK]:e=>z(f.ENTRY_HYPERLINK,e),[f.RESOURCE_HYPERLINK]:e=>F(f.RESOURCE_HYPERLINK,e),[f.EMBEDDED_ENTRY]:e=>z(f.EMBEDDED_ENTRY,e),[f.EMBEDDED_RESOURCE]:(e,t)=>F(f.EMBEDDED_RESOURCE,e),[f.HYPERLINK]:(e,t)=>a.default.createElement("a",{href:e.data.uri},t)},q={[g.BOLD]:e=>a.default.createElement("b",null,e),[g.ITALIC]:e=>a.default.createElement("i",null,e),[g.UNDERLINE]:e=>a.default.createElement("u",null,e),[g.CODE]:e=>a.default.createElement("code",null,e),[g.SUPERSCRIPT]:e=>a.default.createElement("sup",null,e),[g.SUBSCRIPT]:e=>a.default.createElement("sub",null,e),[g.STRIKETHROUGH]:e=>a.default.createElement("s",null,e)};function z(e,t){return a.default.createElement("span",{key:t.data.target.sys.id},"type: ",t.nodeType," id: ",t.data.target.sys.id)}function F(e,t){return a.default.createElement("span",{key:t.data.target.sys.urn},"type: ",t.nodeType," urn: ",t.data.target.sys.urn)}function H(e,t={}){if(!e)return null;let r=e;return t.stripEmptyTrailingParagraph&&(r=B.stripEmptyTrailingParagraphFromDocument(e)),U(r,{renderNode:{...$,...t.renderNode},renderMark:{...q,...t.renderMark},renderText:t.renderText,preserveWhitespace:t.preserveWhitespace})}var K=r,G=e.i(22016),W=n,V=e.i(47459),Y=e.i(6510),X=t,J=t,Z=G,Q=t;let ee=({text:e="",classes:t="",inlineStyles:r=""})=>e?(0,Q.jsx)("span",{className:`inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded-sm ${t}`,style:r?(()=>{try{return JSON.parse(r)}catch{return}})():void 0,children:e}):null;var et=i,er=t;let en=({description:e,classes:t="",id:r,includes:n})=>e?(0,er.jsx)("div",{id:r,className:`prose max-w-none ${t}`,children:(0,er.jsx)(e6,{document:e,includes:n})}):null;var ei=n;function eo(e){return"string"!=typeof e?e:e.split(";").filter(Boolean).reduce((e,t)=>{let r=t.indexOf(":");if(-1===r)return e;let n=t.slice(0,r),i=t.slice(r+1);return n.trim()&&i.trim()&&(e[n.trim().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]=i.trim()),e},{})}var ea=V,es=e.i(88674);let ef=({fields:e,card:t,alignment:r="left",includes:n,href:i,preHeadingContent:o,wrapperClassName:a})=>{if(!t?.fields&&!e)return null;let{badge:s,heading:f,description:u,cta:c=[],asset:l,classes:d="",inlineStyles:h=""}=t?.fields??e,p=(0,es.resolveBadge)(s),b=(0,es.resolveHeadingFields)(f),m=(0,J.jsxs)(J.Fragment,{children:[l?.fields&&(0,J.jsx)(ea.default,{fields:l.fields}),(0,J.jsxs)("div",{className:`${"right"===r?"text-right":"center"===r?"text-center":"text-left"}`,children:[p&&(0,J.jsx)(ee,{...p}),o,b&&(0,J.jsx)(et.default,{fields:b}),u&&(0,J.jsx)("div",{className:"mb-3",children:(0,J.jsx)(en,{description:u,includes:n})})]}),c?.length>0&&(0,J.jsx)("div",{className:"card-footer",children:(0,J.jsx)(ei.default,{cta:c})})]}),y=a||`col ${d}`,g=h?eo(h):void 0;return i?(0,J.jsx)(Z.default,{href:i,className:y,style:g,"aria-label":b?.text||void 0,children:m}):(0,J.jsx)("div",{className:y,style:g,children:m})};var eu=V,ec=t,el=i,ed=n,eh=V,ep=t,eb=es,em=t;function ey({data:e}){return(0,em.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}})}function eg(e){return{"@context":"https://schema.org","@type":"VideoObject",...e.title&&{name:e.title},...e.description&&{description:e.description},...e.thumbnailUrl&&{thumbnailUrl:e.thumbnailUrl},uploadDate:e.uploadDate,duration:e.duration,contentUrl:e.contentUrl,embedUrl:e.contentUrl}}var ev=e.i(27347);e.i(27344),e.i(79712),e.i(1952);var ew=Y;let e_=({fields:e,context:t="body"})=>{let r,n;if(!e)return null;let{videos:i=[],posterImage:o,title:a,description:s,ttml:f,transcript:u,style:c="No Rounded",isAutoPlay:l=!1,uploadedDate:d,duration:h,type:p}=e;if(0===i.length)return null;let b=i[0]?.fields?.file;if(!b?.url)return null;let m=(0,eb.normalizeUrl)(b.url),y=(0,ew.secureAssetUrlWithParams)(m);if(o){let e=o.fields||o;n=(r=(0,eb.normalizeUrl)(e?.file?.url))?(0,ew.secureAssetUrlWithParams)(r):void 0}let g=f?.fields?.file?.url?(0,ew.secureAssetUrlWithParams)((0,eb.normalizeUrl)(f.fields.file.url)):void 0,v=u?.fields?.file?.url?(0,ew.secureAssetUrlWithParams)((0,eb.normalizeUrl)(u.fields.file.url)):void 0,w="card"===t?"umpvideo":"cf-mediavideo",_=c.startsWith("More Rounded")?"rounded-2xl":c.startsWith("Rounded")?"rounded-lg":"";return"HTML5"===p?(0,ep.jsx)("video",{src:y,poster:n,title:a,autoPlay:l,muted:l,loop:l,className:_}):(0,ep.jsxs)(ep.Fragment,{children:[(0,ep.jsx)(ev.default,{videoUrl:y,posterUrl:n,title:a,description:s,ttmlUrl:g,transcriptUrl:v,isAutoPlay:l,componentName:w,borderRadius:_}),d&&h&&(0,ep.jsx)(ey,{data:eg({title:a,description:s,thumbnailUrl:n,uploadDate:d,duration:h,contentUrl:y})})]})};e.s(["default",0,e_],48533);var ex=es;let eE=({card:e,includes:t})=>{if(!e?.fields)return null;let{id:r,classes:n="",inlineStyles:i="",badge:o,heading:a,description:s,cta:f=[],asset:u,isClickable:c}=e.fields,l=n.includes("fullbleed"),d=n.includes("image-left"),h=n.includes("big-image"),p=n.includes("small-image"),b=n.includes("container-bg"),m=h?"md:w-8/12":p?"md:w-5/12":"md:w-6/12",y=d?"order-last":"order-last md:order-first",g=!b&&i?eo(i):void 0,v=b&&i?eo(i):void 0,w=(0,ex.resolveBadge)(o),_=(0,ex.resolveHeadingFields)(a),x=u&&u.fields?.images,E=u&&u.fields?.videos;return(0,ec.jsx)("section",{id:r||void 0,className:n,style:g,...c?{"data-mount":"click-group"}:{},children:(0,ec.jsx)("div",{className:l?"w-full":"max-w-screen-xl mx-auto px-4",children:(0,ec.jsx)("div",{className:"rounded-lg overflow-hidden",style:v,children:(0,ec.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,ec.jsx)("div",{className:`flex ${y} flex-1`,children:(0,ec.jsxs)("div",{className:"self-center p-6 md:p-10",children:[w&&(0,ec.jsx)(ee,{...w}),_&&(0,ec.jsx)(el.default,{fields:_}),s&&(0,ec.jsx)("div",{className:"mb-3",children:(0,ec.jsx)(en,{description:s,includes:t})}),f?.length>0&&(0,ec.jsx)(ed.default,{cta:f})]})}),(0,ec.jsxs)("div",{className:`${m} self-center`,children:[x&&(0,ec.jsx)(eh.default,{fields:u.fields}),E&&(0,ec.jsx)("div",{className:"pt-3",children:(0,ec.jsx)(e_,{fields:u.fields})})]})]})})})})};var eS=t,eM=i,eA=n,eR=V;let ek=({fields:e})=>e?.cards?.length?(0,eS.jsx)("div",{"data-componentname":"SmallCards",id:`${e.id}`,className:"ms-small-cards-grid",children:e.cards.map(e=>{let t=e.fields.heading,r=e.fields.cta,n=e.fields.asset;return t?.fields.text&&r?(0,eS.jsxs)("div",{className:"ms-small-card",children:[n&&(0,eS.jsx)("div",{className:"ms-small-card-image",children:(0,eS.jsx)(eR.default,{fields:n.fields})}),(0,eS.jsxs)("div",{className:"ms-small-card-content",children:[(0,eS.jsx)(eM.default,{fields:t.fields}),(0,eS.jsx)(eA.default,{cta:r})]})]},e.sys.id):null})}):null;var eI=t,ej=e.i(13522),eO=e.i(99627),eT=e.i(2085),eP=eO,eN=e.i(65265),eL=e.i(7670),eB=t,eC=e.i(37932);let eD=({title:e,description:t,primaryLink:r,secondaryLink:n,image:i,className:o})=>(0,eB.jsxs)("article",{className:(0,eL.default)("bg-ms-grey-1 flex h-full flex-col overflow-hidden rounded-lg",o),children:[(0,eB.jsxs)("div",{className:"flex flex-1 flex-col px-7 pt-10 lg:px-20",children:[(0,eB.jsx)(eP.Heading,{unstyled:!0,className:"heading-5 lg:heading-4 text-center",children:e}),(0,eB.jsx)("div",{className:"body mt-3 text-center",children:t}),(0,eB.jsxs)("div",{className:"mt-5 flex flex-wrap justify-center gap-x-6 gap-y-3",children:[r&&(0,eB.jsx)(eT.ButtonLink,{size:"sm",variant:"hyperlink",icon:(0,eB.jsx)(eC.ChevronRightIcon,{className:"mt-0.5 h-2.5 rtl:-scale-x-100"}),...r}),n&&(0,eB.jsx)(eT.ButtonLink,{size:"sm",variant:"hyperlink",icon:(0,eB.jsx)(eC.ChevronRightIcon,{className:"mt-0.5 h-2.5 rtl:-scale-x-100"}),...n})]})]}),(0,eB.jsx)("div",{className:"mt-10",children:(0,eB.jsx)(eN.Image,{...i,sizes:{default:"90vw",md:"40vw"},className:"h-auto w-full object-contain"})})]});var eU=eL,e$=t;let eq=({heading:e,layout:t,description:r,items:n,children:i,tagsPrefix:o,tags:a,className:s,...f})=>(0,e$.jsx)(ej.Section,{className:(0,eU.default)("bg-white pt-15 pb-30 lg:pt-20 lg:pb-40",s),"data-theme":"light",...f,children:(0,e$.jsxs)("div",{className:"container px-5 md:px-36",children:[(0,e$.jsxs)("div",{className:(0,eU.default)("max-w-2xl","centered"===t&&"mx-auto text-center"),children:[e&&(0,e$.jsx)(eO.Heading,{unstyled:!0,className:"heading-5 md:heading-4 lg:heading-3",children:e}),r&&(0,e$.jsx)("div",{className:"heading-6 lg:heading-5 mt-4",children:r}),a&&(0,e$.jsxs)("div",{className:(0,eU.default)("mt-8 flex flex-wrap items-center gap-2 lg:mt-10","centered"===t&&"justify-center"),children:[o&&(0,e$.jsx)("span",{className:"body-sm",children:o}),a.map(e=>(0,e$.jsx)("span",{className:"body-sm bg-elevated rounded-[4px] px-1 py-0.5",children:e},e))]})]}),(0,e$.jsx)("div",{className:(0,eU.default)("mx-auto mt-15 grid grid-cols-1 gap-2 lg:mt-20 lg:grid-cols-2"),children:i??n?.map((e,t)=>(0,e$.jsx)(eD,{...e},t))})]})});var ez=e.i(36665),eF=e.i(18090);function eH(e){if(Array.isArray(e))return e.filter(Boolean);if(!e||"object"!=typeof e)return[];let t=e,r=t.fields?.tilesItems??t.fields?.tilesItems??t.fields?.items??t.fields?.tilesItemss;return Array.isArray(r)?r.filter(Boolean):[]}let eK=(e,t)=>{let r=e?.fields??{},n=r.heading?.fields?.text??("string"==typeof r.heading?r.heading:void 0)??r.title??"",i=r.description?(0,eI.jsx)(e2,{document:r.description,includes:t}):"",o=(0,eF.resolveMediaImage)(r.image??r.asset)??{src:"",alt:""};return{title:n,description:i,image:o,primaryLink:(0,ez.resolveCtaToLink)(r.primaryLink)??{href:"#",text:""},secondaryLink:(0,ez.resolveCtaToLink)(r.secondaryLink)}},eG=({fields:e,includes:t})=>{let{id:r,heading:n,description:i,tilesItems:o,layout:a,...s}=e,f=e,u=eH(o??f.tileItem??f.items),c=f.tagsPrefix,l=f.tags,d=n?.fields?.text??"";if(2!==u.length&&4!==u.length)return null;let h=2===u.length?[eK(u[0],t),eK(u[1],t)]:[eK(u[0],t),eK(u[1],t),eK(u[2],t),eK(u[3],t)],p=i?(0,eI.jsx)(e2,{document:i,includes:t}):void 0,b="default"===a||"centered"===a?a:void 0;return(0,eI.jsx)("div",{"data-componentname":"WrapperTiles",id:r,children:(0,eI.jsx)(eq,{heading:d,description:p,layout:b,tagsPrefix:"string"==typeof c?c:void 0,tags:Array.isArray(l)?l.filter(e=>"string"==typeof e):void 0,items:h,...(0,ez.pickDataAttributes)(s)})})};var eW=e.i(23485);function eV(e){return String(e?.sys?.contentType?.sys?.id??"").toLowerCase()}function eY(e){let t=eV(e);if("tileitem"===t||"tileitems"===t)return!0;let r=e?.fields??{};return!!(r?.primaryLink||r?.secondaryLink||r?.image)}let eX=({fields:e,includes:t})=>{if(!e?.cards?.length)return null;let{cards:r,type:n}=e,i=e;if("Cards"===n){let t=r.find(e=>"tiles"===eV(e));if(t?.fields){let r=t.fields;return(0,X.jsx)(eG,{fields:{...r,id:r.id??e.id,heading:r.heading??i.heading,tileItem:r.tileItem??r.items}})}if(r.some(e=>eY(e)))return(0,X.jsx)(eG,{fields:{...e,tileItem:r}})}if("Product Card"===n){let n=e.classes||"",i=e.inlineStyles||"",o=n.includes("fullbleed")?"fullbleed":"container",a=n.includes("lg-cards")?"lg":"md",s=r.length,f=n.includes("equal")||n.includes("height")?"h-100":"",u=n.includes("version2"),c=n.includes("copy-first")?"order-first pb-4":"",l=s>6&&n.includes("copilot-hub-cards")||s>=5?"row-cols-sm-2 row-cols-lg-3 justify-content-center":s>=4?"row-cols-sm-2 row-cols-lg-4":`row-cols-${a}-${s}`,d=n.includes("container-bg"),h=!d&&i?eo(i):void 0,p=d&&i?eo(i):void 0;return(0,X.jsx)("div",{id:e.id||void 0,className:`cmo-cards ${n}`,style:h,"data-componentname":"cf-cards",children:(0,X.jsx)("div",{className:o,children:(0,X.jsx)("div",{className:`row row-cols-1 ${l}`,style:p,children:r.map(e=>{let r=e?.fields?.classes||"",n=e?.fields?.inlineStyles||"",i=e?.fields?.isClickable?{"data-mount":"click-group"}:{};return u?(0,X.jsx)("div",{className:`col mt-3 ${r}`,style:n?eo(n):void 0,children:(0,X.jsxs)("div",{className:`card-img-overlay ${f}`,...i,children:[(0,X.jsx)("div",{className:"card-background",children:e?.fields?.asset?.fields?.images&&(0,X.jsx)(eu.default,{fields:e.fields.asset.fields})}),(0,X.jsx)("div",{className:"card-foreground p-4",children:(0,X.jsx)(ef,{card:e,fields:e?.fields,includes:t,wrapperClassName:`card-body ${c}`})})]})},e?.sys?.id):(0,X.jsx)("div",{className:`col mt-3 ${r}`,children:(0,X.jsx)("div",{className:`card ${f}`,style:n?eo(n):void 0,...i,children:(0,X.jsx)(ef,{card:e,fields:e?.fields,includes:t,wrapperClassName:`card-body ${c}`})})},e?.sys?.id)})})})})}if("Small Cards"===n)return(0,X.jsx)(ek,{fields:e});if("Feature Promo Banner"===n)return null;if("Cards"===n){let n=r.length;return(0,X.jsx)("section",{className:`ms-cards-section ${e.classes??""}`,style:e.inlineStyles?eo(e.inlineStyles):void 0,id:e.id||void 0,"data-componentname":"FeatureCardsUp",children:(0,X.jsx)("div",{className:`ms-cards-grid ${n>=4?"ms-cards-grid--4":3===n?"ms-cards-grid--3":"ms-cards-grid--2"}`,children:r.map(e=>{if(!e?.fields)return null;let r=e.fields.asset?.fields,n=r?.images,{asset:i,...o}=e.fields;return(0,X.jsxs)("div",{className:"ms-card",children:[n&&(0,X.jsx)("div",{className:"ms-card-icon",children:(0,X.jsx)(eu.default,{fields:r})}),(0,X.jsx)(eW.AnimateOnScroll,{animation:"fade-in",mode:"once",children:(0,X.jsx)(ef,{fields:o,includes:t})})]},e.sys?.id)})})})}return(0,X.jsx)("div",{id:e.id||void 0,className:e.classes||void 0,style:e.inlineStyles?eo(e.inlineStyles):void 0,"data-componentname":"cf-features",children:r.map((e,r)=>(0,X.jsx)(eE,{card:e,includes:t},`${e?.sys?.id}-${r}`))})};function eJ(e){let t=e?.content;return!Array.isArray(t)||0===t.length||t.every(e=>e?.nodeType==="text"&&(e?.value??"")==="")}function eZ(e){if(!e.includes("\n"))return e;let t=e.split("\n");return t.map((e,r)=>(0,o.jsxs)(K.Fragment,{children:[e,r{t.set(e.sys.id,e)}),e?.Entry?.forEach(e=>{r.set(e.sys.id,e)}),{assetMap:t,entryMap:r}}function e0(e){let{assetMap:t,entryMap:r}=eQ(e);return{renderNode:{[s.HEADING_1]:(e,t)=>(0,o.jsx)("h1",{className:"ms-h1",children:t}),[s.HEADING_2]:(e,t)=>(0,o.jsx)("h2",{className:"ms-h2",children:t}),[s.HEADING_3]:(e,t)=>(0,o.jsx)("h3",{className:"ms-h3",children:t}),[s.HEADING_4]:(e,t)=>(0,o.jsx)("h4",{className:"ms-h4",children:t}),[s.HEADING_5]:(e,t)=>(0,o.jsx)("h5",{className:"ms-h5",children:t}),[s.HEADING_6]:(e,t)=>(0,o.jsx)("h6",{className:"ms-h6",children:t}),[s.PARAGRAPH]:(e,t)=>eJ(e)?(0,o.jsx)("br",{}):(0,o.jsx)("p",{children:t}),[s.UL_LIST]:(e,t)=>(0,o.jsx)("ul",{className:"ms-ul",children:t}),[s.OL_LIST]:(e,t)=>(0,o.jsx)("ol",{className:"ms-ol",children:t}),[s.LIST_ITEM]:(e,t)=>(0,o.jsx)("li",{className:"ms-li",children:t}),[s.QUOTE]:(e,t)=>(0,o.jsx)("blockquote",{className:"ms-blockquote",children:t}),[s.HR]:()=>(0,o.jsx)("hr",{className:"my-8"}),[s.EMBEDDED_ASSET]:e=>{let r=e?.data?.target?.sys?.id,n=t.get(r);if(!n)return null;let{file:i,title:a}=n.fields,s=i?.url?.startsWith("//")?`https:${i.url}`:i?.url,f=s?(0,Y.secureAssetUrlWithParams)(s):s;return i.contentType.startsWith("image/")?(0,o.jsxs)("figure",{className:"my-6",children:[(0,o.jsx)("img",{src:f,alt:a,className:"w-full rounded-lg",loading:"lazy"}),a&&(0,o.jsx)("figcaption",{className:"text-sm text-ms-600 mt-2",children:a})]}):i.contentType.startsWith("video/")?(0,o.jsxs)("video",{controls:!0,className:"w-full my-6 rounded-lg",children:[(0,o.jsx)("source",{src:f,type:i.contentType}),"Your browser does not support the video tag."]}):null},[s.EMBEDDED_ENTRY]:n=>{let i=n.data.target.sys.id,a=r.get(i);if(!a)return null;if("codeBlock"===a.sys.contentType.sys.id)return(0,o.jsx)("pre",{children:a.fields.code});if("mediaImage"===a.sys.contentType.sys.id){let e=(a.fields?.images||[]).map(e=>{if(e?.fields?.file)return e;let r=e?.sys?.id;return r?t.get(r):void 0}).filter(Boolean),r={...a.fields,images:e};return(0,o.jsx)(V.default,{fields:r})}if("accordion"===a.sys.contentType.sys.id){let e=(a.fields?.items||[]).map(e=>{let t=e.fields?e:r.get(e.sys?.id);return t?.fields?t:{sys:e.sys,fields:{}}}),t=a.fields?.heading?.fields?a.fields.heading:r.get(a.fields?.heading?.sys?.id),n=(a.fields?.cta||[]).map(e=>e.fields?e:r.get(e.sys?.id)||e);return(0,o.jsx)(e4,{fields:{...a.fields,items:e,heading:t,cta:n}})}if("cards"===a.sys.contentType.sys.id){let n=(a.fields?.cards||[]).map(e=>{let n=e.fields?e:r.get(e.sys?.id)||e;if(!n?.fields)return n;let i=n.fields,o=i.heading?.fields?i.heading:r.get(i.heading?.sys?.id)||i.heading,a=i.badge?.fields?i.badge:r.get(i.badge?.sys?.id)||i.badge,s=(i.cta||[]).map(e=>e.fields?e:r.get(e.sys?.id)||e),f=i.asset?.fields?i.asset:r.get(i.asset?.sys?.id)||t.get(i.asset?.sys?.id)||i.asset;if(f?.fields){let e=(f.fields.images||[]).map(e=>e.fields?e:t.get(e.sys?.id)||e),r=(f.fields.videos||[]).map(e=>e.fields?e:t.get(e.sys?.id)||e);f={...f,fields:{...f.fields,images:e,videos:r}}}return{...n,fields:{...i,heading:o,badge:a,asset:f,cta:s}}});return(0,o.jsx)(eX,{fields:{...a.fields,cards:n},includes:e})}if("footnotes"===a.sys.contentType.sys.id){let t=a.fields?.items||[],n=a.fields?.classes||"",i=t.map(e=>e.fields?e:r.get(e.sys?.id)||e),s=i.filter(e=>!e?.fields?.id||"0"===e.fields.id),f=i.filter(e=>e?.fields?.id&&"0"!==e.fields.id);return(0,o.jsxs)("div",{id:"footnotes",className:`footnotes ${n}`.trim(),"data-componentname":"cf-footnotes",role:"region","aria-label":"Footnotes",children:[s.map((t,r)=>{let n=t?.fields?.text||t?.fields?.body||{nodeType:"document",content:[]};return(0,o.jsx)("p",{className:"py-1 footnote-item mb-0",children:e1(n,e)},t?.sys?.id||`plain-${r}`)}),(0,o.jsx)("ul",{className:"list-unstyled mb-0 px-md-4",children:f.map(t=>{let r=t.fields.id,n=t?.fields?.text||t?.fields?.body||{nodeType:"document",content:[]};return(0,o.jsxs)("li",{className:"py-2 footnote-item",children:[(0,o.jsxs)("a",{id:`sup${r}`,className:"supLink",href:`#ref-${r}`,"aria-label":t?.fields?.ariaLabel||`Footnote ${r}`,children:["[",(0,o.jsx)("span",{className:"supFn",children:r}),"]"]})," ",e1(n,e)]},t?.sys?.id||`fn-${r}`)})})]})}return null},[f.EMBEDDED_ENTRY]:e=>{let t=e?.data?.target,n=(t?.fields&&t?.sys?.contentType?.sys?.id?t:null)||r.get(t?.sys?.id);if(!n)return console.warn("Missing inline entry:",t?.sys?.id),null;let i=n?.sys?.contentType?.sys?.id;if("footnoteItem"===i){let e=n.fields?.id||n.sys.id;return(0,o.jsx)("sup",{id:`ref-${e}`,children:(0,o.jsx)("a",{href:`#footnote-${e}`,"aria-label":n.fields?.ariaLabel||`Footnote ${e}`,className:"c-hyperlink underline",children:(0,o.jsx)("span",{className:"supText",children:e})})})}if("genericCta"===i){let e=n.fields?.type,t=n.fields?.text;if("Inline Link"===e){let e=n.fields?.link,r="string"==typeof e?e.trim():"",i=n.fields?.openInNewTab===!0;return(0,o.jsx)("a",{href:r||"#",target:i?"_blank":void 0,"aria-label":n.fields?.ariaLabel||t,className:"c-hyperlink underline","data-bi-ecn":n.fields?.ecn||t,"data-bi-ehn":n.fields?.ehn||t,"data-bi-hn":n.fields?.hn||t,children:(0,o.jsx)("span",{className:"supText",children:t})})}}return(0,o.jsx)(W.default,{cta:[n]})},[f.HYPERLINK]:(e,t)=>{let r=e.data.uri,n=r.startsWith("/"),i=r.startsWith("#");if(n)return(0,o.jsx)(G.default,{href:r,children:t});if(i){let e=r.match(/^#(?:sup|f)(\w+)$/);if(e){let t=e[1];return(0,o.jsx)("sup",{children:(0,o.jsx)("a",{href:r,id:`ref-${t}`,"aria-label":`Footnote ${t}`,className:"c-hyperlink supBLink",children:(0,o.jsx)("span",{className:"supText",children:t})})})}return(0,o.jsx)("a",{href:r,children:t})}return(0,o.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:t})},[f.ASSET_HYPERLINK]:(e,t)=>{let{file:r}=e.data.target.fields,n=(0,Y.secureAssetUrlWithParams)(`https:${r.url}`);return(0,o.jsx)("a",{href:n,download:!0,children:t})},[f.ENTRY_HYPERLINK]:(e,t)=>(0,o.jsx)("span",{className:"font-bold",children:t})},renderMark:{[g.BOLD]:e=>(0,o.jsx)("strong",{className:"font-bold",children:e}),[g.ITALIC]:e=>(0,o.jsx)("em",{className:"italic",children:e}),[g.UNDERLINE]:e=>(0,o.jsx)("u",{className:"underline",children:e}),[g.CODE]:e=>(0,o.jsx)("code",{className:"bg-gray-100 text-ms-700 px-2 py-1 rounded font-mono text-sm",children:e}),[g.STRIKETHROUGH]:e=>(0,o.jsx)("s",{className:"line-through",children:e})},renderText:eZ}}function e1(e,t){let r=e0(t);return H(e,{...r,renderNode:{...r.renderNode||{},[s.PARAGRAPH]:(e,t)=>(0,o.jsx)("span",{className:"my-0 leading-[1.5] text-ms-700 text-sm",children:t})}})}function e2({document:e,includes:t}){return e?(0,o.jsx)("div",{className:"rich-text-content",children:H(e,e0(t))}):null}let e6=e2;var e3=ez;let e4=({fields:e,includes:o={}})=>{let{items:a=[],heading:s,cta:f,hideIcon:u=!1}=e,c=(0,r.useId)(),[l,d]=(0,r.useState)(()=>new Set),h=(0,r.useCallback)(e=>{d(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]),p=(0,r.useMemo)(()=>a.filter(e=>e.fields.question&&e.fields.answer).map(e=>({question:e.fields.question,answer:e?.fields?.answer?(0,t.jsx)(e6,{document:e.fields.answer,includes:o}):null,cta:e.fields.cta||[],triggerAttrs:{"data-bi-ecn":e.fields.question,"data-bi-ehn":e.fields.question,"data-bi-hn":e.fields.question,...(0,e3.pickButtonAttributes)(e.fields)}})),[a]),b=(0,r.useCallback)(()=>{d(new Set(p.map((e,t)=>t)))},[p]),m=(0,r.useCallback)(()=>{d(new Set)},[]);if(!a||0===a.length||!p||0===p.length)return null;let y=l.size===p.length,g=0===l.size;return(0,t.jsxs)("div",{className:"ms-accordion",children:[s?.fields&&(0,t.jsx)(i.default,{fields:s.fields}),(0,t.jsxs)("div",{className:"ms-accordion-controls",children:[(0,t.jsx)("button",{type:"button",className:`ms-accordion-control-btn ${y?"ms-accordion-control-disabled":""}`,onClick:()=>!y&&b(),"aria-label":"Expand All","aria-disabled":y,children:"Expand All"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"ms-accordion-control-separator",children:"|"}),(0,t.jsx)("button",{type:"button",className:`ms-accordion-control-btn ${g?"ms-accordion-control-disabled":""}`,onClick:()=>!g&&m(),"aria-label":"Collapse All","aria-disabled":g,children:"Collapse All"})]}),(0,t.jsx)("ul",{className:"ms-accordion-list",role:"list",children:p.map((e,r)=>{if(!e)return null;let i=l.has(r),o=`${c}-panel-${r}`,a=`${c}-trigger-${r}`;return(0,t.jsxs)("li",{className:"ms-accordion-item",children:[(0,t.jsx)("h4",{className:"ms-accordion-header",children:(0,t.jsxs)("button",{id:a,type:"button",className:"ms-accordion-trigger",onClick:()=>h(r),"aria-expanded":i,"aria-controls":o,...e.triggerAttrs,children:[!u&&(0,t.jsx)("span",{className:`ms-accordion-icon ${i?"ms-accordion-icon-open":""}`,"aria-hidden":"true"}),e.question]})}),(0,t.jsx)("div",{id:o,role:"region","aria-labelledby":a,className:"ms-accordion-panel",style:{display:i?"block":"none"},children:(0,t.jsxs)("div",{className:"ms-accordion-body",children:[e.answer,e.cta&&e.cta.length>0&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(n.default,{cta:e.cta})})]})})]},r)})}),f&&f.length>0&&(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(n.default,{cta:f})})]})}}]);