(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[23485,X=>{var J=X.i(43476),Z=X.i(71645);X.s(["AnimateOnScroll",0,({children:X,animation:Q="fade-in",mode:ee="once",className:et=""})=>{let er=(0,Z.useRef)(null);return(0,Z.useEffect)(()=>{let X=er.current;if(!X)return;if("u"{X.forEach(X=>{X.isIntersecting?(X.target.classList.add("show"),"once"===ee&&J.unobserve(X.target)):"always"===ee&&X.target.classList.remove("show")})},{threshold:.15});return J.observe(X),()=>J.disconnect()},[ee]),(0,J.jsx)("div",{ref:er,className:`animate ${Q} ${ee} ${et}`.trim(),children:X})}])},56438,88674,95370,47459,X=>{var J=X.i(43476);function Z(X){if(X)return X.startsWith("//")?`https:${X}`:X}function Q(X){return!!X&&"object"==typeof X&&"fields"in X}X.s(["X",0,Z,"p",0,function(X){return X?Q(X)?X.fields:X:null},"f",0,function(X){return X&&Q(X)?X.fields:null}],88674);var ee=X.i(6510);function et(X){if(!X||"object"!=typeof X)return!1;let J="string"==typeof X.dynamic_url&&X.dynamic_url.length>0,Z="string"==typeof X.generic_url&&X.generic_url.length>0;return J||Z}function er(X){return X?.dynamic_url||X?.generic_url||void 0}function ei(X){return{width:X?.width,height:X?.height}}function en(X,J){if(et(X)){let J=er(X);if(J)return J}let Q=Z(J??"")||J||"";return Q?(0,ee.q)(Q):""}function eo(X,J){if(et(X)){let J=function(X){let J=er(X);if(!J)return null;let{width:Z,height:Q}=ei(X);return{src:J,width:Z||1200,height:Q||600}}(X);if(J)return J}if(!J?.fields?.file?.url)return null;let Q=Z(J.fields.file.url)||J.fields.file.url;return{src:(0,ee.q)(Q),width:J.fields.file.details?.image?.width||1200,height:J.fields.file.details?.image?.height||600}}function ea(X){return Array.isArray(X)?X:X?[X]:[]}X.s(["I",0,ei,"G",0,er,"m",0,et,"c",0,en,"$",0,eo,"J",0,ea],95370);var es=X.i(93346);X.s(["f",0,({cta:X,forceInline:Z=!1,onClick:Q})=>X&&0!==X.length?(X.every(X=>X.fields?.type==="Breadcrumb"),(0,J.jsx)(J.Fragment,{children:X.map((X,ee)=>{if(!X?.fields)return null;let{link:et="#",type:er="Button filled",openInNewTab:ei=!1,ariaLabel:eo,dataBiEcn:ef,dataBiEhn:eu,dataBiHn:ec,dataModal:el="",text:eh,classes:ed="",icon:ep,download:eb}=X.fields,ey="CTA with Icon"===er||!!ep,em="CTA with Chevron"===er,eg=ed;ey||"Button filled"!==er?"Button outline"===er?eg=`${es.default.button.base} ${es.default.button.outline.secondary} ${es.default.button.size.md} ${ed}`:em&&(eg="group inline-flex items-center gap-x-1.5 text-sm font-semibold leading-snug text-ms-blue no-underline lg:text-base"):eg=`inline-block ${es.default.button.base} ${es.default.button.color.secondary} ${es.default.button.size.md} ${ed}`;let ev=eh;if(ey){let X,Z=(X=ep?.fields,en(ea(X?.frontifyImages)[0],X?.images?.[0]?.fields?.file?.url)||null);ev=Z?(0,J.jsx)("img",{src:Z,alt:"",className:"w-5 h-5","aria-hidden":"true"}):(0,J.jsx)("span",{className:"w-5 h-5",children:(eh||"?").charAt(0)})}else em?ev=(0,J.jsxs)(J.Fragment,{children:[(0,J.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:eh}),(0,J.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:"›"})]}):("Inline Link"===er||Z)&&(ev=(0,J.jsx)(J.Fragment,{children:(0,J.jsx)("span",{children:eh})}));return(0,J.jsx)("a",{href:et,target:ei?"_blank":"_self","aria-label":eo||eh,"data-bi-ecn":ef||eh,"data-bi-ehn":eu||eh,"data-bi-hn":ec||eh,"data-modal":el,rel:ei?"noopener noreferrer":void 0,className:eg||void 0,onClick:Q,...eb?{"data-download":"true"}:{},children:ev},ee)})})):null],56438);var ef=X.i(5500),ef=ef;X.s(["f",0,({fields:X})=>{let Z,Q,ee,et;if(!X)return null;let er="",ei="",en="No Round",es="";if(X&&"videos"in X){let J=ea(X.frontifyImages),Q=X.posterImage;Z=J[0],ee=Q,er=Q?.fields?.description||Q?.fields?.title||"",en=X.style||"No Round"}else{let{images:J=[],altText:eo="",caption:ef="",style:eu="No Round",inlineStyles:ec=""}=X,el=ea(X.frontifyImages);Z=el[0],Q=el[1]??el[0],ee=J[0],et=J[1]??ee,er=eo,ei=ef,en=eu,es=ec}let eu=eo(Z,ee),ec=eo(Q,et)??eu;if(!eu)return null;let el=en.startsWith("More Rounded")?"rounded-2xl":en.startsWith("Rounded")?"rounded-lg":"",eh=!!ec&&ec.src!==eu.src;return(0,J.jsxs)("figure",{className:`h-full overflow-hidden media-image ${el}`,style:es?JSON.parse(es):{margin:0},children:[eh&&ec&&(0,J.jsx)(ef.Image,{src:ec.src,alt:er||"Image",width:ec.width,height:ec.height,loading:"lazy",unoptimized:!0,className:"w-full h-full object-cover ms-block md-ms-hidden"}),(0,J.jsx)(ef.Image,{src:eu.src,alt:er||"Image",width:eu.width,height:eu.height,loading:"lazy",unoptimized:!0,className:`w-full h-full object-cover ${eh?"ms-hidden md-ms-block":"block"}`}),ei&&(0,J.jsx)("figcaption",{className:"text-sm text-ms-600 mt-1",children:ei})]})}],47459)},96463,X=>{var J=X.i(71645);let Z=X.i(93346).default.text.heading;X.s(["f",0,({fields:X,className:Q})=>{let{level:ee="2",text:et="",visualLevel:er}=X;if(!et)return null;let ei=ee?`h${ee}`:"h2",en=er?Z[`h${er}`]:Z[ei];return J.default.createElement(ei,{className:Q?`${en} ${Q}`:en},et)}])},27347,X=>{var J=X.i(43476),Z=X.i(71645);let Q=null;X.s(["default",0,function({videoUrl:X,posterUrl:ee,title:et="",description:er="",ariaLabel:ei="",ttmlUrl:en="",transcriptUrl:eo="",isAutoPlay:ea=!1,componentName:es="umpvideo",borderRadius:ef=""}){let eu=(0,Z.useRef)(null);return(0,Z.useEffect)(()=>{let J=eu.current;if(!J)return;let Z=!1;return(Q||(Q=new Promise((X,J)=>{if(window.ump)return void X();let Z=document.createElement("script");Z.type="module",Z.src="https://www.microsoft.com/videoplayer/ump.mjs",Z.onload=()=>{let Z=0,ee=setInterval(()=>{Z++,window.ump?(clearInterval(ee),X()):Z>=20&&(clearInterval(ee),Q=null,J(Error("UMP player: window.ump not available after script load")))},200)},Z.onerror=()=>{Q=null,J(Error("Failed to load UMP player script"))},document.head.appendChild(Z)}))).then(()=>{if(Z||!J)return;let Q=window.ump;if(!Q)return;J.innerHTML="";let ei=document.createElement("universal-media-player");J.appendChild(ei);let es=document.documentElement.lang?.toLowerCase()||"en-us";Q(ei,{partnerName:et,autoplay:ea,title:et,description:er,language:es,reporting:!0,poster:ee,sources:[{src:X,type:"video/mp4",quality:"HQ"}],ccFiles:en?[{url:en,locale:es,ccType:"TTML"}]:[],downloadableFiles:eo?[{url:eo,locale:es,mediaType:"transcript"}]:[]});let ef=()=>{let X=ei.shadowRoot;if(!X)return!1;let J=document.createElement("style");return J.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; }",X.appendChild(J),!0};if(!ef()){let X=0,J=setInterval(()=>{X++,(ef()||X>=20)&&clearInterval(J)},100)}}).catch(X=>{console.error("UMP player failed to load:",X)}),()=>{Z=!0,J&&(J.innerHTML="")}},[X,ee,et,er,en,eo,ea]),(0,J.jsx)("figure",{className:`w-full bg-transparent overflow-hidden ${ef}`,children:(0,J.jsx)("div",{ref:eu,className:"ump-player-video bg-transparent","data-componentname":es,"data-video-title":et,"data-video-description":er,"data-video-arialabel":ei,"data-video-poster":ee||"","data-video-src":X,"data-video-ttml":en,"data-video-transcript":eo,"data-auto-play":ea?"true":""})})}])},21235,95877,X=>{X.s(["default",()=>ts],21235),X.s(["h",()=>to,"U",()=>ta],95877);var J,Z,Q,ee=X.i(43476),et=X.i(71645),er=X.i(56438),ei=X.i(96463),en=((J={}).DOCUMENT="document",J.PARAGRAPH="paragraph",J.HEADING_1="heading-1",J.HEADING_2="heading-2",J.HEADING_3="heading-3",J.HEADING_4="heading-4",J.HEADING_5="heading-5",J.HEADING_6="heading-6",J.OL_LIST="ordered-list",J.UL_LIST="unordered-list",J.LIST_ITEM="list-item",J.HR="hr",J.QUOTE="blockquote",J.EMBEDDED_ENTRY="embedded-entry-block",J.EMBEDDED_ASSET="embedded-asset-block",J.EMBEDDED_RESOURCE="embedded-resource-block",J.TABLE="table",J.TABLE_ROW="table-row",J.TABLE_CELL="table-cell",J.TABLE_HEADER_CELL="table-header-cell",J),eo=((Z={}).ASSET_HYPERLINK="asset-hyperlink",Z.EMBEDDED_ENTRY="embedded-entry-inline",Z.EMBEDDED_RESOURCE="embedded-resource-inline",Z.ENTRY_HYPERLINK="entry-hyperlink",Z.HYPERLINK="hyperlink",Z.RESOURCE_HYPERLINK="resource-hyperlink",Z);function ea(X,J){for(let Z of Object.keys(X))if(J===X[Z])return!0;return!1}function es(X){if(X.nodeType!==en.PARAGRAPH||1!==X.content.length)return!1;let J=X.content[0];return"text"===J.nodeType&&""===J.value}X.s(["isBlock",0,function(X){return ea(en,X.nodeType)},"isEmptyParagraph",0,es,"isInline",0,function(X){return ea(eo,X.nodeType)},"isText",0,function(X){return"text"===X.nodeType},"stripEmptyTrailingParagraphFromDocument",0,function(X){return!(null!=X&&"object"==typeof X&&"content"in X&&Array.isArray(X.content))||X.content.length<2?X:es(X.content[X.content.length-1])?{...X,content:X.content.slice(0,-1)}:X}],98327);var ef=X.i(98327),eu=((Q={}).BOLD="bold",Q.ITALIC="italic",Q.UNDERLINE="underline",Q.CODE="code",Q.SUPERSCRIPT="superscript",Q.SUBSCRIPT="subscript",Q.STRIKETHROUGH="strikethrough",Q);let ec=[en.PARAGRAPH,en.HEADING_1,en.HEADING_2,en.HEADING_3,en.HEADING_4,en.HEADING_5,en.HEADING_6,en.OL_LIST,en.UL_LIST,en.HR,en.QUOTE,en.EMBEDDED_ENTRY,en.EMBEDDED_ASSET,en.EMBEDDED_RESOURCE,en.TABLE],el=[en.PARAGRAPH,en.HEADING_1,en.HEADING_2,en.HEADING_3,en.HEADING_4,en.HEADING_5,en.HEADING_6,en.OL_LIST,en.UL_LIST,en.HR,en.QUOTE,en.EMBEDDED_ENTRY,en.EMBEDDED_ASSET,en.EMBEDDED_RESOURCE];en.TABLE,en.TABLE_ROW,en.TABLE_CELL,en.TABLE_HEADER_CELL,en.HR,en.EMBEDDED_ENTRY,en.EMBEDDED_ASSET,en.EMBEDDED_RESOURCE;let eh={[en.OL_LIST]:[en.LIST_ITEM],[en.UL_LIST]:[en.LIST_ITEM],[en.LIST_ITEM]:el,[en.QUOTE]:[en.PARAGRAPH],[en.TABLE]:[en.TABLE_ROW],[en.TABLE_ROW]:[en.TABLE_CELL,en.TABLE_HEADER_CELL],[en.TABLE_CELL]:[en.PARAGRAPH,en.UL_LIST,en.OL_LIST],[en.TABLE_HEADER_CELL]:[en.PARAGRAPH]},ed=[en.HEADING_1,en.HEADING_2,en.HEADING_3,en.HEADING_4,en.HEADING_5,en.HEADING_6];[en.PARAGRAPH,...ed],en.DOCUMENT,en.PARAGRAPH,en.HEADING_1,en.HEADING_2,en.HEADING_3,en.HEADING_4,en.HEADING_5,en.HEADING_6,en.OL_LIST,en.UL_LIST,en.LIST_ITEM,en.HR,en.QUOTE,en.EMBEDDED_ENTRY,en.EMBEDDED_ASSET,eo.HYPERLINK,eo.ENTRY_HYPERLINK,eo.ASSET_HYPERLINK,eo.EMBEDDED_ENTRY,eu.BOLD,eu.CODE,eu.ITALIC,eu.UNDERLINE;let ep=({path:X,property:J,typeName:Z,value:Q})=>({details:`The type of "${J}" is incorrect, expected type: ${Z}`,name:"type",path:X.toArray(),type:Z,value:Q});class eb{obj;path;_errors=[];constructor(X,J){this.obj=X,this.path=J}catch=(...X)=>{this._errors.push(...X)};get errors(){let X=X=>JSON.stringify({details:X.details,path:X.path});return this._errors.filter((J,Z)=>this._errors.findIndex(Z=>X(J)===X(Z))===Z)}exists=X=>X in this.obj||(this.catch((({property:X,path:J})=>({details:`The property "${X}" is required here`,name:"required",path:J.toArray()}))({property:X,path:this.path.of(X)})),!1);object=X=>{let J=X?this.obj[X]:this.obj;if(X&&!this.exists(X))return!1;if("object"==typeof J&&!Array.isArray(J)&&null!==J)return!0;let Z=X?this.path.of(X):this.path,Q=X??this.path.last()??"value";return this.catch(ep({typeName:"Object",property:Q,path:Z,value:J})),!1};string=X=>{let J=this.obj[X];return(!X||!!this.exists(X))&&("string"==typeof J||(this.catch(ep({typeName:"String",property:X,path:this.path.of(X),value:J})),!1))};number=(X,J)=>{let Z=this.obj[X];return!!J&&!(X in this.obj)||!!this.exists(X)&&(!("number"!=typeof Z||Number.isNaN(Z))||(this.catch(ep({typeName:"Number",property:X,path:this.path.of(X),value:Z})),!1))};array=X=>{let J=this.obj[X];return(!X||!!this.exists(X))&&(!!Array.isArray(J)||(this.catch(ep({typeName:"Array",property:X,path:this.path.of(X),value:J})),!1))};enum=(X,J)=>{let Z=this.obj[X];return!!("string"==typeof Z&&J.includes(Z))||(this.catch((({expected:X,value:J,path:Z})=>({details:"Value must be one of expected values",name:"in",expected:[...X].sort(),path:Z.toArray(),value:J}))({expected:J,value:Z,path:this.path.of(X)})),!1)};empty=X=>{if(!this.array(X))return!1;let J=this.obj[X];return 0===J.length||(this.catch((({max:X,value:J,path:Z})=>({name:"size",max:X,path:Z.toArray(),details:`Size must be at most ${X}`,value:J}))({max:0,value:J,path:this.path.of(X)})),!1)};minLength=(X,J)=>{if(!this.array(X))return!1;let Z=this.obj[X];return Z.length>=J||(this.catch((({min:X,value:J,path:Z})=>({name:"size",min:X,path:Z.toArray(),details:`Size must be at least ${X}`,value:J}))({min:J,value:Z,path:this.path.of(X)})),!1)};noAdditionalProperties=X=>{let J=Object.keys(this.obj).sort().filter(J=>!X.includes(J));return J.forEach(X=>this.catch((({property:X,path:J})=>({details:`The property "${X}" is not expected`,name:"unexpected",path:J.toArray()}))({property:X,path:this.path.of(X)}))),0===J.length};each=(X,J)=>{if(!this.array(X))return;let Z=this.obj[X],Q=!1;Z.forEach((Z,ee)=>{if(Q)return;let et=J(Z,this.path.of(X).of(ee));et.length>0&&(Q=!0),this.catch(...et)})}}let ey=[];class em{contentRule;validateData;constructor(X,J){this.contentRule=X,this.validateData=J}assert(X,J){let Z=new eb(X,J);if(!Z.object())return Z.errors;Z.noAdditionalProperties(["nodeType","data","content"]);let{nodeTypes:Q,min:ee=0}=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(X,J);if(0===Q.length&&ee>0)throw Error(`Invalid content rule. Cannot have enforce a 'min' of ${ee} with no nodeTypes`);if(Z.minLength("content",ee),0===Q.length?Z.empty("content"):Z.each("content",(X,J)=>{let Z=new eb(X,J);return Z.object()&&Z.enum("nodeType",Q),Z.errors}),Z.object("data")){let Q=this.validateData?.(X.data,J.of("data"))??[];Z.catch(...Q)}return Z.errors}}class eg extends em{linkType;type;constructor(X,J){super(J,(X,J)=>this.assertLink(X,J)),this.linkType=X,this.type=this.linkType.startsWith("Contentful:")?"ResourceLink":"Link"}assertLink=(X,J)=>{let Z=new eb(X,J);if(Z.object("target")){let Q=new eb(X.target.sys,J.of("target").of("sys"));Q.object()&&(Q.enum("type",[this.type]),Q.enum("linkType",[this.linkType]),"Link"===this.type?(Q.string("id"),Q.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===this.type&&(Q.string("urn"),Q.noAdditionalProperties(["type","linkType","urn"]))),Z.catch(...Q.errors)}return Z.noAdditionalProperties(["target"]),Z.errors}}let ev=(X,J)=>new em(X,J),ew=(X,J)=>new eg(X,J);ev([...Object.values(eo),"text"].sort()),ev([en.LIST_ITEM]),ew("Entry",ey),ev(()=>({nodeTypes:[en.PARAGRAPH],min:1}),(X,J)=>{let Z=new eb(X,J);return Z.noAdditionalProperties(["colspan","rowspan"]),Z.number("colspan",!0),Z.number("rowspan",!0),Z.errors}),en.DOCUMENT,ev(ec),en.PARAGRAPH,en.HEADING_1,en.HEADING_2,en.HEADING_3,en.HEADING_4,en.HEADING_5,en.HEADING_6,en.QUOTE,ev(eh[en.QUOTE]),en.EMBEDDED_ENTRY,en.EMBEDDED_ASSET,ew("Asset",ey),en.EMBEDDED_RESOURCE,ew("Contentful:Entry",ey),en.HR,ev(ey),en.OL_LIST,en.UL_LIST,en.LIST_ITEM,ev([...el].sort()),en.TABLE,ev(()=>({nodeTypes:[en.TABLE_ROW],min:1})),en.TABLE_ROW,ev(()=>({nodeTypes:[en.TABLE_CELL,en.TABLE_HEADER_CELL],min:1})),en.TABLE_CELL,en.TABLE_HEADER_CELL,eo.HYPERLINK,new class extends em{constructor(){super(["text"],(X,J)=>this.assertLink(X,J))}assertLink=(X,J)=>{let Z=new eb(X,J);return Z.string("uri"),Z.noAdditionalProperties(["uri"]),Z.errors}},eo.EMBEDDED_ENTRY,eo.EMBEDDED_RESOURCE,ew("Contentful:Entry",ey),eo.ENTRY_HYPERLINK,ew("Entry",["text"]),eo.ASSET_HYPERLINK,ew("Asset",["text"]),eo.RESOURCE_HYPERLINK,ew("Contentful:Entry",["text"]);var ex=ef,e_=ef;let eE={[en.DOCUMENT]:(X,J)=>J,[en.PARAGRAPH]:(X,J)=>et.default.createElement("p",null,J),[en.HEADING_1]:(X,J)=>et.default.createElement("h1",null,J),[en.HEADING_2]:(X,J)=>et.default.createElement("h2",null,J),[en.HEADING_3]:(X,J)=>et.default.createElement("h3",null,J),[en.HEADING_4]:(X,J)=>et.default.createElement("h4",null,J),[en.HEADING_5]:(X,J)=>et.default.createElement("h5",null,J),[en.HEADING_6]:(X,J)=>et.default.createElement("h6",null,J),[en.EMBEDDED_ENTRY]:(X,J)=>et.default.createElement("div",null,J),[en.EMBEDDED_RESOURCE]:(X,J)=>et.default.createElement("div",null,J),[en.UL_LIST]:(X,J)=>et.default.createElement("ul",null,J),[en.OL_LIST]:(X,J)=>et.default.createElement("ol",null,J),[en.LIST_ITEM]:(X,J)=>et.default.createElement("li",null,J),[en.QUOTE]:(X,J)=>et.default.createElement("blockquote",null,J),[en.HR]:()=>et.default.createElement("hr",null),[en.TABLE]:(X,J)=>et.default.createElement("table",null,et.default.createElement("tbody",null,J)),[en.TABLE_ROW]:(X,J)=>et.default.createElement("tr",null,J),[en.TABLE_HEADER_CELL]:(X,J)=>et.default.createElement("th",null,J),[en.TABLE_CELL]:(X,J)=>et.default.createElement("td",null,J),[eo.ASSET_HYPERLINK]:X=>eM(eo.ASSET_HYPERLINK,X),[eo.ENTRY_HYPERLINK]:X=>eM(eo.ENTRY_HYPERLINK,X),[eo.RESOURCE_HYPERLINK]:X=>eA(eo.RESOURCE_HYPERLINK,X),[eo.EMBEDDED_ENTRY]:X=>eM(eo.EMBEDDED_ENTRY,X),[eo.EMBEDDED_RESOURCE]:(X,J)=>eA(eo.EMBEDDED_RESOURCE,X),[eo.HYPERLINK]:(X,J)=>et.default.createElement("a",{href:X.data.uri},J)},eS={[eu.BOLD]:X=>et.default.createElement("b",null,X),[eu.ITALIC]:X=>et.default.createElement("i",null,X),[eu.UNDERLINE]:X=>et.default.createElement("u",null,X),[eu.CODE]:X=>et.default.createElement("code",null,X),[eu.SUPERSCRIPT]:X=>et.default.createElement("sup",null,X),[eu.SUBSCRIPT]:X=>et.default.createElement("sub",null,X),[eu.STRIKETHROUGH]:X=>et.default.createElement("s",null,X)};function eM(X,J){return et.default.createElement("span",{key:J.data.target.sys.id},"type: ",J.nodeType," id: ",J.data.target.sys.id)}function eA(X,J){return et.default.createElement("span",{key:J.data.target.sys.urn},"type: ",J.nodeType," urn: ",J.data.target.sys.urn)}function eR(X,J={}){if(!X)return null;let Z=X;return J.stripEmptyTrailingParagraph&&(Z=e_.stripEmptyTrailingParagraphFromDocument(X)),function X(J,Z){let{renderNode:Q,renderMark:ee,renderText:er,preserveWhitespace:ei}=Z;if(ex.isText(J)){let X=er?er(J.value):J.value;if(ei&&!er){let J=(X=X.replace(/ {2,}/g,X=>" ".repeat(X.length))).split("\n"),Z=[];J.forEach((X,Q)=>{Z.push(X),Q!==J.length-1&&Z.push(et.default.createElement("br",null))}),X=Z}return J.marks.reduce((X,J)=>ee[J.type]?ee[J.type](X):X,X)}{var en;let ee=(en=J.content,en.map((J,Q)=>{var ee;return ee=X(J,Z),(0,et.isValidElement)(ee)&&null===ee.key?(0,et.cloneElement)(ee,{key:Q}):ee}));return J.nodeType&&Q[J.nodeType]?Q[J.nodeType](J,ee):et.default.createElement(et.default.Fragment,null,ee)}}(Z,{renderNode:{...eE,...J.renderNode},renderMark:{...eS,...J.renderMark},renderText:J.renderText,preserveWhitespace:J.preserveWhitespace})}var eI=X.i(22016),e_=ef,ex=ef;en.PARAGRAPH,en.HEADING_1,en.HEADING_2,en.HEADING_3,en.HEADING_4,en.HEADING_5,en.HEADING_6,en.EMBEDDED_ENTRY,en.EMBEDDED_RESOURCE,en.EMBEDDED_ASSET,en.UL_LIST,en.OL_LIST,en.LIST_ITEM,en.QUOTE,en.HR,en.TABLE,en.TABLE_ROW,en.TABLE_HEADER_CELL,en.TABLE_CELL,eo.ASSET_HYPERLINK,eo.ENTRY_HYPERLINK,eo.RESOURCE_HYPERLINK,eo.EMBEDDED_ENTRY,eo.EMBEDDED_RESOURCE,eo.HYPERLINK,eu.BOLD,eu.ITALIC,eu.UNDERLINE,eu.CODE,eu.SUPERSCRIPT,eu.SUBSCRIPT,eu.STRIKETHROUGH;var ek=X.i(47459),ej=X.i(6510);let eT=({text:X="",classes:J="",inlineStyles:Z=""})=>X?(0,ee.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 ${J}`,style:Z?(()=>{try{return JSON.parse(Z)}catch{return}})():void 0,children:X}):null,eO=({description:X,classes:J="",id:Z,includes:Q})=>X?(0,ee.jsx)("div",{id:Z,className:`prose max-w-none ${J}`,children:(0,ee.jsx)(ta,{document:X,includes:Q})}):null;function eN(X){return"string"!=typeof X?X:X.split(";").filter(Boolean).reduce((X,J)=>{let Z=J.indexOf(":");if(-1===Z)return X;let Q=J.slice(0,Z),ee=J.slice(Z+1);return Q.trim()&&ee.trim()&&(X[Q.trim().replace(/-([a-z])/g,(X,J)=>J.toUpperCase())]=ee.trim()),X},{})}var eP=X.i(88674);let eL=({fields:X,card:J,alignment:Z="left",includes:Q,href:et,preHeadingContent:en,wrapperClassName:eo})=>{if(!J?.fields&&!X)return null;let{badge:ea,heading:es,description:ef,cta:eu=[],asset:ec,classes:el="",inlineStyles:eh=""}=J?.fields??X,ed=(0,eP.p)(ea),ep=(0,eP.f)(es),eb=(0,ee.jsxs)(ee.Fragment,{children:[ec?.fields&&(0,ee.jsx)(ek.f,{fields:ec.fields}),(0,ee.jsxs)("div",{className:`${"right"===Z?"text-right":"center"===Z?"text-center":"text-left"}`,children:[ed&&(0,ee.jsx)(eT,{...ed}),en,ep&&(0,ee.jsx)(ei.f,{fields:ep}),ef&&(0,ee.jsx)("div",{className:"mb-3",children:(0,ee.jsx)(eO,{description:ef,includes:Q})})]}),eu?.length>0&&(0,ee.jsx)("div",{className:"card-footer",children:(0,ee.jsx)(er.f,{cta:eu})})]}),ey=eo||`col ${el}`,em=eh?eN(eh):void 0;return et?(0,ee.jsx)(eI.default,{href:et,className:ey,style:em,"aria-label":ep?.text||void 0,children:eb}):(0,ee.jsx)("div",{className:ey,style:em,children:eb})};var eB=X.i(43820),eC=X.i(95370);function eD(X){let J,Z,Q,ee=X?.fields,et=((0,eC.m)(X)?X:void 0)??(0,eC.J)(ee?.frontifyImages)[0]??((0,eC.m)(ee?.images?.[0])?ee?.images?.[0]:void 0),er=X?.fields?.images?.[0]?.fields?.file,ei=ee?.file,en=er??ei;if((0,eC.m)(et))J=(0,eC.G)(et)??"",{width:Z,height:Q}=(0,eC.I)(et);else{let X=(0,eP.X)(en?.url??"")||en?.url||(0,eP.X)(ee?.url??"")||ee?.url||"";J=X?(0,ej.q)(X):"",Z=en?.details?.image?.width,Q=en?.details?.image?.height}return{src:J,alt:ee?.altText??ee?.title??ee?.description??"",width:Z,height:Q}}var eU=X.i(36665);function e$({data:X}){return(0,ee.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(X)}})}function eq(X){return{"@context":"https://schema.org","@type":"VideoObject",...X.title&&{name:X.title},...X.description&&{description:X.description},...X.thumbnailUrl&&{thumbnailUrl:X.thumbnailUrl},uploadDate:X.uploadDate,duration:X.duration,contentUrl:X.contentUrl,embedUrl:X.contentUrl}}var ez=X.i(27347);X.i(27344),X.i(79712),X.i(1952);let eF=({fields:X,context:J="body"})=>{let Z=et.default.useId();if(!X)return null;let Q=[...Z].reduce((X,J)=>31*X+J.charCodeAt(0)>>>0,0),er=X.id?.trim()||`video-${Q}`,{videos:ei=[],posterImage:en,frontifyPosterImage:eo,title:ea,description:es,ttml:ef,frontifyTtml:eu,transcript:ec,frontifyTranscript:el,style:eh="No Rounded",isAutoPlay:ed=!1,uploadedDate:ep,duration:eb,type:ey}=X;if("HTML5"===ey){let J=function(X){if(!X)return{src:"",alt:"",mediaType:"image"};if("mediaVideo"===X?.sys?.contentType?.sys?.id||Array.isArray(X?.fields?.videos)){let{sources:J,poster:Z,width:Q,height:ee}=function(X){let J=X?.fields;if(!J)return{sources:[]};let Z=[],Q=(0,eC.J)(J.frontifyVideos)[0];if((0,eC.m)(Q)){let X=(0,eC.G)(Q);X&&Z.push({src:X,type:Q?.contentType})}0===Z.length&&Array.isArray(J.videos)&&Z.push(...J.videos.map(X=>{let J=X?.fields?.file,Z=(0,eP.X)(J?.url??"")||J?.url||(0,eP.X)(X?.fields?.url??"")||X?.fields?.url||"";return Z?{src:(0,ej.q)(Z),type:J?.contentType??X?.fields?.type}:null}).filter(X=>!!X));let ee=(0,eC.J)(J.frontifyPosterImage)[0],et=(0,eC.m)(ee)?ee:(0,eC.m)(J.posterImage)?J.posterImage:void 0,er=et?eD({fields:{frontifyImages:[et]}}):J.posterImage?eD(J.posterImage):void 0;return{sources:Z,poster:er,isAutoPlay:J.isAutoPlay,title:J.title,width:er?.width,height:er?.height}}(X);if(J.length)return J[0].src.endsWith(".fsv")?{kind:"scroll",src:J[0].src,poster:Z,width:Q,height:ee}:{mediaType:"video",sources:J,poster:Z,width:Q,height:ee,loop:"boolean"!=typeof X?.fields?.loop||X.fields.loop,playButtonAttributes:(0,eU.E)(X?.fields?.playButton?.fields),pauseButtonAttributes:(0,eU.E)(X?.fields?.pauseButton?.fields)}}let J=eD(X);return J.src?{...J,mediaType:"image"}:{src:"",alt:"",mediaType:"image"}}({fields:X});if("video"!==J.mediaType)return null;let Z=J.width&&J.height?`${J.width} / ${J.height}`:"16 / 9",Q=eh.startsWith("More Rounded")?"rounded-2xl":eh.startsWith("Rounded")?"rounded-lg":"",et=J.sources[0]?.src;return(0,ee.jsxs)("div",{"data-componentname":"MediaVideoHtml5",id:er,children:[(0,ee.jsx)("div",{className:`relative w-full overflow-hidden ${Q}`,style:{aspectRatio:Z},children:(0,ee.jsx)(eB.DecorativeVideo,{sources:J.sources,poster:J.poster,width:J.width,height:J.height,autoPlay:ed,loop:J.loop,playButtonAttributes:J.playButtonAttributes,pauseButtonAttributes:J.pauseButtonAttributes,preload:"metadata",toggleCorner:"top-end",className:"size-full"})}),ep&&eb&&et&&(0,ee.jsx)(e$,{data:eq({title:ea,description:es,thumbnailUrl:J.poster?.src,uploadDate:ep,duration:eb,contentUrl:et})})]})}let em=(0,eC.J)(X.frontifyVideos),eg=(0,eC.J)(X.frontifyImages);if(0===ei.length&&0===em.length)return null;let ev=em[0],ew=ei[0]?.fields?.file,ex=null;if((0,eC.m)(ev)&&(0,eC.G)(ev))ex=(0,eC.G)(ev)||null;else if(ew?.url){let X=(0,eP.X)(ew.url);ex=X?(0,ej.q)(X):null}if(!ex)return null;let e_=ex,eE=Array.isArray(eo)?eo[0]:eo,eS=(0,eC.m)(eE)?eE:(0,eC.m)(eg?.[0])?eg[0]:(0,eC.m)(en)?en:void 0,eM=en?en.fields||en:void 0,eA=(0,eC.c)(eS,eM?.file?.url)||void 0,eR=(0,eC.J)(eu)[0],eI=(0,eC.m)(eR)?(0,eC.G)(eR)||void 0:ef?.fields?.file?.url?(0,ej.q)((0,eP.X)(ef.fields.file.url)):void 0,ek=(0,eC.J)(el)[0],eT=(0,eC.m)(ek)?(0,eC.G)(ek)||void 0:ec?.fields?.file?.url?(0,ej.q)((0,eP.X)(ec.fields.file.url)):void 0,eO=eh.startsWith("More Rounded")?"rounded-2xl":eh.startsWith("Rounded")?"rounded-lg":"";return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(ez.default,{videoUrl:e_,posterUrl:eA,title:ea,description:es,ttmlUrl:eI,transcriptUrl:eT,isAutoPlay:ed,componentName:"card"===J?"umpvideo":"cf-mediavideo",borderRadius:eO}),ep&&eb&&(0,ee.jsx)(e$,{data:eq({title:ea,description:es,thumbnailUrl:eA,uploadDate:ep,duration:eb,contentUrl:e_})})]})},eH=({card:X,includes:J})=>{if(!X?.fields)return null;let{id:Z,classes:Q="",inlineStyles:et="",badge:en,heading:eo,description:ea,cta:es=[],asset:ef,isClickable:eu}=X.fields,ec=Q.includes("fullbleed"),el=Q.includes("image-left"),eh=Q.includes("big-image"),ed=Q.includes("small-image"),ep=Q.includes("container-bg"),eb=!ep&&et?eN(et):void 0,ey=ep&&et?eN(et):void 0,em=(0,eP.p)(en),eg=(0,eP.f)(eo),ev=ef&&ef.fields?.images,ew=ef&&ef.fields?.videos;return(0,ee.jsx)("section",{id:Z||void 0,className:Q,style:eb,...eu?{"data-mount":"click-group"}:{},children:(0,ee.jsx)("div",{className:ec?"w-full":"max-w-screen-xl mx-auto px-4",children:(0,ee.jsx)("div",{className:"rounded-lg overflow-hidden",style:ey,children:(0,ee.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,ee.jsx)("div",{className:`flex ${el?"order-last":"order-last md:order-first"} flex-1`,children:(0,ee.jsxs)("div",{className:"self-center p-6 md:p-10",children:[em&&(0,ee.jsx)(eT,{...em}),eg&&(0,ee.jsx)(ei.f,{fields:eg}),ea&&(0,ee.jsx)("div",{className:"mb-3",children:(0,ee.jsx)(eO,{description:ea,includes:J})}),es?.length>0&&(0,ee.jsx)(er.f,{cta:es})]})}),(0,ee.jsxs)("div",{className:`${eh?"md:w-8/12":ed?"md:w-5/12":"md:w-6/12"} self-center`,children:[ev&&(0,ee.jsx)(ek.f,{fields:ef.fields}),ew&&(0,ee.jsx)("div",{className:"pt-3",children:(0,ee.jsx)(eF,{fields:ef.fields})})]})]})})})})},eG=({fields:X})=>X?.cards?.length?(0,ee.jsx)("div",{"data-componentname":"SmallCards",id:`${X.id}`,className:"ms-small-cards-grid",children:X.cards.map(X=>{let J=X.fields.heading,Z=X.fields.cta,Q=X.fields.asset;return J?.fields.text&&Z?(0,ee.jsxs)("div",{className:"ms-small-card",children:[Q&&(0,ee.jsx)("div",{className:"ms-small-card-image",children:(0,ee.jsx)(ek.f,{fields:Q.fields})}),(0,ee.jsxs)("div",{className:"ms-small-card-content",children:[(0,ee.jsx)(ei.f,{fields:J.fields}),(0,ee.jsx)(er.f,{cta:Z})]})]},X.sys.id):null})}):null;var eK=X.i(71526),eW=X.i(13522),eV=X.i(99627),eY=X.i(30440),eX=X.i(58977),eJ=X.i(2085),eZ=X.i(49621),eQ=X.i(65265),e0=X.i(7670),e1=X.i(64774);let e2=({title:X,description:J,primaryLink:Z,secondaryLink:Q,image:et,className:er,...ei})=>(0,ee.jsx)("div",{"data-inview":!0,children:(0,ee.jsxs)("article",{"data-inview-anim":"fade-up",className:(0,e0.U)("bg-elevated text-black-contrast flex flex-col gap-10 overflow-hidden rounded-lg lg:h-full lg:justify-between",er),...ei,children:[(0,ee.jsxs)("div",{className:"flex shrink-0 flex-col px-5 pt-10 md:px-7 lg:px-20 lg:pt-15",children:[(0,ee.jsx)(eV.Heading,{unstyled:!0,className:"heading-5 lg:heading-4 text-center",children:X}),(0,ee.jsx)("div",{className:"heading-6-sans-sm md:heading-6-sans mt-3 text-center",children:J}),(0,ee.jsxs)("div",{className:"mt-5 flex flex-wrap justify-center gap-x-6 gap-y-3",children:[Z?.href&&(0,ee.jsx)(eJ.L,{size:"sm",variant:"hyperlink",icon:(0,ee.jsx)(e1.ChevronRightIcon,{className:"mt-0.5 h-2.5 rtl:-scale-x-100"}),...Z}),Q?.href&&(0,ee.jsx)(eJ.L,{size:"sm",variant:"hyperlink",icon:(0,ee.jsx)(e1.ChevronRightIcon,{className:"mt-0.5 h-2.5 rtl:-scale-x-100"}),...Q})]})]}),(0,ee.jsxs)("div",{className:"relative aspect-350/285 w-full overflow-hidden md:aspect-462/346 lg:aspect-569/464",children:[Z&&(0,ee.jsx)(eZ.f,{...Z}),(0,ee.jsx)(eQ.Image,{...et,sizes:{default:"90vw",lg:"649px"},className:"absolute top-0 left-0 size-full object-cover"})]})]})}),e6=({heading:X,layout:J,description:Z,items:Q,tagsPrefix:et,tags:er,theme:ei="light",className:en,...eo})=>(0,ee.jsx)(eY.InView,{as:eW.Section,className:(0,e0.U)("bg-white-contrast text-black-contrast py-20 lg:py-30",en),...(0,eK.f)(ei),...eo,children:(0,ee.jsxs)("div",{className:"container-wide",children:[(0,ee.jsxs)("div",{"data-inview":!0,className:(0,e0.U)("max-w-2xl","centered"===J&&"mx-auto text-center"),children:[X&&(0,ee.jsx)(eV.Heading,{"data-inview-anim":"words-fade-up",unstyled:!0,className:"heading-5 md:heading-4 lg:heading-3",children:(0,ee.jsx)(eX.SplitText,{as:"span",type:"words,lines",children:X})}),Z&&(0,ee.jsx)("div",{"data-inview-anim":"fade-up",className:"heading-6 lg:heading-5 mt-5 text-pretty",children:Z}),er&&(0,ee.jsxs)("div",{"data-inview-anim":"fade-up",className:(0,e0.U)("mt-8 flex flex-wrap items-center gap-2 lg:mt-10","centered"===J&&"justify-center"),children:[et&&(0,ee.jsx)("span",{className:"body-sm",children:et}),er.map(X=>(0,ee.jsx)("span",{className:"body-sm bg-elevated rounded-[4px] px-1 py-0.5",children:X},X))]})]}),(0,ee.jsx)("div",{className:"mx-auto mt-15 grid grid-cols-1 gap-2 lg:mt-20 lg:grid-cols-2",children:Q?.map((X,J)=>(0,ee.jsx)(e2,{...X},J))})]})}),e3=(X,J)=>{let Z=X?.fields??{},Q=Z.heading?.fields?.text??("string"==typeof Z.heading?Z.heading:void 0)??Z.title??"",et=Z.description?(0,ee.jsx)(to,{document:Z.description,includes:J}):"",er=eD(Z.image??Z.asset)??{src:"",alt:""};return{title:Q,description:et,image:er,primaryLink:(0,eU.W)(Z.primaryLink),secondaryLink:(0,eU.W)(Z.secondaryLink)}},e4=({fields:X,includes:J})=>{let{id:Z,heading:Q,description:et,tilesItems:er,layout:ei,theme:en="light",...eo}=X,ea=function(X){if(Array.isArray(X))return X.filter(Boolean);if(!X||"object"!=typeof X)return[];let J=X.fields?.tilesItems??X.fields?.tilesItems??X.fields?.items??X.fields?.tilesItemss;return Array.isArray(J)?J.filter(Boolean):[]}(er??X.tileItem??X.items),es=X.tagsPrefix,ef=X.tags,eu=Q?.fields?.text??"";if(2!==ea.length&&4!==ea.length)return null;let ec=2===ea.length?[e3(ea[0],J),e3(ea[1],J)]:[e3(ea[0],J),e3(ea[1],J),e3(ea[2],J),e3(ea[3],J)],el=et?(0,ee.jsx)(to,{document:et,includes:J}):void 0;return(0,ee.jsx)("div",{"data-componentname":"WrapperTiles",id:Z,children:(0,ee.jsx)(e6,{heading:eu,description:el,layout:"default"===ei||"centered"===ei?ei:void 0,theme:en,tagsPrefix:"string"==typeof es?es:void 0,tags:Array.isArray(ef)?ef.filter(X=>"string"==typeof X):void 0,items:ec,...(0,eU.A)(eo)})})};var e5=X.i(23485);function e8(X){return String(X?.sys?.contentType?.sys?.id??"").toLowerCase()}let e9=({fields:X,includes:J})=>{if(!X?.cards?.length)return null;let{cards:Z,type:Q}=X;if("Cards"===Q){let J=Z.find(X=>"tiles"===e8(X));if(J?.fields){let Z=J.fields;return(0,ee.jsx)(e4,{fields:{...Z,id:Z.id??X.id,heading:Z.heading??X.heading,tileItem:Z.tileItem??Z.items}})}if(Z.some(X=>(function(X){let J=e8(X);if("tileitem"===J||"tileitems"===J)return!0;let Z=X?.fields??{};return!!(Z?.primaryLink||Z?.secondaryLink||Z?.image)})(X)))return(0,ee.jsx)(e4,{fields:{...X,tileItem:Z}})}if("Product Card"===Q){let Q=X.classes||"",et=X.inlineStyles||"",er=Q.includes("fullbleed")?"fullbleed":"container",ei=Q.includes("lg-cards")?"lg":"md",en=Z.length,eo=Q.includes("equal")||Q.includes("height")?"h-100":"",ea=Q.includes("version2"),es=Q.includes("copy-first")?"order-first pb-4":"",ef=en>6&&Q.includes("copilot-hub-cards")||en>=5?"row-cols-sm-2 row-cols-lg-3 justify-content-center":en>=4?"row-cols-sm-2 row-cols-lg-4":`row-cols-${ei}-${en}`,eu=Q.includes("container-bg"),ec=!eu&&et?eN(et):void 0,el=eu&&et?eN(et):void 0;return(0,ee.jsx)("div",{id:X.id||void 0,className:`cmo-cards ${Q}`,style:ec,"data-componentname":"cf-cards",children:(0,ee.jsx)("div",{className:er,children:(0,ee.jsx)("div",{className:`row row-cols-1 ${ef}`,style:el,children:Z.map(X=>{let Z=X?.fields?.classes||"",Q=X?.fields?.inlineStyles||"",et=X?.fields?.isClickable?{"data-mount":"click-group"}:{};return ea?(0,ee.jsx)("div",{className:`col mt-3 ${Z}`,style:Q?eN(Q):void 0,children:(0,ee.jsxs)("div",{className:`card-img-overlay ${eo}`,...et,children:[(0,ee.jsx)("div",{className:"card-background",children:X?.fields?.asset?.fields?.images&&(0,ee.jsx)(ek.f,{fields:X.fields.asset.fields})}),(0,ee.jsx)("div",{className:"card-foreground p-4",children:(0,ee.jsx)(eL,{card:X,fields:X?.fields,includes:J,wrapperClassName:`card-body ${es}`})})]})},X?.sys?.id):(0,ee.jsx)("div",{className:`col mt-3 ${Z}`,children:(0,ee.jsx)("div",{className:`card ${eo}`,style:Q?eN(Q):void 0,...et,children:(0,ee.jsx)(eL,{card:X,fields:X?.fields,includes:J,wrapperClassName:`card-body ${es}`})})},X?.sys?.id)})})})})}if("Small Cards"===Q)return(0,ee.jsx)(eG,{fields:X});if("Feature Promo Banner"===Q)return null;if("Cards"===Q){let Q=Z.length;return(0,ee.jsx)("section",{className:`ms-cards-section ${X.classes??""}`,style:X.inlineStyles?eN(X.inlineStyles):void 0,id:X.id||void 0,"data-componentname":"FeatureCardsUp",children:(0,ee.jsx)("div",{className:`ms-cards-grid ${Q>=4?"ms-cards-grid--4":3===Q?"ms-cards-grid--3":"ms-cards-grid--2"}`,children:Z.map(X=>{if(!X?.fields)return null;let Z=X.fields.asset?.fields,Q=Z?.images,{asset:et,...er}=X.fields;return(0,ee.jsxs)("div",{className:"ms-card",children:[Q&&(0,ee.jsx)("div",{className:"ms-card-icon",children:(0,ee.jsx)(ek.f,{fields:Z})}),(0,ee.jsx)(e5.AnimateOnScroll,{animation:"fade-in",mode:"once",children:(0,ee.jsx)(eL,{fields:er,includes:J})})]},X.sys?.id)})})})}return(0,ee.jsx)("div",{id:X.id||void 0,className:X.classes||void 0,style:X.inlineStyles?eN(X.inlineStyles):void 0,"data-componentname":"cf-features",children:Z.map((X,Z)=>(0,ee.jsx)(eH,{card:X,includes:J},`${X?.sys?.id}-${Z}`))})};function e7(X){if(!X.includes("\n"))return X;let J=X.split("\n");return J.map((X,Z)=>(0,ee.jsxs)(et.Fragment,{children:[X,Z{Z.set(X.sys.id,X)}),X?.Entry?.forEach(X=>{Q.set(X.sys.id,X)}),{assetMap:Z,entryMap:Q}),ea=J?"c-hyperlink underline":void 0,es=J?"body":void 0;return{renderNode:{[en.HEADING_1]:(X,Z)=>(0,ee.jsx)("h1",{className:tr("ms-h1",te,J),children:Z}),[en.HEADING_2]:(X,Z)=>(0,ee.jsx)("h2",{className:tr("ms-h2",te,J),children:Z}),[en.HEADING_3]:(X,Z)=>(0,ee.jsx)("h3",{className:tr("ms-h3",te,J),children:Z}),[en.HEADING_4]:(X,Z)=>(0,ee.jsx)("h4",{className:tr("ms-h4",te,J),children:Z}),[en.HEADING_5]:(X,Z)=>(0,ee.jsx)("h5",{className:tr("ms-h5",te,J),children:Z}),[en.HEADING_6]:(X,Z)=>(0,ee.jsx)("h6",{className:tr("ms-h6",te,J),children:Z}),[en.PARAGRAPH]:(X,J)=>{let Z;return!Array.isArray(Z=X?.content)||0===Z.length||Z.every(X=>X?.nodeType==="text"&&(X?.value??"")==="")?(0,ee.jsx)("br",{}):(0,ee.jsx)("p",{className:es,children:J})},[en.UL_LIST]:(X,Z)=>(0,ee.jsx)("ul",{className:tr("ms-ul",tt,J),children:Z}),[en.OL_LIST]:(X,Z)=>(0,ee.jsx)("ol",{className:tr("ms-ol",tt,J),children:Z}),[en.LIST_ITEM]:(X,J)=>(0,ee.jsx)("li",{className:"ms-li",children:J}),[en.QUOTE]:(X,J)=>(0,ee.jsx)("blockquote",{className:"ms-blockquote",children:J}),[en.HR]:()=>(0,ee.jsx)("hr",{className:"my-8"}),[en.EMBEDDED_ASSET]:X=>{let J=X?.data?.target?.sys?.id,Z=et.get(J);if(!Z)return null;let{file:Q,title:er}=Z.fields,ei=Q?.url?.startsWith("//")?`https:${Q.url}`:Q?.url,en=ei?(0,ej.q)(ei):ei;return Q.contentType.startsWith("image/")?(0,ee.jsxs)("figure",{className:"my-6",children:[(0,ee.jsx)("img",{src:en,alt:er,className:"w-full rounded-lg",loading:"lazy"}),er&&(0,ee.jsx)("figcaption",{className:"text-sm text-ms-600 mt-2",children:er})]}):Q.contentType.startsWith("video/")?(0,ee.jsxs)("video",{controls:!0,className:"w-full my-6 rounded-lg",children:[(0,ee.jsx)("source",{src:en,type:Q.contentType}),"Your browser does not support the video tag."]}):null},[en.EMBEDDED_ENTRY]:J=>{let Z=J.data.target.sys.id,Q=ei.get(Z);if(!Q)return null;if("codeBlock"===Q.sys.contentType.sys.id)return(0,ee.jsx)("pre",{children:Q.fields.code});if("mediaImage"===Q.sys.contentType.sys.id){let X=(Q.fields?.images||[]).map(X=>{if(X?.fields?.file)return X;let J=X?.sys?.id;return J?et.get(J):void 0}).filter(Boolean),J={...Q.fields,images:X};return(0,ee.jsx)(ek.f,{fields:J})}if("accordion"===Q.sys.contentType.sys.id){let J=(Q.fields?.items||[]).map(X=>{let J=X.fields?X:ei.get(X.sys?.id);return J?.fields?J:{sys:X.sys,fields:{}}}),Z=Q.fields?.heading?.fields?Q.fields.heading:ei.get(Q.fields?.heading?.sys?.id),et=(Q.fields?.cta||[]).map(X=>X.fields?X:ei.get(X.sys?.id)||X);return(0,ee.jsx)(ts,{fields:{...Q.fields,items:J,heading:Z,cta:et},includes:X})}if("cards"===Q.sys.contentType.sys.id){let J=(Q.fields?.cards||[]).map(X=>{let J=X.fields?X:ei.get(X.sys?.id)||X;if(!J?.fields)return J;let Z=J.fields,Q=Z.heading?.fields?Z.heading:ei.get(Z.heading?.sys?.id)||Z.heading,ee=Z.badge?.fields?Z.badge:ei.get(Z.badge?.sys?.id)||Z.badge,er=(Z.cta||[]).map(X=>X.fields?X:ei.get(X.sys?.id)||X),en=Z.asset?.fields?Z.asset:ei.get(Z.asset?.sys?.id)||et.get(Z.asset?.sys?.id)||Z.asset;if(en?.fields){let X=(en.fields.images||[]).map(X=>X.fields?X:et.get(X.sys?.id)||X),J=(en.fields.videos||[]).map(X=>X.fields?X:et.get(X.sys?.id)||X);en={...en,fields:{...en.fields,images:X,videos:J}}}return{...J,fields:{...Z,heading:Q,badge:ee,asset:en,cta:er}}});return(0,ee.jsx)(e9,{fields:{...Q.fields,cards:J},includes:X})}if("footnotes"===Q.sys.contentType.sys.id){let J=Q.fields?.items||[],Z=Q.fields?.classes||"",et=J.map(X=>X.fields?X:ei.get(X.sys?.id)||X),er=et.filter(X=>!X?.fields?.id||"0"===X.fields.id),en=et.filter(X=>X?.fields?.id&&"0"!==X.fields.id);return(0,ee.jsxs)("div",{id:"footnotes",className:`footnotes ${Z}`.trim(),"data-componentname":"cf-footnotes",role:"region","aria-label":"Footnotes",children:[er.map((J,Z)=>{let Q=J?.fields?.text||J?.fields?.body||{nodeType:"document",content:[]};return(0,ee.jsx)("p",{className:"py-1 footnote-item mb-0",children:tn(Q,X)},J?.sys?.id||`plain-${Z}`)}),(0,ee.jsx)("ul",{className:"list-unstyled mb-0 px-md-4",children:en.map(J=>{let Z=J.fields.id,Q=J?.fields?.text||J?.fields?.body||{nodeType:"document",content:[]};return(0,ee.jsxs)("li",{className:"py-2 footnote-item",children:[(0,ee.jsxs)("a",{id:`sup${Z}`,className:"supLink",href:`#ref-${Z}`,"aria-label":J?.fields?.ariaLabel||`Footnote ${Z}`,children:["[",(0,ee.jsx)("span",{className:"supFn",children:Z}),"]"]})," ",tn(Q,X)]},J?.sys?.id||`fn-${Z}`)})})]})}return null},[eo.EMBEDDED_ENTRY]:X=>{let J=X?.data?.target,Z=(J?.fields&&J?.sys?.contentType?.sys?.id?J:null)||ei.get(J?.sys?.id);if(!Z)return console.warn("Missing inline entry:",J?.sys?.id),null;let Q=Z?.sys?.contentType?.sys?.id;if("footnoteItem"===Q){let X=Z.fields?.id||Z.sys.id;return(0,ee.jsx)("sup",{id:`ref-${X}`,children:(0,ee.jsx)("a",{href:`#footnote-${X}`,"aria-label":Z.fields?.ariaLabel||`Footnote ${X}`,className:"c-hyperlink underline",children:(0,ee.jsx)("span",{className:"supText",children:X})})})}if("genericCta"===Q){let X=Z.fields?.type,J=Z.fields?.text;if("Inline Link"===X){let X=Z.fields?.link,Q="string"==typeof X?X.trim():"",et=Z.fields?.openInNewTab===!0;return(0,ee.jsx)("a",{href:Q||"#",target:et?"_blank":void 0,"aria-label":Z.fields?.ariaLabel||J,className:"c-hyperlink underline","data-bi-ecn":Z.fields?.ecn||J,"data-bi-ehn":Z.fields?.ehn||J,"data-bi-hn":Z.fields?.hn||J,...Z?.fields?.download?{"data-download":"true"}:{},children:(0,ee.jsx)("span",{className:"supText",children:J})})}}return(0,ee.jsx)(er.f,{cta:[Z]})},[eo.HYPERLINK]:(X,J)=>{let Z=X.data.uri,Q=Z.startsWith("/"),et=Z.startsWith("#");if(Q)return(0,ee.jsx)(eI.default,{href:Z,className:ea,children:J});if(et){let X=Z.match(/^#(?:sup|f)(\w+)$/);if(X){let J=X[1];return(0,ee.jsx)("sup",{children:(0,ee.jsx)("a",{href:Z,id:`ref-${J}`,"aria-label":`Footnote ${J}`,className:"c-hyperlink supBLink",children:(0,ee.jsx)("span",{className:"supText",children:J})})})}return(0,ee.jsx)("a",{href:Z,className:ea,children:J})}return(0,ee.jsx)("a",{href:Z,target:"_blank",rel:"noopener noreferrer",className:ea,children:J})},[eo.ASSET_HYPERLINK]:(X,J)=>{let{file:Z}=X.data.target.fields,Q=(0,ej.q)(`https:${Z.url}`);return(0,ee.jsx)("a",{href:`https:${Q}`,download:!0,className:ea,children:J})},[eo.ENTRY_HYPERLINK]:(X,J)=>(0,ee.jsx)("span",{className:"font-bold",children:J})},renderMark:{[eu.BOLD]:X=>(0,ee.jsx)("strong",{className:"font-bold",children:X}),[eu.ITALIC]:X=>(0,ee.jsx)("em",{className:"italic",children:X}),[eu.UNDERLINE]:X=>(0,ee.jsx)("u",{className:"underline",children:X}),[eu.CODE]:X=>(0,ee.jsx)("code",{className:"bg-gray-100 text-ms-700 px-2 py-1 rounded font-mono text-sm",children:X}),[eu.STRIKETHROUGH]:X=>(0,ee.jsx)("s",{className:"line-through",children:X})},renderText:e7}}function tn(X,J){let Z=ti(J);return eR(X,{...Z,renderNode:{...Z.renderNode||{},[en.PARAGRAPH]:(X,J)=>(0,ee.jsx)("span",{className:"my-0 leading-[1.5] text-ms-700 text-sm",children:J})}})}function to({document:X,includes:J,styleContent:Z=!1}){return X?(0,ee.jsx)("div",{className:"rich-text-content",children:eR(X,ti(J,Z))}):null}let ta=to,ts=({fields:X,includes:J={}})=>{let{items:Z=[],heading:Q,cta:en,hideIcon:eo=!1}=X,ea=(0,et.useId)(),[es,ef]=(0,et.useState)(()=>new Set),eu=(0,et.useCallback)(X=>{ef(J=>{let Z=new Set(J);return Z.has(X)?Z.delete(X):Z.add(X),Z})},[]),ec=(0,et.useMemo)(()=>Z.filter(X=>X.fields.question&&X.fields.answer).map(X=>({question:X.fields.question,answer:X?.fields?.answer?(0,ee.jsx)(ta,{document:X.fields.answer,includes:J}):null,cta:X.fields.cta||[],triggerAttrs:{"data-bi-ecn":X.fields.question,"data-bi-ehn":X.fields.question,"data-bi-hn":X.fields.question,...(0,eU.E)(X.fields)}})),[Z,J]),el=(0,et.useCallback)(()=>{ef(new Set(ec.map((X,J)=>J)))},[ec]),eh=(0,et.useCallback)(()=>{ef(new Set)},[]);if(!Z||0===Z.length||!ec||0===ec.length)return null;let ed=es.size===ec.length,ep=0===es.size;return(0,ee.jsxs)("div",{className:"ms-accordion",children:[Q?.fields&&(0,ee.jsx)(ei.f,{fields:Q.fields}),(0,ee.jsxs)("div",{className:"ms-accordion-controls",children:[(0,ee.jsx)("button",{type:"button",className:`ms-accordion-control-btn ${ed?"ms-accordion-control-disabled":""}`,onClick:()=>!ed&&el(),"aria-label":"Expand All","aria-disabled":ed,children:"Expand All"}),(0,ee.jsx)("span",{"aria-hidden":"true",className:"ms-accordion-control-separator",children:"|"}),(0,ee.jsx)("button",{type:"button",className:`ms-accordion-control-btn ${ep?"ms-accordion-control-disabled":""}`,onClick:()=>!ep&&eh(),"aria-label":"Collapse All","aria-disabled":ep,children:"Collapse All"})]}),(0,ee.jsx)("ul",{className:"ms-accordion-list",role:"list",children:ec.map((X,J)=>{if(!X)return null;let Z=es.has(J),Q=`${ea}-panel-${J}`,et=`${ea}-trigger-${J}`;return(0,ee.jsxs)("li",{className:"ms-accordion-item",children:[(0,ee.jsx)("h4",{className:"ms-accordion-header",children:(0,ee.jsxs)("button",{id:et,type:"button",className:"ms-accordion-trigger",onClick:()=>eu(J),"aria-expanded":Z,"aria-controls":Q,...X.triggerAttrs,children:[!eo&&(0,ee.jsx)("span",{className:`ms-accordion-icon ${Z?"ms-accordion-icon-open":""}`,"aria-hidden":"true"}),X.question]})}),(0,ee.jsx)("div",{id:Q,role:"region","aria-labelledby":et,className:"ms-accordion-panel",style:{display:Z?"block":"none"},children:(0,ee.jsxs)("div",{className:"ms-accordion-body",children:[X.answer,X.cta&&X.cta.length>0&&(0,ee.jsx)("div",{className:"mt-4",children:(0,ee.jsx)(er.f,{cta:X.cta})})]})})]},J)})}),en&&en.length>0&&(0,ee.jsx)("div",{className:"mt-6",children:(0,ee.jsx)(er.f,{cta:en})})]})}},36665,X=>{let J={ecn:"data-bi-ecn",ehn:"data-bi-ehn",hn:"data-bi-hn",bhvr:"data-bi-bhvr",cn:"data-bi-cn"};function Z(X){let Z={};for(let Q of Object.keys(X)){let ee=X[Q];if("string"==typeof ee||"boolean"==typeof ee||"number"==typeof ee){if(Q.startsWith("data-"))Z[Q]=String(ee);else if(/^data[A-Z]/.test(Q))Z[Q.replace(/([A-Z])/g,X=>`-${X.toLowerCase()}`)]=String(ee);else if(Q in J){let X=J[Q];X in Z||(Z[X]=String(ee))}}}return Z}function Q(X){if(null==X||"object"!=typeof X)return;let J={...Z(X)};"string"==typeof X["aria-label"]?J["aria-label"]=X["aria-label"]:"string"==typeof X.ariaLabel&&(J["aria-label"]=X.ariaLabel);let Q=X.disabled;"boolean"==typeof Q?J["aria-disabled"]=Q:("true"===Q||"false"===Q)&&(J["aria-disabled"]="true"===Q);let ee=X.download;return"boolean"==typeof ee?J["data-download"]=ee:("true"===ee||"false"===ee)&&(J["data-download"]="true"===ee),"string"==typeof X.variant&&(J.variant=X.variant),Object.keys(J).length>0?J:void 0}X.s(["E",0,Q,"H",0,function(X){let J=Q(X),Z=null!=X&&"object"==typeof X?X:{},ee="string"==typeof Z.text?Z.text:"";if(J||ee)return{...J??{},text:ee}},"A",0,function(X){if(null==X||"object"!=typeof X)return;let J=Z(X);return Object.keys(J).length>0?J:void 0},"W",0,function(X,J=!1){if(!X?.fields?.link)return;let Z=Q(X.fields),ee="boolean"==typeof Z?.["aria-disabled"]&&Z["aria-disabled"];return{href:X.fields.link,text:X.fields.text??"",...X.fields.openInNewTab&&{target:"_blank",rel:"noopener noreferrer"},...Z,"aria-disabled":ee||J}}])},6510,27344,X=>{var J=X.i(47167);let Z=new Set(["images","downloads","assets","videos"]);function Q(){return void 0===J.default?{enabled:!1,assetServiceHostname:"assets.example.com"}:{enabled:"true"===J.default.env.CONTENTFUL_EMBARGOED_ASSETS_ENABLED,assetServiceHostname:J.default.env.APP_URL||"assets.example.com"}}X.s(["f",0,Q],27344);let ee=(()=>{try{return JSON.parse(J.default.env.EMBARGOED_ASSETS||"{}")}catch{return{}}})(),et=J.default.env.APP_URL;function er(X){try{let J=new URL(X);return/^(images|assets|downloads|videos)\.secure\.ctfassets\.net$/i.test(J.hostname)&&(J.hostname=J.hostname.replace(".secure.ctfassets.net",".ctfassets.net")),J.toString()}catch{return X}}function ei(X){return X?ee.embargoedAssetsEnabled?function(X,J){var Q;let ee;if(!X||/\/api\/assets\/(images|downloads|assets|videos)\//.test(X))return X;let et=function(X){let J=X.trim().replace(/^https\/\//i,"https://").replace(/^http\/\//i,"http://");try{if(J.startsWith("//"))return new URL(`https:${J}`);if(/^https?:\/\//i.test(J))return new URL(J);return new URL(J,"https://ctfassets.net")}catch{return null}}(X);if(!et)return X;let er=function(X){let J=X?.trim();if(!J)return null;try{if(/^https?:\/\//i.test(J))return new URL(J);return new URL(`https://${J}`)}catch{return null}}(J);if(!er)return X;let ei=(Q=et.hostname,ee=Q.split(".")[0]?.toLowerCase(),Z.has(ee)?ee:"assets");return et.hostname=er.hostname,et.port=er.port||"",et.protocol="localhost"===er.hostname||"127.0.0.1"===er.hostname?"http:":er.protocol||"https:",et.pathname=`/api/assets/${ei}${et.pathname}`,et.toString()}(X,et):er(X):""}function en(X,J){if(!X)return"";let Z=new URL(ee.embargoedAssetsEnabled?X:er(X));for(let[X,Q]of Object.entries(J))Z.searchParams.append(X,String(Q));return Z.toString()}X.s(["G",0,en,"T",0,function(X){if(!X)return!1;try{return new URL(X,"https://ctfassets.net").hostname.includes("secure.ctfassets.net")}catch{return!1}},"o",0,function(X){let J=Q();if(!X||!J.enabled)return!1;try{return new URL(X).hostname===J.assetServiceHostname}catch{return!1}},"$",0,ei,"q",0,function(X,J){let Z=ei(X);return J&&0!==Object.keys(J).length?en(Z,J):Z}],6510)},79712,X=>{X.i(6510),X.s([])},27930,X=>{X.i(47167);var J=X.i(71645),Z=X.i(40886),Q=X.i(52245);let ee=J.forwardRef(function(X,J){let{render:ee,className:et,disabled:er=!1,focusableWhenDisabled:ei=!1,nativeButton:en=!0,style:eo,...ea}=X,{getButtonProps:es,buttonRef:ef}=(0,Z.f)({disabled:er,focusableWhenDisabled:ei,native:en});return(0,Q.f)("button",X,{state:{disabled:er},ref:[J,ef],props:[ea,es]})});X.s(["Button",0,ee])},40886,29315,14553,88940,67865,46376,76782,33332,38452,33848,64350,28918,58321,56789,77570,52245,X=>{var J=X.i(71645);function Z(){return"u">typeof window}function Q(X){return et(X)?(X.nodeName||"").toLowerCase():"#document"}function ee(X){var J;return(null==X||null==(J=X.ownerDocument)?void 0:J.defaultView)||window}function et(X){return!!Z()&&(X instanceof Node||X instanceof ee(X).Node)}function er(X){return!!Z()&&(X instanceof HTMLElement||X instanceof ee(X).HTMLElement)}function ei(X){return!(!Z()||"u"X();function ec(X){let J=es(el).current;return J.next=X,eu(J.effect),J.trampoline}function el(){let X={next:void 0,callback:eh,trampoline:(...J)=>X.callback?.(...J),effect:()=>{X.callback=X.next}};return X}function eh(){}X.s(["f",0,ec],67865);let ed="u">typeof document?J.useLayoutEffect:()=>{};function ep(X,J){return X&&!J?X:!X&&J?J:X||J?{...X,...J}:void 0}X.s(["f",0,ed],46376);let eb={};function ey(X,J,Z,Q,ee){if(!Z&&!Q&&!ee&&!X)return eg(J);let et=eg(X);return J&&(et=ev(et,J)),Z&&(et=ev(et,Z)),Q&&(et=ev(et,Q)),ee&&(et=ev(et,ee)),et}function em(X){if(0===X.length)return eb;if(1===X.length)return eg(X[0]);let J=eg(X[0]);for(let Z=1;Z{let Q=Z[0];if(eM(Q)){eE(Q);let ee=J(...Z);return Q.baseUIHandlerPrevented||X?.(...Z),ee}let ee=J(...Z);return X?.(...Z),ee}:e_(J):X}(X[Z],Q):X[Z]=Q}}return X}(X,J)}function ew(X,J){let Z=X.charCodeAt(0),Q=X.charCodeAt(1),ee=X.charCodeAt(2);return 111===Z&&110===Q&&ee>=65&&ee<=90&&("function"==typeof J||void 0===J)}function ex(X){return"function"==typeof X}function e_(X){return X?(...J)=>{let Z=J[0];return eM(Z)&&eE(Z),X(...J)}:X}function eE(X){return X.preventBaseUIHandler=()=>{X.baseUIHandlerPrevented=!0},X}function eS(X,J){return J?X?J+" "+X:J:X}function eM(X){return null!=X&&"object"==typeof X&&"nativeEvent"in X}X.s(["U",0,eE,"c",0,eS,"w",0,ey,"b",0,em],76782);let eA=function(X,...J){let Z=new URL("https://base-ui.com/production-error");return Z.searchParams.set("code",X.toString()),J.forEach(X=>Z.searchParams.append("args[]",X)),`Base UI error #${X}; visit ${Z} for the full message.`};X.s(["f",0,eA],33332);let eR=J.createContext(void 0);function eI(X=!1){let Z=J.useContext(eR);if(void 0===Z&&!X)throw Error(eA(16));return Z}function ek(X,J,{detail:Z=0,pointerType:Q=""}={}){X.dispatchEvent(new(ee(X)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:Z,pointerType:Q,shiftKey:J.shiftKey,ctrlKey:J.ctrlKey,altKey:J.altKey,metaKey:J.metaKey}))}function ej(X){return er(X)&&"BUTTON"===X.tagName}function eT(X,J,Z,Q){var ee,et,er,ei,en;let eo=es(eN).current;return ee=eo,et=X,er=J,ei=Z,en=Q,(ee.refs[0]!==et||ee.refs[1]!==er||ee.refs[2]!==ei||ee.refs[3]!==en)&&eP(eo,[X,J,Z,Q]),eo.callback}function eO(X){var J,Z;let Q=es(eN).current;return J=Q,Z=X,(J.refs.length!==Z.length||J.refs.some((X,J)=>X!==Z[J]))&&eP(Q,X),Q.callback}function eN(){return{callback:null,cleanup:null,refs:[]}}function eP(X,J){if(X.refs=J,J.every(X=>null==X)){X.callback=null;return}X.callback=Z=>{if(X.cleanup&&(X.cleanup(),X.cleanup=null),null!=Z){let Q=Array(J.length).fill(null);for(let X=0;X{for(let X=0;X{let X={onKeyDown(X){Q&&Z&&"Tab"!==X.key&&X.preventDefault()}};return ee||(X.tabIndex=et,!er&&Q&&(X.tabIndex=Z?et:-1)),(er&&(Z||ei)||!er&&Q)&&(X["aria-disabled"]=Q),er&&(!Z||en)&&(X.disabled=Q),X},[ee,Q,Z,ei,en,er,et])}}({focusableWhenDisabled:Q,disabled:Z,composite:ea,tabIndex:ee,isNativeButton:et}),ef=J.useCallback(()=>{let X=en.current;ej(X)&&ea&&Z&&void 0===es.disabled&&X.disabled&&(X.disabled=!1)},[Z,es.disabled,ea]);return ed(ef,[ef]),{getButtonProps:J.useCallback((X={})=>{let{onClick:J,onMouseDown:Q,onKeyUp:ee,onKeyDown:ei,onPointerDown:en,...eo}=X;return ey({onClick(X){Z?X.preventDefault():J?.(X)},onMouseDown(X){Z||Q?.(X)},onKeyDown(X){var J;if(Z||(eE(X),ei?.(X),X.baseUIHandlerPrevented))return;let Q=X.target===X.currentTarget,ee=X.currentTarget,en=ej(ee),eo=!et&&er(J=ee)&&"A"===J.tagName&&!!J.href,es=Q&&(et?en:!eo),ef="Enter"===X.key,eu=" "===X.key,ec=ee.getAttribute("role"),el=ec?.startsWith("menuitem")||"option"===ec||"gridcell"===ec;if(Q&&ea&&eu){if(X.defaultPrevented&&el)return;X.preventDefault(),(!et||en)&&(X.preventBaseUIHandler(),ek(ee,X));return}if(!es||et||!eu&&!ef){Q&&eo&&eu&&X.preventDefault();return}!X.defaultPrevented&&(X.preventDefault(),ef&&(X.preventBaseUIHandler(),ek(ee,X)))},onKeyUp(X){Z||((eE(X),ee?.(X),X.target===X.currentTarget&&et&&ea&&ej(X.currentTarget)&&" "===X.key)?X.preventDefault():!X.baseUIHandlerPrevented&&(X.target!==X.currentTarget||et||ea||X.defaultPrevented||" "!==X.key||(X.preventBaseUIHandler(),ek(X.currentTarget,X))))},onPointerDown(X){Z?X.preventDefault():en?.(X)}},et?{type:"button"}:{role:"button"},es,eo)},[Z,es,ea,et]),buttonRef:ec(X=>{en.current=X,ef()})}}],40886),X.s(["A",0,eT,"f",0,eO],28918);let eL=parseInt(J.version,10);function eB(X){return eL>=X}function eC(X){if(!J.isValidElement(X))return null;let Z=X.props;return(eB(19)?Z?.ref:X.ref)??null}X.s(["f",0,eB],58321);let eD=Object.freeze([]),eU=Object.freeze({});function e$(X,J){return"function"==typeof X?X(J):X}X.s(["v",0,eD,"w",0,eU,"x",0,function(){}],56789),X.s(["f",0,e$],77570);let eq=Symbol.for("react.lazy");X.s(["f",0,function(X,Z,Q={}){let ee=Z.render;!1!==Q.enabled&&(ee=function(X){if(X?.$$typeof!==eq)return X;let Z=J.Children.toArray(X)[0];return J.isValidElement(Z)?Z:X}(ee));let et=function(X,J,Z){var Q;let{className:ee,style:et}=X,{state:er=eU,ref:ei,props:en,stateAttributesMapping:eo,enabled:ea=!0}=J,es=ea?"function"==typeof ee?ee(er):ee:void 0,ef=ea?e$(et,er):void 0,eu=ea?function(X,J){let Z={};for(let Q in X){let ee=X[Q];if(J?.hasOwnProperty(Q)){let X=J[Q](ee);null!=X&&Object.assign(Z,X);continue}!0===ee?Z[`data-${Q.toLowerCase()}`]="":ee&&(Z[`data-${Q.toLowerCase()}`]=ee.toString())}return Z}(er,eo):eU,ec=ea&&en?Array.isArray(Q=en)?em(Q):ey(void 0,Q):void 0,el=ea?ep(eu,ec)??{}:eU;return("u">typeof document&&(ea?Array.isArray(ei)?el.ref=eO([el.ref,eC(Z),...ei]):el.ref=eT(el.ref,eC(Z),ei):eT(null,null)),ea)?(void 0!==es&&(el.className=eS(el.className,es)),void 0!==ef&&(el.style=ep(el.style,ef)),el):eU}(Z,Q,ee);return!1===Q.enabled?null:function(X,Z,Q,ee){var et,er;if(Z){if("function"==typeof Z)return Z(Q,ee);let X=ey(Q,Z.props);return X.ref=Q.ref,J.cloneElement(Z,X)}return et=X,er=Q,"button"===et?(0,J.createElement)("button",{type:"button",...er,key:er.key}):"img"===et?(0,J.createElement)("img",{alt:"",...er,key:er.key}):J.createElement(et,er)}(X,ee,et,Q.state??eU)}],52245)},43820,X=>{var J=X.i(308),Z=X.i(2388),Q=X.i(16984),ee=X.i(84563),et=X.i(18771),er=X.i(43476);let ei=({video:X})=>(0,er.jsx)(et.f,{data:{"@context":"https://schema.org","@type":"VideoObject",...X}});var en=X.i(85286),eo=X.i(92438),ea=X.i(31461),es=X.i(77463),ef=X.i(65265),eu=X.i(7670),ec=X.i(71645);let el={sm:Z.f`sm:aspect-(--dt-ar)`,md:Z.f`md:aspect-(--dt-ar)`,lg:Z.f`lg:aspect-(--dt-ar)`,landscape:Z.f`landscape:aspect-(--dt-ar)`,"landscape-4/5":Z.f`[@media(min-aspect-ratio:4/5)]:aspect-(--dt-ar)`,hover:Z.f`can-hover:aspect-(--dt-ar)`},eh={"top-start":Z.f`inset-s-5 inset-bs-5 lg:inset-s-10 lg:inset-bs-10`,"top-end":Z.f`inset-e-5 inset-bs-5 lg:inset-e-10 lg:inset-bs-10`,"bottom-start":Z.f`inset-s-5 inset-be-5 lg:inset-s-10 lg:inset-be-10`,"bottom-end":Z.f`inset-e-5 inset-be-5 lg:inset-e-10 lg:inset-be-10`},ed={"top-start":Z.f`max-lg:inset-s-5 max-lg:inset-bs-5`,"top-end":Z.f`max-lg:inset-e-5 max-lg:inset-bs-5`,"bottom-start":Z.f`max-lg:inset-s-5 max-lg:inset-be-5`,"bottom-end":Z.f`max-lg:inset-e-5 max-lg:inset-be-5`},ep={"top-start":Z.f`lg:inset-s-10 lg:inset-bs-10`,"top-end":Z.f`lg:inset-e-10 lg:inset-bs-10`,"bottom-start":Z.f`lg:inset-s-10 lg:inset-be-10`,"bottom-end":Z.f`lg:inset-e-10 lg:inset-be-10`};X.s(["DecorativeVideo",0,({style:X,sources:Z,width:et,height:eb,poster:ey,loop:em,className:eg,posterSizes:ev,playButtonClassName:ew,playButtonSize:ex,playButtonAttributes:e_,pauseButtonAttributes:eE,mediaClassName:eS,mediaContainerAttributes:eM,cornerClassName:eA,toggleCorner:eR="top-start",ref:eI,autoPlay:ek=!0,preload:ej="none",priority:eT=!1,naturalAspectRatio:eO=!1,desktopWidth:eN,desktopHeight:eP,desktopSources:eL,desktopPoster:eB,desktopMediaQuery:eC,onPosterLoad:eD})=>{let eU=eC?ea.H[eC]:void 0,e$=eT&&"none"===ej?"metadata":ej,eq=(0,ec.useRef)(null),ez=(0,ec.useRef)(null),eF=(0,eo.f)(),eH=(0,en.f)(ez,{threshold:0,enabled:ek}),[eG,eK]=(0,ec.useState)(!1),eW=(0,ec.useEffectEvent)(()=>{ez.current?.setAttribute("data-video-ready",""),ey||eB||eD?.()});(0,ec.useEffect)(()=>{let X=eq.current;if(!X)return;let J=()=>eK(!0),Z=()=>eK(!1);return X.addEventListener("play",J),X.addEventListener("pause",Z),X.readyState>=HTMLMediaElement.HAVE_FUTURE_DATA?eW():X.addEventListener("canplay",eW,{once:!0}),()=>{X.removeEventListener("canplay",eW),X.removeEventListener("play",J),X.removeEventListener("pause",Z)}},[]),(0,ec.useEffect)(()=>{if(!eU)return;let X=eq.current;if(!X||"u"{let J=!X.paused;X.load(),J&&X.play().catch(()=>{})};return J.addEventListener("change",Z),()=>J.removeEventListener("change",Z)},[eU]);let eV=(0,ec.useRef)(!1),eY=(0,ec.useRef)(!1);(0,ec.useEffect)(()=>{let X=eq.current;X&&(eH?eY.current?eV.current&&X.play().catch(()=>{}):(eY.current=!0,ek&&!eF&&X.play().catch(()=>{})):(eV.current=!X.paused,X.pause()))},[eH,eF,ek]),(0,ec.useImperativeHandle)(eI,()=>({play:X=>{let J=eq.current;if(J){if(void 0!==X)try{J.readyState>=HTMLMediaElement.HAVE_METADATA&&J.seekable.length>0&&(J.currentTime=X)}catch{}return J.play().catch(()=>{})}},pause:()=>eq.current?.pause(),restart:()=>{let X=eq.current;if(X){try{X.readyState>=HTMLMediaElement.HAVE_METADATA&&X.seekable.length>0&&(X.currentTime=0)}catch{}X.play().catch(()=>{})}}}));let eX=(0,ec.useCallback)(()=>{let X=eq.current;X&&(X.paused?X.play().catch(()=>{}):X.pause())},[]),{className:eJ,...eZ}=eM??{},eQ="object"==typeof ev?(0,es.f)(ev):ev??"100vw",e0=eB&&eU?J.R.getImageProps({...eB,sizes:eQ}).props:void 0,{srcSet:e1,...e2}=(ey?J.R.getImageProps({...ey,sizes:eQ}).props:void 0)??{};return(0,er.jsxs)("div",{ref:ez,style:{...eO&&et&&eb&&{"--mb-ar":`${et}/${eb}`},...eO&&eN&&eP&&{"--dt-ar":`${eN}/${eP}`},...X},"data-theme":"dark",className:(0,eu.U)("group/dv relative size-full",eO&&et&&eb&&"aspect-(--mb-ar)",eO&&eN&&eP&&eC&&el[eC],eg),children:[ey&&Z[0]&&(0,er.jsx)(ei,{video:{name:ey.alt,thumbnailUrl:e2.src,contentUrl:Z[0].src,...et&&eb&&{width:et,height:eb}}}),(0,er.jsxs)("div",{"data-decorative-wrapper":!0,...eZ,className:(0,eu.U)("absolute inset-0 z-0 overflow-hidden",eJ),children:[ey&&(0,er.jsx)("div",{className:"absolute inset-0 z-1 transition-opacity duration-700 group-data-video-ready/dv:pointer-events-none group-data-video-ready/dv:opacity-0",children:(0,er.jsxs)("picture",{className:"size-full",children:[eB&&e0&&eU&&(0,er.jsx)("source",{srcSet:e0.srcSet??e0.src,sizes:e0.sizes,media:eU}),(0,er.jsx)("source",{srcSet:e1??e2.src,sizes:e2.sizes,media:eU?`not ${eU}`:void 0}),(0,er.jsx)(ef.Image,{native:!0,priority:eT,onLoad:eD,className:(0,eu.U)("size-full object-cover drag-none",eS),...e2})]})}),(0,er.jsxs)("video",{ref:eq,"aria-hidden":"true",className:(0,eu.U)("absolute inset-0 size-full object-cover",eS),muted:!0,loop:em??!0,playsInline:!0,preload:e$,disablePictureInPicture:!0,children:[eU&&eL?.map(X=>(0,er.jsx)("source",{src:X.src,type:X.type,media:eU},`dk-${X.src}`)),Z.map(X=>(0,er.jsx)("source",{src:X.src,type:X.type,media:eU?`not ${eU}`:void 0},X.src))]})]}),(0,er.jsx)("div",{"data-play-pause-wrapper":!0,children:(0,er.jsx)(ee.f,{isPlaying:eG,onToggle:eX,size:ex,playButtonAttributes:{"aria-label":(0,Q.t)("playVideo"),...e_},pauseButtonAttributes:{"aria-label":(0,Q.t)("pauseVideo"),...eE},className:(0,eu.U)("absolute z-2 flex cursor-pointer items-center justify-center rounded-full transition-colors duration-300",!1,"bg-surface-overlay hover:bg-surface-overlay/90 text-white",!1,!ex&&"size-10 p-3",!eA&&("string"==typeof eR?eh[eR]:(0,eu.U)(ed[eR.default],eR.md&&ep[eR.md])),eA,ew)})})]})}],43820)},30440,X=>{var J=X.i(50398),Z=X.i(7670),Q=X.i(71645),ee=X.i(43476),et=X.i(33363);let er="[data-inview]",ei=()=>{try{return"u">typeof window&&null!=window.localStorage.getItem("inview-debug")}catch{return!1}},en=(X,J)=>{J?X.setAttribute("data-inview-visible",""):X.removeAttribute("data-inview-visible")},eo=(X,J)=>{J?X.setAttribute("data-inview-hidden",""):X.removeAttribute("data-inview-hidden")},ea=X=>[...X.matches(er)?[X]:[],...Array.from(X.querySelectorAll(er))].filter(J=>J.closest("[data-inview-scope]")===X);X.s(["InView",0,({as:X,className:er,threshold:es,rootMargin:ef,onVisibilityChange:eu,ref:ec,...el})=>{let eh=(0,Q.useRef)(null),ed=(0,J.f)(eh,ec),ep=(0,Q.useRef)(es),eb=(0,Q.useRef)(ef),ey=(0,Q.useRef)(new WeakSet),em="function"==typeof eu,eg=(0,Q.useEffectEvent)((X,J)=>eu?.(X,J));return(0,Q.useEffect)(()=>{let X=eh.current;if(!X||"u"{ei()&&(console.groupCollapsed("%c[InView]%c "+J,"color:#8b5cf6;font-weight:bold","color:inherit"),Z&&console.debug(Z),console.debug(X),console.groupEnd())};if(void 0===window.IntersectionObserver){let Z=ea(X);J("IntersectionObserver unavailable — revealing all targets",{targets:Z.length,wrapper:X}),Z.forEach(X=>{en(X,!0)});return}let Z=[],Q;if(em){let J=(0,et.f)({rootMargin:eb.current,threshold:ep.current}),Q=X=>{!1===eg(X.isIntersecting,X)&&ee()},ee=()=>J.unsubscribe(X,Q);J.subscribe(X,Q),Z.push(ee)}let ee=ea(X);if(J("observing",{targets:ee.length,hasOnChange:em,root:Q}),ee.forEach(X=>{let ee=X.hasAttribute("data-inview-repeat"),er=X.hasAttribute("data-inview-defer"),ei=X.hasAttribute("data-inview-await-fonts");if(!ee&&ey.current.has(X)){J("skip (already revealed)",{target:X}),er?eo(X,!1):en(X,!0);return}let ea=(0,et.f)({root:Q,rootMargin:X.dataset.inviewMargin??"0px 0px -10% 0px",threshold:null!=X.dataset.inviewThreshold?parseFloat(X.dataset.inviewThreshold):0}),es=Z=>{let Q=Z.isIntersecting;J(er?"defer":"reveal",{target:X,isVisible:Q,repeat:ee,ratio:Z.intersectionRatio});let et=()=>{er?eo(X,!Q):en(X,Q)};ei&&Q&&"u">typeof document&&document.fonts?.status!=="loaded"?(J("awaiting fonts before reveal",{target:X}),document.fonts.ready.then(()=>{X.isConnected&&et()})):et(),!ee&&Q&&(J("settled (unsubscribing)",{target:X}),ey.current.add(X),ea.unsubscribe(X,es))};ea.subscribe(X,es),Z.push(()=>ea.unsubscribe(X,es))}),ei()&&"u">typeof MutationObserver){let Q=new Set(ee),et=new MutationObserver(()=>{Q.forEach(X=>{X.isConnected||(J("tracked target removed from DOM while still subscribed",{target:X}),Q.delete(X))})});et.observe(X,{childList:!0,subtree:!0}),Z.push(()=>et.disconnect())}return()=>{J("cleanup",{subscriptions:Z.length}),Z.forEach(X=>X())}},[em]),(0,ee.jsx)(X??"div",{ref:ed,className:(0,Z.U)("inview-root",er),...el,"data-inview-scope":!0})},"inViewAnimStyle",0,({delay:X,duration:J,easing:Z,fromTranslateX:Q,fromTranslateY:ee}={})=>({...null==X?{}:{"--inview-delay":X+"ms"},...null==J?{}:{"--inview-duration":J+"ms"},...null==Z?{}:{"--inview-easing":Z},...null==Q?{}:{"--inview-from-translate-x":Q},...null==ee?{}:{"--inview-from-translate-y":ee}})])},49621,X=>{var J=X.i(43476);X.s(["f",0,X=>X.href?(0,J.jsx)("a",{...X,"aria-hidden":"true",tabIndex:-1,className:"absolute inset-0 z-1 drag-none"}):null])},13522,X=>{var J=X.i(71645),Z=X.i(43476);let Q=(0,J.createContext)(0),ee=()=>(0,J.useContext)(Q)??0;X.s(["Section",0,({children:X,as:J,level:et,ref:er,fragment:ei,...en})=>{let eo=ee();return(0,Z.jsx)(Q.Provider,{value:et??Math.min(6,eo+1),children:ei?(0,Z.jsx)(Z.Fragment,{children:X}):(0,Z.jsx)(J||"section",{ref:er,...en,children:X})})},"useSectionContext",0,ee])},2085,X=>{var J=X.i(308),Z=X.i(71526),Q=X.i(2388),ee=X.i(27930),et=X.i(7670),er=X.i(43476);let ei=Q.f`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 aria-disabled:cursor-not-allowed`,en={primary:Q.f`bg-brand text-white outline-brand hover:bg-brand-hover active:bg-brand-active disabled:opacity-40 aria-disabled:opacity-40`,secondary:(0,et.U)("text-black-contrast outline-black-contrast hover:text-black-contrast border disabled:opacity-40 aria-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,et.U)("outline-black-contrast disabled:opacity-40 aria-disabled:opacity-40",!1,"h-5.5 gap-2"),tag:Q.f`bg-ms-grey-1 text-black hover:bg-brand hover:text-white`,naked:Q.f`disabled:opacity-40 aria-disabled:opacity-40`},eo=Q.f`outline-offset-4 focus-visible:outline-1`,ea={sm:Q.f`label-sm gap-4`,default:Q.f`label-md gap-8`},es={sm:Q.f`py-2`,default:Q.f`py-4`},ef={sm:Q.f`rounded-full py-2`,default:Q.f`rounded-full py-4`},eu={sm:{before:Q.f`ps-2.5 pe-4`,after:Q.f`ps-4 pe-2.5`,alone:Q.f`px-2`},default:{before:Q.f`px-4`,after:Q.f`px-4`,alone:Q.f`px-4`}},ec={sm:Q.f`rounded-full px-6 py-2`,default:Q.f`rounded-full px-5 py-3`},el=({variant:X="primary",size:J="default",icon:Z,iconPosition:Q="after",children:ee,text:er,className:el})=>{let eh=Z&&!(ee||er)||"alone"===Q,ed="naked"===X,ep="hyperlink"!==X&&!ed;return(0,et.U)(ei,en[X],!ed&&eo,ep&&[eh?es[J]:[ea[J],Z?ef[J]:ec[J]]],eh&&"rounded-full",Z&&ep&&eu[J][Q],el)},eh=({iconPosition:X="after",icon:J,children:Z})=>{let Q=J&&!Z||"alone"===X;return(0,er.jsxs)(er.Fragment,{children:[(Q||"before"===X)&&J,"alone"===X&&Z?(0,er.jsx)("span",{className:"sr-only",children:Z}):Z,!Q&&"after"===X&&J]})};X.s(["K",0,X=>{let{variant:J,size:Q,iconPosition:et="after",icon:ei,className:en,children:eo,text:ea,theme:es="auto",...ef}=X;return(0,er.jsx)(ee.Button,{className:el(X),...(0,Z.f)(es),...ef,children:(0,er.jsx)(eh,{iconPosition:et,icon:ei,children:eo||ea})})},"L",0,X=>{let{variant:Q,size:ee,iconPosition:et="after",icon:ei,className:en,children:eo,theme:ea="auto",text:es,href:ef,...eu}=X,ec=!0===eu["aria-disabled"]||"true"===eu["aria-disabled"],ed=(0,er.jsx)(eh,{iconPosition:et,icon:ei,children:eo||es});return ec?(0,er.jsx)("a",{className:el(X),...(0,Z.f)(ea),...eu,role:"link","aria-disabled":!0,children:ed}):(0,er.jsx)(J.R.Link,{className:el(X),...(0,Z.f)(ea),...eu,href:ef,children:ed})},"W",0,en])},99627,X=>{var J=X.i(2388),Z=X.i(13522),Q=X.i(7670),ee=X.i(43476);let et={1:J.f`heading-1`,2:J.f`heading-2`,3:J.f`heading-3`,4:J.f`heading-4`,5:J.f`heading-5`,6:J.f`heading-6`,"display-2":J.f`display-2`,"display-1":J.f`display-1`,"heading-1-xl":J.f`heading-1-xl`,"heading-1-lg":J.f`heading-1-lg`,"heading-2-xl":J.f`heading-2-xl`,"heading-3-lg":J.f`heading-3-lg`,"heading-3-md":J.f`heading-3-md`,"heading-3-sm":J.f`heading-3-sm`,"heading-3-xs":J.f`heading-3-xs`,"heading-3.5":J.f`heading-3.5`,"heading-4.5":J.f`heading-4.5`,"heading-6-sm":J.f`heading-6-sm`};X.s(["Heading",0,({text:X,level:J,visualLevel:er,className:ei,children:en,preserveWhitespace:eo=!0,unstyled:ea=!1,...es})=>{let ef=(0,Z.useSectionContext)();J||ef||console.warn("Heading component should be used within a Section component to determine its semantic level. Defaulting to h1 semantics.");let eu=(J??ef)||1,ec=`h${eu}`;return(0,ee.jsx)(ec,{className:(0,Q.U)(!ea&&et[er??eu],eo&&"whitespace-pre-wrap",ei),...es,children:en||X})}])},84563,X=>{var J=X.i(16984),Z=X.i(7670),Q=X.i(43476),ee=X.i(73186),et=X.i(23681);X.s(["f",0,({isPlaying:X,onToggle:er,playButtonAttributes:ei,pauseButtonAttributes:en,playIcon:eo=(0,Q.jsx)(et.PlayIcon,{fill:!0}),pauseIcon:ea=(0,Q.jsx)(ee.PauseIcon,{fill:!0}),className:es,size:ef})=>{let eu=X?(0,J.t)("pause"):(0,J.t)("play");return(0,Q.jsx)("button",{type:"button",onClick:er,"aria-pressed":X,className:(0,Z.U)("focus-visible:media-control-focus","default"===ef&&"size-16 p-[19px]","sm"===ef&&"size-8 p-[7px]",es),"aria-label":eu,...X?en:ei,children:X?ea:eo})}])},308,X=>{X.i(71645);var J=X.i(43476);let Z=({src:X,unoptimized:J,fill:Z,quality:Q,blurDataURL:ee,placeholder:et,ref:er,...ei})=>({src:"object"==typeof X?X.src:X,ref:er,nativeImgProps:ei}),Q={Link:({href:X,...Z})=>(0,J.jsx)("a",{href:X,...Z}),Image:X=>{let{src:Q,ref:ee,nativeImgProps:et}=Z(X);return(0,J.jsx)("img",{ref:ee,src:Q,...et})},getImageProps:X=>{let{src:J,nativeImgProps:Q}=Z(X);return{props:{...Q,src:J}}}};X.s(["R",0,Q,"Q",0,function(X){X.Link&&(Q.Link=X.Link),X.Image&&(Q.Image=X.Image),X.getImageProps&&(Q.getImageProps=X.getImageProps)}])},58977,X=>{var J=X.i(71645),Z=X.i(43476),Q=X.i(75324);X.s(["SplitText",0,({as:X,type:ee="words",vars:et,onSplit:er,children:ei,...en})=>{let eo,ea=(0,J.useRef)(null),es=(0,J.useRef)(null),ef=(0,J.useRef)(er),eu=(0,J.useRef)(et);return(0,J.useEffect)(()=>{ef.current=er}),(0,J.useEffect)(()=>{eu.current=et}),(0,J.useEffect)(()=>{let X=ea.current;if(!X)return;X.querySelectorAll("a[href], button, input, select, textarea, [tabindex]").forEach(X=>X.setAttribute("tabindex","-1"));let J=!1,Z=X.style.textWrap,et=X.parentElement?.style.textWrap;return(()=>{if("u"{J||(es.current?.revert(),es.current=Q.f.create(X,{linesClass:"st-line",wordsClass:"st-word",charsClass:"st-char",autoSplit:!0,aria:"none",...eu.current,type:ee,onSplit:Z=>{Z.words?.forEach((X,J)=>{X.style.setProperty("--st-word-index",String(J))}),ef.current?.(Z),requestAnimationFrame(()=>{J||X.setAttribute("data-split","")})}}))}),()=>{J=!0,es.current?.revert(),es.current=null,X.style.textWrap=Z,X.parentElement&&void 0!==et&&(X.parentElement.style.textWrap=et)}},[ee,ei]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(X??"div",{ref:ea,...en,"aria-hidden":"true",children:"string"==typeof(eo=ei)&&eo.includes("\n")?eo.split("\n").map((X,Q)=>(0,Z.jsxs)(J.Fragment,{children:[Q>0&&(0,Z.jsx)("br",{}),X]},Q)):eo}),(0,Z.jsx)("span",{className:"sr-only",children:ei})]})}])},16984,20955,X=>{var J=X.i(7670),Z=X.i(43476);let Q=({id:X,className:Q})=>(0,Z.jsx)("sup",{id:`ref-${X}`,children:(0,Z.jsx)("a",{className:(0,J.U)("text-hyperlink ms-1 align-baseline underline",Q),href:`#footnote-${X}`,children:X})});X.s(["f",0,Q],20955);var ee=X.i(71645);let et={},er=new Set;function ei(X,J){let Z=et[X];return void 0===Z?(er.has(X)||(console.warn(`[@msft/components] Missing i18n key: "${X}". Configure it via .`),er.add(X)),J)?`${X} ${Object.values(J).join(" ")}`:X:J?Z.replace(/\{(\w+)\}/g,(X,Z)=>String(J[Z]??`{${Z}}`)):Z}X.s(["T",0,function(X){Object.assign(et,X)},"t",0,ei,"q",0,function(X,J){let Z=ei(X,J);return Z.includes("")?(0,ee.createElement)(ee.Fragment,null,...Z.split(/([^<]*<\/sup>)/).map((X,J)=>{let Z=X.match(/^([^<]*)<\/sup>$/);return Z?(0,ee.createElement)(Q,{key:J,id:Z[1]}):X})):Z}],16984)},71526,X=>{X.s(["f",0,X=>"auto"===X?{}:{"data-theme":X}])},85286,X=>{var J=X.i(71645),Z=X.i(33363);X.s(["f",0,function(X,{once:Q=!1,enabled:ee=!0,root:et,rootMargin:er,threshold:ei=.2}={}){let[en,eo]=(0,J.useState)(!1),ea=(0,J.useRef)(ei),es=(0,J.useRef)(er);return(0,J.useEffect)(()=>{if(!ee)return;let J=X.current;if(!J||"u"{eo(X.isIntersecting),Q&&X.isIntersecting&&er.unsubscribe(J,ei)};return er.subscribe(J,ei),()=>{er.unsubscribe(J,ei)}},[X,Q,et,ee]),!ee||en}])},50398,X=>{var J=X.i(71645);X.s(["f",0,function(...X){let Z=(0,J.useRef)(X);return(0,J.useEffect)(()=>{Z.current=X}),(0,J.useCallback)(X=>{Z.current.forEach(J=>(function(X,J){if(X){if("function"==typeof X)return void X(J);X.current=J}})(J,X))},[])}])},92438,38559,X=>{var J=X.i(71645);function Z(X,Q=!1){let[ee,et]=(0,J.useState)(()=>"u">typeof window?window.matchMedia(X).matches:Q);return(0,J.useEffect)(()=>{let J=window.matchMedia(X),Z=X=>et(X.matches);return J.addEventListener("change",Z),()=>J.removeEventListener("change",Z)},[X]),ee}X.s(["f",0,Z],38559),X.s(["f",0,function(){return Z("(prefers-reduced-motion: reduce)")}],92438)},31461,77463,65265,X=>{let J={sm:640,md:768,lg:1024,xl:1280,"2xl":1440,"3xl":1600};function Z(X){let{default:Z,...Q}=X;return[...Object.entries(Q).sort(([X],[Z])=>J[Z]-J[X]).map(([X,Z])=>`(min-width: ${J[X]}px) ${Z}`),Z].join(", ")}X.s(["o",0,J,"H",0,{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",landscape:"(orientation: landscape)","landscape-4/5":"(min-aspect-ratio: 4/5)",hover:"(hover: hover)"}],31461),X.s(["f",0,Z],77463);var Q=X.i(308),ee=X.i(50398),et=X.i(7670),er=X.i(71645),ei=X.i(43476);X.s(["Image",0,({fade:X=!0,loading:J,priority:en,fetchPriority:eo,onLoad:ea,sizes:es,ref:ef,src:eu,style:ec,className:el,native:eh,...ed})=>{let ep=(0,er.useRef)(null),eb=(0,ee.f)((0,er.useRef)(null),ef),ey=(0,er.useMemo)(()=>"object"==typeof es?Z(es):es,[]);(0,er.useEffect)(()=>()=>{ep.current?.cancel()},[]);let em=(0,er.useCallback)(J=>{if(X){let X;ep.current?.cancel(),(X=J.animate([{opacity:0},{opacity:1}],{duration:300,easing:"ease-out",fill:"forwards"})).finished.catch(()=>void 0),ep.current=X}},[X]),eg=(0,er.useCallback)(X=>{eb(X),X&&X.complete&&0!==X.naturalWidth&&(X.setAttribute("data-loaded",""),em(X),ea?.())},[eb,em,ea]),ev=(0,er.useCallback)(J=>{J.currentTarget.setAttribute("data-loaded",""),X&&em(J.currentTarget),ea?.(J)},[X,ea,em]),ew={className:(0,et.U)("select-none [-webkit-user-drag:none] [user-drag:none]",X&&"image-fade",el),draggable:!1,sizes:ey,loading:en?"eager":J??"lazy",fetchPriority:en?"high":eo,ref:eg,onLoad:ev,style:ec};if(eh){let{fill:X,quality:J,unoptimized:Z,placeholder:Q,blurDataURL:ee,alt:et,...er}=ed,en="object"==typeof eu?eu.src:eu;return(0,ei.jsx)("img",{alt:et,...er,...ew,src:en})}return(0,ei.jsx)(Q.R.Image,{...ed,...ew,src:eu})}],65265)},18771,X=>{var J=X.i(43476);X.s(["f",0,({data:X})=>(0,J.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(X).replace(//g,"\\u003e").replace(/&/g,"\\u0026")}})])},2388,X=>{X.s(["f",0,function(X,...J){return String.raw({raw:X},...J)}])},33363,X=>{let J=null,Z="0px",Q=0,ee=new Map,et=new WeakMap,er=0;X.s(["f",0,(X,ei)=>{let en=(({root:X=J,rootMargin:ee=Z,threshold:ei=Q}={})=>`${((X=J)=>{if(null==X)return"viewport";let Z=et.get(X);if(Z)return Z;let Q=`root-${++er}`;return et.set(X,Q),Q})(X)}|${ee}|${((X=Q)=>`${X}`)(ei)}`)(X);return ee.has(en)||ee.set(en,(({root:X=J,rootMargin:ee=Z,threshold:et=Q,polyfill:er}={})=>{let ei=new Map,en=new(er||window.IntersectionObserver)((X,J)=>{X.forEach(X=>{ei.get(X.target)?.forEach(Z=>Z(X,J))})},{root:X,rootMargin:ee,threshold:et});return{observer:en,subscribe(X,J){let Z=ei.get(X)??new Set;Z.size||en.observe(X),Z.add(J),ei.set(X,Z)},unsubscribe(X,J){let Z=ei.get(X);if(Z?.size&&Z.has(J)){if(1===Z.size){en.unobserve(X),ei.delete(X);return}Z.delete(J)}}}})({...X,polyfill:ei})),ee.get(en)}])},34582,(X,J,Z)=>{Z.byteLength=function(X){var J=eo(X),Z=J[0],Q=J[1];return(Z+Q)*3/4-Q},Z.toByteArray=function(X){var J,Z,Q=eo(X),er=Q[0],ei=Q[1],en=new et((er+ei)*3/4-ei),ea=0,es=ei>0?er-4:er;for(Z=0;Z>16&255,en[ea++]=J>>8&255,en[ea++]=255&J;return 2===ei&&(J=ee[X.charCodeAt(Z)]<<2|ee[X.charCodeAt(Z+1)]>>4,en[ea++]=255&J),1===ei&&(J=ee[X.charCodeAt(Z)]<<10|ee[X.charCodeAt(Z+1)]<<4|ee[X.charCodeAt(Z+2)]>>2,en[ea++]=J>>8&255,en[ea++]=255&J),en},Z.fromByteArray=function(X){for(var J,Z=X.length,ee=Z%3,et=[],er=0,ei=Z-ee;er>18&63]+Q[ee>>12&63]+Q[ee>>6&63]+Q[63&ee]);return et.join("")}(X,er,er+16383>ei?ei:er+16383));return 1===ee?et.push(Q[(J=X[Z-1])>>2]+Q[J<<4&63]+"=="):2===ee&&et.push(Q[(J=(X[Z-2]<<8)+X[Z-1])>>10]+Q[J>>4&63]+Q[J<<2&63]+"="),et.join("")};for(var Q=[],ee=[],et="u">typeof Uint8Array?Uint8Array:Array,er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei=0,en=er.length;ei0)throw Error("Invalid string. Length must be a multiple of 4");var Z=X.indexOf("=");-1===Z&&(Z=J);var Q=Z===J?0:4-Z%4;return[Z,Q]}ee[45]=62,ee[95]=63},11647,(X,J,Z)=>{var Q=X.r(43943).Buffer,ee=X.r(43943).SlowBuffer;function et(X,J){if(!Q.isBuffer(X)||!Q.isBuffer(J)||X.length!==J.length)return!1;for(var Z=0,ee=0;ee{var Q=X.r(34582),ee=X.r(38492),et="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function er(X){if(X>0x7fffffff)throw RangeError('The value "'+X+'" is invalid for option "size"');var J=new Uint8Array(X);return Object.setPrototypeOf(J,ei.prototype),J}function ei(X,J,Z){if("number"==typeof X){if("string"==typeof J)throw TypeError('The "string" argument must be of type string. Received type number');return ea(X)}return en(X,J,Z)}function en(X,J,Z){if("string"==typeof X){var Q=X,ee=J;if(("string"!=typeof ee||""===ee)&&(ee="utf8"),!ei.isEncoding(ee))throw TypeError("Unknown encoding: "+ee);var et=0|ec(Q,ee),en=er(et),eo=en.write(Q,ee);return eo!==et&&(en=en.slice(0,eo)),en}if(ArrayBuffer.isView(X)){var ea=X;if(eM(ea,Uint8Array)){var el=new Uint8Array(ea);return ef(el.buffer,el.byteOffset,el.byteLength)}return es(ea)}if(null==X)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(eM(X,ArrayBuffer)||X&&eM(X.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(eM(X,SharedArrayBuffer)||X&&eM(X.buffer,SharedArrayBuffer)))return ef(X,J,Z);if("number"==typeof X)throw TypeError('The "value" argument must not be of type number. Received type number');var eh=X.valueOf&&X.valueOf();if(null!=eh&&eh!==X)return ei.from(eh,J,Z);var ed=function(X){if(ei.isBuffer(X)){var J,Z=0|eu(X.length),Q=er(Z);return 0===Q.length||X.copy(Q,0,0,Z),Q}if(void 0!==X.length){return"number"!=typeof X.length||(J=X.length)!=J?er(0):es(X)}if("Buffer"===X.type&&Array.isArray(X.data))return es(X.data)}(X);if(ed)return ed;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof X[Symbol.toPrimitive])return ei.from(X[Symbol.toPrimitive]("string"),J,Z);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}function eo(X){if("number"!=typeof X)throw TypeError('"size" argument must be of type number');if(X<0)throw RangeError('The value "'+X+'" is invalid for option "size"')}function ea(X){return eo(X),er(X<0?0:0|eu(X))}function es(X){for(var J=X.length<0?0:0|eu(X.length),Z=er(J),Q=0;Q=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|X}function ec(X,J){if(ei.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||eM(X,ArrayBuffer))return X.byteLength;if("string"!=typeof X)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);var Z=X.length,Q=arguments.length>2&&!0===arguments[2];if(!Q&&0===Z)return 0;for(var ee=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Z;case"utf8":case"utf-8":return e_(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Z;case"hex":return Z>>>1;case"base64":return eE(X).length;default:if(ee)return Q?-1:e_(X).length;J=(""+J).toLowerCase(),ee=!0}}function el(X,J,Z){var ee,et,er,ei=!1;if((void 0===J||J<0)&&(J=0),J>this.length||((void 0===Z||Z>this.length)&&(Z=this.length),Z<=0||(Z>>>=0)<=(J>>>=0)))return"";for(X||(X="utf8");;)switch(X){case"hex":return function(X,J,Z){var Q=X.length;(!J||J<0)&&(J=0),(!Z||Z<0||Z>Q)&&(Z=Q);for(var ee="",et=J;et0x7fffffff?Z=0x7fffffff:Z<-0x80000000&&(Z=-0x80000000),(et=Z*=1)!=et&&(Z=ee?0:X.length-1),Z<0&&(Z=X.length+Z),Z>=X.length)if(ee)return -1;else Z=X.length-1;else if(Z<0)if(!ee)return -1;else Z=0;if("string"==typeof J&&(J=ei.from(J,Q)),ei.isBuffer(J))return 0===J.length?-1:ep(X,J,Z,Q,ee);if("number"==typeof J){if(J&=255,"function"==typeof Uint8Array.prototype.indexOf)if(ee)return Uint8Array.prototype.indexOf.call(X,J,Z);else return Uint8Array.prototype.lastIndexOf.call(X,J,Z);return ep(X,[J],Z,Q,ee)}throw TypeError("val must be string, number or Buffer")}function ep(X,J,Z,Q,ee){var et,er=1,ei=X.length,en=J.length;if(void 0!==Q&&("ucs2"===(Q=String(Q).toLowerCase())||"ucs-2"===Q||"utf16le"===Q||"utf-16le"===Q)){if(X.length<2||J.length<2)return -1;er=2,ei/=2,en/=2,Z/=2}function eo(X,J){return 1===er?X[J]:X.readUInt16BE(J*er)}if(ee){var ea=-1;for(et=Z;etei&&(Z=ei-en),et=Z;et>=0;et--){for(var es=!0,ef=0;ef239?4:eo>223?3:eo>191?2:1;if(ee+es<=Z)switch(es){case 1:eo<128&&(ea=eo);break;case 2:(192&(et=X[ee+1]))==128&&(en=(31&eo)<<6|63&et)>127&&(ea=en);break;case 3:et=X[ee+1],er=X[ee+2],(192&et)==128&&(192&er)==128&&(en=(15&eo)<<12|(63&et)<<6|63&er)>2047&&(en<55296||en>57343)&&(ea=en);break;case 4:et=X[ee+1],er=X[ee+2],ei=X[ee+3],(192&et)==128&&(192&er)==128&&(192&ei)==128&&(en=(15&eo)<<18|(63&et)<<12|(63&er)<<6|63&ei)>65535&&en<1114112&&(ea=en)}null===ea?(ea=65533,es=1):ea>65535&&(ea-=65536,Q.push(ea>>>10&1023|55296),ea=56320|1023&ea),Q.push(ea),ee+=es}var ef=Q,eu=ef.length;if(eu<=4096)return String.fromCharCode.apply(String,ef);for(var ec="",el=0;elZ)throw RangeError("Trying to access beyond buffer length")}function em(X,J,Z,Q,ee,et){if(!ei.isBuffer(X))throw TypeError('"buffer" argument must be a Buffer instance');if(J>ee||JX.length)throw RangeError("Index out of range")}function eg(X,J,Z,Q,ee,et){if(Z+Q>X.length||Z<0)throw RangeError("Index out of range")}function ev(X,J,Z,Q,et){return J*=1,Z>>>=0,et||eg(X,J,Z,4,34028234663852886e22,-34028234663852886e22),ee.write(X,J,Z,Q,23,4),Z+4}function ew(X,J,Z,Q,et){return J*=1,Z>>>=0,et||eg(X,J,Z,8,17976931348623157e292,-17976931348623157e292),ee.write(X,J,Z,Q,52,8),Z+8}Z.Buffer=ei,Z.SlowBuffer=function(X){return+X!=X&&(X=0),ei.alloc(+X)},Z.INSPECT_MAX_BYTES=50,Z.kMaxLength=0x7fffffff,ei.TYPED_ARRAY_SUPPORT=function(){try{var X=new Uint8Array(1),J={foo:function(){return 42}};return Object.setPrototypeOf(J,Uint8Array.prototype),Object.setPrototypeOf(X,J),42===X.foo()}catch(X){return!1}}(),!ei.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(ei.prototype,"parent",{enumerable:!0,get:function(){if(ei.isBuffer(this))return this.buffer}}),Object.defineProperty(ei.prototype,"offset",{enumerable:!0,get:function(){if(ei.isBuffer(this))return this.byteOffset}}),ei.poolSize=8192,ei.from=function(X,J,Z){return en(X,J,Z)},Object.setPrototypeOf(ei.prototype,Uint8Array.prototype),Object.setPrototypeOf(ei,Uint8Array),ei.alloc=function(X,J,Z){return(eo(X),X<=0)?er(X):void 0!==J?"string"==typeof Z?er(X).fill(J,Z):er(X).fill(J):er(X)},ei.allocUnsafe=function(X){return ea(X)},ei.allocUnsafeSlow=function(X){return ea(X)},ei.isBuffer=function(X){return null!=X&&!0===X._isBuffer&&X!==ei.prototype},ei.compare=function(X,J){if(eM(X,Uint8Array)&&(X=ei.from(X,X.offset,X.byteLength)),eM(J,Uint8Array)&&(J=ei.from(J,J.offset,J.byteLength)),!ei.isBuffer(X)||!ei.isBuffer(J))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===J)return 0;for(var Z=X.length,Q=J.length,ee=0,et=Math.min(Z,Q);eeQ.length?ei.from(et).copy(Q,ee):Uint8Array.prototype.set.call(Q,et,ee);else if(ei.isBuffer(et))et.copy(Q,ee);else throw TypeError('"list" argument must be an Array of Buffers');ee+=et.length}return Q},ei.byteLength=ec,ei.prototype._isBuffer=!0,ei.prototype.swap16=function(){var X=this.length;if(X%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var J=0;JJ&&(X+=" ... "),""},et&&(ei.prototype[et]=ei.prototype.inspect),ei.prototype.compare=function(X,J,Z,Q,ee){if(eM(X,Uint8Array)&&(X=ei.from(X,X.offset,X.byteLength)),!ei.isBuffer(X))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(void 0===J&&(J=0),void 0===Z&&(Z=X?X.length:0),void 0===Q&&(Q=0),void 0===ee&&(ee=this.length),J<0||Z>X.length||Q<0||ee>this.length)throw RangeError("out of range index");if(Q>=ee&&J>=Z)return 0;if(Q>=ee)return -1;if(J>=Z)return 1;if(J>>>=0,Z>>>=0,Q>>>=0,ee>>>=0,this===X)return 0;for(var et=ee-Q,er=Z-J,en=Math.min(et,er),eo=this.slice(Q,ee),ea=X.slice(J,Z),es=0;es>>=0,isFinite(Z)?(Z>>>=0,void 0===Q&&(Q="utf8")):(Q=Z,Z=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ee,et,er,ei,en,eo,ea,es,ef=this.length-J;if((void 0===Z||Z>ef)&&(Z=ef),X.length>0&&(Z<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var eu=!1;;)switch(Q){case"hex":return function(X,J,Z,Q){Z=Number(Z)||0;var ee=X.length-Z;Q?(Q=Number(Q))>ee&&(Q=ee):Q=ee;var et=J.length;Q>et/2&&(Q=et/2);for(var er=0;er>8,ee.push(Z%256),ee.push(Q);return ee}(X,this.length-ea),this,ea,es);default:if(eu)throw TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),eu=!0}},ei.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ei.prototype.slice=function(X,J){var Z=this.length;X=~~X,J=void 0===J?Z:~~J,X<0?(X+=Z)<0&&(X=0):X>Z&&(X=Z),J<0?(J+=Z)<0&&(J=0):J>Z&&(J=Z),J>>=0,J>>>=0,Z||ey(X,J,this.length);for(var Q=this[X],ee=1,et=0;++et>>=0,J>>>=0,Z||ey(X,J,this.length);for(var Q=this[X+--J],ee=1;J>0&&(ee*=256);)Q+=this[X+--J]*ee;return Q},ei.prototype.readUint8=ei.prototype.readUInt8=function(X,J){return X>>>=0,J||ey(X,1,this.length),this[X]},ei.prototype.readUint16LE=ei.prototype.readUInt16LE=function(X,J){return X>>>=0,J||ey(X,2,this.length),this[X]|this[X+1]<<8},ei.prototype.readUint16BE=ei.prototype.readUInt16BE=function(X,J){return X>>>=0,J||ey(X,2,this.length),this[X]<<8|this[X+1]},ei.prototype.readUint32LE=ei.prototype.readUInt32LE=function(X,J){return X>>>=0,J||ey(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+0x1000000*this[X+3]},ei.prototype.readUint32BE=ei.prototype.readUInt32BE=function(X,J){return X>>>=0,J||ey(X,4,this.length),0x1000000*this[X]+(this[X+1]<<16|this[X+2]<<8|this[X+3])},ei.prototype.readIntLE=function(X,J,Z){X>>>=0,J>>>=0,Z||ey(X,J,this.length);for(var Q=this[X],ee=1,et=0;++et=(ee*=128)&&(Q-=Math.pow(2,8*J)),Q},ei.prototype.readIntBE=function(X,J,Z){X>>>=0,J>>>=0,Z||ey(X,J,this.length);for(var Q=J,ee=1,et=this[X+--Q];Q>0&&(ee*=256);)et+=this[X+--Q]*ee;return et>=(ee*=128)&&(et-=Math.pow(2,8*J)),et},ei.prototype.readInt8=function(X,J){return(X>>>=0,J||ey(X,1,this.length),128&this[X])?-((255-this[X]+1)*1):this[X]},ei.prototype.readInt16LE=function(X,J){X>>>=0,J||ey(X,2,this.length);var Z=this[X]|this[X+1]<<8;return 32768&Z?0xffff0000|Z:Z},ei.prototype.readInt16BE=function(X,J){X>>>=0,J||ey(X,2,this.length);var Z=this[X+1]|this[X]<<8;return 32768&Z?0xffff0000|Z:Z},ei.prototype.readInt32LE=function(X,J){return X>>>=0,J||ey(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},ei.prototype.readInt32BE=function(X,J){return X>>>=0,J||ey(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},ei.prototype.readFloatLE=function(X,J){return X>>>=0,J||ey(X,4,this.length),ee.read(this,X,!0,23,4)},ei.prototype.readFloatBE=function(X,J){return X>>>=0,J||ey(X,4,this.length),ee.read(this,X,!1,23,4)},ei.prototype.readDoubleLE=function(X,J){return X>>>=0,J||ey(X,8,this.length),ee.read(this,X,!0,52,8)},ei.prototype.readDoubleBE=function(X,J){return X>>>=0,J||ey(X,8,this.length),ee.read(this,X,!1,52,8)},ei.prototype.writeUintLE=ei.prototype.writeUIntLE=function(X,J,Z,Q){if(X*=1,J>>>=0,Z>>>=0,!Q){var ee=Math.pow(2,8*Z)-1;em(this,X,J,Z,ee,0)}var et=1,er=0;for(this[J]=255&X;++er>>=0,Z>>>=0,!Q){var ee=Math.pow(2,8*Z)-1;em(this,X,J,Z,ee,0)}var et=Z-1,er=1;for(this[J+et]=255&X;--et>=0&&(er*=256);)this[J+et]=X/er&255;return J+Z},ei.prototype.writeUint8=ei.prototype.writeUInt8=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,1,255,0),this[J]=255&X,J+1},ei.prototype.writeUint16LE=ei.prototype.writeUInt16LE=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,2,65535,0),this[J]=255&X,this[J+1]=X>>>8,J+2},ei.prototype.writeUint16BE=ei.prototype.writeUInt16BE=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,2,65535,0),this[J]=X>>>8,this[J+1]=255&X,J+2},ei.prototype.writeUint32LE=ei.prototype.writeUInt32LE=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,4,0xffffffff,0),this[J+3]=X>>>24,this[J+2]=X>>>16,this[J+1]=X>>>8,this[J]=255&X,J+4},ei.prototype.writeUint32BE=ei.prototype.writeUInt32BE=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,4,0xffffffff,0),this[J]=X>>>24,this[J+1]=X>>>16,this[J+2]=X>>>8,this[J+3]=255&X,J+4},ei.prototype.writeIntLE=function(X,J,Z,Q){if(X*=1,J>>>=0,!Q){var ee=Math.pow(2,8*Z-1);em(this,X,J,Z,ee-1,-ee)}var et=0,er=1,ei=0;for(this[J]=255&X;++et>>=0,!Q){var ee=Math.pow(2,8*Z-1);em(this,X,J,Z,ee-1,-ee)}var et=Z-1,er=1,ei=0;for(this[J+et]=255&X;--et>=0&&(er*=256);)X<0&&0===ei&&0!==this[J+et+1]&&(ei=1),this[J+et]=(X/er|0)-ei&255;return J+Z},ei.prototype.writeInt8=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,1,127,-128),X<0&&(X=255+X+1),this[J]=255&X,J+1},ei.prototype.writeInt16LE=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,2,32767,-32768),this[J]=255&X,this[J+1]=X>>>8,J+2},ei.prototype.writeInt16BE=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,2,32767,-32768),this[J]=X>>>8,this[J+1]=255&X,J+2},ei.prototype.writeInt32LE=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,4,0x7fffffff,-0x80000000),this[J]=255&X,this[J+1]=X>>>8,this[J+2]=X>>>16,this[J+3]=X>>>24,J+4},ei.prototype.writeInt32BE=function(X,J,Z){return X*=1,J>>>=0,Z||em(this,X,J,4,0x7fffffff,-0x80000000),X<0&&(X=0xffffffff+X+1),this[J]=X>>>24,this[J+1]=X>>>16,this[J+2]=X>>>8,this[J+3]=255&X,J+4},ei.prototype.writeFloatLE=function(X,J,Z){return ev(this,X,J,!0,Z)},ei.prototype.writeFloatBE=function(X,J,Z){return ev(this,X,J,!1,Z)},ei.prototype.writeDoubleLE=function(X,J,Z){return ew(this,X,J,!0,Z)},ei.prototype.writeDoubleBE=function(X,J,Z){return ew(this,X,J,!1,Z)},ei.prototype.copy=function(X,J,Z,Q){if(!ei.isBuffer(X))throw TypeError("argument should be a Buffer");if(Z||(Z=0),Q||0===Q||(Q=this.length),J>=X.length&&(J=X.length),J||(J=0),Q>0&&Q=this.length)throw RangeError("Index out of range");if(Q<0)throw RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),X.length-J>>=0,Z=void 0===Z?this.length:Z>>>0,X||(X=0),"number"==typeof X)for(ee=J;ee55295&&Z<57344){if(!ee){if(Z>56319||er+1===Q){(J-=3)>-1&&et.push(239,191,189);continue}ee=Z;continue}if(Z<56320){(J-=3)>-1&&et.push(239,191,189),ee=Z;continue}Z=(ee-55296<<10|Z-56320)+65536}else ee&&(J-=3)>-1&&et.push(239,191,189);if(ee=null,Z<128){if((J-=1)<0)break;et.push(Z)}else if(Z<2048){if((J-=2)<0)break;et.push(Z>>6|192,63&Z|128)}else if(Z<65536){if((J-=3)<0)break;et.push(Z>>12|224,Z>>6&63|128,63&Z|128)}else if(Z<1114112){if((J-=4)<0)break;et.push(Z>>18|240,Z>>12&63|128,Z>>6&63|128,63&Z|128)}else throw Error("Invalid code point")}return et}function eE(X){return Q.toByteArray(function(X){if((X=(X=X.split("=")[0]).trim().replace(ex,"")).length<2)return"";for(;X.length%4!=0;)X+="=";return X}(X))}function eS(X,J,Z,Q){for(var ee=0;ee=J.length)&&!(ee>=X.length);++ee)J[ee+Z]=X[ee];return ee}function eM(X,J){return X instanceof J||null!=X&&null!=X.constructor&&null!=X.constructor.name&&X.constructor.name===J.name}var eA=function(){for(var X="0123456789abcdef",J=Array(256),Z=0;Z<16;++Z)for(var Q=16*Z,ee=0;ee<16;++ee)J[Q+ee]=X[Z]+X[ee];return J}()},7670,X=>{function J(){for(var X,J,Z=0,Q="",ee=arguments.length;Z{var Q=X.r(42524).Buffer,ee=X.r(68679);function et(X){if(Q.isBuffer(X))return X;if("string"==typeof X)return Q.from(X,"base64");throw TypeError("ECDSA signature must be a Base64 string or a Buffer")}function er(X,J,Z){for(var Q=0;J+Q=128&&--Q,Q}J.exports={derToJose:function(X,J){X=et(X);var Z=ee(J),er=Z+1,ei=X.length,en=0;if(48!==X[en++])throw Error('Could not find expected "seq"');var eo=X[en++];if(129===eo&&(eo=X[en++]),ei-en{function Q(X){return(X/8|0)+ +(X%8!=0)}var ee={ES256:Q(256),ES384:Q(384),ES512:Q(521)};J.exports=function(X){var J=ee[X];if(J)return J;throw Error('Unknown algorithm "'+X+'"')}},75324,X=>{let J,Z,Q="function"==typeof Symbol?Symbol():"_split",ee,et="u">typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,er=X=>X?"string"==typeof X?er(document.querySelectorAll(X)):"length"in X?Array.from(X).reduce((X,J)=>("string"==typeof J?X.push(...er(J)):X.push(J),X),[]):[X]:[],ei=X=>er(X).filter(X=>X&&1===X.nodeType),en=[],eo=function(){},ea={add:X=>X()},es=/\s+/g,ef=RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),eu={left:0,top:0,width:0,height:0},ec=(X,J)=>{for(;++J{X.innerHTML=J,Z?X.setAttribute("aria-label",Z):X.removeAttribute("aria-label"),Q?X.setAttribute("aria-hidden",Q):X.removeAttribute("aria-hidden")},eh=(X,J)=>{if(J){let Z=new Set(X.join("").match(J)||en),Q=X.length,ee,et,er,ei;if(Z.size){for(;--Q>-1;)for(er of(et=X[Q],Z))if(er.startsWith(et)&&er.length>et.length){for(ee=0,ei=et;er.startsWith(ei+=X[Q+ ++ee])&&ei.length"inline"===window.getComputedStyle(X).display&&(X.style.display="inline-block"),ep=(X,J,Z)=>J.insertBefore("string"==typeof X?document.createTextNode(X):X,Z),eb=(X,J,Z)=>{let Q=J[X+"sClass"]||"",{tag:ee="div",aria:et="auto",propIndex:er=!1}=J,ei="line"===X?"block":"inline-block",en=Q.indexOf("++")>-1,eo=J=>{let eo=document.createElement(ee),ea=Z.length+1;return Q&&(eo.className=Q+(en?" "+Q+ea:"")),er&&eo.style.setProperty("--"+X,ea+""),"none"!==et&&eo.setAttribute("aria-hidden","true"),"span"!==ee&&(eo.style.position="relative",eo.style.display=ei),eo.textContent=J,Z.push(eo),eo};return en&&(Q=Q.replace("++","")),eo.collection=Z,eo},ey=(X,J,Z,Q,ee,er,ei,eo,ea,ef)=>{var eu;let ec=Array.from(X.childNodes),el=0,{wordDelimiter:eb,reduceWhiteSpace:em=!0,prepareText:eg}=J,ev=X.getBoundingClientRect(),ew=ev,ex=!em&&"pre"===window.getComputedStyle(X).whiteSpace.substring(0,3),e_=0,eE=Z.collection,eS,eM,eA,eR,eI,ek,ej,eT,eO,eN,eP,eL,eB,eC,eD,eU,e$,eq;for("object"==typeof eb?(eA=eb.delimiter||eb,eM=eb.replaceWith||""):eM=""===eb?"":eb||" ",eS=" "!==eM;el-1?(ek=eE[eE.length-1]).appendChild(document.createTextNode(Q?"":eU)):(ep(ek=Z(Q?"":eU),X,eR),e_&&1===eO&&!ej&&ek.insertBefore(e_,ek.firstChild)),Q)for(eP=et?eh([...et.segment(eU)].map(X=>X.segment),ea):eU.match(eo)||en,eq=0;eqew.top&&eN.left<=ew.left){for(eL=X.cloneNode(),eB=X.childNodes[0];eB&&eB!==ek;)eC=eB,eB=eB.nextSibling,eL.appendChild(eC);X.parentNode.insertBefore(eL,X),ee&&ed(eL)}ew=eN}(eO=eI.length?" ":eS&&" "===eU.slice(-1)?" "+eM:eM,X,eR)}else ep(eM,X,eR);X.removeChild(eR),e_=0}else 1===eR.nodeType&&(ei&&ei.indexOf(eR)>-1?(eE.indexOf(eR.previousSibling)>-1&&eE[eE.length-1].appendChild(eR),e_=eR):(ey(eR,J,Z,Q,ee,er,ei,eo,ea,!0),e_=0),ee&&ed(eR))},em=class X{constructor(X,J){this.isSplit=!1,ee||eg.register(window.gsap),this.elements=ei(X),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=J,this.elements.forEach(X=>{var Z;!1!==J.overwrite&&(null==(Z=X[Q])||Z._data.orig.filter(({element:J})=>J===X).forEach(el)),X[Q]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let Z=[],et,er=()=>{let X=Z.length,J;for(;X--;){let Q=(J=Z[X]).element.offsetWidth;if(Q!==J.width){J.width=Q,this._split();return}}};this._data={orig:Z,obs:"u">typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(et),et=setTimeout(er,200)})},eo(this),this.split(J)}split(X){return(this._ctx||ea).add(()=>{this.isSplit&&this.revert(),this.vars=X=X||this.vars||{};let{type:J="chars,words,lines",aria:Q="auto",deepSlice:ee=!0,smartWrap:et,onSplit:en,autoSplit:eo=!1,specialChars:ea,mask:es}=this.vars,el=J.indexOf("lines")>-1,eh=J.indexOf("chars")>-1,ed=J.indexOf("words")>-1,ep=eh&&!ed&&!el,em=ea&&("push"in ea?RegExp("(?:"+ea.join("|")+")","gu"):ea),eg=em?RegExp(em.source+"|"+ef.source,"gu"):ef,ev=!!X.ignore&&ei(X.ignore),{orig:ew,animTime:ex,obs:e_}=this._data,eE;(eh||ed||el)&&(this.elements.forEach((J,Z)=>{ew[Z]={element:J,html:J.innerHTML,ariaL:J.getAttribute("aria-label"),ariaH:J.getAttribute("aria-hidden")},"auto"===Q?J.setAttribute("aria-label",(J.textContent||"").trim()):"hidden"===Q&&J.setAttribute("aria-hidden","true");let ei=[],en=[],eo=[],ea=eh?eb("char",X,ei):null,es=eb("word",X,en),ef,ex,e_,eE;if(ey(J,X,es,ea,ep,ee&&(el||ep),ev,eg,em,!1),el){let Z,Q,ee=er(J.childNodes),et=(Z=eb("line",X,eo),Q=window.getComputedStyle(J).textAlign||"left",(X,et)=>{let er=Z("");for(er.style.textAlign=Q,J.insertBefore(er,ee[X]);X1===X.nodeType?X.getBoundingClientRect():eu),el=eu,eh;for(ef=0;efel.top&&eh.left{var J;return null==(J=X.parentNode)?void 0:J.removeChild(X)})}if(!ed){for(ef=0;ef{let J=X.cloneNode();return X.replaceWith(J),J.appendChild(X),X.className&&(J.className=X.className.trim().split(" ").map(X=>X+"-mask").join(" ")),J.style.overflow="clip",J}))),this.isSplit=!0,Z&&el&&eo&&Z.addEventListener("loadingdone",this._split),(eE=en&&en(this))&&eE.totalTime&&(this._data.anim=ex?eE.totalTime(ex):eE),el&&eo&&this.elements.forEach((X,J)=>{ew[J].width=X.offsetWidth,e_&&e_.observe(X)})}),this}kill(){let{obs:X}=this._data;X&&X.disconnect(),null==Z||Z.removeEventListener("loadingdone",this._split)}revert(){var X,J;if(this.isSplit){let{orig:Z,anim:Q}=this._data;this.kill(),Z.forEach(el),this.chars.length=this.words.length=this.lines.length=Z.length=this.masks.length=0,this.isSplit=!1,Q&&(this._data.animTime=Q.totalTime(),Q.revert()),null==(J=(X=this.vars).onRevert)||J.call(X,this)}return this}static create(J,Z){return new X(J,Z)}static register(X){(J=J||X||window.gsap)&&(er=J.utils.toArray,eo=J.core.context||eo),!ee&&window.innerWidth>0&&(Z=document.fonts,ee=!0)}};em.version="3.15.0";let eg=em;X.s(["f",0,eg])},22016,(X,J,Z)=>{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0});var Q={default:function(){return ed},useLinkStatus:function(){return eb}};for(var ee in Q)Object.defineProperty(Z,ee,{enumerable:!0,get:Q[ee]});let et=X.r(90809),er=X.r(43476),ei=et._(X.r(71645)),en=X.r(95057),eo=X.r(8372),ea=X.r(18581),es=X.r(18967),ef=X.r(5550),eu=X.r(88540),ec=X.r(91949),el=X.r(73668),eh=X.r(9396);function ed(J){var Z;let Q,ee,et,[ed,eb]=(0,ei.useOptimistic)(ec.IDLE_LINK_STATUS),ey=(0,ei.useRef)(null),{href:em,as:eg,children:ev,prefetch:ew=null,passHref:ex,replace:e_,shallow:eE,scroll:eS,onClick:eM,onMouseEnter:eA,onTouchStart:eR,legacyBehavior:eI=!1,onNavigate:ek,transitionTypes:ej,ref:eT,unstable_dynamicOnHover:eO,...eN}=J;Q=ev,eI&&("string"==typeof Q||"number"==typeof Q)&&(Q=(0,er.jsx)("a",{children:Q}));let eP=ei.default.useContext(eo.AppRouterContext),eL=!1!==ew,eB=!1===ew?"none":!0===ew?"full":"auto",eC="none"!==eB?"auto"===eB?eh.FetchStrategy.PPR:eh.FetchStrategy.Full:eh.FetchStrategy.PPR,eD="string"==typeof(Z=eg||em)?Z:(0,en.formatUrl)(Z);if(eI){if(Q?.$$typeof===Symbol.for("react.lazy"))throw 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.");ee=ei.default.Children.only(Q)}let eU=eI?ee&&"object"==typeof ee&&ee.ref:eT,e$,eq=ei.default.useCallback(X=>(null!==eP&&(ey.current=(0,ec.mountLinkInstance)(X,eD,eP,eC,eL,eb,e$)),()=>{ey.current&&((0,ec.unmountLinkForCurrentNavigation)(ey.current),ey.current=null),(0,ec.unmountPrefetchableInstance)(X)}),[eL,eD,eP,eC,eb,e$]),ez={ref:(0,ea.useMergedRef)(eq,eU),onClick(J){eI||"function"!=typeof eM||eM(J),eI&&ee.props&&"function"==typeof ee.props.onClick&&ee.props.onClick(J),!eP||J.defaultPrevented||function(J,Z,Q,ee,et,er,ei,en="none"){if("u">typeof window){let eo,{nodeName:ea}=J.currentTarget;if("A"===ea.toUpperCase()&&((eo=J.currentTarget.getAttribute("target"))&&"_self"!==eo||J.metaKey||J.ctrlKey||J.shiftKey||J.altKey||J.nativeEvent&&2===J.nativeEvent.which)||J.currentTarget.hasAttribute("download"))return;if(!(0,el.isLocalURL)(Z)){ee&&(J.preventDefault(),location.replace(Z));return}if(J.preventDefault(),er){let X=!1;if(er({preventDefault:()=>{X=!0}}),X)return}let{navigate:es}=X.r(32916);es(Z,ee?"replace":"push",!1===et?eu.ScrollBehavior.NoScroll:eu.ScrollBehavior.Default,Q.current,ei,en)}}(J,eD,ey,e_,eS,ek,ej,eB)},onMouseEnter(X){eI||"function"!=typeof eA||eA(X),eI&&ee.props&&"function"==typeof ee.props.onMouseEnter&&ee.props.onMouseEnter(X),eP&&eL&&(0,ec.onNavigationIntent)(X.currentTarget,!0===eO)},onTouchStart:function(X){eI||"function"!=typeof eR||eR(X),eI&&ee.props&&"function"==typeof ee.props.onTouchStart&&ee.props.onTouchStart(X),eP&&eL&&(0,ec.onNavigationIntent)(X.currentTarget,!0===eO)}};return(0,es.isAbsoluteUrl)(eD)?ez.href=eD:eI&&!ex&&("a"!==ee.type||"href"in ee.props)||(ez.href=(0,ef.addBasePath)(eD)),et=eI?ei.default.cloneElement(ee,ez):(0,er.jsx)("a",{...eN,...ez,children:Q}),(0,er.jsx)(ep.Provider,{value:ed,children:et})}let ep=(0,ei.createContext)(ec.IDLE_LINK_STATUS),eb=()=>(0,ei.useContext)(ep);("function"==typeof Z.default||"object"==typeof Z.default&&null!==Z.default)&&void 0===Z.default.__esModule&&(Object.defineProperty(Z.default,"__esModule",{value:!0}),Object.assign(Z.default,Z),J.exports=Z.default)},5500,(X,J,Z)=>{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"Image",{enumerable:!0,get:function(){return eb}});let Q=X.r(55682),ee=X.r(90809),et=X.r(43476),er=ee._(X.r(71645)),ei=Q._(X.r(74080)),en=Q._(X.r(25633)),eo=X.r(8927),ea=X.r(65856),es=X.r(49381),ef=Q._(X.r(1948)),eu=X.r(18581);function ec(X,J,Z,Q,ee,et,er){let ei=X?.src;X&&X["data-loaded-src"]!==ei&&(X["data-loaded-src"]=ei,("decode"in X?X.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(X.parentElement&&X.isConnected){if("empty"!==J&&ee(!0),Z?.current){let J=new Event("load");Object.defineProperty(J,"target",{writable:!1,value:X});let Q=!1,ee=!1;Z.current({...J,nativeEvent:J,currentTarget:X,target:X,isDefaultPrevented:()=>Q,isPropagationStopped:()=>ee,persist:()=>{},preventDefault:()=>{Q=!0,J.preventDefault()},stopPropagation:()=>{ee=!0,J.stopPropagation()}})}Q?.current&&Q.current(X)}}))}function el(X){return er.use?{fetchPriority:X}:{fetchpriority:X}}"u"{let eS=(0,er.useRef)(!1),eM=(0,er.useRef)(null);eh(()=>{let{current:X}=eS,{current:J}=eM;X||null===J||(ex&&(J.src=J.src),J.complete&&ec(J,es,eb,ey,em,ed,ev),eS.current=!0)},[X,es,eb,ey,ex,ed,ev]);let eA=(0,eu.useMergedRef)(eE,eM);return(0,et.jsx)("img",{...e_,...el(ea),loading:ef,width:ee,height:Q,decoding:ei,"data-nimg":ep?"fill":"1",className:en,style:eo,sizes:Z,srcSet:J,src:X,ref:eA,onLoad:X=>{ec(X.currentTarget,es,eb,ey,em,ed,ev)},onError:X=>{eg(!0),"empty"!==es&&em(!0),ex&&ex(X)}})});function ep({isAppRouter:X,imgAttributes:J}){let Z={as:"image",imageSrcSet:J.srcSet,imageSizes:J.sizes,crossOrigin:J.crossOrigin,referrerPolicy:J.referrerPolicy,...el(J.fetchPriority)};return X&&ei.default.preload?(ei.default.preload(J.src,Z),null):(0,et.jsx)(en.default,{children:(0,et.jsx)("link",{rel:"preload",href:J.srcSet?void 0:J.src,...Z},"__nimg-"+J.src+J.srcSet+J.sizes)})}let eb=(0,er.forwardRef)((X,J)=>{let Z=(0,er.useContext)(ea.RouterContext),Q=(0,es.useImageConfig)(),{onLoad:ee,onLoadingComplete:ei}=X,en=(0,er.useRef)(ee);(0,er.useEffect)(()=>{en.current=ee},[ee]);let eu=(0,er.useRef)(ei);(0,er.useEffect)(()=>{eu.current=ei},[ei]);let[ec,el]=(0,er.useState)(!1),[eh,eb]=(0,er.useState)(!1),{props:ey,meta:em}=(0,eo.getImgProps)(X,{defaultLoader:ef.default,imgConf:Q,blurComplete:ec,showAltText:eh});return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(ed,{...ey,unoptimized:em.unoptimized,placeholder:em.placeholder,fill:em.fill,onLoadRef:en,onLoadingCompleteRef:eu,setBlurComplete:el,setShowAltText:eb,sizesInput:X.sizes,ref:J}),em.preload?(0,et.jsx)(ep,{isAppRouter:!Z,imgAttributes:ey}):null]})});("function"==typeof Z.default||"object"==typeof Z.default&&null!==Z.default)&&void 0===Z.default.__esModule&&(Object.defineProperty(Z.default,"__esModule",{value:!0}),Object.assign(Z.default,Z),J.exports=Z.default)},49381,(X,J,Z)=>{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"useImageConfig",{enumerable:!0,get:function(){return ei}});let Q=X.r(71645),ee=X.r(87690),et=X.r(18556),er={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 ei(){let X=(0,Q.useContext)(et.ImageConfigContext);return(0,ee.prepareImageConfig)(er,X)}("function"==typeof Z.default||"object"==typeof Z.default&&null!==Z.default)&&void 0===Z.default.__esModule&&(Object.defineProperty(Z.default,"__esModule",{value:!0}),Object.assign(Z.default,Z),J.exports=Z.default)},18581,(X,J,Z)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"useMergedRef",{enumerable:!0,get:function(){return ee}});let Q=X.r(71645);function ee(X,J){let Z=(0,Q.useRef)(null),ee=(0,Q.useRef)(null);return(0,Q.useCallback)(Q=>{if(null===Q){let X=Z.current;X&&(Z.current=null,X());let J=ee.current;J&&(ee.current=null,J())}else X&&(Z.current=et(X,Q)),J&&(ee.current=et(J,Q))},[X,J])}function et(X,J){if("function"!=typeof X)return X.current=J,()=>{X.current=null};{let Z=X(J);return"function"==typeof Z?Z:()=>X(null)}}("function"==typeof Z.default||"object"==typeof Z.default&&null!==Z.default)&&void 0===Z.default.__esModule&&(Object.defineProperty(Z.default,"__esModule",{value:!0}),Object.assign(Z.default,Z),J.exports=Z.default)},70965,(X,J,Z)=>{function Q(X,J){let Z=X||75;return J?.qualities?.length?J.qualities.reduce((X,J)=>Math.abs(J-Z){X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"getImgProps",{enumerable:!0,get:function(){return en}});let Q=X.r(43369),ee=X.r(88143),et=["-moz-initial","fill","none","scale-down",void 0];function er(X){return void 0!==X.default}function ei(X){return void 0===X?X:"number"==typeof X?Number.isFinite(X)?X:0/0:"string"==typeof X&&/^[0-9]+$/.test(X)?parseInt(X,10):0/0}function en({src:X,sizes:J,unoptimized:Z=!1,priority:eo=!1,preload:ea=!1,loading:es,className:ef,quality:eu,width:ec,height:el,fill:eh=!1,style:ed,overrideSrc:ep,onLoad:eb,onLoadingComplete:ey,placeholder:em="empty",blurDataURL:eg,fetchPriority:ev,decoding:ew="async",layout:ex,objectFit:e_,objectPosition:eE,lazyBoundary:eS,lazyRoot:eM,...eA},eR){var eI;let ek,ej,{imgConf:eT,showAltText:eO,blurComplete:eN,defaultLoader:eP}=eR;if(void 0===eP)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let eL=eA.loader||eP;delete eA.loader,delete eA.srcSet;let eB="__next_img_default"in eL;if(eB){if("custom"===eT.loader)throw Error(`Image with src "${X}" is missing "loader" prop. Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{let X=eL;eL=J=>{let{config:Z,...Q}=J;return X(Q)}}if(ex){"fill"===ex&&(eh=!0);let X={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[ex];X&&(ed={...ed,...X});let Z={responsive:"100vw",fill:"100vw"}[ex];Z&&!J&&(J=Z)}let eC="",eD=ei(ec),eU=ei(el);if((eI=X)&&"object"==typeof eI&&(er(eI)||void 0!==eI.src)){let J=er(X)?X.default:X;if(!J.src)throw 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(J)}`);if(!J.height||!J.width)throw 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(J)}`);if(ek=J.blurWidth,ej=J.blurHeight,eg=eg||J.blurDataURL,eC=J.src,!eh)if(eD||eU){if(eD&&!eU){let X=eD/J.width;eU=Math.round(J.height*X)}else if(!eD&&eU){let X=eU/J.height;eD=Math.round(J.width*X)}}else eD=J.width,eU=J.height}let e$=!eo&&!ea&&("lazy"===es||void 0===es);(!(X="string"==typeof X?X:eC)||X.startsWith("data:")||X.startsWith("blob:"))&&(Z=!0,e$=!1),eT.unoptimized&&(Z=!0),eB&&!eT.dangerouslyAllowSVG&&X.split("?",1)[0].endsWith(".svg")&&(Z=!0);let eq=ei(eu),ez=Object.assign(eh?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:e_,objectPosition:eE}:{},eO?{}:{color:"transparent"},ed),eF=eN||"empty"===em?null:"blur"===em?`url("data:image/svg+xml;charset=utf-8,${(0,ee.getImageBlurSvg)({widthInt:eD,heightInt:eU,blurWidth:ek,blurHeight:ej,blurDataURL:eg||"",objectFit:ez.objectFit})}")`:`url("${em}")`,eH=et.includes(ez.objectFit)?"fill"===ez.objectFit?"100% 100%":"cover":ez.objectFit,eG=eF?{backgroundSize:eH,backgroundPosition:ez.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:eF}:{},eK=function({config:X,src:J,unoptimized:Z,width:ee,quality:et,sizes:er,loader:ei}){if(Z){if(J.startsWith("/")&&!J.startsWith("//")){let X=(0,Q.getDeploymentId)();if(J.includes("/_next/static/immutable")&&!(0,Q.getAssetToken)())X=void 0;else if(X){let Z=J.indexOf("?");if(-1!==Z){let Q=new URLSearchParams(J.slice(Z+1));Q.get("dpl")||(Q.append("dpl",X),J=J.slice(0,Z)+"?"+Q.toString())}else J+=`?dpl=${X}`}}return{src:J,srcSet:void 0,sizes:void 0}}let{widths:en,kind:eo}=function({deviceSizes:X,allSizes:J},Z,Q){if(Q){let Z=/(^|\s)(1?\d?\d)vw/g,ee=[];for(let X;X=Z.exec(Q);)ee.push(parseInt(X[2]));if(ee.length){let Z=.01*Math.min(...ee);return{widths:J.filter(J=>J>=X[0]*Z),kind:"w"}}return{widths:J,kind:"w"}}return"number"!=typeof Z?{widths:X,kind:"w"}:{widths:[...new Set([Z,2*Z].map(X=>J.find(J=>J>=X)||J[J.length-1]))],kind:"x"}}(X,ee,er),ea=en.length-1;return{sizes:er||"w"!==eo?er:"100vw",srcSet:en.map((Z,Q)=>`${ei({config:X,src:J,quality:et,width:Z})} ${"w"===eo?Z:Q+1}${eo}`).join(", "),src:ei({config:X,src:J,quality:et,width:en[ea]})}}({config:eT,src:X,unoptimized:Z,width:eD,quality:eq,sizes:J,loader:eL}),eW=e$?"lazy":es;return{props:{...eA,loading:eW,fetchPriority:ev,width:eD,height:eU,decoding:ew,className:ef,style:{...ez,...eG},sizes:eK.sizes,srcSet:eK.srcSet,src:ep||eK.src},meta:{unoptimized:Z,preload:ea||eo,placeholder:em,fill:eh}}}},25633,(X,J,Z)=>{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0});var Q={default:function(){return el},defaultHead:function(){return es}};for(var ee in Q)Object.defineProperty(Z,ee,{enumerable:!0,get:Q[ee]});let et=X.r(55682),er=X.r(90809),ei=X.r(43476),en=er._(X.r(71645)),eo=et._(X.r(98879)),ea=X.r(42732);function es(){return[(0,ei.jsx)("meta",{charSet:"utf-8"},"charset"),(0,ei.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function ef(X,J){return"string"==typeof J||"number"==typeof J?X:J.type===en.default.Fragment?X.concat(en.default.Children.toArray(J.props.children).reduce((X,J)=>"string"==typeof J||"number"==typeof J?X:X.concat(J),[])):X.concat(J)}let eu=["name","httpEquiv","charSet","itemProp"];function ec(X){let J,Z,Q,ee;return X.reduce(ef,[]).reverse().concat(es().reverse()).filter((J=new Set,Z=new Set,Q=new Set,ee={},X=>{let et=!0,er=!1;if(X.key&&"number"!=typeof X.key&&X.key.indexOf("$")>0){er=!0;let Z=X.key.slice(X.key.indexOf("$")+1);J.has(Z)?et=!1:J.add(Z)}switch(X.type){case"title":case"base":Z.has(X.type)?et=!1:Z.add(X.type);break;case"meta":for(let J=0,Z=eu.length;J{let Z=X.key||J;return en.default.cloneElement(X,{key:Z})})}let el=function({children:X}){let J=(0,en.useContext)(ea.HeadManagerContext);return(0,ei.jsx)(eo.default,{reduceComponentsToState:ec,headManager:J,children:X})};("function"==typeof Z.default||"object"==typeof Z.default&&null!==Z.default)&&void 0===Z.default.__esModule&&(Object.defineProperty(Z.default,"__esModule",{value:!0}),Object.assign(Z.default,Z),J.exports=Z.default)},88143,(X,J,Z)=>{function Q({widthInt:X,heightInt:J,blurWidth:Z,blurHeight:ee,blurDataURL:et,objectFit:er}){let ei=Z?40*Z:X,en=ee?40*ee:J,eo=ei&&en?`viewBox='0 0 ${ei} ${en}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${eo}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%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='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${eo?"none":"contain"===er?"xMidYMid":"cover"===er?"xMidYMid slice":"none"}' style='filter: url(%23b);' href="http://approjects.co.za/?big=${et}"/%3E%3C/svg%3E`}Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"getImageBlurSvg",{enumerable:!0,get:function(){return Q}})},18556,(X,J,Z)=>{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"ImageConfigContext",{enumerable:!0,get:function(){return et}});let Q=X.r(55682)._(X.r(71645)),ee=X.r(87690),et=Q.default.createContext(ee.imageConfigDefault)},87690,(X,J,Z)=>{Object.defineProperty(Z,"__esModule",{value:!0});var Q={VALID_LOADERS:function(){return et},imageConfigDefault:function(){return eo},prepareImageConfig:function(){return en}};for(var ee in Q)Object.defineProperty(Z,ee,{enumerable:!0,get:Q[ee]});let et=["default","imgix","cloudinary","akamai","custom"],er={},ei=new WeakMap;function en(X,J){let Z=X??er,Q=J??er,ee=ei.get(Z);if(ee){let X=ee.get(Q);if(X)return X}let et=X||J||eo,en=[...et.deviceSizes].sort((X,J)=>X-J),ea=[...et.imageSizes],es={deviceSizes:en,imageSizes:ea,allSizes:[...en,...ea].sort((X,J)=>X-J),qualities:void 0===et.qualities?void 0:[...et.qualities].sort((X,J)=>X-J),path:et.path,loader:et.loader,dangerouslyAllowSVG:et.dangerouslyAllowSVG,unoptimized:et.unoptimized,domains:et.domains,remotePatterns:et.remotePatterns,localPatterns:"u"{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"default",{enumerable:!0,get:function(){return er}});let Q=X.r(70965),ee=X.r(43369);function et({config:X,src:J,width:Z,quality:er}){let ei=(0,ee.getDeploymentId)();if(J.startsWith("/")&&!J.startsWith("//"))if(J.includes("/_next/static/immutable")&&!(0,ee.getAssetToken)())ei=void 0;else{let X=J.indexOf("?");if(-1!==X){let Z=new URLSearchParams(J.slice(X+1)),Q=Z.get("dpl");if(Q){ei=Q,Z.delete("dpl");let ee=Z.toString();J=J.slice(0,X)+(ee?"?"+ee:"")}}}if(J.startsWith("/")&&J.includes("?")&&X.localPatterns?.length===1&&"**"===X.localPatterns[0].pathname&&""===X.localPatterns[0].search)throw Error(`Image with src "${J}" is using a query string which is not configured in images.localPatterns. Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`);let en=(0,Q.findClosestQuality)(er,X);return`${X.path}?url=${encodeURIComponent(J)}&w=${Z}&q=${en}${J.startsWith("/")&&ei?`&dpl=${ei}`:""}`}et.__next_img_default=!0;let er=et},65856,(X,J,Z)=>{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"RouterContext",{enumerable:!0,get:function(){return Q}});let Q=(X.r(55682)._(X.r(71645))).default.createContext(null)},95057,(X,J,Z)=>{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0});var Q={formatUrl:function(){return ei},formatWithValidation:function(){return eo},urlObjectKeys:function(){return en}};for(var ee in Q)Object.defineProperty(Z,ee,{enumerable:!0,get:Q[ee]});let et=X.r(90809)._(X.r(98183)),er=/https?|ftp|gopher|file/;function ei(X){let{auth:J,hostname:Z}=X,Q=X.protocol||"",ee=X.pathname||"",ei=X.hash||"",en=X.query||"",eo=!1;J=J?encodeURIComponent(J).replace(/%3A/i,":")+"@":"",X.host?eo=J+X.host:Z&&(eo=J+(~Z.indexOf(":")?`[${Z}]`:Z),X.port&&(eo+=":"+X.port)),en&&"object"==typeof en&&(en=String(et.urlQueryToSearchParams(en)));let ea=X.search||en&&`?${en}`||"";return Q&&!Q.endsWith(":")&&(Q+=":"),X.slashes||(!Q||er.test(Q))&&!1!==eo?(eo="//"+(eo||""),ee&&"/"!==ee[0]&&(ee="/"+ee)):eo||(eo=""),ei&&"#"!==ei[0]&&(ei="#"+ei),ea&&"?"!==ea[0]&&(ea="?"+ea),ee=ee.replace(/[?#]/g,encodeURIComponent),ea=ea.replace("#","%23"),`${Q}${eo}${ee}${ea}${ei}`}let en=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function eo(X){return ei(X)}},73668,(X,J,Z)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"isLocalURL",{enumerable:!0,get:function(){return et}});let Q=X.r(18967),ee=X.r(52817);function et(X){if(!(0,Q.isAbsoluteUrl)(X))return!0;try{let J=(0,Q.getLocationOrigin)(),Z=new URL(X,J);return Z.origin===J&&(0,ee.hasBasePath)(Z.pathname)}catch(X){return!1}}},98879,(X,J,Z)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"default",{enumerable:!0,get:function(){return ei}});let Q=X.r(71645),ee="u"{}:Q.useLayoutEffect,er=ee?()=>{}:Q.useEffect;function ei(X){let{headManager:J,reduceComponentsToState:Z}=X;function ei(){if(J&&J.mountedInstances){let X=Q.Children.toArray(Array.from(J.mountedInstances).filter(Boolean));J.updateHead(Z(X))}}return ee&&(J?.mountedInstances?.add(X.children),ei()),et(()=>(J?.mountedInstances?.add(X.children),()=>{J?.mountedInstances?.delete(X.children)})),et(()=>(J&&(J._pendingUpdate=ei),()=>{J&&(J._pendingUpdate=ei)})),er(()=>(J&&J._pendingUpdate&&(J._pendingUpdate(),J._pendingUpdate=null),()=>{J&&J._pendingUpdate&&(J._pendingUpdate(),J._pendingUpdate=null)})),null}},18967,(X,J,Z)=>{X.i(47167),Object.defineProperty(Z,"__esModule",{value:!0});var Q={DecodeError:function(){return ed},MiddlewareNotFoundError:function(){return em},MissingStaticPage:function(){return ey},NormalizeError:function(){return ep},PageNotFoundError:function(){return eb},SP:function(){return el},ST:function(){return eh},WEB_VITALS:function(){return et},execOnce:function(){return er},getDisplayName:function(){return es},getLocationOrigin:function(){return eo},getURL:function(){return ea},isAbsoluteUrl:function(){return en},isResSent:function(){return ef},loadGetInitialProps:function(){return ec},normalizeRepeatedSlashes:function(){return eu},stringifyError:function(){return eg}};for(var ee in Q)Object.defineProperty(Z,ee,{enumerable:!0,get:Q[ee]});let et=["CLS","FCP","INP","LCP","TTFB"];function er(X){let J,Z=!1;return(...Q)=>(Z||(Z=!0,J=X(...Q)),J)}let ei=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,en=X=>{let J=X.charCodeAt(0);return!!(J>=65&&J<=90||J>=97&&J<=122)&&ei.test(X)};function eo(){let{protocol:X,hostname:J,port:Z}=window.location;return`${X}//${J}${Z?":"+Z:""}`}function ea(){let{href:X}=window.location,J=eo();return X.substring(J.length)}function es(X){return"string"==typeof X?X:X.displayName||X.name||"Unknown"}function ef(X){return X.finished||X.headersSent}function eu(X){let J=X.split("?");return J[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(J[1]?`?${J.slice(1).join("?")}`:"")}async function ec(X,J){let Z=J.res||J.ctx&&J.ctx.res;if(!X.getInitialProps)return J.ctx&&J.Component?{pageProps:await ec(J.Component,J.ctx)}:{};let Q=await X.getInitialProps(J);if(Z&&ef(Z))return Q;if(!Q)throw Error(`"${es(X)}.getInitialProps()" should resolve to an object. But found "${Q}" instead.`);return Q}let el="u">typeof performance,eh=el&&["mark","measure","getEntriesByName"].every(X=>"function"==typeof performance[X]);class ed extends Error{}class ep extends Error{}class eb extends Error{constructor(X){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${X}`}}class ey extends Error{constructor(X,J){super(),this.message=`Failed to load static file for page: ${X} ${J}`}}class em extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function eg(X){return JSON.stringify({message:X.message,stack:X.stack})}},48953,(X,J,Z)=>{let Q=Symbol("SemVer ANY");J.exports=class X{static get ANY(){return Q}constructor(J,Z){if(Z=ee(Z),J instanceof X)if(J.loose===!!Z.loose)return J;else J=J.value;en("comparator",J=J.trim().split(/\s+/).join(" "),Z),this.options=Z,this.loose=!!Z.loose,this.parse(J),this.semver===Q?this.value="":this.value=this.operator+this.semver.version,en("comp",this)}parse(X){let J=this.options.loose?et[er.COMPARATORLOOSE]:et[er.COMPARATOR],Z=X.match(J);if(!Z)throw TypeError(`Invalid comparator: ${X}`);this.operator=void 0!==Z[1]?Z[1]:"","="===this.operator&&(this.operator=""),Z[2]?this.semver=new eo(Z[2],this.options.loose):this.semver=Q}toString(){return this.value}test(X){if(en("Comparator.test",X,this.options.loose),this.semver===Q||X===Q)return!0;if("string"==typeof X)try{X=new eo(X,this.options)}catch(X){return!1}return ei(X,this.operator,this.semver,this.options)}intersects(J,Z){if(!(J instanceof X))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new ea(J.value,Z).test(this.value):""===J.operator?""===J.value||new ea(this.value,Z).test(J.semver):!((Z=ee(Z)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===J.value)||!Z.includePrerelease&&(this.value.startsWith("<0.0.0")||J.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&J.operator.startsWith(">")||this.operator.startsWith("<")&&J.operator.startsWith("<")||this.semver.version===J.semver.version&&this.operator.includes("=")&&J.operator.includes("=")||ei(this.semver,"<",J.semver,Z)&&this.operator.startsWith(">")&&J.operator.startsWith("<")||ei(this.semver,">",J.semver,Z)&&this.operator.startsWith("<")&&J.operator.startsWith(">"))}};let ee=X.r(52145),{safeRe:et,t:er}=X.r(25488),ei=X.r(62813),en=X.r(9201),eo=X.r(6423),ea=X.r(43639)},43639,(X,J,Z)=>{let Q=/\s+/g;J.exports=class X{constructor(J,Z){if(Z=et(Z),J instanceof X)if(J.loose===!!Z.loose&&J.includePrerelease===!!Z.includePrerelease)return J;else return new X(J.raw,Z);if(J instanceof er)return this.raw=J.value,this.set=[[J]],this.formatted=void 0,this;if(this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease,this.raw=J.trim().replace(Q," "),this.set=this.raw.split("||").map(X=>this.parseRange(X.trim())).filter(X=>X.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let X=this.set[0];if(this.set=this.set.filter(X=>!ep(X[0])),0===this.set.length)this.set=[X];else if(this.set.length>1){for(let X of this.set)if(1===X.length&&eb(X[0])){this.set=[X];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let X=0;X0&&(this.formatted+="||");let J=this.set[X];for(let X=0;X0&&(this.formatted+=" "),this.formatted+=J[X].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(X){X=X.replace(ed,"");let J=((this.options.includePrerelease&&el)|(this.options.loose&&eh))+":"+X,Z=ee.get(J);if(Z)return Z;let Q=this.options.loose,et=Q?eo[es.HYPHENRANGELOOSE]:eo[es.HYPHENRANGE];ei("hyphen replace",X=X.replace(et,eR(this.options.includePrerelease))),ei("comparator trim",X=X.replace(eo[es.COMPARATORTRIM],ef)),ei("tilde trim",X=X.replace(eo[es.TILDETRIM],eu)),ei("caret trim",X=X.replace(eo[es.CARETTRIM],ec));let en=X.split(" ").map(X=>em(X,this.options)).join(" ").split(/\s+/).map(X=>eA(X,this.options));Q&&(en=en.filter(X=>(ei("loose invalid filter",X,this.options),!!X.match(eo[es.COMPARATORLOOSE])))),ei("range list",en);let ea=new Map;for(let X of en.map(X=>new er(X,this.options))){if(ep(X))return[X];ea.set(X.value,X)}ea.size>1&&ea.has("")&&ea.delete("");let eb=[...ea.values()];return ee.set(J,eb),eb}intersects(J,Z){if(!(J instanceof X))throw TypeError("a Range is required");return this.set.some(X=>ey(X,Z)&&J.set.some(J=>ey(J,Z)&&X.every(X=>J.every(J=>X.intersects(J,Z)))))}test(X){if(!X)return!1;if("string"==typeof X)try{X=new en(X,this.options)}catch(X){return!1}for(let J=0;J"<0.0.0-0"===X.value,eb=X=>""===X.value,ey=(X,J)=>{let Z=!0,Q=X.slice(),ee=Q.pop();for(;Z&&Q.length;)Z=Q.every(X=>ee.intersects(X,J)),ee=Q.pop();return Z},em=(X,J)=>(ei("comp",X=X.replace(eo[es.BUILD],""),J),ei("caret",X=ex(X,J)),ei("tildes",X=ev(X,J)),ei("xrange",X=eE(X,J)),ei("stars",X=eM(X,J)),X),eg=X=>!X||"x"===X.toLowerCase()||"*"===X,ev=(X,J)=>X.trim().split(/\s+/).map(X=>ew(X,J)).join(" "),ew=(X,J)=>{let Z=J.loose?eo[es.TILDELOOSE]:eo[es.TILDE],Q=J.includePrerelease?"-0":"";return X.replace(Z,(J,Z,ee,et,er)=>{let en;return ei("tilde",X,J,Z,ee,et,er),eg(Z)?en="":eg(ee)?en=`>=${Z}.0.0${Q} <${+Z+1}.0.0-0`:eg(et)?en=`>=${Z}.${ee}.0${Q} <${Z}.${+ee+1}.0-0`:er?(ei("replaceTilde pr",er),en=`>=${Z}.${ee}.${et}-${er} <${Z}.${+ee+1}.0-0`):en=`>=${Z}.${ee}.${et} <${Z}.${+ee+1}.0-0`,ei("tilde return",en),en})},ex=(X,J)=>X.trim().split(/\s+/).map(X=>e_(X,J)).join(" "),e_=(X,J)=>{ei("caret",X,J);let Z=J.loose?eo[es.CARETLOOSE]:eo[es.CARET],Q=J.includePrerelease?"-0":"";return X.replace(Z,(J,Z,ee,et,er)=>{let en;return ei("caret",X,J,Z,ee,et,er),eg(Z)?en="":eg(ee)?en=`>=${Z}.0.0${Q} <${+Z+1}.0.0-0`:eg(et)?en="0"===Z?`>=${Z}.${ee}.0${Q} <${Z}.${+ee+1}.0-0`:`>=${Z}.${ee}.0${Q} <${+Z+1}.0.0-0`:er?(ei("replaceCaret pr",er),en="0"===Z?"0"===ee?`>=${Z}.${ee}.${et}-${er} <${Z}.${ee}.${+et+1}-0`:`>=${Z}.${ee}.${et}-${er} <${Z}.${+ee+1}.0-0`:`>=${Z}.${ee}.${et}-${er} <${+Z+1}.0.0-0`):(ei("no pr"),en="0"===Z?"0"===ee?`>=${Z}.${ee}.${et} <${Z}.${ee}.${+et+1}-0`:`>=${Z}.${ee}.${et} <${Z}.${+ee+1}.0-0`:`>=${Z}.${ee}.${et} <${+Z+1}.0.0-0`),ei("caret return",en),en})},eE=(X,J)=>(ei("replaceXRanges",X,J),X.split(/\s+/).map(X=>eS(X,J)).join(" ")),eS=(X,J)=>{X=X.trim();let Z=J.loose?eo[es.XRANGELOOSE]:eo[es.XRANGE];return X.replace(Z,(Z,Q,ee,et,er,en)=>{let eo,ea,es;if(ei("xRange",X,Z,Q,ee,et,er,en),eo=ee,ea=et,es=er,eg(eo)&&!eg(ea)||eg(ea)&&es&&!eg(es))return X;let ef=eg(ee),eu=ef||eg(et),ec=eu||eg(er);return"="===Q&&ec&&(Q=""),en=J.includePrerelease?"-0":"",ef?Z=">"===Q||"<"===Q?"<0.0.0-0":"*":Q&&ec?(eu&&(et=0),er=0,">"===Q?(Q=">=",eu?(ee=+ee+1,et=0):et=+et+1,er=0):"<="===Q&&(Q="<",eu?ee=+ee+1:et=+et+1),"<"===Q&&(en="-0"),Z=`${Q+ee}.${et}.${er}${en}`):eu?Z=`>=${ee}.0.0${en} <${+ee+1}.0.0-0`:ec&&(Z=`>=${ee}.${et}.0${en} <${ee}.${+et+1}.0-0`),ei("xRange return",Z),Z})},eM=(X,J)=>(ei("replaceStars",X,J),X.trim().replace(eo[es.STAR],"")),eA=(X,J)=>(ei("replaceGTE0",X,J),X.trim().replace(eo[J.includePrerelease?es.GTE0PRE:es.GTE0],"")),eR=X=>(J,Z,Q,ee,et,er,ei,en,eo,ea,es,ef)=>(Z=eg(Q)?"":eg(ee)?`>=${Q}.0.0${X?"-0":""}`:eg(et)?`>=${Q}.${ee}.0${X?"-0":""}`:er?`>=${Z}`:`>=${Z}${X?"-0":""}`,en=eg(eo)?"":eg(ea)?`<${+eo+1}.0.0-0`:eg(es)?`<${eo}.${+ea+1}.0-0`:ef?`<=${eo}.${ea}.${es}-${ef}`:X?`<${eo}.${ea}.${+es+1}-0`:`<=${en}`,`${Z} ${en}`.trim()),eI=(X,J,Z)=>{for(let Z=0;Z0){let Q=X[Z].semver;if(Q.major===J.major&&Q.minor===J.minor&&Q.patch===J.patch)return!0}return!1}return!0}},6423,(X,J,Z)=>{let Q=X.r(9201),{MAX_LENGTH:ee,MAX_SAFE_INTEGER:et}=X.r(46039),{safeRe:er,t:ei}=X.r(25488),en=X.r(52145),{compareIdentifiers:eo}=X.r(19549);J.exports=class X{constructor(J,Z){if(Z=en(Z),J instanceof X)if(J.loose===!!Z.loose&&J.includePrerelease===!!Z.includePrerelease)return J;else J=J.version;else if("string"!=typeof J)throw TypeError(`Invalid version. Must be a string. Got type "${typeof J}".`);if(J.length>ee)throw TypeError(`version is longer than ${ee} characters`);Q("SemVer",J,Z),this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease;let eo=J.trim().match(Z.loose?er[ei.LOOSE]:er[ei.FULL]);if(!eo)throw TypeError(`Invalid Version: ${J}`);if(this.raw=J,this.major=+eo[1],this.minor=+eo[2],this.patch=+eo[3],this.major>et||this.major<0)throw TypeError("Invalid major version");if(this.minor>et||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>et||this.patch<0)throw TypeError("Invalid patch version");eo[4]?this.prerelease=eo[4].split(".").map(X=>{if(/^[0-9]+$/.test(X)){let J=+X;if(J>=0&&JJ.major?1:this.minorJ.minor?1:this.patchJ.patch)}comparePre(J){if(J instanceof X||(J=new X(J,this.options)),this.prerelease.length&&!J.prerelease.length)return -1;if(!this.prerelease.length&&J.prerelease.length)return 1;if(!this.prerelease.length&&!J.prerelease.length)return 0;let Z=0;do{let X=this.prerelease[Z],ee=J.prerelease[Z];if(Q("prerelease compare",Z,X,ee),void 0===X&&void 0===ee)return 0;if(void 0===ee)return 1;if(void 0===X)return -1;else if(X===ee)continue;else return eo(X,ee)}while(++Z)}compareBuild(J){J instanceof X||(J=new X(J,this.options));let Z=0;do{let X=this.build[Z],ee=J.build[Z];if(Q("build compare",Z,X,ee),void 0===X&&void 0===ee)return 0;if(void 0===ee)return 1;if(void 0===X)return -1;else if(X===ee)continue;else return eo(X,ee)}while(++Z)}inc(X,J,Z){if(X.startsWith("pre")){if(!J&&!1===Z)throw Error("invalid increment argument: identifier is empty");if(J){let X=`-${J}`.match(this.options.loose?er[ei.PRERELEASELOOSE]:er[ei.PRERELEASE]);if(!X||X[1]!==J)throw Error(`invalid identifier: ${J}`)}}switch(X){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",J,Z);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",J,Z);break;case"prepatch":this.prerelease.length=0,this.inc("patch",J,Z),this.inc("pre",J,Z);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",J,Z),this.inc("pre",J,Z);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 X=+!!Number(Z);if(0===this.prerelease.length)this.prerelease=[X];else{let Q=this.prerelease.length;for(;--Q>=0;)"number"==typeof this.prerelease[Q]&&(this.prerelease[Q]++,Q=-2);if(-1===Q){if(J===this.prerelease.join(".")&&!1===Z)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(X)}}if(J){let Q=[J,X];!1===Z&&(Q=[J]),((X,J)=>{let Z=J.split(".");if(Z.length>X.length)return!1;for(let J=0;J{let Q=X.r(76293);J.exports=(X,J)=>{let Z=Q(X.trim().replace(/^[=v]+/,""),J);return Z?Z.version:null}},62813,(X,J,Z)=>{let Q=X.r(74171),ee=X.r(98042),et=X.r(9982),er=X.r(10712),ei=X.r(2416),en=X.r(8696);J.exports=(X,J,Z,eo)=>{switch(J){case"===":return"object"==typeof X&&(X=X.version),"object"==typeof Z&&(Z=Z.version),X===Z;case"!==":return"object"==typeof X&&(X=X.version),"object"==typeof Z&&(Z=Z.version),X!==Z;case"":case"=":case"==":return Q(X,Z,eo);case"!=":return ee(X,Z,eo);case">":return et(X,Z,eo);case">=":return er(X,Z,eo);case"<":return ei(X,Z,eo);case"<=":return en(X,Z,eo);default:throw TypeError(`Invalid operator: ${J}`)}}},26439,(X,J,Z)=>{let Q=X.r(6423),ee=X.r(76293),{safeRe:et,t:er}=X.r(25488);J.exports=(X,J)=>{if(X instanceof Q)return X;if("number"==typeof X&&(X=String(X)),"string"!=typeof X)return null;let Z=null;if((J=J||{}).rtl){let Q,ee=J.includePrerelease?et[er.COERCERTLFULL]:et[er.COERCERTL];for(;(Q=ee.exec(X))&&(!Z||Z.index+Z[0].length!==X.length);)Z&&Q.index+Q[0].length===Z.index+Z[0].length||(Z=Q),ee.lastIndex=Q.index+Q[1].length+Q[2].length;ee.lastIndex=-1}else Z=X.match(J.includePrerelease?et[er.COERCEFULL]:et[er.COERCE]);if(null===Z)return null;let ei=Z[2],en=Z[3]||"0",eo=Z[4]||"0",ea=J.includePrerelease&&Z[5]?`-${Z[5]}`:"",es=J.includePrerelease&&Z[6]?`+${Z[6]}`:"";return ee(`${ei}.${en}.${eo}${ea}${es}`,J)}},80458,(X,J,Z)=>{let Q=X.r(6423);J.exports=(X,J,Z)=>{let ee=new Q(X,Z),et=new Q(J,Z);return ee.compare(et)||ee.compareBuild(et)}},61990,(X,J,Z)=>{let Q=X.r(41055);J.exports=(X,J)=>Q(X,J,!0)},41055,(X,J,Z)=>{let Q=X.r(6423);J.exports=(X,J,Z)=>new Q(X,Z).compare(new Q(J,Z))},26285,(X,J,Z)=>{let Q=X.r(76293);J.exports=(X,J)=>{let Z=Q(X,null,!0),ee=Q(J,null,!0),et=Z.compare(ee);if(0===et)return null;let er=et>0,ei=er?Z:ee,en=er?ee:Z,eo=!!ei.prerelease.length;if(en.prerelease.length&&!eo){if(!en.patch&&!en.minor)return"major";if(0===en.compareMain(ei))return en.minor&&!en.patch?"minor":"patch"}let ea=eo?"pre":"";return Z.major!==ee.major?ea+"major":Z.minor!==ee.minor?ea+"minor":Z.patch!==ee.patch?ea+"patch":"prerelease"}},74171,(X,J,Z)=>{let Q=X.r(41055);J.exports=(X,J,Z)=>0===Q(X,J,Z)},9982,(X,J,Z)=>{let Q=X.r(41055);J.exports=(X,J,Z)=>Q(X,J,Z)>0},10712,(X,J,Z)=>{let Q=X.r(41055);J.exports=(X,J,Z)=>Q(X,J,Z)>=0},64894,(X,J,Z)=>{let Q=X.r(6423);J.exports=(X,J,Z,ee,et)=>{"string"==typeof Z&&(et=ee,ee=Z,Z=void 0);try{return new Q(X instanceof Q?X.version:X,Z).inc(J,ee,et).version}catch(X){return null}}},2416,(X,J,Z)=>{let Q=X.r(41055);J.exports=(X,J,Z)=>0>Q(X,J,Z)},8696,(X,J,Z)=>{let Q=X.r(41055);J.exports=(X,J,Z)=>0>=Q(X,J,Z)},56421,(X,J,Z)=>{let Q=X.r(6423);J.exports=(X,J)=>new Q(X,J).major},53246,(X,J,Z)=>{let Q=X.r(6423);J.exports=(X,J)=>new Q(X,J).minor},98042,(X,J,Z)=>{let Q=X.r(41055);J.exports=(X,J,Z)=>0!==Q(X,J,Z)},76293,(X,J,Z)=>{let Q=X.r(6423);J.exports=(X,J,Z=!1)=>{if(X instanceof Q)return X;try{return new Q(X,J)}catch(X){if(!Z)return null;throw X}}},27315,(X,J,Z)=>{let Q=X.r(6423);J.exports=(X,J)=>new Q(X,J).patch},66415,(X,J,Z)=>{let Q=X.r(76293);J.exports=(X,J)=>{let Z=Q(X,J);return Z&&Z.prerelease.length?Z.prerelease:null}},92636,(X,J,Z)=>{let Q=X.r(41055);J.exports=(X,J,Z)=>Q(J,X,Z)},49864,(X,J,Z)=>{let Q=X.r(80458);J.exports=(X,J)=>X.sort((X,Z)=>Q(Z,X,J))},47509,(X,J,Z)=>{let Q=X.r(43639);J.exports=(X,J,Z)=>{try{J=new Q(J,Z)}catch(X){return!1}return J.test(X)}},25379,(X,J,Z)=>{let Q=X.r(80458);J.exports=(X,J)=>X.sort((X,Z)=>Q(X,Z,J))},65059,(X,J,Z)=>{let Q=X.r(76293),ee=X.r(46039),et=X.r(6423),er=X=>X.startsWith("pre");J.exports=(X,J,Z)=>{let ei,en;if(!ee.RELEASE_TYPES.includes(J))return null;let eo=(ei=X,en=Z,Q(ei instanceof et?ei.version:ei,en));return eo&&((X,J)=>{if(er(J))return X.version;switch(X.prerelease=[],J){case"major":X.minor=0,X.patch=0;break;case"minor":X.patch=0}return X.format()})(eo,J)}},82880,(X,J,Z)=>{let Q=X.r(76293);J.exports=(X,J)=>{let Z=Q(X,J);return Z?Z.version:null}},8528,(X,J,Z)=>{let Q=X.r(25488),ee=X.r(46039),et=X.r(6423),er=X.r(19549),ei=X.r(76293),en=X.r(82880),eo=X.r(89624),ea=X.r(64894),es=X.r(26285),ef=X.r(56421),eu=X.r(53246),ec=X.r(27315),el=X.r(66415),eh=X.r(41055),ed=X.r(92636),ep=X.r(61990),eb=X.r(80458),ey=X.r(25379),em=X.r(49864),eg=X.r(9982),ev=X.r(2416),ew=X.r(74171),ex=X.r(98042),e_=X.r(10712),eE=X.r(8696),eS=X.r(62813),eM=X.r(26439),eA=X.r(65059),eR=X.r(48953),eI=X.r(43639),ek=X.r(47509),ej=X.r(21130),eT=X.r(89609),eO=X.r(78338),eN=X.r(37468),eP=X.r(75337),eL=X.r(72781),eB=X.r(26539),eC=X.r(16638),eD=X.r(97071);J.exports={parse:ei,valid:en,clean:eo,inc:ea,diff:es,major:ef,minor:eu,patch:ec,prerelease:el,compare:eh,rcompare:ed,compareLoose:ep,compareBuild:eb,sort:ey,rsort:em,gt:eg,lt:ev,eq:ew,neq:ex,gte:e_,lte:eE,cmp:eS,coerce:eM,truncate:eA,Comparator:eR,Range:eI,satisfies:ek,toComparators:ej,maxSatisfying:eT,minSatisfying:eO,minVersion:eN,validRange:eP,outside:eL,gtr:eB,ltr:eC,intersects:eD,simplifyRange:X.r(13782),subset:X.r(53877),SemVer:et,re:Q.re,src:Q.src,tokens:Q.t,SEMVER_SPEC_VERSION:ee.SEMVER_SPEC_VERSION,RELEASE_TYPES:ee.RELEASE_TYPES,compareIdentifiers:er.compareIdentifiers,rcompareIdentifiers:er.rcompareIdentifiers}},46039,(X,J,Z)=>{J.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,(X,J,Z)=>{var Q=X.i(47167);J.exports="object"==typeof Q.default&&Q.default.env&&Q.default.env.NODE_DEBUG&&/\bsemver\b/i.test(Q.default.env.NODE_DEBUG)?(...X)=>console.error("SEMVER",...X):()=>{}},19549,(X,J,Z)=>{let Q=/^[0-9]+$/,ee=(X,J)=>{if("number"==typeof X&&"number"==typeof J)return X===J?0:Xee(J,X)}},24960,(X,J,Z)=>{J.exports=class{constructor(){this.max=1e3,this.map=new Map}get(X){let J=this.map.get(X);if(void 0!==J)return this.map.delete(X),this.map.set(X,J),J}delete(X){return this.map.delete(X)}set(X,J){if(!this.delete(X)&&void 0!==J){if(this.map.size>=this.max){let X=this.map.keys().next().value;this.delete(X)}this.map.set(X,J)}return this}}},52145,(X,J,Z)=>{let Q=Object.freeze({loose:!0}),ee=Object.freeze({});J.exports=X=>X?"object"!=typeof X?Q:X:ee},25488,(X,J,Z)=>{let{MAX_SAFE_COMPONENT_LENGTH:Q,MAX_SAFE_BUILD_LENGTH:ee,MAX_LENGTH:et}=X.r(46039),er=X.r(9201),ei=(Z=J.exports={}).re=[],en=Z.safeRe=[],eo=Z.src=[],ea=Z.safeSrc=[],es=Z.t={},ef=0,eu="[a-zA-Z0-9-]",ec=[["\\s",1],["\\d",et],[eu,ee]],el=(X,J,Z)=>{let Q=(X=>{for(let[J,Z]of ec)X=X.split(`${J}*`).join(`${J}{0,${Z}}`).split(`${J}+`).join(`${J}{1,${Z}}`);return X})(J),ee=ef++;er(X,ee,J),es[X]=ee,eo[ee]=J,ea[ee]=Q,ei[ee]=new RegExp(J,Z?"g":void 0),en[ee]=new RegExp(Q,Z?"g":void 0)};el("NUMERICIDENTIFIER","0|[1-9]\\d*"),el("NUMERICIDENTIFIERLOOSE","\\d+"),el("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${eu}*`),el("MAINVERSION",`(${eo[es.NUMERICIDENTIFIER]})\\.(${eo[es.NUMERICIDENTIFIER]})\\.(${eo[es.NUMERICIDENTIFIER]})`),el("MAINVERSIONLOOSE",`(${eo[es.NUMERICIDENTIFIERLOOSE]})\\.(${eo[es.NUMERICIDENTIFIERLOOSE]})\\.(${eo[es.NUMERICIDENTIFIERLOOSE]})`),el("PRERELEASEIDENTIFIER",`(?:${eo[es.NONNUMERICIDENTIFIER]}|${eo[es.NUMERICIDENTIFIER]})`),el("PRERELEASEIDENTIFIERLOOSE",`(?:${eo[es.NONNUMERICIDENTIFIER]}|${eo[es.NUMERICIDENTIFIERLOOSE]})`),el("PRERELEASE",`(?:-(${eo[es.PRERELEASEIDENTIFIER]}(?:\\.${eo[es.PRERELEASEIDENTIFIER]})*))`),el("PRERELEASELOOSE",`(?:-?(${eo[es.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${eo[es.PRERELEASEIDENTIFIERLOOSE]})*))`),el("BUILDIDENTIFIER",`${eu}+`),el("BUILD",`(?:\\+(${eo[es.BUILDIDENTIFIER]}(?:\\.${eo[es.BUILDIDENTIFIER]})*))`),el("FULLPLAIN",`v?${eo[es.MAINVERSION]}${eo[es.PRERELEASE]}?${eo[es.BUILD]}?`),el("FULL",`^${eo[es.FULLPLAIN]}$`),el("LOOSEPLAIN",`[v=\\s]*${eo[es.MAINVERSIONLOOSE]}${eo[es.PRERELEASELOOSE]}?${eo[es.BUILD]}?`),el("LOOSE",`^${eo[es.LOOSEPLAIN]}$`),el("GTLT","((?:<|>)?=?)"),el("XRANGEIDENTIFIERLOOSE",`${eo[es.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),el("XRANGEIDENTIFIER",`${eo[es.NUMERICIDENTIFIER]}|x|X|\\*`),el("XRANGEPLAIN",`[v=\\s]*(${eo[es.XRANGEIDENTIFIER]})(?:\\.(${eo[es.XRANGEIDENTIFIER]})(?:\\.(${eo[es.XRANGEIDENTIFIER]})(?:${eo[es.PRERELEASE]})?${eo[es.BUILD]}?)?)?`),el("XRANGEPLAINLOOSE",`[v=\\s]*(${eo[es.XRANGEIDENTIFIERLOOSE]})(?:\\.(${eo[es.XRANGEIDENTIFIERLOOSE]})(?:\\.(${eo[es.XRANGEIDENTIFIERLOOSE]})(?:${eo[es.PRERELEASELOOSE]})?${eo[es.BUILD]}?)?)?`),el("XRANGE",`^${eo[es.GTLT]}\\s*${eo[es.XRANGEPLAIN]}$`),el("XRANGELOOSE",`^${eo[es.GTLT]}\\s*${eo[es.XRANGEPLAINLOOSE]}$`),el("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Q}})(?:\\.(\\d{1,${Q}}))?(?:\\.(\\d{1,${Q}}))?`),el("COERCE",`${eo[es.COERCEPLAIN]}(?:$|[^\\d])`),el("COERCEFULL",eo[es.COERCEPLAIN]+`(?:${eo[es.PRERELEASE]})?`+`(?:${eo[es.BUILD]})?`+"(?:$|[^\\d])"),el("COERCERTL",eo[es.COERCE],!0),el("COERCERTLFULL",eo[es.COERCEFULL],!0),el("LONETILDE","(?:~>?)"),el("TILDETRIM",`(\\s*)${eo[es.LONETILDE]}\\s+`,!0),Z.tildeTrimReplace="$1~",el("TILDE",`^${eo[es.LONETILDE]}${eo[es.XRANGEPLAIN]}$`),el("TILDELOOSE",`^${eo[es.LONETILDE]}${eo[es.XRANGEPLAINLOOSE]}$`),el("LONECARET","(?:\\^)"),el("CARETTRIM",`(\\s*)${eo[es.LONECARET]}\\s+`,!0),Z.caretTrimReplace="$1^",el("CARET",`^${eo[es.LONECARET]}${eo[es.XRANGEPLAIN]}$`),el("CARETLOOSE",`^${eo[es.LONECARET]}${eo[es.XRANGEPLAINLOOSE]}$`),el("COMPARATORLOOSE",`^${eo[es.GTLT]}\\s*(${eo[es.LOOSEPLAIN]})$|^$`),el("COMPARATOR",`^${eo[es.GTLT]}\\s*(${eo[es.FULLPLAIN]})$|^$`),el("COMPARATORTRIM",`(\\s*)${eo[es.GTLT]}\\s*(${eo[es.LOOSEPLAIN]}|${eo[es.XRANGEPLAIN]})`,!0),Z.comparatorTrimReplace="$1$2$3",el("HYPHENRANGE",`^\\s*(${eo[es.XRANGEPLAIN]})\\s+-\\s+(${eo[es.XRANGEPLAIN]})\\s*$`),el("HYPHENRANGELOOSE",`^\\s*(${eo[es.XRANGEPLAINLOOSE]})\\s+-\\s+(${eo[es.XRANGEPLAINLOOSE]})\\s*$`),el("STAR","(<|>)?=?\\s*\\*"),el("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),el("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},26539,(X,J,Z)=>{let Q=X.r(72781);J.exports=(X,J,Z)=>Q(X,J,">",Z)},97071,(X,J,Z)=>{let Q=X.r(43639);J.exports=(X,J,Z)=>(X=new Q(X,Z),J=new Q(J,Z),X.intersects(J,Z))},16638,(X,J,Z)=>{let Q=X.r(72781);J.exports=(X,J,Z)=>Q(X,J,"<",Z)},89609,(X,J,Z)=>{let Q=X.r(6423),ee=X.r(43639);J.exports=(X,J,Z)=>{let et=null,er=null,ei=null;try{ei=new ee(J,Z)}catch(X){return null}return X.forEach(X=>{ei.test(X)&&(!et||-1===er.compare(X))&&(er=new Q(et=X,Z))}),et}},78338,(X,J,Z)=>{let Q=X.r(6423),ee=X.r(43639);J.exports=(X,J,Z)=>{let et=null,er=null,ei=null;try{ei=new ee(J,Z)}catch(X){return null}return X.forEach(X=>{ei.test(X)&&(!et||1===er.compare(X))&&(er=new Q(et=X,Z))}),et}},37468,(X,J,Z)=>{let Q=X.r(6423),ee=X.r(43639),et=X.r(9982);J.exports=(X,J)=>{X=new ee(X,J);let Z=new Q("0.0.0");if(X.test(Z)||(Z=new Q("0.0.0-0"),X.test(Z)))return Z;Z=null;for(let J=0;J{let J=new Q(X.semver.version);switch(X.operator){case">":0===J.prerelease.length?J.patch++:J.prerelease.push(0),J.raw=J.format();case"":case">=":(!er||et(J,er))&&(er=J);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${X.operator}`)}}),er&&(!Z||et(Z,er))&&(Z=er)}return Z&&X.test(Z)?Z:null}},72781,(X,J,Z)=>{let Q=X.r(6423),ee=X.r(48953),{ANY:et}=ee,er=X.r(43639),ei=X.r(47509),en=X.r(9982),eo=X.r(2416),ea=X.r(8696),es=X.r(10712);J.exports=(X,J,Z,ef)=>{let eu,ec,el,eh,ed;switch(X=new Q(X,ef),J=new er(J,ef),Z){case">":eu=en,ec=ea,el=eo,eh=">",ed=">=";break;case"<":eu=eo,ec=es,el=en,eh="<",ed="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(ei(X,J,ef))return!1;for(let Z=0;Z{X.semver===et&&(X=new ee(">=0.0.0")),er=er||X,ei=ei||X,eu(X.semver,er.semver,ef)?er=X:el(X.semver,ei.semver,ef)&&(ei=X)}),er.operator===eh||er.operator===ed||(!ei.operator||ei.operator===eh)&&ec(X,ei.semver)||ei.operator===ed&&el(X,ei.semver))return!1}return!0}},13782,(X,J,Z)=>{let Q=X.r(47509),ee=X.r(41055);J.exports=(X,J,Z)=>{let et=[],er=null,ei=null,en=X.sort((X,J)=>ee(X,J,Z));for(let X of en)Q(X,J,Z)?(ei=X,er||(er=X)):(ei&&et.push([er,ei]),ei=null,er=null);er&&et.push([er,null]);let eo=[];for(let[X,J]of et)X===J?eo.push(X):J||X!==en[0]?J?X===en[0]?eo.push(`<=${J}`):eo.push(`${X} - ${J}`):eo.push(`>=${X}`):eo.push("*");let ea=eo.join(" || "),es="string"==typeof J.raw?J.raw:String(J);return ea.length{let Q=X.r(43639),ee=X.r(48953),{ANY:et}=ee,er=X.r(47509),ei=X.r(41055),en=[new ee(">=0.0.0-0")],eo=[new ee(">=0.0.0")],ea=(X,J,Z)=>{let Q,ee,ea,eu,ec,el,eh;if(X===J)return!0;if(1===X.length&&X[0].semver===et)if(1===J.length&&J[0].semver===et)return!0;else X=Z.includePrerelease?en:eo;if(1===J.length&&J[0].semver===et)if(Z.includePrerelease)return!0;else J=eo;let ed=new Set;for(let J of X)">"===J.operator||">="===J.operator?Q=es(Q,J,Z):"<"===J.operator||"<="===J.operator?ee=ef(ee,J,Z):ed.add(J.semver);if(ed.size>1)return null;if(Q&&ee&&((ea=ei(Q.semver,ee.semver,Z))>0||0===ea&&(">="!==Q.operator||"<="!==ee.operator)))return null;for(let X of ed){if(Q&&!er(X,String(Q),Z)||ee&&!er(X,String(ee),Z))return null;for(let Q of J)if(!er(X,String(Q),Z))return!1;return!0}let ep=!!ee&&!Z.includePrerelease&&!!ee.semver.prerelease.length&&ee.semver,eb=!!Q&&!Z.includePrerelease&&!!Q.semver.prerelease.length&&Q.semver;for(let X of(ep&&1===ep.prerelease.length&&"<"===ee.operator&&0===ep.prerelease[0]&&(ep=!1),J)){if(eh=eh||">"===X.operator||">="===X.operator,el=el||"<"===X.operator||"<="===X.operator,Q){if(eb&&X.semver.prerelease&&X.semver.prerelease.length&&X.semver.major===eb.major&&X.semver.minor===eb.minor&&X.semver.patch===eb.patch&&(eb=!1),">"===X.operator||">="===X.operator){if((eu=es(Q,X,Z))===X&&eu!==Q)return!1}else if(">="===Q.operator&&!X.test(Q.semver))return!1}if(ee){if(ep&&X.semver.prerelease&&X.semver.prerelease.length&&X.semver.major===ep.major&&X.semver.minor===ep.minor&&X.semver.patch===ep.patch&&(ep=!1),"<"===X.operator||"<="===X.operator){if((ec=ef(ee,X,Z))===X&&ec!==ee)return!1}else if("<="===ee.operator&&!X.test(ee.semver))return!1}if(!X.operator&&(ee||Q)&&0!==ea)return!1}return(!Q||!el||!!ee||0===ea)&&(!ee||!eh||!!Q||0===ea)&&!eb&&!ep&&!0},es=(X,J,Z)=>{if(!X)return J;let Q=ei(X.semver,J.semver,Z);return Q>0?X:Q<0||">"===J.operator&&">="===X.operator?J:X},ef=(X,J,Z)=>{if(!X)return J;let Q=ei(X.semver,J.semver,Z);return Q<0?X:Q>0||"<"===J.operator&&"<="===X.operator?J:X};J.exports=(X,J,Z={})=>{if(X===J)return!0;X=new Q(X,Z),J=new Q(J,Z);let ee=!1;e:for(let Q of X.set){for(let X of J.set){let J=ea(Q,X,Z);if(ee=ee||null!==J,J)continue e}if(ee)return!1}return!0}},21130,(X,J,Z)=>{let Q=X.r(43639);J.exports=(X,J)=>new Q(X,J).set.map(X=>X.map(X=>X.value).join(" ").trim().split(" "))},75337,(X,J,Z)=>{let Q=X.r(43639);J.exports=(X,J)=>{try{return new Q(X,J).range||"*"}catch(X){return null}}}],93346,(X,J,Z)=>{J.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"}}},38492,(X,J,Z)=>{Z.read=function(X,J,Z,Q,ee){var et,er,ei=8*ee-Q-1,en=(1<>1,ea=-7,es=Z?ee-1:0,ef=Z?-1:1,eu=X[J+es];for(es+=ef,et=eu&(1<<-ea)-1,eu>>=-ea,ea+=ei;ea>0;et=256*et+X[J+es],es+=ef,ea-=8);for(er=et&(1<<-ea)-1,et>>=-ea,ea+=Q;ea>0;er=256*er+X[J+es],es+=ef,ea-=8);if(0===et)et=1-eo;else{if(et===en)return er?0/0:(eu?-1:1)*2e308;er+=Math.pow(2,Q),et-=eo}return(eu?-1:1)*er*Math.pow(2,et-Q)},Z.write=function(X,J,Z,Q,ee,et){var er,ei,en,eo=8*et-ee-1,ea=(1<>1,ef=5960464477539062e-23*(23===ee),eu=Q?0:et-1,ec=Q?1:-1,el=+(J<0||0===J&&1/J<0);for(isNaN(J=Math.abs(J))||1/0===J?(ei=+!!isNaN(J),er=ea):(er=Math.floor(Math.log(J)/Math.LN2),J*(en=Math.pow(2,-er))<1&&(er--,en*=2),er+es>=1?J+=ef/en:J+=ef*Math.pow(2,1-es),J*en>=2&&(er++,en/=2),er+es>=ea?(ei=0,er=ea):er+es>=1?(ei=(J*en-1)*Math.pow(2,ee),er+=es):(ei=J*Math.pow(2,es-1)*Math.pow(2,ee),er=0));ee>=8;X[Z+eu]=255&ei,eu+=ec,ei/=256,ee-=8);for(er=er<0;X[Z+eu]=255&er,eu+=ec,er/=256,eo-=8);X[Z+eu-ec]|=128*el}},39420,(X,J,Z)=>{var Q=X.r(72919);J.exports=function(X,J){J=J||{};var Z=Q.decode(X,J);if(!Z)return null;var ee=Z.payload;if("string"==typeof ee)try{var et=JSON.parse(ee);null!==et&&"object"==typeof et&&(ee=et)}catch(X){}return!0===J.complete?{header:Z.header,payload:ee,signature:Z.signature}:ee}},1952,(X,J,Z)=>{J.exports={decode:X.r(39420),verify:X.r(16493),sign:X.r(28316),JsonWebTokenError:X.r(80537),NotBeforeError:X.r(34100),TokenExpiredError:X.r(59261)}},80537,(X,J,Z)=>{var Q=function(X,J){Error.call(this,X),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=X,J&&(this.inner=J)};Q.prototype=Object.create(Error.prototype),Q.prototype.constructor=Q,J.exports=Q},34100,(X,J,Z)=>{var Q=X.r(80537),ee=function(X,J){Q.call(this,X),this.name="NotBeforeError",this.date=J};ee.prototype=Object.create(Q.prototype),ee.prototype.constructor=ee,J.exports=ee},59261,(X,J,Z)=>{var Q=X.r(80537),ee=function(X,J){Q.call(this,X),this.name="TokenExpiredError",this.expiredAt=J};ee.prototype=Object.create(Q.prototype),ee.prototype.constructor=ee,J.exports=ee},61274,(X,J,Z)=>{var Q=X.i(47167);J.exports=X.r(8528).satisfies(Q.default.version,">=15.7.0")},18421,(X,J,Z)=>{var Q=X.i(47167);J.exports=X.r(8528).satisfies(Q.default.version,"^6.12.0 || >=8.0.0")},12036,(X,J,Z)=>{var Q=X.i(47167);J.exports=X.r(8528).satisfies(Q.default.version,">=16.9.0")},65981,(X,J,Z)=>{var Q=X.r(76775);J.exports=function(X,J){var Z=J||Math.floor(Date.now()/1e3);if("string"==typeof X){var ee=Q(X);if(void 0===ee)return;return Math.floor(Z+ee/1e3)}if("number"==typeof X)return Z+X}},76489,(X,J,Z)=>{let Q=X.r(61274),ee=X.r(12036),et={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},er={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};J.exports=function(X,J){if(!X||!J)return;let Z=J.asymmetricKeyType;if(!Z)return;let ei=et[Z];if(!ei)throw Error(`Unknown key type "${Z}".`);if(!ei.includes(X))throw Error(`"alg" parameter for "${Z}" key type must be one of: ${ei.join(", ")}.`);if(Q)switch(Z){case"ec":let en=J.asymmetricKeyDetails.namedCurve,eo=er[X];if(en!==eo)throw Error(`"alg" parameter "${X}" requires curve "${eo}".`);break;case"rsa-pss":if(ee){let Z=parseInt(X.slice(-3),10),{hashAlgorithm:Q,mgf1HashAlgorithm:ee,saltLength:et}=J.asymmetricKeyDetails;if(Q!==`sha${Z}`||ee!==Q)throw Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${X}.`);if(void 0!==et&&et>Z>>3)throw Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${X}.`)}}}},28316,(X,J,Z)=>{var Q=X.i(67034);let ee=X.r(65981),et=X.r(18421),er=X.r(76489),ei=X.r(72919),en=X.r(45505),eo=X.r(8618),ea=X.r(11981),es=X.r(51523),ef=X.r(94425),eu=X.r(23139),ec=X.r(62976),{KeyObject:el,createSecretKey:eh,createPrivateKey:ed}=X.r(86914),ep=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];et&&ep.splice(3,0,"PS256","PS384","PS512");let eb={expiresIn:{isValid:function(X){return ea(X)||eu(X)&&X},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(X){return ea(X)||eu(X)&&X},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(X){return eu(X)||Array.isArray(X)},message:'"audience" must be a string or array'},algorithm:{isValid:en.bind(null,ep),message:'"algorithm" must be a valid string enum value'},header:{isValid:ef,message:'"header" must be an object'},encoding:{isValid:eu,message:'"encoding" must be a string'},issuer:{isValid:eu,message:'"issuer" must be a string'},subject:{isValid:eu,message:'"subject" must be a string'},jwtid:{isValid:eu,message:'"jwtid" must be a string'},noTimestamp:{isValid:eo,message:'"noTimestamp" must be a boolean'},keyid:{isValid:eu,message:'"keyid" must be a string'},mutatePayload:{isValid:eo,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:eo,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:eo,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},ey={iat:{isValid:es,message:'"iat" should be a number of seconds'},exp:{isValid:es,message:'"exp" should be a number of seconds'},nbf:{isValid:es,message:'"nbf" should be a number of seconds'}};function em(X,J,Z,Q){if(!ef(Z))throw Error('Expected "'+Q+'" to be a plain object.');Object.keys(Z).forEach(function(ee){let et=X[ee];if(!et){if(!J)throw Error('"'+ee+'" is not allowed in "'+Q+'"');return}if(!et.isValid(Z[ee]))throw Error(et.message)})}let eg={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},ev=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];J.exports=function(X,J,Z,et){var en,eo;"function"==typeof Z?(et=Z,Z={}):Z=Z||{};let ea="object"==typeof X&&!Q.Buffer.isBuffer(X),es=Object.assign({alg:Z.algorithm||"HS256",typ:ea?"JWT":void 0,kid:Z.keyid},Z.header);function ef(X){if(et)return et(X);throw X}if(!J&&"none"!==Z.algorithm)return ef(Error("secretOrPrivateKey must have a value"));if(null!=J&&!(J instanceof el))try{J=ed(J)}catch(X){try{J=eh("string"==typeof J?Q.Buffer.from(J):J)}catch(X){return ef(Error("secretOrPrivateKey is not valid key material"))}}if(es.alg.startsWith("HS")&&"secret"!==J.type)return ef(Error(`secretOrPrivateKey must be a symmetric key when using ${es.alg}`));if(/^(?:RS|PS|ES)/.test(es.alg)){if("private"!==J.type)return ef(Error(`secretOrPrivateKey must be an asymmetric key when using ${es.alg}`));if(!Z.allowInsecureKeySizes&&!es.alg.startsWith("ES")&&void 0!==J.asymmetricKeyDetails&&J.asymmetricKeyDetails.modulusLength<2048)return ef(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${es.alg}`))}if(void 0===X)return ef(Error("payload is required"));if(ea){try{en=X,em(ey,!0,en,"payload")}catch(X){return ef(X)}Z.mutatePayload||(X=Object.assign({},X))}else{let J=ev.filter(function(X){return void 0!==Z[X]});if(J.length>0)return ef(Error("invalid "+J.join(",")+" option for "+typeof X+" payload"))}if(void 0!==X.exp&&void 0!==Z.expiresIn)return ef(Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==X.nbf&&void 0!==Z.notBefore)return ef(Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{eo=Z,em(eb,!1,eo,"options")}catch(X){return ef(X)}if(!Z.allowInvalidAsymmetricKeyTypes)try{er(es.alg,J)}catch(X){return ef(X)}let eu=X.iat||Math.floor(Date.now()/1e3);if(Z.noTimestamp?delete X.iat:ea&&(X.iat=eu),void 0!==Z.notBefore){try{X.nbf=ee(Z.notBefore,eu)}catch(X){return ef(X)}if(void 0===X.nbf)return ef(Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==Z.expiresIn&&"object"==typeof X){try{X.exp=ee(Z.expiresIn,eu)}catch(X){return ef(X)}if(void 0===X.exp)return ef(Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(eg).forEach(function(J){let Q=eg[J];if(void 0!==Z[J]){if(void 0!==X[Q])return ef(Error('Bad "options.'+J+'" option. The payload already has an "'+Q+'" property.'));X[Q]=Z[J]}});let ep=Z.encoding||"utf8";if("function"==typeof et)et=et&&ec(et),ei.createSign({header:es,privateKey:J,payload:X,encoding:ep}).once("error",et).once("done",function(X){if(!Z.allowInsecureKeySizes&&/^(?:RS|PS)/.test(es.alg)&&X.length<256)return et(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${es.alg}`));et(null,X)});else{let Q=ei.sign({header:es,payload:X,secret:J,encoding:ep});if(!Z.allowInsecureKeySizes&&/^(?:RS|PS)/.test(es.alg)&&Q.length<256)throw Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${es.alg}`);return Q}}},16493,(X,J,Z)=>{var Q=X.i(67034);let ee=X.r(80537),et=X.r(34100),er=X.r(59261),ei=X.r(39420),en=X.r(65981),eo=X.r(76489),ea=X.r(18421),es=X.r(72919),{KeyObject:ef,createSecretKey:eu,createPublicKey:ec}=X.r(86914),el=["RS256","RS384","RS512"],eh=["ES256","ES384","ES512"],ed=["RS256","RS384","RS512"],ep=["HS256","HS384","HS512"];ea&&(el.splice(el.length,0,"PS256","PS384","PS512"),ed.splice(ed.length,0,"PS256","PS384","PS512")),J.exports=function(X,J,Z,ea){let eb,ey,em;if("function"!=typeof Z||ea||(ea=Z,Z={}),Z||(Z={}),Z=Object.assign({},Z),eb=ea||function(X,J){if(X)throw X;return J},Z.clockTimestamp&&"number"!=typeof Z.clockTimestamp)return eb(new ee("clockTimestamp must be a number"));if(void 0!==Z.nonce&&("string"!=typeof Z.nonce||""===Z.nonce.trim()))return eb(new ee("nonce must be a non-empty string"));if(void 0!==Z.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof Z.allowInvalidAsymmetricKeyTypes)return eb(new ee("allowInvalidAsymmetricKeyTypes must be a boolean"));let eg=Z.clockTimestamp||Math.floor(Date.now()/1e3);if(!X)return eb(new ee("jwt must be provided"));if("string"!=typeof X)return eb(new ee("jwt must be a string"));let ev=X.split(".");if(3!==ev.length)return eb(new ee("jwt malformed"));try{ey=ei(X,{complete:!0})}catch(X){return eb(X)}if(!ey)return eb(new ee("invalid token"));let ew=ey.header;if("function"==typeof J){if(!ea)return eb(new ee("verify must be called asynchronous if secret or public key is provided as a callback"));em=J}else em=function(X,Z){return Z(null,J)};return em(ew,function(J,ei){let ea;if(J)return eb(new ee("error in secret or public key callback: "+J.message));let em=""!==ev[2].trim();if(!em&&ei)return eb(new ee("jwt signature is required"));if(em&&!ei)return eb(new ee("secret or public key must be provided"));if(!em&&!Z.algorithms)return eb(new ee('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=ei&&!(ei instanceof ef))try{ei=ec(ei)}catch(X){try{ei=eu("string"==typeof ei?Q.Buffer.from(ei):ei)}catch(X){return eb(new ee("secretOrPublicKey is not valid key material"))}}if(Z.algorithms||("secret"===ei.type?Z.algorithms=ep:["rsa","rsa-pss"].includes(ei.asymmetricKeyType)?Z.algorithms=ed:"ec"===ei.asymmetricKeyType?Z.algorithms=eh:Z.algorithms=el),-1===Z.algorithms.indexOf(ey.header.alg))return eb(new ee("invalid algorithm"));if(ew.alg.startsWith("HS")&&"secret"!==ei.type)return eb(new ee(`secretOrPublicKey must be a symmetric key when using ${ew.alg}`));if(/^(?:RS|PS|ES)/.test(ew.alg)&&"public"!==ei.type)return eb(new ee(`secretOrPublicKey must be an asymmetric key when using ${ew.alg}`));if(!Z.allowInvalidAsymmetricKeyTypes)try{eo(ew.alg,ei)}catch(X){return eb(X)}try{ea=es.verify(X,ey.header.alg,ei)}catch(X){return eb(X)}if(!ea)return eb(new ee("invalid signature"));let ex=ey.payload;if(void 0!==ex.nbf&&!Z.ignoreNotBefore){if("number"!=typeof ex.nbf)return eb(new ee("invalid nbf value"));if(ex.nbf>eg+(Z.clockTolerance||0))return eb(new et("jwt not active",new Date(1e3*ex.nbf)))}if(void 0!==ex.exp&&!Z.ignoreExpiration){if("number"!=typeof ex.exp)return eb(new ee("invalid exp value"));if(eg>=ex.exp+(Z.clockTolerance||0))return eb(new er("jwt expired",new Date(1e3*ex.exp)))}if(Z.audience){let X=Array.isArray(Z.audience)?Z.audience:[Z.audience];if(!(Array.isArray(ex.aud)?ex.aud:[ex.aud]).some(function(J){return X.some(function(X){return X instanceof RegExp?X.test(J):X===J})}))return eb(new ee("jwt audience invalid. expected: "+X.join(" or ")))}if(Z.issuer&&("string"==typeof Z.issuer&&ex.iss!==Z.issuer||Array.isArray(Z.issuer)&&-1===Z.issuer.indexOf(ex.iss)))return eb(new ee("jwt issuer invalid. expected: "+Z.issuer));if(Z.subject&&ex.sub!==Z.subject)return eb(new ee("jwt subject invalid. expected: "+Z.subject));if(Z.jwtid&&ex.jti!==Z.jwtid)return eb(new ee("jwt jwtid invalid. expected: "+Z.jwtid));if(Z.nonce&&ex.nonce!==Z.nonce)return eb(new ee("jwt nonce invalid. expected: "+Z.nonce));if(Z.maxAge){if("number"!=typeof ex.iat)return eb(new ee("iat required when maxAge is specified"));let X=en(Z.maxAge,ex.iat);if(void 0===X)return eb(new ee('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(eg>=X+(Z.clockTolerance||0))return eb(new er("maxAge exceeded",new Date(1e3*X)))}return!0===Z.complete?eb(null,{header:ew,payload:ex,signature:ey.signature}):eb(null,ex)})}},19695,(X,J,Z)=>{var Q,ee=X.r(42524).Buffer,et=X.r(86914),er=X.r(21762),ei=X.r(77398),en="secret must be a string or buffer",eo="key must be a string or a buffer",ea="function"==typeof et.createPublicKey;function es(X){if(!ee.isBuffer(X)&&"string"!=typeof X&&(!ea||"object"!=typeof X||"string"!=typeof X.type||"string"!=typeof X.asymmetricKeyType||"function"!=typeof X.export))throw el(eo)}function ef(X){if(!ee.isBuffer(X)&&"string"!=typeof X&&"object"!=typeof X)throw el("key must be a string, a buffer or an object")}function eu(X){return X.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ec(X){var J=4-(X=X.toString()).length%4;if(4!==J)for(var Z=0;Z{var Q=X.r(78995),ee=X.r(17678);Z.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],Z.sign=Q.sign,Z.verify=ee.verify,Z.decode=ee.decode,Z.isValid=ee.isValid,Z.createSign=function(X){return new Q(X)},Z.createVerify=function(X){return new ee(X)}},84598,(X,J,Z)=>{var Q=X.i(47167),ee=X.r(42524).Buffer,et=X.r(12569);function er(X){if(this.buffer=null,this.writable=!0,this.readable=!0,!X)return this.buffer=ee.alloc(0),this;if("function"==typeof X.pipe)return this.buffer=ee.alloc(0),X.pipe(this),this;if(X.length||"object"==typeof X)return this.buffer=X,this.writable=!1,Q.default.nextTick((function(){this.emit("end",X),this.readable=!1,this.emit("close")}).bind(this)),this;throw TypeError("Unexpected data type ("+typeof X+")")}X.r(77398).inherits(er,et),er.prototype.write=function(X){this.buffer=ee.concat([this.buffer,ee.from(X)]),this.emit("data",X)},er.prototype.end=function(X){X&&this.write(X),this.emit("end",X),this.emit("close"),this.writable=!1,this.readable=!1},J.exports=er},78995,(X,J,Z)=>{var Q=X.r(42524).Buffer,ee=X.r(84598),et=X.r(19695),er=X.r(12569),ei=X.r(25502),en=X.r(77398);function eo(X,J){return Q.from(X,J).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ea(X){var J,Z,Q,ee=X.header,er=X.payload,ea=X.secret||X.privateKey,es=X.encoding,ef=et(ee.alg),eu=(J=(J=es)||"utf8",Z=eo(ei(ee),"binary"),Q=eo(ei(er),J),en.format("%s.%s",Z,Q)),ec=ef.sign(eu,ea);return en.format("%s.%s",eu,ec)}function es(X){var J=X.secret;if(J=null==(J=null==J?X.privateKey:J)?X.key:J,!0===/^hs/i.test(X.header.alg)&&null==J)throw TypeError("secret must be a string or buffer or a KeyObject");var Z=new ee(J);this.readable=!0,this.header=X.header,this.encoding=X.encoding,this.secret=this.privateKey=this.key=Z,this.payload=new ee(X.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))}en.inherits(es,er),es.prototype.sign=function(){try{var X=ea({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",X),this.emit("data",X),this.emit("end"),this.readable=!1,X}catch(X){this.readable=!1,this.emit("error",X),this.emit("close")}},es.sign=ea,J.exports=es},25502,(X,J,Z)=>{var Q=X.r(43943).Buffer;J.exports=function(X){return"string"==typeof X?X:"number"==typeof X||Q.isBuffer(X)?X.toString():JSON.stringify(X)}},17678,(X,J,Z)=>{var Q=X.r(42524).Buffer,ee=X.r(84598),et=X.r(19695),er=X.r(12569),ei=X.r(25502),en=X.r(77398),eo=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function ea(X){var J=X.split(".",1)[0],Z=Q.from(J,"base64").toString("binary");if("[object Object]"===Object.prototype.toString.call(Z))return Z;try{return JSON.parse(Z)}catch(X){return}}function es(X){return X.split(".")[2]}function ef(X){return eo.test(X)&&!!ea(X)}function eu(X,J,Z){if(!J){var Q=Error("Missing algorithm parameter for jws.verify");throw Q.code="MISSING_ALGORITHM",Q}var ee=es(X=ei(X)),er=X.split(".",2).join(".");return et(J).verify(er,ee,Z)}function ec(X,J){if(J=J||{},!ef(X=ei(X)))return null;var Z,ee,et=ea(X);if(!et)return null;var er=(Z=Z||"utf8",ee=X.split(".")[1],Q.from(ee,"base64").toString(Z));return("JWT"===et.typ||J.json)&&(er=JSON.parse(er,J.encoding)),{header:et,payload:er,signature:es(X)}}function el(X){var J=(X=X||{}).secret;if(J=null==(J=null==J?X.publicKey:J)?X.key:J,!0===/^hs/i.test(X.algorithm)&&null==J)throw TypeError("secret must be a string or buffer or a KeyObject");var Z=new ee(J);this.readable=!0,this.algorithm=X.algorithm,this.encoding=X.encoding,this.secret=this.publicKey=this.key=Z,this.signature=new ee(X.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))}en.inherits(el,er),el.prototype.verify=function(){try{var X=eu(this.signature.buffer,this.algorithm,this.key.buffer),J=ec(this.signature.buffer,this.encoding);return this.emit("done",X,J),this.emit("data",X),this.emit("end"),this.readable=!1,X}catch(X){this.readable=!1,this.emit("error",X),this.emit("close")}},el.decode=ec,el.isValid=ef,el.verify=eu,J.exports=el},45505,(X,J,Z)=>{var Q,ee,et=/^\s+|\s+$/g,er=/^[-+]0x[0-9a-f]+$/i,ei=/^0b[01]+$/i,en=/^0o[0-7]+$/i,eo=/^(?:0|[1-9]\d*)$/,ea=parseInt;function es(X){return X!=X}var ef=Object.prototype,eu=ef.hasOwnProperty,ec=ef.toString,el=ef.propertyIsEnumerable,eh=(Q=Object.keys,ee=Object,function(X){return Q(ee(X))}),ed=Math.max,ep=Array.isArray;function eb(X){var J,Z,Q;return null!=X&&"number"==typeof(J=X.length)&&J>-1&&J%1==0&&J<=0x1fffffffffffff&&"[object Function]"!=(Q=ey(Z=X)?ec.call(Z):"")&&"[object GeneratorFunction]"!=Q}function ey(X){var J=typeof X;return!!X&&("object"==J||"function"==J)}function em(X){return!!X&&"object"==typeof X}J.exports=function(X,J,Z,Q){X=eb(X)?X:function(X){return X?function(X,J){for(var Z=-1,Q=X?X.length:0,ee=Array(Q);++Z-1&&Q%1==0&&Q-1:!!ex&&function(X,J,Z){if(J!=J){for(var Q=X.length,ee=Z+-1;++ee-1}},8618,(X,J,Z)=>{var Q=Object.prototype.toString;J.exports=function(X){var J;return!0===X||!1===X||!!(J=X)&&"object"==typeof J&&"[object Boolean]"==Q.call(X)}},11981,(X,J,Z)=>{var Q=/^\s+|\s+$/g,ee=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,er=/^0o[0-7]+$/i,ei=parseInt,en=Object.prototype.toString;function eo(X){var J=typeof X;return!!X&&("object"==J||"function"==J)}J.exports=function(X){var J,Z,ea;return"number"==typeof X&&X==(ea=(Z=(J=X)?1/0===(J=function(X){if("number"==typeof X)return X;if("symbol"==typeof(J=X)||J&&"object"==typeof J&&"[object Symbol]"==en.call(J))return 0/0;if(eo(X)){var J,Z="function"==typeof X.valueOf?X.valueOf():X;X=eo(Z)?Z+"":Z}if("string"!=typeof X)return 0===X?X:+X;X=X.replace(Q,"");var ea=et.test(X);return ea||er.test(X)?ei(X.slice(2),ea?2:8):ee.test(X)?0/0:+X}(J))||-1/0===J?(J<0?-1:1)*17976931348623157e292:J==J?J:0:0===J?J:0)%1,Z==Z?ea?Z-ea:Z:0)}},51523,(X,J,Z)=>{var Q=Object.prototype.toString;J.exports=function(X){return"number"==typeof X||!!X&&"object"==typeof X&&"[object Number]"==Q.call(X)}},94425,(X,J,Z)=>{var Q,ee,et=Object.prototype,er=Function.prototype.toString,ei=et.hasOwnProperty,en=er.call(Object),eo=et.toString,ea=(Q=Object.getPrototypeOf,ee=Object,function(X){return Q(ee(X))});J.exports=function(X){if(!(X&&"object"==typeof X)||"[object Object]"!=eo.call(X)||function(X){var J=!1;if(null!=X&&"function"!=typeof X.toString)try{J=!!(X+"")}catch(X){}return J}(X))return!1;var J=ea(X);if(null===J)return!0;var Z=ei.call(J,"constructor")&&J.constructor;return"function"==typeof Z&&Z instanceof Z&&er.call(Z)==en}},23139,(X,J,Z)=>{var Q=Object.prototype.toString,ee=Array.isArray;J.exports=function(X){var J;return"string"==typeof X||!ee(X)&&!!(J=X)&&"object"==typeof J&&"[object String]"==Q.call(X)}},62976,(X,J,Z)=>{var Q=/^\s+|\s+$/g,ee=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,er=/^0o[0-7]+$/i,ei=parseInt,en=Object.prototype.toString;function eo(X){var J=typeof X;return!!X&&("object"==J||"function"==J)}J.exports=function(X){var J,Z,ea,es,ef=2,eu=X;if("function"!=typeof eu)throw TypeError("Expected a function");return ea=(Z=(J=ef)?1/0===(J=function(X){if("number"==typeof X)return X;if("symbol"==typeof(J=X)||J&&"object"==typeof J&&"[object Symbol]"==en.call(J))return 0/0;if(eo(X)){var J,Z="function"==typeof X.valueOf?X.valueOf():X;X=eo(Z)?Z+"":Z}if("string"!=typeof X)return 0===X?X:+X;X=X.replace(Q,"");var ea=et.test(X);return ea||er.test(X)?ei(X.slice(2),ea?2:8):ee.test(X)?0/0:+X}(J))||-1/0===J?(J<0?-1:1)*17976931348623157e292:J==J?J:0:0===J?J:0)%1,ef=Z==Z?ea?Z-ea:Z:0,function(){return--ef>0&&(es=eu.apply(this,arguments)),ef<=1&&(eu=void 0),es}}},76775,(X,J,Z)=>{function Q(X,J,Z,Q){return Math.round(X/Z)+" "+Q+(J>=1.5*Z?"s":"")}J.exports=function(X,J){J=J||{};var Z,ee,et,er,ei=typeof X;if("string"===ei&&X.length>0){var en=X;if(!((en=String(en)).length>100)){var eo=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(en);if(eo){var ea=parseFloat(eo[1]);switch((eo[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*ea;case"weeks":case"week":case"w":return 6048e5*ea;case"days":case"day":case"d":return 864e5*ea;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*ea;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*ea;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*ea;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return ea;default:break}}}return}if("number"===ei&&isFinite(X)){return J.long?(ee=Math.abs(Z=X))>=864e5?Q(Z,ee,864e5,"day"):ee>=36e5?Q(Z,ee,36e5,"hour"):ee>=6e4?Q(Z,ee,6e4,"minute"):ee>=1e3?Q(Z,ee,1e3,"second"):Z+" ms":(er=Math.abs(et=X))>=864e5?Math.round(et/864e5)+"d":er>=36e5?Math.round(et/36e5)+"h":er>=6e4?Math.round(et/6e4)+"m":er>=1e3?Math.round(et/1e3)+"s":et+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(X))}},67034,(X,J,Z)=>{var Q={872:function(X,J){"use strict";J.byteLength=function(X){var J=en(X),Z=J[0],Q=J[1];return(Z+Q)*3/4-Q},J.toByteArray=function(X){var J,Z,et=en(X),er=et[0],ei=et[1],eo=new ee((er+ei)*3/4-ei),ea=0,es=ei>0?er-4:er;for(Z=0;Z>16&255,eo[ea++]=J>>8&255,eo[ea++]=255&J;return 2===ei&&(J=Q[X.charCodeAt(Z)]<<2|Q[X.charCodeAt(Z+1)]>>4,eo[ea++]=255&J),1===ei&&(J=Q[X.charCodeAt(Z)]<<10|Q[X.charCodeAt(Z+1)]<<4|Q[X.charCodeAt(Z+2)]>>2,eo[ea++]=J>>8&255,eo[ea++]=255&J),eo},J.fromByteArray=function(X){for(var J,Q=X.length,ee=Q%3,et=[],er=0,ei=Q-ee;er>18&63]+Z[ee>>12&63]+Z[ee>>6&63]+Z[63&ee]);return et.join("")}(X,er,er+16383>ei?ei:er+16383));return 1===ee?et.push(Z[(J=X[Q-1])>>2]+Z[J<<4&63]+"=="):2===ee&&et.push(Z[(J=(X[Q-2]<<8)+X[Q-1])>>10]+Z[J>>4&63]+Z[J<<2&63]+"="),et.join("")};for(var Z=[],Q=[],ee="u">typeof Uint8Array?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",er=0,ei=et.length;er0)throw Error("Invalid string. Length must be a multiple of 4");var Z=X.indexOf("=");-1===Z&&(Z=J);var Q=Z===J?0:4-Z%4;return[Z,Q]}Q[45]=62,Q[95]=63},230:function(X,J,Z){"use strict";var Q=Z(872),ee=Z(321),et="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function er(X){if(X>0x7fffffff)throw RangeError('The value "'+X+'" is invalid for option "size"');var J=new Uint8Array(X);return Object.setPrototypeOf(J,ei.prototype),J}function ei(X,J,Z){if("number"==typeof X){if("string"==typeof J)throw TypeError('The "string" argument must be of type string. Received type number');return ea(X)}return en(X,J,Z)}function en(X,J,Z){if("string"==typeof X){var Q=X,ee=J;if(("string"!=typeof ee||""===ee)&&(ee="utf8"),!ei.isEncoding(ee))throw TypeError("Unknown encoding: "+ee);var et=0|eu(Q,ee),en=er(et),eo=en.write(Q,ee);return eo!==et&&(en=en.slice(0,eo)),en}if(ArrayBuffer.isView(X))return es(X);if(null==X)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(eM(X,ArrayBuffer)||X&&eM(X.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(eM(X,SharedArrayBuffer)||X&&eM(X.buffer,SharedArrayBuffer)))return function(X,J,Z){var Q;if(J<0||X.byteLengthtypeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof X[Symbol.toPrimitive])return ei.from(X[Symbol.toPrimitive]("string"),J,Z);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}function eo(X){if("number"!=typeof X)throw TypeError('"size" argument must be of type number');if(X<0)throw RangeError('The value "'+X+'" is invalid for option "size"')}function ea(X){return eo(X),er(X<0?0:0|ef(X))}function es(X){for(var J=X.length<0?0:0|ef(X.length),Z=er(J),Q=0;Qtypeof 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(ei.prototype,"parent",{enumerable:!0,get:function(){if(ei.isBuffer(this))return this.buffer}}),Object.defineProperty(ei.prototype,"offset",{enumerable:!0,get:function(){if(ei.isBuffer(this))return this.byteOffset}}),ei.poolSize=8192,ei.from=function(X,J,Z){return en(X,J,Z)},Object.setPrototypeOf(ei.prototype,Uint8Array.prototype),Object.setPrototypeOf(ei,Uint8Array),ei.alloc=function(X,J,Z){return(eo(X),X<=0)?er(X):void 0!==J?"string"==typeof Z?er(X).fill(J,Z):er(X).fill(J):er(X)},ei.allocUnsafe=function(X){return ea(X)},ei.allocUnsafeSlow=function(X){return ea(X)};function ef(X){if(X>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|X}function eu(X,J){if(ei.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||eM(X,ArrayBuffer))return X.byteLength;if("string"!=typeof X)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);var Z=X.length,Q=arguments.length>2&&!0===arguments[2];if(!Q&&0===Z)return 0;for(var ee=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Z;case"utf8":case"utf-8":return ex(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Z;case"hex":return Z>>>1;case"base64":return eE(X).length;default:if(ee)return Q?-1:ex(X).length;J=(""+J).toLowerCase(),ee=!0}}function ec(X,J,Z){var ee,et,er,ei=!1;if((void 0===J||J<0)&&(J=0),J>this.length||((void 0===Z||Z>this.length)&&(Z=this.length),Z<=0||(Z>>>=0)<=(J>>>=0)))return"";for(X||(X="utf8");;)switch(X){case"hex":return function(X,J,Z){var Q=X.length;(!J||J<0)&&(J=0),(!Z||Z<0||Z>Q)&&(Z=Q);for(var ee="",et=J;et0x7fffffff?Z=0x7fffffff:Z<-0x80000000&&(Z=-0x80000000),(et=Z*=1)!=et&&(Z=ee?0:X.length-1),Z<0&&(Z=X.length+Z),Z>=X.length)if(ee)return -1;else Z=X.length-1;else if(Z<0)if(!ee)return -1;else Z=0;if("string"==typeof J&&(J=ei.from(J,Q)),ei.isBuffer(J))return 0===J.length?-1:ed(X,J,Z,Q,ee);if("number"==typeof J){if(J&=255,"function"==typeof Uint8Array.prototype.indexOf)if(ee)return Uint8Array.prototype.indexOf.call(X,J,Z);else return Uint8Array.prototype.lastIndexOf.call(X,J,Z);return ed(X,[J],Z,Q,ee)}throw TypeError("val must be string, number or Buffer")}function ed(X,J,Z,Q,ee){var et,er=1,ei=X.length,en=J.length;if(void 0!==Q&&("ucs2"===(Q=String(Q).toLowerCase())||"ucs-2"===Q||"utf16le"===Q||"utf-16le"===Q)){if(X.length<2||J.length<2)return -1;er=2,ei/=2,en/=2,Z/=2}function eo(X,J){return 1===er?X[J]:X.readUInt16BE(J*er)}if(ee){var ea=-1;for(et=Z;etei&&(Z=ei-en),et=Z;et>=0;et--){for(var es=!0,ef=0;efZ&&(X+=" ... "),""},et&&(ei.prototype[et]=ei.prototype.inspect),ei.prototype.compare=function(X,J,Z,Q,ee){if(eM(X,Uint8Array)&&(X=ei.from(X,X.offset,X.byteLength)),!ei.isBuffer(X))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(void 0===J&&(J=0),void 0===Z&&(Z=X?X.length:0),void 0===Q&&(Q=0),void 0===ee&&(ee=this.length),J<0||Z>X.length||Q<0||ee>this.length)throw RangeError("out of range index");if(Q>=ee&&J>=Z)return 0;if(Q>=ee)return -1;if(J>=Z)return 1;if(J>>>=0,Z>>>=0,Q>>>=0,ee>>>=0,this===X)return 0;for(var et=ee-Q,er=Z-J,en=Math.min(et,er),eo=this.slice(Q,ee),ea=X.slice(J,Z),es=0;es239?4:eo>223?3:eo>191?2:1;if(ee+es<=Z)switch(es){case 1:eo<128&&(ea=eo);break;case 2:(192&(et=X[ee+1]))==128&&(en=(31&eo)<<6|63&et)>127&&(ea=en);break;case 3:et=X[ee+1],er=X[ee+2],(192&et)==128&&(192&er)==128&&(en=(15&eo)<<12|(63&et)<<6|63&er)>2047&&(en<55296||en>57343)&&(ea=en);break;case 4:et=X[ee+1],er=X[ee+2],ei=X[ee+3],(192&et)==128&&(192&er)==128&&(192&ei)==128&&(en=(15&eo)<<18|(63&et)<<12|(63&er)<<6|63&ei)>65535&&en<1114112&&(ea=en)}null===ea?(ea=65533,es=1):ea>65535&&(ea-=65536,Q.push(ea>>>10&1023|55296),ea=56320|1023&ea),Q.push(ea),ee+=es}var ef=Q,eu=ef.length;if(eu<=4096)return String.fromCharCode.apply(String,ef);for(var ec="",el=0;elZ)throw RangeError("Trying to access beyond buffer length")}function ey(X,J,Z,Q,ee,et){if(!ei.isBuffer(X))throw TypeError('"buffer" argument must be a Buffer instance');if(J>ee||JX.length)throw RangeError("Index out of range")}function em(X,J,Z,Q,ee,et){if(Z+Q>X.length||Z<0)throw RangeError("Index out of range")}function eg(X,J,Z,Q,et){return J*=1,Z>>>=0,et||em(X,J,Z,4,34028234663852886e22,-34028234663852886e22),ee.write(X,J,Z,Q,23,4),Z+4}function ev(X,J,Z,Q,et){return J*=1,Z>>>=0,et||em(X,J,Z,8,17976931348623157e292,-17976931348623157e292),ee.write(X,J,Z,Q,52,8),Z+8}ei.prototype.write=function(X,J,Z,Q){if(void 0===J)Q="utf8",Z=this.length,J=0;else if(void 0===Z&&"string"==typeof J)Q=J,Z=this.length,J=0;else if(isFinite(J))J>>>=0,isFinite(Z)?(Z>>>=0,void 0===Q&&(Q="utf8")):(Q=Z,Z=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ee,et,er,ei,en,eo,ea,es,ef=this.length-J;if((void 0===Z||Z>ef)&&(Z=ef),X.length>0&&(Z<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var eu=!1;;)switch(Q){case"hex":return function(X,J,Z,Q){Z=Number(Z)||0;var ee=X.length-Z;Q?(Q=Number(Q))>ee&&(Q=ee):Q=ee;var et=J.length;Q>et/2&&(Q=et/2);for(var er=0;er>8,ee.push(Z%256),ee.push(Q);return ee}(X,this.length-ea),this,ea,es);default:if(eu)throw TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),eu=!0}},ei.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ei.prototype.slice=function(X,J){var Z=this.length;X=~~X,J=void 0===J?Z:~~J,X<0?(X+=Z)<0&&(X=0):X>Z&&(X=Z),J<0?(J+=Z)<0&&(J=0):J>Z&&(J=Z),J>>=0,J>>>=0,Z||eb(X,J,this.length);for(var Q=this[X],ee=1,et=0;++et>>=0,J>>>=0,Z||eb(X,J,this.length);for(var Q=this[X+--J],ee=1;J>0&&(ee*=256);)Q+=this[X+--J]*ee;return Q},ei.prototype.readUInt8=function(X,J){return X>>>=0,J||eb(X,1,this.length),this[X]},ei.prototype.readUInt16LE=function(X,J){return X>>>=0,J||eb(X,2,this.length),this[X]|this[X+1]<<8},ei.prototype.readUInt16BE=function(X,J){return X>>>=0,J||eb(X,2,this.length),this[X]<<8|this[X+1]},ei.prototype.readUInt32LE=function(X,J){return X>>>=0,J||eb(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+0x1000000*this[X+3]},ei.prototype.readUInt32BE=function(X,J){return X>>>=0,J||eb(X,4,this.length),0x1000000*this[X]+(this[X+1]<<16|this[X+2]<<8|this[X+3])},ei.prototype.readIntLE=function(X,J,Z){X>>>=0,J>>>=0,Z||eb(X,J,this.length);for(var Q=this[X],ee=1,et=0;++et=(ee*=128)&&(Q-=Math.pow(2,8*J)),Q},ei.prototype.readIntBE=function(X,J,Z){X>>>=0,J>>>=0,Z||eb(X,J,this.length);for(var Q=J,ee=1,et=this[X+--Q];Q>0&&(ee*=256);)et+=this[X+--Q]*ee;return et>=(ee*=128)&&(et-=Math.pow(2,8*J)),et},ei.prototype.readInt8=function(X,J){return(X>>>=0,J||eb(X,1,this.length),128&this[X])?-((255-this[X]+1)*1):this[X]},ei.prototype.readInt16LE=function(X,J){X>>>=0,J||eb(X,2,this.length);var Z=this[X]|this[X+1]<<8;return 32768&Z?0xffff0000|Z:Z},ei.prototype.readInt16BE=function(X,J){X>>>=0,J||eb(X,2,this.length);var Z=this[X+1]|this[X]<<8;return 32768&Z?0xffff0000|Z:Z},ei.prototype.readInt32LE=function(X,J){return X>>>=0,J||eb(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},ei.prototype.readInt32BE=function(X,J){return X>>>=0,J||eb(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},ei.prototype.readFloatLE=function(X,J){return X>>>=0,J||eb(X,4,this.length),ee.read(this,X,!0,23,4)},ei.prototype.readFloatBE=function(X,J){return X>>>=0,J||eb(X,4,this.length),ee.read(this,X,!1,23,4)},ei.prototype.readDoubleLE=function(X,J){return X>>>=0,J||eb(X,8,this.length),ee.read(this,X,!0,52,8)},ei.prototype.readDoubleBE=function(X,J){return X>>>=0,J||eb(X,8,this.length),ee.read(this,X,!1,52,8)},ei.prototype.writeUIntLE=function(X,J,Z,Q){if(X*=1,J>>>=0,Z>>>=0,!Q){var ee=Math.pow(2,8*Z)-1;ey(this,X,J,Z,ee,0)}var et=1,er=0;for(this[J]=255&X;++er>>=0,Z>>>=0,!Q){var ee=Math.pow(2,8*Z)-1;ey(this,X,J,Z,ee,0)}var et=Z-1,er=1;for(this[J+et]=255&X;--et>=0&&(er*=256);)this[J+et]=X/er&255;return J+Z},ei.prototype.writeUInt8=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,1,255,0),this[J]=255&X,J+1},ei.prototype.writeUInt16LE=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,2,65535,0),this[J]=255&X,this[J+1]=X>>>8,J+2},ei.prototype.writeUInt16BE=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,2,65535,0),this[J]=X>>>8,this[J+1]=255&X,J+2},ei.prototype.writeUInt32LE=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,4,0xffffffff,0),this[J+3]=X>>>24,this[J+2]=X>>>16,this[J+1]=X>>>8,this[J]=255&X,J+4},ei.prototype.writeUInt32BE=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,4,0xffffffff,0),this[J]=X>>>24,this[J+1]=X>>>16,this[J+2]=X>>>8,this[J+3]=255&X,J+4},ei.prototype.writeIntLE=function(X,J,Z,Q){if(X*=1,J>>>=0,!Q){var ee=Math.pow(2,8*Z-1);ey(this,X,J,Z,ee-1,-ee)}var et=0,er=1,ei=0;for(this[J]=255&X;++et>>=0,!Q){var ee=Math.pow(2,8*Z-1);ey(this,X,J,Z,ee-1,-ee)}var et=Z-1,er=1,ei=0;for(this[J+et]=255&X;--et>=0&&(er*=256);)X<0&&0===ei&&0!==this[J+et+1]&&(ei=1),this[J+et]=(X/er|0)-ei&255;return J+Z},ei.prototype.writeInt8=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,1,127,-128),X<0&&(X=255+X+1),this[J]=255&X,J+1},ei.prototype.writeInt16LE=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,2,32767,-32768),this[J]=255&X,this[J+1]=X>>>8,J+2},ei.prototype.writeInt16BE=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,2,32767,-32768),this[J]=X>>>8,this[J+1]=255&X,J+2},ei.prototype.writeInt32LE=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,4,0x7fffffff,-0x80000000),this[J]=255&X,this[J+1]=X>>>8,this[J+2]=X>>>16,this[J+3]=X>>>24,J+4},ei.prototype.writeInt32BE=function(X,J,Z){return X*=1,J>>>=0,Z||ey(this,X,J,4,0x7fffffff,-0x80000000),X<0&&(X=0xffffffff+X+1),this[J]=X>>>24,this[J+1]=X>>>16,this[J+2]=X>>>8,this[J+3]=255&X,J+4},ei.prototype.writeFloatLE=function(X,J,Z){return eg(this,X,J,!0,Z)},ei.prototype.writeFloatBE=function(X,J,Z){return eg(this,X,J,!1,Z)},ei.prototype.writeDoubleLE=function(X,J,Z){return ev(this,X,J,!0,Z)},ei.prototype.writeDoubleBE=function(X,J,Z){return ev(this,X,J,!1,Z)},ei.prototype.copy=function(X,J,Z,Q){if(!ei.isBuffer(X))throw TypeError("argument should be a Buffer");if(Z||(Z=0),Q||0===Q||(Q=this.length),J>=X.length&&(J=X.length),J||(J=0),Q>0&&Q=this.length)throw RangeError("Index out of range");if(Q<0)throw RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),X.length-J=0;--et)X[et+J]=this[et+Z];else Uint8Array.prototype.set.call(X,this.subarray(Z,Q),J);return ee},ei.prototype.fill=function(X,J,Z,Q){if("string"==typeof X){if("string"==typeof J?(Q=J,J=0,Z=this.length):"string"==typeof Z&&(Q=Z,Z=this.length),void 0!==Q&&"string"!=typeof Q)throw TypeError("encoding must be a string");if("string"==typeof Q&&!ei.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);if(1===X.length){var ee,et=X.charCodeAt(0);("utf8"===Q&&et<128||"latin1"===Q)&&(X=et)}}else"number"==typeof X?X&=255:"boolean"==typeof X&&(X=Number(X));if(J<0||this.length>>=0,Z=void 0===Z?this.length:Z>>>0,X||(X=0),"number"==typeof X)for(ee=J;ee55295&&Z<57344){if(!ee){if(Z>56319||er+1===Q){(J-=3)>-1&&et.push(239,191,189);continue}ee=Z;continue}if(Z<56320){(J-=3)>-1&&et.push(239,191,189),ee=Z;continue}Z=(ee-55296<<10|Z-56320)+65536}else ee&&(J-=3)>-1&&et.push(239,191,189);if(ee=null,Z<128){if((J-=1)<0)break;et.push(Z)}else if(Z<2048){if((J-=2)<0)break;et.push(Z>>6|192,63&Z|128)}else if(Z<65536){if((J-=3)<0)break;et.push(Z>>12|224,Z>>6&63|128,63&Z|128)}else if(Z<1114112){if((J-=4)<0)break;et.push(Z>>18|240,Z>>12&63|128,Z>>6&63|128,63&Z|128)}else throw Error("Invalid code point")}return et}function e_(X){for(var J=[],Z=0;Z=J.length)&&!(ee>=X.length);++ee)J[ee+Z]=X[ee];return ee}function eM(X,J){return X instanceof J||null!=X&&null!=X.constructor&&null!=X.constructor.name&&X.constructor.name===J.name}var eA=function(){for(var X="0123456789abcdef",J=Array(256),Z=0;Z<16;++Z)for(var Q=16*Z,ee=0;ee<16;++ee)J[Q+ee]=X[Z]+X[ee];return J}()},321:function(X,J){J.read=function(X,J,Z,Q,ee){var et,er,ei=8*ee-Q-1,en=(1<>1,ea=-7,es=Z?ee-1:0,ef=Z?-1:1,eu=X[J+es];for(es+=ef,et=eu&(1<<-ea)-1,eu>>=-ea,ea+=ei;ea>0;et=256*et+X[J+es],es+=ef,ea-=8);for(er=et&(1<<-ea)-1,et>>=-ea,ea+=Q;ea>0;er=256*er+X[J+es],es+=ef,ea-=8);if(0===et)et=1-eo;else{if(et===en)return er?0/0:(eu?-1:1)*2e308;er+=Math.pow(2,Q),et-=eo}return(eu?-1:1)*er*Math.pow(2,et-Q)},J.write=function(X,J,Z,Q,ee,et){var er,ei,en,eo=8*et-ee-1,ea=(1<>1,ef=5960464477539062e-23*(23===ee),eu=Q?0:et-1,ec=Q?1:-1,el=+(J<0||0===J&&1/J<0);for(isNaN(J=Math.abs(J))||1/0===J?(ei=+!!isNaN(J),er=ea):(er=Math.floor(Math.log(J)/Math.LN2),J*(en=Math.pow(2,-er))<1&&(er--,en*=2),er+es>=1?J+=ef/en:J+=ef*Math.pow(2,1-es),J*en>=2&&(er++,en/=2),er+es>=ea?(ei=0,er=ea):er+es>=1?(ei=(J*en-1)*Math.pow(2,ee),er+=es):(ei=J*Math.pow(2,es-1)*Math.pow(2,ee),er=0));ee>=8;X[Z+eu]=255&ei,eu+=ec,ei/=256,ee-=8);for(er=er<0;X[Z+eu]=255&er,eu+=ec,er/=256,eo-=8);X[Z+eu-ec]|=128*el}}},ee={};function et(X){var J=ee[X];if(void 0!==J)return J.exports;var Z=ee[X]={exports:{}},er=!0;try{Q[X](Z,Z.exports,et),er=!1}finally{er&&delete ee[X]}return Z.exports}et.ab="/ROOT/node_modules/next/dist/compiled/buffer/",J.exports=et(230)},86914,(X,J,Z)=>{var Q=X.i(67034),ee=X.i(47167),et={9186:function(X,J,Z){J.bignum=Z(5944),J.define=Z(5673).define,J.base=Z(8747),J.constants=Z(8063),J.decoders=Z(2455),J.encoders=Z(5555)},5673:function(X,J,Z){var Q=Z(9186),ee=Z(1638);function et(X,J){this.name=X,this.body=J,this.decoders={},this.encoders={}}J.define=function(X,J){return new et(X,J)},et.prototype._createNamed=function(X){var J;try{J=Z(9154).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(X){J=function(X){this._initNamed(X)}}return ee(J,X),J.prototype._initNamed=function(J){X.call(this,J)},new J(this)},et.prototype._getDecoder=function(X){return X=X||"der",this.decoders.hasOwnProperty(X)||(this.decoders[X]=this._createNamed(Q.decoders[X])),this.decoders[X]},et.prototype.decode=function(X,J,Z){return this._getDecoder(J).decode(X,Z)},et.prototype._getEncoder=function(X){return X=X||"der",this.encoders.hasOwnProperty(X)||(this.encoders[X]=this._createNamed(Q.encoders[X])),this.encoders[X]},et.prototype.encode=function(X,J,Z){return this._getEncoder(J).encode(X,Z)}},5781:function(X,J,Z){var Q=Z(1638),ee=Z(8747).Reporter,et=Z(181).Buffer;function er(X,J){(ee.call(this,J),et.isBuffer(X))?(this.base=X,this.offset=0,this.length=X.length):this.error("Input not Buffer")}function ei(X,J){if(Array.isArray(X))this.length=0,this.value=X.map(function(X){return X instanceof ei||(X=new ei(X,J)),this.length+=X.length,X},this);else if("number"==typeof X){if(!(0<=X&&X<=255))return J.error("non-byte EncoderBuffer value");this.value=X,this.length=1}else if("string"==typeof X)this.value=X,this.length=et.byteLength(X);else{if(!et.isBuffer(X))return J.error("Unsupported type: "+typeof X);this.value=X,this.length=X.length}}Q(er,ee),J.t=er,er.prototype.save=function(){return{offset:this.offset,reporter:ee.prototype.save.call(this)}},er.prototype.restore=function(X){var J=new er(this.base);return J.offset=X.offset,J.length=this.offset,this.offset=X.offset,ee.prototype.restore.call(this,X.reporter),J},er.prototype.isEmpty=function(){return this.offset===this.length},er.prototype.readUInt8=function(X){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(X||"DecoderBuffer overrun")},er.prototype.skip=function(X,J){if(!(this.offset+X<=this.length))return this.error(J||"DecoderBuffer overrun");var Z=new er(this.base);return Z._reporterState=this._reporterState,Z.offset=this.offset,Z.length=this.offset+X,this.offset+=X,Z},er.prototype.raw=function(X){return this.base.slice(X?X.offset:this.offset,this.length)},J.d=ei,ei.prototype.join=function(X,J){return X||(X=new et(this.length)),J||(J=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(Z){Z.join(X,J),J+=Z.length}):("number"==typeof this.value?X[J]=this.value:"string"==typeof this.value?X.write(this.value,J):et.isBuffer(this.value)&&this.value.copy(X,J),J+=this.length)),X}},8747:function(X,J,Z){J.Reporter=Z(9257).a,J.DecoderBuffer=Z(5781).t,J.EncoderBuffer=Z(5781).d,J.Node=Z(763)},763:function(X,J,Z){var Q=Z(8747).Reporter,ee=Z(8747).EncoderBuffer,et=Z(8747).DecoderBuffer,er=Z(7551),ei=["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"],en=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(ei);function eo(X,J){var Z={};this._baseState=Z,Z.enc=X,Z.parent=J||null,Z.children=null,Z.tag=null,Z.args=null,Z.reverseArgs=null,Z.choice=null,Z.optional=!1,Z.any=!1,Z.obj=!1,Z.use=null,Z.useDecoder=null,Z.key=null,Z.default=null,Z.explicit=null,Z.implicit=null,Z.contains=null,Z.parent||(Z.children=[],this._wrap())}X.exports=eo;var ea=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];eo.prototype.clone=function(){var X=this._baseState,J={};ea.forEach(function(Z){J[Z]=X[Z]});var Z=new this.constructor(J.parent);return Z._baseState=J,Z},eo.prototype._wrap=function(){var X=this._baseState;en.forEach(function(J){this[J]=function(){var Z=new this.constructor(this);return X.children.push(Z),Z[J].apply(Z,arguments)}},this)},eo.prototype._init=function(X){var J=this._baseState;er(null===J.parent),X.call(this),J.children=J.children.filter(function(X){return X._baseState.parent===this},this),er.equal(J.children.length,1,"Root node can have only one child")},eo.prototype._useArgs=function(X){var J=this._baseState,Z=X.filter(function(X){return X instanceof this.constructor},this);X=X.filter(function(X){return!(X instanceof this.constructor)},this),0!==Z.length&&(er(null===J.children),J.children=Z,Z.forEach(function(X){X._baseState.parent=this},this)),0!==X.length&&(er(null===J.args),J.args=X,J.reverseArgs=X.map(function(X){if("object"!=typeof X||X.constructor!==Object)return X;var J={};return Object.keys(X).forEach(function(Z){Z==(0|Z)&&(Z|=0),J[X[Z]]=Z}),J}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(X){eo.prototype[X]=function(){throw Error(X+" not implemented for encoding: "+this._baseState.enc)}}),ei.forEach(function(X){eo.prototype[X]=function(){var J=this._baseState,Z=Array.prototype.slice.call(arguments);return er(null===J.tag),J.tag=X,this._useArgs(Z),this}}),eo.prototype.use=function(X){er(X);var J=this._baseState;return er(null===J.use),J.use=X,this},eo.prototype.optional=function(){return this._baseState.optional=!0,this},eo.prototype.def=function(X){var J=this._baseState;return er(null===J.default),J.default=X,J.optional=!0,this},eo.prototype.explicit=function(X){var J=this._baseState;return er(null===J.explicit&&null===J.implicit),J.explicit=X,this},eo.prototype.implicit=function(X){var J=this._baseState;return er(null===J.explicit&&null===J.implicit),J.implicit=X,this},eo.prototype.obj=function(){var X=this._baseState,J=Array.prototype.slice.call(arguments);return X.obj=!0,0!==J.length&&this._useArgs(J),this},eo.prototype.key=function(X){var J=this._baseState;return er(null===J.key),J.key=X,this},eo.prototype.any=function(){return this._baseState.any=!0,this},eo.prototype.choice=function(X){var J=this._baseState;return er(null===J.choice),J.choice=X,this._useArgs(Object.keys(X).map(function(J){return X[J]})),this},eo.prototype.contains=function(X){var J=this._baseState;return er(null===J.use),J.contains=X,this},eo.prototype._decode=function(X,J){var Z,Q=this._baseState;if(null===Q.parent)return X.wrapResult(Q.children[0]._decode(X,J));var ee=Q.default,er=!0,ei=null;if(null!==Q.key&&(ei=X.enterKey(Q.key)),Q.optional){var en=null;if(null!==Q.explicit?en=Q.explicit:null!==Q.implicit?en=Q.implicit:null!==Q.tag&&(en=Q.tag),null!==en||Q.any){if(er=this._peekTag(X,en,Q.any),X.isError(er))return er}else{var eo=X.save();try{null===Q.choice?this._decodeGeneric(Q.tag,X,J):this._decodeChoice(X,J),er=!0}catch(X){er=!1}X.restore(eo)}}if(Q.obj&&er&&(Z=X.enterObject()),er){if(null!==Q.explicit){var ea=this._decodeTag(X,Q.explicit);if(X.isError(ea))return ea;X=ea}var es=X.offset;if(null===Q.use&&null===Q.choice){if(Q.any)var eo=X.save();var ef=this._decodeTag(X,null!==Q.implicit?Q.implicit:Q.tag,Q.any);if(X.isError(ef))return ef;Q.any?ee=X.raw(eo):X=ef}if(J&&J.track&&null!==Q.tag&&J.track(X.path(),es,X.length,"tagged"),J&&J.track&&null!==Q.tag&&J.track(X.path(),X.offset,X.length,"content"),Q.any||(ee=null===Q.choice?this._decodeGeneric(Q.tag,X,J):this._decodeChoice(X,J)),X.isError(ee))return ee;if(Q.any||null!==Q.choice||null===Q.children||Q.children.forEach(function(Z){Z._decode(X,J)}),Q.contains&&("octstr"===Q.tag||"bitstr"===Q.tag)){var eu=new et(ee);ee=this._getUse(Q.contains,X._reporterState.obj)._decode(eu,J)}}return Q.obj&&er&&(ee=X.leaveObject(Z)),null!==Q.key&&(null!==ee||!0===er)?X.leaveKey(ei,Q.key,ee):null!==ei&&X.exitKey(ei),ee},eo.prototype._decodeGeneric=function(X,J,Z){var Q=this._baseState;if("seq"===X||"set"===X)return null;if("seqof"===X||"setof"===X)return this._decodeList(J,X,Q.args[0],Z);if(/str$/.test(X))return this._decodeStr(J,X,Z);if("objid"===X&&Q.args)return this._decodeObjid(J,Q.args[0],Q.args[1],Z);if("objid"===X)return this._decodeObjid(J,null,null,Z);if("gentime"===X||"utctime"===X)return this._decodeTime(J,X,Z);else if("null_"===X)return this._decodeNull(J,Z);else if("bool"===X)return this._decodeBool(J,Z);else if("objDesc"===X)return this._decodeStr(J,X,Z);else if("int"===X||"enum"===X)return this._decodeInt(J,Q.args&&Q.args[0],Z);return null!==Q.use?this._getUse(Q.use,J._reporterState.obj)._decode(J,Z):J.error("unknown tag: "+X)},eo.prototype._getUse=function(X,J){var Z=this._baseState;return Z.useDecoder=this._use(X,J),er(null===Z.useDecoder._baseState.parent),Z.useDecoder=Z.useDecoder._baseState.children[0],Z.implicit!==Z.useDecoder._baseState.implicit&&(Z.useDecoder=Z.useDecoder.clone(),Z.useDecoder._baseState.implicit=Z.implicit),Z.useDecoder},eo.prototype._decodeChoice=function(X,J){var Z=this._baseState,Q=null,ee=!1;return(Object.keys(Z.choice).some(function(et){var er=X.save(),ei=Z.choice[et];try{var en=ei._decode(X,J);if(X.isError(en))return!1;Q={type:et,value:en},ee=!0}catch(J){return X.restore(er),!1}return!0},this),ee)?Q:X.error("Choice not matched")},eo.prototype._createEncoderBuffer=function(X){return new ee(X,this.reporter)},eo.prototype._encode=function(X,J,Z){var Q=this._baseState;if(null===Q.default||Q.default!==X){var ee=this._encodeValue(X,J,Z);if(void 0!==ee&&!this._skipDefault(ee,J,Z))return ee}},eo.prototype._encodeValue=function(X,J,Z){var ee,et=this._baseState;if(null===et.parent)return et.children[0]._encode(X,J||new Q);var ee=null;if(this.reporter=J,et.optional&&void 0===X)if(null===et.default)return;else X=et.default;var er=null,ei=!1;if(et.any)ee=this._createEncoderBuffer(X);else if(et.choice)ee=this._encodeChoice(X,J);else if(et.contains)er=this._getUse(et.contains,Z)._encode(X,J),ei=!0;else if(et.children)er=et.children.map(function(Z){if("null_"===Z._baseState.tag)return Z._encode(null,J,X);if(null===Z._baseState.key)return J.error("Child should have a key");var Q=J.enterKey(Z._baseState.key);if("object"!=typeof X)return J.error("Child expected, but input is not object");var ee=Z._encode(X[Z._baseState.key],J,X);return J.leaveKey(Q),ee},this).filter(function(X){return X}),er=this._createEncoderBuffer(er);else if("seqof"===et.tag||"setof"===et.tag){if(!(et.args&&1===et.args.length))return J.error("Too many args for : "+et.tag);if(!Array.isArray(X))return J.error("seqof/setof, but data is not Array");var en=this.clone();en._baseState.implicit=null,er=this._createEncoderBuffer(X.map(function(Z){var Q=this._baseState;return this._getUse(Q.args[0],X)._encode(Z,J)},en))}else null!==et.use?ee=this._getUse(et.use,Z)._encode(X,J):(er=this._encodePrimitive(et.tag,X),ei=!0);if(!et.any&&null===et.choice){var eo=null!==et.implicit?et.implicit:et.tag,ea=null===et.implicit?"universal":"context";null===eo?null===et.use&&J.error("Tag could be omitted only for .use()"):null===et.use&&(ee=this._encodeComposite(eo,ei,ea,er))}return null!==et.explicit&&(ee=this._encodeComposite(et.explicit,!1,"context",ee)),ee},eo.prototype._encodeChoice=function(X,J){var Z=this._baseState,Q=Z.choice[X.type];return Q||er(!1,X.type+" not found in "+JSON.stringify(Object.keys(Z.choice))),Q._encode(X.value,J)},eo.prototype._encodePrimitive=function(X,J){var Z=this._baseState;if(/str$/.test(X))return this._encodeStr(J,X);if("objid"===X&&Z.args)return this._encodeObjid(J,Z.reverseArgs[0],Z.args[1]);if("objid"===X)return this._encodeObjid(J,null,null);if("gentime"===X||"utctime"===X)return this._encodeTime(J,X);if("null_"===X)return this._encodeNull();else if("int"===X||"enum"===X)return this._encodeInt(J,Z.args&&Z.reverseArgs[0]);else if("bool"===X)return this._encodeBool(J);else if("objDesc"===X)return this._encodeStr(J,X);else throw Error("Unsupported tag: "+X)},eo.prototype._isNumstr=function(X){return/^[0-9 ]*$/.test(X)},eo.prototype._isPrintstr=function(X){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(X)}},9257:function(X,J,Z){var Q=Z(1638);function ee(X){this._reporterState={obj:null,path:[],options:X||{},errors:[]}}function et(X,J){this.path=X,this.rethrow(J)}J.a=ee,ee.prototype.isError=function(X){return X instanceof et},ee.prototype.save=function(){var X=this._reporterState;return{obj:X.obj,pathLen:X.path.length}},ee.prototype.restore=function(X){var J=this._reporterState;J.obj=X.obj,J.path=J.path.slice(0,X.pathLen)},ee.prototype.enterKey=function(X){return this._reporterState.path.push(X)},ee.prototype.exitKey=function(X){var J=this._reporterState;J.path=J.path.slice(0,X-1)},ee.prototype.leaveKey=function(X,J,Z){var Q=this._reporterState;this.exitKey(X),null!==Q.obj&&(Q.obj[J]=Z)},ee.prototype.path=function(){return this._reporterState.path.join("/")},ee.prototype.enterObject=function(){var X=this._reporterState,J=X.obj;return X.obj={},J},ee.prototype.leaveObject=function(X){var J=this._reporterState,Z=J.obj;return J.obj=X,Z},ee.prototype.error=function(X){var J,Z=this._reporterState,Q=X instanceof et;if(J=Q?X:new et(Z.path.map(function(X){return"["+JSON.stringify(X)+"]"}).join(""),X.message||X,X.stack),!Z.options.partial)throw J;return Q||Z.errors.push(J),J},ee.prototype.wrapResult=function(X){var J=this._reporterState;return J.options.partial?{result:this.isError(X)?null:X,errors:J.errors}:X},Q(et,Error),et.prototype.rethrow=function(X){if(this.message=X+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,et),!this.stack)try{throw Error(this.message)}catch(X){this.stack=X.stack}return this}},8060:function(X,J,Z){var Q=Z(8063);J.tagClass={0:"universal",1:"application",2:"context",3:"private"},J.tagClassByName=Q._reverse(J.tagClass),J.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"},J.tagByName=Q._reverse(J.tag)},8063:function(X,J,Z){J._reverse=function(X){var J={};return Object.keys(X).forEach(function(Z){(0|Z)==Z&&(Z|=0),J[X[Z]]=Z}),J},J.der=Z(8060)},8788:function(X,J,Z){var Q=Z(1638),ee=Z(9186),et=ee.base,er=ee.bignum,ei=ee.constants.der;function en(X){this.enc="der",this.name=X.name,this.entity=X,this.tree=new eo,this.tree._init(X.body)}function eo(X){et.Node.call(this,"der",X)}function ea(X,J){var Z=X.readUInt8(J);if(X.isError(Z))return Z;var Q=ei.tagClass[Z>>6],ee=(32&Z)==0;if((31&Z)==31){var et=Z;for(Z=0;(128&et)==128;){if(et=X.readUInt8(J),X.isError(et))return et;Z<<=7,Z|=127&et}}else Z&=31;var er=ei.tag[Z];return{cls:Q,primitive:ee,tag:Z,tagStr:er}}function es(X,J,Z){var Q=X.readUInt8(Z);if(X.isError(Q))return Q;if(!J&&128===Q)return null;if((128&Q)==0)return Q;var ee=127&Q;if(ee>4)return X.error("length octect is too long");Q=0;for(var et=0;et=31?Q.error("Multi-octet tag encoding unsupported"):(J||(ee|=32),ee|=ei.tagClassByName[Z||"universal"]<<6)}(X,J,Z,this.reporter);if(Q.length<128){var er=new ee(2);return er[0]=et,er[1]=Q.length,this._createEncoderBuffer([er,Q])}for(var en=1,eo=Q.length;eo>=256;eo>>=8)en++;var er=new ee(2+en);er[0]=et,er[1]=128|en;for(var eo=1+en,ea=Q.length;ea>0;eo--,ea>>=8)er[eo]=255&ea;return this._createEncoderBuffer([er,Q])},eo.prototype._encodeStr=function(X,J){if("bitstr"===J)return this._createEncoderBuffer([0|X.unused,X.data]);if("bmpstr"===J){for(var Z=new ee(2*X.length),Q=0;Q=40)return this.reporter.error("Second objid identifier OOB");X.splice(0,2,40*X[0]+X[1])}for(var et=0,Q=0;Q=128;er>>=7)et++}for(var ei=new ee(et),en=ei.length-1,Q=X.length-1;Q>=0;Q--){var er=X[Q];for(ei[en--]=127&er;(er>>=7)>0;)ei[en--]=128|127&er}return this._createEncoderBuffer(ei)},eo.prototype._encodeTime=function(X,J){var Z,Q=new Date(X);return"gentime"===J?Z=[ea(Q.getFullYear()),ea(Q.getUTCMonth()+1),ea(Q.getUTCDate()),ea(Q.getUTCHours()),ea(Q.getUTCMinutes()),ea(Q.getUTCSeconds()),"Z"].join(""):"utctime"===J?Z=[ea(Q.getFullYear()%100),ea(Q.getUTCMonth()+1),ea(Q.getUTCDate()),ea(Q.getUTCHours()),ea(Q.getUTCMinutes()),ea(Q.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+J+" time is not supported yet"),this._encodeStr(Z,"octstr")},eo.prototype._encodeNull=function(){return this._createEncoderBuffer("")},eo.prototype._encodeInt=function(X,J){if("string"==typeof X){if(!J)return this.reporter.error("String int or enum given, but no values map");if(!J.hasOwnProperty(X))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(X));X=J[X]}if("number"!=typeof X&&!ee.isBuffer(X)){var Z=X.toArray();!X.sign&&128&Z[0]&&Z.unshift(0),X=new ee(Z)}if(ee.isBuffer(X)){var Q=X.length;0===X.length&&Q++;var et=new ee(Q);return X.copy(et),0===X.length&&(et[0]=0),this._createEncoderBuffer(et)}if(X<128)return this._createEncoderBuffer(X);if(X<256)return this._createEncoderBuffer([0,X]);for(var Q=1,er=X;er>=256;er>>=8)Q++;for(var et=Array(Q),er=et.length-1;er>=0;er--)et[er]=255&X,X>>=8;return 128&et[0]&&et.unshift(0),this._createEncoderBuffer(new ee(et))},eo.prototype._encodeBool=function(X){return this._createEncoderBuffer(255*!!X)},eo.prototype._use=function(X,J){return"function"==typeof X&&(X=X(J)),X._getEncoder("der").tree},eo.prototype._skipDefault=function(X,J,Z){var Q,ee=this._baseState;if(null===ee.default)return!1;var et=X.join();if(void 0===ee.defaultBuffer&&(ee.defaultBuffer=this._encodeValue(ee.default,J,Z).join()),et.length!==ee.defaultBuffer.length)return!1;for(Q=0;Q=49&&er<=54?Q|=er-49+10:er>=17&&er<=22?Q|=er-17+10:Q|=15&er}return Q}function ei(X,J,Z,Q){for(var ee=0,et=Math.min(X.length,Z),er=J;er=49?ee+=ei-49+10:ei>=17?ee+=ei-17+10:ee+=ei}return ee}et.isBN=function(X){return X instanceof et||null!==X&&"object"==typeof X&&X.constructor.wordSize===et.wordSize&&Array.isArray(X.words)},et.max=function(X,J){return X.cmp(J)>0?X:J},et.min=function(X,J){return 0>X.cmp(J)?X:J},et.prototype._init=function(X,J,Z){if("number"==typeof X)return this._initNumber(X,J,Z);if("object"==typeof X)return this._initArray(X,J,Z);"hex"===J&&(J=16),Q(J===(0|J)&&J>=2&&J<=36);var ee=0;"-"===(X=X.toString().replace(/\s+/g,""))[0]&&ee++,16===J?this._parseHex(X,ee):this._parseBase(X,J,ee),"-"===X[0]&&(this.negative=1),this.strip(),"le"===Z&&this._initArray(this.toArray(),J,Z)},et.prototype._initNumber=function(X,J,Z){X<0&&(this.negative=1,X=-X),X<0x4000000?(this.words=[0x3ffffff&X],this.length=1):X<0x10000000000000?(this.words=[0x3ffffff&X,X/0x4000000&0x3ffffff],this.length=2):(Q(X<0x20000000000000),this.words=[0x3ffffff&X,X/0x4000000&0x3ffffff,1],this.length=3),"le"===Z&&this._initArray(this.toArray(),J,Z)},et.prototype._initArray=function(X,J,Z){if(Q("number"==typeof X.length),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=Array(this.length);for(var ee,et,er=0;er=0;er-=3)et=X[er]|X[er-1]<<8|X[er-2]<<16,this.words[ee]|=et<>>26-ei&0x3ffffff,(ei+=24)>=26&&(ei-=26,ee++);else if("le"===Z)for(er=0,ee=0;er>>26-ei&0x3ffffff,(ei+=24)>=26&&(ei-=26,ee++);return this.strip()},et.prototype._parseHex=function(X,J){this.length=Math.ceil((X.length-J)/6),this.words=Array(this.length);for(var Z,Q,ee=0;ee=J;ee-=6)Q=er(X,ee,ee+6),this.words[Z]|=Q<>>26-et&4194303,(et+=24)>=26&&(et-=26,Z++);ee+6!==J&&(Q=er(X,J,ee+6),this.words[Z]|=Q<>>26-et&4194303),this.strip()},et.prototype._parseBase=function(X,J,Z){this.words=[0],this.length=1;for(var Q=0,ee=1;ee<=0x3ffffff;ee*=J)Q++;Q--,ee=ee/J|0;for(var et=X.length-Z,er=et%Q,en=Math.min(et,et-er)+Z,eo=0,ea=Z;ea1&&0===this.words[this.length-1];)this.length--;return this._normSign()},et.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},et.prototype.inspect=function(){return(this.red?""};var en,eo=["","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"],ea=[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],es=[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 ef(X,J,Z){Z.negative=J.negative^X.negative;var Q=X.length+J.length|0;Z.length=Q,Q=Q-1|0;var ee=0|X.words[0],et=0|J.words[0],er=ee*et,ei=0x3ffffff&er,en=er/0x4000000|0;Z.words[0]=ei;for(var eo=1;eo>>26,es=0x3ffffff&en,ef=Math.min(eo,J.length-1),eu=Math.max(0,eo-X.length+1);eu<=ef;eu++){var ec=eo-eu|0;ea+=(er=(ee=0|X.words[ec])*(et=0|J.words[eu])+es)/0x4000000|0,es=0x3ffffff&er}Z.words[eo]=0|es,en=0|ea}return 0!==en?Z.words[eo]=0|en:Z.length--,Z.strip()}et.prototype.toString=function(X,J){if(J=0|J||1,16===(X=X||10)||"hex"===X){for(var Z="",ee=0,et=0,er=0;er>>24-ee&0xffffff)||er!==this.length-1?eo[6-en.length]+en+Z:en+Z,(ee+=2)>=26&&(ee-=26,er--)}for(0!==et&&(Z=et.toString(16)+Z);Z.length%J!=0;)Z="0"+Z;return 0!==this.negative&&(Z="-"+Z),Z}if(X===(0|X)&&X>=2&&X<=36){var ef=ea[X],eu=es[X];Z="";var ec=this.clone();for(ec.negative=0;!ec.isZero();){var el=ec.modn(eu).toString(X);Z=(ec=ec.idivn(eu)).isZero()?el+Z:eo[ef-el.length]+el+Z}for(this.isZero()&&(Z="0"+Z);Z.length%J!=0;)Z="0"+Z;return 0!==this.negative&&(Z="-"+Z),Z}Q(!1,"Base should be between 2 and 36")},et.prototype.toNumber=function(){var X=this.words[0];return 2===this.length?X+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?X+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&Q(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-X:X},et.prototype.toJSON=function(){return this.toString(16)},et.prototype.toBuffer=function(X,J){return Q(void 0!==en),this.toArrayLike(en,X,J)},et.prototype.toArray=function(X,J){return this.toArrayLike(Array,X,J)},et.prototype.toArrayLike=function(X,J,Z){var ee,et,er=this.byteLength(),ei=Z||Math.max(1,er);Q(er<=ei,"byte array longer than desired length"),Q(ei>0,"Requested array length <= 0"),this.strip();var en=new X(ei),eo=this.clone();if("le"===J){for(et=0;!eo.isZero();et++)ee=eo.andln(255),eo.iushrn(8),en[et]=ee;for(;et=4096&&(Z+=13,J>>>=13),J>=64&&(Z+=7,J>>>=7),J>=8&&(Z+=4,J>>>=4),J>=2&&(Z+=2,J>>>=2),Z+J},et.prototype._zeroBits=function(X){if(0===X)return 26;var J=X,Z=0;return(8191&J)==0&&(Z+=13,J>>>=13),(127&J)==0&&(Z+=7,J>>>=7),(15&J)==0&&(Z+=4,J>>>=4),(3&J)==0&&(Z+=2,J>>>=2),(1&J)==0&&Z++,Z},et.prototype.bitLength=function(){var X=this.words[this.length-1],J=this._countBits(X);return(this.length-1)*26+J},et.prototype.zeroBits=function(){if(this.isZero())return 0;for(var X=0,J=0;JX.length?this.clone().ior(X):X.clone().ior(this)},et.prototype.uor=function(X){return this.length>X.length?this.clone().iuor(X):X.clone().iuor(this)},et.prototype.iuand=function(X){var J;J=this.length>X.length?X:this;for(var Z=0;ZX.length?this.clone().iand(X):X.clone().iand(this)},et.prototype.uand=function(X){return this.length>X.length?this.clone().iuand(X):X.clone().iuand(this)},et.prototype.iuxor=function(X){this.length>X.length?(J=this,Z=X):(J=X,Z=this);for(var J,Z,Q=0;QX.length?this.clone().ixor(X):X.clone().ixor(this)},et.prototype.uxor=function(X){return this.length>X.length?this.clone().iuxor(X):X.clone().iuxor(this)},et.prototype.inotn=function(X){Q("number"==typeof X&&X>=0);var J=0|Math.ceil(X/26),Z=X%26;this._expand(J),Z>0&&J--;for(var ee=0;ee0&&(this.words[ee]=~this.words[ee]&0x3ffffff>>26-Z),this.strip()},et.prototype.notn=function(X){return this.clone().inotn(X)},et.prototype.setn=function(X,J){Q("number"==typeof X&&X>=0);var Z=X/26|0,ee=X%26;return this._expand(Z+1),J?this.words[Z]=this.words[Z]|1<X.length?(Z=this,Q=X):(Z=X,Q=this);for(var J,Z,Q,ee=0,et=0;et>>26;for(;0!==ee&&et>>26;if(this.length=Z.length,0!==ee)this.words[this.length]=ee,this.length++;else if(Z!==this)for(;etX.length?this.clone().iadd(X):X.clone().iadd(this)},et.prototype.isub=function(X){if(0!==X.negative){X.negative=0;var J,Z,Q=this.iadd(X);return X.negative=1,Q._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var ee=this.cmp(X);if(0===ee)return this.negative=0,this.length=1,this.words[0]=0,this;ee>0?(J=this,Z=X):(J=X,Z=this);for(var et=0,er=0;er>26,this.words[er]=0x3ffffff&Q;for(;0!==et&&er>26,this.words[er]=0x3ffffff&Q;if(0===et&&er>>13,eu=0|er[1],ec=8191&eu,el=eu>>>13,eh=0|er[2],ed=8191&eh,ep=eh>>>13,eb=0|er[3],ey=8191&eb,em=eb>>>13,eg=0|er[4],ev=8191&eg,ew=eg>>>13,ex=0|er[5],e_=8191&ex,eE=ex>>>13,eS=0|er[6],eM=8191&eS,eA=eS>>>13,eR=0|er[7],eI=8191&eR,ek=eR>>>13,ej=0|er[8],eT=8191&ej,eO=ej>>>13,eN=0|er[9],eP=8191&eN,eL=eN>>>13,eB=0|ei[0],eC=8191&eB,eD=eB>>>13,eU=0|ei[1],e$=8191&eU,eq=eU>>>13,ez=0|ei[2],eF=8191&ez,eH=ez>>>13,eG=0|ei[3],eK=8191&eG,eW=eG>>>13,eV=0|ei[4],eY=8191&eV,eX=eV>>>13,eJ=0|ei[5],eZ=8191&eJ,eQ=eJ>>>13,e0=0|ei[6],e1=8191&e0,e2=e0>>>13,e6=0|ei[7],e3=8191&e6,e4=e6>>>13,e5=0|ei[8],e8=8191&e5,e9=e5>>>13,e7=0|ei[9],te=8191&e7,tt=e7>>>13;Z.negative=X.negative^J.negative,Z.length=19,Q=Math.imul(es,eC);var tr=(eo+Q|0)+((8191&(ee=(ee=Math.imul(es,eD))+Math.imul(ef,eC)|0))<<13)|0;eo=((et=Math.imul(ef,eD))+(ee>>>13)|0)+(tr>>>26)|0,tr&=0x3ffffff,Q=Math.imul(ec,eC),ee=(ee=Math.imul(ec,eD))+Math.imul(el,eC)|0,et=Math.imul(el,eD),Q=Q+Math.imul(es,e$)|0;var ti=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eq)|0)+Math.imul(ef,e$)|0))<<13)|0;eo=((et=et+Math.imul(ef,eq)|0)+(ee>>>13)|0)+(ti>>>26)|0,ti&=0x3ffffff,Q=Math.imul(ed,eC),ee=(ee=Math.imul(ed,eD))+Math.imul(ep,eC)|0,et=Math.imul(ep,eD),Q=Q+Math.imul(ec,e$)|0,ee=(ee=ee+Math.imul(ec,eq)|0)+Math.imul(el,e$)|0,et=et+Math.imul(el,eq)|0,Q=Q+Math.imul(es,eF)|0;var tn=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eH)|0)+Math.imul(ef,eF)|0))<<13)|0;eo=((et=et+Math.imul(ef,eH)|0)+(ee>>>13)|0)+(tn>>>26)|0,tn&=0x3ffffff,Q=Math.imul(ey,eC),ee=(ee=Math.imul(ey,eD))+Math.imul(em,eC)|0,et=Math.imul(em,eD),Q=Q+Math.imul(ed,e$)|0,ee=(ee=ee+Math.imul(ed,eq)|0)+Math.imul(ep,e$)|0,et=et+Math.imul(ep,eq)|0,Q=Q+Math.imul(ec,eF)|0,ee=(ee=ee+Math.imul(ec,eH)|0)+Math.imul(el,eF)|0,et=et+Math.imul(el,eH)|0,Q=Q+Math.imul(es,eK)|0;var to=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eW)|0)+Math.imul(ef,eK)|0))<<13)|0;eo=((et=et+Math.imul(ef,eW)|0)+(ee>>>13)|0)+(to>>>26)|0,to&=0x3ffffff,Q=Math.imul(ev,eC),ee=(ee=Math.imul(ev,eD))+Math.imul(ew,eC)|0,et=Math.imul(ew,eD),Q=Q+Math.imul(ey,e$)|0,ee=(ee=ee+Math.imul(ey,eq)|0)+Math.imul(em,e$)|0,et=et+Math.imul(em,eq)|0,Q=Q+Math.imul(ed,eF)|0,ee=(ee=ee+Math.imul(ed,eH)|0)+Math.imul(ep,eF)|0,et=et+Math.imul(ep,eH)|0,Q=Q+Math.imul(ec,eK)|0,ee=(ee=ee+Math.imul(ec,eW)|0)+Math.imul(el,eK)|0,et=et+Math.imul(el,eW)|0,Q=Q+Math.imul(es,eY)|0;var ta=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eX)|0)+Math.imul(ef,eY)|0))<<13)|0;eo=((et=et+Math.imul(ef,eX)|0)+(ee>>>13)|0)+(ta>>>26)|0,ta&=0x3ffffff,Q=Math.imul(e_,eC),ee=(ee=Math.imul(e_,eD))+Math.imul(eE,eC)|0,et=Math.imul(eE,eD),Q=Q+Math.imul(ev,e$)|0,ee=(ee=ee+Math.imul(ev,eq)|0)+Math.imul(ew,e$)|0,et=et+Math.imul(ew,eq)|0,Q=Q+Math.imul(ey,eF)|0,ee=(ee=ee+Math.imul(ey,eH)|0)+Math.imul(em,eF)|0,et=et+Math.imul(em,eH)|0,Q=Q+Math.imul(ed,eK)|0,ee=(ee=ee+Math.imul(ed,eW)|0)+Math.imul(ep,eK)|0,et=et+Math.imul(ep,eW)|0,Q=Q+Math.imul(ec,eY)|0,ee=(ee=ee+Math.imul(ec,eX)|0)+Math.imul(el,eY)|0,et=et+Math.imul(el,eX)|0,Q=Q+Math.imul(es,eZ)|0;var ts=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eQ)|0)+Math.imul(ef,eZ)|0))<<13)|0;eo=((et=et+Math.imul(ef,eQ)|0)+(ee>>>13)|0)+(ts>>>26)|0,ts&=0x3ffffff,Q=Math.imul(eM,eC),ee=(ee=Math.imul(eM,eD))+Math.imul(eA,eC)|0,et=Math.imul(eA,eD),Q=Q+Math.imul(e_,e$)|0,ee=(ee=ee+Math.imul(e_,eq)|0)+Math.imul(eE,e$)|0,et=et+Math.imul(eE,eq)|0,Q=Q+Math.imul(ev,eF)|0,ee=(ee=ee+Math.imul(ev,eH)|0)+Math.imul(ew,eF)|0,et=et+Math.imul(ew,eH)|0,Q=Q+Math.imul(ey,eK)|0,ee=(ee=ee+Math.imul(ey,eW)|0)+Math.imul(em,eK)|0,et=et+Math.imul(em,eW)|0,Q=Q+Math.imul(ed,eY)|0,ee=(ee=ee+Math.imul(ed,eX)|0)+Math.imul(ep,eY)|0,et=et+Math.imul(ep,eX)|0,Q=Q+Math.imul(ec,eZ)|0,ee=(ee=ee+Math.imul(ec,eQ)|0)+Math.imul(el,eZ)|0,et=et+Math.imul(el,eQ)|0,Q=Q+Math.imul(es,e1)|0;var tf=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,e2)|0)+Math.imul(ef,e1)|0))<<13)|0;eo=((et=et+Math.imul(ef,e2)|0)+(ee>>>13)|0)+(tf>>>26)|0,tf&=0x3ffffff,Q=Math.imul(eI,eC),ee=(ee=Math.imul(eI,eD))+Math.imul(ek,eC)|0,et=Math.imul(ek,eD),Q=Q+Math.imul(eM,e$)|0,ee=(ee=ee+Math.imul(eM,eq)|0)+Math.imul(eA,e$)|0,et=et+Math.imul(eA,eq)|0,Q=Q+Math.imul(e_,eF)|0,ee=(ee=ee+Math.imul(e_,eH)|0)+Math.imul(eE,eF)|0,et=et+Math.imul(eE,eH)|0,Q=Q+Math.imul(ev,eK)|0,ee=(ee=ee+Math.imul(ev,eW)|0)+Math.imul(ew,eK)|0,et=et+Math.imul(ew,eW)|0,Q=Q+Math.imul(ey,eY)|0,ee=(ee=ee+Math.imul(ey,eX)|0)+Math.imul(em,eY)|0,et=et+Math.imul(em,eX)|0,Q=Q+Math.imul(ed,eZ)|0,ee=(ee=ee+Math.imul(ed,eQ)|0)+Math.imul(ep,eZ)|0,et=et+Math.imul(ep,eQ)|0,Q=Q+Math.imul(ec,e1)|0,ee=(ee=ee+Math.imul(ec,e2)|0)+Math.imul(el,e1)|0,et=et+Math.imul(el,e2)|0,Q=Q+Math.imul(es,e3)|0;var tu=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,e4)|0)+Math.imul(ef,e3)|0))<<13)|0;eo=((et=et+Math.imul(ef,e4)|0)+(ee>>>13)|0)+(tu>>>26)|0,tu&=0x3ffffff,Q=Math.imul(eT,eC),ee=(ee=Math.imul(eT,eD))+Math.imul(eO,eC)|0,et=Math.imul(eO,eD),Q=Q+Math.imul(eI,e$)|0,ee=(ee=ee+Math.imul(eI,eq)|0)+Math.imul(ek,e$)|0,et=et+Math.imul(ek,eq)|0,Q=Q+Math.imul(eM,eF)|0,ee=(ee=ee+Math.imul(eM,eH)|0)+Math.imul(eA,eF)|0,et=et+Math.imul(eA,eH)|0,Q=Q+Math.imul(e_,eK)|0,ee=(ee=ee+Math.imul(e_,eW)|0)+Math.imul(eE,eK)|0,et=et+Math.imul(eE,eW)|0,Q=Q+Math.imul(ev,eY)|0,ee=(ee=ee+Math.imul(ev,eX)|0)+Math.imul(ew,eY)|0,et=et+Math.imul(ew,eX)|0,Q=Q+Math.imul(ey,eZ)|0,ee=(ee=ee+Math.imul(ey,eQ)|0)+Math.imul(em,eZ)|0,et=et+Math.imul(em,eQ)|0,Q=Q+Math.imul(ed,e1)|0,ee=(ee=ee+Math.imul(ed,e2)|0)+Math.imul(ep,e1)|0,et=et+Math.imul(ep,e2)|0,Q=Q+Math.imul(ec,e3)|0,ee=(ee=ee+Math.imul(ec,e4)|0)+Math.imul(el,e3)|0,et=et+Math.imul(el,e4)|0,Q=Q+Math.imul(es,e8)|0;var tc=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,e9)|0)+Math.imul(ef,e8)|0))<<13)|0;eo=((et=et+Math.imul(ef,e9)|0)+(ee>>>13)|0)+(tc>>>26)|0,tc&=0x3ffffff,Q=Math.imul(eP,eC),ee=(ee=Math.imul(eP,eD))+Math.imul(eL,eC)|0,et=Math.imul(eL,eD),Q=Q+Math.imul(eT,e$)|0,ee=(ee=ee+Math.imul(eT,eq)|0)+Math.imul(eO,e$)|0,et=et+Math.imul(eO,eq)|0,Q=Q+Math.imul(eI,eF)|0,ee=(ee=ee+Math.imul(eI,eH)|0)+Math.imul(ek,eF)|0,et=et+Math.imul(ek,eH)|0,Q=Q+Math.imul(eM,eK)|0,ee=(ee=ee+Math.imul(eM,eW)|0)+Math.imul(eA,eK)|0,et=et+Math.imul(eA,eW)|0,Q=Q+Math.imul(e_,eY)|0,ee=(ee=ee+Math.imul(e_,eX)|0)+Math.imul(eE,eY)|0,et=et+Math.imul(eE,eX)|0,Q=Q+Math.imul(ev,eZ)|0,ee=(ee=ee+Math.imul(ev,eQ)|0)+Math.imul(ew,eZ)|0,et=et+Math.imul(ew,eQ)|0,Q=Q+Math.imul(ey,e1)|0,ee=(ee=ee+Math.imul(ey,e2)|0)+Math.imul(em,e1)|0,et=et+Math.imul(em,e2)|0,Q=Q+Math.imul(ed,e3)|0,ee=(ee=ee+Math.imul(ed,e4)|0)+Math.imul(ep,e3)|0,et=et+Math.imul(ep,e4)|0,Q=Q+Math.imul(ec,e8)|0,ee=(ee=ee+Math.imul(ec,e9)|0)+Math.imul(el,e8)|0,et=et+Math.imul(el,e9)|0,Q=Q+Math.imul(es,te)|0;var tl=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,tt)|0)+Math.imul(ef,te)|0))<<13)|0;eo=((et=et+Math.imul(ef,tt)|0)+(ee>>>13)|0)+(tl>>>26)|0,tl&=0x3ffffff,Q=Math.imul(eP,e$),ee=(ee=Math.imul(eP,eq))+Math.imul(eL,e$)|0,et=Math.imul(eL,eq),Q=Q+Math.imul(eT,eF)|0,ee=(ee=ee+Math.imul(eT,eH)|0)+Math.imul(eO,eF)|0,et=et+Math.imul(eO,eH)|0,Q=Q+Math.imul(eI,eK)|0,ee=(ee=ee+Math.imul(eI,eW)|0)+Math.imul(ek,eK)|0,et=et+Math.imul(ek,eW)|0,Q=Q+Math.imul(eM,eY)|0,ee=(ee=ee+Math.imul(eM,eX)|0)+Math.imul(eA,eY)|0,et=et+Math.imul(eA,eX)|0,Q=Q+Math.imul(e_,eZ)|0,ee=(ee=ee+Math.imul(e_,eQ)|0)+Math.imul(eE,eZ)|0,et=et+Math.imul(eE,eQ)|0,Q=Q+Math.imul(ev,e1)|0,ee=(ee=ee+Math.imul(ev,e2)|0)+Math.imul(ew,e1)|0,et=et+Math.imul(ew,e2)|0,Q=Q+Math.imul(ey,e3)|0,ee=(ee=ee+Math.imul(ey,e4)|0)+Math.imul(em,e3)|0,et=et+Math.imul(em,e4)|0,Q=Q+Math.imul(ed,e8)|0,ee=(ee=ee+Math.imul(ed,e9)|0)+Math.imul(ep,e8)|0,et=et+Math.imul(ep,e9)|0,Q=Q+Math.imul(ec,te)|0;var th=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(ec,tt)|0)+Math.imul(el,te)|0))<<13)|0;eo=((et=et+Math.imul(el,tt)|0)+(ee>>>13)|0)+(th>>>26)|0,th&=0x3ffffff,Q=Math.imul(eP,eF),ee=(ee=Math.imul(eP,eH))+Math.imul(eL,eF)|0,et=Math.imul(eL,eH),Q=Q+Math.imul(eT,eK)|0,ee=(ee=ee+Math.imul(eT,eW)|0)+Math.imul(eO,eK)|0,et=et+Math.imul(eO,eW)|0,Q=Q+Math.imul(eI,eY)|0,ee=(ee=ee+Math.imul(eI,eX)|0)+Math.imul(ek,eY)|0,et=et+Math.imul(ek,eX)|0,Q=Q+Math.imul(eM,eZ)|0,ee=(ee=ee+Math.imul(eM,eQ)|0)+Math.imul(eA,eZ)|0,et=et+Math.imul(eA,eQ)|0,Q=Q+Math.imul(e_,e1)|0,ee=(ee=ee+Math.imul(e_,e2)|0)+Math.imul(eE,e1)|0,et=et+Math.imul(eE,e2)|0,Q=Q+Math.imul(ev,e3)|0,ee=(ee=ee+Math.imul(ev,e4)|0)+Math.imul(ew,e3)|0,et=et+Math.imul(ew,e4)|0,Q=Q+Math.imul(ey,e8)|0,ee=(ee=ee+Math.imul(ey,e9)|0)+Math.imul(em,e8)|0,et=et+Math.imul(em,e9)|0,Q=Q+Math.imul(ed,te)|0;var td=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(ed,tt)|0)+Math.imul(ep,te)|0))<<13)|0;eo=((et=et+Math.imul(ep,tt)|0)+(ee>>>13)|0)+(td>>>26)|0,td&=0x3ffffff,Q=Math.imul(eP,eK),ee=(ee=Math.imul(eP,eW))+Math.imul(eL,eK)|0,et=Math.imul(eL,eW),Q=Q+Math.imul(eT,eY)|0,ee=(ee=ee+Math.imul(eT,eX)|0)+Math.imul(eO,eY)|0,et=et+Math.imul(eO,eX)|0,Q=Q+Math.imul(eI,eZ)|0,ee=(ee=ee+Math.imul(eI,eQ)|0)+Math.imul(ek,eZ)|0,et=et+Math.imul(ek,eQ)|0,Q=Q+Math.imul(eM,e1)|0,ee=(ee=ee+Math.imul(eM,e2)|0)+Math.imul(eA,e1)|0,et=et+Math.imul(eA,e2)|0,Q=Q+Math.imul(e_,e3)|0,ee=(ee=ee+Math.imul(e_,e4)|0)+Math.imul(eE,e3)|0,et=et+Math.imul(eE,e4)|0,Q=Q+Math.imul(ev,e8)|0,ee=(ee=ee+Math.imul(ev,e9)|0)+Math.imul(ew,e8)|0,et=et+Math.imul(ew,e9)|0,Q=Q+Math.imul(ey,te)|0;var tp=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(ey,tt)|0)+Math.imul(em,te)|0))<<13)|0;eo=((et=et+Math.imul(em,tt)|0)+(ee>>>13)|0)+(tp>>>26)|0,tp&=0x3ffffff,Q=Math.imul(eP,eY),ee=(ee=Math.imul(eP,eX))+Math.imul(eL,eY)|0,et=Math.imul(eL,eX),Q=Q+Math.imul(eT,eZ)|0,ee=(ee=ee+Math.imul(eT,eQ)|0)+Math.imul(eO,eZ)|0,et=et+Math.imul(eO,eQ)|0,Q=Q+Math.imul(eI,e1)|0,ee=(ee=ee+Math.imul(eI,e2)|0)+Math.imul(ek,e1)|0,et=et+Math.imul(ek,e2)|0,Q=Q+Math.imul(eM,e3)|0,ee=(ee=ee+Math.imul(eM,e4)|0)+Math.imul(eA,e3)|0,et=et+Math.imul(eA,e4)|0,Q=Q+Math.imul(e_,e8)|0,ee=(ee=ee+Math.imul(e_,e9)|0)+Math.imul(eE,e8)|0,et=et+Math.imul(eE,e9)|0,Q=Q+Math.imul(ev,te)|0;var tb=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(ev,tt)|0)+Math.imul(ew,te)|0))<<13)|0;eo=((et=et+Math.imul(ew,tt)|0)+(ee>>>13)|0)+(tb>>>26)|0,tb&=0x3ffffff,Q=Math.imul(eP,eZ),ee=(ee=Math.imul(eP,eQ))+Math.imul(eL,eZ)|0,et=Math.imul(eL,eQ),Q=Q+Math.imul(eT,e1)|0,ee=(ee=ee+Math.imul(eT,e2)|0)+Math.imul(eO,e1)|0,et=et+Math.imul(eO,e2)|0,Q=Q+Math.imul(eI,e3)|0,ee=(ee=ee+Math.imul(eI,e4)|0)+Math.imul(ek,e3)|0,et=et+Math.imul(ek,e4)|0,Q=Q+Math.imul(eM,e8)|0,ee=(ee=ee+Math.imul(eM,e9)|0)+Math.imul(eA,e8)|0,et=et+Math.imul(eA,e9)|0,Q=Q+Math.imul(e_,te)|0;var ty=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(e_,tt)|0)+Math.imul(eE,te)|0))<<13)|0;eo=((et=et+Math.imul(eE,tt)|0)+(ee>>>13)|0)+(ty>>>26)|0,ty&=0x3ffffff,Q=Math.imul(eP,e1),ee=(ee=Math.imul(eP,e2))+Math.imul(eL,e1)|0,et=Math.imul(eL,e2),Q=Q+Math.imul(eT,e3)|0,ee=(ee=ee+Math.imul(eT,e4)|0)+Math.imul(eO,e3)|0,et=et+Math.imul(eO,e4)|0,Q=Q+Math.imul(eI,e8)|0,ee=(ee=ee+Math.imul(eI,e9)|0)+Math.imul(ek,e8)|0,et=et+Math.imul(ek,e9)|0,Q=Q+Math.imul(eM,te)|0;var tm=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(eM,tt)|0)+Math.imul(eA,te)|0))<<13)|0;eo=((et=et+Math.imul(eA,tt)|0)+(ee>>>13)|0)+(tm>>>26)|0,tm&=0x3ffffff,Q=Math.imul(eP,e3),ee=(ee=Math.imul(eP,e4))+Math.imul(eL,e3)|0,et=Math.imul(eL,e4),Q=Q+Math.imul(eT,e8)|0,ee=(ee=ee+Math.imul(eT,e9)|0)+Math.imul(eO,e8)|0,et=et+Math.imul(eO,e9)|0,Q=Q+Math.imul(eI,te)|0;var tg=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(eI,tt)|0)+Math.imul(ek,te)|0))<<13)|0;eo=((et=et+Math.imul(ek,tt)|0)+(ee>>>13)|0)+(tg>>>26)|0,tg&=0x3ffffff,Q=Math.imul(eP,e8),ee=(ee=Math.imul(eP,e9))+Math.imul(eL,e8)|0,et=Math.imul(eL,e9),Q=Q+Math.imul(eT,te)|0;var tv=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(eT,tt)|0)+Math.imul(eO,te)|0))<<13)|0;eo=((et=et+Math.imul(eO,tt)|0)+(ee>>>13)|0)+(tv>>>26)|0,tv&=0x3ffffff,Q=Math.imul(eP,te);var tw=(eo+Q|0)+((8191&(ee=(ee=Math.imul(eP,tt))+Math.imul(eL,te)|0))<<13)|0;return eo=((et=Math.imul(eL,tt))+(ee>>>13)|0)+(tw>>>26)|0,tw&=0x3ffffff,en[0]=tr,en[1]=ti,en[2]=tn,en[3]=to,en[4]=ta,en[5]=ts,en[6]=tf,en[7]=tu,en[8]=tc,en[9]=tl,en[10]=th,en[11]=td,en[12]=tp,en[13]=tb,en[14]=ty,en[15]=tm,en[16]=tg,en[17]=tv,en[18]=tw,0!==eo&&(en[19]=eo,Z.length++),Z};function ec(X,J,Z){return(new el).mulp(X,J,Z)}function el(X,J){this.x=X,this.y=J}Math.imul||(eu=ef),et.prototype.mulTo=function(X,J){var Z=this.length+X.length;return 10===this.length&&10===X.length?eu(this,X,J):Z<63?ef(this,X,J):Z<1024?function(X,J,Z){Z.negative=J.negative^X.negative,Z.length=X.length+J.length;for(var Q=0,ee=0,et=0;et>>26)|0)>>>26,er&=0x3ffffff}Z.words[et]=ei,Q=er,er=ee}return 0!==Q?Z.words[et]=Q:Z.length--,Z.strip()}(this,X,J):ec(this,X,J)},el.prototype.makeRBT=function(X){for(var J=Array(X),Z=et.prototype._countBits(X)-1,Q=0;Q>=1;return Q},el.prototype.permute=function(X,J,Z,Q,ee,et){for(var er=0;er>>=1)ee++;return 1<>>=13,Z[2*er+1]=8191&et,et>>>=13;for(er=2*J;er>=26,J+=(ee/0x4000000|0)+(et>>>26),this.words[Z]=0x3ffffff&et}return 0!==J&&(this.words[Z]=J,this.length++),this},et.prototype.muln=function(X){return this.clone().imuln(X)},et.prototype.sqr=function(){return this.mul(this)},et.prototype.isqr=function(){return this.imul(this.clone())},et.prototype.pow=function(X){var J=function(X){for(var J=Array(X.bitLength()),Z=0;Z>>ee}return J}(X);if(0===J.length)return new et(1);for(var Z=this,Q=0;Q=0);var J,Z=X%26,ee=(X-Z)/26,et=0x3ffffff>>>26-Z<<26-Z;if(0!==Z){var er=0;for(J=0;J>>26-Z}er&&(this.words[J]=er,this.length++)}if(0!==ee){for(J=this.length-1;J>=0;J--)this.words[J+ee]=this.words[J];for(J=0;J=0);var ee=J?(J-J%26)/26:0,et=X%26,er=Math.min((X-et)/26,this.length),ei=0x3ffffff^0x3ffffff>>>et<er)for(this.length-=er,en=0;en=0&&(0!==eo||en>=ee);en--){var ea=0|this.words[en];this.words[en]=eo<<26-et|ea>>>et,eo=ea&ei}return Z&&0!==eo&&(Z.words[Z.length++]=eo),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},et.prototype.ishrn=function(X,J,Z){return Q(0===this.negative),this.iushrn(X,J,Z)},et.prototype.shln=function(X){return this.clone().ishln(X)},et.prototype.ushln=function(X){return this.clone().iushln(X)},et.prototype.shrn=function(X){return this.clone().ishrn(X)},et.prototype.ushrn=function(X){return this.clone().iushrn(X)},et.prototype.testn=function(X){Q("number"==typeof X&&X>=0);var J=X%26,Z=(X-J)/26;return!(this.length<=Z)&&!!(this.words[Z]&1<=0);var J=X%26,Z=(X-J)/26;return(Q(0===this.negative,"imaskn works only with positive numbers"),this.length<=Z)?this:(0!==J&&Z++,this.length=Math.min(Z,this.length),0!==J&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>J<=0x4000000;J++)this.words[J]-=0x4000000,J===this.length-1?this.words[J+1]=1:this.words[J+1]++;return this.length=Math.max(this.length,J+1),this},et.prototype.isubn=function(X){if(Q("number"==typeof X),Q(X<0x4000000),X<0)return this.iaddn(-X);if(0!==this.negative)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var J=0;J>26)-(en/0x4000000|0),this.words[ee+Z]=0x3ffffff&et}for(;ee>26,this.words[ee+Z]=0x3ffffff&et;if(0===ei)return this.strip();for(Q(-1===ei),ei=0,ee=0;ee>26,this.words[ee]=0x3ffffff&et;return this.negative=1,this.strip()},et.prototype._wordDiv=function(X,J){var Z,Q=this.length-X.length,ee=this.clone(),er=X,ei=0|er.words[er.length-1];0!=(Q=26-this._countBits(ei))&&(er=er.ushln(Q),ee.iushln(Q),ei=0|er.words[er.length-1]);var en=ee.length-er.length;if("mod"!==J){(Z=new et(null)).length=en+1,Z.words=Array(Z.length);for(var eo=0;eo=0;es--){var ef=(0|ee.words[er.length+es])*0x4000000+(0|ee.words[er.length+es-1]);for(ef=Math.min(ef/ei|0,0x3ffffff),ee._ishlnsubmul(er,ef,es);0!==ee.negative;)ef--,ee.negative=0,ee._ishlnsubmul(er,1,es),ee.isZero()||(ee.negative^=1);Z&&(Z.words[es]=ef)}return Z&&Z.strip(),ee.strip(),"div"!==J&&0!==Q&&ee.iushrn(Q),{div:Z||null,mod:ee}},et.prototype.divmod=function(X,J,Z){var ee,er,ei;return(Q(!X.isZero()),this.isZero())?{div:new et(0),mod:new et(0)}:0!==this.negative&&0===X.negative?(ei=this.neg().divmod(X,J),"mod"!==J&&(ee=ei.div.neg()),"div"!==J&&(er=ei.mod.neg(),Z&&0!==er.negative&&er.iadd(X)),{div:ee,mod:er}):0===this.negative&&0!==X.negative?(ei=this.divmod(X.neg(),J),"mod"!==J&&(ee=ei.div.neg()),{div:ee,mod:ei.mod}):(this.negative&X.negative)!=0?(ei=this.neg().divmod(X.neg(),J),"div"!==J&&(er=ei.mod.neg(),Z&&0!==er.negative&&er.isub(X)),{div:ei.div,mod:er}):X.length>this.length||0>this.cmp(X)?{div:new et(0),mod:this}:1===X.length?"div"===J?{div:this.divn(X.words[0]),mod:null}:"mod"===J?{div:null,mod:new et(this.modn(X.words[0]))}:{div:this.divn(X.words[0]),mod:new et(this.modn(X.words[0]))}:this._wordDiv(X,J)},et.prototype.div=function(X){return this.divmod(X,"div",!1).div},et.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},et.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},et.prototype.divRound=function(X){var J=this.divmod(X);if(J.mod.isZero())return J.div;var Z=0!==J.div.negative?J.mod.isub(X):J.mod,Q=X.ushrn(1),ee=X.andln(1),et=Z.cmp(Q);return et<0||1===ee&&0===et?J.div:0!==J.div.negative?J.div.isubn(1):J.div.iaddn(1)},et.prototype.modn=function(X){Q(X<=0x3ffffff);for(var J=0x4000000%X,Z=0,ee=this.length-1;ee>=0;ee--)Z=(J*Z+(0|this.words[ee]))%X;return Z},et.prototype.idivn=function(X){Q(X<=0x3ffffff);for(var J=0,Z=this.length-1;Z>=0;Z--){var ee=(0|this.words[Z])+0x4000000*J;this.words[Z]=ee/X|0,J=ee%X}return this.strip()},et.prototype.divn=function(X){return this.clone().idivn(X)},et.prototype.egcd=function(X){Q(0===X.negative),Q(!X.isZero());var J=this,Z=X.clone();J=0!==J.negative?J.umod(X):J.clone();for(var ee=new et(1),er=new et(0),ei=new et(0),en=new et(1),eo=0;J.isEven()&&Z.isEven();)J.iushrn(1),Z.iushrn(1),++eo;for(var ea=Z.clone(),es=J.clone();!J.isZero();){for(var ef=0,eu=1;(J.words[0]&eu)==0&&ef<26;++ef,eu<<=1);if(ef>0)for(J.iushrn(ef);ef-- >0;)(ee.isOdd()||er.isOdd())&&(ee.iadd(ea),er.isub(es)),ee.iushrn(1),er.iushrn(1);for(var ec=0,el=1;(Z.words[0]&el)==0&&ec<26;++ec,el<<=1);if(ec>0)for(Z.iushrn(ec);ec-- >0;)(ei.isOdd()||en.isOdd())&&(ei.iadd(ea),en.isub(es)),ei.iushrn(1),en.iushrn(1);J.cmp(Z)>=0?(J.isub(Z),ee.isub(ei),er.isub(en)):(Z.isub(J),ei.isub(ee),en.isub(er))}return{a:ei,b:en,gcd:Z.iushln(eo)}},et.prototype._invmp=function(X){Q(0===X.negative),Q(!X.isZero());var J,Z=this,ee=X.clone();Z=0!==Z.negative?Z.umod(X):Z.clone();for(var er=new et(1),ei=new et(0),en=ee.clone();Z.cmpn(1)>0&&ee.cmpn(1)>0;){for(var eo=0,ea=1;(Z.words[0]&ea)==0&&eo<26;++eo,ea<<=1);if(eo>0)for(Z.iushrn(eo);eo-- >0;)er.isOdd()&&er.iadd(en),er.iushrn(1);for(var es=0,ef=1;(ee.words[0]&ef)==0&&es<26;++es,ef<<=1);if(es>0)for(ee.iushrn(es);es-- >0;)ei.isOdd()&&ei.iadd(en),ei.iushrn(1);Z.cmp(ee)>=0?(Z.isub(ee),er.isub(ei)):(ee.isub(Z),ei.isub(er))}return 0>(J=0===Z.cmpn(1)?er:ei).cmpn(0)&&J.iadd(X),J},et.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var J=this.clone(),Z=X.clone();J.negative=0,Z.negative=0;for(var Q=0;J.isEven()&&Z.isEven();Q++)J.iushrn(1),Z.iushrn(1);for(;;){for(;J.isEven();)J.iushrn(1);for(;Z.isEven();)Z.iushrn(1);var ee=J.cmp(Z);if(ee<0){var et=J;J=Z,Z=et}else if(0===ee||0===Z.cmpn(1))break;J.isub(Z)}return Z.iushln(Q)},et.prototype.invm=function(X){return this.egcd(X).a.umod(X)},et.prototype.isEven=function(){return(1&this.words[0])==0},et.prototype.isOdd=function(){return(1&this.words[0])==1},et.prototype.andln=function(X){return this.words[0]&X},et.prototype.bincn=function(X){Q("number"==typeof X);var J=X%26,Z=(X-J)/26,ee=1<>>26,ei&=0x3ffffff,this.words[er]=ei}return 0!==et&&(this.words[er]=et,this.length++),this},et.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},et.prototype.cmpn=function(X){var J,Z=X<0;if(0!==this.negative&&!Z)return -1;if(0===this.negative&&Z)return 1;if(this.strip(),this.length>1)J=1;else{Z&&(X=-X),Q(X<=0x3ffffff,"Number is too big");var ee=0|this.words[0];J=ee===X?0:eeX.length)return 1;if(this.length=0;Z--){var Q=0|this.words[Z],ee=0|X.words[Z];if(Q!==ee){Qee&&(J=1);break}}return J},et.prototype.gtn=function(X){return 1===this.cmpn(X)},et.prototype.gt=function(X){return 1===this.cmp(X)},et.prototype.gten=function(X){return this.cmpn(X)>=0},et.prototype.gte=function(X){return this.cmp(X)>=0},et.prototype.ltn=function(X){return -1===this.cmpn(X)},et.prototype.lt=function(X){return -1===this.cmp(X)},et.prototype.lten=function(X){return 0>=this.cmpn(X)},et.prototype.lte=function(X){return 0>=this.cmp(X)},et.prototype.eqn=function(X){return 0===this.cmpn(X)},et.prototype.eq=function(X){return 0===this.cmp(X)},et.red=function(X){return new eg(X)},et.prototype.toRed=function(X){return Q(!this.red,"Already a number in reduction context"),Q(0===this.negative,"red works only with positives"),X.convertTo(this)._forceRed(X)},et.prototype.fromRed=function(){return Q(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},et.prototype._forceRed=function(X){return this.red=X,this},et.prototype.forceRed=function(X){return Q(!this.red,"Already a number in reduction context"),this._forceRed(X)},et.prototype.redAdd=function(X){return Q(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},et.prototype.redIAdd=function(X){return Q(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},et.prototype.redSub=function(X){return Q(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},et.prototype.redISub=function(X){return Q(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},et.prototype.redShl=function(X){return Q(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},et.prototype.redMul=function(X){return Q(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},et.prototype.redIMul=function(X){return Q(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},et.prototype.redSqr=function(){return Q(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},et.prototype.redISqr=function(){return Q(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},et.prototype.redSqrt=function(){return Q(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},et.prototype.redInvm=function(){return Q(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},et.prototype.redNeg=function(){return Q(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},et.prototype.redPow=function(X){return Q(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var eh={k256:null,p224:null,p192:null,p25519:null};function ed(X,J){this.name=X,this.p=new et(J,16),this.n=this.p.bitLength(),this.k=new et(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ep(){ed.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function eb(){ed.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ey(){ed.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function em(){ed.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function eg(X){if("string"==typeof X){var J=et._prime(X);this.m=J.p,this.prime=J}else Q(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}function ev(X){eg.call(this,X),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new et(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)}ed.prototype._tmp=function(){var X=new et(null);return X.words=Array(Math.ceil(this.n/13)),X},ed.prototype.ireduce=function(X){var J,Z=X;do this.split(Z,this.tmp),J=(Z=(Z=this.imulK(Z)).iadd(this.tmp)).bitLength();while(J>this.n)var Q=J0?Z.isub(this.p):void 0!==Z.strip?Z.strip():Z._strip(),Z},ed.prototype.split=function(X,J){X.iushrn(this.n,0,J)},ed.prototype.imulK=function(X){return X.imul(this.k)},ee(ep,ed),ep.prototype.split=function(X,J){for(var Z=Math.min(X.length,9),Q=0;Q>>22,ee=et}ee>>>=22,X.words[Q-10]=ee,0===ee&&X.length>10?X.length-=10:X.length-=9},ep.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;for(var J=0,Z=0;Z>>=26,X.words[Z]=ee,J=Q}return 0!==J&&(X.words[X.length++]=J),X},et._prime=function(X){var J;if(eh[X])return eh[X];if("k256"===X)J=new ep;else if("p224"===X)J=new eb;else if("p192"===X)J=new ey;else if("p25519"===X)J=new em;else throw Error("Unknown prime "+X);return eh[X]=J,J},eg.prototype._verify1=function(X){Q(0===X.negative,"red works only with positives"),Q(X.red,"red works only with red numbers")},eg.prototype._verify2=function(X,J){Q((X.negative|J.negative)==0,"red works only with positives"),Q(X.red&&X.red===J.red,"red works only with red numbers")},eg.prototype.imod=function(X){return this.prime?this.prime.ireduce(X)._forceRed(this):X.umod(this.m)._forceRed(this)},eg.prototype.neg=function(X){return X.isZero()?X.clone():this.m.sub(X)._forceRed(this)},eg.prototype.add=function(X,J){this._verify2(X,J);var Z=X.add(J);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z._forceRed(this)},eg.prototype.iadd=function(X,J){this._verify2(X,J);var Z=X.iadd(J);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z},eg.prototype.sub=function(X,J){this._verify2(X,J);var Z=X.sub(J);return 0>Z.cmpn(0)&&Z.iadd(this.m),Z._forceRed(this)},eg.prototype.isub=function(X,J){this._verify2(X,J);var Z=X.isub(J);return 0>Z.cmpn(0)&&Z.iadd(this.m),Z},eg.prototype.shl=function(X,J){return this._verify1(X),this.imod(X.ushln(J))},eg.prototype.imul=function(X,J){return this._verify2(X,J),this.imod(X.imul(J))},eg.prototype.mul=function(X,J){return this._verify2(X,J),this.imod(X.mul(J))},eg.prototype.isqr=function(X){return this.imul(X,X.clone())},eg.prototype.sqr=function(X){return this.mul(X,X)},eg.prototype.sqrt=function(X){if(X.isZero())return X.clone();var J=this.m.andln(3);if(Q(J%2==1),3===J){var Z=this.m.add(new et(1)).iushrn(2);return this.pow(X,Z)}for(var ee=this.m.subn(1),er=0;!ee.isZero()&&0===ee.andln(1);)er++,ee.iushrn(1);Q(!ee.isZero());var ei=new et(1).toRed(this),en=ei.redNeg(),eo=this.m.subn(1).iushrn(1),ea=this.m.bitLength();for(ea=new et(2*ea*ea).toRed(this);0!==this.pow(ea,eo).cmp(en);)ea.redIAdd(en);for(var es=this.pow(ea,ee),ef=this.pow(X,ee.addn(1).iushrn(1)),eu=this.pow(X,ee),ec=er;0!==eu.cmp(ei);){for(var el=eu,eh=0;0!==el.cmp(ei);eh++)el=el.redSqr();Q(eh=0;Q--){for(var eo=J.words[Q],ea=en-1;ea>=0;ea--){var es=eo>>ea&1;if(ee!==Z[0]&&(ee=this.sqr(ee)),0===es&&0===er){ei=0;continue}er<<=1,er|=es,(4==++ei||0===Q&&0===ea)&&(ee=this.mul(ee,Z[er]),ei=0,er=0)}en=26}return ee},eg.prototype.convertTo=function(X){var J=X.umod(this.m);return J===X?J.clone():J},eg.prototype.convertFrom=function(X){var J=X.clone();return J.red=null,J},et.mont=function(X){return new ev(X)},ee(ev,eg),ev.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},ev.prototype.convertFrom=function(X){var J=this.imod(X.mul(this.rinv));return J.red=null,J},ev.prototype.imul=function(X,J){if(X.isZero()||J.isZero())return X.words[0]=0,X.length=1,X;var Z=X.imul(J),Q=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ee=Z.isub(Q).iushrn(this.shift),et=ee;return ee.cmp(this.m)>=0?et=ee.isub(this.m):0>ee.cmpn(0)&&(et=ee.iadd(this.m)),et._forceRed(this)},ev.prototype.mul=function(X,J){if(X.isZero()||J.isZero())return new et(0)._forceRed(this);var Z=X.mul(J),Q=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ee=Z.isub(Q).iushrn(this.shift),er=ee;return ee.cmp(this.m)>=0?er=ee.isub(this.m):0>ee.cmpn(0)&&(er=ee.iadd(this.m)),er._forceRed(this)},ev.prototype.invm=function(X){return this.imod(X._invmp(this.m).mul(this.r2))._forceRed(this)}}(X=Z.nmd(X),this)},1315:function(X,J,Z){!function(X,J){"use strict";function Q(X,J){if(!X)throw Error(J||"Assertion failed")}function ee(X,J){X.super_=J;var Z=function(){};Z.prototype=J.prototype,X.prototype=new Z,X.prototype.constructor=X}function et(X,J,Z){if(et.isBN(X))return X;this.negative=0,this.words=null,this.length=0,this.red=null,null!==X&&(("le"===J||"be"===J)&&(Z=J,J=10),this._init(X||0,J||10,Z||"be"))}"object"==typeof X?X.exports=et:J.BN=et,et.BN=et,et.wordSize=26;try{ea=Z(181).Buffer}catch(X){}function er(X,J,Z){for(var ee=0,et=Math.min(X.length,Z),er=0,ei=J;ei=49&&eo<=54?eo-49+10:eo>=17&&eo<=22?eo-17+10:eo,er|=en}return Q(!(240&er),"Invalid character in "+X),ee}function ei(X,J,Z,ee){for(var et=0,er=0,ei=Math.min(X.length,Z),en=J;en=49?eo-49+10:eo>=17?eo-17+10:eo,Q(eo>=0&&er"}et.isBN=function(X){return X instanceof et||null!==X&&"object"==typeof X&&X.constructor.wordSize===et.wordSize&&Array.isArray(X.words)},et.max=function(X,J){return X.cmp(J)>0?X:J},et.min=function(X,J){return 0>X.cmp(J)?X:J},et.prototype._init=function(X,J,Z){if("number"==typeof X)return this._initNumber(X,J,Z);if("object"==typeof X)return this._initArray(X,J,Z);"hex"===J&&(J=16),Q(J===(0|J)&&J>=2&&J<=36);var ee=0;"-"===(X=X.toString().replace(/\s+/g,""))[0]&&ee++,16===J?this._parseHex(X,ee):this._parseBase(X,J,ee),"-"===X[0]&&(this.negative=1),this._strip(),"le"===Z&&this._initArray(this.toArray(),J,Z)},et.prototype._initNumber=function(X,J,Z){X<0&&(this.negative=1,X=-X),X<0x4000000?(this.words=[0x3ffffff&X],this.length=1):X<0x10000000000000?(this.words=[0x3ffffff&X,X/0x4000000&0x3ffffff],this.length=2):(Q(X<0x20000000000000),this.words=[0x3ffffff&X,X/0x4000000&0x3ffffff,1],this.length=3),"le"===Z&&this._initArray(this.toArray(),J,Z)},et.prototype._initArray=function(X,J,Z){if(Q("number"==typeof X.length),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=Array(this.length);for(var ee,et,er=0;er=0;er-=3)et=X[er]|X[er-1]<<8|X[er-2]<<16,this.words[ee]|=et<>>26-ei&0x3ffffff,(ei+=24)>=26&&(ei-=26,ee++);else if("le"===Z)for(er=0,ee=0;er>>26-ei&0x3ffffff,(ei+=24)>=26&&(ei-=26,ee++);return this._strip()},et.prototype._parseHex=function(X,J){this.length=Math.ceil((X.length-J)/6),this.words=Array(this.length);for(var Z,Q,ee=0;ee=J;ee-=6)Q=er(X,ee,ee+6),this.words[Z]|=Q<>>26-et&4194303,(et+=24)>=26&&(et-=26,Z++);ee+6!==J&&(Q=er(X,J,ee+6),this.words[Z]|=Q<>>26-et&4194303),this._strip()},et.prototype._parseBase=function(X,J,Z){this.words=[0],this.length=1;for(var Q=0,ee=1;ee<=0x3ffffff;ee*=J)Q++;Q--,ee=ee/J|0;for(var et=X.length-Z,er=et%Q,en=Math.min(et,et-er)+Z,eo=0,ea=Z;ea1&&0===this.words[this.length-1];)this.length--;return this._normSign()},et.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for?et.prototype[Symbol.for("nodejs.util.inspect.custom")]=eo:et.prototype.inspect=eo;var ea,es=["","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"],ef=[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],eu=[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 ec(X,J,Z){Z.negative=J.negative^X.negative;var Q=X.length+J.length|0;Z.length=Q,Q=Q-1|0;var ee=0|X.words[0],et=0|J.words[0],er=ee*et,ei=0x3ffffff&er,en=er/0x4000000|0;Z.words[0]=ei;for(var eo=1;eo>>26,es=0x3ffffff&en,ef=Math.min(eo,J.length-1),eu=Math.max(0,eo-X.length+1);eu<=ef;eu++){var ec=eo-eu|0;ea+=(er=(ee=0|X.words[ec])*(et=0|J.words[eu])+es)/0x4000000|0,es=0x3ffffff&er}Z.words[eo]=0|es,en=0|ea}return 0!==en?Z.words[eo]=0|en:Z.length--,Z._strip()}et.prototype.toString=function(X,J){if(J=0|J||1,16===(X=X||10)||"hex"===X){for(var Z="",ee=0,et=0,er=0;er>>24-ee&0xffffff)||er!==this.length-1?es[6-en.length]+en+Z:en+Z,(ee+=2)>=26&&(ee-=26,er--)}for(0!==et&&(Z=et.toString(16)+Z);Z.length%J!=0;)Z="0"+Z;return 0!==this.negative&&(Z="-"+Z),Z}if(X===(0|X)&&X>=2&&X<=36){var eo=ef[X],ea=eu[X];Z="";var ec=this.clone();for(ec.negative=0;!ec.isZero();){var el=ec.modrn(ea).toString(X);Z=(ec=ec.idivn(ea)).isZero()?el+Z:es[eo-el.length]+el+Z}for(this.isZero()&&(Z="0"+Z);Z.length%J!=0;)Z="0"+Z;return 0!==this.negative&&(Z="-"+Z),Z}Q(!1,"Base should be between 2 and 36")},et.prototype.toNumber=function(){var X=this.words[0];return 2===this.length?X+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?X+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&Q(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-X:X},et.prototype.toJSON=function(){return this.toString(16,2)},ea&&(et.prototype.toBuffer=function(X,J){return this.toArrayLike(ea,X,J)}),et.prototype.toArray=function(X,J){return this.toArrayLike(Array,X,J)},et.prototype.toArrayLike=function(X,J,Z){this._strip();var ee=this.byteLength(),et=Z||Math.max(1,ee);Q(ee<=et,"byte array longer than desired length"),Q(et>0,"Requested array length <= 0");var er=X.allocUnsafe?X.allocUnsafe(et):new X(et);return this["_toArrayLike"+("le"===J?"LE":"BE")](er,ee),er},et.prototype._toArrayLikeLE=function(X,J){for(var Z=0,Q=0,ee=0,et=0;ee>8&255),Z>16&255),6===et?(Z>24&255),Q=0,et=0):(Q=er>>>24,et+=2)}if(Z=0&&(X[Z--]=er>>8&255),Z>=0&&(X[Z--]=er>>16&255),6===et?(Z>=0&&(X[Z--]=er>>24&255),Q=0,et=0):(Q=er>>>24,et+=2)}if(Z>=0)for(X[Z--]=Q;Z>=0;)X[Z--]=0},Math.clz32?et.prototype._countBits=function(X){return 32-Math.clz32(X)}:et.prototype._countBits=function(X){var J=X,Z=0;return J>=4096&&(Z+=13,J>>>=13),J>=64&&(Z+=7,J>>>=7),J>=8&&(Z+=4,J>>>=4),J>=2&&(Z+=2,J>>>=2),Z+J},et.prototype._zeroBits=function(X){if(0===X)return 26;var J=X,Z=0;return(8191&J)==0&&(Z+=13,J>>>=13),(127&J)==0&&(Z+=7,J>>>=7),(15&J)==0&&(Z+=4,J>>>=4),(3&J)==0&&(Z+=2,J>>>=2),(1&J)==0&&Z++,Z},et.prototype.bitLength=function(){var X=this.words[this.length-1],J=this._countBits(X);return(this.length-1)*26+J},et.prototype.zeroBits=function(){if(this.isZero())return 0;for(var X=0,J=0;JX.length?this.clone().ior(X):X.clone().ior(this)},et.prototype.uor=function(X){return this.length>X.length?this.clone().iuor(X):X.clone().iuor(this)},et.prototype.iuand=function(X){var J;J=this.length>X.length?X:this;for(var Z=0;ZX.length?this.clone().iand(X):X.clone().iand(this)},et.prototype.uand=function(X){return this.length>X.length?this.clone().iuand(X):X.clone().iuand(this)},et.prototype.iuxor=function(X){this.length>X.length?(J=this,Z=X):(J=X,Z=this);for(var J,Z,Q=0;QX.length?this.clone().ixor(X):X.clone().ixor(this)},et.prototype.uxor=function(X){return this.length>X.length?this.clone().iuxor(X):X.clone().iuxor(this)},et.prototype.inotn=function(X){Q("number"==typeof X&&X>=0);var J=0|Math.ceil(X/26),Z=X%26;this._expand(J),Z>0&&J--;for(var ee=0;ee0&&(this.words[ee]=~this.words[ee]&0x3ffffff>>26-Z),this._strip()},et.prototype.notn=function(X){return this.clone().inotn(X)},et.prototype.setn=function(X,J){Q("number"==typeof X&&X>=0);var Z=X/26|0,ee=X%26;return this._expand(Z+1),J?this.words[Z]=this.words[Z]|1<X.length?(Z=this,Q=X):(Z=X,Q=this);for(var J,Z,Q,ee=0,et=0;et>>26;for(;0!==ee&&et>>26;if(this.length=Z.length,0!==ee)this.words[this.length]=ee,this.length++;else if(Z!==this)for(;etX.length?this.clone().iadd(X):X.clone().iadd(this)},et.prototype.isub=function(X){if(0!==X.negative){X.negative=0;var J,Z,Q=this.iadd(X);return X.negative=1,Q._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var ee=this.cmp(X);if(0===ee)return this.negative=0,this.length=1,this.words[0]=0,this;ee>0?(J=this,Z=X):(J=X,Z=this);for(var et=0,er=0;er>26,this.words[er]=0x3ffffff&Q;for(;0!==et&&er>26,this.words[er]=0x3ffffff&Q;if(0===et&&er>>13,eu=0|er[1],ec=8191&eu,el=eu>>>13,eh=0|er[2],ed=8191&eh,ep=eh>>>13,eb=0|er[3],ey=8191&eb,em=eb>>>13,eg=0|er[4],ev=8191&eg,ew=eg>>>13,ex=0|er[5],e_=8191&ex,eE=ex>>>13,eS=0|er[6],eM=8191&eS,eA=eS>>>13,eR=0|er[7],eI=8191&eR,ek=eR>>>13,ej=0|er[8],eT=8191&ej,eO=ej>>>13,eN=0|er[9],eP=8191&eN,eL=eN>>>13,eB=0|ei[0],eC=8191&eB,eD=eB>>>13,eU=0|ei[1],e$=8191&eU,eq=eU>>>13,ez=0|ei[2],eF=8191&ez,eH=ez>>>13,eG=0|ei[3],eK=8191&eG,eW=eG>>>13,eV=0|ei[4],eY=8191&eV,eX=eV>>>13,eJ=0|ei[5],eZ=8191&eJ,eQ=eJ>>>13,e0=0|ei[6],e1=8191&e0,e2=e0>>>13,e6=0|ei[7],e3=8191&e6,e4=e6>>>13,e5=0|ei[8],e8=8191&e5,e9=e5>>>13,e7=0|ei[9],te=8191&e7,tt=e7>>>13;Z.negative=X.negative^J.negative,Z.length=19,Q=Math.imul(es,eC);var tr=(eo+Q|0)+((8191&(ee=(ee=Math.imul(es,eD))+Math.imul(ef,eC)|0))<<13)|0;eo=((et=Math.imul(ef,eD))+(ee>>>13)|0)+(tr>>>26)|0,tr&=0x3ffffff,Q=Math.imul(ec,eC),ee=(ee=Math.imul(ec,eD))+Math.imul(el,eC)|0,et=Math.imul(el,eD),Q=Q+Math.imul(es,e$)|0;var ti=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eq)|0)+Math.imul(ef,e$)|0))<<13)|0;eo=((et=et+Math.imul(ef,eq)|0)+(ee>>>13)|0)+(ti>>>26)|0,ti&=0x3ffffff,Q=Math.imul(ed,eC),ee=(ee=Math.imul(ed,eD))+Math.imul(ep,eC)|0,et=Math.imul(ep,eD),Q=Q+Math.imul(ec,e$)|0,ee=(ee=ee+Math.imul(ec,eq)|0)+Math.imul(el,e$)|0,et=et+Math.imul(el,eq)|0,Q=Q+Math.imul(es,eF)|0;var tn=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eH)|0)+Math.imul(ef,eF)|0))<<13)|0;eo=((et=et+Math.imul(ef,eH)|0)+(ee>>>13)|0)+(tn>>>26)|0,tn&=0x3ffffff,Q=Math.imul(ey,eC),ee=(ee=Math.imul(ey,eD))+Math.imul(em,eC)|0,et=Math.imul(em,eD),Q=Q+Math.imul(ed,e$)|0,ee=(ee=ee+Math.imul(ed,eq)|0)+Math.imul(ep,e$)|0,et=et+Math.imul(ep,eq)|0,Q=Q+Math.imul(ec,eF)|0,ee=(ee=ee+Math.imul(ec,eH)|0)+Math.imul(el,eF)|0,et=et+Math.imul(el,eH)|0,Q=Q+Math.imul(es,eK)|0;var to=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eW)|0)+Math.imul(ef,eK)|0))<<13)|0;eo=((et=et+Math.imul(ef,eW)|0)+(ee>>>13)|0)+(to>>>26)|0,to&=0x3ffffff,Q=Math.imul(ev,eC),ee=(ee=Math.imul(ev,eD))+Math.imul(ew,eC)|0,et=Math.imul(ew,eD),Q=Q+Math.imul(ey,e$)|0,ee=(ee=ee+Math.imul(ey,eq)|0)+Math.imul(em,e$)|0,et=et+Math.imul(em,eq)|0,Q=Q+Math.imul(ed,eF)|0,ee=(ee=ee+Math.imul(ed,eH)|0)+Math.imul(ep,eF)|0,et=et+Math.imul(ep,eH)|0,Q=Q+Math.imul(ec,eK)|0,ee=(ee=ee+Math.imul(ec,eW)|0)+Math.imul(el,eK)|0,et=et+Math.imul(el,eW)|0,Q=Q+Math.imul(es,eY)|0;var ta=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eX)|0)+Math.imul(ef,eY)|0))<<13)|0;eo=((et=et+Math.imul(ef,eX)|0)+(ee>>>13)|0)+(ta>>>26)|0,ta&=0x3ffffff,Q=Math.imul(e_,eC),ee=(ee=Math.imul(e_,eD))+Math.imul(eE,eC)|0,et=Math.imul(eE,eD),Q=Q+Math.imul(ev,e$)|0,ee=(ee=ee+Math.imul(ev,eq)|0)+Math.imul(ew,e$)|0,et=et+Math.imul(ew,eq)|0,Q=Q+Math.imul(ey,eF)|0,ee=(ee=ee+Math.imul(ey,eH)|0)+Math.imul(em,eF)|0,et=et+Math.imul(em,eH)|0,Q=Q+Math.imul(ed,eK)|0,ee=(ee=ee+Math.imul(ed,eW)|0)+Math.imul(ep,eK)|0,et=et+Math.imul(ep,eW)|0,Q=Q+Math.imul(ec,eY)|0,ee=(ee=ee+Math.imul(ec,eX)|0)+Math.imul(el,eY)|0,et=et+Math.imul(el,eX)|0,Q=Q+Math.imul(es,eZ)|0;var ts=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,eQ)|0)+Math.imul(ef,eZ)|0))<<13)|0;eo=((et=et+Math.imul(ef,eQ)|0)+(ee>>>13)|0)+(ts>>>26)|0,ts&=0x3ffffff,Q=Math.imul(eM,eC),ee=(ee=Math.imul(eM,eD))+Math.imul(eA,eC)|0,et=Math.imul(eA,eD),Q=Q+Math.imul(e_,e$)|0,ee=(ee=ee+Math.imul(e_,eq)|0)+Math.imul(eE,e$)|0,et=et+Math.imul(eE,eq)|0,Q=Q+Math.imul(ev,eF)|0,ee=(ee=ee+Math.imul(ev,eH)|0)+Math.imul(ew,eF)|0,et=et+Math.imul(ew,eH)|0,Q=Q+Math.imul(ey,eK)|0,ee=(ee=ee+Math.imul(ey,eW)|0)+Math.imul(em,eK)|0,et=et+Math.imul(em,eW)|0,Q=Q+Math.imul(ed,eY)|0,ee=(ee=ee+Math.imul(ed,eX)|0)+Math.imul(ep,eY)|0,et=et+Math.imul(ep,eX)|0,Q=Q+Math.imul(ec,eZ)|0,ee=(ee=ee+Math.imul(ec,eQ)|0)+Math.imul(el,eZ)|0,et=et+Math.imul(el,eQ)|0,Q=Q+Math.imul(es,e1)|0;var tf=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,e2)|0)+Math.imul(ef,e1)|0))<<13)|0;eo=((et=et+Math.imul(ef,e2)|0)+(ee>>>13)|0)+(tf>>>26)|0,tf&=0x3ffffff,Q=Math.imul(eI,eC),ee=(ee=Math.imul(eI,eD))+Math.imul(ek,eC)|0,et=Math.imul(ek,eD),Q=Q+Math.imul(eM,e$)|0,ee=(ee=ee+Math.imul(eM,eq)|0)+Math.imul(eA,e$)|0,et=et+Math.imul(eA,eq)|0,Q=Q+Math.imul(e_,eF)|0,ee=(ee=ee+Math.imul(e_,eH)|0)+Math.imul(eE,eF)|0,et=et+Math.imul(eE,eH)|0,Q=Q+Math.imul(ev,eK)|0,ee=(ee=ee+Math.imul(ev,eW)|0)+Math.imul(ew,eK)|0,et=et+Math.imul(ew,eW)|0,Q=Q+Math.imul(ey,eY)|0,ee=(ee=ee+Math.imul(ey,eX)|0)+Math.imul(em,eY)|0,et=et+Math.imul(em,eX)|0,Q=Q+Math.imul(ed,eZ)|0,ee=(ee=ee+Math.imul(ed,eQ)|0)+Math.imul(ep,eZ)|0,et=et+Math.imul(ep,eQ)|0,Q=Q+Math.imul(ec,e1)|0,ee=(ee=ee+Math.imul(ec,e2)|0)+Math.imul(el,e1)|0,et=et+Math.imul(el,e2)|0,Q=Q+Math.imul(es,e3)|0;var tu=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,e4)|0)+Math.imul(ef,e3)|0))<<13)|0;eo=((et=et+Math.imul(ef,e4)|0)+(ee>>>13)|0)+(tu>>>26)|0,tu&=0x3ffffff,Q=Math.imul(eT,eC),ee=(ee=Math.imul(eT,eD))+Math.imul(eO,eC)|0,et=Math.imul(eO,eD),Q=Q+Math.imul(eI,e$)|0,ee=(ee=ee+Math.imul(eI,eq)|0)+Math.imul(ek,e$)|0,et=et+Math.imul(ek,eq)|0,Q=Q+Math.imul(eM,eF)|0,ee=(ee=ee+Math.imul(eM,eH)|0)+Math.imul(eA,eF)|0,et=et+Math.imul(eA,eH)|0,Q=Q+Math.imul(e_,eK)|0,ee=(ee=ee+Math.imul(e_,eW)|0)+Math.imul(eE,eK)|0,et=et+Math.imul(eE,eW)|0,Q=Q+Math.imul(ev,eY)|0,ee=(ee=ee+Math.imul(ev,eX)|0)+Math.imul(ew,eY)|0,et=et+Math.imul(ew,eX)|0,Q=Q+Math.imul(ey,eZ)|0,ee=(ee=ee+Math.imul(ey,eQ)|0)+Math.imul(em,eZ)|0,et=et+Math.imul(em,eQ)|0,Q=Q+Math.imul(ed,e1)|0,ee=(ee=ee+Math.imul(ed,e2)|0)+Math.imul(ep,e1)|0,et=et+Math.imul(ep,e2)|0,Q=Q+Math.imul(ec,e3)|0,ee=(ee=ee+Math.imul(ec,e4)|0)+Math.imul(el,e3)|0,et=et+Math.imul(el,e4)|0,Q=Q+Math.imul(es,e8)|0;var tc=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,e9)|0)+Math.imul(ef,e8)|0))<<13)|0;eo=((et=et+Math.imul(ef,e9)|0)+(ee>>>13)|0)+(tc>>>26)|0,tc&=0x3ffffff,Q=Math.imul(eP,eC),ee=(ee=Math.imul(eP,eD))+Math.imul(eL,eC)|0,et=Math.imul(eL,eD),Q=Q+Math.imul(eT,e$)|0,ee=(ee=ee+Math.imul(eT,eq)|0)+Math.imul(eO,e$)|0,et=et+Math.imul(eO,eq)|0,Q=Q+Math.imul(eI,eF)|0,ee=(ee=ee+Math.imul(eI,eH)|0)+Math.imul(ek,eF)|0,et=et+Math.imul(ek,eH)|0,Q=Q+Math.imul(eM,eK)|0,ee=(ee=ee+Math.imul(eM,eW)|0)+Math.imul(eA,eK)|0,et=et+Math.imul(eA,eW)|0,Q=Q+Math.imul(e_,eY)|0,ee=(ee=ee+Math.imul(e_,eX)|0)+Math.imul(eE,eY)|0,et=et+Math.imul(eE,eX)|0,Q=Q+Math.imul(ev,eZ)|0,ee=(ee=ee+Math.imul(ev,eQ)|0)+Math.imul(ew,eZ)|0,et=et+Math.imul(ew,eQ)|0,Q=Q+Math.imul(ey,e1)|0,ee=(ee=ee+Math.imul(ey,e2)|0)+Math.imul(em,e1)|0,et=et+Math.imul(em,e2)|0,Q=Q+Math.imul(ed,e3)|0,ee=(ee=ee+Math.imul(ed,e4)|0)+Math.imul(ep,e3)|0,et=et+Math.imul(ep,e4)|0,Q=Q+Math.imul(ec,e8)|0,ee=(ee=ee+Math.imul(ec,e9)|0)+Math.imul(el,e8)|0,et=et+Math.imul(el,e9)|0,Q=Q+Math.imul(es,te)|0;var tl=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(es,tt)|0)+Math.imul(ef,te)|0))<<13)|0;eo=((et=et+Math.imul(ef,tt)|0)+(ee>>>13)|0)+(tl>>>26)|0,tl&=0x3ffffff,Q=Math.imul(eP,e$),ee=(ee=Math.imul(eP,eq))+Math.imul(eL,e$)|0,et=Math.imul(eL,eq),Q=Q+Math.imul(eT,eF)|0,ee=(ee=ee+Math.imul(eT,eH)|0)+Math.imul(eO,eF)|0,et=et+Math.imul(eO,eH)|0,Q=Q+Math.imul(eI,eK)|0,ee=(ee=ee+Math.imul(eI,eW)|0)+Math.imul(ek,eK)|0,et=et+Math.imul(ek,eW)|0,Q=Q+Math.imul(eM,eY)|0,ee=(ee=ee+Math.imul(eM,eX)|0)+Math.imul(eA,eY)|0,et=et+Math.imul(eA,eX)|0,Q=Q+Math.imul(e_,eZ)|0,ee=(ee=ee+Math.imul(e_,eQ)|0)+Math.imul(eE,eZ)|0,et=et+Math.imul(eE,eQ)|0,Q=Q+Math.imul(ev,e1)|0,ee=(ee=ee+Math.imul(ev,e2)|0)+Math.imul(ew,e1)|0,et=et+Math.imul(ew,e2)|0,Q=Q+Math.imul(ey,e3)|0,ee=(ee=ee+Math.imul(ey,e4)|0)+Math.imul(em,e3)|0,et=et+Math.imul(em,e4)|0,Q=Q+Math.imul(ed,e8)|0,ee=(ee=ee+Math.imul(ed,e9)|0)+Math.imul(ep,e8)|0,et=et+Math.imul(ep,e9)|0,Q=Q+Math.imul(ec,te)|0;var th=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(ec,tt)|0)+Math.imul(el,te)|0))<<13)|0;eo=((et=et+Math.imul(el,tt)|0)+(ee>>>13)|0)+(th>>>26)|0,th&=0x3ffffff,Q=Math.imul(eP,eF),ee=(ee=Math.imul(eP,eH))+Math.imul(eL,eF)|0,et=Math.imul(eL,eH),Q=Q+Math.imul(eT,eK)|0,ee=(ee=ee+Math.imul(eT,eW)|0)+Math.imul(eO,eK)|0,et=et+Math.imul(eO,eW)|0,Q=Q+Math.imul(eI,eY)|0,ee=(ee=ee+Math.imul(eI,eX)|0)+Math.imul(ek,eY)|0,et=et+Math.imul(ek,eX)|0,Q=Q+Math.imul(eM,eZ)|0,ee=(ee=ee+Math.imul(eM,eQ)|0)+Math.imul(eA,eZ)|0,et=et+Math.imul(eA,eQ)|0,Q=Q+Math.imul(e_,e1)|0,ee=(ee=ee+Math.imul(e_,e2)|0)+Math.imul(eE,e1)|0,et=et+Math.imul(eE,e2)|0,Q=Q+Math.imul(ev,e3)|0,ee=(ee=ee+Math.imul(ev,e4)|0)+Math.imul(ew,e3)|0,et=et+Math.imul(ew,e4)|0,Q=Q+Math.imul(ey,e8)|0,ee=(ee=ee+Math.imul(ey,e9)|0)+Math.imul(em,e8)|0,et=et+Math.imul(em,e9)|0,Q=Q+Math.imul(ed,te)|0;var td=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(ed,tt)|0)+Math.imul(ep,te)|0))<<13)|0;eo=((et=et+Math.imul(ep,tt)|0)+(ee>>>13)|0)+(td>>>26)|0,td&=0x3ffffff,Q=Math.imul(eP,eK),ee=(ee=Math.imul(eP,eW))+Math.imul(eL,eK)|0,et=Math.imul(eL,eW),Q=Q+Math.imul(eT,eY)|0,ee=(ee=ee+Math.imul(eT,eX)|0)+Math.imul(eO,eY)|0,et=et+Math.imul(eO,eX)|0,Q=Q+Math.imul(eI,eZ)|0,ee=(ee=ee+Math.imul(eI,eQ)|0)+Math.imul(ek,eZ)|0,et=et+Math.imul(ek,eQ)|0,Q=Q+Math.imul(eM,e1)|0,ee=(ee=ee+Math.imul(eM,e2)|0)+Math.imul(eA,e1)|0,et=et+Math.imul(eA,e2)|0,Q=Q+Math.imul(e_,e3)|0,ee=(ee=ee+Math.imul(e_,e4)|0)+Math.imul(eE,e3)|0,et=et+Math.imul(eE,e4)|0,Q=Q+Math.imul(ev,e8)|0,ee=(ee=ee+Math.imul(ev,e9)|0)+Math.imul(ew,e8)|0,et=et+Math.imul(ew,e9)|0,Q=Q+Math.imul(ey,te)|0;var tp=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(ey,tt)|0)+Math.imul(em,te)|0))<<13)|0;eo=((et=et+Math.imul(em,tt)|0)+(ee>>>13)|0)+(tp>>>26)|0,tp&=0x3ffffff,Q=Math.imul(eP,eY),ee=(ee=Math.imul(eP,eX))+Math.imul(eL,eY)|0,et=Math.imul(eL,eX),Q=Q+Math.imul(eT,eZ)|0,ee=(ee=ee+Math.imul(eT,eQ)|0)+Math.imul(eO,eZ)|0,et=et+Math.imul(eO,eQ)|0,Q=Q+Math.imul(eI,e1)|0,ee=(ee=ee+Math.imul(eI,e2)|0)+Math.imul(ek,e1)|0,et=et+Math.imul(ek,e2)|0,Q=Q+Math.imul(eM,e3)|0,ee=(ee=ee+Math.imul(eM,e4)|0)+Math.imul(eA,e3)|0,et=et+Math.imul(eA,e4)|0,Q=Q+Math.imul(e_,e8)|0,ee=(ee=ee+Math.imul(e_,e9)|0)+Math.imul(eE,e8)|0,et=et+Math.imul(eE,e9)|0,Q=Q+Math.imul(ev,te)|0;var tb=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(ev,tt)|0)+Math.imul(ew,te)|0))<<13)|0;eo=((et=et+Math.imul(ew,tt)|0)+(ee>>>13)|0)+(tb>>>26)|0,tb&=0x3ffffff,Q=Math.imul(eP,eZ),ee=(ee=Math.imul(eP,eQ))+Math.imul(eL,eZ)|0,et=Math.imul(eL,eQ),Q=Q+Math.imul(eT,e1)|0,ee=(ee=ee+Math.imul(eT,e2)|0)+Math.imul(eO,e1)|0,et=et+Math.imul(eO,e2)|0,Q=Q+Math.imul(eI,e3)|0,ee=(ee=ee+Math.imul(eI,e4)|0)+Math.imul(ek,e3)|0,et=et+Math.imul(ek,e4)|0,Q=Q+Math.imul(eM,e8)|0,ee=(ee=ee+Math.imul(eM,e9)|0)+Math.imul(eA,e8)|0,et=et+Math.imul(eA,e9)|0,Q=Q+Math.imul(e_,te)|0;var ty=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(e_,tt)|0)+Math.imul(eE,te)|0))<<13)|0;eo=((et=et+Math.imul(eE,tt)|0)+(ee>>>13)|0)+(ty>>>26)|0,ty&=0x3ffffff,Q=Math.imul(eP,e1),ee=(ee=Math.imul(eP,e2))+Math.imul(eL,e1)|0,et=Math.imul(eL,e2),Q=Q+Math.imul(eT,e3)|0,ee=(ee=ee+Math.imul(eT,e4)|0)+Math.imul(eO,e3)|0,et=et+Math.imul(eO,e4)|0,Q=Q+Math.imul(eI,e8)|0,ee=(ee=ee+Math.imul(eI,e9)|0)+Math.imul(ek,e8)|0,et=et+Math.imul(ek,e9)|0,Q=Q+Math.imul(eM,te)|0;var tm=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(eM,tt)|0)+Math.imul(eA,te)|0))<<13)|0;eo=((et=et+Math.imul(eA,tt)|0)+(ee>>>13)|0)+(tm>>>26)|0,tm&=0x3ffffff,Q=Math.imul(eP,e3),ee=(ee=Math.imul(eP,e4))+Math.imul(eL,e3)|0,et=Math.imul(eL,e4),Q=Q+Math.imul(eT,e8)|0,ee=(ee=ee+Math.imul(eT,e9)|0)+Math.imul(eO,e8)|0,et=et+Math.imul(eO,e9)|0,Q=Q+Math.imul(eI,te)|0;var tg=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(eI,tt)|0)+Math.imul(ek,te)|0))<<13)|0;eo=((et=et+Math.imul(ek,tt)|0)+(ee>>>13)|0)+(tg>>>26)|0,tg&=0x3ffffff,Q=Math.imul(eP,e8),ee=(ee=Math.imul(eP,e9))+Math.imul(eL,e8)|0,et=Math.imul(eL,e9),Q=Q+Math.imul(eT,te)|0;var tv=(eo+Q|0)+((8191&(ee=(ee=ee+Math.imul(eT,tt)|0)+Math.imul(eO,te)|0))<<13)|0;eo=((et=et+Math.imul(eO,tt)|0)+(ee>>>13)|0)+(tv>>>26)|0,tv&=0x3ffffff,Q=Math.imul(eP,te);var tw=(eo+Q|0)+((8191&(ee=(ee=Math.imul(eP,tt))+Math.imul(eL,te)|0))<<13)|0;return eo=((et=Math.imul(eL,tt))+(ee>>>13)|0)+(tw>>>26)|0,tw&=0x3ffffff,en[0]=tr,en[1]=ti,en[2]=tn,en[3]=to,en[4]=ta,en[5]=ts,en[6]=tf,en[7]=tu,en[8]=tc,en[9]=tl,en[10]=th,en[11]=td,en[12]=tp,en[13]=tb,en[14]=ty,en[15]=tm,en[16]=tg,en[17]=tv,en[18]=tw,0!==eo&&(en[19]=eo,Z.length++),Z};function eh(X,J,Z){Z.negative=J.negative^X.negative,Z.length=X.length+J.length;for(var Q=0,ee=0,et=0;et>>26)|0)>>>26,er&=0x3ffffff}Z.words[et]=ei,Q=er,er=ee}return 0!==Q?Z.words[et]=Q:Z.length--,Z._strip()}function ed(X,J){this.x=X,this.y=J}Math.imul||(el=ec),et.prototype.mulTo=function(X,J){var Z,Q=this.length+X.length;return 10===this.length&&10===X.length?Z=el(this,X,J):Q<63?Z=ec(this,X,J):Z=eh(this,X,J),Z},ed.prototype.makeRBT=function(X){for(var J=Array(X),Z=et.prototype._countBits(X)-1,Q=0;Q>=1;return Q},ed.prototype.permute=function(X,J,Z,Q,ee,et){for(var er=0;er>>=1)ee++;return 1<>>=13,Z[2*er+1]=8191&et,et>>>=13;for(er=2*J;er>=26,Z+=(et/0x4000000|0)+(er>>>26),this.words[ee]=0x3ffffff&er}return 0!==Z&&(this.words[ee]=Z,this.length++),J?this.ineg():this},et.prototype.muln=function(X){return this.clone().imuln(X)},et.prototype.sqr=function(){return this.mul(this)},et.prototype.isqr=function(){return this.imul(this.clone())},et.prototype.pow=function(X){var J=function(X){for(var J=Array(X.bitLength()),Z=0;Z>>ee&1}return J}(X);if(0===J.length)return new et(1);for(var Z=this,Q=0;Q=0);var J,Z=X%26,ee=(X-Z)/26,et=0x3ffffff>>>26-Z<<26-Z;if(0!==Z){var er=0;for(J=0;J>>26-Z}er&&(this.words[J]=er,this.length++)}if(0!==ee){for(J=this.length-1;J>=0;J--)this.words[J+ee]=this.words[J];for(J=0;J=0);var ee=J?(J-J%26)/26:0,et=X%26,er=Math.min((X-et)/26,this.length),ei=0x3ffffff^0x3ffffff>>>et<er)for(this.length-=er,en=0;en=0&&(0!==eo||en>=ee);en--){var ea=0|this.words[en];this.words[en]=eo<<26-et|ea>>>et,eo=ea&ei}return Z&&0!==eo&&(Z.words[Z.length++]=eo),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},et.prototype.ishrn=function(X,J,Z){return Q(0===this.negative),this.iushrn(X,J,Z)},et.prototype.shln=function(X){return this.clone().ishln(X)},et.prototype.ushln=function(X){return this.clone().iushln(X)},et.prototype.shrn=function(X){return this.clone().ishrn(X)},et.prototype.ushrn=function(X){return this.clone().iushrn(X)},et.prototype.testn=function(X){Q("number"==typeof X&&X>=0);var J=X%26,Z=(X-J)/26;return!(this.length<=Z)&&!!(this.words[Z]&1<=0);var J=X%26,Z=(X-J)/26;return(Q(0===this.negative,"imaskn works only with positive numbers"),this.length<=Z)?this:(0!==J&&Z++,this.length=Math.min(Z,this.length),0!==J&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>J<=0x4000000;J++)this.words[J]-=0x4000000,J===this.length-1?this.words[J+1]=1:this.words[J+1]++;return this.length=Math.max(this.length,J+1),this},et.prototype.isubn=function(X){if(Q("number"==typeof X),Q(X<0x4000000),X<0)return this.iaddn(-X);if(0!==this.negative)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var J=0;J>26)-(en/0x4000000|0),this.words[ee+Z]=0x3ffffff&et}for(;ee>26,this.words[ee+Z]=0x3ffffff&et;if(0===ei)return this._strip();for(Q(-1===ei),ei=0,ee=0;ee>26,this.words[ee]=0x3ffffff&et;return this.negative=1,this._strip()},et.prototype._wordDiv=function(X,J){var Z,Q=this.length-X.length,ee=this.clone(),er=X,ei=0|er.words[er.length-1];0!=(Q=26-this._countBits(ei))&&(er=er.ushln(Q),ee.iushln(Q),ei=0|er.words[er.length-1]);var en=ee.length-er.length;if("mod"!==J){(Z=new et(null)).length=en+1,Z.words=Array(Z.length);for(var eo=0;eo=0;es--){var ef=(0|ee.words[er.length+es])*0x4000000+(0|ee.words[er.length+es-1]);for(ef=Math.min(ef/ei|0,0x3ffffff),ee._ishlnsubmul(er,ef,es);0!==ee.negative;)ef--,ee.negative=0,ee._ishlnsubmul(er,1,es),ee.isZero()||(ee.negative^=1);Z&&(Z.words[es]=ef)}return Z&&Z._strip(),ee._strip(),"div"!==J&&0!==Q&&ee.iushrn(Q),{div:Z||null,mod:ee}},et.prototype.divmod=function(X,J,Z){var ee,er,ei;return(Q(!X.isZero()),this.isZero())?{div:new et(0),mod:new et(0)}:0!==this.negative&&0===X.negative?(ei=this.neg().divmod(X,J),"mod"!==J&&(ee=ei.div.neg()),"div"!==J&&(er=ei.mod.neg(),Z&&0!==er.negative&&er.iadd(X)),{div:ee,mod:er}):0===this.negative&&0!==X.negative?(ei=this.divmod(X.neg(),J),"mod"!==J&&(ee=ei.div.neg()),{div:ee,mod:ei.mod}):(this.negative&X.negative)!=0?(ei=this.neg().divmod(X.neg(),J),"div"!==J&&(er=ei.mod.neg(),Z&&0!==er.negative&&er.isub(X)),{div:ei.div,mod:er}):X.length>this.length||0>this.cmp(X)?{div:new et(0),mod:this}:1===X.length?"div"===J?{div:this.divn(X.words[0]),mod:null}:"mod"===J?{div:null,mod:new et(this.modrn(X.words[0]))}:{div:this.divn(X.words[0]),mod:new et(this.modrn(X.words[0]))}:this._wordDiv(X,J)},et.prototype.div=function(X){return this.divmod(X,"div",!1).div},et.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},et.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},et.prototype.divRound=function(X){var J=this.divmod(X);if(J.mod.isZero())return J.div;var Z=0!==J.div.negative?J.mod.isub(X):J.mod,Q=X.ushrn(1),ee=X.andln(1),et=Z.cmp(Q);return et<0||1===ee&&0===et?J.div:0!==J.div.negative?J.div.isubn(1):J.div.iaddn(1)},et.prototype.modrn=function(X){var J=X<0;J&&(X=-X),Q(X<=0x3ffffff);for(var Z=0x4000000%X,ee=0,et=this.length-1;et>=0;et--)ee=(Z*ee+(0|this.words[et]))%X;return J?-ee:ee},et.prototype.modn=function(X){return this.modrn(X)},et.prototype.idivn=function(X){var J=X<0;J&&(X=-X),Q(X<=0x3ffffff);for(var Z=0,ee=this.length-1;ee>=0;ee--){var et=(0|this.words[ee])+0x4000000*Z;this.words[ee]=et/X|0,Z=et%X}return this._strip(),J?this.ineg():this},et.prototype.divn=function(X){return this.clone().idivn(X)},et.prototype.egcd=function(X){Q(0===X.negative),Q(!X.isZero());var J=this,Z=X.clone();J=0!==J.negative?J.umod(X):J.clone();for(var ee=new et(1),er=new et(0),ei=new et(0),en=new et(1),eo=0;J.isEven()&&Z.isEven();)J.iushrn(1),Z.iushrn(1),++eo;for(var ea=Z.clone(),es=J.clone();!J.isZero();){for(var ef=0,eu=1;(J.words[0]&eu)==0&&ef<26;++ef,eu<<=1);if(ef>0)for(J.iushrn(ef);ef-- >0;)(ee.isOdd()||er.isOdd())&&(ee.iadd(ea),er.isub(es)),ee.iushrn(1),er.iushrn(1);for(var ec=0,el=1;(Z.words[0]&el)==0&&ec<26;++ec,el<<=1);if(ec>0)for(Z.iushrn(ec);ec-- >0;)(ei.isOdd()||en.isOdd())&&(ei.iadd(ea),en.isub(es)),ei.iushrn(1),en.iushrn(1);J.cmp(Z)>=0?(J.isub(Z),ee.isub(ei),er.isub(en)):(Z.isub(J),ei.isub(ee),en.isub(er))}return{a:ei,b:en,gcd:Z.iushln(eo)}},et.prototype._invmp=function(X){Q(0===X.negative),Q(!X.isZero());var J,Z=this,ee=X.clone();Z=0!==Z.negative?Z.umod(X):Z.clone();for(var er=new et(1),ei=new et(0),en=ee.clone();Z.cmpn(1)>0&&ee.cmpn(1)>0;){for(var eo=0,ea=1;(Z.words[0]&ea)==0&&eo<26;++eo,ea<<=1);if(eo>0)for(Z.iushrn(eo);eo-- >0;)er.isOdd()&&er.iadd(en),er.iushrn(1);for(var es=0,ef=1;(ee.words[0]&ef)==0&&es<26;++es,ef<<=1);if(es>0)for(ee.iushrn(es);es-- >0;)ei.isOdd()&&ei.iadd(en),ei.iushrn(1);Z.cmp(ee)>=0?(Z.isub(ee),er.isub(ei)):(ee.isub(Z),ei.isub(er))}return 0>(J=0===Z.cmpn(1)?er:ei).cmpn(0)&&J.iadd(X),J},et.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var J=this.clone(),Z=X.clone();J.negative=0,Z.negative=0;for(var Q=0;J.isEven()&&Z.isEven();Q++)J.iushrn(1),Z.iushrn(1);for(;;){for(;J.isEven();)J.iushrn(1);for(;Z.isEven();)Z.iushrn(1);var ee=J.cmp(Z);if(ee<0){var et=J;J=Z,Z=et}else if(0===ee||0===Z.cmpn(1))break;J.isub(Z)}return Z.iushln(Q)},et.prototype.invm=function(X){return this.egcd(X).a.umod(X)},et.prototype.isEven=function(){return(1&this.words[0])==0},et.prototype.isOdd=function(){return(1&this.words[0])==1},et.prototype.andln=function(X){return this.words[0]&X},et.prototype.bincn=function(X){Q("number"==typeof X);var J=X%26,Z=(X-J)/26,ee=1<>>26,ei&=0x3ffffff,this.words[er]=ei}return 0!==et&&(this.words[er]=et,this.length++),this},et.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},et.prototype.cmpn=function(X){var J,Z=X<0;if(0!==this.negative&&!Z)return -1;if(0===this.negative&&Z)return 1;if(this._strip(),this.length>1)J=1;else{Z&&(X=-X),Q(X<=0x3ffffff,"Number is too big");var ee=0|this.words[0];J=ee===X?0:eeX.length)return 1;if(this.length=0;Z--){var Q=0|this.words[Z],ee=0|X.words[Z];if(Q!==ee){Qee&&(J=1);break}}return J},et.prototype.gtn=function(X){return 1===this.cmpn(X)},et.prototype.gt=function(X){return 1===this.cmp(X)},et.prototype.gten=function(X){return this.cmpn(X)>=0},et.prototype.gte=function(X){return this.cmp(X)>=0},et.prototype.ltn=function(X){return -1===this.cmpn(X)},et.prototype.lt=function(X){return -1===this.cmp(X)},et.prototype.lten=function(X){return 0>=this.cmpn(X)},et.prototype.lte=function(X){return 0>=this.cmp(X)},et.prototype.eqn=function(X){return 0===this.cmpn(X)},et.prototype.eq=function(X){return 0===this.cmp(X)},et.red=function(X){return new ew(X)},et.prototype.toRed=function(X){return Q(!this.red,"Already a number in reduction context"),Q(0===this.negative,"red works only with positives"),X.convertTo(this)._forceRed(X)},et.prototype.fromRed=function(){return Q(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},et.prototype._forceRed=function(X){return this.red=X,this},et.prototype.forceRed=function(X){return Q(!this.red,"Already a number in reduction context"),this._forceRed(X)},et.prototype.redAdd=function(X){return Q(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},et.prototype.redIAdd=function(X){return Q(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},et.prototype.redSub=function(X){return Q(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},et.prototype.redISub=function(X){return Q(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},et.prototype.redShl=function(X){return Q(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},et.prototype.redMul=function(X){return Q(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},et.prototype.redIMul=function(X){return Q(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},et.prototype.redSqr=function(){return Q(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},et.prototype.redISqr=function(){return Q(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},et.prototype.redSqrt=function(){return Q(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},et.prototype.redInvm=function(){return Q(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},et.prototype.redNeg=function(){return Q(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},et.prototype.redPow=function(X){return Q(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var ep={k256:null,p224:null,p192:null,p25519:null};function eb(X,J){this.name=X,this.p=new et(J,16),this.n=this.p.bitLength(),this.k=new et(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ey(){eb.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function em(){eb.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function eg(){eb.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ev(){eb.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ew(X){if("string"==typeof X){var J=et._prime(X);this.m=J.p,this.prime=J}else Q(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}function ex(X){ew.call(this,X),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new et(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)}eb.prototype._tmp=function(){var X=new et(null);return X.words=Array(Math.ceil(this.n/13)),X},eb.prototype.ireduce=function(X){var J,Z=X;do this.split(Z,this.tmp),J=(Z=(Z=this.imulK(Z)).iadd(this.tmp)).bitLength();while(J>this.n)var Q=J0?Z.isub(this.p):void 0!==Z.strip?Z.strip():Z._strip(),Z},eb.prototype.split=function(X,J){X.iushrn(this.n,0,J)},eb.prototype.imulK=function(X){return X.imul(this.k)},ee(ey,eb),ey.prototype.split=function(X,J){for(var Z=Math.min(X.length,9),Q=0;Q>>22,ee=et}ee>>>=22,X.words[Q-10]=ee,0===ee&&X.length>10?X.length-=10:X.length-=9},ey.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;for(var J=0,Z=0;Z>>=26,X.words[Z]=ee,J=Q}return 0!==J&&(X.words[X.length++]=J),X},et._prime=function(X){var J;if(ep[X])return ep[X];if("k256"===X)J=new ey;else if("p224"===X)J=new em;else if("p192"===X)J=new eg;else if("p25519"===X)J=new ev;else throw Error("Unknown prime "+X);return ep[X]=J,J},ew.prototype._verify1=function(X){Q(0===X.negative,"red works only with positives"),Q(X.red,"red works only with red numbers")},ew.prototype._verify2=function(X,J){Q((X.negative|J.negative)==0,"red works only with positives"),Q(X.red&&X.red===J.red,"red works only with red numbers")},ew.prototype.imod=function(X){return this.prime?this.prime.ireduce(X)._forceRed(this):(en(X,X.umod(this.m)._forceRed(this)),X)},ew.prototype.neg=function(X){return X.isZero()?X.clone():this.m.sub(X)._forceRed(this)},ew.prototype.add=function(X,J){this._verify2(X,J);var Z=X.add(J);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z._forceRed(this)},ew.prototype.iadd=function(X,J){this._verify2(X,J);var Z=X.iadd(J);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z},ew.prototype.sub=function(X,J){this._verify2(X,J);var Z=X.sub(J);return 0>Z.cmpn(0)&&Z.iadd(this.m),Z._forceRed(this)},ew.prototype.isub=function(X,J){this._verify2(X,J);var Z=X.isub(J);return 0>Z.cmpn(0)&&Z.iadd(this.m),Z},ew.prototype.shl=function(X,J){return this._verify1(X),this.imod(X.ushln(J))},ew.prototype.imul=function(X,J){return this._verify2(X,J),this.imod(X.imul(J))},ew.prototype.mul=function(X,J){return this._verify2(X,J),this.imod(X.mul(J))},ew.prototype.isqr=function(X){return this.imul(X,X.clone())},ew.prototype.sqr=function(X){return this.mul(X,X)},ew.prototype.sqrt=function(X){if(X.isZero())return X.clone();var J=this.m.andln(3);if(Q(J%2==1),3===J){var Z=this.m.add(new et(1)).iushrn(2);return this.pow(X,Z)}for(var ee=this.m.subn(1),er=0;!ee.isZero()&&0===ee.andln(1);)er++,ee.iushrn(1);Q(!ee.isZero());var ei=new et(1).toRed(this),en=ei.redNeg(),eo=this.m.subn(1).iushrn(1),ea=this.m.bitLength();for(ea=new et(2*ea*ea).toRed(this);0!==this.pow(ea,eo).cmp(en);)ea.redIAdd(en);for(var es=this.pow(ea,ee),ef=this.pow(X,ee.addn(1).iushrn(1)),eu=this.pow(X,ee),ec=er;0!==eu.cmp(ei);){for(var el=eu,eh=0;0!==el.cmp(ei);eh++)el=el.redSqr();Q(eh=0;Q--){for(var eo=J.words[Q],ea=en-1;ea>=0;ea--){var es=eo>>ea&1;if(ee!==Z[0]&&(ee=this.sqr(ee)),0===es&&0===er){ei=0;continue}er<<=1,er|=es,(4==++ei||0===Q&&0===ea)&&(ee=this.mul(ee,Z[er]),ei=0,er=0)}en=26}return ee},ew.prototype.convertTo=function(X){var J=X.umod(this.m);return J===X?J.clone():J},ew.prototype.convertFrom=function(X){var J=X.clone();return J.red=null,J},et.mont=function(X){return new ex(X)},ee(ex,ew),ex.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},ex.prototype.convertFrom=function(X){var J=this.imod(X.mul(this.rinv));return J.red=null,J},ex.prototype.imul=function(X,J){if(X.isZero()||J.isZero())return X.words[0]=0,X.length=1,X;var Z=X.imul(J),Q=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ee=Z.isub(Q).iushrn(this.shift),et=ee;return ee.cmp(this.m)>=0?et=ee.isub(this.m):0>ee.cmpn(0)&&(et=ee.iadd(this.m)),et._forceRed(this)},ex.prototype.mul=function(X,J){if(X.isZero()||J.isZero())return new et(0)._forceRed(this);var Z=X.mul(J),Q=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ee=Z.isub(Q).iushrn(this.shift),er=ee;return ee.cmp(this.m)>=0?er=ee.isub(this.m):0>ee.cmpn(0)&&(er=ee.iadd(this.m)),er._forceRed(this)},ex.prototype.invm=function(X){return this.imod(X._invmp(this.m).mul(this.r2))._forceRed(this)}}(X=Z.nmd(X),this)},4259:function(X,J,Z){var Q;function ee(X){this.rand=X}if(X.exports=function(X){return Q||(Q=new ee(null)),Q.generate(X)},X.exports.Rand=ee,ee.prototype.generate=function(X){return this._rand(X)},ee.prototype._rand=function(X){if(this.rand.getBytes)return this.rand.getBytes(X);for(var J=new Uint8Array(X),Z=0;Z>>24]^ea[ec>>>16&255]^es[el>>>8&255]^ef[255&eh]^J[ed++],er=eo[ec>>>24]^ea[el>>>16&255]^es[eh>>>8&255]^ef[255&eu]^J[ed++],ei=eo[el>>>24]^ea[eh>>>16&255]^es[eu>>>8&255]^ef[255&ec]^J[ed++],en=eo[eh>>>24]^ea[eu>>>16&255]^es[ec>>>8&255]^ef[255&el]^J[ed++],eu=et,ec=er,el=ei,eh=en;return et=(Q[eu>>>24]<<24|Q[ec>>>16&255]<<16|Q[el>>>8&255]<<8|Q[255&eh])^J[ed++],er=(Q[ec>>>24]<<24|Q[el>>>16&255]<<16|Q[eh>>>8&255]<<8|Q[255&eu])^J[ed++],ei=(Q[el>>>24]<<24|Q[eh>>>16&255]<<16|Q[eu>>>8&255]<<8|Q[255&ec])^J[ed++],[et>>>=0,er>>>=0,ei>>>=0,en=((Q[eh>>>24]<<24|Q[eu>>>16&255]<<16|Q[ec>>>8&255]<<8|Q[255&el])^J[ed++])>>>0]}var ei=[0,1,2,4,8,16,32,64,128,27,54],en=function(){for(var X=Array(256),J=0;J<256;J++)J<128?X[J]=J<<1:X[J]=J<<1^283;for(var Z=[],Q=[],ee=[[],[],[],[]],et=[[],[],[],[]],er=0,ei=0,en=0;en<256;++en){var eo=ei^ei<<1^ei<<2^ei<<3^ei<<4;eo=eo>>>8^255&eo^99,Z[er]=eo,Q[eo]=er;var ea=X[er],es=X[ea],ef=X[es],eu=257*X[eo]^0x1010100*eo;ee[0][er]=eu<<24|eu>>>8,ee[1][er]=eu<<16|eu>>>16,ee[2][er]=eu<<8|eu>>>24,ee[3][er]=eu,eu=0x1010101*ef^65537*es^257*ea^0x1010100*er,et[0][eo]=eu<<24|eu>>>8,et[1][eo]=eu<<16|eu>>>16,et[2][eo]=eu<<8|eu>>>24,et[3][eo]=eu,0===er?er=ei=1:(er=ea^X[X[X[ef^ea]]],ei^=X[X[ei]])}return{SBOX:Z,INV_SBOX:Q,SUB_MIX:ee,INV_SUB_MIX:et}}();function eo(X){this._key=ee(X),this._reset()}eo.blockSize=16,eo.keySize=32,eo.prototype.blockSize=eo.blockSize,eo.prototype.keySize=eo.keySize,eo.prototype._reset=function(){for(var X=this._key,J=X.length,Z=J+6,Q=(Z+1)*4,ee=[],et=0;et>>24,er=(en.SBOX[er>>>24]<<24|en.SBOX[er>>>16&255]<<16|en.SBOX[er>>>8&255]<<8|en.SBOX[255&er])^ei[et/J|0]<<24):J>6&&et%J==4&&(er=en.SBOX[er>>>24]<<24|en.SBOX[er>>>16&255]<<16|en.SBOX[er>>>8&255]<<8|en.SBOX[255&er]),ee[et]=ee[et-J]^er}for(var eo=[],ea=0;ea>>24]]^en.INV_SUB_MIX[1][en.SBOX[ef>>>16&255]]^en.INV_SUB_MIX[2][en.SBOX[ef>>>8&255]]^en.INV_SUB_MIX[3][en.SBOX[255&ef]]}this._nRounds=Z,this._keySchedule=ee,this._invKeySchedule=eo},eo.prototype.encryptBlockRaw=function(X){return er(X=ee(X),this._keySchedule,en.SUB_MIX,en.SBOX,this._nRounds)},eo.prototype.encryptBlock=function(X){var J=this.encryptBlockRaw(X),Z=Q.allocUnsafe(16);return Z.writeUInt32BE(J[0],0),Z.writeUInt32BE(J[1],4),Z.writeUInt32BE(J[2],8),Z.writeUInt32BE(J[3],12),Z},eo.prototype.decryptBlock=function(X){var J=(X=ee(X))[1];X[1]=X[3],X[3]=J;var Z=er(X,this._invKeySchedule,en.INV_SUB_MIX,en.INV_SBOX,this._nRounds),et=Q.allocUnsafe(16);return et.writeUInt32BE(Z[0],0),et.writeUInt32BE(Z[3],4),et.writeUInt32BE(Z[2],8),et.writeUInt32BE(Z[1],12),et},eo.prototype.scrub=function(){et(this._keySchedule),et(this._invKeySchedule),et(this._key)},X.exports.AES=eo},1725:function(X,J,Z){var Q=Z(6313),ee=Z(5725).Buffer,et=Z(1888),er=Z(1638),ei=Z(1267),en=Z(6481),eo=Z(1995);function ea(X,J,Z,er){et.call(this);var en=ee.alloc(4,0);this._cipher=new Q.AES(J);var ea=this._cipher.encryptBlock(en);this._ghash=new ei(ea),Z=function(X,J,Z){if(12===J.length)return X._finID=ee.concat([J,ee.from([0,0,0,1])]),ee.concat([J,ee.from([0,0,0,2])]);var Q=new ei(Z),et=J.length,er=et%16;Q.update(J),er&&(er=16-er,Q.update(ee.alloc(er,0))),Q.update(ee.alloc(8,0));var en=ee.alloc(8);en.writeUIntBE(8*et,0,8),Q.update(en),X._finID=Q.state;var ea=ee.from(X._finID);return eo(ea),ea}(this,Z,ea),this._prev=ee.from(Z),this._cache=ee.allocUnsafe(0),this._secCache=ee.allocUnsafe(0),this._decrypt=er,this._alen=0,this._len=0,this._mode=X,this._authTag=null,this._called=!1}er(ea,et),ea.prototype._update=function(X){if(!this._called&&this._alen){var J=16-this._alen%16;J<16&&(J=ee.alloc(J,0),this._ghash.update(J))}this._called=!0;var Z=this._mode.encrypt(this,X);return this._decrypt?this._ghash.update(X):this._ghash.update(Z),this._len+=X.length,Z},ea.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var X=en(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(X,J){var Z=0;X.length!==J.length&&Z++;for(var Q=Math.min(X.length,J.length),ee=0;ee16)throw Error("unable to decrypt data");for(var Q=-1;++Q16)return J=this.cache.slice(0,16),this.cache=this.cache.slice(16),J}else if(this.cache.length>=16)return J=this.cache.slice(0,16),this.cache=this.cache.slice(16),J;return null},es.prototype.flush=function(){if(this.cache.length)return this.cache},J.createDecipher=function(X,J){var Z=et[X.toLowerCase()];if(!Z)throw TypeError("invalid suite type");var Q=eo(J,!1,Z.key,Z.iv);return ef(X,Q.key,Q.iv)},J.createDecipheriv=ef},9780:function(X,J,Z){var Q=Z(8597),ee=Z(1725),et=Z(5725).Buffer,er=Z(959),ei=Z(1888),en=Z(6313),eo=Z(689);function ea(X,J,Z){ei.call(this),this._cache=new ef,this._cipher=new en.AES(J),this._prev=et.from(Z),this._mode=X,this._autopadding=!0}Z(1638)(ea,ei),ea.prototype._update=function(X){this._cache.add(X);for(var J,Z,Q=[];J=this._cache.get();)Z=this._mode.encrypt(this,J),Q.push(Z);return et.concat(Q)};var es=et.alloc(16,16);function ef(){this.cache=et.allocUnsafe(0)}function eu(X,J,Z){var ei=Q[X.toLowerCase()];if(!ei)throw TypeError("invalid suite type");if("string"==typeof J&&(J=et.from(J)),J.length!==ei.key/8)throw TypeError("invalid key length "+J.length);if("string"==typeof Z&&(Z=et.from(Z)),"GCM"!==ei.mode&&Z.length!==ei.iv)throw TypeError("invalid iv length "+Z.length);return"stream"===ei.type?new er(ei.module,J,Z):"auth"===ei.type?new ee(ei.module,J,Z):new ea(ei.module,J,Z)}ea.prototype._final=function(){var X=this._cache.flush();if(this._autopadding)return X=this._mode.encrypt(this,X),this._cipher.scrub(),X;if(!X.equals(es))throw this._cipher.scrub(),Error("data not multiple of block length")},ea.prototype.setAutoPadding=function(X){return this._autopadding=!!X,this},ef.prototype.add=function(X){this.cache=et.concat([this.cache,X])},ef.prototype.get=function(){if(this.cache.length>15){var X=this.cache.slice(0,16);return this.cache=this.cache.slice(16),X}return null},ef.prototype.flush=function(){for(var X=16-this.cache.length,J=et.allocUnsafe(X),Z=-1;++Z>>0,0),J.writeUInt32BE(X[1]>>>0,4),J.writeUInt32BE(X[2]>>>0,8),J.writeUInt32BE(X[3]>>>0,12),J}function er(X){this.h=X,this.state=Q.alloc(16,0),this.cache=Q.allocUnsafe(0)}er.prototype.ghash=function(X){for(var J=-1;++J0;J--)Q[J]=Q[J]>>>1|(1&Q[J-1])<<31;Q[0]=Q[0]>>>1,Z&&(Q[0]=-0x1f000000^Q[0])}this.state=et(ee)},er.prototype.update=function(X){var J;for(this.cache=Q.concat([this.cache,X]);this.cache.length>=16;)J=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(J)},er.prototype.final=function(X,J){return this.cache.length&&this.ghash(Q.concat([this.cache,ee],16)),this.ghash(et([0,X,0,J])),this.state},X.exports=er},1995:function(X){X.exports=function(X){for(var J,Z=X.length;Z--;)if(255===(J=X.readUInt8(Z)))X.writeUInt8(0,Z);else{J++,X.writeUInt8(J,Z);break}}},1635:function(X,J,Z){var Q=Z(6481);J.encrypt=function(X,J){var Z=Q(J,X._prev);return X._prev=X._cipher.encryptBlock(Z),X._prev},J.decrypt=function(X,J){var Z=X._prev;return X._prev=J,Q(X._cipher.decryptBlock(J),Z)}},4312:function(X,J,Z){var Q=Z(5725).Buffer,ee=Z(6481);function et(X,J,Z){var et=J.length,er=ee(J,X._cache);return X._cache=X._cache.slice(et),X._prev=Q.concat([X._prev,Z?J:er]),er}J.encrypt=function(X,J,Z){for(var ee,er=Q.allocUnsafe(0);J.length;)if(0===X._cache.length&&(X._cache=X._cipher.encryptBlock(X._prev),X._prev=Q.allocUnsafe(0)),X._cache.length<=J.length)ee=X._cache.length,er=Q.concat([er,et(X,J.slice(0,ee),Z)]),J=J.slice(ee);else{er=Q.concat([er,et(X,J,Z)]);break}return er}},9225:function(X,J,Z){var Q=Z(5725).Buffer;J.encrypt=function(X,J,Z){for(var ee=J.length,et=Q.allocUnsafe(ee),er=-1;++er>ei%8,X._prev=function(X,J){var Z=X.length,ee=-1,et=Q.allocUnsafe(X.length);for(X=Q.concat([X,Q.from([J])]);++ee>7;return et}(X._prev,Z?et:er);return en}(X,J[er],Z);return et}},610:function(X,J,Z){var Q=Z(5725).Buffer;J.encrypt=function(X,J,Z){for(var ee=J.length,et=Q.allocUnsafe(ee),er=-1;++er=0||!Z.umod(X.prime1)||!Z.umod(X.prime2);)Z=new ee(et(J));return Z}X.exports=er,er.getr=ei},6713:function(X,J,Z){X.exports=Z(3678)},2926:function(X,J,Z){var Q=Z(5725).Buffer,ee=Z(762),et=Z(5486),er=Z(1638),ei=Z(261),en=Z(1541),eo=Z(3678);function ea(X){et.Writable.call(this);var J=eo[X];if(!J)throw Error("Unknown message digest");this._hashType=J.hash,this._hash=ee(J.hash),this._tag=J.id,this._signType=J.sign}function es(X){et.Writable.call(this);var J=eo[X];if(!J)throw Error("Unknown message digest");this._hash=ee(J.hash),this._tag=J.id,this._signType=J.sign}function ef(X){return new ea(X)}function eu(X){return new es(X)}Object.keys(eo).forEach(function(X){eo[X].id=Q.from(eo[X].id,"hex"),eo[X.toLowerCase()]=eo[X]}),er(ea,et.Writable),ea.prototype._write=function(X,J,Z){this._hash.update(X),Z()},ea.prototype.update=function(X,J){return"string"==typeof X&&(X=Q.from(X,J)),this._hash.update(X),this},ea.prototype.sign=function(X,J){this.end();var Z=ei(this._hash.digest(),X,this._hashType,this._signType,this._tag);return J?Z.toString(J):Z},er(es,et.Writable),es.prototype._write=function(X,J,Z){this._hash.update(X),Z()},es.prototype.update=function(X,J){return"string"==typeof X&&(X=Q.from(X,J)),this._hash.update(X),this},es.prototype.verify=function(X,J,Z){return"string"==typeof J&&(J=Q.from(J,Z)),this.end(),en(J,this._hash.digest(),X,this._signType,this._tag)},X.exports={Sign:ef,Verify:eu,createSign:ef,createVerify:eu}},261:function(X,J,Z){var Q=Z(5725).Buffer,ee=Z(3256),et=Z(640),er=Z(2049).ec,ei=Z(1315),en=Z(8012),eo=Z(6456);function ea(X,J,Z,et){if((X=Q.from(X.toArray())).length0&&Z.ishrn(Q),Z}function ef(X,J,Z){var et,er;do{for(et=Q.alloc(0);8*et.length=X.cmpn(0)||X.cmp(J)>=J)throw Error("invalid sig")}X.exports=function(X,J,Z,eo,ea){var es,ef,eu,ec,el,eh,ed,ep,eb,ey,em,eg,ev=er(Z);if("ec"===ev.type){if("ecdsa"!==eo&&"ecdsa/rsa"!==eo)throw Error("wrong public key type");var ew=X,ex=J,e_=ev,eE=ei[e_.data.algorithm.curve.join(".")];if(!eE)throw Error("unknown curve "+e_.data.algorithm.curve.join("."));var eS=new et(eE),eM=e_.data.subjectPrivateKey.data;return eS.verify(ex,ew,eM)}if("dsa"===ev.type){if("dsa"!==eo)throw Error("wrong public key type");return es=X,ef=J,ec=(eu=ev).data.p,el=eu.data.q,eh=eu.data.g,ed=eu.data.pub_key,eb=(ep=er.signature.decode(es,"der")).s,ey=ep.r,en(eb,el),en(ey,el),em=ee.mont(ec),eg=eb.invm(el),0===eh.toRed(em).redPow(new ee(ef).mul(eg).mod(el)).fromRed().mul(ed.toRed(em).redPow(ey.mul(eg).mod(el)).fromRed()).mod(ec).mod(el).cmp(ey)}if("rsa"!==eo&&"ecdsa/rsa"!==eo)throw Error("wrong public key type");J=Q.concat([ea,J]);for(var eA=ev.modulus.byteLength(),eR=[1],eI=0;J.length+eR.length+2Z?J=("rmd160"===X?new en:eo(X)).update(J).digest():J.length64?J=X(J):J.length<64&&(J=ee.concat([J,er],64));for(var Z=this._ipad=ee.allocUnsafe(64),Q=this._opad=ee.allocUnsafe(64),ei=0;ei<64;ei++)Z[ei]=54^J[ei],Q[ei]=92^J[ei];this._hash=[Z]}Q(ei,et),ei.prototype._update=function(X){this._hash.push(X)},ei.prototype._final=function(){var X=this._alg(ee.concat(this._hash));return this._alg(ee.concat([this._opad,X]))},X.exports=ei},55:function(X,J,Z){"use strict";J.utils=Z(4569),J.Cipher=Z(4309),J.DES=Z(8992),J.CBC=Z(42),J.EDE=Z(4960)},42:function(X,J,Z){"use strict";var Q=Z(7551),ee=Z(1638),et={};function er(X){Q.equal(X.length,8,"Invalid IV length"),this.iv=Array(8);for(var J=0;J0;Q--)J+=this._buffer(X,J),Z+=this._flushBuffer(ee,Z);return J+=this._buffer(X,J),ee},ee.prototype.final=function(X){var J,Z;return(X&&(J=this.update(X)),Z="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),J)?J.concat(Z):Z},ee.prototype._pad=function(X,J){if(0===J)return!1;for(;J>>1];Z=et.r28shl(Z,ei),ee=et.r28shl(ee,ei),et.pc2(Z,ee,X.keys,er)}},en.prototype._update=function(X,J,Z,Q){var ee=this._desState,er=et.readUInt32BE(X,J),ei=et.readUInt32BE(X,J+4);et.ip(er,ei,ee.tmp,0),er=ee.tmp[0],ei=ee.tmp[1],"encrypt"===this.type?this._encrypt(ee,er,ei,ee.tmp,0):this._decrypt(ee,er,ei,ee.tmp,0),er=ee.tmp[0],ei=ee.tmp[1],et.writeUInt32BE(Z,er,Q),et.writeUInt32BE(Z,ei,Q+4)},en.prototype._pad=function(X,J){for(var Z=X.length-J,Q=J;Q>>0,er=eu}et.rip(ei,er,Q,ee)},en.prototype._decrypt=function(X,J,Z,Q,ee){for(var er=Z,ei=J,en=X.keys.length-2;en>=0;en-=2){var eo=X.keys[en],ea=X.keys[en+1];et.expand(er,X.tmp,0),eo^=X.tmp[0],ea^=X.tmp[1];var es=et.substitute(eo,ea),ef=et.permute(es),eu=er;er=(ei^ef)>>>0,ei=eu}et.rip(er,ei,Q,ee)}},4960:function(X,J,Z){"use strict";var Q=Z(7551),ee=Z(1638),et=Z(4309),er=Z(8992);function ei(X,J){Q.equal(J.length,24,"Invalid key length");var Z=J.slice(0,8),ee=J.slice(8,16),et=J.slice(16,24);"encrypt"===X?this.ciphers=[er.create({type:"encrypt",key:Z}),er.create({type:"decrypt",key:ee}),er.create({type:"encrypt",key:et})]:this.ciphers=[er.create({type:"decrypt",key:et}),er.create({type:"encrypt",key:ee}),er.create({type:"decrypt",key:Z})]}function en(X){et.call(this,X);var J=new ei(this.type,this.options.key);this._edeState=J}ee(en,et),X.exports=en,en.create=function(X){return new en(X)},en.prototype._update=function(X,J,Z,Q){var ee=this._edeState;ee.ciphers[0]._update(X,J,Z,Q),ee.ciphers[1]._update(Z,Q,Z,Q),ee.ciphers[2]._update(Z,Q,Z,Q)},en.prototype._pad=er.prototype._pad,en.prototype._unpad=er.prototype._unpad},4569:function(X,J){"use strict";J.readUInt32BE=function(X,J){return(X[0+J]<<24|X[1+J]<<16|X[2+J]<<8|X[3+J])>>>0},J.writeUInt32BE=function(X,J,Z){X[0+Z]=J>>>24,X[1+Z]=J>>>16&255,X[2+Z]=J>>>8&255,X[3+Z]=255&J},J.ip=function(X,J,Z,Q){for(var ee=0,et=0,er=6;er>=0;er-=2){for(var ei=0;ei<=24;ei+=8)ee<<=1,ee|=J>>>ei+er&1;for(var ei=0;ei<=24;ei+=8)ee<<=1,ee|=X>>>ei+er&1}for(var er=6;er>=0;er-=2){for(var ei=1;ei<=25;ei+=8)et<<=1,et|=J>>>ei+er&1;for(var ei=1;ei<=25;ei+=8)et<<=1,et|=X>>>ei+er&1}Z[Q+0]=ee>>>0,Z[Q+1]=et>>>0},J.rip=function(X,J,Z,Q){for(var ee=0,et=0,er=0;er<4;er++)for(var ei=24;ei>=0;ei-=8)ee<<=1,ee|=J>>>ei+er&1,ee<<=1,ee|=X>>>ei+er&1;for(var er=4;er<8;er++)for(var ei=24;ei>=0;ei-=8)et<<=1,et|=J>>>ei+er&1,et<<=1,et|=X>>>ei+er&1;Z[Q+0]=ee>>>0,Z[Q+1]=et>>>0},J.pc1=function(X,J,Z,Q){for(var ee=0,et=0,er=7;er>=5;er--){for(var ei=0;ei<=24;ei+=8)ee<<=1,ee|=J>>ei+er&1;for(var ei=0;ei<=24;ei+=8)ee<<=1,ee|=X>>ei+er&1}for(var ei=0;ei<=24;ei+=8)ee<<=1,ee|=J>>ei+er&1;for(var er=1;er<=3;er++){for(var ei=0;ei<=24;ei+=8)et<<=1,et|=J>>ei+er&1;for(var ei=0;ei<=24;ei+=8)et<<=1,et|=X>>ei+er&1}for(var ei=0;ei<=24;ei+=8)et<<=1,et|=X>>ei+er&1;Z[Q+0]=ee>>>0,Z[Q+1]=et>>>0},J.r28shl=function(X,J){return X<>>28-J};var Z=[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];J.pc2=function(X,J,Q,ee){for(var et=0,er=0,ei=Z.length>>>1,en=0;en>>Z[en]&1;for(var en=ei;en>>Z[en]&1;Q[ee+0]=et>>>0,Q[ee+1]=er>>>0},J.expand=function(X,J,Z){var Q=0,ee=0;Q=(1&X)<<5|X>>>27;for(var et=23;et>=15;et-=4)Q<<=6,Q|=X>>>et&63;for(var et=11;et>=3;et-=4)ee|=X>>>et&63,ee<<=6;ee|=(31&X)<<1|X>>>31,J[Z+0]=Q>>>0,J[Z+1]=ee>>>0};var Q=[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];J.substitute=function(X,J){for(var Z=0,ee=0;ee<4;ee++){var et=X>>>18-6*ee&63,er=Q[64*ee+et];Z<<=4,Z|=er}for(var ee=0;ee<4;ee++){var et=J>>>18-6*ee&63,er=Q[256+64*ee+et];Z<<=4,Z|=er}return Z>>>0};var ee=[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];J.permute=function(X){for(var J=0,Z=0;Z>>ee[Z]&1;return J>>>0},J.padSplit=function(X,J,Z){for(var Q=X.toString(2);Q.lengthX;)Z.ishrn(1);if(Z.isEven()&&Z.iadd(ei),Z.testn(1)||Z.iadd(en),J.cmp(en)){if(!J.cmp(eo))for(;Z.mod(ea).cmp(es);)Z.iadd(eu)}else for(;Z.mod(et).cmp(ef);)Z.iadd(eu);if(el(ec=Z.shrn(1))&&el(Z)&&eh(ec)&&eh(Z)&&er.test(ec)&&er.test(Z))return Z}}},2049:function(X,J,Z){"use strict";J.version=Z(4497).rE,J.utils=Z(3355),J.rand=Z(4259),J.curve=Z(7942),J.curves=Z(7736),J.ec=Z(1039),J.eddsa=Z(4226)},4285:function(X,J,Z){"use strict";var Q=Z(5944),ee=Z(3355),et=ee.getNAF,er=ee.getJSF,ei=ee.assert;function en(X,J){this.type=X,this.p=new Q(J.p,16),this.red=J.prime?Q.red(J.prime):Q.mont(this.p),this.zero=new Q(0).toRed(this.red),this.one=new Q(1).toRed(this.red),this.two=new Q(2).toRed(this.red),this.n=J.n&&new Q(J.n,16),this.g=J.g&&this.pointFromJSON(J.g,J.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var Z=this.n&&this.p.div(this.n);!Z||Z.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function eo(X,J){this.curve=X,this.type=J,this.precomputed=null}X.exports=en,en.prototype.point=function(){throw Error("Not implemented")},en.prototype.validate=function(){throw Error("Not implemented")},en.prototype._fixedNafMul=function(X,J){ei(X.precomputed);var Z=X._getDoubles(),Q=et(J,1,this._bitLength),ee=(1<=en;J--)eo=(eo<<1)+Q[J];er.push(eo)}for(var ea=this.jpoint(null,null,null),es=this.jpoint(null,null,null),ef=ee;ef>0;ef--){for(var en=0;en=0;eo--){for(var J=0;eo>=0&&0===er[eo];eo--)J++;if(eo>=0&&J++,en=en.dblp(J),eo<0)break;var ea=er[eo];ei(0!==ea),en="affine"===X.type?ea>0?en.mixedAdd(ee[ea-1>>1]):en.mixedAdd(ee[-ea-1>>1].neg()):ea>0?en.add(ee[ea-1>>1]):en.add(ee[-ea-1>>1].neg())}return"affine"===X.type?en.toP():en},en.prototype._wnafMulAdd=function(X,J,Z,Q,ee){for(var ei=this._wnafT1,en=this._wnafT2,eo=this._wnafT3,ea=0,es=0;es=1;es-=2){var ec=es-1,el=es;if(1!==ei[ec]||1!==ei[el]){eo[ec]=et(Z[ec],ei[ec],this._bitLength),eo[el]=et(Z[el],ei[el],this._bitLength),ea=Math.max(eo[ec].length,ea),ea=Math.max(eo[el].length,ea);continue}var eh=[J[ec],null,null,J[el]];0===J[ec].y.cmp(J[el].y)?(eh[1]=J[ec].add(J[el]),eh[2]=J[ec].toJ().mixedAdd(J[el].neg())):0===J[ec].y.cmp(J[el].y.redNeg())?(eh[1]=J[ec].toJ().mixedAdd(J[el]),eh[2]=J[ec].add(J[el].neg())):(eh[1]=J[ec].toJ().mixedAdd(J[el]),eh[2]=J[ec].toJ().mixedAdd(J[el].neg()));var ed=[-3,-1,-5,-7,0,7,5,1,3],ep=er(Z[ec],Z[el]);ea=Math.max(ep[0].length,ea),eo[ec]=Array(ea),eo[el]=Array(ea);for(var eb=0;eb=0;es--){for(var ew=0;es>=0;){for(var ex=!0,eb=0;eb=0&&ew++,eg=eg.dblp(ew),es<0)break;for(var eb=0;eb0?ef=en[eb][e_-1>>1]:e_<0&&(ef=en[eb][-e_-1>>1].neg()),eg="affine"===ef.type?eg.mixedAdd(ef):eg.add(ef))}}for(var es=0;es=Math.ceil((X.bitLength()+1)/J.step)},eo.prototype._getDoubles=function(X,J){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var Z=[this],Q=this,ee=0;ee":""},eo.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},eo.prototype._extDbl=function(){var X=this.x.redSqr(),J=this.y.redSqr(),Z=this.z.redSqr();Z=Z.redIAdd(Z);var Q=this.curve._mulA(X),ee=this.x.redAdd(this.y).redSqr().redISub(X).redISub(J),et=Q.redAdd(J),er=et.redSub(Z),ei=Q.redSub(J),en=ee.redMul(er),eo=et.redMul(ei),ea=ee.redMul(ei),es=er.redMul(et);return this.curve.point(en,eo,es,ea)},eo.prototype._projDbl=function(){var X,J,Z,Q=this.x.redAdd(this.y).redSqr(),ee=this.x.redSqr(),et=this.y.redSqr();if(this.curve.twisted){var er=this.curve._mulA(ee),ei=er.redAdd(et);if(this.zOne)X=Q.redSub(ee).redSub(et).redMul(ei.redSub(this.curve.two)),J=ei.redMul(er.redSub(et)),Z=ei.redSqr().redSub(ei).redSub(ei);else{var en=this.z.redSqr(),eo=ei.redSub(en).redISub(en);X=Q.redSub(ee).redISub(et).redMul(eo),J=ei.redMul(er.redSub(et)),Z=ei.redMul(eo)}}else{var er=ee.redAdd(et),en=this.curve._mulC(this.z).redSqr(),eo=er.redSub(en).redSub(en);X=this.curve._mulC(Q.redISub(er)).redMul(eo),J=this.curve._mulC(er).redMul(ee.redISub(et)),Z=er.redMul(eo)}return this.curve.point(X,J,Z)},eo.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},eo.prototype._extAdd=function(X){var J=this.y.redSub(this.x).redMul(X.y.redSub(X.x)),Z=this.y.redAdd(this.x).redMul(X.y.redAdd(X.x)),Q=this.t.redMul(this.curve.dd).redMul(X.t),ee=this.z.redMul(X.z.redAdd(X.z)),et=Z.redSub(J),er=ee.redSub(Q),ei=ee.redAdd(Q),en=Z.redAdd(J),eo=et.redMul(er),ea=ei.redMul(en),es=et.redMul(en),ef=er.redMul(ei);return this.curve.point(eo,ea,ef,es)},eo.prototype._projAdd=function(X){var J,Z,Q=this.z.redMul(X.z),ee=Q.redSqr(),et=this.x.redMul(X.x),er=this.y.redMul(X.y),ei=this.curve.d.redMul(et).redMul(er),en=ee.redSub(ei),eo=ee.redAdd(ei),ea=this.x.redAdd(this.y).redMul(X.x.redAdd(X.y)).redISub(et).redISub(er),es=Q.redMul(en).redMul(ea);return this.curve.twisted?(J=Q.redMul(eo).redMul(er.redSub(this.curve._mulA(et))),Z=en.redMul(eo)):(J=Q.redMul(eo).redMul(er.redSub(et)),Z=this.curve._mulC(en).redMul(eo)),this.curve.point(es,J,Z)},eo.prototype.add=function(X){return this.isInfinity()?X:X.isInfinity()?this:this.curve.extended?this._extAdd(X):this._projAdd(X)},eo.prototype.mul=function(X){return this._hasDoubles(X)?this.curve._fixedNafMul(this,X):this.curve._wnafMul(this,X)},eo.prototype.mulAdd=function(X,J,Z){return this.curve._wnafMulAdd(1,[this,J],[X,Z],2,!1)},eo.prototype.jmulAdd=function(X,J,Z){return this.curve._wnafMulAdd(1,[this,J],[X,Z],2,!0)},eo.prototype.normalize=function(){if(this.zOne)return this;var X=this.z.redInvm();return this.x=this.x.redMul(X),this.y=this.y.redMul(X),this.t&&(this.t=this.t.redMul(X)),this.z=this.curve.one,this.zOne=!0,this},eo.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},eo.prototype.getX=function(){return this.normalize(),this.x.fromRed()},eo.prototype.getY=function(){return this.normalize(),this.y.fromRed()},eo.prototype.eq=function(X){return this===X||0===this.getX().cmp(X.getX())&&0===this.getY().cmp(X.getY())},eo.prototype.eqXToP=function(X){var J=X.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(J))return!0;for(var Z=X.clone(),Q=this.curve.redN.redMul(this.z);;){if(Z.iadd(this.curve.n),Z.cmp(this.curve.p)>=0)return!1;if(J.redIAdd(Q),0===this.x.cmp(J))return!0}},eo.prototype.toP=eo.prototype.normalize,eo.prototype.mixedAdd=eo.prototype.add},7942:function(X,J,Z){"use strict";J.base=Z(4285),J.short=Z(2252),J.mont=Z(5274),J.edwards=Z(3546)},5274:function(X,J,Z){"use strict";var Q=Z(5944),ee=Z(1638),et=Z(4285),er=Z(3355);function ei(X){et.call(this,"mont",X),this.a=new Q(X.a,16).toRed(this.red),this.b=new Q(X.b,16).toRed(this.red),this.i4=new Q(4).toRed(this.red).redInvm(),this.two=new Q(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function en(X,J,Z){et.BasePoint.call(this,X,"projective"),null===J&&null===Z?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Q(J,16),this.z=new Q(Z,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}ee(ei,et),X.exports=ei,ei.prototype.validate=function(X){var J=X.normalize().x,Z=J.redSqr(),Q=Z.redMul(J).redAdd(Z.redMul(this.a)).redAdd(J);return 0===Q.redSqrt().redSqr().cmp(Q)},ee(en,et.BasePoint),ei.prototype.decodePoint=function(X,J){return this.point(er.toArray(X,J),1)},ei.prototype.point=function(X,J){return new en(this,X,J)},ei.prototype.pointFromJSON=function(X){return en.fromJSON(this,X)},en.prototype.precompute=function(){},en.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},en.fromJSON=function(X,J){return new en(X,J[0],J[1]||X.one)},en.prototype.inspect=function(){return this.isInfinity()?"":""},en.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},en.prototype.dbl=function(){var X=this.x.redAdd(this.z).redSqr(),J=this.x.redSub(this.z).redSqr(),Z=X.redSub(J),Q=X.redMul(J),ee=Z.redMul(J.redAdd(this.curve.a24.redMul(Z)));return this.curve.point(Q,ee)},en.prototype.add=function(){throw Error("Not supported on Montgomery curve")},en.prototype.diffAdd=function(X,J){var Z=this.x.redAdd(this.z),Q=this.x.redSub(this.z),ee=X.x.redAdd(X.z),et=X.x.redSub(X.z).redMul(Z),er=ee.redMul(Q),ei=J.z.redMul(et.redAdd(er).redSqr()),en=J.x.redMul(et.redISub(er).redSqr());return this.curve.point(ei,en)},en.prototype.mul=function(X){for(var J=X.clone(),Z=this,Q=this.curve.point(null,null),ee=[];0!==J.cmpn(0);J.iushrn(1))ee.push(J.andln(1));for(var et=ee.length-1;et>=0;et--)0===ee[et]?(Z=Z.diffAdd(Q,this),Q=Q.dbl()):(Q=Z.diffAdd(Q,this),Z=Z.dbl());return Q},en.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},en.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},en.prototype.eq=function(X){return 0===this.getX().cmp(X.getX())},en.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},en.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},2252:function(X,J,Z){"use strict";var Q=Z(3355),ee=Z(5944),et=Z(1638),er=Z(4285),ei=Q.assert;function en(X){er.call(this,"short",X),this.a=new ee(X.a,16).toRed(this.red),this.b=new ee(X.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(X),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function eo(X,J,Z,Q){er.BasePoint.call(this,X,"affine"),null===J&&null===Z?(this.x=null,this.y=null,this.inf=!0):(this.x=new ee(J,16),this.y=new ee(Z,16),Q&&(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 ea(X,J,Z,Q){er.BasePoint.call(this,X,"jacobian"),null===J&&null===Z&&null===Q?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ee(0)):(this.x=new ee(J,16),this.y=new ee(Z,16),this.z=new ee(Q,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}et(en,er),X.exports=en,en.prototype._getEndomorphism=function(X){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(X.beta)J=new ee(X.beta,16).toRed(this.red);else{var J,Z,Q,et=this._getEndoRoots(this.p);J=(J=0>et[0].cmp(et[1])?et[0]:et[1]).toRed(this.red)}if(X.lambda)Z=new ee(X.lambda,16);else{var er=this._getEndoRoots(this.n);0===this.g.mul(er[0]).x.cmp(this.g.x.redMul(J))?Z=er[0]:(Z=er[1],ei(0===this.g.mul(Z).x.cmp(this.g.x.redMul(J))))}return Q=X.basis?X.basis.map(function(X){return{a:new ee(X.a,16),b:new ee(X.b,16)}}):this._getEndoBasis(Z),{beta:J,lambda:Z,basis:Q}}},en.prototype._getEndoRoots=function(X){var J=X===this.p?this.red:ee.mont(X),Z=new ee(2).toRed(J).redInvm(),Q=Z.redNeg(),et=new ee(3).toRed(J).redNeg().redSqrt().redMul(Z);return[Q.redAdd(et).fromRed(),Q.redSub(et).fromRed()]},en.prototype._getEndoBasis=function(X){for(var J,Z,Q,et,er,ei,en,eo,ea,es=this.n.ushrn(Math.floor(this.n.bitLength()/2)),ef=X,eu=this.n.clone(),ec=new ee(1),el=new ee(0),eh=new ee(0),ed=new ee(1),ep=0;0!==ef.cmpn(0);){var eb=eu.div(ef);eo=eu.sub(eb.mul(ef)),ea=eh.sub(eb.mul(ec));var ey=ed.sub(eb.mul(el));if(!Q&&0>eo.cmp(es))J=en.neg(),Z=ec,Q=eo.neg(),et=ea;else if(Q&&2==++ep)break;en=eo,eu=ef,ef=eo,eh=ec,ec=ea,ed=el,el=ey}er=eo.neg(),ei=ea;var em=Q.sqr().add(et.sqr());return er.sqr().add(ei.sqr()).cmp(em)>=0&&(er=J,ei=Z),Q.negative&&(Q=Q.neg(),et=et.neg()),er.negative&&(er=er.neg(),ei=ei.neg()),[{a:Q,b:et},{a:er,b:ei}]},en.prototype._endoSplit=function(X){var J=this.endo.basis,Z=J[0],Q=J[1],ee=Q.b.mul(X).divRound(this.n),et=Z.b.neg().mul(X).divRound(this.n),er=ee.mul(Z.a),ei=et.mul(Q.a),en=ee.mul(Z.b),eo=et.mul(Q.b);return{k1:X.sub(er).sub(ei),k2:en.add(eo).neg()}},en.prototype.pointFromX=function(X,J){(X=new ee(X,16)).red||(X=X.toRed(this.red));var Z=X.redSqr().redMul(X).redIAdd(X.redMul(this.a)).redIAdd(this.b),Q=Z.redSqrt();if(0!==Q.redSqr().redSub(Z).cmp(this.zero))throw Error("invalid point");var et=Q.fromRed().isOdd();return(J&&!et||!J&&et)&&(Q=Q.redNeg()),this.point(X,Q)},en.prototype.validate=function(X){if(X.inf)return!0;var J=X.x,Z=X.y,Q=this.a.redMul(J),ee=J.redSqr().redMul(J).redIAdd(Q).redIAdd(this.b);return 0===Z.redSqr().redISub(ee).cmpn(0)},en.prototype._endoWnafMulAdd=function(X,J,Z){for(var Q=this._endoWnafT1,ee=this._endoWnafT2,et=0;et":""},eo.prototype.isInfinity=function(){return this.inf},eo.prototype.add=function(X){if(this.inf)return X;if(X.inf)return this;if(this.eq(X))return this.dbl();if(this.neg().eq(X)||0===this.x.cmp(X.x))return this.curve.point(null,null);var J=this.y.redSub(X.y);0!==J.cmpn(0)&&(J=J.redMul(this.x.redSub(X.x).redInvm()));var Z=J.redSqr().redISub(this.x).redISub(X.x),Q=J.redMul(this.x.redSub(Z)).redISub(this.y);return this.curve.point(Z,Q)},eo.prototype.dbl=function(){if(this.inf)return this;var X=this.y.redAdd(this.y);if(0===X.cmpn(0))return this.curve.point(null,null);var J=this.curve.a,Z=this.x.redSqr(),Q=X.redInvm(),ee=Z.redAdd(Z).redIAdd(Z).redIAdd(J).redMul(Q),et=ee.redSqr().redISub(this.x.redAdd(this.x)),er=ee.redMul(this.x.redSub(et)).redISub(this.y);return this.curve.point(et,er)},eo.prototype.getX=function(){return this.x.fromRed()},eo.prototype.getY=function(){return this.y.fromRed()},eo.prototype.mul=function(X){return(X=new ee(X,16),this.isInfinity())?this:this._hasDoubles(X)?this.curve._fixedNafMul(this,X):this.curve.endo?this.curve._endoWnafMulAdd([this],[X]):this.curve._wnafMul(this,X)},eo.prototype.mulAdd=function(X,J,Z){var Q=[this,J],ee=[X,Z];return this.curve.endo?this.curve._endoWnafMulAdd(Q,ee):this.curve._wnafMulAdd(1,Q,ee,2)},eo.prototype.jmulAdd=function(X,J,Z){var Q=[this,J],ee=[X,Z];return this.curve.endo?this.curve._endoWnafMulAdd(Q,ee,!0):this.curve._wnafMulAdd(1,Q,ee,2,!0)},eo.prototype.eq=function(X){return this===X||this.inf===X.inf&&(this.inf||0===this.x.cmp(X.x)&&0===this.y.cmp(X.y))},eo.prototype.neg=function(X){if(this.inf)return this;var J=this.curve.point(this.x,this.y.redNeg());if(X&&this.precomputed){var Z=this.precomputed,Q=function(X){return X.neg()};J.precomputed={naf:Z.naf&&{wnd:Z.naf.wnd,points:Z.naf.points.map(Q)},doubles:Z.doubles&&{step:Z.doubles.step,points:Z.doubles.points.map(Q)}}}return J},eo.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},et(ea,er.BasePoint),en.prototype.jpoint=function(X,J,Z){return new ea(this,X,J,Z)},ea.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var X=this.z.redInvm(),J=X.redSqr(),Z=this.x.redMul(J),Q=this.y.redMul(J).redMul(X);return this.curve.point(Z,Q)},ea.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},ea.prototype.add=function(X){if(this.isInfinity())return X;if(X.isInfinity())return this;var J=X.z.redSqr(),Z=this.z.redSqr(),Q=this.x.redMul(J),ee=X.x.redMul(Z),et=this.y.redMul(J.redMul(X.z)),er=X.y.redMul(Z.redMul(this.z)),ei=Q.redSub(ee),en=et.redSub(er);if(0===ei.cmpn(0))if(0!==en.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var eo=ei.redSqr(),ea=eo.redMul(ei),es=Q.redMul(eo),ef=en.redSqr().redIAdd(ea).redISub(es).redISub(es),eu=en.redMul(es.redISub(ef)).redISub(et.redMul(ea)),ec=this.z.redMul(X.z).redMul(ei);return this.curve.jpoint(ef,eu,ec)},ea.prototype.mixedAdd=function(X){if(this.isInfinity())return X.toJ();if(X.isInfinity())return this;var J=this.z.redSqr(),Z=this.x,Q=X.x.redMul(J),ee=this.y,et=X.y.redMul(J).redMul(this.z),er=Z.redSub(Q),ei=ee.redSub(et);if(0===er.cmpn(0))if(0!==ei.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var en=er.redSqr(),eo=en.redMul(er),ea=Z.redMul(en),es=ei.redSqr().redIAdd(eo).redISub(ea).redISub(ea),ef=ei.redMul(ea.redISub(es)).redISub(ee.redMul(eo)),eu=this.z.redMul(er);return this.curve.jpoint(es,ef,eu)},ea.prototype.dblp=function(X){if(0===X||this.isInfinity())return this;if(!X)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var J=this,Z=0;Z=0)return!1;if(Z.redIAdd(ee),0===this.x.cmp(Z))return!0}},ea.prototype.inspect=function(){return this.isInfinity()?"":""},ea.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},7736:function(X,J,Z){"use strict";var Q,ee=Z(8044),et=Z(7942),er=Z(3355).assert;function ei(X){"short"===X.type?this.curve=new et.short(X):"edwards"===X.type?this.curve=new et.edwards(X):this.curve=new et.mont(X),this.g=this.curve.g,this.n=this.curve.n,this.hash=X.hash,er(this.g.validate(),"Invalid curve"),er(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function en(X,Z){Object.defineProperty(J,X,{configurable:!0,enumerable:!0,get:function(){var Q=new ei(Z);return Object.defineProperty(J,X,{configurable:!0,enumerable:!0,value:Q}),Q}})}J.PresetCurve=ei,en("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:ee.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),en("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:ee.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),en("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:ee.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),en("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:ee.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"]}),en("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:ee.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"]}),en("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ee.sha256,gRed:!1,g:["9"]}),en("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:ee.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{Q=Z(5827)}catch(X){Q=void 0}en("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:ee.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",Q]})},1039:function(X,J,Z){"use strict";var Q=Z(5944),ee=Z(3730),et=Z(3355),er=Z(7736),ei=Z(4259),en=et.assert,eo=Z(2632),ea=Z(4233);function es(X){if(!(this instanceof es))return new es(X);"string"==typeof X&&(en(er.hasOwnProperty(X),"Unknown curve "+X),X=er[X]),X instanceof er.PresetCurve&&(X={curve:X}),this.curve=X.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=X.curve.g,this.g.precompute(X.curve.n.bitLength()+1),this.hash=X.hash||X.curve.hash}X.exports=es,es.prototype.keyPair=function(X){return new eo(this,X)},es.prototype.keyFromPrivate=function(X,J){return eo.fromPrivate(this,X,J)},es.prototype.keyFromPublic=function(X,J){return eo.fromPublic(this,X,J)},es.prototype.genKeyPair=function(X){X||(X={});for(var J=new ee({hash:this.hash,pers:X.pers,persEnc:X.persEnc||"utf8",entropy:X.entropy||ei(this.hash.hmacStrength),entropyEnc:X.entropy&&X.entropyEnc||"utf8",nonce:this.n.toArray()}),Z=this.n.byteLength(),et=this.n.sub(new Q(2));;){var er=new Q(J.generate(Z));if(!(er.cmp(et)>0))return er.iaddn(1),this.keyFromPrivate(er)}},es.prototype._truncateToN=function(X,J){var Z=8*X.byteLength()-this.n.bitLength();return(Z>0&&(X=X.ushrn(Z)),!J&&X.cmp(this.n)>=0)?X.sub(this.n):X},es.prototype.sign=function(X,J,Z,et){"object"==typeof Z&&(et=Z,Z=null),et||(et={}),J=this.keyFromPrivate(J,Z),X=this._truncateToN(new Q(X,16));for(var er=this.n.byteLength(),ei=J.getPrivate().toArray("be",er),en=X.toArray("be",er),eo=new ee({hash:this.hash,entropy:ei,nonce:en,pers:et.pers,persEnc:et.persEnc||"utf8"}),es=this.n.sub(new Q(1)),ef=0;;ef++){var eu=et.k?et.k(ef):new Q(eo.generate(this.n.byteLength()));if(0>=(eu=this._truncateToN(eu,!0)).cmpn(1)||eu.cmp(es)>=0)continue;var ec=this.g.mul(eu);if(!ec.isInfinity()){var el=ec.getX(),eh=el.umod(this.n);if(0!==eh.cmpn(0)){var ed=eu.invm(this.n).mul(eh.mul(J.getPrivate()).iadd(X));if(0!==(ed=ed.umod(this.n)).cmpn(0)){var ep=!!ec.getY().isOdd()|2*(0!==el.cmp(eh));return et.canonical&&ed.cmp(this.nh)>0&&(ed=this.n.sub(ed),ep^=1),new ea({r:eh,s:ed,recoveryParam:ep})}}}}},es.prototype.verify=function(X,J,Z,ee){X=this._truncateToN(new Q(X,16)),Z=this.keyFromPublic(Z,ee);var et=(J=new ea(J,"hex")).r,er=J.s;if(0>et.cmpn(1)||et.cmp(this.n)>=0||0>er.cmpn(1)||er.cmp(this.n)>=0)return!1;var ei=er.invm(this.n),en=ei.mul(X).umod(this.n),eo=ei.mul(et).umod(this.n);if(!this.curve._maxwellTrick){var es=this.g.mulAdd(en,Z.getPublic(),eo);return!es.isInfinity()&&0===es.getX().umod(this.n).cmp(et)}var es=this.g.jmulAdd(en,Z.getPublic(),eo);return!es.isInfinity()&&es.eqXToP(et)},es.prototype.recoverPubKey=function(X,J,Z,ee){en((3&Z)===Z,"The recovery param is more than two bits"),J=new ea(J,ee);var et=this.n,er=new Q(X),ei=J.r,eo=J.s,es=1&Z,ef=Z>>1;if(ei.cmp(this.curve.p.umod(this.curve.n))>=0&&ef)throw Error("Unable to find sencond key candinate");ei=ef?this.curve.pointFromX(ei.add(this.curve.n),es):this.curve.pointFromX(ei,es);var eu=J.r.invm(et),ec=et.sub(er).mul(eu).umod(et),el=eo.mul(eu).umod(et);return this.g.mulAdd(ec,ei,el)},es.prototype.getKeyRecoveryParam=function(X,J,Z,Q){if(null!==(J=new ea(J,Q)).recoveryParam)return J.recoveryParam;for(var ee,et=0;et<4;et++){try{ee=this.recoverPubKey(X,J,et)}catch(X){continue}if(ee.eq(Z))return et}throw Error("Unable to find valid recovery factor")}},2632:function(X,J,Z){"use strict";var Q=Z(5944),ee=Z(3355).assert;function et(X,J){this.ec=X,this.priv=null,this.pub=null,J.priv&&this._importPrivate(J.priv,J.privEnc),J.pub&&this._importPublic(J.pub,J.pubEnc)}X.exports=et,et.fromPublic=function(X,J,Z){return J instanceof et?J:new et(X,{pub:J,pubEnc:Z})},et.fromPrivate=function(X,J,Z){return J instanceof et?J:new et(X,{priv:J,privEnc:Z})},et.prototype.validate=function(){var X=this.getPublic();return X.isInfinity()?{result:!1,reason:"Invalid public key"}:X.validate()?X.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"}},et.prototype.getPublic=function(X,J){return("string"==typeof X&&(J=X,X=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),J)?this.pub.encode(J,X):this.pub},et.prototype.getPrivate=function(X){return"hex"===X?this.priv.toString(16,2):this.priv},et.prototype._importPrivate=function(X,J){this.priv=new Q(X,J||16),this.priv=this.priv.umod(this.ec.curve.n)},et.prototype._importPublic=function(X,J){if(X.x||X.y){"mont"===this.ec.curve.type?ee(X.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&ee(X.x&&X.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(X.x,X.y);return}this.pub=this.ec.curve.decodePoint(X,J)},et.prototype.derive=function(X){return X.mul(this.priv).getX()},et.prototype.sign=function(X,J,Z){return this.ec.sign(X,this,J,Z)},et.prototype.verify=function(X,J){return this.ec.verify(X,J,this)},et.prototype.inspect=function(){return""}},4233:function(X,J,Z){"use strict";var Q=Z(5944),ee=Z(3355),et=ee.assert;function er(X,J){if(X instanceof er)return X;this._importDER(X,J)||(et(X.r&&X.s,"Signature without r or s"),this.r=new Q(X.r,16),this.s=new Q(X.s,16),void 0===X.recoveryParam?this.recoveryParam=null:this.recoveryParam=X.recoveryParam)}function ei(){this.place=0}function en(X,J){var Z=X[J.place++];if(!(128&Z))return Z;var Q=15&Z;if(0===Q||Q>4)return!1;for(var ee=0,et=0,er=J.place;et>>=0;return!(ee<=127)&&(J.place=er,ee)}function eo(X){for(var J=0,Z=X.length-1;!X[J]&&!(128&X[J+1])&&J>>3);for(X.push(128|Z);--Z;)X.push(J>>>(Z<<3)&255);X.push(J)}X.exports=er,er.prototype._importDER=function(X,J){X=ee.toArray(X,J);var Z=new ei;if(48!==X[Z.place++])return!1;var et=en(X,Z);if(!1===et||et+Z.place!==X.length||2!==X[Z.place++])return!1;var er=en(X,Z);if(!1===er)return!1;var eo=X.slice(Z.place,er+Z.place);if(Z.place+=er,2!==X[Z.place++])return!1;var ea=en(X,Z);if(!1===ea||X.length!==ea+Z.place)return!1;var es=X.slice(Z.place,ea+Z.place);if(0===eo[0])if(!(128&eo[1]))return!1;else eo=eo.slice(1);if(0===es[0])if(!(128&es[1]))return!1;else es=es.slice(1);return this.r=new Q(eo),this.s=new Q(es),this.recoveryParam=null,!0},er.prototype.toDER=function(X){var J=this.r.toArray(),Z=this.s.toArray();for(128&J[0]&&(J=[0].concat(J)),128&Z[0]&&(Z=[0].concat(Z)),J=eo(J),Z=eo(Z);!Z[0]&&!(128&Z[1]);)Z=Z.slice(1);var Q=[2];ea(Q,J.length),(Q=Q.concat(J)).push(2),ea(Q,Z.length);var et=Q.concat(Z),er=[48];return ea(er,et.length),er=er.concat(et),ee.encode(er,X)}},4226:function(X,J,Z){"use strict";var Q=Z(8044),ee=Z(7736),et=Z(3355),er=et.assert,ei=et.parseBytes,en=Z(1101),eo=Z(2164);function ea(X){if(er("ed25519"===X,"only tested with ed25519 so far"),!(this instanceof ea))return new ea(X);var X=ee[X].curve;this.curve=X,this.g=X.g,this.g.precompute(X.n.bitLength()+1),this.pointClass=X.point().constructor,this.encodingLength=Math.ceil(X.n.bitLength()/8),this.hash=Q.sha512}X.exports=ea,ea.prototype.sign=function(X,J){X=ei(X);var Z=this.keyFromSecret(J),Q=this.hashInt(Z.messagePrefix(),X),ee=this.g.mul(Q),et=this.encodePoint(ee),er=this.hashInt(et,Z.pubBytes(),X).mul(Z.priv()),en=Q.add(er).umod(this.curve.n);return this.makeSignature({R:ee,S:en,Rencoded:et})},ea.prototype.verify=function(X,J,Z){X=ei(X),J=this.makeSignature(J);var Q=this.keyFromPublic(Z),ee=this.hashInt(J.Rencoded(),Q.pubBytes(),X),et=this.g.mul(J.S());return J.R().add(Q.pub().mul(ee)).eq(et)},ea.prototype.hashInt=function(){for(var X=this.hash(),J=0;J(ee>>1)-1?(ee>>1)-en:en,et.isubn(ei)):ei=0,Q[er]=ei,et.iushrn(1)}return Q},J.getJSF=function(X,J){var Z=[[],[]];X=X.clone(),J=J.clone();for(var Q=0,ee=0;X.cmpn(-Q)>0||J.cmpn(-ee)>0;){var et,er,ei=X.andln(3)+Q&3,en=J.andln(3)+ee&3;if(3===ei&&(ei=-1),3===en&&(en=-1),(1&ei)==0)et=0;else{var eo=X.andln(7)+Q&7;et=(3===eo||5===eo)&&2===en?-ei:ei}if(Z[0].push(et),(1&en)==0)er=0;else{var eo=J.andln(7)+ee&7;er=(3===eo||5===eo)&&2===ei?-en:en}Z[1].push(er),2*Q===et+1&&(Q=1-Q),2*ee===er+1&&(ee=1-ee),X.iushrn(1),J.iushrn(1)}return Z},J.cachedProperty=function(X,J,Z){var Q="_"+J;X.prototype[J]=function(){return void 0!==this[Q]?this[Q]:this[Q]=Z.call(this)}},J.parseBytes=function(X){return"string"==typeof X?J.toArray(X,"hex"):X},J.intFromLE=function(X){return new Q(X,"hex","le")}},689:function(X,J,Z){var Q=Z(5725).Buffer,ee=Z(3858);X.exports=function(X,J,Z,et){if(Q.isBuffer(X)||(X=Q.from(X,"binary")),J&&(Q.isBuffer(J)||(J=Q.from(J,"binary")),8!==J.length))throw RangeError("salt should be Buffer with 8 byte length");for(var er=Z/8,ei=Q.alloc(er),en=Q.alloc(et||0),eo=Q.alloc(0);er>0||et>0;){var ea=new ee;ea.update(eo),ea.update(X),J&&ea.update(J),eo=ea.digest();var es=0;if(er>0){var ef=ei.length-er;es=Math.min(er,eo.length),eo.copy(ei,ef,0,es),er-=es}if(es0){var eu=en.length-et,ec=Math.min(et,eo.length-es);eo.copy(en,eu,es,es+ec),et-=ec}}return eo.fill(0),{key:ei,iv:en}}},2321:function(X,J,Z){"use strict";var Q=Z(5725).Buffer,ee=Z(5486).Transform;function et(X){ee.call(this),this._block=Q.allocUnsafe(X),this._blockSize=X,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Z(1638)(et,ee),et.prototype._transform=function(X,J,Z){var Q=null;try{this.update(X,J)}catch(X){Q=X}Z(Q)},et.prototype._flush=function(X){var J=null;try{this.push(this.digest())}catch(X){J=X}X(J)},et.prototype.update=function(X,J){var Z=X;if(!Q.isBuffer(Z)&&"string"!=typeof Z)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");Q.isBuffer(X)||(X=Q.from(X,J));for(var ee=this._block,et=0;this._blockOffset+X.length-et>=this._blockSize;){for(var er=this._blockOffset;er0;++ei)this._length[ei]+=en,(en=this._length[ei]/0x100000000|0)>0&&(this._length[ei]-=0x100000000*en);return this},et.prototype._update=function(){throw Error("_update is not implemented")},et.prototype.digest=function(X){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var J=this._digest();void 0!==X&&(J=J.toString(X)),this._block.fill(0),this._blockOffset=0;for(var Z=0;Z<4;++Z)this._length[Z]=0;return J},et.prototype._digest=function(){throw Error("_digest is not implemented")},X.exports=et},8044:function(X,J,Z){J.utils=Z(6302),J.common=Z(1226),J.sha=Z(4857),J.ripemd=Z(9956),J.hmac=Z(2184),J.sha1=J.sha.sha1,J.sha256=J.sha.sha256,J.sha224=J.sha.sha224,J.sha384=J.sha.sha384,J.sha512=J.sha.sha512,J.ripemd160=J.ripemd.ripemd160},1226:function(X,J,Z){"use strict";var Q=Z(6302),ee=Z(7551);function et(){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}J.BlockHash=et,et.prototype.update=function(X,J){if(X=Q.toArray(X,J),this.pending?this.pending=this.pending.concat(X):this.pending=X,this.pendingTotal+=X.length,this.pending.length>=this._delta8){var Z=(X=this.pending).length%this._delta8;this.pending=X.slice(X.length-Z,X.length),0===this.pending.length&&(this.pending=null),X=Q.join32(X,0,X.length-Z,this.endian);for(var ee=0;ee>>24&255,Q[ee++]=X>>>16&255,Q[ee++]=X>>>8&255,Q[ee++]=255&X}else for(Q[ee++]=255&X,Q[ee++]=X>>>8&255,Q[ee++]=X>>>16&255,Q[ee++]=X>>>24&255,Q[ee++]=0,Q[ee++]=0,Q[ee++]=0,Q[ee++]=0,et=8;etthis.blockSize&&(X=(new this.Hash).update(X).digest()),ee(X.length<=this.blockSize);for(var J=X.length;J>>3},J.g1_256=function(X){return Q(X,17)^Q(X,19)^X>>>10}},6302:function(X,J,Z){"use strict";var Q=Z(7551);function ee(X){return(X>>>24|X>>>8&65280|X<<8&0xff0000|(255&X)<<24)>>>0}function et(X){return 1===X.length?"0"+X:X}function er(X){if(7===X.length)return"0"+X;if(6===X.length)return"00"+X;if(5===X.length)return"000"+X;if(4===X.length)return"0000"+X;if(3===X.length)return"00000"+X;else if(2===X.length)return"000000"+X;else if(1===X.length)return"0000000"+X;else return X}J.inherits=Z(1638),J.toArray=function(X,J){if(Array.isArray(X))return X.slice();if(!X)return[];var Z=[];if("string"==typeof X)if(J){if("hex"===J)for((X=X.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(X="0"+X),ee=0;ee>6|192:((et=X,er=ee,(64512&et.charCodeAt(er))!=55296||er<0||er+1>=et.length?1:(64512&et.charCodeAt(er+1))!=56320)?Z[Q++]=ei>>12|224:(ei=65536+((1023&ei)<<10)+(1023&X.charCodeAt(++ee)),Z[Q++]=ei>>18|240,Z[Q++]=ei>>12&63|128),Z[Q++]=ei>>6&63|128),Z[Q++]=63&ei|128)}else for(ee=0;ee>>0;return ei},J.split32=function(X,J){for(var Z=Array(4*X.length),Q=0,ee=0;Q>>24,Z[ee+1]=et>>>16&255,Z[ee+2]=et>>>8&255,Z[ee+3]=255&et):(Z[ee+3]=et>>>24,Z[ee+2]=et>>>16&255,Z[ee+1]=et>>>8&255,Z[ee]=255&et)}return Z},J.rotr32=function(X,J){return X>>>J|X<<32-J},J.rotl32=function(X,J){return X<>>32-J},J.sum32=function(X,J){return X+J>>>0},J.sum32_3=function(X,J,Z){return X+J+Z>>>0},J.sum32_4=function(X,J,Z,Q){return X+J+Z+Q>>>0},J.sum32_5=function(X,J,Z,Q,ee){return X+J+Z+Q+ee>>>0},J.sum64=function(X,J,Z,Q){var ee=X[J],et=Q+X[J+1]>>>0;X[J]=+(et>>0,X[J+1]=et},J.sum64_hi=function(X,J,Z,Q){return+(J+Q>>>0>>0},J.sum64_lo=function(X,J,Z,Q){return J+Q>>>0},J.sum64_4_hi=function(X,J,Z,Q,ee,et,er,ei){var en,eo=J;return X+Z+ee+er+(en=0+ +((eo=eo+Q>>>0)>>0)>>0)>>0},J.sum64_4_lo=function(X,J,Z,Q,ee,et,er,ei){return J+Q+et+ei>>>0},J.sum64_5_hi=function(X,J,Z,Q,ee,et,er,ei,en,eo){var ea,es=J;return X+Z+ee+er+en+(ea=0+ +((es=es+Q>>>0)>>0)>>0)>>0)>>0},J.sum64_5_lo=function(X,J,Z,Q,ee,et,er,ei,en,eo){return J+Q+et+ei+eo>>>0},J.rotr64_hi=function(X,J,Z){return(J<<32-Z|X>>>Z)>>>0},J.rotr64_lo=function(X,J,Z){return(X<<32-Z|J>>>Z)>>>0},J.shr64_hi=function(X,J,Z){return X>>>Z},J.shr64_lo=function(X,J,Z){return(X<<32-Z|J>>>Z)>>>0}},3730:function(X,J,Z){"use strict";var Q=Z(8044),ee=Z(7356),et=Z(7551);function er(X){if(!(this instanceof er))return new er(X);this.hash=X.hash,this.predResist=!!X.predResist,this.outLen=this.hash.outSize,this.minEntropy=X.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var J=ee.toArray(X.entropy,X.entropyEnc||"hex"),Z=ee.toArray(X.nonce,X.nonceEnc||"hex"),Q=ee.toArray(X.pers,X.persEnc||"hex");et(J.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(J,Z,Q)}X.exports=er,er.prototype._init=function(X,J,Z){var Q=X.concat(J).concat(Z);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var ee=0;ee=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(X.concat(Z||[])),this._reseed=1},er.prototype.generate=function(X,J,Z,Q){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof J&&(Q=Z,Z=J,J=null),Z&&(Z=ee.toArray(Z,Q||"hex"),this._update(Z));for(var et=[];et.length>>32-J}function eo(X,J,Z,Q,ee,et,er){return en(X+(J&Z|~J&Q)+ee+et|0,er)+J|0}function ea(X,J,Z,Q,ee,et,er){return en(X+(J&Q|Z&~Q)+ee+et|0,er)+J|0}function es(X,J,Z,Q,ee,et,er){return en(X+(J^Z^Q)+ee+et|0,er)+J|0}function ef(X,J,Z,Q,ee,et,er){return en(X+(Z^(J|~Q))+ee+et|0,er)+J|0}Q(ei,ee),ei.prototype._update=function(){for(var X=0;X<16;++X)er[X]=this._block.readInt32LE(4*X);var J=this._a,Z=this._b,Q=this._c,ee=this._d;J=eo(J,Z,Q,ee,er[0],0xd76aa478,7),ee=eo(ee,J,Z,Q,er[1],0xe8c7b756,12),Q=eo(Q,ee,J,Z,er[2],0x242070db,17),Z=eo(Z,Q,ee,J,er[3],0xc1bdceee,22),J=eo(J,Z,Q,ee,er[4],0xf57c0faf,7),ee=eo(ee,J,Z,Q,er[5],0x4787c62a,12),Q=eo(Q,ee,J,Z,er[6],0xa8304613,17),Z=eo(Z,Q,ee,J,er[7],0xfd469501,22),J=eo(J,Z,Q,ee,er[8],0x698098d8,7),ee=eo(ee,J,Z,Q,er[9],0x8b44f7af,12),Q=eo(Q,ee,J,Z,er[10],0xffff5bb1,17),Z=eo(Z,Q,ee,J,er[11],0x895cd7be,22),J=eo(J,Z,Q,ee,er[12],0x6b901122,7),ee=eo(ee,J,Z,Q,er[13],0xfd987193,12),Q=eo(Q,ee,J,Z,er[14],0xa679438e,17),Z=eo(Z,Q,ee,J,er[15],0x49b40821,22),J=ea(J,Z,Q,ee,er[1],0xf61e2562,5),ee=ea(ee,J,Z,Q,er[6],0xc040b340,9),Q=ea(Q,ee,J,Z,er[11],0x265e5a51,14),Z=ea(Z,Q,ee,J,er[0],0xe9b6c7aa,20),J=ea(J,Z,Q,ee,er[5],0xd62f105d,5),ee=ea(ee,J,Z,Q,er[10],0x2441453,9),Q=ea(Q,ee,J,Z,er[15],0xd8a1e681,14),Z=ea(Z,Q,ee,J,er[4],0xe7d3fbc8,20),J=ea(J,Z,Q,ee,er[9],0x21e1cde6,5),ee=ea(ee,J,Z,Q,er[14],0xc33707d6,9),Q=ea(Q,ee,J,Z,er[3],0xf4d50d87,14),Z=ea(Z,Q,ee,J,er[8],0x455a14ed,20),J=ea(J,Z,Q,ee,er[13],0xa9e3e905,5),ee=ea(ee,J,Z,Q,er[2],0xfcefa3f8,9),Q=ea(Q,ee,J,Z,er[7],0x676f02d9,14),Z=ea(Z,Q,ee,J,er[12],0x8d2a4c8a,20),J=es(J,Z,Q,ee,er[5],0xfffa3942,4),ee=es(ee,J,Z,Q,er[8],0x8771f681,11),Q=es(Q,ee,J,Z,er[11],0x6d9d6122,16),Z=es(Z,Q,ee,J,er[14],0xfde5380c,23),J=es(J,Z,Q,ee,er[1],0xa4beea44,4),ee=es(ee,J,Z,Q,er[4],0x4bdecfa9,11),Q=es(Q,ee,J,Z,er[7],0xf6bb4b60,16),Z=es(Z,Q,ee,J,er[10],0xbebfbc70,23),J=es(J,Z,Q,ee,er[13],0x289b7ec6,4),ee=es(ee,J,Z,Q,er[0],0xeaa127fa,11),Q=es(Q,ee,J,Z,er[3],0xd4ef3085,16),Z=es(Z,Q,ee,J,er[6],0x4881d05,23),J=es(J,Z,Q,ee,er[9],0xd9d4d039,4),ee=es(ee,J,Z,Q,er[12],0xe6db99e5,11),Q=es(Q,ee,J,Z,er[15],0x1fa27cf8,16),Z=es(Z,Q,ee,J,er[2],0xc4ac5665,23),J=ef(J,Z,Q,ee,er[0],0xf4292244,6),ee=ef(ee,J,Z,Q,er[7],0x432aff97,10),Q=ef(Q,ee,J,Z,er[14],0xab9423a7,15),Z=ef(Z,Q,ee,J,er[5],0xfc93a039,21),J=ef(J,Z,Q,ee,er[12],0x655b59c3,6),ee=ef(ee,J,Z,Q,er[3],0x8f0ccc92,10),Q=ef(Q,ee,J,Z,er[10],0xffeff47d,15),Z=ef(Z,Q,ee,J,er[1],0x85845dd1,21),J=ef(J,Z,Q,ee,er[8],0x6fa87e4f,6),ee=ef(ee,J,Z,Q,er[15],0xfe2ce6e0,10),Q=ef(Q,ee,J,Z,er[6],0xa3014314,15),Z=ef(Z,Q,ee,J,er[13],0x4e0811a1,21),J=ef(J,Z,Q,ee,er[4],0xf7537e82,6),ee=ef(ee,J,Z,Q,er[11],0xbd3af235,10),Q=ef(Q,ee,J,Z,er[2],0x2ad7d2bb,15),Z=ef(Z,Q,ee,J,er[9],0xeb86d391,21),this._a=this._a+J|0,this._b=this._b+Z|0,this._c=this._c+Q|0,this._d=this._d+ee|0},ei.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 X=et.allocUnsafe(16);return X.writeInt32LE(this._a,0),X.writeInt32LE(this._b,4),X.writeInt32LE(this._c,8),X.writeInt32LE(this._d,12),X},X.exports=ei},6821:function(X,J,Z){var Q=Z(5944),ee=Z(4259);function et(X){this.rand=X||new ee.Rand}X.exports=et,et.create=function(X){return new et(X)},et.prototype._randbelow=function(X){var J=Math.ceil(X.bitLength()/8);do var Z=new Q(this.rand.generate(J));while(Z.cmp(X)>=0)return Z},et.prototype._randrange=function(X,J){var Z=J.sub(X);return X.add(this._randbelow(Z))},et.prototype.test=function(X,J,Z){var ee=X.bitLength(),et=Q.mont(X),er=new Q(1).toRed(et);J||(J=Math.max(1,ee/48|0));for(var ei=X.subn(1),en=0;!ei.testn(en);en++);for(var eo=X.shrn(en),ea=ei.toRed(et);J>0;J--){var es=this._randrange(new Q(2),ei);Z&&Z(es);var ef=es.toRed(et).redPow(eo);if(0!==ef.cmp(er)&&0!==ef.cmp(ea)){for(var eu=1;eu0;J--){var ea=this._randrange(new Q(2),er),es=X.gcd(ea);if(0!==es.cmpn(1))return es;var ef=ea.toRed(ee).redPow(en);if(0!==ef.cmp(et)&&0!==ef.cmp(eo)){for(var eu=1;eu>8,er=255ⅇet?Z.push(et,er):Z.push(er)}return Z},J.zero2=Z,J.toHex=Q,J.encode=function(X,J){return"hex"===J?Q(X):X}},1907:function(X,J,Z){"use strict";var Q=Z(9186);J.certificate=Z(5627),J.RSAPrivateKey=Q.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())}),J.RSAPublicKey=Q.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),J.PublicKey=Q.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(ee),this.key("subjectPublicKey").bitstr())});var ee=Q.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())});J.PrivateKey=Q.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(ee),this.key("subjectPrivateKey").octstr())}),J.EncryptedPrivateKey=Q.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())}),J.DSAPrivateKey=Q.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())}),J.DSAparam=Q.define("DSAparam",function(){this.int()}),J.ECPrivateKey=Q.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(et),this.key("publicKey").optional().explicit(1).bitstr())});var et=Q.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});J.signature=Q.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},5627:function(X,J,Z){"use strict";var Q=Z(9186),ee=Q.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),et=Q.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),er=Q.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),ei=Q.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(er),this.key("subjectPublicKey").bitstr())}),en=Q.define("RelativeDistinguishedName",function(){this.setof(et)}),eo=Q.define("RDNSequence",function(){this.seqof(en)}),ea=Q.define("Name",function(){this.choice({rdnSequence:this.use(eo)})}),es=Q.define("Validity",function(){this.seq().obj(this.key("notBefore").use(ee),this.key("notAfter").use(ee))}),ef=Q.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),eu=Q.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(er),this.key("issuer").use(ea),this.key("validity").use(es),this.key("subject").use(ea),this.key("subjectPublicKeyInfo").use(ei),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(ef).optional())});X.exports=Q.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(eu),this.key("signatureAlgorithm").use(er),this.key("signatureValue").bitstr())})},4059:function(X,J,Z){var Q=/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,ee=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,et=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,er=Z(689),ei=Z(8642),en=Z(5725).Buffer;X.exports=function(X,J){var Z,eo=X.toString(),ea=eo.match(Q);if(ea){var es="aes"+ea[1],ef=en.from(ea[2],"hex"),eu=en.from(ea[3].replace(/[\r\n]/g,""),"base64"),ec=er(J,ef.slice(0,8),parseInt(ea[1],10)).key,el=[],eh=ei.createDecipheriv(es,ec,ef);el.push(eh.update(eu)),el.push(eh.final()),Z=en.concat(el)}else Z=new en(eo.match(et)[2].replace(/[\r\n]/g,""),"base64");return{tag:eo.match(ee)[1],data:Z}}},8012:function(X,J,Z){var Q=Z(1907),ee=Z(7016),et=Z(4059),er=Z(8642),ei=Z(4542),en=Z(5725).Buffer;function eo(X){"object"!=typeof X||en.isBuffer(X)||(ep=X.passphrase,X=X.key),"string"==typeof X&&(X=en.from(X));var J,Z,eo,ea,es,ef,eu,ec,el,eh,ed,ep,eb,ey,em=et(X,ep),eg=em.tag,ev=em.data;switch(eg){case"CERTIFICATE":ey=Q.certificate.decode(ev,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!ey&&(ey=Q.PublicKey.decode(ev,"der")),eb=ey.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return Q.RSAPublicKey.decode(ey.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return ey.subjectPrivateKey=ey.subjectPublicKey,{type:"ec",data:ey};case"1.2.840.10040.4.1":return ey.algorithm.params.pub_key=Q.DSAparam.decode(ey.subjectPublicKey.data,"der"),{type:"dsa",data:ey.algorithm.params};default:throw Error("unknown key id "+eb)}case"ENCRYPTED PRIVATE KEY":J=ev=Q.EncryptedPrivateKey.decode(ev,"der"),Z=ep,eo=J.algorithm.decrypt.kde.kdeparams.salt,ea=parseInt(J.algorithm.decrypt.kde.kdeparams.iters.toString(),10),es=ee[J.algorithm.decrypt.cipher.algo.join(".")],ef=J.algorithm.decrypt.cipher.iv,eu=J.subjectPrivateKey,ec=parseInt(es.split("-")[1],10)/8,el=ei.pbkdf2Sync(Z,eo,ea,ec,"sha1"),eh=er.createDecipheriv(es,el,ef),(ed=[]).push(eh.update(eu)),ed.push(eh.final()),ev=en.concat(ed);case"PRIVATE KEY":switch(eb=(ey=Q.PrivateKey.decode(ev,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return Q.RSAPrivateKey.decode(ey.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:ey.algorithm.curve,privateKey:Q.ECPrivateKey.decode(ey.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return ey.algorithm.params.priv_key=Q.DSAparam.decode(ey.subjectPrivateKey,"der"),{type:"dsa",params:ey.algorithm.params};default:throw Error("unknown key id "+eb)}case"RSA PUBLIC KEY":return Q.RSAPublicKey.decode(ev,"der");case"RSA PRIVATE KEY":return Q.RSAPrivateKey.decode(ev,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Q.DSAPrivateKey.decode(ev,"der")};case"EC PRIVATE KEY":return{curve:(ev=Q.ECPrivateKey.decode(ev,"der")).parameters.value,privateKey:ev.privateKey};default:throw Error("unknown key type "+eg)}}X.exports=eo,eo.signature=Q.signature},4542:function(X,J,Z){var Q=Z(6982),ee=Z(4410),et=Z(741),er=Z(508);Q.pbkdf2Sync&&-1!==Q.pbkdf2Sync.toString().indexOf("keylen, digest")?(J.pbkdf2Sync=function(X,J,Z,ei,en){return ee(Z,ei),X=er(X,et,"Password"),J=er(J,et,"Salt"),en=en||"sha1",Q.pbkdf2Sync(X,J,Z,ei,en)},J.pbkdf2=function(X,J,Z,ei,en,eo){if(ee(Z,ei),X=er(X,et,"Password"),J=er(J,et,"Salt"),"function"==typeof en&&(eo=en,en="sha1"),"function"!=typeof eo)throw Error("No callback provided to pbkdf2");return Q.pbkdf2(X,J,Z,ei,en,eo)}):(J.pbkdf2Sync=Z(8291),J.pbkdf2=Z(9958))},9958:function(J,Z,Q){var et,er=Q(5725).Buffer,ei=Q(4410),en=Q(741),eo=Q(8291),ea=Q(508),es=X.g.crypto&&X.g.crypto.subtle,ef={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"},eu=[];function ec(X,J,Z,Q,ee){return es.importKey("raw",X,{name:"PBKDF2"},!1,["deriveBits"]).then(function(X){return es.deriveBits({name:"PBKDF2",salt:J,iterations:Z,hash:{name:ee}},X,Q<<3)}).then(function(X){return er.from(X)})}J.exports=function(J,Z,Q,el,eh,ed){"function"==typeof eh&&(ed=eh,eh=void 0);var ep,eb,ey=ef[(eh=eh||"sha1").toLowerCase()];if(!ey||"function"!=typeof X.g.Promise)return ee.default.nextTick(function(){var X;try{X=eo(J,Z,Q,el,eh)}catch(X){return ed(X)}ed(null,X)});if(ei(Q,el),J=ea(J,en,"Password"),Z=ea(Z,en,"Salt"),"function"!=typeof ed)throw Error("No callback provided to pbkdf2");ep=(function(J){if(X.g.process&&!X.g.process.browser||!es||!es.importKey||!es.deriveBits)return Promise.resolve(!1);if(void 0!==eu[J])return eu[J];var Z=ec(et=et||er.alloc(8),et,10,128,J).then(function(){return!0}).catch(function(){return!1});return eu[J]=Z,Z})(ey).then(function(X){return X?ec(J,Z,Q,el,ey):eo(J,Z,Q,el,eh)}),eb=ed,ep.then(function(X){ee.default.nextTick(function(){eb(null,X)})},function(X){ee.default.nextTick(function(){eb(X)})})}},741:function(X){X.exports="utf-8"},4410:function(X){X.exports=function(X,J){if("number"!=typeof X)throw TypeError("Iterations not a number");if(X<0)throw TypeError("Bad iterations");if("number"!=typeof J)throw TypeError("Key length not a number");if(J<0||J>0x3fffffff||J!=J)throw TypeError("Bad key length")}},8291:function(X,J,Z){var Q={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},ee=Z(3256),et=Z(5725).Buffer,er=Z(4410),ei=Z(741),en=Z(508);X.exports=function(X,J,Z,eo,ea){er(Z,eo),X=en(X,ei,"Password"),J=en(J,ei,"Salt"),ea=ea||"sha1";var es=et.allocUnsafe(eo),ef=et.allocUnsafe(J.length+4);J.copy(ef,0,0,J.length);for(var eu=0,ec=Q[ea],el=Math.ceil(eo/ec),eh=1;eh<=el;eh++){ef.writeUInt32BE(eh,J.length);for(var ed=ee(ea,X).update(ef).digest(),ep=ed,eb=1;ebec||new er(J).cmp(eu.modulus)>=0)throw Error("decryption error");es=Z?eo(new er(J),eu):ei(J,eu);var el=ea.alloc(ec-es.length);if(es=ea.concat([el,es],ec),4===ef)return function(X,J){var Z=X.modulus.byteLength(),Q=en("sha1").update(ea.alloc(0)).digest(),er=Q.length;if(0!==J[0])throw Error("decryption error");var ei=J.slice(1,er+1),eo=J.slice(er+1),es=et(ei,ee(eo,er)),ef=et(eo,ee(es,Z-er-1));if(function(X,J){X=ea.from(X),J=ea.from(J);var Z=0,Q=X.length;X.length!==J.length&&(Z++,Q=Math.min(X.length,J.length));for(var ee=-1;++ee=eh.length){ey++;break}var em=eh.slice(2,eb-1);if(("0002"!==ep.toString("hex")&&!ed||"0001"!==ep.toString("hex")&&ed)&&ey++,em.length<8&&ey++,ey)throw Error("decryption error");return eh.slice(eb)}if(3===ef)return es;throw Error("unknown padding")}},6480:function(X,J,Z){var Q=Z(8012),ee=Z(376),et=Z(762),er=Z(6228),ei=Z(8723),en=Z(5944),eo=Z(5037),ea=Z(640),es=Z(5725).Buffer;X.exports=function(X,J,Z){var ef,eu=X.padding?X.padding:Z?1:4,ec=Q(X);if(4===eu)ef=function(X,J){var Z=X.modulus.byteLength(),Q=J.length,eo=et("sha1").update(es.alloc(0)).digest(),ea=eo.length,ef=2*ea;if(Q>Z-ef-2)throw Error("message too long");var eu=es.alloc(Z-Q-ef-2),ec=Z-ea-1,el=ee(ea),eh=ei(es.concat([eo,eu,es.alloc(1,1),J],ec),er(el,ec)),ed=ei(el,er(eh,ea));return new en(es.concat([es.alloc(1),ed,eh],Z))}(ec,J);else if(1===eu)ef=function(X,J,Z){var Q,et=J.length,er=X.modulus.byteLength();if(et>er-11)throw Error("message too long");return Q=Z?es.alloc(er-et-3,255):function(X){for(var J,Z=es.allocUnsafe(X),Q=0,et=ee(2*X),er=0;Q=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return Z?ea(ef,ec):eo(ef,ec)}},5037:function(X,J,Z){var Q=Z(5944),ee=Z(5725).Buffer;X.exports=function(X,J){return ee.from(X.toRed(Q.mont(J.modulus)).redPow(new Q(J.publicExponent)).fromRed().toArray())}},8723:function(X){X.exports=function(X,J){for(var Z=X.length,Q=-1;++Q0xffffffff)throw RangeError("requested too many random bytes");var Z=et.allocUnsafe(X);if(X>0)if(X>65536)for(var Q=0;Q0xffffffff||X<0)throw TypeError("offset must be a uint32");if(X>en||X>J)throw RangeError("offset out of range")}function es(X,J,Z){if("number"!=typeof X||X!=X)throw TypeError("size must be a number");if(X>0xffffffff||X<0)throw TypeError("size must be a uint32");if(X+J>Z||X>en)throw RangeError("buffer too small")}function ef(X,J,Z,Q){var et=new Uint8Array(X.buffer,J,Z);return(eo.getRandomValues(et),Q)?void ee.default.nextTick(function(){Q(null,X)}):X}eo&&eo.getRandomValues?(Z.randomFill=function(J,Z,Q,ee){if(!ei.isBuffer(J)&&!(J instanceof X.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof Z)ee=Z,Z=0,Q=J.length;else if("function"==typeof Q)ee=Q,Q=J.length-Z;else if("function"!=typeof ee)throw TypeError('"cb" argument must be a function');return ea(Z,J.length),es(Q,Z,J.length),ef(J,Z,Q,ee)},Z.randomFillSync=function(J,Z,Q){if(void 0===Z&&(Z=0),!ei.isBuffer(J)&&!(J instanceof X.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return ea(Z,J.length),void 0===Q&&(Q=J.length-Z),es(Q,Z,J.length),ef(J,Z,Q)}):(Z.randomFill=et,Z.randomFillSync=et)},4329:function(X){"use strict";let J={};function Z(X,Z,Q){Q||(Q=Error);class ee extends Q{constructor(X,J,Q){super("string"==typeof Z?Z:Z(X,J,Q))}}ee.prototype.name=Q.name,ee.prototype.code=X,J[X]=ee}function Q(X,J){if(!Array.isArray(X))return`of ${J} ${String(X)}`;{let Z=X.length;return(X=X.map(X=>String(X)),Z>2)?`one of ${J} ${X.slice(0,Z-1).join(", ")}, or `+X[Z-1]:2===Z?`one of ${J} ${X[0]} or ${X[1]}`:`of ${J} ${X[0]}`}}Z("ERR_INVALID_OPT_VALUE",function(X,J){return'The value "'+J+'" is invalid for option "'+X+'"'},TypeError),Z("ERR_INVALID_ARG_TYPE",function(X,J,Z){var ee,et,er,ei;let en,eo;if("string"==typeof J&&(ee="not ",J.substr(0,ee.length)===ee)?(en="must not be",J=J.replace(/^not /,"")):en="must be",et=" argument",(void 0===er||er>X.length)&&(er=X.length),X.substring(er-et.length,er)===et)eo=`The ${X} ${en} ${Q(J,"type")}`;else{let Z=("number"!=typeof ei&&(ei=0),ei+1>X.length||-1===X.indexOf(".",ei))?"argument":"property";eo=`The "${X}" ${Z} ${en} ${Q(J,"type")}`}return eo+`. Received type ${typeof Z}`},TypeError),Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Z("ERR_METHOD_NOT_IMPLEMENTED",function(X){return"The "+X+" method is not implemented"}),Z("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Z("ERR_STREAM_DESTROYED",function(X){return"Cannot call "+X+" after a stream was destroyed"}),Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Z("ERR_STREAM_WRITE_AFTER_END","write after end"),Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Z("ERR_UNKNOWN_ENCODING",function(X){return"Unknown encoding: "+X},TypeError),Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),X.exports.F=J},8686:function(X,J,Z){"use strict";var Q=Object.keys||function(X){var J=[];for(var Z in X)J.push(Z);return J};X.exports=ea;var et=Z(7276),er=Z(4732);Z(1638)(ea,et);for(var ei=Q(er.prototype),en=0;en0)if("string"==typeof J||en.objectMode||Object.getPrototypeOf(J)===ef.prototype||(et=J,J=ef.from(et)),Q)en.endEmitted?ev(X,new eg):eS(X,en,J,!0);else if(en.ended)ev(X,new ey);else{if(en.destroyed)return!1;en.reading=!1,en.decoder&&!Z?(J=en.decoder.write(J),en.objectMode||0!==J.length?eS(X,en,J,!1):eI(X,en)):eS(X,en,J,!1)}else Q||(en.reading=!1,eI(X,en));return!en.ended&&(en.lengthJ.highWaterMark&&((Z=X)>=0x40000000?Z=0x40000000:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++),J.highWaterMark=Z),X<=J.length)?X:J.ended?J.length:(J.needReadable=!0,0)}function eA(X){var J=X._readableState;er("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(er("emitReadable",J.flowing),J.emittedReadable=!0,ee.default.nextTick(eR,X))}function eR(X){var J=X._readableState;er("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&(J.length||J.ended)&&(X.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,eN(X)}function eI(X,J){J.readingMore||(J.readingMore=!0,ee.default.nextTick(ek,X,J))}function ek(X,J){for(;!J.reading&&!J.ended&&(J.length0,J.resumeScheduled&&!J.paused?J.flowing=!0:X.listenerCount("data")>0&&X.resume()}function eT(X){er("readable nexttick read 0"),X.read(0)}function eO(X,J){er("resume",J.reading),J.reading||X.read(0),J.resumeScheduled=!1,X.emit("resume"),eN(X),J.flowing&&!J.reading&&X.read(0)}function eN(X){var J=X._readableState;for(er("flow",J.flowing);J.flowing&&null!==X.read(););}function eP(X,J){var Z;return 0===J.length?null:(J.objectMode?Z=J.buffer.shift():!X||X>=J.length?(Z=J.decoder?J.buffer.join(""):1===J.buffer.length?J.buffer.first():J.buffer.concat(J.length),J.buffer.clear()):Z=J.buffer.consume(X,J.decoder),Z)}function eL(X){var J=X._readableState;er("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,ee.default.nextTick(eB,J,X))}function eB(X,J){if(er("endReadableNT",X.endEmitted,X.length),!X.endEmitted&&0===X.length&&(X.endEmitted=!0,J.readable=!1,J.emit("end"),X.autoDestroy)){var Z=J._writableState;(!Z||Z.autoDestroy&&Z.finished)&&J.destroy()}}function eC(X,J){for(var Z=0,Q=X.length;Z=Z.highWaterMark:Z.length>0)||Z.ended))return er("read: emitReadable",Z.length,Z.ended),0===Z.length&&Z.ended?eL(this):eA(this),null;if(0===(X=eM(X,Z))&&Z.ended)return 0===Z.length&&eL(this),null;var ee=Z.needReadable;return er("need readable",ee),(0===Z.length||Z.length-X0?eP(X,Z):null)?(Z.needReadable=Z.length<=Z.highWaterMark,X=0):(Z.length-=X,Z.awaitDrain=0),0===Z.length&&(Z.ended||(Z.needReadable=!0),Q!==X&&Z.ended&&eL(this)),null!==J&&this.emit("data",J),J},e_.prototype._read=function(X){ev(this,new em("_read()"))},e_.prototype.pipe=function(X,J){var Z,Q=this,et=this._readableState;switch(et.pipesCount){case 0:et.pipes=X;break;case 1:et.pipes=[et.pipes,X];break;default:et.pipes.push(X)}et.pipesCount+=1,er("pipe count=%d opts=%j",et.pipesCount,J);var ei=J&&!1===J.end||X===ee.default.stdout||X===ee.default.stderr?eh:en;function en(){er("onend"),X.end()}et.endEmitted?ee.default.nextTick(ei):Q.once("end",ei),X.on("unpipe",function J(Z,ee){er("onunpipe"),Z===Q&&ee&&!1===ee.hasUnpiped&&(ee.hasUnpiped=!0,er("cleanup"),X.removeListener("close",ec),X.removeListener("finish",el),X.removeListener("drain",eo),X.removeListener("error",eu),X.removeListener("unpipe",J),Q.removeListener("end",en),Q.removeListener("end",eh),Q.removeListener("data",ef),es=!0,et.awaitDrain&&(!X._writableState||X._writableState.needDrain)&&eo())});var eo=(Z=Q,function(){var X=Z._readableState;er("pipeOnDrain",X.awaitDrain),X.awaitDrain&&X.awaitDrain--,0===X.awaitDrain&&ea(Z,"data")&&(X.flowing=!0,eN(Z))});X.on("drain",eo);var es=!1;function ef(J){er("ondata");var Z=X.write(J);er("dest.write",Z),!1===Z&&((1===et.pipesCount&&et.pipes===X||et.pipesCount>1&&-1!==eC(et.pipes,X))&&!es&&(er("false write response, pause",et.awaitDrain),et.awaitDrain++),Q.pause())}function eu(J){er("onerror",J),eh(),X.removeListener("error",eu),0===ea(X,"error")&&ev(X,J)}function ec(){X.removeListener("finish",el),eh()}function el(){er("onfinish"),X.removeListener("close",ec),eh()}function eh(){er("unpipe"),Q.unpipe(X)}return Q.on("data",ef),!function(X,J,Z){if("function"==typeof X.prependListener)return X.prependListener(J,Z);X._events&&X._events[J]?Array.isArray(X._events[J])?X._events[J].unshift(Z):X._events[J]=[Z,X._events[J]]:X.on(J,Z)}(X,"error",eu),X.once("close",ec),X.once("finish",el),X.emit("pipe",Q),et.flowing||(er("pipe resume"),Q.resume()),X},e_.prototype.unpipe=function(X){var J=this._readableState,Z={hasUnpiped:!1};if(0===J.pipesCount)return this;if(1===J.pipesCount)return X&&X!==J.pipes||(X||(X=J.pipes),J.pipes=null,J.pipesCount=0,J.flowing=!1,X&&X.emit("unpipe",this,Z)),this;if(!X){var Q=J.pipes,ee=J.pipesCount;J.pipes=null,J.pipesCount=0,J.flowing=!1;for(var et=0;et0,!1!==Q.flowing&&this.resume()):"readable"!==X||Q.endEmitted||Q.readableListening||(Q.readableListening=Q.needReadable=!0,Q.flowing=!1,Q.emittedReadable=!1,er("on readable",Q.length,Q.reading),Q.length?eA(this):Q.reading||ee.default.nextTick(eT,this)),Z},e_.prototype.addListener=e_.prototype.on,e_.prototype.removeListener=function(X,J){var Z=es.prototype.removeListener.call(this,X,J);return"readable"===X&&ee.default.nextTick(ej,this),Z},e_.prototype.removeAllListeners=function(X){var J=es.prototype.removeAllListeners.apply(this,arguments);return("readable"===X||void 0===X)&&ee.default.nextTick(ej,this),J},e_.prototype.resume=function(){var X,J,Z=this._readableState;return Z.flowing||(er("resume"),Z.flowing=!Z.readableListening,X=this,(J=Z).resumeScheduled||(J.resumeScheduled=!0,ee.default.nextTick(eO,X,J))),Z.paused=!1,this},e_.prototype.pause=function(){return er("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(er("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},e_.prototype.wrap=function(X){var J=this,Z=this._readableState,Q=!1;for(var ee in X.on("end",function(){if(er("wrapped end"),Z.decoder&&!Z.ended){var X=Z.decoder.end();X&&X.length&&J.push(X)}J.push(null)}),X.on("data",function(ee){er("wrapped data"),Z.decoder&&(ee=Z.decoder.write(ee)),Z.objectMode&&null==ee||(Z.objectMode||ee&&ee.length)&&(J.push(ee)||(Q=!0,X.pause()))}),X)void 0===this[ee]&&"function"==typeof X[ee]&&(this[ee]=function(J){return function(){return X[J].apply(X,arguments)}}(ee));for(var et=0;et-1))throw new eg(X);return this._writableState.defaultEncoding=X,this},Object.defineProperty(e_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(e_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),e_.prototype._write=function(X,J,Z){Z(new eh("_write()"))},e_.prototype._writev=null,e_.prototype.end=function(X,J,Z){var Q,et,er,ei=this._writableState;return"function"==typeof X?(Z=X,X=null,J=null):"function"==typeof J&&(Z=J,J=null),null!=X&&this.write(X,J),ei.corked&&(ei.corked=1,this.uncork()),ei.ending||(Q=this,et=ei,er=Z,et.ending=!0,eI(Q,et),er&&(et.finished?ee.default.nextTick(er):Q.once("finish",er)),et.ended=!0,Q.writable=!1),this},Object.defineProperty(e_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(e_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(X){this._writableState&&(this._writableState.destroyed=X)}}),e_.prototype.destroy=ef.destroy,e_.prototype._undestroy=ef.undestroy,e_.prototype._destroy=function(X,J){J(X)}},531:function(X,J,Z){"use strict";function Q(X,J,Z){return J in X?Object.defineProperty(X,J,{value:Z,enumerable:!0,configurable:!0,writable:!0}):X[J]=Z,X}var et,er=Z(8134),ei=Symbol("lastResolve"),en=Symbol("lastReject"),eo=Symbol("error"),ea=Symbol("ended"),es=Symbol("lastPromise"),ef=Symbol("handlePromise"),eu=Symbol("stream");function ec(X,J){return{value:X,done:J}}function el(X){var J=X[ei];if(null!==J){var Z=X[eu].read();null!==Z&&(X[es]=null,X[ei]=null,X[en]=null,J(ec(Z,!1)))}}function eh(X){ee.default.nextTick(el,X)}var ed=Object.getPrototypeOf(function(){}),ep=Object.setPrototypeOf((Q(et={get stream(){return this[eu]},next:function(){var X,J,Z=this,Q=this[eo];if(null!==Q)return Promise.reject(Q);if(this[ea])return Promise.resolve(ec(void 0,!0));if(this[eu].destroyed)return new Promise(function(X,J){ee.default.nextTick(function(){Z[eo]?J(Z[eo]):X(ec(void 0,!0))})});var et=this[es];if(et)J=new Promise((X=this,function(J,Z){et.then(function(){X[ea]?J(ec(void 0,!0)):X[ef](J,Z)},Z)}));else{var er=this[eu].read();if(null!==er)return Promise.resolve(ec(er,!1));J=new Promise(this[ef])}return this[es]=J,J}},Symbol.asyncIterator,function(){return this}),Q(et,"return",function(){var X=this;return new Promise(function(J,Z){X[eu].destroy(null,function(X){X?Z(X):J(ec(void 0,!0))})})}),et),ed);X.exports=function(X){var J,Z=Object.create(ep,(Q(J={},eu,{value:X,writable:!0}),Q(J,ei,{value:null,writable:!0}),Q(J,en,{value:null,writable:!0}),Q(J,eo,{value:null,writable:!0}),Q(J,ea,{value:X._readableState.endEmitted,writable:!0}),Q(J,ef,{value:function(X,J){var Q=Z[eu].read();Q?(Z[es]=null,Z[ei]=null,Z[en]=null,X(ec(Q,!1))):(Z[ei]=X,Z[en]=J)},writable:!0}),J));return Z[es]=null,er(X,function(X){if(X&&"ERR_STREAM_PREMATURE_CLOSE"!==X.code){var J=Z[en];null!==J&&(Z[es]=null,Z[ei]=null,Z[en]=null,J(X)),Z[eo]=X;return}var Q=Z[ei];null!==Q&&(Z[es]=null,Z[ei]=null,Z[en]=null,Q(ec(void 0,!0))),Z[ea]=!0}),X.on("readable",eh.bind(null,Z)),Z}},1137:function(X,J,Z){"use strict";function Q(X,J){var Z=Object.keys(X);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(X);J&&(Q=Q.filter(function(J){return Object.getOwnPropertyDescriptor(X,J).enumerable})),Z.push.apply(Z,Q)}return Z}var ee=Z(181).Buffer,et=Z(9023).inspect,er=et&&et.custom||"inspect";X.exports=function(){var X;function J(){if(!(this instanceof J))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return X=[{key:"push",value:function(X){var J={data:X,next:null};this.length>0?this.tail.next=J:this.head=J,this.tail=J,++this.length}},{key:"unshift",value:function(X){var J={data:X,next:this.head};0===this.length&&(this.tail=J),this.head=J,++this.length}},{key:"shift",value:function(){if(0!==this.length){var X=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,X}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(X){if(0===this.length)return"";for(var J=this.head,Z=""+J.data;J=J.next;)Z+=X+J.data;return Z}},{key:"concat",value:function(X){if(0===this.length)return ee.alloc(0);for(var J,Z,Q=ee.allocUnsafe(X>>>0),et=this.head,er=0;et;)J=et.data,Z=er,ee.prototype.copy.call(J,Q,Z),er+=et.data.length,et=et.next;return Q}},{key:"consume",value:function(X,J){var Z;return Xee.length?ee.length:X;if(et===ee.length?Q+=ee:Q+=ee.slice(0,X),0==(X-=et)){et===ee.length?(++Z,J.next?this.head=J.next:this.head=this.tail=null):(this.head=J,J.data=ee.slice(et));break}++Z}return this.length-=Z,Q}},{key:"_getBuffer",value:function(X){var J=ee.allocUnsafe(X),Z=this.head,Q=1;for(Z.data.copy(J),X-=Z.data.length;Z=Z.next;){var et=Z.data,er=X>et.length?et.length:X;if(et.copy(J,J.length-X,0,er),0==(X-=er)){er===et.length?(++Q,Z.next?this.head=Z.next:this.head=this.tail=null):(this.head=Z,Z.data=et.slice(er));break}++Q}return this.length-=Q,J}},{key:er,value:function(X,J){return et(this,function(X){for(var J=1;J0,eo=ei=function(X){J||(J=X),X&&eu.forEach(en),eh||(eu.forEach(en),ef(J))},es=!1,ei=function(){es||(es=!0,eo.apply(void 0,arguments))},ec=!1,X.on("close",function(){ec=!0}),void 0===Q&&(Q=Z(8134)),Q(X,{readable:eh,writable:et},function(X){if(X)return ei(X);ec=!0,ei()}),el=!1,function(J){if(!ec&&!el){if(el=!0,X.setHeader&&"function"==typeof X.abort)return X.abort();if("function"==typeof X.destroy)return X.destroy();ei(J||new er("pipe"))}}});return ea.reduce(eo)}},771:function(X,J,Z){"use strict";var Q=Z(4329).F.ERR_INVALID_OPT_VALUE;X.exports={getHighWaterMark:function(X,J,Z,ee){var et=null!=J.highWaterMark?J.highWaterMark:ee?J[Z]:null;if(null!=et){if(!(isFinite(et)&&Math.floor(et)===et)||et<0)throw new Q(ee?Z:"highWaterMark",et);return Math.floor(et)}return X.objectMode?16:16384}}},5120:function(X,J,Z){X.exports=Z(2203)},5486:function(X,J,Z){var Q=Z(2203);"disable"===ee.default.env.READABLE_STREAM&&Q?(X.exports=Q.Readable,Object.assign(X.exports,Q),X.exports.Stream=Q):((J=X.exports=Z(7276)).Stream=Q||J,J.Readable=J,J.Writable=Z(4732),J.Duplex=Z(8686),J.Transform=Z(586),J.PassThrough=Z(5512),J.finished=Z(8134),J.pipeline=Z(694))},8987:function(X,J,Z){"use strict";var Q=Z(181).Buffer,ee=Z(1638),et=Z(2321),er=Array(16),ei=[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],en=[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],eo=[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],ea=[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];function es(){et.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function ef(X,J){return X<>>32-J}ee(es,et),es.prototype._update=function(){for(var X,J,Z,Q,ee,et,es,eu,ec,el,eh,ed,ep,eb,ey,em,eg,ev,ew,ex,e_,eE,eS,eM,eA,eR,eI,ek,ej,eT,eO,eN,eP,eL,eB,eC,eD,eU,e$,eq,ez,eF,eH,eG,eK,eW,eV,eY,eX,eJ,eZ,eQ,e0=0;e0<16;++e0)er[e0]=this._block.readInt32LE(4*e0);for(var e1=0|this._a,e2=0|this._b,e6=0|this._c,e3=0|this._d,e4=0|this._e,e5=0|this._a,e8=0|this._b,e9=0|this._c,e7=0|this._d,te=0|this._e,tt=0;tt<80;tt+=1){tt<16?(X=e1,J=e2,Z=e6,Q=e3,ee=e4,eZ=ef(X+(J^Z^Q)+er[ei[tt]]+0|0,eo[tt])+ee|0,et=e5,es=e8,eu=e9,ec=e7,el=te,eQ=ef(et+(es^(eu|~ec))+er[en[tt]]+0x50a28be6|0,ea[tt])+el|0):tt<32?(eh=e1,ed=e2,ep=e6,eb=e3,ey=e4,eZ=ef(eh+(ed&ep|~ed&eb)+er[ei[tt]]+0x5a827999|0,eo[tt])+ey|0,em=e5,eg=e8,ev=e9,ew=e7,ex=te,eQ=ef(em+(eg&ew|ev&~ew)+er[en[tt]]+0x5c4dd124|0,ea[tt])+ex|0):tt<48?(e_=e1,eE=e2,eS=e6,eM=e3,eA=e4,eZ=ef(e_+((eE|~eS)^eM)+er[ei[tt]]+0x6ed9eba1|0,eo[tt])+eA|0,eR=e5,eI=e8,ek=e9,ej=e7,eT=te,eQ=ef(eR+((eI|~ek)^ej)+er[en[tt]]+0x6d703ef3|0,ea[tt])+eT|0):tt<64?(eO=e1,eN=e2,eP=e6,eL=e3,eB=e4,eZ=ef(eO+(eN&eL|eP&~eL)+er[ei[tt]]+0x8f1bbcdc|0,eo[tt])+eB|0,eC=e5,eD=e8,eU=e9,e$=e7,eq=te,eQ=ef(eC+(eD&eU|~eD&e$)+er[en[tt]]+0x7a6d76e9|0,ea[tt])+eq|0):(ez=e1,eF=e2,eH=e6,eG=e3,eK=e4,eZ=ef(ez+(eF^(eH|~eG))+er[ei[tt]]+0xa953fd4e|0,eo[tt])+eK|0,eW=e5,eV=e8,eY=e9,eX=e7,eJ=te,eQ=ef(eW+(eV^eY^eX)+er[en[tt]]+0|0,ea[tt])+eJ|0),e1=e4,e4=e3,e3=ef(e6,10),e6=e2,e2=eZ,e5=te,te=e7,e7=ef(e9,10),e9=e8,e8=eQ}var tr=this._b+e6+e7|0;this._b=this._c+e3+te|0,this._c=this._d+e4+e5|0,this._d=this._e+e1+e8|0,this._e=this._a+e2+e9|0,this._a=tr},es.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 X=Q.alloc?Q.alloc(20):new Q(20);return X.writeInt32LE(this._a,0),X.writeInt32LE(this._b,4),X.writeInt32LE(this._c,8),X.writeInt32LE(this._d,12),X.writeInt32LE(this._e,16),X},X.exports=es},5056:function(X,J,Z){var Q=Z(181),ee=Q.Buffer;function et(X,J){for(var Z in X)J[Z]=X[Z]}function er(X,J,Z){return ee(X,J,Z)}ee.from&&ee.alloc&&ee.allocUnsafe&&ee.allocUnsafeSlow?X.exports=Q:(et(Q,J),J.Buffer=er),er.prototype=Object.create(ee.prototype),et(ee,er),er.from=function(X,J,Z){if("number"==typeof X)throw TypeError("Argument must not be a number");return ee(X,J,Z)},er.alloc=function(X,J,Z){if("number"!=typeof X)throw TypeError("Argument must be a number");var Q=ee(X);return void 0!==J?"string"==typeof Z?Q.fill(J,Z):Q.fill(J):Q.fill(0),Q},er.allocUnsafe=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return ee(X)},er.allocUnsafeSlow=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return Q.SlowBuffer(X)}},5725:function(X,J,Z){var Q=Z(181),ee=Q.Buffer;function et(X,J){for(var Z in X)J[Z]=X[Z]}function er(X,J,Z){return ee(X,J,Z)}ee.from&&ee.alloc&&ee.allocUnsafe&&ee.allocUnsafeSlow?X.exports=Q:(et(Q,J),J.Buffer=er),er.prototype=Object.create(ee.prototype),et(ee,er),er.from=function(X,J,Z){if("number"==typeof X)throw TypeError("Argument must not be a number");return ee(X,J,Z)},er.alloc=function(X,J,Z){if("number"!=typeof X)throw TypeError("Argument must be a number");var Q=ee(X);return void 0!==J?"string"==typeof Z?Q.fill(J,Z):Q.fill(J):Q.fill(0),Q},er.allocUnsafe=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return ee(X)},er.allocUnsafeSlow=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return Q.SlowBuffer(X)}},1007:function(X,J,Z){var Q=Z(5725).Buffer;function ee(X,J){this._block=Q.alloc(X),this._finalSize=J,this._blockSize=X,this._len=0}ee.prototype.update=function(X,J){"string"==typeof X&&(J=J||"utf8",X=Q.from(X,J));for(var Z=this._block,ee=this._blockSize,et=X.length,er=this._len,ei=0;ei=this._finalSize&&(this._update(this._block),this._block.fill(0));var Z=8*this._len;if(Z<=0xffffffff)this._block.writeUInt32BE(Z,this._blockSize-4);else{var Q=Z>>>0;this._block.writeUInt32BE((Z-Q)/0x100000000,this._blockSize-8),this._block.writeUInt32BE(Q,this._blockSize-4)}this._update(this._block);var ee=this._hash();return X?ee.toString(X):ee},ee.prototype._update=function(){throw Error("_update must be implemented by subclass")},X.exports=ee},3251:function(X,J,Z){var Q=X.exports=function(X){var J=Q[X=X.toLowerCase()];if(!J)throw Error(X+" is not supported (we accept pull requests)");return new J};Q.sha=Z(569),Q.sha1=Z(822),Q.sha224=Z(5365),Q.sha256=Z(1380),Q.sha384=Z(3840),Q.sha512=Z(7921)},569:function(X,J,Z){var Q=Z(1638),ee=Z(1007),et=Z(5725).Buffer,er=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],ei=Array(80);function en(){this.init(),this._w=ei,ee.call(this,64,56)}Q(en,ee),en.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},en.prototype._update=function(X){for(var J=this._w,Z=0|this._a,Q=0|this._b,ee=0|this._c,et=0|this._d,ei=0|this._e,en=0;en<16;++en)J[en]=X.readInt32BE(4*en);for(;en<80;++en)J[en]=J[en-3]^J[en-8]^J[en-14]^J[en-16];for(var eo=0;eo<80;++eo){var ea,es,ef,eu,ec,el=~~(eo/20),eh=((ea=Z)<<5|ea>>>27)+(es=Q,ef=ee,eu=et,0===el?es&ef|~es&eu:2===el?es&ef|es&eu|ef&eu:es^ef^eu)+ei+J[eo]+er[el]|0;ei=et,et=ee,ee=(ec=Q)<<30|ec>>>2,Q=Z,Z=eh}this._a=Z+this._a|0,this._b=Q+this._b|0,this._c=ee+this._c|0,this._d=et+this._d|0,this._e=ei+this._e|0},en.prototype._hash=function(){var X=et.allocUnsafe(20);return X.writeInt32BE(0|this._a,0),X.writeInt32BE(0|this._b,4),X.writeInt32BE(0|this._c,8),X.writeInt32BE(0|this._d,12),X.writeInt32BE(0|this._e,16),X},X.exports=en},822:function(X,J,Z){var Q=Z(1638),ee=Z(1007),et=Z(5725).Buffer,er=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],ei=Array(80);function en(){this.init(),this._w=ei,ee.call(this,64,56)}Q(en,ee),en.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},en.prototype._update=function(X){for(var J=this._w,Z=0|this._a,Q=0|this._b,ee=0|this._c,et=0|this._d,ei=0|this._e,en=0;en<16;++en)J[en]=X.readInt32BE(4*en);for(;en<80;++en)J[en]=(ea=J[en-3]^J[en-8]^J[en-14]^J[en-16])<<1|ea>>>31;for(var eo=0;eo<80;++eo){var ea,es,ef,eu,ec,el,eh=~~(eo/20),ed=((es=Z)<<5|es>>>27)+(ef=Q,eu=ee,ec=et,0===eh?ef&eu|~ef&ec:2===eh?ef&eu|ef&ec|eu&ec:ef^eu^ec)+ei+J[eo]+er[eh]|0;ei=et,et=ee,ee=(el=Q)<<30|el>>>2,Q=Z,Z=ed}this._a=Z+this._a|0,this._b=Q+this._b|0,this._c=ee+this._c|0,this._d=et+this._d|0,this._e=ei+this._e|0},en.prototype._hash=function(){var X=et.allocUnsafe(20);return X.writeInt32BE(0|this._a,0),X.writeInt32BE(0|this._b,4),X.writeInt32BE(0|this._c,8),X.writeInt32BE(0|this._d,12),X.writeInt32BE(0|this._e,16),X},X.exports=en},5365:function(X,J,Z){var Q=Z(1638),ee=Z(1380),et=Z(1007),er=Z(5725).Buffer,ei=Array(64);function en(){this.init(),this._w=ei,et.call(this,64,56)}Q(en,ee),en.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},en.prototype._hash=function(){var X=er.allocUnsafe(28);return X.writeInt32BE(this._a,0),X.writeInt32BE(this._b,4),X.writeInt32BE(this._c,8),X.writeInt32BE(this._d,12),X.writeInt32BE(this._e,16),X.writeInt32BE(this._f,20),X.writeInt32BE(this._g,24),X},X.exports=en},1380:function(X,J,Z){var Q=Z(1638),ee=Z(1007),et=Z(5725).Buffer,er=[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],ei=Array(64);function en(){this.init(),this._w=ei,ee.call(this,64,56)}Q(en,ee),en.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},en.prototype._update=function(X){for(var J=this._w,Z=0|this._a,Q=0|this._b,ee=0|this._c,et=0|this._d,ei=0|this._e,en=0|this._f,eo=0|this._g,ea=0|this._h,es=0;es<16;++es)J[es]=X.readInt32BE(4*es);for(;es<64;++es)J[es]=(((eu=J[es-2])>>>17|eu<<15)^(eu>>>19|eu<<13)^eu>>>10)+J[es-7]+(((ec=J[es-15])>>>7|ec<<25)^(ec>>>18|ec<<14)^ec>>>3)+J[es-16]|0;for(var ef=0;ef<64;++ef){var eu,ec,el,eh,ed,ep,eb,ey,em,eg=ea+(((el=ei)>>>6|el<<26)^(el>>>11|el<<21)^(el>>>25|el<<7))+(eh=ei,ed=en,(ep=eo)^eh&(ed^ep))+er[ef]+J[ef]|0,ev=(((eb=Z)>>>2|eb<<30)^(eb>>>13|eb<<19)^(eb>>>22|eb<<10))+((ey=Z)&(em=Q)|ee&(ey|em))|0;ea=eo,eo=en,en=ei,ei=et+eg|0,et=ee,ee=Q,Q=Z,Z=eg+ev|0}this._a=Z+this._a|0,this._b=Q+this._b|0,this._c=ee+this._c|0,this._d=et+this._d|0,this._e=ei+this._e|0,this._f=en+this._f|0,this._g=eo+this._g|0,this._h=ea+this._h|0},en.prototype._hash=function(){var X=et.allocUnsafe(32);return X.writeInt32BE(this._a,0),X.writeInt32BE(this._b,4),X.writeInt32BE(this._c,8),X.writeInt32BE(this._d,12),X.writeInt32BE(this._e,16),X.writeInt32BE(this._f,20),X.writeInt32BE(this._g,24),X.writeInt32BE(this._h,28),X},X.exports=en},3840:function(X,J,Z){var Q=Z(1638),ee=Z(7921),et=Z(1007),er=Z(5725).Buffer,ei=Array(160);function en(){this.init(),this._w=ei,et.call(this,128,112)}Q(en,ee),en.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},en.prototype._hash=function(){var X=er.allocUnsafe(48);function J(J,Z,Q){X.writeInt32BE(J,Q),X.writeInt32BE(Z,Q+4)}return J(this._ah,this._al,0),J(this._bh,this._bl,8),J(this._ch,this._cl,16),J(this._dh,this._dl,24),J(this._eh,this._el,32),J(this._fh,this._fl,40),X},X.exports=en},7921:function(X,J,Z){var Q=Z(1638),ee=Z(1007),et=Z(5725).Buffer,er=[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],ei=Array(160);function en(){this.init(),this._w=ei,ee.call(this,128,112)}function eo(X,J){return(X>>>28|J<<4)^(J>>>2|X<<30)^(J>>>7|X<<25)}function ea(X,J){return(X>>>14|J<<18)^(X>>>18|J<<14)^(J>>>9|X<<23)}function es(X,J){return+(X>>>0>>0)}Q(en,ee),en.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},en.prototype._update=function(X){for(var J=this._w,Z=0|this._ah,Q=0|this._bh,ee=0|this._ch,et=0|this._dh,ei=0|this._eh,en=0|this._fh,ef=0|this._gh,eu=0|this._hh,ec=0|this._al,el=0|this._bl,eh=0|this._cl,ed=0|this._dl,ep=0|this._el,eb=0|this._fl,ey=0|this._gl,em=0|this._hl,eg=0;eg<32;eg+=2)J[eg]=X.readInt32BE(4*eg),J[eg+1]=X.readInt32BE(4*eg+4);for(;eg<160;eg+=2){var ev,ew,ex,e_,eE,eS,eM,eA,eR=J[eg-30],eI=J[eg-30+1],ek=((ev=eR)>>>1|(ew=eI)<<31)^(ev>>>8|ew<<24)^ev>>>7,ej=((ex=eI)>>>1|(e_=eR)<<31)^(ex>>>8|e_<<24)^(ex>>>7|e_<<25);eR=J[eg-4],eI=J[eg-4+1];var eT=((eE=eR)>>>19|(eS=eI)<<13)^(eS>>>29|eE<<3)^eE>>>6,eO=((eM=eI)>>>19|(eA=eR)<<13)^(eA>>>29|eM<<3)^(eM>>>6|eA<<26),eN=J[eg-14],eP=J[eg-14+1],eL=J[eg-32],eB=J[eg-32+1],eC=ej+eP|0,eD=ek+eN+es(eC,ej)|0;eD=(eD=eD+eT+es(eC=eC+eO|0,eO)|0)+eL+es(eC=eC+eB|0,eB)|0,J[eg]=eD,J[eg+1]=eC}for(var eU=0;eU<160;eU+=2){eD=J[eU],eC=J[eU+1];var e$,eq,ez,eF,eH,eG,eK,eW,eV,eY,eX=(e$=Z)&(eq=Q)|ee&(e$|eq),eJ=(ez=ec)&(eF=el)|eh&(ez|eF),eZ=eo(Z,ec),eQ=eo(ec,Z),e0=ea(ei,ep),e1=ea(ep,ei),e2=er[eU],e6=er[eU+1],e3=(eH=ei,eG=en,(eK=ef)^eH&(eG^eK)),e4=(eW=ep,eV=eb,(eY=ey)^eW&(eV^eY)),e5=em+e1|0,e8=eu+e0+es(e5,em)|0;e8=(e8=(e8=e8+e3+es(e5=e5+e4|0,e4)|0)+e2+es(e5=e5+e6|0,e6)|0)+eD+es(e5=e5+eC|0,eC)|0;var e9=eQ+eJ|0,e7=eZ+eX+es(e9,eQ)|0;eu=ef,em=ey,ef=en,ey=eb,en=ei,eb=ep,ei=et+e8+es(ep=ed+e5|0,ed)|0,et=ee,ed=eh,ee=Q,eh=el,Q=Z,el=ec,Z=e8+e7+es(ec=e5+e9|0,e5)|0}this._al=this._al+ec|0,this._bl=this._bl+el|0,this._cl=this._cl+eh|0,this._dl=this._dl+ed|0,this._el=this._el+ep|0,this._fl=this._fl+eb|0,this._gl=this._gl+ey|0,this._hl=this._hl+em|0,this._ah=this._ah+Z+es(this._al,ec)|0,this._bh=this._bh+Q+es(this._bl,el)|0,this._ch=this._ch+ee+es(this._cl,eh)|0,this._dh=this._dh+et+es(this._dl,ed)|0,this._eh=this._eh+ei+es(this._el,ep)|0,this._fh=this._fh+en+es(this._fl,eb)|0,this._gh=this._gh+ef+es(this._gl,ey)|0,this._hh=this._hh+eu+es(this._hl,em)|0},en.prototype._hash=function(){var X=et.allocUnsafe(64);function J(J,Z,Q){X.writeInt32BE(J,Q),X.writeInt32BE(Z,Q+4)}return J(this._ah,this._al,0),J(this._bh,this._bl,8),J(this._ch,this._cl,16),J(this._dh,this._dl,24),J(this._eh,this._el,32),J(this._fh,this._fl,40),J(this._gh,this._gl,48),J(this._hh,this._hl,56),X},X.exports=en},7319:function(X,J,Z){"use strict";var Q=Z(5056).Buffer,ee=Q.isEncoding||function(X){switch((X=""+X)&&X.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 et(X){var J;switch(this.encoding=function(X){var J=function(X){var J;if(!X)return"utf8";for(;;)switch(X){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 X;default:if(J)return;X=(""+X).toLowerCase(),J=!0}}(X);if("string"!=typeof J&&(Q.isEncoding===ee||!ee(X)))throw Error("Unknown encoding: "+X);return J||X}(X),this.encoding){case"utf16le":this.text=en,this.end=eo,J=4;break;case"utf8":this.fillLast=ei,J=4;break;case"base64":this.text=ea,this.end=es,J=3;break;default:this.write=ef,this.end=eu;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Q.allocUnsafe(J)}function er(X){return X<=127?0:X>>5==6?2:X>>4==14?3:X>>3==30?4:X>>6==2?-1:-2}function ei(X){var J=this.lastTotal-this.lastNeed,Z=function(X,J){if((192&J[0])!=128)return X.lastNeed=0,"�";if(X.lastNeed>1&&J.length>1){if((192&J[1])!=128)return X.lastNeed=1,"�";if(X.lastNeed>2&&J.length>2&&(192&J[2])!=128)return X.lastNeed=2,"�"}}(this,X);return void 0!==Z?Z:this.lastNeed<=X.length?(X.copy(this.lastChar,J,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(X.copy(this.lastChar,J,0,X.length),this.lastNeed-=X.length)}function en(X,J){if((X.length-J)%2==0){var Z=X.toString("utf16le",J);if(Z){var Q=Z.charCodeAt(Z.length-1);if(Q>=55296&&Q<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1],Z.slice(0,-1)}return Z}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=X[X.length-1],X.toString("utf16le",J,X.length-1)}function eo(X){var J=X&&X.length?this.write(X):"";if(this.lastNeed){var Z=this.lastTotal-this.lastNeed;return J+this.lastChar.toString("utf16le",0,Z)}return J}function ea(X,J){var Z=(X.length-J)%3;return 0===Z?X.toString("base64",J):(this.lastNeed=3-Z,this.lastTotal=3,1===Z?this.lastChar[0]=X[X.length-1]:(this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1]),X.toString("base64",J,X.length-Z))}function es(X){var J=X&&X.length?this.write(X):"";return this.lastNeed?J+this.lastChar.toString("base64",0,3-this.lastNeed):J}function ef(X){return X.toString(this.encoding)}function eu(X){return X&&X.length?this.write(X):""}J.I=et,et.prototype.write=function(X){var J,Z;if(0===X.length)return"";if(this.lastNeed){if(void 0===(J=this.fillLast(X)))return"";Z=this.lastNeed,this.lastNeed=0}else Z=0;return Z=0?(ee>0&&(X.lastNeed=ee-1),ee):--Q=0?(ee>0&&(X.lastNeed=ee-2),ee):--Q=0?(ee>0&&(2===ee?ee=0:X.lastNeed=ee-3),ee):0}(this,X,J);if(!this.lastNeed)return X.toString("utf8",J);this.lastTotal=Z;var Q=X.length-(Z-this.lastNeed);return X.copy(this.lastChar,0,Q),X.toString("utf8",J,Q)},et.prototype.fillLast=function(X){if(this.lastNeed<=X.length)return X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,X.length),this.lastNeed-=X.length}},4774:function(J){J.exports=function(X,J){if(Z("noDeprecation"))return X;var Q=!1;return function(){if(!Q){if(Z("throwDeprecation"))throw Error(J);Z("traceDeprecation")?console.trace(J):console.warn(J),Q=!0}return X.apply(this,arguments)}};function Z(J){try{if(!X.g.localStorage)return!1}catch(X){return!1}var Z=X.g.localStorage[J];return null!=Z&&"true"===String(Z).toLowerCase()}},181:function(J){"use strict";J.exports=X.r(43943)},6982:function(J){"use strict";J.exports=X.r(86914)},4434:function(J){"use strict";J.exports=X.r(30662)},2203:function(J){"use strict";J.exports=X.r(12569)},3193:function(J){"use strict";J.exports=X.r(3361)},9023:function(J){"use strict";J.exports=X.r(77398)},9154:function(J){"use strict";J.exports=X.r(13385)},3349:function(X){"use strict";X.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},3678:function(X){"use strict";X.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},6456:function(X){"use strict";X.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7821:function(X){"use strict";X.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},4497:function(X){"use strict";X.exports={rE:"6.5.3"}},7016:function(X){"use strict";X.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},er={};function ei(X){var J=er[X];if(void 0!==J)return J.exports;var Z=er[X]={id:X,loaded:!1,exports:{}},Q=!0;try{et[X].call(Z.exports,Z,Z.exports,ei),Q=!1}finally{Q&&delete er[X]}return Z.loaded=!0,Z.exports}ei.nmd=function(X){return X.paths=[],X.children||(X.children=[]),X},ei.ab="/ROOT/node_modules/next/dist/compiled/crypto-browserify/";var en={};!function(){"use strict";en.randomBytes=en.rng=en.pseudoRandomBytes=en.prng=ei(376),en.createHash=en.Hash=ei(762),en.createHmac=en.Hmac=ei(3256);var X=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(ei(6713)));en.getHashes=function(){return X};var J=ei(4542);en.pbkdf2=J.pbkdf2,en.pbkdf2Sync=J.pbkdf2Sync;var Z=ei(9131);en.Cipher=Z.Cipher,en.createCipher=Z.createCipher,en.Cipheriv=Z.Cipheriv,en.createCipheriv=Z.createCipheriv,en.Decipher=Z.Decipher,en.createDecipher=Z.createDecipher,en.Decipheriv=Z.Decipheriv,en.createDecipheriv=Z.createDecipheriv,en.getCiphers=Z.getCiphers,en.listCiphers=Z.listCiphers;var Q=ei(857);en.DiffieHellmanGroup=Q.DiffieHellmanGroup,en.createDiffieHellmanGroup=Q.createDiffieHellmanGroup,en.getDiffieHellman=Q.getDiffieHellman,en.createDiffieHellman=Q.createDiffieHellman,en.DiffieHellman=Q.DiffieHellman;var ee=ei(2926);en.createSign=ee.createSign,en.Sign=ee.Sign,en.createVerify=ee.createVerify,en.Verify=ee.Verify,en.createECDH=ei(8814);var et=ei(6734);en.publicEncrypt=et.publicEncrypt,en.privateEncrypt=et.privateEncrypt,en.publicDecrypt=et.publicDecrypt,en.privateDecrypt=et.privateDecrypt;var er=ei(236);en.randomFill=er.randomFill,en.randomFillSync=er.randomFillSync,en.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},en.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),J.exports=en},30662,(X,J,Z)=>{!function(){"use strict";var X={294:function(X){var J,Z="object"==typeof Reflect?Reflect:null,Q=Z&&"function"==typeof Z.apply?Z.apply:function(X,J,Z){return Function.prototype.apply.call(X,J,Z)};J=Z&&"function"==typeof Z.ownKeys?Z.ownKeys:Object.getOwnPropertySymbols?function(X){return Object.getOwnPropertyNames(X).concat(Object.getOwnPropertySymbols(X))}:function(X){return Object.getOwnPropertyNames(X)};var ee=Number.isNaN||function(X){return X!=X};function et(){et.init.call(this)}X.exports=et,X.exports.once=function(X,J){return new Promise(function(Z,Q){var ee,et,er;function ei(Z){X.removeListener(J,en),Q(Z)}function en(){"function"==typeof X.removeListener&&X.removeListener("error",ei),Z([].slice.call(arguments))}el(X,J,en,{once:!0}),"error"!==J&&(ee=X,et=ei,er={once:!0},"function"==typeof ee.on&&el(ee,"error",et,er))})},et.EventEmitter=et,et.prototype._events=void 0,et.prototype._eventsCount=0,et.prototype._maxListeners=void 0;var er=10;function ei(X){if("function"!=typeof X)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof X)}function en(X){return void 0===X._maxListeners?et.defaultMaxListeners:X._maxListeners}function eo(X,J,Z,Q){if(ei(Z),void 0===(et=X._events)?(et=X._events=Object.create(null),X._eventsCount=0):(void 0!==et.newListener&&(X.emit("newListener",J,Z.listener?Z.listener:Z),et=X._events),er=et[J]),void 0===er)er=et[J]=Z,++X._eventsCount;else if("function"==typeof er?er=et[J]=Q?[Z,er]:[er,Z]:Q?er.unshift(Z):er.push(Z),(ee=en(X))>0&&er.length>ee&&!er.warned){er.warned=!0;var ee,et,er,eo=Error("Possible EventEmitter memory leak detected. "+er.length+" "+String(J)+" listeners added. Use emitter.setMaxListeners() to increase limit");eo.name="MaxListenersExceededWarning",eo.emitter=X,eo.type=J,eo.count=er.length,console&&console.warn&&console.warn(eo)}return X}function ea(){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 es(X,J,Z){var Q={fired:!1,wrapFn:void 0,target:X,type:J,listener:Z},ee=ea.bind(Q);return ee.listener=Z,Q.wrapFn=ee,ee}function ef(X,J,Z){var Q=X._events;if(void 0===Q)return[];var ee=Q[J];return void 0===ee?[]:"function"==typeof ee?Z?[ee.listener||ee]:[ee]:Z?function(X){for(var J=Array(X.length),Z=0;Z0&&(er=J[0]),er instanceof Error)throw er;var er,ei=Error("Unhandled error."+(er?" ("+er.message+")":""));throw ei.context=er,ei}var en=et[X];if(void 0===en)return!1;if("function"==typeof en)Q(en,this,J);else for(var eo=en.length,ea=ec(en,eo),Z=0;Z=0;et--)if(Z[et]===J||Z[et].listener===J){er=Z[et].listener,ee=et;break}if(ee<0)return this;0===ee?Z.shift():function(X,J){for(;J+1=0;Q--)this.removeListener(X,J[Q]);return this},et.prototype.listeners=function(X){return ef(this,X,!0)},et.prototype.rawListeners=function(X){return ef(this,X,!1)},et.listenerCount=function(X,J){return"function"==typeof X.listenerCount?X.listenerCount(J):eu.call(X,J)},et.prototype.listenerCount=eu,et.prototype.eventNames=function(){return this._eventsCount>0?J(this._events):[]}}},Z={};function Q(J){var ee=Z[J];if(void 0!==ee)return ee.exports;var et=Z[J]={exports:{}},er=!0;try{X[J](et,et.exports,Q),er=!1}finally{er&&delete Z[J]}return et.exports}Q.ab="/ROOT/node_modules/next/dist/compiled/events/",J.exports=Q(294)}()},12569,(X,J,Z)=>{var Q=X.i(47167),ee={638:function(X){"function"==typeof Object.create?X.exports=function(X,J){J&&(X.super_=J,X.prototype=Object.create(J.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}))}:X.exports=function(X,J){if(J){X.super_=J;var Z=function(){};Z.prototype=J.prototype,X.prototype=new Z,X.prototype.constructor=X}}},329:function(X){"use strict";let J={};function Z(X,Z,Q){Q||(Q=Error);class ee extends Q{constructor(X,J,Q){super("string"==typeof Z?Z:Z(X,J,Q))}}ee.prototype.name=Q.name,ee.prototype.code=X,J[X]=ee}function Q(X,J){if(!Array.isArray(X))return`of ${J} ${String(X)}`;{let Z=X.length;return(X=X.map(X=>String(X)),Z>2)?`one of ${J} ${X.slice(0,Z-1).join(", ")}, or `+X[Z-1]:2===Z?`one of ${J} ${X[0]} or ${X[1]}`:`of ${J} ${X[0]}`}}Z("ERR_INVALID_OPT_VALUE",function(X,J){return'The value "'+J+'" is invalid for option "'+X+'"'},TypeError),Z("ERR_INVALID_ARG_TYPE",function(X,J,Z){var ee,et,er,ei;let en,eo;if("string"==typeof J&&(ee="not ",J.substr(0,ee.length)===ee)?(en="must not be",J=J.replace(/^not /,"")):en="must be",et=" argument",(void 0===er||er>X.length)&&(er=X.length),X.substring(er-et.length,er)===et)eo=`The ${X} ${en} ${Q(J,"type")}`;else{let Z=("number"!=typeof ei&&(ei=0),ei+1>X.length||-1===X.indexOf(".",ei))?"argument":"property";eo=`The "${X}" ${Z} ${en} ${Q(J,"type")}`}return eo+`. Received type ${typeof Z}`},TypeError),Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Z("ERR_METHOD_NOT_IMPLEMENTED",function(X){return"The "+X+" method is not implemented"}),Z("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Z("ERR_STREAM_DESTROYED",function(X){return"Cannot call "+X+" after a stream was destroyed"}),Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Z("ERR_STREAM_WRITE_AFTER_END","write after end"),Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Z("ERR_UNKNOWN_ENCODING",function(X){return"Unknown encoding: "+X},TypeError),Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),X.exports.F=J},686:function(X,J,Z){"use strict";var ee=Object.keys||function(X){var J=[];for(var Z in X)J.push(Z);return J};X.exports=ea;var et=Z(276),er=Z(732);Z(638)(ea,et);for(var ei=ee(er.prototype),en=0;en0)if("string"==typeof J||en.objectMode||Object.getPrototypeOf(J)===ef.prototype||(et=J,J=ef.from(et)),Q)en.endEmitted?ev(X,new eg):eS(X,en,J,!0);else if(en.ended)ev(X,new ey);else{if(en.destroyed)return!1;en.reading=!1,en.decoder&&!Z?(J=en.decoder.write(J),en.objectMode||0!==J.length?eS(X,en,J,!1):eI(X,en)):eS(X,en,J,!1)}else Q||(en.reading=!1,eI(X,en));return!en.ended&&(en.lengthJ.highWaterMark&&((Z=X)>=0x40000000?Z=0x40000000:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++),J.highWaterMark=Z),X<=J.length)?X:J.ended?J.length:(J.needReadable=!0,0)}function eA(X){var J=X._readableState;er("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(er("emitReadable",J.flowing),J.emittedReadable=!0,Q.default.nextTick(eR,X))}function eR(X){var J=X._readableState;er("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&(J.length||J.ended)&&(X.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,eN(X)}function eI(X,J){J.readingMore||(J.readingMore=!0,Q.default.nextTick(ek,X,J))}function ek(X,J){for(;!J.reading&&!J.ended&&(J.length0,J.resumeScheduled&&!J.paused?J.flowing=!0:X.listenerCount("data")>0&&X.resume()}function eT(X){er("readable nexttick read 0"),X.read(0)}function eO(X,J){er("resume",J.reading),J.reading||X.read(0),J.resumeScheduled=!1,X.emit("resume"),eN(X),J.flowing&&!J.reading&&X.read(0)}function eN(X){var J=X._readableState;for(er("flow",J.flowing);J.flowing&&null!==X.read(););}function eP(X,J){var Z;return 0===J.length?null:(J.objectMode?Z=J.buffer.shift():!X||X>=J.length?(Z=J.decoder?J.buffer.join(""):1===J.buffer.length?J.buffer.first():J.buffer.concat(J.length),J.buffer.clear()):Z=J.buffer.consume(X,J.decoder),Z)}function eL(X){var J=X._readableState;er("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,Q.default.nextTick(eB,J,X))}function eB(X,J){if(er("endReadableNT",X.endEmitted,X.length),!X.endEmitted&&0===X.length&&(X.endEmitted=!0,J.readable=!1,J.emit("end"),X.autoDestroy)){var Z=J._writableState;(!Z||Z.autoDestroy&&Z.finished)&&J.destroy()}}function eC(X,J){for(var Z=0,Q=X.length;Z=Z.highWaterMark:Z.length>0)||Z.ended))return er("read: emitReadable",Z.length,Z.ended),0===Z.length&&Z.ended?eL(this):eA(this),null;if(0===(X=eM(X,Z))&&Z.ended)return 0===Z.length&&eL(this),null;var ee=Z.needReadable;return er("need readable",ee),(0===Z.length||Z.length-X0?eP(X,Z):null)?(Z.needReadable=Z.length<=Z.highWaterMark,X=0):(Z.length-=X,Z.awaitDrain=0),0===Z.length&&(Z.ended||(Z.needReadable=!0),Q!==X&&Z.ended&&eL(this)),null!==J&&this.emit("data",J),J},e_.prototype._read=function(X){ev(this,new em("_read()"))},e_.prototype.pipe=function(X,J){var Z,ee=this,et=this._readableState;switch(et.pipesCount){case 0:et.pipes=X;break;case 1:et.pipes=[et.pipes,X];break;default:et.pipes.push(X)}et.pipesCount+=1,er("pipe count=%d opts=%j",et.pipesCount,J);var ei=J&&!1===J.end||X===Q.default.stdout||X===Q.default.stderr?eh:en;function en(){er("onend"),X.end()}et.endEmitted?Q.default.nextTick(ei):ee.once("end",ei),X.on("unpipe",function J(Z,Q){er("onunpipe"),Z===ee&&Q&&!1===Q.hasUnpiped&&(Q.hasUnpiped=!0,er("cleanup"),X.removeListener("close",ec),X.removeListener("finish",el),X.removeListener("drain",eo),X.removeListener("error",eu),X.removeListener("unpipe",J),ee.removeListener("end",en),ee.removeListener("end",eh),ee.removeListener("data",ef),es=!0,et.awaitDrain&&(!X._writableState||X._writableState.needDrain)&&eo())});var eo=(Z=ee,function(){var X=Z._readableState;er("pipeOnDrain",X.awaitDrain),X.awaitDrain&&X.awaitDrain--,0===X.awaitDrain&&ea(Z,"data")&&(X.flowing=!0,eN(Z))});X.on("drain",eo);var es=!1;function ef(J){er("ondata");var Z=X.write(J);er("dest.write",Z),!1===Z&&((1===et.pipesCount&&et.pipes===X||et.pipesCount>1&&-1!==eC(et.pipes,X))&&!es&&(er("false write response, pause",et.awaitDrain),et.awaitDrain++),ee.pause())}function eu(J){er("onerror",J),eh(),X.removeListener("error",eu),0===ea(X,"error")&&ev(X,J)}function ec(){X.removeListener("finish",el),eh()}function el(){er("onfinish"),X.removeListener("close",ec),eh()}function eh(){er("unpipe"),ee.unpipe(X)}return ee.on("data",ef),!function(X,J,Z){if("function"==typeof X.prependListener)return X.prependListener(J,Z);X._events&&X._events[J]?Array.isArray(X._events[J])?X._events[J].unshift(Z):X._events[J]=[Z,X._events[J]]:X.on(J,Z)}(X,"error",eu),X.once("close",ec),X.once("finish",el),X.emit("pipe",ee),et.flowing||(er("pipe resume"),ee.resume()),X},e_.prototype.unpipe=function(X){var J=this._readableState,Z={hasUnpiped:!1};if(0===J.pipesCount)return this;if(1===J.pipesCount)return X&&X!==J.pipes||(X||(X=J.pipes),J.pipes=null,J.pipesCount=0,J.flowing=!1,X&&X.emit("unpipe",this,Z)),this;if(!X){var Q=J.pipes,ee=J.pipesCount;J.pipes=null,J.pipesCount=0,J.flowing=!1;for(var et=0;et0,!1!==ee.flowing&&this.resume()):"readable"!==X||ee.endEmitted||ee.readableListening||(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,er("on readable",ee.length,ee.reading),ee.length?eA(this):ee.reading||Q.default.nextTick(eT,this)),Z},e_.prototype.addListener=e_.prototype.on,e_.prototype.removeListener=function(X,J){var Z=es.prototype.removeListener.call(this,X,J);return"readable"===X&&Q.default.nextTick(ej,this),Z},e_.prototype.removeAllListeners=function(X){var J=es.prototype.removeAllListeners.apply(this,arguments);return("readable"===X||void 0===X)&&Q.default.nextTick(ej,this),J},e_.prototype.resume=function(){var X,J,Z=this._readableState;return Z.flowing||(er("resume"),Z.flowing=!Z.readableListening,X=this,(J=Z).resumeScheduled||(J.resumeScheduled=!0,Q.default.nextTick(eO,X,J))),Z.paused=!1,this},e_.prototype.pause=function(){return er("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(er("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},e_.prototype.wrap=function(X){var J=this,Z=this._readableState,Q=!1;for(var ee in X.on("end",function(){if(er("wrapped end"),Z.decoder&&!Z.ended){var X=Z.decoder.end();X&&X.length&&J.push(X)}J.push(null)}),X.on("data",function(ee){er("wrapped data"),Z.decoder&&(ee=Z.decoder.write(ee)),Z.objectMode&&null==ee||(Z.objectMode||ee&&ee.length)&&(J.push(ee)||(Q=!0,X.pause()))}),X)void 0===this[ee]&&"function"==typeof X[ee]&&(this[ee]=function(J){return function(){return X[J].apply(X,arguments)}}(ee));for(var et=0;et-1))throw new eg(X);return this._writableState.defaultEncoding=X,this},Object.defineProperty(e_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(e_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),e_.prototype._write=function(X,J,Z){Z(new eh("_write()"))},e_.prototype._writev=null,e_.prototype.end=function(X,J,Z){var ee,et,er,ei=this._writableState;return"function"==typeof X?(Z=X,X=null,J=null):"function"==typeof J&&(Z=J,J=null),null!=X&&this.write(X,J),ei.corked&&(ei.corked=1,this.uncork()),ei.ending||(ee=this,et=ei,er=Z,et.ending=!0,eI(ee,et),er&&(et.finished?Q.default.nextTick(er):ee.once("finish",er)),et.ended=!0,ee.writable=!1),this},Object.defineProperty(e_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(e_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(X){this._writableState&&(this._writableState.destroyed=X)}}),e_.prototype.destroy=ef.destroy,e_.prototype._undestroy=ef.undestroy,e_.prototype._destroy=function(X,J){J(X)}},531:function(X,J,Z){"use strict";function ee(X,J,Z){return J in X?Object.defineProperty(X,J,{value:Z,enumerable:!0,configurable:!0,writable:!0}):X[J]=Z,X}var et,er=Z(134),ei=Symbol("lastResolve"),en=Symbol("lastReject"),eo=Symbol("error"),ea=Symbol("ended"),es=Symbol("lastPromise"),ef=Symbol("handlePromise"),eu=Symbol("stream");function ec(X,J){return{value:X,done:J}}function el(X){var J=X[ei];if(null!==J){var Z=X[eu].read();null!==Z&&(X[es]=null,X[ei]=null,X[en]=null,J(ec(Z,!1)))}}function eh(X){Q.default.nextTick(el,X)}var ed=Object.getPrototypeOf(function(){}),ep=Object.setPrototypeOf((ee(et={get stream(){return this[eu]},next:function(){var X,J,Z=this,ee=this[eo];if(null!==ee)return Promise.reject(ee);if(this[ea])return Promise.resolve(ec(void 0,!0));if(this[eu].destroyed)return new Promise(function(X,J){Q.default.nextTick(function(){Z[eo]?J(Z[eo]):X(ec(void 0,!0))})});var et=this[es];if(et)J=new Promise((X=this,function(J,Z){et.then(function(){X[ea]?J(ec(void 0,!0)):X[ef](J,Z)},Z)}));else{var er=this[eu].read();if(null!==er)return Promise.resolve(ec(er,!1));J=new Promise(this[ef])}return this[es]=J,J}},Symbol.asyncIterator,function(){return this}),ee(et,"return",function(){var X=this;return new Promise(function(J,Z){X[eu].destroy(null,function(X){X?Z(X):J(ec(void 0,!0))})})}),et),ed);X.exports=function(X){var J,Z=Object.create(ep,(ee(J={},eu,{value:X,writable:!0}),ee(J,ei,{value:null,writable:!0}),ee(J,en,{value:null,writable:!0}),ee(J,eo,{value:null,writable:!0}),ee(J,ea,{value:X._readableState.endEmitted,writable:!0}),ee(J,ef,{value:function(X,J){var Q=Z[eu].read();Q?(Z[es]=null,Z[ei]=null,Z[en]=null,X(ec(Q,!1))):(Z[ei]=X,Z[en]=J)},writable:!0}),J));return Z[es]=null,er(X,function(X){if(X&&"ERR_STREAM_PREMATURE_CLOSE"!==X.code){var J=Z[en];null!==J&&(Z[es]=null,Z[ei]=null,Z[en]=null,J(X)),Z[eo]=X;return}var Q=Z[ei];null!==Q&&(Z[es]=null,Z[ei]=null,Z[en]=null,Q(ec(void 0,!0))),Z[ea]=!0}),X.on("readable",eh.bind(null,Z)),Z}},137:function(X,J,Z){"use strict";function Q(X,J){var Z=Object.keys(X);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(X);J&&(Q=Q.filter(function(J){return Object.getOwnPropertyDescriptor(X,J).enumerable})),Z.push.apply(Z,Q)}return Z}var ee=Z(181).Buffer,et=Z(23).inspect,er=et&&et.custom||"inspect";X.exports=function(){var X;function J(){if(!(this instanceof J))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return X=[{key:"push",value:function(X){var J={data:X,next:null};this.length>0?this.tail.next=J:this.head=J,this.tail=J,++this.length}},{key:"unshift",value:function(X){var J={data:X,next:this.head};0===this.length&&(this.tail=J),this.head=J,++this.length}},{key:"shift",value:function(){if(0!==this.length){var X=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,X}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(X){if(0===this.length)return"";for(var J=this.head,Z=""+J.data;J=J.next;)Z+=X+J.data;return Z}},{key:"concat",value:function(X){if(0===this.length)return ee.alloc(0);for(var J,Z,Q=ee.allocUnsafe(X>>>0),et=this.head,er=0;et;)J=et.data,Z=er,ee.prototype.copy.call(J,Q,Z),er+=et.data.length,et=et.next;return Q}},{key:"consume",value:function(X,J){var Z;return Xee.length?ee.length:X;if(et===ee.length?Q+=ee:Q+=ee.slice(0,X),0==(X-=et)){et===ee.length?(++Z,J.next?this.head=J.next:this.head=this.tail=null):(this.head=J,J.data=ee.slice(et));break}++Z}return this.length-=Z,Q}},{key:"_getBuffer",value:function(X){var J=ee.allocUnsafe(X),Z=this.head,Q=1;for(Z.data.copy(J),X-=Z.data.length;Z=Z.next;){var et=Z.data,er=X>et.length?et.length:X;if(et.copy(J,J.length-X,0,er),0==(X-=er)){er===et.length?(++Q,Z.next?this.head=Z.next:this.head=this.tail=null):(this.head=Z,Z.data=et.slice(er));break}++Q}return this.length-=Q,J}},{key:er,value:function(X,J){return et(this,function(X){for(var J=1;J0,eo=ei=function(X){J||(J=X),X&&eu.forEach(en),eh||(eu.forEach(en),ef(J))},es=!1,ei=function(){es||(es=!0,eo.apply(void 0,arguments))},ec=!1,X.on("close",function(){ec=!0}),void 0===Q&&(Q=Z(134)),Q(X,{readable:eh,writable:et},function(X){if(X)return ei(X);ec=!0,ei()}),el=!1,function(J){if(!ec&&!el){if(el=!0,X.setHeader&&"function"==typeof X.abort)return X.abort();if("function"==typeof X.destroy)return X.destroy();ei(J||new er("pipe"))}}});return ea.reduce(eo)}},771:function(X,J,Z){"use strict";var Q=Z(329).F.ERR_INVALID_OPT_VALUE;X.exports={getHighWaterMark:function(X,J,Z,ee){var et=null!=J.highWaterMark?J.highWaterMark:ee?J[Z]:null;if(null!=et){if(!(isFinite(et)&&Math.floor(et)===et)||et<0)throw new Q(ee?Z:"highWaterMark",et);return Math.floor(et)}return X.objectMode?16:16384}}},120:function(X,J,Z){X.exports=Z(203)},56:function(X,J,Z){var Q=Z(181),ee=Q.Buffer;function et(X,J){for(var Z in X)J[Z]=X[Z]}function er(X,J,Z){return ee(X,J,Z)}ee.from&&ee.alloc&&ee.allocUnsafe&&ee.allocUnsafeSlow?X.exports=Q:(et(Q,J),J.Buffer=er),er.prototype=Object.create(ee.prototype),et(ee,er),er.from=function(X,J,Z){if("number"==typeof X)throw TypeError("Argument must not be a number");return ee(X,J,Z)},er.alloc=function(X,J,Z){if("number"!=typeof X)throw TypeError("Argument must be a number");var Q=ee(X);return void 0!==J?"string"==typeof Z?Q.fill(J,Z):Q.fill(J):Q.fill(0),Q},er.allocUnsafe=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return ee(X)},er.allocUnsafeSlow=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return Q.SlowBuffer(X)}},854:function(X,J,Z){X.exports=ee;var Q=Z(434).EventEmitter;function ee(){Q.call(this)}Z(638)(ee,Q),ee.Readable=Z(276),ee.Writable=Z(732),ee.Duplex=Z(686),ee.Transform=Z(586),ee.PassThrough=Z(512),ee.finished=Z(134),ee.pipeline=Z(694),ee.Stream=ee,ee.prototype.pipe=function(X,J){var Z=this;function ee(J){X.writable&&!1===X.write(J)&&Z.pause&&Z.pause()}function et(){Z.readable&&Z.resume&&Z.resume()}Z.on("data",ee),X.on("drain",et),X._isStdio||J&&!1===J.end||(Z.on("end",ei),Z.on("close",en));var er=!1;function ei(){er||(er=!0,X.end())}function en(){er||(er=!0,"function"==typeof X.destroy&&X.destroy())}function eo(X){if(ea(),0===Q.listenerCount(this,"error"))throw X}function ea(){Z.removeListener("data",ee),X.removeListener("drain",et),Z.removeListener("end",ei),Z.removeListener("close",en),Z.removeListener("error",eo),X.removeListener("error",eo),Z.removeListener("end",ea),Z.removeListener("close",ea),X.removeListener("close",ea)}return Z.on("error",eo),X.on("error",eo),Z.on("end",ea),Z.on("close",ea),X.on("close",ea),X.emit("pipe",Z),X}},319:function(X,J,Z){"use strict";var Q=Z(56).Buffer,ee=Q.isEncoding||function(X){switch((X=""+X)&&X.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 et(X){var J;switch(this.encoding=function(X){var J=function(X){var J;if(!X)return"utf8";for(;;)switch(X){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 X;default:if(J)return;X=(""+X).toLowerCase(),J=!0}}(X);if("string"!=typeof J&&(Q.isEncoding===ee||!ee(X)))throw Error("Unknown encoding: "+X);return J||X}(X),this.encoding){case"utf16le":this.text=en,this.end=eo,J=4;break;case"utf8":this.fillLast=ei,J=4;break;case"base64":this.text=ea,this.end=es,J=3;break;default:this.write=ef,this.end=eu;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Q.allocUnsafe(J)}function er(X){return X<=127?0:X>>5==6?2:X>>4==14?3:X>>3==30?4:X>>6==2?-1:-2}function ei(X){var J=this.lastTotal-this.lastNeed,Z=function(X,J){if((192&J[0])!=128)return X.lastNeed=0,"�";if(X.lastNeed>1&&J.length>1){if((192&J[1])!=128)return X.lastNeed=1,"�";if(X.lastNeed>2&&J.length>2&&(192&J[2])!=128)return X.lastNeed=2,"�"}}(this,X);return void 0!==Z?Z:this.lastNeed<=X.length?(X.copy(this.lastChar,J,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(X.copy(this.lastChar,J,0,X.length),this.lastNeed-=X.length)}function en(X,J){if((X.length-J)%2==0){var Z=X.toString("utf16le",J);if(Z){var Q=Z.charCodeAt(Z.length-1);if(Q>=55296&&Q<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1],Z.slice(0,-1)}return Z}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=X[X.length-1],X.toString("utf16le",J,X.length-1)}function eo(X){var J=X&&X.length?this.write(X):"";if(this.lastNeed){var Z=this.lastTotal-this.lastNeed;return J+this.lastChar.toString("utf16le",0,Z)}return J}function ea(X,J){var Z=(X.length-J)%3;return 0===Z?X.toString("base64",J):(this.lastNeed=3-Z,this.lastTotal=3,1===Z?this.lastChar[0]=X[X.length-1]:(this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1]),X.toString("base64",J,X.length-Z))}function es(X){var J=X&&X.length?this.write(X):"";return this.lastNeed?J+this.lastChar.toString("base64",0,3-this.lastNeed):J}function ef(X){return X.toString(this.encoding)}function eu(X){return X&&X.length?this.write(X):""}J.I=et,et.prototype.write=function(X){var J,Z;if(0===X.length)return"";if(this.lastNeed){if(void 0===(J=this.fillLast(X)))return"";Z=this.lastNeed,this.lastNeed=0}else Z=0;return Z=0?(ee>0&&(X.lastNeed=ee-1),ee):--Q=0?(ee>0&&(X.lastNeed=ee-2),ee):--Q=0?(ee>0&&(2===ee?ee=0:X.lastNeed=ee-3),ee):0}(this,X,J);if(!this.lastNeed)return X.toString("utf8",J);this.lastTotal=Z;var Q=X.length-(Z-this.lastNeed);return X.copy(this.lastChar,0,Q),X.toString("utf8",J,Q)},et.prototype.fillLast=function(X){if(this.lastNeed<=X.length)return X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,X.length),this.lastNeed-=X.length}},774:function(J){J.exports=function(X,J){if(Z("noDeprecation"))return X;var Q=!1;return function(){if(!Q){if(Z("throwDeprecation"))throw Error(J);Z("traceDeprecation")?console.trace(J):console.warn(J),Q=!0}return X.apply(this,arguments)}};function Z(J){try{if(!X.g.localStorage)return!1}catch(X){return!1}var Z=X.g.localStorage[J];return null!=Z&&"true"===String(Z).toLowerCase()}},181:function(J){"use strict";J.exports=X.r(43943)},434:function(J){"use strict";J.exports=X.r(30662)},203:function(J){"use strict";J.exports=X.r(30662).EventEmitter},23:function(J){"use strict";J.exports=X.r(77398)}},et={};function er(X){var J=et[X];if(void 0!==J)return J.exports;var Z=et[X]={exports:{}},Q=!0;try{ee[X](Z,Z.exports,er),Q=!1}finally{Q&&delete et[X]}return Z.exports}er.ab="/ROOT/node_modules/next/dist/compiled/stream-browserify/",J.exports=er(854)},3361,(X,J,Z)=>{var Q={56:function(X,J,Z){var Q=Z(181),ee=Q.Buffer;function et(X,J){for(var Z in X)J[Z]=X[Z]}function er(X,J,Z){return ee(X,J,Z)}ee.from&&ee.alloc&&ee.allocUnsafe&&ee.allocUnsafeSlow?X.exports=Q:(et(Q,J),J.Buffer=er),er.prototype=Object.create(ee.prototype),et(ee,er),er.from=function(X,J,Z){if("number"==typeof X)throw TypeError("Argument must not be a number");return ee(X,J,Z)},er.alloc=function(X,J,Z){if("number"!=typeof X)throw TypeError("Argument must be a number");var Q=ee(X);return void 0!==J?"string"==typeof Z?Q.fill(J,Z):Q.fill(J):Q.fill(0),Q},er.allocUnsafe=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return ee(X)},er.allocUnsafeSlow=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return Q.SlowBuffer(X)}},181:function(J){"use strict";J.exports=X.r(43943)}},ee={};function et(X){var J=ee[X];if(void 0!==J)return J.exports;var Z=ee[X]={exports:{}},er=!0;try{Q[X](Z,Z.exports,et),er=!1}finally{er&&delete ee[X]}return Z.exports}et.ab="/ROOT/node_modules/next/dist/compiled/string_decoder/";var er={};!function(){"use strict";var X=et(56).Buffer,J=X.isEncoding||function(X){switch((X=""+X)&&X.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 Z(Z){var Q;switch(this.encoding=function(Z){var Q=function(X){var J;if(!X)return"utf8";for(;;)switch(X){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 X;default:if(J)return;X=(""+X).toLowerCase(),J=!0}}(Z);if("string"!=typeof Q&&(X.isEncoding===J||!J(Z)))throw Error("Unknown encoding: "+Z);return Q||Z}(Z),this.encoding){case"utf16le":this.text=ei,this.end=en,Q=4;break;case"utf8":this.fillLast=ee,Q=4;break;case"base64":this.text=eo,this.end=ea,Q=3;break;default:this.write=es,this.end=ef;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=X.allocUnsafe(Q)}function Q(X){return X<=127?0:X>>5==6?2:X>>4==14?3:X>>3==30?4:X>>6==2?-1:-2}function ee(X){var J=this.lastTotal-this.lastNeed,Z=function(X,J){if((192&J[0])!=128)return X.lastNeed=0,"�";if(X.lastNeed>1&&J.length>1){if((192&J[1])!=128)return X.lastNeed=1,"�";if(X.lastNeed>2&&J.length>2&&(192&J[2])!=128)return X.lastNeed=2,"�"}}(this,X);return void 0!==Z?Z:this.lastNeed<=X.length?(X.copy(this.lastChar,J,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(X.copy(this.lastChar,J,0,X.length),this.lastNeed-=X.length)}function ei(X,J){if((X.length-J)%2==0){var Z=X.toString("utf16le",J);if(Z){var Q=Z.charCodeAt(Z.length-1);if(Q>=55296&&Q<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1],Z.slice(0,-1)}return Z}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=X[X.length-1],X.toString("utf16le",J,X.length-1)}function en(X){var J=X&&X.length?this.write(X):"";if(this.lastNeed){var Z=this.lastTotal-this.lastNeed;return J+this.lastChar.toString("utf16le",0,Z)}return J}function eo(X,J){var Z=(X.length-J)%3;return 0===Z?X.toString("base64",J):(this.lastNeed=3-Z,this.lastTotal=3,1===Z?this.lastChar[0]=X[X.length-1]:(this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1]),X.toString("base64",J,X.length-Z))}function ea(X){var J=X&&X.length?this.write(X):"";return this.lastNeed?J+this.lastChar.toString("base64",0,3-this.lastNeed):J}function es(X){return X.toString(this.encoding)}function ef(X){return X&&X.length?this.write(X):""}er.StringDecoder=Z,Z.prototype.write=function(X){var J,Z;if(0===X.length)return"";if(this.lastNeed){if(void 0===(J=this.fillLast(X)))return"";Z=this.lastNeed,this.lastNeed=0}else Z=0;return Z=0?(et>0&&(X.lastNeed=et-1),et):--ee=0?(et>0&&(X.lastNeed=et-2),et):--ee=0?(et>0&&(2===et?et=0:X.lastNeed=et-3),et):0}(this,X,J);if(!this.lastNeed)return X.toString("utf8",J);this.lastTotal=Z;var ee=X.length-(Z-this.lastNeed);return X.copy(this.lastChar,0,ee),X.toString("utf8",J,ee)},Z.prototype.fillLast=function(X){if(this.lastNeed<=X.length)return X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,X.length),this.lastNeed-=X.length}}(),J.exports=er},77398,(X,J,Z)=>{var Q=X.i(67034),ee=X.i(47167),et={7492:function(X){X.exports=function(X,Z,Q){if(X.filter)return X.filter(Z,Q);if(null==X||"function"!=typeof Z)throw TypeError();for(var ee=[],et=0;ettypeof Reflect&&Reflect&&Reflect.apply},2982:function(X,J,Z){"use strict";var Q=Z(1893),ee=Z(5494),et=ee(Q("String.prototype.indexOf"));X.exports=function(X,J){var Z=Q(X,!!J);return"function"==typeof Z&&et(X,".prototype.")>-1?ee(Z):Z}},5494:function(X,J,Z){"use strict";var Q=Z(3798),ee=Z(871),et=Z(2462),er=Z(4757);X.exports=function(X){var J=et(arguments),Z=X.length-(arguments.length-1);return Q(J,1+(Z>0?Z:0),!0)},ee?ee(X.exports,"apply",{value:er}):X.exports.apply=er},2071:function(X,J,Z){"use strict";var Q=Z(871),ee=Z(9546),et=Z(4785),er=Z(8322);X.exports=function(X,J,Z){if(!X||"object"!=typeof X&&"function"!=typeof X)throw new et("`obj` must be an object or a function`");if("string"!=typeof J&&"symbol"!=typeof J)throw new et("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new et("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new et("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new et("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new et("`loose`, if provided, must be a boolean");var ei=arguments.length>3?arguments[3]:null,en=arguments.length>4?arguments[4]:null,eo=arguments.length>5?arguments[5]:null,ea=arguments.length>6&&arguments[6],es=!!er&&er(X,J);if(Q)Q(X,J,{configurable:null===eo&&es?es.configurable:!eo,enumerable:null===ei&&es?es.enumerable:!ei,value:Z,writable:null===en&&es?es.writable:!en});else if(!ea&&(ei||en||eo))throw new ee("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else X[J]=Z}},3859:function(X,J,Z){"use strict";var Q,ee=Z(2462),et=Z(8322);try{Q=[].__proto__===Array.prototype}catch(X){if(!X||"object"!=typeof X||!("code"in X)||"ERR_PROTO_ACCESS"!==X.code)throw X}var er=!!Q&&et&&et(Object.prototype,"__proto__"),ei=Object,en=ei.getPrototypeOf;X.exports=er&&"function"==typeof er.get?ee([er.get]):"function"==typeof en&&function(X){return en(null==X?X:ei(X))}},871:function(X){"use strict";var J=Object.defineProperty||!1;if(J)try{J({},"a",{value:1})}catch(X){J=!1}X.exports=J},1247:function(X){"use strict";X.exports=EvalError},6621:function(X){"use strict";X.exports=Error},6136:function(X){"use strict";X.exports=RangeError},252:function(X){"use strict";X.exports=ReferenceError},9546:function(X){"use strict";X.exports=SyntaxError},4785:function(X){"use strict";X.exports=TypeError},1223:function(X){"use strict";X.exports=URIError},8300:function(X){"use strict";X.exports=Object},4680:function(X){var J=Object.prototype.hasOwnProperty,Z=Object.prototype.toString;X.exports=function(X,Q,ee){if("[object Function]"!==Z.call(Q))throw TypeError("iterator must be a function");var et=X.length;if(et===+et)for(var er=0;ertypeof Uint8Array&&e_?e_(Uint8Array):Q,ek={__proto__:null,"%AggregateError%":"u"typeof Map&&ex&&e_?e_((new Map)[Symbol.iterator]()):Q,"%Math%":Math,"%Number%":Number,"%Object%":ee,"%Object.getOwnPropertyDescriptor%":em,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"typeof Set&&ex&&e_?e_((new Set)[Symbol.iterator]()):Q,"%SharedArrayBuffer%":"u"1&&"boolean"!=typeof J)throw new ea('"allowMissing" argument must be a boolean');if(null===eU(/^%?[^%]*%?$/,X))throw new eo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=ez(X),Q=Z.length>0?Z[0]:"",ee=eF("%"+Q+"%",J),et=ee.name,er=ee.value,ei=!1,en=ee.alias;en&&(Q=en[0],eB(Z,eL([0,1],en)));for(var es=1,ef=!0;es=Z.length){var eh=em(er,eu);er=(ef=!!eh)&&"get"in eh&&!("originalValue"in eh.get)?eh.get:er[eu]}else ef=eP(er,eu),er=er[eu];ef&&!ei&&(ek[et]=er)}}return er}},45:function(X,J,Z){"use strict";X.exports=Z(8300).getPrototypeOf||null},7767:function(X){"use strict";X.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},9717:function(X,J,Z){"use strict";var Q=Z(7767),ee=Z(45),et=Z(3859);X.exports=Q?function(X){return Q(X)}:ee?function(X){if(!X||"object"!=typeof X&&"function"!=typeof X)throw TypeError("getProto: not an object");return ee(X)}:et?function(X){return et(X)}:null},8422:function(X){"use strict";X.exports=Object.getOwnPropertyDescriptor},8322:function(X,J,Z){"use strict";var Q=Z(8422);if(Q)try{Q([],"length")}catch(X){Q=null}X.exports=Q},8122:function(X,J,Z){"use strict";var Q=Z(871),ee=function(){return!!Q};ee.hasArrayLengthDefineBug=function(){if(!Q)return null;try{return 1!==Q([],"length",{value:1}).length}catch(X){return!0}},X.exports=ee},8564:function(X,J,Z){"use strict";var Q="u">typeof Symbol&&Symbol,ee=Z(9094);X.exports=function(){return"function"==typeof Q&&"function"==typeof Symbol&&"symbol"==typeof Q("foo")&&"symbol"==typeof Symbol("bar")&&ee()}},9094:function(X){"use strict";X.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var X={},J=Symbol("test"),Z=Object(J);if("string"==typeof J||"[object Symbol]"!==Object.prototype.toString.call(J)||"[object Symbol]"!==Object.prototype.toString.call(Z))return!1;for(J in X[J]=42,X)return!1;if("function"==typeof Object.keys&&0!==Object.keys(X).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(X).length)return!1;var Q=Object.getOwnPropertySymbols(X);if(1!==Q.length||Q[0]!==J||!Object.prototype.propertyIsEnumerable.call(X,J))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ee=Object.getOwnPropertyDescriptor(X,J);if(42!==ee.value||!0!==ee.enumerable)return!1}return!0}},9131:function(X,J,Z){"use strict";var Q="u">typeof Symbol&&Symbol,ee=Z(6313);X.exports=function(){return"function"==typeof Q&&"function"==typeof Symbol&&"symbol"==typeof Q("foo")&&"symbol"==typeof Symbol("bar")&&ee()}},6313:function(X){"use strict";X.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var X={},J=Symbol("test"),Z=Object(J);if("string"==typeof J||"[object Symbol]"!==Object.prototype.toString.call(J)||"[object Symbol]"!==Object.prototype.toString.call(Z))return!1;for(var Q in X[J]=42,X)return!1;if("function"==typeof Object.keys&&0!==Object.keys(X).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(X).length)return!1;var ee=Object.getOwnPropertySymbols(X);if(1!==ee.length||ee[0]!==J||!Object.prototype.propertyIsEnumerable.call(X,J))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var et=Object.getOwnPropertyDescriptor(X,J);if(42!==et.value||!0!==et.enumerable)return!1}return!0}},3383:function(X,J,Z){"use strict";var Q=Function.prototype.call,ee=Object.prototype.hasOwnProperty;X.exports=Z(7797).call(Q,ee)},1638:function(X){"function"==typeof Object.create?X.exports=function(X,J){J&&(X.super_=J,X.prototype=Object.create(J.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}))}:X.exports=function(X,J){if(J){X.super_=J;var Z=function(){};Z.prototype=J.prototype,X.prototype=new Z,X.prototype.constructor=X}}},6960:function(X){"use strict";var J="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Z=Object.prototype.toString,Q=function(X){return(!J||!X||"object"!=typeof X||!(Symbol.toStringTag in X))&&"[object Arguments]"===Z.call(X)},ee=function(X){return!!Q(X)||null!==X&&"object"==typeof X&&"number"==typeof X.length&&X.length>=0&&"[object Array]"!==Z.call(X)&&"[object Function]"===Z.call(X.callee)},et=function(){return Q(arguments)}();Q.isLegacyArguments=ee,X.exports=et?Q:ee},8979:function(X){"use strict";var J=Object.prototype.toString,Z=Function.prototype.toString,Q=/^\s*(?:function)?\*/,ee="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,et=Object.getPrototypeOf,er=function(){if(!ee)return!1;try{return Function("return function*() {}")()}catch(X){}}(),ei=er?et(er):{};X.exports=function(X){return"function"==typeof X&&(!!Q.test(Z.call(X))||(ee?et(X)===ei:"[object GeneratorFunction]"===J.call(X)))}},9572:function(J,Z,Q){"use strict";var ee=Q(4680),et=Q(3147),er=Q(2982),ei=er("Object.prototype.toString"),en=Q(8564)()&&"symbol"==typeof Symbol.toStringTag,eo=et(),ea=er("Array.prototype.indexOf",!0)||function(X,J){for(var Z=0;Z-1)}},4197:function(X){"use strict";X.exports=Math.abs},4455:function(X){"use strict";X.exports=Math.floor},6128:function(X){"use strict";X.exports=Number.isNaN||function(X){return X!=X}},1295:function(X){"use strict";X.exports=Math.max},6949:function(X){"use strict";X.exports=Math.min},2943:function(X){"use strict";X.exports=Math.pow},1721:function(X){"use strict";X.exports=Math.round},3536:function(X,J,Z){"use strict";var Q=Z(6128);X.exports=function(X){return Q(X)||0===X?X:X<0?-1:1}},3798:function(X,J,Z){"use strict";var Q=Z(1893),ee=Z(2071),et=Z(8122)(),er=Z(8322),ei=Z(4785),en=Q("%Math.floor%");X.exports=function(X,J){if("function"!=typeof X)throw new ei("`fn` is not a function");if("number"!=typeof J||J<0||J>0xffffffff||en(J)!==J)throw new ei("`length` must be a positive 32-bit integer");var Z=arguments.length>2&&!!arguments[2],Q=!0,eo=!0;if("length"in X&&er){var ea=er(X,"length");ea&&!ea.configurable&&(Q=!1),ea&&!ea.writable&&(eo=!1)}return(Q||eo||!Z)&&(et?ee(X,"length",J,!0,!0):ee(X,"length",J)),X}},3614:function(X){X.exports=function(X){return X instanceof Q.Buffer}},7551:function(X,J,Z){"use strict";var Q=Z(6960),ee=Z(8979),et=Z(3051),er=Z(9572);function ei(X){return X.call.bind(X)}var en="u">typeof BigInt,eo="u">typeof Symbol,ea=ei(Object.prototype.toString),es=ei(Number.prototype.valueOf),ef=ei(String.prototype.valueOf),eu=ei(Boolean.prototype.valueOf);if(en)var ec=ei(BigInt.prototype.valueOf);if(eo)var el=ei(Symbol.prototype.valueOf);function eh(X,J){if("object"!=typeof X)return!1;try{return J(X),!0}catch(X){return!1}}function ed(X){return"[object Map]"===ea(X)}function ep(X){return"[object Set]"===ea(X)}function eb(X){return"[object WeakMap]"===ea(X)}function ey(X){return"[object WeakSet]"===ea(X)}function em(X){return"[object ArrayBuffer]"===ea(X)}function eg(X){return!("u"typeof Promise&&X instanceof Promise||null!==X&&"object"==typeof X&&"function"==typeof X.then&&"function"==typeof X.catch},J.isArrayBufferView=function(X){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(X):er(X)||ew(X)},J.isUint8Array=function(X){return"Uint8Array"===et(X)},J.isUint8ClampedArray=function(X){return"Uint8ClampedArray"===et(X)},J.isUint16Array=function(X){return"Uint16Array"===et(X)},J.isUint32Array=function(X){return"Uint32Array"===et(X)},J.isInt8Array=function(X){return"Int8Array"===et(X)},J.isInt16Array=function(X){return"Int16Array"===et(X)},J.isInt32Array=function(X){return"Int32Array"===et(X)},J.isFloat32Array=function(X){return"Float32Array"===et(X)},J.isFloat64Array=function(X){return"Float64Array"===et(X)},J.isBigInt64Array=function(X){return"BigInt64Array"===et(X)},J.isBigUint64Array=function(X){return"BigUint64Array"===et(X)},ed.working="u">typeof Map&&ed(new Map),J.isMap=function(X){return!("u"typeof Set&&ep(new Set),J.isSet=function(X){return!("u"typeof WeakMap&&eb(new WeakMap),J.isWeakMap=function(X){return!("u"typeof WeakSet&&ey(new WeakSet),J.isWeakSet=function(X){return ey(X)},em.working="u">typeof ArrayBuffer&&em(new ArrayBuffer),J.isArrayBuffer=eg,ev.working="u">typeof ArrayBuffer&&"u">typeof DataView&&ev(new DataView(new ArrayBuffer(1),0,1)),J.isDataView=ew;var ex="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function e_(X){return"[object SharedArrayBuffer]"===ea(X)}function eE(X){return void 0!==ex&&(void 0===e_.working&&(e_.working=e_(new ex)),e_.working?e_(X):X instanceof ex)}function eS(X){return eh(X,es)}function eM(X){return eh(X,ef)}function eA(X){return eh(X,eu)}function eR(X){return en&&eh(X,ec)}function eI(X){return eo&&eh(X,el)}J.isSharedArrayBuffer=eE,J.isAsyncFunction=function(X){return"[object AsyncFunction]"===ea(X)},J.isMapIterator=function(X){return"[object Map Iterator]"===ea(X)},J.isSetIterator=function(X){return"[object Set Iterator]"===ea(X)},J.isGeneratorObject=function(X){return"[object Generator]"===ea(X)},J.isWebAssemblyCompiledModule=function(X){return"[object WebAssembly.Module]"===ea(X)},J.isNumberObject=eS,J.isStringObject=eM,J.isBooleanObject=eA,J.isBigIntObject=eR,J.isSymbolObject=eI,J.isBoxedPrimitive=function(X){return eS(X)||eM(X)||eA(X)||eR(X)||eI(X)},J.isAnyArrayBuffer=function(X){return"u">typeof Uint8Array&&(eg(X)||eE(X))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(X){Object.defineProperty(J,X,{enumerable:!1,value:function(){throw Error(X+" is not supported in userland")}})})},4268:function(X,J,Z){var Q=Object.getOwnPropertyDescriptors||function(X){for(var J=Object.keys(X),Z={},Q=0;Q=ee)return X;switch(X){case"%s":return String(Q[Z++]);case"%d":return Number(Q[Z++]);case"%j":try{return JSON.stringify(Q[Z++])}catch(X){return"[Circular]"}default:return X}}),ei=Q[Z];Z=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),eh(Z)?Q.showHidden=Z:Z&&J._extend(Q,Z),ey(Q.showHidden)&&(Q.showHidden=!1),ey(Q.depth)&&(Q.depth=2),ey(Q.colors)&&(Q.colors=!1),ey(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=ea),ef(Q,X,Q.depth)}function ea(X,J){var Z=eo.styles[J];return Z?"\x1b["+eo.colors[Z][0]+"m"+X+"\x1b["+eo.colors[Z][1]+"m":X}function es(X,J){return X}function ef(X,Z,Q){if(X.customInspect&&Z&&ex(Z.inspect)&&Z.inspect!==J.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var ee,et,er,ei,en,eo,ea=Z.inspect(Q,X);return eb(ea)||(ea=ef(X,ea,Q)),ea}var es=function(X,J){if(ey(J))return X.stylize("undefined","undefined");if(eb(J)){var Z="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return X.stylize(Z,"string")}return ep(J)?X.stylize(""+J,"number"):eh(J)?X.stylize(""+J,"boolean"):ed(J)?X.stylize("null","null"):void 0}(X,Z);if(es)return es;var eg=Object.keys(Z),e_=(en={},eg.forEach(function(X,J){en[X]=!0}),en);if(X.showHidden&&(eg=Object.getOwnPropertyNames(Z)),ew(Z)&&(eg.indexOf("message")>=0||eg.indexOf("description")>=0))return eu(Z);if(0===eg.length){if(ex(Z)){var eE=Z.name?": "+Z.name:"";return X.stylize("[Function"+eE+"]","special")}if(em(Z))return X.stylize(RegExp.prototype.toString.call(Z),"regexp");if(ev(Z))return X.stylize(Date.prototype.toString.call(Z),"date");if(ew(Z))return eu(Z)}var eS="",eA=!1,eR=["{","}"];if(el(Z)&&(eA=!0,eR=["[","]"]),ex(Z)&&(eS=" [Function"+(Z.name?": "+Z.name:"")+"]"),em(Z)&&(eS=" "+RegExp.prototype.toString.call(Z)),ev(Z)&&(eS=" "+Date.prototype.toUTCString.call(Z)),ew(Z)&&(eS=" "+eu(Z)),0===eg.length&&(!eA||0==Z.length))return eR[0]+eS+eR[1];if(Q<0)if(em(Z))return X.stylize(RegExp.prototype.toString.call(Z),"regexp");else return X.stylize("[Object]","special");return X.seen.push(Z),eo=eA?function(X,J,Z,Q,ee){for(var et=[],er=0,ei=J.length;er=0&&ei++,X+J.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?er[0]+(""===et?"":et+"\n ")+" "+ee.join(",\n ")+" "+er[1]:er[0]+et+" "+ee.join(", ")+" "+er[1]}function eu(X){return"["+Error.prototype.toString.call(X)+"]"}function ec(X,J,Z,Q,ee,et){var er,ei,en;if((en=Object.getOwnPropertyDescriptor(J,ee)||{value:J[ee]}).get?ei=en.set?X.stylize("[Getter/Setter]","special"):X.stylize("[Getter]","special"):en.set&&(ei=X.stylize("[Setter]","special")),eM(Q,ee)||(er="["+ee+"]"),!ei&&(0>X.seen.indexOf(en.value)?(ei=ed(Z)?ef(X,en.value,null):ef(X,en.value,Z-1)).indexOf("\n")>-1&&(ei=et?ei.split("\n").map(function(X){return" "+X}).join("\n").substr(2):"\n"+ei.split("\n").map(function(X){return" "+X}).join("\n")):ei=X.stylize("[Circular]","special")),ey(er)){if(et&&ee.match(/^\d+$/))return ei;(er=JSON.stringify(""+ee)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(er=er.substr(1,er.length-2),er=X.stylize(er,"name")):(er=er.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),er=X.stylize(er,"string"))}return er+": "+ei}function el(X){return Array.isArray(X)}function eh(X){return"boolean"==typeof X}function ed(X){return null===X}function ep(X){return"number"==typeof X}function eb(X){return"string"==typeof X}function ey(X){return void 0===X}function em(X){return eg(X)&&"[object RegExp]"===e_(X)}function eg(X){return"object"==typeof X&&null!==X}function ev(X){return eg(X)&&"[object Date]"===e_(X)}function ew(X){return eg(X)&&("[object Error]"===e_(X)||X instanceof Error)}function ex(X){return"function"==typeof X}function e_(X){return Object.prototype.toString.call(X)}function eE(X){return X<10?"0"+X.toString(10):X.toString(10)}J.debuglog=function(X){if(!er[X=X.toUpperCase()])if(ei.test(X)){var Z=ee.default.pid;er[X]=function(){var Q=J.format.apply(J,arguments);console.error("%s %d: %s",X,Z,Q)}}else er[X]=function(){};return er[X]},J.inspect=eo,eo.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]},eo.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},J.types=Z(7551),J.isArray=el,J.isBoolean=eh,J.isNull=ed,J.isNullOrUndefined=function(X){return null==X},J.isNumber=ep,J.isString=eb,J.isSymbol=function(X){return"symbol"==typeof X},J.isUndefined=ey,J.isRegExp=em,J.types.isRegExp=em,J.isObject=eg,J.isDate=ev,J.types.isDate=ev,J.isError=ew,J.types.isNativeError=ew,J.isFunction=ex,J.isPrimitive=function(X){return null===X||"boolean"==typeof X||"number"==typeof X||"string"==typeof X||"symbol"==typeof X||void 0===X},J.isBuffer=Z(3614);var eS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function eM(X,J){return Object.prototype.hasOwnProperty.call(X,J)}J.log=function(){var X,Z;console.log("%s - %s",(Z=[eE((X=new Date).getHours()),eE(X.getMinutes()),eE(X.getSeconds())].join(":"),[X.getDate(),eS[X.getMonth()],Z].join(" ")),J.format.apply(J,arguments))},J.inherits=Z(1638),J._extend=function(X,J){if(!J||!eg(J))return X;for(var Z=Object.keys(J),Q=Z.length;Q--;)X[Z[Q]]=J[Z[Q]];return X};var eA="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function eR(X,J){if(!X){var Z=Error("Promise was rejected with a falsy value");Z.reason=X,X=Z}return J(X)}J.promisify=function(X){if("function"!=typeof X)throw TypeError('The "original" argument must be of type Function');if(eA&&X[eA]){var J=X[eA];if("function"!=typeof J)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,eA,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var J,Z,Q=new Promise(function(X,Q){J=X,Z=Q}),ee=[],et=0;et{!function(){var __webpack_modules__={285:function(__unused_webpack_module,exports){var indexOf=function(X,J){if(X.indexOf)return X.indexOf(J);for(var Z=0;Ztypeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/vm-browserify/");var __webpack_exports__={};__webpack_modules__[285](0,__webpack_exports__),module.exports=__webpack_exports__}()},42524,(X,J,Z)=>{var Q=X.r(43943),ee=Q.Buffer;function et(X,J){for(var Z in X)J[Z]=X[Z]}function er(X,J,Z){return ee(X,J,Z)}ee.from&&ee.alloc&&ee.allocUnsafe&&ee.allocUnsafeSlow?J.exports=Q:(et(Q,Z),Z.Buffer=er),er.prototype=Object.create(ee.prototype),et(ee,er),er.from=function(X,J,Z){if("number"==typeof X)throw TypeError("Argument must not be a number");return ee(X,J,Z)},er.alloc=function(X,J,Z){if("number"!=typeof X)throw TypeError("Argument must be a number");var Q=ee(X);return void 0!==J?"string"==typeof Z?Q.fill(J,Z):Q.fill(J):Q.fill(0),Q},er.allocUnsafe=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return ee(X)},er.allocUnsafeSlow=function(X){if("number"!=typeof X)throw TypeError("Argument must be a number");return Q.SlowBuffer(X)}}]);