@rizom/brain 0.2.0-alpha.589 → 0.2.0-alpha.590

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ Check the render method of \``+i+"`.":""}function Tr(i,o,u,m){if(i=i.options,o){
36
36
  `;if(typeof o==="string"){for(var E=0;E<o.length&&E<i.length&&o.charCodeAt(E)===i.charCodeAt(E);E++);return E>m-8&&10<E&&(i="..."+i.slice(E-8),o="..."+o.slice(E-8)),en(u)+ln(i,m)+`
37
37
  `+Kr(u)+ln(o,m)+`
38
38
  `}return Or(u)+ln(i,m)+`
39
- `}function vn(i){return Object.prototype.toString.call(i).replace(/^\[object (.*)\]$/,function(o,u){return u})}function un(i,o){switch(typeof i){case"string":return i=JSON.stringify(i),i.length>o?5>o?'"..."':i.slice(0,o-4)+'..."':i;case"object":if(i===null)return"null";if(Kn(i))return"[...]";if(i.$$typeof===Fa)return(o=ce(i.type))?"<"+o+">":"<...>";var u=vn(i);if(u==="Object"){u="",o-=2;for(var m in i)if(i.hasOwnProperty(m)){var E=JSON.stringify(m);if(E!=='"'+m+'"'&&(m=E),o-=m.length-2,E=un(i[m],15>o?o:15),o-=E.length,0>o){u+=u===""?"...":", ...";break}u+=(u===""?"":",")+m+":"+E}return"{"+u+"}"}return u;case"function":return(o=i.displayName||i.name)?"function "+o:"function";default:return String(i)}}function tn(i,o){return typeof i!=="string"||bI.test(i)?"{"+un(i,o-2)+"}":i.length>o-2?5>o?'"..."':'"'+i.slice(0,o-5)+'..."':'"'+i+'"'}function Cu(i,o,u){var m=120-u.length-i.length,E=[],M;for(M in o)if(o.hasOwnProperty(M)&&M!=="children"){var D=tn(o[M],120-u.length-M.length-1);m-=M.length+D.length+2,E.push(M+"="+D)}return E.length===0?u+"<"+i+`>
39
+ `}function yn(i){return Object.prototype.toString.call(i).replace(/^\[object (.*)\]$/,function(o,u){return u})}function un(i,o){switch(typeof i){case"string":return i=JSON.stringify(i),i.length>o?5>o?'"..."':i.slice(0,o-4)+'..."':i;case"object":if(i===null)return"null";if(Kn(i))return"[...]";if(i.$$typeof===Fa)return(o=ce(i.type))?"<"+o+">":"<...>";var u=yn(i);if(u==="Object"){u="",o-=2;for(var m in i)if(i.hasOwnProperty(m)){var E=JSON.stringify(m);if(E!=='"'+m+'"'&&(m=E),o-=m.length-2,E=un(i[m],15>o?o:15),o-=E.length,0>o){u+=u===""?"...":", ...";break}u+=(u===""?"":",")+m+":"+E}return"{"+u+"}"}return u;case"function":return(o=i.displayName||i.name)?"function "+o:"function";default:return String(i)}}function tn(i,o){return typeof i!=="string"||bI.test(i)?"{"+un(i,o-2)+"}":i.length>o-2?5>o?'"..."':'"'+i.slice(0,o-5)+'..."':'"'+i+'"'}function Cu(i,o,u){var m=120-u.length-i.length,E=[],M;for(M in o)if(o.hasOwnProperty(M)&&M!=="children"){var D=tn(o[M],120-u.length-M.length-1);m-=M.length+D.length+2,E.push(M+"="+D)}return E.length===0?u+"<"+i+`>
40
40
  `:0<m?u+"<"+i+" "+E.join(" ")+`>
41
41
  `:u+"<"+i+`
42
42
  `+u+" "+E.join(`
@@ -46,7 +46,7 @@ Check the render method of \``+i+"`.":""}function Tr(i,o,u,m){if(i=i.options,o){
46
46
  `,m+=Kr(u)+M+": "+D+`
47
47
  `):m+=en(u)+M+": "+H+`
48
48
  `}for(var X in E)E.hasOwnProperty(X)&&(i=un(E[X],120-2*u-X.length-2),m+=Kr(u)+X+": "+i+`
49
- `);return m}function Ah(i,o,u,m){var E="",M=new Map;for(ne in u)u.hasOwnProperty(ne)&&M.set(ne.toLowerCase(),ne);if(M.size===1&&M.has("children"))E+=Cu(i,o,Or(m));else{for(var D in o)if(o.hasOwnProperty(D)&&D!=="children"){var H=120-2*(m+1)-D.length-1,X=M.get(D.toLowerCase());if(X!==void 0){M.delete(D.toLowerCase());var ne=o[D];X=u[X];var je=tn(ne,H);H=tn(X,H),typeof ne==="object"&&ne!==null&&typeof X==="object"&&X!==null&&vn(ne)==="Object"&&vn(X)==="Object"&&(2<Object.keys(ne).length||2<Object.keys(X).length||-1<je.indexOf("...")||-1<H.indexOf("..."))?E+=Or(m+1)+D+`={{
49
+ `);return m}function Ah(i,o,u,m){var E="",M=new Map;for(ne in u)u.hasOwnProperty(ne)&&M.set(ne.toLowerCase(),ne);if(M.size===1&&M.has("children"))E+=Cu(i,o,Or(m));else{for(var D in o)if(o.hasOwnProperty(D)&&D!=="children"){var H=120-2*(m+1)-D.length-1,X=M.get(D.toLowerCase());if(X!==void 0){M.delete(D.toLowerCase());var ne=o[D];X=u[X];var je=tn(ne,H);H=tn(X,H),typeof ne==="object"&&ne!==null&&typeof X==="object"&&X!==null&&yn(ne)==="Object"&&yn(X)==="Object"&&(2<Object.keys(ne).length||2<Object.keys(X).length||-1<je.indexOf("...")||-1<H.indexOf("..."))?E+=Or(m+1)+D+`={{
50
50
  `+kh(ne,X,m+2)+Or(m+1)+`}}
51
51
  `:(E+=en(m+1)+D+"="+je+`
52
52
  `,E+=Kr(m+1)+D+"="+H+`
@@ -68,7 +68,7 @@ This will cause a hydration error.%s`,D,m,u,M)):console.error(`In HTML, %s canno
68
68
  This will cause a hydration error.%s`,D,m,M),o&&(i=o.return,E===null||i===null||E===i&&i._debugOwner===o._debugOwner||be(E,function(){console.error(`<%s> cannot contain a nested %s.
69
69
  See this log for the ancestor stack trace.`,m,D)})),!1}function Q0(i,o,u){if(u||mC("#text",o,!1))return!0;if(u="#text|"+o,c1[u])return!1;c1[u]=!0;var m=(u=To)?gC(u,o):null;return u=u!==null&&m!==null?hC(m,u,u.tag!==6?{children:null}:null):"",/\S/.test(i)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
70
  This will cause a hydration error.%s`,o,u):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
- This will cause a hydration error.%s`,o,u),!1}function Mh(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}function gK(i){return i.replace(wX,function(o,u){return u.toUpperCase()})}function bC(i,o,u){var m=o.indexOf("--")===0;m||(-1<o.indexOf("-")?Tf.hasOwnProperty(o)&&Tf[o]||(Tf[o]=!0,console.error("Unsupported style property %s. Did you mean %s?",o,gK(o.replace(_X,"ms-")))):xX.test(o)?Tf.hasOwnProperty(o)&&Tf[o]||(Tf[o]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1))):!_I.test(u)||b6.hasOwnProperty(u)&&b6[u]||(b6[u]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,u.replace(_I,""))),typeof u==="number"&&(isNaN(u)?wI||(wI=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",o)):isFinite(u)||EI||(EI=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",o)))),u==null||typeof u==="boolean"||u===""?m?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":m?i.setProperty(o,u):typeof u!=="number"||u===0||TI.has(o)?o==="float"?i.cssFloat=u:(Ke(u,o),i[o]=(""+u).trim()):i[o]=u+"px"}function yC(i,o,u){if(o!=null&&typeof o!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(o&&Object.freeze(o),i=i.style,u!=null){if(o){var m={};if(u){for(var E in u)if(u.hasOwnProperty(E)&&!o.hasOwnProperty(E))for(var M=g6[E]||[E],D=0;D<M.length;D++)m[M[D]]=E}for(var H in o)if(o.hasOwnProperty(H)&&(!u||u[H]!==o[H]))for(E=g6[H]||[H],M=0;M<E.length;M++)m[E[M]]=H;H={};for(var X in o)for(E=g6[X]||[X],M=0;M<E.length;M++)H[E[M]]=X;X={};for(var ne in m)if(E=m[ne],(M=H[ne])&&E!==M&&(D=E+","+M,!X[D])){X[D]=!0,D=console;var je=o[E];D.error.call(D,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",je==null||typeof je==="boolean"||je===""?"Removing":"Updating",E,M)}}for(var He in u)!u.hasOwnProperty(He)||o!=null&&o.hasOwnProperty(He)||(He.indexOf("--")===0?i.setProperty(He,""):He==="float"?i.cssFloat="":i[He]="");for(var Re in o)ne=o[Re],o.hasOwnProperty(Re)&&u[Re]!==ne&&bC(i,Re,ne)}else for(m in o)o.hasOwnProperty(m)&&bC(i,m,o[m])}function Ch(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function vC(i){return EX.get(i)||i}function bK(i,o){if(la.call(Af,o)&&Af[o])return!0;if(kX.test(o)){if(i="aria-"+o.slice(4).toLowerCase(),i=kI.hasOwnProperty(i)?i:null,i==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Af[o]=!0;if(o!==i)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,i),Af[o]=!0}if(TX.test(o)){if(i=o.toLowerCase(),i=kI.hasOwnProperty(i)?i:null,i==null)return Af[o]=!0,!1;o!==i&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,i),Af[o]=!0)}return!0}function yK(i,o){var u=[],m;for(m in o)bK(i,m)||u.push(m);o=u.map(function(E){return"`"+E+"`"}).join(", "),u.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,i):1<u.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,i)}function vK(i,o,u,m){if(la.call(Di,o)&&Di[o])return!0;var E=o.toLowerCase();if(E==="onfocusin"||E==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Di[o]=!0;if(typeof u==="function"&&(i==="form"&&o==="action"||i==="input"&&o==="formAction"||i==="button"&&o==="formAction"))return!0;if(m!=null){if(i=m.possibleRegistrationNames,m.registrationNameDependencies.hasOwnProperty(o))return!0;if(m=i.hasOwnProperty(E)?i[E]:null,m!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",o,m),Di[o]=!0;if(MI.test(o))return console.error("Unknown event handler property `%s`. It will be ignored.",o),Di[o]=!0}else if(MI.test(o))return AX.test(o)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),Di[o]=!0;if(MX.test(o)||CX.test(o))return!0;if(E==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Di[o]=!0;if(E==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Di[o]=!0;if(E==="is"&&u!==null&&u!==void 0&&typeof u!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),Di[o]=!0;if(typeof u==="number"&&isNaN(u))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),Di[o]=!0;if(d1.hasOwnProperty(E)){if(E=d1[E],E!==o)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",o,E),Di[o]=!0}else if(o!==E)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,E),Di[o]=!0;switch(o){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof u){case"boolean":switch(o){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(E=o.toLowerCase().slice(0,5),E==="data-"||E==="aria-")return!0;return u?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,o,o,u,o):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,o,o,u,o,o,o),Di[o]=!0}case"function":case"symbol":return Di[o]=!0,!1;case"string":if(u==="false"||u==="true"){switch(o){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,o,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,u),Di[o]=!0}}return!0}function SK(i,o,u){var m=[],E;for(E in o)vK(i,E,o[E],u)||m.push(E);o=m.map(function(M){return"`"+M+"`"}).join(", "),m.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,i):1<m.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,i)}function Rh(i){return RX.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function vs(){}function nS(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}function SC(i){var o=at(i);if(o&&(i=o.stateNode)){var u=i[Ni]||null;e:switch(i=o.stateNode,o.type){case"input":if(St(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;se(o,"name"),u=u.querySelectorAll('input[name="'+zr(""+o)+'"][type="radio"]');for(o=0;o<u.length;o++){var m=u[o];if(m!==i&&m.form===i.form){var E=m[Ni]||null;if(!E)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");St(m,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(o=0;o<u.length;o++)m=u[o],m.form===i.form&&_t(m)}break e;case"textarea":Tn(i,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Tr(i,!!u.multiple,o,!1)}}}function xC(i,o,u){if(y6)return i(o,u);y6=!0;try{var m=i(o);return m}finally{if(y6=!1,Mf!==null||Cf!==null){if(mf(),Mf&&(o=Mf,i=Cf,Cf=Mf=null,SC(o),i))for(o=0;o<i.length;o++)SC(i[o])}}}function Ih(i,o){var u=i.stateNode;if(u===null)return null;var m=u[Ni]||null;if(m===null)return null;u=m[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(u&&typeof u!=="function")throw Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof u+"` type.");return u}function _C(){if(h1)return h1;var i,o=S6,u=o.length,m,E="value"in Tl?Tl.value:Tl.textContent,M=E.length;for(i=0;i<u&&o[i]===E[i];i++);var D=u-i;for(m=1;m<=D&&o[u-m]===E[M-m];m++);return h1=E.slice(i,1<m?1-m:void 0)}function eg(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function tg(){return!0}function wC(){return!1}function to(i){function o(u,m,E,M,D){this._reactName=u,this._targetInst=E,this.type=m,this.nativeEvent=M,this.target=D,this.currentTarget=null;for(var H in i)i.hasOwnProperty(H)&&(u=i[H],this[H]=u?u(M):M[H]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?tg:wC,this.isPropagationStopped=wC,this}return hr(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!=="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=tg)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!=="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=tg)},persist:function(){},isPersistent:tg}),o}function xK(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=ZX[i])?!!o[i]:!1}function iS(){return xK}function EC(i,o){switch(i){case"keyup":return tJ.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==OI;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TC(i){return i=i.detail,typeof i==="object"&&"data"in i?i.data:null}function _K(i,o){switch(i){case"compositionend":return TC(o);case"keypress":if(o.which!==DI)return null;return LI=!0,zI;case"textInput":return i=o.data,i===zI&&LI?null:i;default:return null}}function wK(i,o){if(Rf)return i==="compositionend"||!E6&&EC(i,o)?(i=_C(),h1=S6=Tl=null,Rf=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return NI&&o.locale!=="ko"?null:o.data;default:return null}}function kC(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!nJ[i.type]:o==="textarea"?!0:!1}function EK(i){if(!Wa)return!1;i="on"+i;var o=i in document;return o||(o=document.createElement("div"),o.setAttribute(i,"return;"),o=typeof o[i]==="function"),o}function AC(i,o,u,m){Mf?Cf?Cf.push(m):Cf=[m]:Mf=m,o=Vg(o,"onChange"),0<o.length&&(u=new p1("onChange","change",null,u,m),i.push({event:u,listeners:o}))}function TK(i){u7(i,0)}function rg(i){var o=$e(i);if(_t(o))return i}function MC(i,o){if(i==="change")return o}function CC(){gp&&(gp.detachEvent("onpropertychange",RC),bp=gp=null)}function RC(i){if(i.propertyName==="value"&&rg(bp)){var o=[];AC(o,bp,i,nS(i)),xC(TK,o)}}function kK(i,o,u){i==="focusin"?(CC(),gp=o,bp=u,gp.attachEvent("onpropertychange",RC)):i==="focusout"&&CC()}function AK(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return rg(bp)}function MK(i,o){if(i==="click")return rg(o)}function CK(i,o){if(i==="input"||i==="change")return rg(o)}function RK(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}function Oh(i,o){if(zi(i,o))return!0;if(typeof i!=="object"||i===null||typeof o!=="object"||o===null)return!1;var u=Object.keys(i),m=Object.keys(o);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var E=u[m];if(!la.call(o,E)||!zi(i[E],o[E]))return!1}return!0}function IC(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function OC(i,o){var u=IC(i);i=0;for(var m;u;){if(u.nodeType===3){if(m=i+u.textContent.length,i<=o&&m>=o)return{node:u,offset:o-i};i=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=IC(u)}}function NC(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?NC(i,o.parentNode):("contains"in i)?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function DC(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=xt(i.document);o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href==="string"}catch(m){u=!1}if(u)i=o.contentWindow;else break;o=xt(i.document)}return o}function oS(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function zC(i,o,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;k6||If==null||If!==xt(m)||(m=If,("selectionStart"in m)&&oS(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),yp&&Oh(yp,m)||(yp=m,m=Vg(T6,"onSelect"),0<m.length&&(o=new p1("onSelect","select",null,o,u),i.push({event:o,listeners:m}),o.target=If)))}function Ru(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}function Iu(i){if(A6[i])return A6[i];if(!Of[i])return i;var o=Of[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in $I)return A6[i]=o[u];return i}function oa(i,o){ZI.set(i,o),tt(o,[i])}function IK(i){for(var o=g1,u=0;u<i.length;u++){var m=i[u];if(typeof m==="object"&&m!==null)if(Kn(m)&&m.length===2&&typeof m[0]==="string"){if(o!==g1&&o!==O6)return R6;o=O6}else return R6;else{if(typeof m==="function"||typeof m==="string"&&50<m.length||o!==g1&&o!==I6)return R6;o=I6}}return o}function aS(i,o,u,m){for(var E in i)la.call(i,E)&&E[0]!=="_"&&Ma(E,i[E],o,u,m)}function Ma(i,o,u,m,E){switch(typeof o){case"object":if(o===null){o="null";break}else{if(o.$$typeof===Fa){var M=ce(o.type)||"…",D=o.key;o=o.props;var H=Object.keys(o),X=H.length;if(D==null&&X===0){o="<"+M+" />";break}if(3>m||X===1&&H[0]==="children"&&D==null){o="<"+M+" … />";break}u.push([E+"  ".repeat(m)+i,"<"+M]),D!==null&&Ma("key",D,u,m+1,E),i=!1;for(var ne in o)ne==="children"?o.children!=null&&(!Kn(o.children)||0<o.children.length)&&(i=!0):la.call(o,ne)&&ne[0]!=="_"&&Ma(ne,o[ne],u,m+1,E);u.push(["",i?">…</"+M+">":"/>"]);return}if(M=Object.prototype.toString.call(o),M=M.slice(8,M.length-1),M==="Array"){if(ne=IK(o),ne===I6||ne===g1){o=JSON.stringify(o);break}else if(ne===O6){u.push([E+"  ".repeat(m)+i,""]);for(i=0;i<o.length;i++)M=o[i],Ma(M[0],M[1],u,m+1,E);return}}if(M==="Promise"){if(o.status==="fulfilled"){if(M=u.length,Ma(i,o.value,u,m,E),u.length>M){u=u[M],u[1]="Promise<"+(u[1]||"Object")+">";return}}else if(o.status==="rejected"&&(M=u.length,Ma(i,o.reason,u,m,E),u.length>M)){u=u[M],u[1]="Rejected Promise<"+u[1]+">";return}u.push(["  ".repeat(m)+i,"Promise"]);return}M==="Object"&&(ne=Object.getPrototypeOf(o))&&typeof ne.constructor==="function"&&(M=ne.constructor.name),u.push([E+"  ".repeat(m)+i,M==="Object"?3>m?"":"…":M]),3>m&&aS(o,u,m+1,E);return}case"function":o=o.name===""?"() => {}":o.name+"() {}";break;case"string":o=o===cJ?"…":JSON.stringify(o);break;case"undefined":o="undefined";break;case"boolean":o=o?"true":"false";break;default:o=String(o)}u.push([E+"  ".repeat(m)+i,o])}function LC(i,o,u,m){var E=!0;for(D in i)D in o||(u.push([b1+"  ".repeat(m)+D,"…"]),E=!1);for(var M in o)if(M in i){var D=i[M],H=o[M];if(D!==H){if(m===0&&M==="children")E="  ".repeat(m)+M,u.push([b1+E,"…"],[y1+E,"…"]);else{if(!(3<=m)){if(typeof D==="object"&&typeof H==="object"&&D!==null&&H!==null&&D.$$typeof===H.$$typeof)if(H.$$typeof===Fa){if(D.type===H.type&&D.key===H.key){D=ce(H.type)||"…",E="  ".repeat(m)+M,D="<"+D+" … />",u.push([b1+E,D],[y1+E,D]),E=!1;continue}}else{var X=Object.prototype.toString.call(D),ne=Object.prototype.toString.call(H);if(X===ne&&(ne==="[object Object]"||ne==="[object Array]")){X=[GI+"  ".repeat(m)+M,ne==="[object Array]"?"Array":""],u.push(X),ne=u.length,LC(D,H,u,m+1)?ne===u.length&&(X[1]="Referentially unequal but deeply equal objects. Consider memoization."):E=!1;continue}}else if(typeof D==="function"&&typeof H==="function"&&D.name===H.name&&D.length===H.length&&(X=Function.prototype.toString.call(D),ne=Function.prototype.toString.call(H),X===ne)){D=H.name===""?"() => {}":H.name+"() {}",u.push([GI+"  ".repeat(m)+M,D+" Referentially unequal function closure. Consider memoization."]);continue}}Ma(M,D,u,m,b1),Ma(M,H,u,m,y1)}E=!1}}else u.push([y1+"  ".repeat(m)+M,"…"]),E=!1;return E}function bo(i){mr=i&63?"Blocking":i&64?"Gesture":i&4194176?"Transition":i&62914560?"Suspense":i&2080374784?"Idle":"Other"}function Ca(i,o,u,m){rn&&(Al.start=o,Al.end=u,Ms.color="warning",Ms.tooltipText=m,Ms.properties=null,(i=i._debugTask)?i.run(performance.measure.bind(performance,m,Al)):performance.measure(m,Al))}function ng(i,o,u){Ca(i,o,u,"Reconnect")}function ig(i,o,u,m,E){var M=Y(i);if(M!==null&&rn){var{alternate:D,actualDuration:H}=i;if(D===null||D.child!==i.child)for(var X=i.child;X!==null;X=X.sibling)H-=X.actualDuration;m=0.5>H?m?"tertiary-light":"primary-light":10>H?m?"tertiary":"primary":100>H?m?"tertiary-dark":"primary-dark":"error";var ne=i.memoizedProps;H=i._debugTask,ne!==null&&D!==null&&D.memoizedProps!==ne?(X=[fJ],ne=LC(D.memoizedProps,ne,X,0),1<X.length&&(ne&&!kl&&(D.lanes&E)===0&&100<i.actualDuration?(kl=!0,X[0]=dJ,Ms.color="warning",Ms.tooltipText=VI):(Ms.color=m,Ms.tooltipText=M),Ms.properties=X,Al.start=o,Al.end=u,H!=null?H.run(performance.measure.bind(performance,"​"+M,Al)):performance.measure("​"+M,Al))):H!=null?H.run(console.timeStamp.bind(console,M,o,u,Bo,void 0,m)):console.timeStamp(M,o,u,Bo,void 0,m)}}function sS(i,o,u,m){if(rn){var E=Y(i);if(E!==null){for(var M=null,D=[],H=0;H<m.length;H++){var X=m[H];M==null&&X.source!==null&&(M=X.source._debugTask),X=X.value,D.push(["Error",typeof X==="object"&&X!==null&&typeof X.message==="string"?String(X.message):String(X)])}i.key!==null&&Ma("key",i.key,D,0,""),i.memoizedProps!==null&&aS(i.memoizedProps,D,0,""),M==null&&(M=i._debugTask),i={start:o,end:u,detail:{devtools:{color:"error",track:Bo,tooltipText:i.tag===13?"Hydration failed":"Error boundary caught an error",properties:D}}},M?M.run(performance.measure.bind(performance,"​"+E,i)):performance.measure("​"+E,i)}}}function Ra(i,o,u,m,E){if(E!==null){if(rn){var M=Y(i);if(M!==null){m=[];for(var D=0;D<E.length;D++){var H=E[D].value;m.push(["Error",typeof H==="object"&&H!==null&&typeof H.message==="string"?String(H.message):String(H)])}i.key!==null&&Ma("key",i.key,m,0,""),i.memoizedProps!==null&&aS(i.memoizedProps,m,0,""),o={start:o,end:u,detail:{devtools:{color:"error",track:Bo,tooltipText:"A lifecycle or effect errored",properties:m}}},(i=i._debugTask)?i.run(performance.measure.bind(performance,"​"+M,o)):performance.measure("​"+M,o)}}}else M=Y(i),M!==null&&rn&&(E=1>m?"secondary-light":100>m?"secondary":500>m?"secondary-dark":"error",(i=i._debugTask)?i.run(console.timeStamp.bind(console,M,o,u,Bo,void 0,E)):console.timeStamp(M,o,u,Bo,void 0,E))}function OK(i,o,u,m){if(rn&&!(o<=i)){var E=(u&738197653)===u?"tertiary-dark":"primary-dark";u=(u&536870912)===u?"Prepared":(u&201326741)===u?"Hydrated":"Render",m?m.run(console.timeStamp.bind(console,u,i,o,mr,pr,E)):console.timeStamp(u,i,o,mr,pr,E)}}function PC(i,o,u,m){!rn||o<=i||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Prewarm",i,o,mr,pr,u)):console.timeStamp("Prewarm",i,o,mr,pr,u))}function $C(i,o,u,m){!rn||o<=i||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Suspended",i,o,mr,pr,u)):console.timeStamp("Suspended",i,o,mr,pr,u))}function NK(i,o,u,m,E,M){if(rn&&!(o<=i)){u=[];for(var D=0;D<m.length;D++){var H=m[D].value;u.push(["Recoverable Error",typeof H==="object"&&H!==null&&typeof H.message==="string"?String(H.message):String(H)])}i={start:i,end:o,detail:{devtools:{color:"primary-dark",track:mr,trackGroup:pr,tooltipText:E?"Hydration Failed":"Recovered after Error",properties:u}}},M?M.run(performance.measure.bind(performance,"Recovered",i)):performance.measure("Recovered",i)}}function lS(i,o,u,m){!rn||o<=i||(m?m.run(console.timeStamp.bind(console,"Errored",i,o,mr,pr,"error")):console.timeStamp("Errored",i,o,mr,pr,"error"))}function DK(i,o,u,m){!rn||o<=i||(m?m.run(console.timeStamp.bind(console,u,i,o,mr,pr,"secondary-light")):console.timeStamp(u,i,o,mr,pr,"secondary-light"))}function BC(i,o,u,m,E){if(rn&&!(o<=i)){for(var M=[],D=0;D<u.length;D++){var H=u[D].value;M.push(["Error",typeof H==="object"&&H!==null&&typeof H.message==="string"?String(H.message):String(H)])}i={start:i,end:o,detail:{devtools:{color:"error",track:mr,trackGroup:pr,tooltipText:m?"Remaining Effects Errored":"Commit Errored",properties:M}}},E?E.run(performance.measure.bind(performance,"Errored",i)):performance.measure("Errored",i)}}function Nh(i,o,u){!rn||o<=i||(u?u.run(console.timeStamp.bind(console,"Animating",i,o,mr,pr,"secondary-dark")):console.timeStamp("Animating",i,o,mr,pr,"secondary-dark"))}function og(){for(var i=Nf,o=N6=Nf=0;o<i;){var u=Uo[o];Uo[o++]=null;var m=Uo[o];Uo[o++]=null;var E=Uo[o];Uo[o++]=null;var M=Uo[o];if(Uo[o++]=null,m!==null&&E!==null){var D=m.pending;D===null?E.next=E:(E.next=D.next,D.next=E),m.pending=E}M!==0&&UC(u,E,M)}}function ag(i,o,u,m){Uo[Nf++]=i,Uo[Nf++]=o,Uo[Nf++]=u,Uo[Nf++]=m,N6|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function uS(i,o,u,m){return ag(i,o,u,m),sg(i)}function Si(i,o){return ag(i,null,null,o),sg(i)}function UC(i,o,u){i.lanes|=u;var m=i.alternate;m!==null&&(m.lanes|=u);for(var E=!1,M=i.return;M!==null;)M.childLanes|=u,m=M.alternate,m!==null&&(m.childLanes|=u),M.tag===22&&(i=M.stateNode,i===null||i._visibility&vp||(E=!0)),i=M,M=M.return;return i.tag===3?(M=i.stateNode,E&&o!==null&&(E=31-Oi(u),i=M.hiddenUpdates,m=i[E],m===null?i[E]=[o]:m.push(o),o.lane=u|536870912),M):null}function sg(i){if(Gp>AJ)throw ac=Gp=0,Vp=d_=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");ac>MJ&&(ac=0,Vp=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),i.alternate===null&&(i.flags&4098)!==0&&r7(i);for(var o=i,u=o.return;u!==null;)o.alternate===null&&(o.flags&4098)!==0&&r7(i),o=u,u=o.return;return o.tag===3?o.stateNode:null}function Ou(i){if(jo===null)return i;var o=jo(i);return o===void 0?i:o.current}function cS(i){if(jo===null)return i;var o=jo(i);return o===void 0?i!==null&&i!==void 0&&typeof i.render==="function"&&(o=Ou(i.render),i.render!==o)?(o={$$typeof:sp,render:o},i.displayName!==void 0&&(o.displayName=i.displayName),o):i:o.current}function jC(i,o){if(jo===null)return!1;var u=i.elementType;o=o.type;var m=!1,E=typeof o==="object"&&o!==null?o.$$typeof:null;switch(i.tag){case 1:typeof o==="function"&&(m=!0);break;case 0:typeof o==="function"?m=!0:E===Eo&&(m=!0);break;case 11:E===sp?m=!0:E===Eo&&(m=!0);break;case 14:case 15:E===i1?m=!0:E===Eo&&(m=!0);break;default:return!1}return m&&(i=jo(u),i!==void 0&&i===jo(o))?!0:!1}function HC(i){jo!==null&&typeof WeakSet==="function"&&(Df===null&&(Df=new WeakSet),Df.add(i))}function ZC(i,o,u){do{var m=i,E=m.alternate,M=m.child,D=m.sibling,H=m.tag;m=m.type;var X=null;switch(H){case 0:case 15:case 1:X=m;break;case 11:X=m.render}if(jo===null)throw Error("Expected resolveFamily to be set during hot reload.");var ne=!1;if(m=!1,X!==null&&(X=jo(X),X!==void 0&&(u.has(X)?m=!0:o.has(X)&&(H===1?m=!0:ne=!0))),Df!==null&&(Df.has(i)||E!==null&&Df.has(E))&&(m=!0),m&&(i._debugNeedsRemount=!0),m||ne)E=Si(i,2),E!==null&&Sn(E,i,2);if(M===null||m||ZC(M,o,u),D===null)break;i=D}while(1)}function zK(i,o,u,m){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,YI||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fS(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ss(i,o){var u=i.alternate;switch(u===null?(u=_(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u._debugOwner=i._debugOwner,u._debugStack=i._debugStack,u._debugTask=i._debugTask,u._debugHookTypes=i._debugHookTypes,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null,u.actualDuration=-0,u.actualStartTime=-1.1),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u.selfBaseDuration=i.selfBaseDuration,u.treeBaseDuration=i.treeBaseDuration,u._debugInfo=i._debugInfo,u._debugNeedsRemount=i._debugNeedsRemount,u.tag){case 0:case 15:u.type=Ou(i.type);break;case 1:u.type=Ou(i.type);break;case 11:u.type=cS(i.type)}return u}function FC(i,o){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,o=u.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},i.selfBaseDuration=u.selfBaseDuration,i.treeBaseDuration=u.treeBaseDuration),i}function dS(i,o,u,m,E,M){var D=0,H=i;if(typeof i==="function")fS(i)&&(D=1),H=Ou(H);else if(typeof i==="string")D=k(),D=FW(i,u,D)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case i6:return o=_(31,u,o,E),o.elementType=i6,o.lanes=M,o;case _f:return Nu(u.children,E,M,o);case n1:D=8,E|=_i,E|=ca;break;case e6:return i=u,m=E,typeof i.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof i.id),o=_(12,i,o,m|sr),o.elementType=e6,o.lanes=M,o.stateNode={effectDuration:0,passiveEffectDuration:0},o;case r6:return o=_(13,u,o,E),o.elementType=r6,o.lanes=M,o;case n6:return o=_(19,u,o,E),o.elementType=n6,o.lanes=M,o;default:if(typeof i==="object"&&i!==null)switch(i.$$typeof){case qa:D=10;break e;case t6:D=9;break e;case sp:D=11,H=cS(H);break e;case i1:D=14;break e;case Eo:D=16,H=null;break e}if(H="",i===void 0||typeof i==="object"&&i!==null&&Object.keys(i).length===0)H+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";i===null?u="null":Kn(i)?u="array":i!==void 0&&i.$$typeof===Fa?(u="<"+(ce(i.type)||"Unknown")+" />",H=" Did you accidentally export a JSX literal instead of a component?"):u=typeof i,(D=m?Me(m):null)&&(H+=`
71
+ This will cause a hydration error.%s`,o,u),!1}function Mh(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}function gK(i){return i.replace(wX,function(o,u){return u.toUpperCase()})}function bC(i,o,u){var m=o.indexOf("--")===0;m||(-1<o.indexOf("-")?Tf.hasOwnProperty(o)&&Tf[o]||(Tf[o]=!0,console.error("Unsupported style property %s. Did you mean %s?",o,gK(o.replace(_X,"ms-")))):xX.test(o)?Tf.hasOwnProperty(o)&&Tf[o]||(Tf[o]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1))):!_I.test(u)||b6.hasOwnProperty(u)&&b6[u]||(b6[u]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,u.replace(_I,""))),typeof u==="number"&&(isNaN(u)?wI||(wI=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",o)):isFinite(u)||EI||(EI=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",o)))),u==null||typeof u==="boolean"||u===""?m?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":m?i.setProperty(o,u):typeof u!=="number"||u===0||TI.has(o)?o==="float"?i.cssFloat=u:(Ke(u,o),i[o]=(""+u).trim()):i[o]=u+"px"}function yC(i,o,u){if(o!=null&&typeof o!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(o&&Object.freeze(o),i=i.style,u!=null){if(o){var m={};if(u){for(var E in u)if(u.hasOwnProperty(E)&&!o.hasOwnProperty(E))for(var M=g6[E]||[E],D=0;D<M.length;D++)m[M[D]]=E}for(var H in o)if(o.hasOwnProperty(H)&&(!u||u[H]!==o[H]))for(E=g6[H]||[H],M=0;M<E.length;M++)m[E[M]]=H;H={};for(var X in o)for(E=g6[X]||[X],M=0;M<E.length;M++)H[E[M]]=X;X={};for(var ne in m)if(E=m[ne],(M=H[ne])&&E!==M&&(D=E+","+M,!X[D])){X[D]=!0,D=console;var je=o[E];D.error.call(D,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",je==null||typeof je==="boolean"||je===""?"Removing":"Updating",E,M)}}for(var He in u)!u.hasOwnProperty(He)||o!=null&&o.hasOwnProperty(He)||(He.indexOf("--")===0?i.setProperty(He,""):He==="float"?i.cssFloat="":i[He]="");for(var Re in o)ne=o[Re],o.hasOwnProperty(Re)&&u[Re]!==ne&&bC(i,Re,ne)}else for(m in o)o.hasOwnProperty(m)&&bC(i,m,o[m])}function Ch(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function vC(i){return EX.get(i)||i}function bK(i,o){if(la.call(Af,o)&&Af[o])return!0;if(kX.test(o)){if(i="aria-"+o.slice(4).toLowerCase(),i=kI.hasOwnProperty(i)?i:null,i==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Af[o]=!0;if(o!==i)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,i),Af[o]=!0}if(TX.test(o)){if(i=o.toLowerCase(),i=kI.hasOwnProperty(i)?i:null,i==null)return Af[o]=!0,!1;o!==i&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,i),Af[o]=!0)}return!0}function yK(i,o){var u=[],m;for(m in o)bK(i,m)||u.push(m);o=u.map(function(E){return"`"+E+"`"}).join(", "),u.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,i):1<u.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,i)}function vK(i,o,u,m){if(la.call(Di,o)&&Di[o])return!0;var E=o.toLowerCase();if(E==="onfocusin"||E==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Di[o]=!0;if(typeof u==="function"&&(i==="form"&&o==="action"||i==="input"&&o==="formAction"||i==="button"&&o==="formAction"))return!0;if(m!=null){if(i=m.possibleRegistrationNames,m.registrationNameDependencies.hasOwnProperty(o))return!0;if(m=i.hasOwnProperty(E)?i[E]:null,m!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",o,m),Di[o]=!0;if(MI.test(o))return console.error("Unknown event handler property `%s`. It will be ignored.",o),Di[o]=!0}else if(MI.test(o))return AX.test(o)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),Di[o]=!0;if(MX.test(o)||CX.test(o))return!0;if(E==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Di[o]=!0;if(E==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Di[o]=!0;if(E==="is"&&u!==null&&u!==void 0&&typeof u!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),Di[o]=!0;if(typeof u==="number"&&isNaN(u))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),Di[o]=!0;if(d1.hasOwnProperty(E)){if(E=d1[E],E!==o)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",o,E),Di[o]=!0}else if(o!==E)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,E),Di[o]=!0;switch(o){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof u){case"boolean":switch(o){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(E=o.toLowerCase().slice(0,5),E==="data-"||E==="aria-")return!0;return u?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,o,o,u,o):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,o,o,u,o,o,o),Di[o]=!0}case"function":case"symbol":return Di[o]=!0,!1;case"string":if(u==="false"||u==="true"){switch(o){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,o,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,u),Di[o]=!0}}return!0}function SK(i,o,u){var m=[],E;for(E in o)vK(i,E,o[E],u)||m.push(E);o=m.map(function(M){return"`"+M+"`"}).join(", "),m.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,i):1<m.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,i)}function Rh(i){return RX.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function vs(){}function nS(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}function SC(i){var o=at(i);if(o&&(i=o.stateNode)){var u=i[Ni]||null;e:switch(i=o.stateNode,o.type){case"input":if(St(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;se(o,"name"),u=u.querySelectorAll('input[name="'+zr(""+o)+'"][type="radio"]');for(o=0;o<u.length;o++){var m=u[o];if(m!==i&&m.form===i.form){var E=m[Ni]||null;if(!E)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");St(m,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(o=0;o<u.length;o++)m=u[o],m.form===i.form&&_t(m)}break e;case"textarea":Tn(i,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Tr(i,!!u.multiple,o,!1)}}}function xC(i,o,u){if(y6)return i(o,u);y6=!0;try{var m=i(o);return m}finally{if(y6=!1,Mf!==null||Cf!==null){if(mf(),Mf&&(o=Mf,i=Cf,Cf=Mf=null,SC(o),i))for(o=0;o<i.length;o++)SC(i[o])}}}function Ih(i,o){var u=i.stateNode;if(u===null)return null;var m=u[Ni]||null;if(m===null)return null;u=m[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(u&&typeof u!=="function")throw Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof u+"` type.");return u}function _C(){if(h1)return h1;var i,o=S6,u=o.length,m,E="value"in Tl?Tl.value:Tl.textContent,M=E.length;for(i=0;i<u&&o[i]===E[i];i++);var D=u-i;for(m=1;m<=D&&o[u-m]===E[M-m];m++);return h1=E.slice(i,1<m?1-m:void 0)}function eg(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function tg(){return!0}function wC(){return!1}function to(i){function o(u,m,E,M,D){this._reactName=u,this._targetInst=E,this.type=m,this.nativeEvent=M,this.target=D,this.currentTarget=null;for(var H in i)i.hasOwnProperty(H)&&(u=i[H],this[H]=u?u(M):M[H]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?tg:wC,this.isPropagationStopped=wC,this}return hr(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!=="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=tg)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!=="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=tg)},persist:function(){},isPersistent:tg}),o}function xK(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=ZX[i])?!!o[i]:!1}function iS(){return xK}function EC(i,o){switch(i){case"keyup":return tJ.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==OI;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TC(i){return i=i.detail,typeof i==="object"&&"data"in i?i.data:null}function _K(i,o){switch(i){case"compositionend":return TC(o);case"keypress":if(o.which!==DI)return null;return LI=!0,zI;case"textInput":return i=o.data,i===zI&&LI?null:i;default:return null}}function wK(i,o){if(Rf)return i==="compositionend"||!E6&&EC(i,o)?(i=_C(),h1=S6=Tl=null,Rf=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return NI&&o.locale!=="ko"?null:o.data;default:return null}}function kC(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!nJ[i.type]:o==="textarea"?!0:!1}function EK(i){if(!Wa)return!1;i="on"+i;var o=i in document;return o||(o=document.createElement("div"),o.setAttribute(i,"return;"),o=typeof o[i]==="function"),o}function AC(i,o,u,m){Mf?Cf?Cf.push(m):Cf=[m]:Mf=m,o=Vg(o,"onChange"),0<o.length&&(u=new p1("onChange","change",null,u,m),i.push({event:u,listeners:o}))}function TK(i){u7(i,0)}function rg(i){var o=$e(i);if(_t(o))return i}function MC(i,o){if(i==="change")return o}function CC(){gp&&(gp.detachEvent("onpropertychange",RC),bp=gp=null)}function RC(i){if(i.propertyName==="value"&&rg(bp)){var o=[];AC(o,bp,i,nS(i)),xC(TK,o)}}function kK(i,o,u){i==="focusin"?(CC(),gp=o,bp=u,gp.attachEvent("onpropertychange",RC)):i==="focusout"&&CC()}function AK(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return rg(bp)}function MK(i,o){if(i==="click")return rg(o)}function CK(i,o){if(i==="input"||i==="change")return rg(o)}function RK(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}function Oh(i,o){if(zi(i,o))return!0;if(typeof i!=="object"||i===null||typeof o!=="object"||o===null)return!1;var u=Object.keys(i),m=Object.keys(o);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var E=u[m];if(!la.call(o,E)||!zi(i[E],o[E]))return!1}return!0}function IC(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function OC(i,o){var u=IC(i);i=0;for(var m;u;){if(u.nodeType===3){if(m=i+u.textContent.length,i<=o&&m>=o)return{node:u,offset:o-i};i=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=IC(u)}}function NC(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?NC(i,o.parentNode):("contains"in i)?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function DC(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=xt(i.document);o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href==="string"}catch(m){u=!1}if(u)i=o.contentWindow;else break;o=xt(i.document)}return o}function oS(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function zC(i,o,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;k6||If==null||If!==xt(m)||(m=If,("selectionStart"in m)&&oS(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),yp&&Oh(yp,m)||(yp=m,m=Vg(T6,"onSelect"),0<m.length&&(o=new p1("onSelect","select",null,o,u),i.push({event:o,listeners:m}),o.target=If)))}function Ru(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}function Iu(i){if(A6[i])return A6[i];if(!Of[i])return i;var o=Of[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in $I)return A6[i]=o[u];return i}function oa(i,o){ZI.set(i,o),tt(o,[i])}function IK(i){for(var o=g1,u=0;u<i.length;u++){var m=i[u];if(typeof m==="object"&&m!==null)if(Kn(m)&&m.length===2&&typeof m[0]==="string"){if(o!==g1&&o!==O6)return R6;o=O6}else return R6;else{if(typeof m==="function"||typeof m==="string"&&50<m.length||o!==g1&&o!==I6)return R6;o=I6}}return o}function aS(i,o,u,m){for(var E in i)la.call(i,E)&&E[0]!=="_"&&Ma(E,i[E],o,u,m)}function Ma(i,o,u,m,E){switch(typeof o){case"object":if(o===null){o="null";break}else{if(o.$$typeof===Fa){var M=ce(o.type)||"…",D=o.key;o=o.props;var H=Object.keys(o),X=H.length;if(D==null&&X===0){o="<"+M+" />";break}if(3>m||X===1&&H[0]==="children"&&D==null){o="<"+M+" … />";break}u.push([E+"  ".repeat(m)+i,"<"+M]),D!==null&&Ma("key",D,u,m+1,E),i=!1;for(var ne in o)ne==="children"?o.children!=null&&(!Kn(o.children)||0<o.children.length)&&(i=!0):la.call(o,ne)&&ne[0]!=="_"&&Ma(ne,o[ne],u,m+1,E);u.push(["",i?">…</"+M+">":"/>"]);return}if(M=Object.prototype.toString.call(o),M=M.slice(8,M.length-1),M==="Array"){if(ne=IK(o),ne===I6||ne===g1){o=JSON.stringify(o);break}else if(ne===O6){u.push([E+"  ".repeat(m)+i,""]);for(i=0;i<o.length;i++)M=o[i],Ma(M[0],M[1],u,m+1,E);return}}if(M==="Promise"){if(o.status==="fulfilled"){if(M=u.length,Ma(i,o.value,u,m,E),u.length>M){u=u[M],u[1]="Promise<"+(u[1]||"Object")+">";return}}else if(o.status==="rejected"&&(M=u.length,Ma(i,o.reason,u,m,E),u.length>M)){u=u[M],u[1]="Rejected Promise<"+u[1]+">";return}u.push(["  ".repeat(m)+i,"Promise"]);return}M==="Object"&&(ne=Object.getPrototypeOf(o))&&typeof ne.constructor==="function"&&(M=ne.constructor.name),u.push([E+"  ".repeat(m)+i,M==="Object"?3>m?"":"…":M]),3>m&&aS(o,u,m+1,E);return}case"function":o=o.name===""?"() => {}":o.name+"() {}";break;case"string":o=o===cJ?"…":JSON.stringify(o);break;case"undefined":o="undefined";break;case"boolean":o=o?"true":"false";break;default:o=String(o)}u.push([E+"  ".repeat(m)+i,o])}function LC(i,o,u,m){var E=!0;for(D in i)D in o||(u.push([b1+"  ".repeat(m)+D,"…"]),E=!1);for(var M in o)if(M in i){var D=i[M],H=o[M];if(D!==H){if(m===0&&M==="children")E="  ".repeat(m)+M,u.push([b1+E,"…"],[y1+E,"…"]);else{if(!(3<=m)){if(typeof D==="object"&&typeof H==="object"&&D!==null&&H!==null&&D.$$typeof===H.$$typeof)if(H.$$typeof===Fa){if(D.type===H.type&&D.key===H.key){D=ce(H.type)||"…",E="  ".repeat(m)+M,D="<"+D+" … />",u.push([b1+E,D],[y1+E,D]),E=!1;continue}}else{var X=Object.prototype.toString.call(D),ne=Object.prototype.toString.call(H);if(X===ne&&(ne==="[object Object]"||ne==="[object Array]")){X=[GI+"  ".repeat(m)+M,ne==="[object Array]"?"Array":""],u.push(X),ne=u.length,LC(D,H,u,m+1)?ne===u.length&&(X[1]="Referentially unequal but deeply equal objects. Consider memoization."):E=!1;continue}}else if(typeof D==="function"&&typeof H==="function"&&D.name===H.name&&D.length===H.length&&(X=Function.prototype.toString.call(D),ne=Function.prototype.toString.call(H),X===ne)){D=H.name===""?"() => {}":H.name+"() {}",u.push([GI+"  ".repeat(m)+M,D+" Referentially unequal function closure. Consider memoization."]);continue}}Ma(M,D,u,m,b1),Ma(M,H,u,m,y1)}E=!1}}else u.push([y1+"  ".repeat(m)+M,"…"]),E=!1;return E}function bo(i){mr=i&63?"Blocking":i&64?"Gesture":i&4194176?"Transition":i&62914560?"Suspense":i&2080374784?"Idle":"Other"}function Ca(i,o,u,m){rn&&(Al.start=o,Al.end=u,Ms.color="warning",Ms.tooltipText=m,Ms.properties=null,(i=i._debugTask)?i.run(performance.measure.bind(performance,m,Al)):performance.measure(m,Al))}function ng(i,o,u){Ca(i,o,u,"Reconnect")}function ig(i,o,u,m,E){var M=Y(i);if(M!==null&&rn){var{alternate:D,actualDuration:H}=i;if(D===null||D.child!==i.child)for(var X=i.child;X!==null;X=X.sibling)H-=X.actualDuration;m=0.5>H?m?"tertiary-light":"primary-light":10>H?m?"tertiary":"primary":100>H?m?"tertiary-dark":"primary-dark":"error";var ne=i.memoizedProps;H=i._debugTask,ne!==null&&D!==null&&D.memoizedProps!==ne?(X=[fJ],ne=LC(D.memoizedProps,ne,X,0),1<X.length&&(ne&&!kl&&(D.lanes&E)===0&&100<i.actualDuration?(kl=!0,X[0]=dJ,Ms.color="warning",Ms.tooltipText=VI):(Ms.color=m,Ms.tooltipText=M),Ms.properties=X,Al.start=o,Al.end=u,H!=null?H.run(performance.measure.bind(performance,"​"+M,Al)):performance.measure("​"+M,Al))):H!=null?H.run(console.timeStamp.bind(console,M,o,u,Bo,void 0,m)):console.timeStamp(M,o,u,Bo,void 0,m)}}function sS(i,o,u,m){if(rn){var E=Y(i);if(E!==null){for(var M=null,D=[],H=0;H<m.length;H++){var X=m[H];M==null&&X.source!==null&&(M=X.source._debugTask),X=X.value,D.push(["Error",typeof X==="object"&&X!==null&&typeof X.message==="string"?String(X.message):String(X)])}i.key!==null&&Ma("key",i.key,D,0,""),i.memoizedProps!==null&&aS(i.memoizedProps,D,0,""),M==null&&(M=i._debugTask),i={start:o,end:u,detail:{devtools:{color:"error",track:Bo,tooltipText:i.tag===13?"Hydration failed":"Error boundary caught an error",properties:D}}},M?M.run(performance.measure.bind(performance,"​"+E,i)):performance.measure("​"+E,i)}}}function Ra(i,o,u,m,E){if(E!==null){if(rn){var M=Y(i);if(M!==null){m=[];for(var D=0;D<E.length;D++){var H=E[D].value;m.push(["Error",typeof H==="object"&&H!==null&&typeof H.message==="string"?String(H.message):String(H)])}i.key!==null&&Ma("key",i.key,m,0,""),i.memoizedProps!==null&&aS(i.memoizedProps,m,0,""),o={start:o,end:u,detail:{devtools:{color:"error",track:Bo,tooltipText:"A lifecycle or effect errored",properties:m}}},(i=i._debugTask)?i.run(performance.measure.bind(performance,"​"+M,o)):performance.measure("​"+M,o)}}}else M=Y(i),M!==null&&rn&&(E=1>m?"secondary-light":100>m?"secondary":500>m?"secondary-dark":"error",(i=i._debugTask)?i.run(console.timeStamp.bind(console,M,o,u,Bo,void 0,E)):console.timeStamp(M,o,u,Bo,void 0,E))}function OK(i,o,u,m){if(rn&&!(o<=i)){var E=(u&738197653)===u?"tertiary-dark":"primary-dark";u=(u&536870912)===u?"Prepared":(u&201326741)===u?"Hydrated":"Render",m?m.run(console.timeStamp.bind(console,u,i,o,mr,pr,E)):console.timeStamp(u,i,o,mr,pr,E)}}function PC(i,o,u,m){!rn||o<=i||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Prewarm",i,o,mr,pr,u)):console.timeStamp("Prewarm",i,o,mr,pr,u))}function $C(i,o,u,m){!rn||o<=i||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Suspended",i,o,mr,pr,u)):console.timeStamp("Suspended",i,o,mr,pr,u))}function NK(i,o,u,m,E,M){if(rn&&!(o<=i)){u=[];for(var D=0;D<m.length;D++){var H=m[D].value;u.push(["Recoverable Error",typeof H==="object"&&H!==null&&typeof H.message==="string"?String(H.message):String(H)])}i={start:i,end:o,detail:{devtools:{color:"primary-dark",track:mr,trackGroup:pr,tooltipText:E?"Hydration Failed":"Recovered after Error",properties:u}}},M?M.run(performance.measure.bind(performance,"Recovered",i)):performance.measure("Recovered",i)}}function lS(i,o,u,m){!rn||o<=i||(m?m.run(console.timeStamp.bind(console,"Errored",i,o,mr,pr,"error")):console.timeStamp("Errored",i,o,mr,pr,"error"))}function DK(i,o,u,m){!rn||o<=i||(m?m.run(console.timeStamp.bind(console,u,i,o,mr,pr,"secondary-light")):console.timeStamp(u,i,o,mr,pr,"secondary-light"))}function BC(i,o,u,m,E){if(rn&&!(o<=i)){for(var M=[],D=0;D<u.length;D++){var H=u[D].value;M.push(["Error",typeof H==="object"&&H!==null&&typeof H.message==="string"?String(H.message):String(H)])}i={start:i,end:o,detail:{devtools:{color:"error",track:mr,trackGroup:pr,tooltipText:m?"Remaining Effects Errored":"Commit Errored",properties:M}}},E?E.run(performance.measure.bind(performance,"Errored",i)):performance.measure("Errored",i)}}function Nh(i,o,u){!rn||o<=i||(u?u.run(console.timeStamp.bind(console,"Animating",i,o,mr,pr,"secondary-dark")):console.timeStamp("Animating",i,o,mr,pr,"secondary-dark"))}function og(){for(var i=Nf,o=N6=Nf=0;o<i;){var u=Uo[o];Uo[o++]=null;var m=Uo[o];Uo[o++]=null;var E=Uo[o];Uo[o++]=null;var M=Uo[o];if(Uo[o++]=null,m!==null&&E!==null){var D=m.pending;D===null?E.next=E:(E.next=D.next,D.next=E),m.pending=E}M!==0&&UC(u,E,M)}}function ag(i,o,u,m){Uo[Nf++]=i,Uo[Nf++]=o,Uo[Nf++]=u,Uo[Nf++]=m,N6|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function uS(i,o,u,m){return ag(i,o,u,m),sg(i)}function Si(i,o){return ag(i,null,null,o),sg(i)}function UC(i,o,u){i.lanes|=u;var m=i.alternate;m!==null&&(m.lanes|=u);for(var E=!1,M=i.return;M!==null;)M.childLanes|=u,m=M.alternate,m!==null&&(m.childLanes|=u),M.tag===22&&(i=M.stateNode,i===null||i._visibility&vp||(E=!0)),i=M,M=M.return;return i.tag===3?(M=i.stateNode,E&&o!==null&&(E=31-Oi(u),i=M.hiddenUpdates,m=i[E],m===null?i[E]=[o]:m.push(o),o.lane=u|536870912),M):null}function sg(i){if(Gp>AJ)throw ac=Gp=0,Vp=d_=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");ac>MJ&&(ac=0,Vp=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),i.alternate===null&&(i.flags&4098)!==0&&r7(i);for(var o=i,u=o.return;u!==null;)o.alternate===null&&(o.flags&4098)!==0&&r7(i),o=u,u=o.return;return o.tag===3?o.stateNode:null}function Ou(i){if(jo===null)return i;var o=jo(i);return o===void 0?i:o.current}function cS(i){if(jo===null)return i;var o=jo(i);return o===void 0?i!==null&&i!==void 0&&typeof i.render==="function"&&(o=Ou(i.render),i.render!==o)?(o={$$typeof:sp,render:o},i.displayName!==void 0&&(o.displayName=i.displayName),o):i:o.current}function jC(i,o){if(jo===null)return!1;var u=i.elementType;o=o.type;var m=!1,E=typeof o==="object"&&o!==null?o.$$typeof:null;switch(i.tag){case 1:typeof o==="function"&&(m=!0);break;case 0:typeof o==="function"?m=!0:E===Eo&&(m=!0);break;case 11:E===sp?m=!0:E===Eo&&(m=!0);break;case 14:case 15:E===i1?m=!0:E===Eo&&(m=!0);break;default:return!1}return m&&(i=jo(u),i!==void 0&&i===jo(o))?!0:!1}function HC(i){jo!==null&&typeof WeakSet==="function"&&(Df===null&&(Df=new WeakSet),Df.add(i))}function ZC(i,o,u){do{var m=i,E=m.alternate,M=m.child,D=m.sibling,H=m.tag;m=m.type;var X=null;switch(H){case 0:case 15:case 1:X=m;break;case 11:X=m.render}if(jo===null)throw Error("Expected resolveFamily to be set during hot reload.");var ne=!1;if(m=!1,X!==null&&(X=jo(X),X!==void 0&&(u.has(X)?m=!0:o.has(X)&&(H===1?m=!0:ne=!0))),Df!==null&&(Df.has(i)||E!==null&&Df.has(E))&&(m=!0),m&&(i._debugNeedsRemount=!0),m||ne)E=Si(i,2),E!==null&&vn(E,i,2);if(M===null||m||ZC(M,o,u),D===null)break;i=D}while(1)}function zK(i,o,u,m){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,YI||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fS(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ss(i,o){var u=i.alternate;switch(u===null?(u=_(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u._debugOwner=i._debugOwner,u._debugStack=i._debugStack,u._debugTask=i._debugTask,u._debugHookTypes=i._debugHookTypes,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null,u.actualDuration=-0,u.actualStartTime=-1.1),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u.selfBaseDuration=i.selfBaseDuration,u.treeBaseDuration=i.treeBaseDuration,u._debugInfo=i._debugInfo,u._debugNeedsRemount=i._debugNeedsRemount,u.tag){case 0:case 15:u.type=Ou(i.type);break;case 1:u.type=Ou(i.type);break;case 11:u.type=cS(i.type)}return u}function FC(i,o){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,o=u.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},i.selfBaseDuration=u.selfBaseDuration,i.treeBaseDuration=u.treeBaseDuration),i}function dS(i,o,u,m,E,M){var D=0,H=i;if(typeof i==="function")fS(i)&&(D=1),H=Ou(H);else if(typeof i==="string")D=k(),D=FW(i,u,D)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case i6:return o=_(31,u,o,E),o.elementType=i6,o.lanes=M,o;case _f:return Nu(u.children,E,M,o);case n1:D=8,E|=_i,E|=ca;break;case e6:return i=u,m=E,typeof i.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof i.id),o=_(12,i,o,m|sr),o.elementType=e6,o.lanes=M,o.stateNode={effectDuration:0,passiveEffectDuration:0},o;case r6:return o=_(13,u,o,E),o.elementType=r6,o.lanes=M,o;case n6:return o=_(19,u,o,E),o.elementType=n6,o.lanes=M,o;default:if(typeof i==="object"&&i!==null)switch(i.$$typeof){case qa:D=10;break e;case t6:D=9;break e;case sp:D=11,H=cS(H);break e;case i1:D=14;break e;case Eo:D=16,H=null;break e}if(H="",i===void 0||typeof i==="object"&&i!==null&&Object.keys(i).length===0)H+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";i===null?u="null":Kn(i)?u="array":i!==void 0&&i.$$typeof===Fa?(u="<"+(ce(i.type)||"Unknown")+" />",H=" Did you accidentally export a JSX literal instead of a component?"):u=typeof i,(D=m?Me(m):null)&&(H+=`
72
72
 
73
73
  Check the render method of \``+D+"`."),D=29,u=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(u+"."+H)),H=null}return o=_(D,u,o,E),o.elementType=i,o.type=H,o.lanes=M,o._debugOwner=m,o}function lg(i,o,u){return o=dS(i.type,i.key,i.props,i._owner,o,u),o._debugOwner=i._owner,o._debugStack=i._debugStack,o._debugTask=i._debugTask,o}function Nu(i,o,u,m){return i=_(7,i,m,o),i.lanes=u,i}function hS(i,o,u){return i=_(6,i,null,o),i.lanes=u,i}function qC(i){var o=_(18,null,null,Xt);return o.stateNode=i,o}function pS(i,o,u){return o=_(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function yo(i,o){if(typeof i==="object"&&i!==null){var u=D6.get(i);if(u!==void 0)return u;return o={value:i,source:o,stack:me(o)},D6.set(i,o),o}return{value:i,source:o,stack:me(o)}}function xs(i,o){ul(),zf[Lf++]=Sp,zf[Lf++]=v1,v1=i,Sp=o}function GC(i,o,u){ul(),Ho[Zo++]=Rs,Ho[Zo++]=Is,Ho[Zo++]=Gu,Gu=i;var m=Rs;i=Is;var E=32-Oi(m)-1;m&=~(1<<E),u+=1;var M=32-Oi(o)+E;if(30<M){var D=E-E%5;M=(m&(1<<D)-1).toString(32),m>>=D,E-=D,Rs=1<<32-Oi(o)+E|u<<E|m,Is=M+i}else Rs=1<<M|u<<E|m,Is=i}function mS(i){ul(),i.return!==null&&(xs(i,1),GC(i,1,0))}function gS(i){for(;i===v1;)v1=zf[--Lf],zf[Lf]=null,Sp=zf[--Lf],zf[Lf]=null;for(;i===Gu;)Gu=Ho[--Zo],Ho[Zo]=null,Is=Ho[--Zo],Ho[Zo]=null,Rs=Ho[--Zo],Ho[Zo]=null}function VC(){return ul(),Gu!==null?{id:Rs,overflow:Is}:null}function YC(i,o){ul(),Ho[Zo++]=Rs,Ho[Zo++]=Is,Ho[Zo++]=Gu,Rs=o.id,Is=o.overflow,Gu=i}function ul(){vr||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Du(i,o){if(i.return===null){if(Ao===null)Ao={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o};else{if(Ao.fiber!==i)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Ao.distanceFromLeaf>o&&(Ao.distanceFromLeaf=o)}return Ao}var u=Du(i.return,o+1).children;if(0<u.length&&u[u.length-1].fiber===i)return u=u[u.length-1],u.distanceFromLeaf>o&&(u.distanceFromLeaf=o),u;return o={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o},u.push(o),o}function KC(){vr&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ug(i,o){Xa||(i=Du(i,0),i.serverProps=null,o!==null&&(o=A7(o),i.serverTail.push(o)))}function cl(i){var o=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,u="",m=Ao;throw m!==null&&(Ao=null,u=tS(m)),Dh(yo(Error("Hydration failed because the server rendered "+(o?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
74
 
@@ -90,7 +90,7 @@ https://react.dev/link/hydration-mismatch`+u),i)),z6}function WC(i){var{stateNod
90
90
 
91
91
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
92
 
93
- %s%s`,"https://react.dev/link/hydration-mismatch",o)})}}function cg(){Pf=S1=null,$f=!1}function fl(i,o,u){p(L6,o._currentValue,i),o._currentValue=u,p(P6,o._currentRenderer,i),o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==WI&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=WI}function _s(i,o){i._currentValue=L6.current;var u=P6.current;f(P6,o),i._currentRenderer=u,f(L6,o)}function vS(i,o,u){for(;i!==null;){var m=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),i===u)break;i=i.return}i!==u&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function SS(i,o,u,m){var E=i.child;E!==null&&(E.return=i);for(;E!==null;){var M=E.dependencies;if(M!==null){var D=E.child;M=M.firstContext;e:for(;M!==null;){var H=M;M=E;for(var X=0;X<o.length;X++)if(H.context===o[X]){M.lanes|=u,H=M.alternate,H!==null&&(H.lanes|=u),vS(M.return,u,i),m||(D=null);break e}M=H.next}}else if(E.tag===18){if(D=E.return,D===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");D.lanes|=u,M=D.alternate,M!==null&&(M.lanes|=u),vS(D,u,i),D=null}else D=E.child;if(D!==null)D.return=E;else for(D=E;D!==null;){if(D===i){D=null;break}if(E=D.sibling,E!==null){E.return=D.return,D=E;break}D=D.return}E=D}}function sf(i,o,u,m){i=null;for(var E=o,M=!1;E!==null;){if(!M){if((E.flags&524288)!==0)M=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var D=E.alternate;if(D===null)throw Error("Should have a current fiber. This is a bug in React.");if(D=D.memoizedProps,D!==null){var H=E.type;zi(E.pendingProps.value,D.value)||(i!==null?i.push(H):i=[H])}}else if(E===o1.current){if(D=E.alternate,D===null)throw Error("Should have a current fiber. This is a bug in React.");D.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(Qp):i=[Qp])}E=E.return}i!==null&&SS(o,i,u,m),o.flags|=262144}function fg(i){for(i=i.firstContext;i!==null;){if(!zi(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Lu(i){S1=i,Pf=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function cn(i){return $f&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),JC(S1,i)}function dg(i,o){return S1===null&&Lu(i),JC(i,o)}function JC(i,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},Pf===null){if(i===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Pf=o,i.dependencies={lanes:0,firstContext:o,_debugThenableState:null},i.flags|=524288}else Pf=Pf.next=o;return u}function xS(){return{controller:new mJ,data:new Map,refCount:0}}function Pu(i){i.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),i.refCount++}function zh(i){i.refCount--,0>i.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),i.refCount===0&&gJ(bJ,function(){i.controller.abort()})}function Ia(i,o,u){if((i&127)!==0)0>Ja&&(Ja=jn(),_p=x1(o),$6=o,u!=null&&(B6=Y(u)),(Mr&(Xn|Ro))!==ii&&(xn=!0,Ol=xp),i=rp(),o=tp(),i!==Bf||o!==wp?Bf=-1.1:o!==null&&(Ol=xp),Yu=i,wp=o);else if((i&4194048)!==0&&0>qo&&(qo=jn(),Ep=x1(o),XI=o,u!=null&&(JI=Y(u)),0>Ds)){if(i=rp(),o=tp(),i!==Dl||o!==Ku)Dl=-1.1;Nl=i,Ku=o}}function LK(i){if(0>Ja){Ja=jn(),_p=i._debugTask!=null?i._debugTask:null,(Mr&(Xn|Ro))!==ii&&(Ol=xp);var o=rp(),u=tp();o!==Bf||u!==wp?Bf=-1.1:u!==null&&(Ol=xp),Yu=o,wp=u}if(0>qo&&(qo=jn(),Ep=i._debugTask!=null?i._debugTask:null,0>Ds)){if(i=rp(),o=tp(),i!==Dl||o!==Ku)Dl=-1.1;Nl=i,Ku=o}}function ws(){var i=Vu;return Vu=0,i}function hg(i){var o=Vu;return Vu=i,o}function Lh(i){var o=Vu;return Vu+=i,o}function pg(){Wt=Gt=-1.1}function vo(){var i=Gt;return Gt=-1.1,i}function So(i){0<=i&&(Gt=i)}function Oa(){var i=mn;return mn=-0,i}function Na(i){0<=i&&(mn=i)}function Da(){var i=fn;return fn=null,i}function za(){var i=xn;return xn=!1,i}function _S(i){Li=jn(),0>i.actualStartTime&&(i.actualStartTime=Li)}function wS(i){if(0<=Li){var o=jn()-Li;i.actualDuration+=o,i.selfBaseDuration=o,Li=-1}}function QC(i){if(0<=Li){var o=jn()-Li;i.actualDuration+=o,Li=-1}}function La(){if(0<=Li){var i=jn(),o=i-Li;Li=-1,Vu+=o,mn+=o,Wt=i}}function eR(i){fn===null&&(fn=[]),fn.push(i),Ns===null&&(Ns=[]),Ns.push(i)}function Pa(){Li=jn(),0>Gt&&(Gt=Li)}function Ph(i){for(var o=i.child;o;)i.actualDuration+=o.actualDuration,o=o.sibling}function PK(i,o){if(kp===null){var u=kp=[];j6=0,Wu=Ox(),Uf={status:"pending",value:void 0,then:function(m){u.push(m)}}}return j6++,o.then(tR,tR),o}function tR(){if(--j6===0&&(-1<qo||(Ds=-1.1),kp!==null)){Uf!==null&&(Uf.status="fulfilled");var i=kp;kp=null,Wu=0,Uf=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function $K(i,o){var u=[],m={status:"pending",value:null,reason:null,then:function(E){u.push(E)}};return i.then(function(){m.status="fulfilled",m.value=o;for(var E=0;E<u.length;E++)(0,u[E])(o)},function(E){m.status="rejected",m.reason=E;for(E=0;E<u.length;E++)(0,u[E])(void 0)}),m}function ES(){var i=Xu.current;return i!==null?i:qr.pooledCache}function mg(i,o){o===null?p(Xu,Xu.current,i):p(Xu,o.pool,i)}function rR(){var i=ES();return i===null?null:{parent:Un._currentValue,pool:i}}function nR(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function iR(i){return i=i.status,i==="fulfilled"||i==="rejected"}function oR(i,o,u){ut.actQueue!==null&&(ut.didUsePromise=!0);var m=i.thenables;if(u=m[u],u===void 0?m.push(o):u!==o&&(i.didWarnAboutUncachedPromise||(i.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),o.then(vs,vs),o=u),o._debugInfo===void 0){i=performance.now(),m=o.displayName;var E={name:typeof m==="string"?m:"Promise",start:i,end:i,value:o};o._debugInfo=[{awaited:E}],o.status!=="fulfilled"&&o.status!=="rejected"&&(i=function(){E.end=performance.now()},o.then(i,i))}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,sR(i),i;default:if(typeof o.status==="string")o.then(vs,vs);else{if(i=qr,i!==null&&100<i.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");i=o,i.status="pending",i.then(function(M){if(o.status==="pending"){var D=o;D.status="fulfilled",D.value=M}},function(M){if(o.status==="pending"){var D=o;D.status="rejected",D.reason=M}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,sR(i),i}throw Qu=o,Np=!0,jf}}function dl(i){try{return xJ(i)}catch(o){if(o!==null&&typeof o==="object"&&typeof o.then==="function")throw Qu=o,Np=!0,jf;throw o}}function aR(){if(Qu===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var i=Qu;return Qu=null,Np=!1,i}function sR(i){if(i===jf||i===C1)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function di(i){var o=lr;return i!=null&&(lr=o===null?i:o.concat(i)),o}function TS(){var i=lr;if(i!=null){for(var o=i.length-1;0<=o;o--)if(i[o].name!=null){var u=i[o].debugTask;if(u!=null)return u}}return null}function gg(i,o,u){for(var m=Object.keys(i.props),E=0;E<m.length;E++){var M=m[E];if(M!=="children"&&M!=="key"){o===null&&(o=lg(i,u.mode,0),o._debugInfo=lr,o.return=u),be(o,function(D){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D)},M);break}}}function bg(i){var o=Dp;return Dp+=1,Hf===null&&(Hf=nR()),oR(Hf,i,o)}function $h(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function lR(i,o){if(o.$$typeof===eX)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",o)})}}function cg(){Pf=S1=null,$f=!1}function fl(i,o,u){p(L6,o._currentValue,i),o._currentValue=u,p(P6,o._currentRenderer,i),o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==WI&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=WI}function _s(i,o){i._currentValue=L6.current;var u=P6.current;f(P6,o),i._currentRenderer=u,f(L6,o)}function vS(i,o,u){for(;i!==null;){var m=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),i===u)break;i=i.return}i!==u&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function SS(i,o,u,m){var E=i.child;E!==null&&(E.return=i);for(;E!==null;){var M=E.dependencies;if(M!==null){var D=E.child;M=M.firstContext;e:for(;M!==null;){var H=M;M=E;for(var X=0;X<o.length;X++)if(H.context===o[X]){M.lanes|=u,H=M.alternate,H!==null&&(H.lanes|=u),vS(M.return,u,i),m||(D=null);break e}M=H.next}}else if(E.tag===18){if(D=E.return,D===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");D.lanes|=u,M=D.alternate,M!==null&&(M.lanes|=u),vS(D,u,i),D=null}else D=E.child;if(D!==null)D.return=E;else for(D=E;D!==null;){if(D===i){D=null;break}if(E=D.sibling,E!==null){E.return=D.return,D=E;break}D=D.return}E=D}}function sf(i,o,u,m){i=null;for(var E=o,M=!1;E!==null;){if(!M){if((E.flags&524288)!==0)M=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var D=E.alternate;if(D===null)throw Error("Should have a current fiber. This is a bug in React.");if(D=D.memoizedProps,D!==null){var H=E.type;zi(E.pendingProps.value,D.value)||(i!==null?i.push(H):i=[H])}}else if(E===o1.current){if(D=E.alternate,D===null)throw Error("Should have a current fiber. This is a bug in React.");D.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(Qp):i=[Qp])}E=E.return}i!==null&&SS(o,i,u,m),o.flags|=262144}function fg(i){for(i=i.firstContext;i!==null;){if(!zi(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Lu(i){S1=i,Pf=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function cn(i){return $f&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),JC(S1,i)}function dg(i,o){return S1===null&&Lu(i),JC(i,o)}function JC(i,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},Pf===null){if(i===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Pf=o,i.dependencies={lanes:0,firstContext:o,_debugThenableState:null},i.flags|=524288}else Pf=Pf.next=o;return u}function xS(){return{controller:new mJ,data:new Map,refCount:0}}function Pu(i){i.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),i.refCount++}function zh(i){i.refCount--,0>i.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),i.refCount===0&&gJ(bJ,function(){i.controller.abort()})}function Ia(i,o,u){if((i&127)!==0)0>Ja&&(Ja=jn(),_p=x1(o),$6=o,u!=null&&(B6=Y(u)),(Mr&(Xn|Ro))!==ii&&(Sn=!0,Ol=xp),i=rp(),o=tp(),i!==Bf||o!==wp?Bf=-1.1:o!==null&&(Ol=xp),Yu=i,wp=o);else if((i&4194048)!==0&&0>qo&&(qo=jn(),Ep=x1(o),XI=o,u!=null&&(JI=Y(u)),0>Ds)){if(i=rp(),o=tp(),i!==Dl||o!==Ku)Dl=-1.1;Nl=i,Ku=o}}function LK(i){if(0>Ja){Ja=jn(),_p=i._debugTask!=null?i._debugTask:null,(Mr&(Xn|Ro))!==ii&&(Ol=xp);var o=rp(),u=tp();o!==Bf||u!==wp?Bf=-1.1:u!==null&&(Ol=xp),Yu=o,wp=u}if(0>qo&&(qo=jn(),Ep=i._debugTask!=null?i._debugTask:null,0>Ds)){if(i=rp(),o=tp(),i!==Dl||o!==Ku)Dl=-1.1;Nl=i,Ku=o}}function ws(){var i=Vu;return Vu=0,i}function hg(i){var o=Vu;return Vu=i,o}function Lh(i){var o=Vu;return Vu+=i,o}function pg(){Wt=Gt=-1.1}function vo(){var i=Gt;return Gt=-1.1,i}function So(i){0<=i&&(Gt=i)}function Oa(){var i=mn;return mn=-0,i}function Na(i){0<=i&&(mn=i)}function Da(){var i=fn;return fn=null,i}function za(){var i=Sn;return Sn=!1,i}function _S(i){Li=jn(),0>i.actualStartTime&&(i.actualStartTime=Li)}function wS(i){if(0<=Li){var o=jn()-Li;i.actualDuration+=o,i.selfBaseDuration=o,Li=-1}}function QC(i){if(0<=Li){var o=jn()-Li;i.actualDuration+=o,Li=-1}}function La(){if(0<=Li){var i=jn(),o=i-Li;Li=-1,Vu+=o,mn+=o,Wt=i}}function eR(i){fn===null&&(fn=[]),fn.push(i),Ns===null&&(Ns=[]),Ns.push(i)}function Pa(){Li=jn(),0>Gt&&(Gt=Li)}function Ph(i){for(var o=i.child;o;)i.actualDuration+=o.actualDuration,o=o.sibling}function PK(i,o){if(kp===null){var u=kp=[];j6=0,Wu=Ox(),Uf={status:"pending",value:void 0,then:function(m){u.push(m)}}}return j6++,o.then(tR,tR),o}function tR(){if(--j6===0&&(-1<qo||(Ds=-1.1),kp!==null)){Uf!==null&&(Uf.status="fulfilled");var i=kp;kp=null,Wu=0,Uf=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function $K(i,o){var u=[],m={status:"pending",value:null,reason:null,then:function(E){u.push(E)}};return i.then(function(){m.status="fulfilled",m.value=o;for(var E=0;E<u.length;E++)(0,u[E])(o)},function(E){m.status="rejected",m.reason=E;for(E=0;E<u.length;E++)(0,u[E])(void 0)}),m}function ES(){var i=Xu.current;return i!==null?i:qr.pooledCache}function mg(i,o){o===null?p(Xu,Xu.current,i):p(Xu,o.pool,i)}function rR(){var i=ES();return i===null?null:{parent:Un._currentValue,pool:i}}function nR(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function iR(i){return i=i.status,i==="fulfilled"||i==="rejected"}function oR(i,o,u){ut.actQueue!==null&&(ut.didUsePromise=!0);var m=i.thenables;if(u=m[u],u===void 0?m.push(o):u!==o&&(i.didWarnAboutUncachedPromise||(i.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),o.then(vs,vs),o=u),o._debugInfo===void 0){i=performance.now(),m=o.displayName;var E={name:typeof m==="string"?m:"Promise",start:i,end:i,value:o};o._debugInfo=[{awaited:E}],o.status!=="fulfilled"&&o.status!=="rejected"&&(i=function(){E.end=performance.now()},o.then(i,i))}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,sR(i),i;default:if(typeof o.status==="string")o.then(vs,vs);else{if(i=qr,i!==null&&100<i.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");i=o,i.status="pending",i.then(function(M){if(o.status==="pending"){var D=o;D.status="fulfilled",D.value=M}},function(M){if(o.status==="pending"){var D=o;D.status="rejected",D.reason=M}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,sR(i),i}throw Qu=o,Np=!0,jf}}function dl(i){try{return xJ(i)}catch(o){if(o!==null&&typeof o==="object"&&typeof o.then==="function")throw Qu=o,Np=!0,jf;throw o}}function aR(){if(Qu===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var i=Qu;return Qu=null,Np=!1,i}function sR(i){if(i===jf||i===C1)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function di(i){var o=lr;return i!=null&&(lr=o===null?i:o.concat(i)),o}function TS(){var i=lr;if(i!=null){for(var o=i.length-1;0<=o;o--)if(i[o].name!=null){var u=i[o].debugTask;if(u!=null)return u}}return null}function gg(i,o,u){for(var m=Object.keys(i.props),E=0;E<m.length;E++){var M=m[E];if(M!=="children"&&M!=="key"){o===null&&(o=lg(i,u.mode,0),o._debugInfo=lr,o.return=u),be(o,function(D){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D)},M);break}}}function bg(i){var o=Dp;return Dp+=1,Hf===null&&(Hf=nR()),oR(Hf,i,o)}function $h(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function lR(i,o){if(o.$$typeof===eX)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
94
  - Multiple copies of the "react" package is used.
95
95
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
96
  - A compiler tries to "inline" JSX instead of using the runtime.`);throw i=Object.prototype.toString.call(o),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}function yg(i,o){var u=TS();u!==null?u.run(lR.bind(null,i,o)):lR(i,o)}function uR(i,o){var u=Y(i)||"Component";yO[u]||(yO[u]=!0,o=o.displayName||o.name||"Component",i.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
@@ -112,7 +112,7 @@ Please update the following component: %s`,E),EO=!0}if((Mr&Xn)!==ii)return E=m.p
112
112
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function IS(i,o){if(Pp)return!1;if(o===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",lt),!1;i.length!==o.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
113
 
114
114
  Previous: %s
115
- Incoming: %s`,lt,"["+o.join(", ")+"]","["+i.join(", ")+"]");for(var u=0;u<o.length&&u<i.length;u++)if(!zi(i[u],o[u]))return!1;return!0}function OS(i,o,u,m,E,M){if(Ls=M,Qt=o,Yo=i!==null?i._debugHookTypes:null,$s=-1,Pp=i!==null&&i.type!==o.type,Object.prototype.toString.call(u)==="[object AsyncFunction]"||Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]")M=Y(Qt),K6.has(M)||(K6.add(M),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",M===null?"An unknown Component":"<"+M+">"));o.memoizedState=null,o.updateQueue=null,o.lanes=0,ut.H=i!==null&&i.memoizedState!==null?X6:Yo!==null?MO:W6,tc=M=(o.mode&_i)!==Xt;var D=H6(u,m,E);if(tc=!1,Gf&&(D=NS(o,u,m,E)),M){Qe(!0);try{D=NS(o,u,m,E)}finally{Qe(!1)}}return bR(i,o),D}function bR(i,o){o._debugHookTypes=Yo,o.dependencies===null?Ps!==null&&(o.dependencies={lanes:0,firstContext:null,_debugThenableState:Ps}):o.dependencies._debugThenableState=Ps,ut.H=$p;var u=Fr!==null&&Fr.next!==null;if(Ls=0,Yo=lt=Hn=Fr=Qt=null,$s=-1,i!==null&&(i.flags&65011712)!==(o.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),N1=!1,Lp=0,Ps=null,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");i===null||Zn||(i=i.dependencies,i!==null&&fg(i)&&(Zn=!0)),Np?(Np=!1,i=!0):i=!1,i&&(o=Y(o)||"Unknown",kO.has(o)||K6.has(o)||(kO.add(o),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function NS(i,o,u,m){Qt=i;var E=0;do{if(Gf&&(Ps=null),Lp=0,Gf=!1,E>=wJ)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(E+=1,Pp=!1,Hn=Fr=null,i.updateQueue!=null){var M=i.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}$s=-1,ut.H=CO,M=H6(o,u,m)}while(Gf);return M}function UK(){var i=ut.H,o=i.useState()[0];return o=typeof o.then==="function"?Hh(o):o,i=i.useState()[0],(Fr!==null?Fr.memoizedState:null)!==i&&(Qt.flags|=1024),o}function DS(){var i=D1!==0;return D1=0,i}function zS(i,o,u){o.updateQueue=i.updateQueue,o.flags=(o.mode&ca)!==Xt?o.flags&-402655237:o.flags&-2053,i.lanes&=~u}function LS(i){if(N1){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}N1=!1}Ls=0,Yo=Hn=Fr=Qt=null,$s=-1,lt=null,Gf=!1,Lp=D1=0,Ps=null}function Ii(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hn===null?Qt.memoizedState=Hn=i:Hn=Hn.next=i,Hn}function Pr(){if(Fr===null){var i=Qt.alternate;i=i!==null?i.memoizedState:null}else i=Fr.next;var o=Hn===null?Qt.memoizedState:Hn.next;if(o!==null)Hn=o,Fr=i;else{if(i===null){if(Qt.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Fr=i,i={memoizedState:Fr.memoizedState,baseState:Fr.baseState,baseQueue:Fr.baseQueue,queue:Fr.queue,next:null},Hn===null?Qt.memoizedState=Hn=i:Hn=Hn.next=i}return Hn}function Eg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hh(i){var o=Lp;return Lp+=1,Ps===null&&(Ps=nR()),i=oR(Ps,i,o),o=Qt,(Hn===null?o.memoizedState:Hn.next)===null&&(o=o.alternate,ut.H=o!==null&&o.memoizedState!==null?X6:W6),i}function bl(i){if(i!==null&&typeof i==="object"){if(typeof i.then==="function")return Hh(i);if(i.$$typeof===qa)return cn(i)}throw Error("An unsupported type was passed to use(): "+String(i))}function $u(i){var o=null,u=Qt.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var m=Qt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(o={data:m.data.map(function(E){return E.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Eg(),Qt.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0||Pp)for(u=o.data[o.index]=Array(i),m=0;m<i;m++)u[m]=tX;else u.length!==i&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",u.length,i);return o.index++,u}function aa(i,o){return typeof o==="function"?o(i):o}function PS(i,o,u){var m=Ii();if(u!==void 0){var E=u(o);if(tc){Qe(!0);try{u(o)}finally{Qe(!1)}}}else E=o;return m.memoizedState=m.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},m.queue=i,i=i.dispatch=qK.bind(null,Qt,i),[m.memoizedState,i]}function uf(i){var o=Pr();return $S(o,Fr,i)}function $S(i,o,u){var m=i.queue;if(m===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");m.lastRenderedReducer=u;var E=i.baseQueue,M=m.pending;if(M!==null){if(E!==null){var D=E.next;E.next=M.next,M.next=D}o.baseQueue!==E&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=E=M,m.pending=null}if(M=i.baseState,E===null)i.memoizedState=M;else{o=E.next;var H=D=null,X=null,ne=o,je=!1;do{var He=ne.lane&-536870913;if(He!==ne.lane?(ur&He)===He:(Ls&He)===He){var Re=ne.revertLane;if(Re===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),He===Wu&&(je=!0);else if((Ls&Re)===Re){ne=ne.next,Re===Wu&&(je=!0);continue}else He={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},X===null?(H=X=He,D=M):X=X.next=He,Qt.lanes|=Re,$l|=Re;He=ne.action,tc&&u(M,He),M=ne.hasEagerState?ne.eagerState:u(M,He)}else Re={lane:He,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},X===null?(H=X=Re,D=M):X=X.next=Re,Qt.lanes|=He,$l|=He;ne=ne.next}while(ne!==null&&ne!==o);if(X===null?D=M:X.next=H,!zi(M,i.memoizedState)&&(Zn=!0,je&&(u=Uf,u!==null)))throw u;i.memoizedState=M,i.baseState=D,i.baseQueue=X,m.lastRenderedState=M}return E===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function Zh(i){var o=Pr(),u=o.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=i;var{dispatch:m,pending:E}=u,M=o.memoizedState;if(E!==null){u.pending=null;var D=E=E.next;do M=i(M,D.action),D=D.next;while(D!==E);zi(M,o.memoizedState)||(Zn=!0),o.memoizedState=M,o.baseQueue===null&&(o.baseState=M),u.lastRenderedState=M}return[M,m]}function BS(i,o,u){var m=Qt,E=Ii();if(vr){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var M=u();qf||M===u()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),qf=!0)}else{if(M=o(),qf||(u=o(),zi(M,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qf=!0)),qr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ur&127)!==0||yR(m,o,M)}return E.memoizedState=M,u={value:M,getSnapshot:o},E.queue=u,Mg(SR.bind(null,m,u,i),[i]),m.flags|=2048,ff(Vo|$i,{destroy:void 0},vR.bind(null,m,u,M,o),null),M}function Tg(i,o,u){var m=Qt,E=Pr(),M=vr;if(M){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");u=u()}else if(u=o(),!qf){var D=o();zi(u,D)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qf=!0)}if(D=!zi((Fr||E).memoizedState,u))E.memoizedState=u,Zn=!0;E=E.queue;var H=SR.bind(null,m,E,i);if(ro(2048,$i,H,[i]),E.getSnapshot!==o||D||Hn!==null&&Hn.memoizedState.tag&Vo){if(m.flags|=2048,ff(Vo|$i,{destroy:void 0},vR.bind(null,m,E,u,o),null),qr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");M||(Ls&127)!==0||yR(m,o,u)}return u}function yR(i,o,u){i.flags|=16384,i={getSnapshot:o,value:u},o=Qt.updateQueue,o===null?(o=Eg(),Qt.updateQueue=o,o.stores=[i]):(u=o.stores,u===null?o.stores=[i]:u.push(i))}function vR(i,o,u,m){o.value=u,o.getSnapshot=m,xR(o)&&_R(i)}function SR(i,o,u){return u(function(){xR(o)&&(Ia(2,"updateSyncExternalStore()",i),_R(i))})}function xR(i){var o=i.getSnapshot;i=i.value;try{var u=o();return!zi(i,u)}catch(m){return!0}}function _R(i){var o=Si(i,2);o!==null&&Sn(o,i,2)}function US(i){var o=Ii();if(typeof i==="function"){var u=i;if(i=u(),tc){Qe(!0);try{u()}finally{Qe(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:i},o}function jS(i){i=US(i);var o=i.queue,u=jR.bind(null,Qt,o);return o.dispatch=u,[i.memoizedState,u]}function HS(i){var o=Ii();o.memoizedState=o.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=rx.bind(null,Qt,!0,u),u.dispatch=o,[i,o]}function wR(i,o){var u=Pr();return ER(u,Fr,i,o)}function ER(i,o,u,m){return i.baseState=u,$S(i,Fr,typeof m==="function"?m:aa)}function TR(i,o){var u=Pr();if(Fr!==null)return ER(u,Fr,i,o);return u.baseState=i,[i,u.queue.dispatch]}function jK(i,o,u,m,E){if(Dg(i))throw Error("Cannot update form state while rendering.");if(i=o.action,i!==null){var M={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){M.listeners.push(D)}};ut.T!==null?u(!0):M.isTransition=!1,m(M),u=o.pending,u===null?(M.next=o.pending=M,kR(o,M)):(M.next=u.next,o.pending=u.next=M)}}function kR(i,o){var{action:u,payload:m}=o,E=i.state;if(o.isTransition){var M=ut.T,D={};D._updatedFibers=new Set,ut.T=D;try{var H=u(E,m),X=ut.S;X!==null&&X(D,H),AR(i,o,H)}catch(ne){ZS(i,o,ne)}finally{M!==null&&D.types!==null&&(M.types!==null&&M.types!==D.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),M.types=D.types),ut.T=M,M===null&&D._updatedFibers&&(i=D._updatedFibers.size,D._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{D=u(E,m),AR(i,o,D)}catch(ne){ZS(i,o,ne)}}function AR(i,o,u){u!==null&&typeof u==="object"&&typeof u.then==="function"?(ut.asyncTransitions++,u.then(Ng,Ng),u.then(function(m){MR(i,o,m)},function(m){return ZS(i,o,m)}),o.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):MR(i,o,u)}function MR(i,o,u){o.status="fulfilled",o.value=u,CR(o),i.state=u,o=i.pending,o!==null&&(u=o.next,u===o?i.pending=null:(u=u.next,o.next=u,kR(i,u)))}function ZS(i,o,u){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do o.status="rejected",o.reason=u,CR(o),o=o.next;while(o!==m)}i.action=null}function CR(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function RR(i,o){return o}function cf(i,o){if(vr){var u=qr.formState;if(u!==null){e:{var m=Qt;if(vr){if(nn){t:{var E=nn;for(var M=Fo;E.nodeType!==8;){if(!M){E=null;break t}if(E=wo(E.nextSibling),E===null){E=null;break t}}M=E.data,E=M===S_||M===pN?E:null}if(E){nn=wo(E.nextSibling),m=E.data===S_;break e}}cl(m)}m=!1}m&&(o=u[0])}}return u=Ii(),u.memoizedState=u.baseState=o,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:RR,lastRenderedState:o},u.queue=m,u=jR.bind(null,Qt,m),m.dispatch=u,m=US(!1),M=rx.bind(null,Qt,!1,m.queue),m=Ii(),E={state:o,dispatch:null,action:i,pending:null},m.queue=E,u=jK.bind(null,Qt,E,M,u),E.dispatch=u,m.memoizedState=i,[o,u,!1]}function kg(i){var o=Pr();return IR(o,Fr,i)}function IR(i,o,u){if(o=$S(i,o,RR)[0],i=uf(aa)[0],typeof o==="object"&&o!==null&&typeof o.then==="function")try{var m=Hh(o)}catch(D){if(D===jf)throw C1;throw D}else m=o;o=Pr();var E=o.queue,M=E.dispatch;return u!==o.memoizedState&&(Qt.flags|=2048,ff(Vo|$i,{destroy:void 0},HK.bind(null,E,u),null)),[m,M,i]}function HK(i,o){i.action=o}function Ag(i){var o=Pr(),u=Fr;if(u!==null)return IR(o,u,i);Pr(),o=o.memoizedState,u=Pr();var m=u.queue.dispatch;return u.memoizedState=i,[o,m,!1]}function ff(i,o,u,m){return i={tag:i,create:u,deps:m,inst:o,next:null},o=Qt.updateQueue,o===null&&(o=Eg(),Qt.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=i.next=i:(m=u.next,u.next=i,i.next=m,o.lastEffect=i),i}function FS(i){var o=Ii();return i={current:i},o.memoizedState=i}function Bu(i,o,u,m){var E=Ii();Qt.flags|=i,E.memoizedState=ff(Vo|o,{destroy:void 0},u,m===void 0?null:m)}function ro(i,o,u,m){var E=Pr();m=m===void 0?null:m;var M=E.memoizedState.inst;Fr!==null&&m!==null&&IS(m,Fr.memoizedState.deps)?E.memoizedState=ff(o,M,u,m):(Qt.flags|=i,E.memoizedState=ff(Vo|o,M,u,m))}function Mg(i,o){(Qt.mode&ca)!==Xt?Bu(276826112,$i,i,o):Bu(8390656,$i,i,o)}function ZK(i){Qt.flags|=4;var o=Qt.updateQueue;if(o===null)o=Eg(),Qt.updateQueue=o,o.events=[i];else{var u=o.events;u===null?o.events=[i]:u.push(i)}}function qS(i){var o=Ii(),u={impl:i};return o.memoizedState=u,function(){if((Mr&Xn)!==ii)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return u.impl.apply(void 0,arguments)}}function Cg(i){var o=Pr().memoizedState;return ZK({ref:o,nextImpl:i}),function(){if((Mr&Xn)!==ii)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function GS(i,o){var u=4194308;return(Qt.mode&ca)!==Xt&&(u|=134217728),Bu(u,Co,i,o)}function OR(i,o){if(typeof o==="function"){i=i();var u=o(i);return function(){typeof u==="function"?u():o(null)}}if(o!==null&&o!==void 0)return o.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}"),i=i(),o.current=i,function(){o.current=null}}function VS(i,o,u){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),u=u!==null&&u!==void 0?u.concat([i]):null;var m=4194308;(Qt.mode&ca)!==Xt&&(m|=134217728),Bu(m,Co,OR.bind(null,o,i),u)}function Rg(i,o,u){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),u=u!==null&&u!==void 0?u.concat([i]):null,ro(4,Co,OR.bind(null,o,i),u)}function YS(i,o){return Ii().memoizedState=[i,o===void 0?null:o],i}function Ig(i,o){var u=Pr();o=o===void 0?null:o;var m=u.memoizedState;if(o!==null&&IS(o,m[1]))return m[0];return u.memoizedState=[i,o],i}function KS(i,o){var u=Ii();o=o===void 0?null:o;var m=i();if(tc){Qe(!0);try{i()}finally{Qe(!1)}}return u.memoizedState=[m,o],m}function Og(i,o){var u=Pr();o=o===void 0?null:o;var m=u.memoizedState;if(o!==null&&IS(o,m[1]))return m[0];if(m=i(),tc){Qe(!0);try{i()}finally{Qe(!1)}}return u.memoizedState=[m,o],m}function WS(i,o){var u=Ii();return XS(u,i,o)}function NR(i,o){var u=Pr();return zR(u,Fr.memoizedState,i,o)}function DR(i,o){var u=Pr();return Fr===null?XS(u,i,o):zR(u,Fr.memoizedState,i,o)}function XS(i,o,u){if(u===void 0||(Ls&1073741824)!==0&&(ur&261930)===0)return i.memoizedState=o;return i.memoizedState=u,i=L9(),Qt.lanes|=i,$l|=i,u}function zR(i,o,u,m){if(zi(u,o))return u;if(Zf.current!==null)return i=XS(i,u,m),zi(i,o)||(Zn=!0),i;if((Ls&42)===0||(Ls&1073741824)!==0&&(ur&261930)===0)return Zn=!0,i.memoizedState=u;return i=L9(),Qt.lanes|=i,$l|=i,o}function Ng(){ut.asyncTransitions--}function LR(i,o,u,m,E){var M=Dr.p;Dr.p=M!==0&&M<ua?M:ua;var D=ut.T,H={};H._updatedFibers=new Set,ut.T=H,rx(i,!1,o,u);try{var X=E(),ne=ut.S;if(ne!==null&&ne(H,X),X!==null&&typeof X==="object"&&typeof X.then==="function"){ut.asyncTransitions++,X.then(Ng,Ng);var je=$K(X,m);Fh(i,o,je,_o(i))}else Fh(i,o,m,_o(i))}catch(He){Fh(i,o,{then:function(){},status:"rejected",reason:He},_o(i))}finally{Dr.p=M,D!==null&&H.types!==null&&(D.types!==null&&D.types!==H.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),D.types=H.types),ut.T=D,D===null&&H._updatedFibers&&(i=H._updatedFibers.size,H._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function JS(i,o,u,m){if(i.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var E=PR(i).queue;LK(i),LR(i,E,o,dc,u===null?y:function(){return $R(i),u(m)})}function PR(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:dc,baseState:dc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:dc},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:u},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function $R(i){ut.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var o=PR(i);o.next===null&&(o=i.alternate.memoizedState),Fh(i,o.next.queue,{},_o(i))}function QS(){var i=US(!1);return i=LR.bind(null,Qt,i.queue,!0,!1),Ii().memoizedState=i,[!1,i]}function BR(){var i=uf(aa)[0],o=Pr().memoizedState;return[typeof i==="boolean"?i:Hh(i),o]}function UR(){var i=Zh(aa)[0],o=Pr().memoizedState;return[typeof i==="boolean"?i:Hh(i),o]}function Uu(){return cn(Qp)}function ex(){var i=Ii(),o=qr.identifierPrefix;if(vr){var u=Is,m=Rs;u=(m&~(1<<32-Oi(m)-1)).toString(32)+u,o="_"+o+"R_"+u,u=D1++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=_J++,o="_"+o+"r_"+u.toString(32)+"_";return i.memoizedState=o}function tx(){return Ii().memoizedState=FK.bind(null,Qt)}function FK(i,o){for(var u=i.return;u!==null;){switch(u.tag){case 24:case 3:var m=_o(u),E=hl(m),M=pl(u,E,m);M!==null&&(Ia(m,"refresh()",i),Sn(M,u,m),Bh(M,u,m)),i=xS(),o!==null&&o!==void 0&&M!==null&&console.error("The seed argument is not enabled outside experimental channels."),E.payload={cache:i};return}u=u.return}}function qK(i,o,u){var m=arguments;typeof m[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),m=_o(i);var E={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};Dg(i)?HR(o,E):(E=uS(i,o,E,m),E!==null&&(Ia(m,"dispatch()",i),Sn(E,i,m),ZR(E,o,m)))}function jR(i,o,u){var m=arguments;typeof m[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),m=_o(i),Fh(i,o,u,m)&&Ia(m,"setState()",i)}function Fh(i,o,u,m){var E={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Dg(i))HR(o,E);else{var M=i.alternate;if(i.lanes===0&&(M===null||M.lanes===0)&&(M=o.lastRenderedReducer,M!==null)){var D=ut.H;ut.H=da;try{var H=o.lastRenderedState,X=M(H,u);if(E.hasEagerState=!0,E.eagerState=X,zi(X,H))return ag(i,o,E,0),qr===null&&og(),!1}catch(ne){}finally{ut.H=D}}if(u=uS(i,o,E,m),u!==null)return Sn(u,i,m),ZR(u,o,m),!0}return!1}function rx(i,o,u,m){if(ut.T===null&&Wu===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),m={lane:2,revertLane:Ox(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Dg(i)){if(o)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else o=uS(i,u,m,2),o!==null&&(Ia(2,"setOptimistic()",i),Sn(o,i,2))}function Dg(i){var o=i.alternate;return i===Qt||o!==null&&o===Qt}function HR(i,o){Gf=N1=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function ZR(i,o,u){if((u&4194048)!==0){var m=o.lanes;m&=i.pendingLanes,u|=m,o.lanes=u,_e(i,u)}}function nx(i){if(i!==null&&typeof i!=="function"){var o=String(i);UO.has(o)||(UO.add(o),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i))}}function ix(i,o,u,m){var E=i.memoizedState,M=u(m,E);if(i.mode&_i){Qe(!0);try{M=u(m,E)}finally{Qe(!1)}}M===void 0&&(o=ce(o)||"Component",LO.has(o)||(LO.add(o),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))),E=M===null||M===void 0?E:hr({},E,M),i.memoizedState=E,i.lanes===0&&(i.updateQueue.baseState=E)}function FR(i,o,u,m,E,M,D){var H=i.stateNode;if(typeof H.shouldComponentUpdate==="function"){if(u=H.shouldComponentUpdate(m,M,D),i.mode&_i){Qe(!0);try{u=H.shouldComponentUpdate(m,M,D)}finally{Qe(!1)}}return u===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ce(o)||"Component"),u}return o.prototype&&o.prototype.isPureReactComponent?!Oh(u,m)||!Oh(E,M):!0}function qR(i,o,u,m){var E=o.state;typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps(u,m),typeof o.UNSAFE_componentWillReceiveProps==="function"&&o.UNSAFE_componentWillReceiveProps(u,m),o.state!==E&&(i=Y(i)||"Component",IO.has(i)||(IO.add(i),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),J6.enqueueReplaceState(o,o.state,null))}function ju(i,o){var u=o;if("ref"in o){u={};for(var m in o)m!=="ref"&&(u[m]=o[m])}if(i=i.defaultProps){u===o&&(u=hr({},u));for(var E in i)u[E]===void 0&&(u[E]=i[E])}return u}function GR(i){C6(i),console.warn(`%s
115
+ Incoming: %s`,lt,"["+o.join(", ")+"]","["+i.join(", ")+"]");for(var u=0;u<o.length&&u<i.length;u++)if(!zi(i[u],o[u]))return!1;return!0}function OS(i,o,u,m,E,M){if(Ls=M,Qt=o,Yo=i!==null?i._debugHookTypes:null,$s=-1,Pp=i!==null&&i.type!==o.type,Object.prototype.toString.call(u)==="[object AsyncFunction]"||Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]")M=Y(Qt),K6.has(M)||(K6.add(M),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",M===null?"An unknown Component":"<"+M+">"));o.memoizedState=null,o.updateQueue=null,o.lanes=0,ut.H=i!==null&&i.memoizedState!==null?X6:Yo!==null?MO:W6,tc=M=(o.mode&_i)!==Xt;var D=H6(u,m,E);if(tc=!1,Gf&&(D=NS(o,u,m,E)),M){Qe(!0);try{D=NS(o,u,m,E)}finally{Qe(!1)}}return bR(i,o),D}function bR(i,o){o._debugHookTypes=Yo,o.dependencies===null?Ps!==null&&(o.dependencies={lanes:0,firstContext:null,_debugThenableState:Ps}):o.dependencies._debugThenableState=Ps,ut.H=$p;var u=Fr!==null&&Fr.next!==null;if(Ls=0,Yo=lt=Hn=Fr=Qt=null,$s=-1,i!==null&&(i.flags&65011712)!==(o.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),N1=!1,Lp=0,Ps=null,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");i===null||Zn||(i=i.dependencies,i!==null&&fg(i)&&(Zn=!0)),Np?(Np=!1,i=!0):i=!1,i&&(o=Y(o)||"Unknown",kO.has(o)||K6.has(o)||(kO.add(o),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function NS(i,o,u,m){Qt=i;var E=0;do{if(Gf&&(Ps=null),Lp=0,Gf=!1,E>=wJ)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(E+=1,Pp=!1,Hn=Fr=null,i.updateQueue!=null){var M=i.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}$s=-1,ut.H=CO,M=H6(o,u,m)}while(Gf);return M}function UK(){var i=ut.H,o=i.useState()[0];return o=typeof o.then==="function"?Hh(o):o,i=i.useState()[0],(Fr!==null?Fr.memoizedState:null)!==i&&(Qt.flags|=1024),o}function DS(){var i=D1!==0;return D1=0,i}function zS(i,o,u){o.updateQueue=i.updateQueue,o.flags=(o.mode&ca)!==Xt?o.flags&-402655237:o.flags&-2053,i.lanes&=~u}function LS(i){if(N1){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}N1=!1}Ls=0,Yo=Hn=Fr=Qt=null,$s=-1,lt=null,Gf=!1,Lp=D1=0,Ps=null}function Ii(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hn===null?Qt.memoizedState=Hn=i:Hn=Hn.next=i,Hn}function Pr(){if(Fr===null){var i=Qt.alternate;i=i!==null?i.memoizedState:null}else i=Fr.next;var o=Hn===null?Qt.memoizedState:Hn.next;if(o!==null)Hn=o,Fr=i;else{if(i===null){if(Qt.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Fr=i,i={memoizedState:Fr.memoizedState,baseState:Fr.baseState,baseQueue:Fr.baseQueue,queue:Fr.queue,next:null},Hn===null?Qt.memoizedState=Hn=i:Hn=Hn.next=i}return Hn}function Eg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hh(i){var o=Lp;return Lp+=1,Ps===null&&(Ps=nR()),i=oR(Ps,i,o),o=Qt,(Hn===null?o.memoizedState:Hn.next)===null&&(o=o.alternate,ut.H=o!==null&&o.memoizedState!==null?X6:W6),i}function bl(i){if(i!==null&&typeof i==="object"){if(typeof i.then==="function")return Hh(i);if(i.$$typeof===qa)return cn(i)}throw Error("An unsupported type was passed to use(): "+String(i))}function $u(i){var o=null,u=Qt.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var m=Qt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(o={data:m.data.map(function(E){return E.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Eg(),Qt.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0||Pp)for(u=o.data[o.index]=Array(i),m=0;m<i;m++)u[m]=tX;else u.length!==i&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",u.length,i);return o.index++,u}function aa(i,o){return typeof o==="function"?o(i):o}function PS(i,o,u){var m=Ii();if(u!==void 0){var E=u(o);if(tc){Qe(!0);try{u(o)}finally{Qe(!1)}}}else E=o;return m.memoizedState=m.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},m.queue=i,i=i.dispatch=qK.bind(null,Qt,i),[m.memoizedState,i]}function uf(i){var o=Pr();return $S(o,Fr,i)}function $S(i,o,u){var m=i.queue;if(m===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");m.lastRenderedReducer=u;var E=i.baseQueue,M=m.pending;if(M!==null){if(E!==null){var D=E.next;E.next=M.next,M.next=D}o.baseQueue!==E&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=E=M,m.pending=null}if(M=i.baseState,E===null)i.memoizedState=M;else{o=E.next;var H=D=null,X=null,ne=o,je=!1;do{var He=ne.lane&-536870913;if(He!==ne.lane?(ur&He)===He:(Ls&He)===He){var Re=ne.revertLane;if(Re===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),He===Wu&&(je=!0);else if((Ls&Re)===Re){ne=ne.next,Re===Wu&&(je=!0);continue}else He={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},X===null?(H=X=He,D=M):X=X.next=He,Qt.lanes|=Re,$l|=Re;He=ne.action,tc&&u(M,He),M=ne.hasEagerState?ne.eagerState:u(M,He)}else Re={lane:He,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},X===null?(H=X=Re,D=M):X=X.next=Re,Qt.lanes|=He,$l|=He;ne=ne.next}while(ne!==null&&ne!==o);if(X===null?D=M:X.next=H,!zi(M,i.memoizedState)&&(Zn=!0,je&&(u=Uf,u!==null)))throw u;i.memoizedState=M,i.baseState=D,i.baseQueue=X,m.lastRenderedState=M}return E===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function Zh(i){var o=Pr(),u=o.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=i;var{dispatch:m,pending:E}=u,M=o.memoizedState;if(E!==null){u.pending=null;var D=E=E.next;do M=i(M,D.action),D=D.next;while(D!==E);zi(M,o.memoizedState)||(Zn=!0),o.memoizedState=M,o.baseQueue===null&&(o.baseState=M),u.lastRenderedState=M}return[M,m]}function BS(i,o,u){var m=Qt,E=Ii();if(vr){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var M=u();qf||M===u()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),qf=!0)}else{if(M=o(),qf||(u=o(),zi(M,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qf=!0)),qr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ur&127)!==0||yR(m,o,M)}return E.memoizedState=M,u={value:M,getSnapshot:o},E.queue=u,Mg(SR.bind(null,m,u,i),[i]),m.flags|=2048,ff(Vo|$i,{destroy:void 0},vR.bind(null,m,u,M,o),null),M}function Tg(i,o,u){var m=Qt,E=Pr(),M=vr;if(M){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");u=u()}else if(u=o(),!qf){var D=o();zi(u,D)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qf=!0)}if(D=!zi((Fr||E).memoizedState,u))E.memoizedState=u,Zn=!0;E=E.queue;var H=SR.bind(null,m,E,i);if(ro(2048,$i,H,[i]),E.getSnapshot!==o||D||Hn!==null&&Hn.memoizedState.tag&Vo){if(m.flags|=2048,ff(Vo|$i,{destroy:void 0},vR.bind(null,m,E,u,o),null),qr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");M||(Ls&127)!==0||yR(m,o,u)}return u}function yR(i,o,u){i.flags|=16384,i={getSnapshot:o,value:u},o=Qt.updateQueue,o===null?(o=Eg(),Qt.updateQueue=o,o.stores=[i]):(u=o.stores,u===null?o.stores=[i]:u.push(i))}function vR(i,o,u,m){o.value=u,o.getSnapshot=m,xR(o)&&_R(i)}function SR(i,o,u){return u(function(){xR(o)&&(Ia(2,"updateSyncExternalStore()",i),_R(i))})}function xR(i){var o=i.getSnapshot;i=i.value;try{var u=o();return!zi(i,u)}catch(m){return!0}}function _R(i){var o=Si(i,2);o!==null&&vn(o,i,2)}function US(i){var o=Ii();if(typeof i==="function"){var u=i;if(i=u(),tc){Qe(!0);try{u()}finally{Qe(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:i},o}function jS(i){i=US(i);var o=i.queue,u=jR.bind(null,Qt,o);return o.dispatch=u,[i.memoizedState,u]}function HS(i){var o=Ii();o.memoizedState=o.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=rx.bind(null,Qt,!0,u),u.dispatch=o,[i,o]}function wR(i,o){var u=Pr();return ER(u,Fr,i,o)}function ER(i,o,u,m){return i.baseState=u,$S(i,Fr,typeof m==="function"?m:aa)}function TR(i,o){var u=Pr();if(Fr!==null)return ER(u,Fr,i,o);return u.baseState=i,[i,u.queue.dispatch]}function jK(i,o,u,m,E){if(Dg(i))throw Error("Cannot update form state while rendering.");if(i=o.action,i!==null){var M={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){M.listeners.push(D)}};ut.T!==null?u(!0):M.isTransition=!1,m(M),u=o.pending,u===null?(M.next=o.pending=M,kR(o,M)):(M.next=u.next,o.pending=u.next=M)}}function kR(i,o){var{action:u,payload:m}=o,E=i.state;if(o.isTransition){var M=ut.T,D={};D._updatedFibers=new Set,ut.T=D;try{var H=u(E,m),X=ut.S;X!==null&&X(D,H),AR(i,o,H)}catch(ne){ZS(i,o,ne)}finally{M!==null&&D.types!==null&&(M.types!==null&&M.types!==D.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),M.types=D.types),ut.T=M,M===null&&D._updatedFibers&&(i=D._updatedFibers.size,D._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{D=u(E,m),AR(i,o,D)}catch(ne){ZS(i,o,ne)}}function AR(i,o,u){u!==null&&typeof u==="object"&&typeof u.then==="function"?(ut.asyncTransitions++,u.then(Ng,Ng),u.then(function(m){MR(i,o,m)},function(m){return ZS(i,o,m)}),o.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):MR(i,o,u)}function MR(i,o,u){o.status="fulfilled",o.value=u,CR(o),i.state=u,o=i.pending,o!==null&&(u=o.next,u===o?i.pending=null:(u=u.next,o.next=u,kR(i,u)))}function ZS(i,o,u){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do o.status="rejected",o.reason=u,CR(o),o=o.next;while(o!==m)}i.action=null}function CR(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function RR(i,o){return o}function cf(i,o){if(vr){var u=qr.formState;if(u!==null){e:{var m=Qt;if(vr){if(nn){t:{var E=nn;for(var M=Fo;E.nodeType!==8;){if(!M){E=null;break t}if(E=wo(E.nextSibling),E===null){E=null;break t}}M=E.data,E=M===S_||M===pN?E:null}if(E){nn=wo(E.nextSibling),m=E.data===S_;break e}}cl(m)}m=!1}m&&(o=u[0])}}return u=Ii(),u.memoizedState=u.baseState=o,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:RR,lastRenderedState:o},u.queue=m,u=jR.bind(null,Qt,m),m.dispatch=u,m=US(!1),M=rx.bind(null,Qt,!1,m.queue),m=Ii(),E={state:o,dispatch:null,action:i,pending:null},m.queue=E,u=jK.bind(null,Qt,E,M,u),E.dispatch=u,m.memoizedState=i,[o,u,!1]}function kg(i){var o=Pr();return IR(o,Fr,i)}function IR(i,o,u){if(o=$S(i,o,RR)[0],i=uf(aa)[0],typeof o==="object"&&o!==null&&typeof o.then==="function")try{var m=Hh(o)}catch(D){if(D===jf)throw C1;throw D}else m=o;o=Pr();var E=o.queue,M=E.dispatch;return u!==o.memoizedState&&(Qt.flags|=2048,ff(Vo|$i,{destroy:void 0},HK.bind(null,E,u),null)),[m,M,i]}function HK(i,o){i.action=o}function Ag(i){var o=Pr(),u=Fr;if(u!==null)return IR(o,u,i);Pr(),o=o.memoizedState,u=Pr();var m=u.queue.dispatch;return u.memoizedState=i,[o,m,!1]}function ff(i,o,u,m){return i={tag:i,create:u,deps:m,inst:o,next:null},o=Qt.updateQueue,o===null&&(o=Eg(),Qt.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=i.next=i:(m=u.next,u.next=i,i.next=m,o.lastEffect=i),i}function FS(i){var o=Ii();return i={current:i},o.memoizedState=i}function Bu(i,o,u,m){var E=Ii();Qt.flags|=i,E.memoizedState=ff(Vo|o,{destroy:void 0},u,m===void 0?null:m)}function ro(i,o,u,m){var E=Pr();m=m===void 0?null:m;var M=E.memoizedState.inst;Fr!==null&&m!==null&&IS(m,Fr.memoizedState.deps)?E.memoizedState=ff(o,M,u,m):(Qt.flags|=i,E.memoizedState=ff(Vo|o,M,u,m))}function Mg(i,o){(Qt.mode&ca)!==Xt?Bu(276826112,$i,i,o):Bu(8390656,$i,i,o)}function ZK(i){Qt.flags|=4;var o=Qt.updateQueue;if(o===null)o=Eg(),Qt.updateQueue=o,o.events=[i];else{var u=o.events;u===null?o.events=[i]:u.push(i)}}function qS(i){var o=Ii(),u={impl:i};return o.memoizedState=u,function(){if((Mr&Xn)!==ii)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return u.impl.apply(void 0,arguments)}}function Cg(i){var o=Pr().memoizedState;return ZK({ref:o,nextImpl:i}),function(){if((Mr&Xn)!==ii)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function GS(i,o){var u=4194308;return(Qt.mode&ca)!==Xt&&(u|=134217728),Bu(u,Co,i,o)}function OR(i,o){if(typeof o==="function"){i=i();var u=o(i);return function(){typeof u==="function"?u():o(null)}}if(o!==null&&o!==void 0)return o.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}"),i=i(),o.current=i,function(){o.current=null}}function VS(i,o,u){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),u=u!==null&&u!==void 0?u.concat([i]):null;var m=4194308;(Qt.mode&ca)!==Xt&&(m|=134217728),Bu(m,Co,OR.bind(null,o,i),u)}function Rg(i,o,u){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),u=u!==null&&u!==void 0?u.concat([i]):null,ro(4,Co,OR.bind(null,o,i),u)}function YS(i,o){return Ii().memoizedState=[i,o===void 0?null:o],i}function Ig(i,o){var u=Pr();o=o===void 0?null:o;var m=u.memoizedState;if(o!==null&&IS(o,m[1]))return m[0];return u.memoizedState=[i,o],i}function KS(i,o){var u=Ii();o=o===void 0?null:o;var m=i();if(tc){Qe(!0);try{i()}finally{Qe(!1)}}return u.memoizedState=[m,o],m}function Og(i,o){var u=Pr();o=o===void 0?null:o;var m=u.memoizedState;if(o!==null&&IS(o,m[1]))return m[0];if(m=i(),tc){Qe(!0);try{i()}finally{Qe(!1)}}return u.memoizedState=[m,o],m}function WS(i,o){var u=Ii();return XS(u,i,o)}function NR(i,o){var u=Pr();return zR(u,Fr.memoizedState,i,o)}function DR(i,o){var u=Pr();return Fr===null?XS(u,i,o):zR(u,Fr.memoizedState,i,o)}function XS(i,o,u){if(u===void 0||(Ls&1073741824)!==0&&(ur&261930)===0)return i.memoizedState=o;return i.memoizedState=u,i=L9(),Qt.lanes|=i,$l|=i,u}function zR(i,o,u,m){if(zi(u,o))return u;if(Zf.current!==null)return i=XS(i,u,m),zi(i,o)||(Zn=!0),i;if((Ls&42)===0||(Ls&1073741824)!==0&&(ur&261930)===0)return Zn=!0,i.memoizedState=u;return i=L9(),Qt.lanes|=i,$l|=i,o}function Ng(){ut.asyncTransitions--}function LR(i,o,u,m,E){var M=Dr.p;Dr.p=M!==0&&M<ua?M:ua;var D=ut.T,H={};H._updatedFibers=new Set,ut.T=H,rx(i,!1,o,u);try{var X=E(),ne=ut.S;if(ne!==null&&ne(H,X),X!==null&&typeof X==="object"&&typeof X.then==="function"){ut.asyncTransitions++,X.then(Ng,Ng);var je=$K(X,m);Fh(i,o,je,_o(i))}else Fh(i,o,m,_o(i))}catch(He){Fh(i,o,{then:function(){},status:"rejected",reason:He},_o(i))}finally{Dr.p=M,D!==null&&H.types!==null&&(D.types!==null&&D.types!==H.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),D.types=H.types),ut.T=D,D===null&&H._updatedFibers&&(i=H._updatedFibers.size,H._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function JS(i,o,u,m){if(i.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var E=PR(i).queue;LK(i),LR(i,E,o,dc,u===null?y:function(){return $R(i),u(m)})}function PR(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:dc,baseState:dc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:dc},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:u},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function $R(i){ut.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var o=PR(i);o.next===null&&(o=i.alternate.memoizedState),Fh(i,o.next.queue,{},_o(i))}function QS(){var i=US(!1);return i=LR.bind(null,Qt,i.queue,!0,!1),Ii().memoizedState=i,[!1,i]}function BR(){var i=uf(aa)[0],o=Pr().memoizedState;return[typeof i==="boolean"?i:Hh(i),o]}function UR(){var i=Zh(aa)[0],o=Pr().memoizedState;return[typeof i==="boolean"?i:Hh(i),o]}function Uu(){return cn(Qp)}function ex(){var i=Ii(),o=qr.identifierPrefix;if(vr){var u=Is,m=Rs;u=(m&~(1<<32-Oi(m)-1)).toString(32)+u,o="_"+o+"R_"+u,u=D1++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=_J++,o="_"+o+"r_"+u.toString(32)+"_";return i.memoizedState=o}function tx(){return Ii().memoizedState=FK.bind(null,Qt)}function FK(i,o){for(var u=i.return;u!==null;){switch(u.tag){case 24:case 3:var m=_o(u),E=hl(m),M=pl(u,E,m);M!==null&&(Ia(m,"refresh()",i),vn(M,u,m),Bh(M,u,m)),i=xS(),o!==null&&o!==void 0&&M!==null&&console.error("The seed argument is not enabled outside experimental channels."),E.payload={cache:i};return}u=u.return}}function qK(i,o,u){var m=arguments;typeof m[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),m=_o(i);var E={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};Dg(i)?HR(o,E):(E=uS(i,o,E,m),E!==null&&(Ia(m,"dispatch()",i),vn(E,i,m),ZR(E,o,m)))}function jR(i,o,u){var m=arguments;typeof m[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),m=_o(i),Fh(i,o,u,m)&&Ia(m,"setState()",i)}function Fh(i,o,u,m){var E={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Dg(i))HR(o,E);else{var M=i.alternate;if(i.lanes===0&&(M===null||M.lanes===0)&&(M=o.lastRenderedReducer,M!==null)){var D=ut.H;ut.H=da;try{var H=o.lastRenderedState,X=M(H,u);if(E.hasEagerState=!0,E.eagerState=X,zi(X,H))return ag(i,o,E,0),qr===null&&og(),!1}catch(ne){}finally{ut.H=D}}if(u=uS(i,o,E,m),u!==null)return vn(u,i,m),ZR(u,o,m),!0}return!1}function rx(i,o,u,m){if(ut.T===null&&Wu===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),m={lane:2,revertLane:Ox(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Dg(i)){if(o)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else o=uS(i,u,m,2),o!==null&&(Ia(2,"setOptimistic()",i),vn(o,i,2))}function Dg(i){var o=i.alternate;return i===Qt||o!==null&&o===Qt}function HR(i,o){Gf=N1=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function ZR(i,o,u){if((u&4194048)!==0){var m=o.lanes;m&=i.pendingLanes,u|=m,o.lanes=u,_e(i,u)}}function nx(i){if(i!==null&&typeof i!=="function"){var o=String(i);UO.has(o)||(UO.add(o),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i))}}function ix(i,o,u,m){var E=i.memoizedState,M=u(m,E);if(i.mode&_i){Qe(!0);try{M=u(m,E)}finally{Qe(!1)}}M===void 0&&(o=ce(o)||"Component",LO.has(o)||(LO.add(o),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))),E=M===null||M===void 0?E:hr({},E,M),i.memoizedState=E,i.lanes===0&&(i.updateQueue.baseState=E)}function FR(i,o,u,m,E,M,D){var H=i.stateNode;if(typeof H.shouldComponentUpdate==="function"){if(u=H.shouldComponentUpdate(m,M,D),i.mode&_i){Qe(!0);try{u=H.shouldComponentUpdate(m,M,D)}finally{Qe(!1)}}return u===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ce(o)||"Component"),u}return o.prototype&&o.prototype.isPureReactComponent?!Oh(u,m)||!Oh(E,M):!0}function qR(i,o,u,m){var E=o.state;typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps(u,m),typeof o.UNSAFE_componentWillReceiveProps==="function"&&o.UNSAFE_componentWillReceiveProps(u,m),o.state!==E&&(i=Y(i)||"Component",IO.has(i)||(IO.add(i),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),J6.enqueueReplaceState(o,o.state,null))}function ju(i,o){var u=o;if("ref"in o){u={};for(var m in o)m!=="ref"&&(u[m]=o[m])}if(i=i.defaultProps){u===o&&(u=hr({},u));for(var E in i)u[E]===void 0&&(u[E]=i[E])}return u}function GR(i){C6(i),console.warn(`%s
116
116
 
117
117
  %s
118
118
  `,Vf?"An error occurred in the <"+Vf+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
@@ -128,7 +128,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
128
128
  %s
129
129
  `,i,o,u)}function YR(i){C6(i)}function zg(i,o){try{Vf=o.source?Y(o.source):null,Q6=null;var u=o.value;if(ut.actQueue!==null)ut.thrownErrors.push(u);else{var m=i.onUncaughtError;m(u,{componentStack:o.stack})}}catch(E){setTimeout(function(){throw E})}}function KR(i,o,u){try{Vf=u.source?Y(u.source):null,Q6=Y(o);var m=i.onCaughtError;m(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function ox(i,o,u){return u=hl(u),u.tag=G6,u.payload={element:null},u.callback=function(){be(o.source,zg,i,o)},u}function ax(i){return i=hl(i),i.tag=G6,i}function sx(i,o,u,m){var E=u.type.getDerivedStateFromError;if(typeof E==="function"){var M=m.value;i.payload=function(){return E(M)},i.callback=function(){HC(u),be(m.source,KR,o,u,m)}}var D=u.stateNode;D!==null&&typeof D.componentDidCatch==="function"&&(i.callback=function(){HC(u),be(m.source,KR,o,u,m),typeof E!=="function"&&(Ul===null?Ul=new Set([this]):Ul.add(this)),yJ(this,m),typeof E==="function"||(u.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Y(u)||"Unknown")})}function GK(i,o,u,m,E){if(u.flags|=32768,Ya&&Jh(i,E),m!==null&&typeof m==="object"&&typeof m.then==="function"){if(o=u.alternate,o!==null&&sf(o,u,E,!0),vr&&(Xa=!0),u=Mo.current,u!==null){switch(u.tag){case 31:case 13:return Go===null?Fg():u.alternate===null&&gn===Us&&(gn=P1),u.flags&=-257,u.flags|=65536,u.lanes=E,m===R1?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([m]):o.add(m),Mx(i,m,E)),!1;case 22:return u.flags|=65536,m===R1?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([m])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([m]):u.add(m)),Mx(i,m,E)),!1}throw Error("Unexpected Suspense handler tag ("+u.tag+"). This is a bug in React.")}return Mx(i,m,E),Fg(),!1}if(vr)return Xa=!0,o=Mo.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=E,m!==z6&&Dh(yo(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:m}),u))):(m!==z6&&Dh(yo(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:m}),u)),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,m=yo(m,u),E=ox(i.stateNode,m,E),xg(i,E),gn!==Ll&&(gn=rc)),!1;var M=yo(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:m}),u);if(Fp===null?Fp=[M]:Fp.push(M),gn!==Ll&&(gn=rc),o===null)return!0;m=yo(m,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,i=E&-E,u.lanes|=i,i=ox(u.stateNode,m,i),xg(u,i),!1;case 1:if(o=u.type,M=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError==="function"||M!==null&&typeof M.componentDidCatch==="function"&&(Ul===null||!Ul.has(M))))return u.flags|=65536,E&=-E,u.lanes|=E,E=ax(E),sx(E,i,u,m),xg(u,E),!1}u=u.return}while(u!==null);return!1}function hi(i,o,u,m){o.child=i===null?SO(o,null,u,m):ec(o,i.child,u,m)}function WR(i,o,u,m,E){u=u.render;var M=o.ref;if("ref"in m){var D={};for(var H in m)H!=="ref"&&(D[H]=m[H])}else D=m;if(Lu(o),m=OS(i,o,u,D,M,E),H=DS(),i!==null&&!Zn)return zS(i,o,E),Es(i,o,E);return vr&&H&&mS(o),o.flags|=1,hi(i,o,m,E),o.child}function XR(i,o,u,m,E){if(i===null){var M=u.type;if(typeof M==="function"&&!fS(M)&&M.defaultProps===void 0&&u.compare===null)return u=Ou(M),o.tag=15,o.type=u,ux(o,M),JR(i,o,u,m,E);return i=dS(u.type,null,m,o,o.mode,E),i.ref=o.ref,i.return=o,o.child=i}if(M=i.child,!mx(i,E)){var D=M.memoizedProps;if(u=u.compare,u=u!==null?u:Oh,u(D,m)&&i.ref===o.ref)return Es(i,o,E)}return o.flags|=1,i=Ss(M,m),i.ref=o.ref,i.return=o,o.child=i}function JR(i,o,u,m,E){if(i!==null){var M=i.memoizedProps;if(Oh(M,m)&&i.ref===o.ref&&o.type===i.type)if(Zn=!1,o.pendingProps=m=M,mx(i,E))(i.flags&131072)!==0&&(Zn=!0);else return o.lanes=i.lanes,Es(i,o,E)}return lx(i,o,u,m,E)}function QR(i,o,u,m){var E=m.children,M=i!==null?i.memoizedState:null;if(i===null&&o.stateNode===null&&(o.stateNode={_visibility:vp,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((o.flags&128)!==0){if(M=M!==null?M.baseLanes|u:u,i!==null){m=o.child=i.child;for(E=0;m!==null;)E=E|m.lanes|m.childLanes,m=m.sibling;m=E&~M}else m=0,o.child=null;return e9(i,o,M,u,m)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&mg(o,M!==null?M.cachePool:null),M!==null?mR(o,M):MS(o),gR(o);else return m=o.lanes=536870912,e9(i,o,M!==null?M.baseLanes|u:u,u,m)}else M!==null?(mg(o,M.cachePool),mR(o,M),gl(o),o.memoizedState=null):(i!==null&&mg(o,null),MS(o),gl(o));return hi(i,o,E,u),o.child}function qh(i,o){return i!==null&&i.tag===22||o.stateNode!==null||(o.stateNode={_visibility:vp,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function e9(i,o,u,m,E){var M=ES();return M=M===null?null:{parent:Un._currentValue,pool:M},o.memoizedState={baseLanes:u,cachePool:M},i!==null&&mg(o,null),MS(o),gR(o),i!==null&&sf(i,o,m,!0),o.childLanes=E,null}function Lg(i,o){var u=o.hidden;return u!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,u===!0?"hidden":u===!1?"hidden={false}":"hidden={...}",u?'mode="hidden"':'mode="visible"'),o=$g({mode:o.mode,children:o.children},i.mode),o.ref=i.ref,i.child=o,o.return=i,o}function t9(i,o,u){return ec(o,i.child,null,u),i=Lg(o,o.pendingProps),i.flags|=2,xo(o),o.memoizedState=null,i}function VK(i,o,u){var m=o.pendingProps,E=(o.flags&128)!==0;if(o.flags&=-129,i===null){if(vr){if(m.mode==="hidden")return i=Lg(o,m),o.lanes=536870912,qh(null,i);if(RS(o),(i=nn)?(u=k7(i,Fo),u=u!==null&&u.data===lc?u:null,u!==null&&(m={dehydrated:u,treeContext:VC(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=qC(u),m.return=o,o.child=m,gi=o,nn=null)):u=null,u===null)throw ug(o,i),cl(o);return o.lanes=536870912,null}return Lg(o,m)}var M=i.memoizedState;if(M!==null){var D=M.dehydrated;if(RS(o),E)if(o.flags&256)o.flags&=-257,o=t9(i,o,u);else if(o.memoizedState!==null)o.child=i.child,o.flags|=128,o=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(KC(),(u&536870912)!==0&&Zg(o),Zn||sf(i,o,u,!1),E=(u&i.childLanes)!==0,Zn||E){if(m=qr,m!==null&&(D=ot(m,u),D!==0&&D!==M.retryLane))throw M.retryLane=D,Si(i,D),Sn(m,i,D),e_;Fg(),o=t9(i,o,u)}else i=M.treeContext,nn=wo(D.nextSibling),gi=o,vr=!0,Cl=null,Xa=!1,Ao=null,Fo=!1,i!==null&&YC(o,i),o=Lg(o,m),o.flags|=4096;return o}return M=i.child,m={mode:m.mode,children:m.children},(u&536870912)!==0&&(u&i.lanes)!==0&&Zg(o),i=Ss(M,m),i.ref=o.ref,o.child=i,i.return=o,i}function Pg(i,o){var u=o.ref;if(u===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof u!=="function"&&typeof u!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(i===null||i.ref!==u)o.flags|=4194816}}function lx(i,o,u,m,E){if(u.prototype&&typeof u.prototype.render==="function"){var M=ce(u)||"Unknown";jO[M]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",M,M),jO[M]=!0)}if(o.mode&_i&&fa.recordLegacyContextWarning(o,null),i===null&&(ux(o,o.type),u.contextTypes&&(M=ce(u)||"Unknown",ZO[M]||(ZO[M]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",M)))),Lu(o),u=OS(i,o,u,m,void 0,E),m=DS(),i!==null&&!Zn)return zS(i,o,E),Es(i,o,E);return vr&&m&&mS(o),o.flags|=1,hi(i,o,u,E),o.child}function r9(i,o,u,m,E,M){if(Lu(o),$s=-1,Pp=i!==null&&i.type!==o.type,o.updateQueue=null,u=NS(o,m,u,E),bR(i,o),m=DS(),i!==null&&!Zn)return zS(i,o,M),Es(i,o,M);return vr&&m&&mS(o),o.flags|=1,hi(i,o,u,M),o.child}function n9(i,o,u,m,E){switch(s(o)){case!1:var M=o.stateNode,D=new o.type(o.memoizedProps,M.context).state;M.updater.enqueueSetState(M,D,null);break;case!0:o.flags|=128,o.flags|=65536,M=Error("Simulated error coming from DevTools");var H=E&-E;if(o.lanes|=H,D=qr,D===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");H=ax(H),sx(H,D,o,yo(M,o)),xg(o,H)}if(Lu(o),o.stateNode===null){if(D=Ml,M=u.contextType,"contextType"in u&&M!==null&&(M===void 0||M.$$typeof!==qa)&&!BO.has(u)&&(BO.add(u),H=M===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof M!=="object"?" However, it is set to a "+typeof M+".":M.$$typeof===t6?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(M).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ce(u)||"Component",H)),typeof M==="object"&&M!==null&&(D=cn(M)),M=new u(m,D),o.mode&_i){Qe(!0);try{M=new u(m,D)}finally{Qe(!1)}}if(D=o.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=J6,o.stateNode=M,M._reactInternals=o,M._reactInternalInstance=RO,typeof u.getDerivedStateFromProps==="function"&&D===null&&(D=ce(u)||"Component",OO.has(D)||(OO.add(D),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",D,M.state===null?"null":"undefined",D))),typeof u.getDerivedStateFromProps==="function"||typeof M.getSnapshotBeforeUpdate==="function"){var X=H=D=null;if(typeof M.componentWillMount==="function"&&M.componentWillMount.__suppressDeprecationWarning!==!0?D="componentWillMount":typeof M.UNSAFE_componentWillMount==="function"&&(D="UNSAFE_componentWillMount"),typeof M.componentWillReceiveProps==="function"&&M.componentWillReceiveProps.__suppressDeprecationWarning!==!0?H="componentWillReceiveProps":typeof M.UNSAFE_componentWillReceiveProps==="function"&&(H="UNSAFE_componentWillReceiveProps"),typeof M.componentWillUpdate==="function"&&M.componentWillUpdate.__suppressDeprecationWarning!==!0?X="componentWillUpdate":typeof M.UNSAFE_componentWillUpdate==="function"&&(X="UNSAFE_componentWillUpdate"),D!==null||H!==null||X!==null){M=ce(u)||"Component";var ne=typeof u.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";DO.has(M)||(DO.add(M),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,u===!0?"hidden":u===!1?"hidden={false}":"hidden={...}",u?'mode="hidden"':'mode="visible"'),o=$g({mode:o.mode,children:o.children},i.mode),o.ref=i.ref,i.child=o,o.return=i,o}function t9(i,o,u){return ec(o,i.child,null,u),i=Lg(o,o.pendingProps),i.flags|=2,xo(o),o.memoizedState=null,i}function VK(i,o,u){var m=o.pendingProps,E=(o.flags&128)!==0;if(o.flags&=-129,i===null){if(vr){if(m.mode==="hidden")return i=Lg(o,m),o.lanes=536870912,qh(null,i);if(RS(o),(i=nn)?(u=k7(i,Fo),u=u!==null&&u.data===lc?u:null,u!==null&&(m={dehydrated:u,treeContext:VC(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=qC(u),m.return=o,o.child=m,gi=o,nn=null)):u=null,u===null)throw ug(o,i),cl(o);return o.lanes=536870912,null}return Lg(o,m)}var M=i.memoizedState;if(M!==null){var D=M.dehydrated;if(RS(o),E)if(o.flags&256)o.flags&=-257,o=t9(i,o,u);else if(o.memoizedState!==null)o.child=i.child,o.flags|=128,o=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(KC(),(u&536870912)!==0&&Zg(o),Zn||sf(i,o,u,!1),E=(u&i.childLanes)!==0,Zn||E){if(m=qr,m!==null&&(D=ot(m,u),D!==0&&D!==M.retryLane))throw M.retryLane=D,Si(i,D),vn(m,i,D),e_;Fg(),o=t9(i,o,u)}else i=M.treeContext,nn=wo(D.nextSibling),gi=o,vr=!0,Cl=null,Xa=!1,Ao=null,Fo=!1,i!==null&&YC(o,i),o=Lg(o,m),o.flags|=4096;return o}return M=i.child,m={mode:m.mode,children:m.children},(u&536870912)!==0&&(u&i.lanes)!==0&&Zg(o),i=Ss(M,m),i.ref=o.ref,o.child=i,i.return=o,i}function Pg(i,o){var u=o.ref;if(u===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof u!=="function"&&typeof u!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(i===null||i.ref!==u)o.flags|=4194816}}function lx(i,o,u,m,E){if(u.prototype&&typeof u.prototype.render==="function"){var M=ce(u)||"Unknown";jO[M]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",M,M),jO[M]=!0)}if(o.mode&_i&&fa.recordLegacyContextWarning(o,null),i===null&&(ux(o,o.type),u.contextTypes&&(M=ce(u)||"Unknown",ZO[M]||(ZO[M]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",M)))),Lu(o),u=OS(i,o,u,m,void 0,E),m=DS(),i!==null&&!Zn)return zS(i,o,E),Es(i,o,E);return vr&&m&&mS(o),o.flags|=1,hi(i,o,u,E),o.child}function r9(i,o,u,m,E,M){if(Lu(o),$s=-1,Pp=i!==null&&i.type!==o.type,o.updateQueue=null,u=NS(o,m,u,E),bR(i,o),m=DS(),i!==null&&!Zn)return zS(i,o,M),Es(i,o,M);return vr&&m&&mS(o),o.flags|=1,hi(i,o,u,M),o.child}function n9(i,o,u,m,E){switch(s(o)){case!1:var M=o.stateNode,D=new o.type(o.memoizedProps,M.context).state;M.updater.enqueueSetState(M,D,null);break;case!0:o.flags|=128,o.flags|=65536,M=Error("Simulated error coming from DevTools");var H=E&-E;if(o.lanes|=H,D=qr,D===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");H=ax(H),sx(H,D,o,yo(M,o)),xg(o,H)}if(Lu(o),o.stateNode===null){if(D=Ml,M=u.contextType,"contextType"in u&&M!==null&&(M===void 0||M.$$typeof!==qa)&&!BO.has(u)&&(BO.add(u),H=M===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof M!=="object"?" However, it is set to a "+typeof M+".":M.$$typeof===t6?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(M).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ce(u)||"Component",H)),typeof M==="object"&&M!==null&&(D=cn(M)),M=new u(m,D),o.mode&_i){Qe(!0);try{M=new u(m,D)}finally{Qe(!1)}}if(D=o.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=J6,o.stateNode=M,M._reactInternals=o,M._reactInternalInstance=RO,typeof u.getDerivedStateFromProps==="function"&&D===null&&(D=ce(u)||"Component",OO.has(D)||(OO.add(D),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",D,M.state===null?"null":"undefined",D))),typeof u.getDerivedStateFromProps==="function"||typeof M.getSnapshotBeforeUpdate==="function"){var X=H=D=null;if(typeof M.componentWillMount==="function"&&M.componentWillMount.__suppressDeprecationWarning!==!0?D="componentWillMount":typeof M.UNSAFE_componentWillMount==="function"&&(D="UNSAFE_componentWillMount"),typeof M.componentWillReceiveProps==="function"&&M.componentWillReceiveProps.__suppressDeprecationWarning!==!0?H="componentWillReceiveProps":typeof M.UNSAFE_componentWillReceiveProps==="function"&&(H="UNSAFE_componentWillReceiveProps"),typeof M.componentWillUpdate==="function"&&M.componentWillUpdate.__suppressDeprecationWarning!==!0?X="componentWillUpdate":typeof M.UNSAFE_componentWillUpdate==="function"&&(X="UNSAFE_componentWillUpdate"),D!==null||H!==null||X!==null){M=ce(u)||"Component";var ne=typeof u.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";DO.has(M)||(DO.add(M),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
@@ -137,7 +137,7 @@ https://react.dev/link/unsafe-component-lifecycles`,M,ne,D!==null?`
137
137
  `+D:"",H!==null?`
138
138
  `+H:"",X!==null?`
139
139
  `+X:""))}}M=o.stateNode,D=ce(u)||"Component",M.render||(u.prototype&&typeof u.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",D):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",D)),!M.getInitialState||M.getInitialState.isReactClassApproved||M.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",D),M.getDefaultProps&&!M.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",D),M.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",D),u.childContextTypes&&!$O.has(u)&&($O.add(u),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",D)),u.contextTypes&&!PO.has(u)&&(PO.add(u),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",D)),typeof M.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",D),u.prototype&&u.prototype.isPureReactComponent&&typeof M.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ce(u)||"A pure component"),typeof M.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",D),typeof M.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",D),typeof M.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",D),typeof M.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",D),H=M.props!==m,M.props!==void 0&&H&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",D),M.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",D,D),typeof M.getSnapshotBeforeUpdate!=="function"||typeof M.componentDidUpdate==="function"||NO.has(u)||(NO.add(u),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ce(u))),typeof M.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof M.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof u.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",D),(H=M.state)&&(typeof H!=="object"||Kn(H))&&console.error("%s.state: must be set to an object or null",D),typeof M.getChildContext==="function"&&typeof u.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",D),M=o.stateNode,M.props=m,M.state=o.memoizedState,M.refs={},kS(o),D=u.contextType,M.context=typeof D==="object"&&D!==null?cn(D):Ml,M.state===m&&(D=ce(u)||"Component",zO.has(D)||(zO.add(D),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",D))),o.mode&_i&&fa.recordLegacyContextWarning(o,M),fa.recordUnsafeLifecycleWarnings(o,M),M.state=o.memoizedState,D=u.getDerivedStateFromProps,typeof D==="function"&&(ix(o,u,D,m),M.state=o.memoizedState),typeof u.getDerivedStateFromProps==="function"||typeof M.getSnapshotBeforeUpdate==="function"||typeof M.UNSAFE_componentWillMount!=="function"&&typeof M.componentWillMount!=="function"||(D=M.state,typeof M.componentWillMount==="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount==="function"&&M.UNSAFE_componentWillMount(),D!==M.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Y(o)||"Component"),J6.enqueueReplaceState(M,M.state,null)),jh(o,m,M,E),Uh(),M.state=o.memoizedState),typeof M.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&ca)!==Xt&&(o.flags|=134217728),M=!0}else if(i===null){M=o.stateNode;var je=o.memoizedProps;H=ju(u,je),M.props=H;var He=M.context;X=u.contextType,D=Ml,typeof X==="object"&&X!==null&&(D=cn(X)),ne=u.getDerivedStateFromProps,X=typeof ne==="function"||typeof M.getSnapshotBeforeUpdate==="function",je=o.pendingProps!==je,X||typeof M.UNSAFE_componentWillReceiveProps!=="function"&&typeof M.componentWillReceiveProps!=="function"||(je||He!==D)&&qR(o,M,m,D),zl=!1;var Re=o.memoizedState;M.state=Re,jh(o,m,M,E),Uh(),He=o.memoizedState,je||Re!==He||zl?(typeof ne==="function"&&(ix(o,u,ne,m),He=o.memoizedState),(H=zl||FR(o,u,H,m,Re,He,D))?(X||typeof M.UNSAFE_componentWillMount!=="function"&&typeof M.componentWillMount!=="function"||(typeof M.componentWillMount==="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount==="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&ca)!==Xt&&(o.flags|=134217728)):(typeof M.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&ca)!==Xt&&(o.flags|=134217728),o.memoizedProps=m,o.memoizedState=He),M.props=m,M.state=He,M.context=D,M=H):(typeof M.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&ca)!==Xt&&(o.flags|=134217728),M=!1)}else{M=o.stateNode,AS(i,o),D=o.memoizedProps,X=ju(u,D),M.props=X,ne=o.pendingProps,Re=M.context,He=u.contextType,H=Ml,typeof He==="object"&&He!==null&&(H=cn(He)),je=u.getDerivedStateFromProps,(He=typeof je==="function"||typeof M.getSnapshotBeforeUpdate==="function")||typeof M.UNSAFE_componentWillReceiveProps!=="function"&&typeof M.componentWillReceiveProps!=="function"||(D!==ne||Re!==H)&&qR(o,M,m,H),zl=!1,Re=o.memoizedState,M.state=Re,jh(o,m,M,E),Uh();var it=o.memoizedState;D!==ne||Re!==it||zl||i!==null&&i.dependencies!==null&&fg(i.dependencies)?(typeof je==="function"&&(ix(o,u,je,m),it=o.memoizedState),(X=zl||FR(o,u,X,m,Re,it,H)||i!==null&&i.dependencies!==null&&fg(i.dependencies))?(He||typeof M.UNSAFE_componentWillUpdate!=="function"&&typeof M.componentWillUpdate!=="function"||(typeof M.componentWillUpdate==="function"&&M.componentWillUpdate(m,it,H),typeof M.UNSAFE_componentWillUpdate==="function"&&M.UNSAFE_componentWillUpdate(m,it,H)),typeof M.componentDidUpdate==="function"&&(o.flags|=4),typeof M.getSnapshotBeforeUpdate==="function"&&(o.flags|=1024)):(typeof M.componentDidUpdate!=="function"||D===i.memoizedProps&&Re===i.memoizedState||(o.flags|=4),typeof M.getSnapshotBeforeUpdate!=="function"||D===i.memoizedProps&&Re===i.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=it),M.props=m,M.state=it,M.context=H,M=X):(typeof M.componentDidUpdate!=="function"||D===i.memoizedProps&&Re===i.memoizedState||(o.flags|=4),typeof M.getSnapshotBeforeUpdate!=="function"||D===i.memoizedProps&&Re===i.memoizedState||(o.flags|=1024),M=!1)}if(H=M,Pg(i,o),D=(o.flags&128)!==0,H||D){if(H=o.stateNode,Ae(o),D&&typeof u.getDerivedStateFromError!=="function")u=null,Li=-1;else if(u=aO(H),o.mode&_i){Qe(!0);try{aO(H)}finally{Qe(!1)}}o.flags|=1,i!==null&&D?(o.child=ec(o,i.child,null,E),o.child=ec(o,null,u,E)):hi(i,o,u,E),o.memoizedState=H.state,i=o.child}else i=Es(i,o,E);return E=o.stateNode,M&&E.props!==m&&(Yf||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Y(o)||"a component"),Yf=!0),i}function i9(i,o,u,m){return zu(),o.flags|=256,hi(i,o,u,m),o.child}function ux(i,o){o&&o.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
- %s.childContextTypes = ...`,o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps==="function"&&(i=ce(o)||"Unknown",FO[i]||(console.error("%s: Function components do not support getDerivedStateFromProps.",i),FO[i]=!0)),typeof o.contextType==="object"&&o.contextType!==null&&(o=ce(o)||"Unknown",HO[o]||(console.error("%s: Function components do not support contextType.",o),HO[o]=!0))}function cx(i){return{baseLanes:i,cachePool:rR()}}function fx(i,o,u){return i=i!==null?i.childLanes&~u:0,o&&(i|=so),i}function o9(i,o,u){var m,E=o.pendingProps;l(o)&&(o.flags|=128);var M=!1,D=(o.flags&128)!==0;if((m=D)||(m=i!==null&&i.memoizedState===null?!1:(zn.current&zp)!==0),m&&(M=!0,o.flags&=-129),m=(o.flags&32)!==0,o.flags&=-33,i===null){if(vr){if(M?ml(o):gl(o),(i=nn)?(u=k7(i,Fo),u=u!==null&&u.data!==lc?u:null,u!==null&&(m={dehydrated:u,treeContext:VC(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=qC(u),m.return=o,o.child=m,gi=o,nn=null)):u=null,u===null)throw ug(o,i),cl(o);return Fx(u)?o.lanes=32:o.lanes=536870912,null}var H=E.children;if(E=E.fallback,M){gl(o);var X=o.mode;return H=$g({mode:"hidden",children:H},X),E=Nu(E,X,u,null),H.return=o,E.return=o,H.sibling=E,o.child=H,E=o.child,E.memoizedState=cx(u),E.childLanes=fx(i,m,u),o.memoizedState=t_,qh(null,E)}return ml(o),dx(o,H)}var ne=i.memoizedState;if(ne!==null){var je=ne.dehydrated;if(je!==null){if(D)o.flags&256?(ml(o),o.flags&=-257,o=hx(i,o,u)):o.memoizedState!==null?(gl(o),o.child=i.child,o.flags|=128,o=null):(gl(o),H=E.fallback,X=o.mode,E=$g({mode:"visible",children:E.children},X),H=Nu(H,X,u,null),H.flags|=2,E.return=o,H.return=o,E.sibling=H,o.child=E,ec(o,i.child,null,u),E=o.child,E.memoizedState=cx(u),E.childLanes=fx(i,m,u),o.memoizedState=t_,o=qh(null,E));else if(ml(o),KC(),(u&536870912)!==0&&Zg(o),Fx(je)){if(m=je.nextSibling&&je.nextSibling.dataset,m){H=m.dgst;var He=m.msg;X=m.stck;var Re=m.cstck}M=He,m=H,E=X,je=Re,H=M,X=je,H=H?Error(H):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),H.stack=E||"",H.digest=m,m=X===void 0?null:X,E={value:H,source:null,stack:m},typeof m==="string"&&D6.set(H,E),Dh(E),o=hx(i,o,u)}else if(Zn||sf(i,o,u,!1),m=(u&i.childLanes)!==0,Zn||m){if(m=qr,m!==null&&(E=ot(m,u),E!==0&&E!==ne.retryLane))throw ne.retryLane=E,Si(i,E),Sn(m,i,E),e_;Zx(je)||Fg(),o=hx(i,o,u)}else Zx(je)?(o.flags|=192,o.child=i.child,o=null):(i=ne.treeContext,nn=wo(je.nextSibling),gi=o,vr=!0,Cl=null,Xa=!1,Ao=null,Fo=!1,i!==null&&YC(o,i),o=dx(o,E.children),o.flags|=4096);return o}}if(M)return gl(o),H=E.fallback,X=o.mode,Re=i.child,je=Re.sibling,E=Ss(Re,{mode:"hidden",children:E.children}),E.subtreeFlags=Re.subtreeFlags&65011712,je!==null?H=Ss(je,H):(H=Nu(H,X,u,null),H.flags|=2),H.return=o,E.return=o,E.sibling=H,o.child=E,qh(null,E),E=o.child,H=i.child.memoizedState,H===null?H=cx(u):(X=H.cachePool,X!==null?(Re=Un._currentValue,X=X.parent!==Re?{parent:Re,pool:Re}:X):X=rR(),H={baseLanes:H.baseLanes|u,cachePool:X}),E.memoizedState=H,E.childLanes=fx(i,m,u),o.memoizedState=t_,qh(i.child,E);return ne!==null&&(u&62914560)===u&&(u&i.lanes)!==0&&Zg(o),ml(o),u=i.child,i=u.sibling,u=Ss(u,{mode:"visible",children:E.children}),u.return=o,u.sibling=null,i!==null&&(m=o.deletions,m===null?(o.deletions=[i],o.flags|=16):m.push(i)),o.child=u,o.memoizedState=null,u}function dx(i,o){return o=$g({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function $g(i,o){return i=_(22,i,null,o),i.lanes=0,i}function hx(i,o,u){return ec(o,i.child,null,u),i=dx(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function a9(i,o,u){i.lanes|=o;var m=i.alternate;m!==null&&(m.lanes|=o),vS(i.return,o,u)}function px(i,o,u,m,E,M){var D=i.memoizedState;D===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:E,treeForkCount:M}:(D.isBackwards=o,D.rendering=null,D.renderingStartTime=0,D.last=m,D.tail=u,D.tailMode=E,D.treeForkCount=M)}function s9(i,o,u){var m=o.pendingProps,E=m.revealOrder,M=m.tail,D=m.children,H=zn.current;if((m=(H&zp)!==0)?(H=H&Ff|zp,o.flags|=128):H&=Ff,p(zn,H,o),H=E==null?"null":E,E!=="forwards"&&E!=="unstable_legacy-backwards"&&E!=="together"&&E!=="independent"&&!qO[H])if(qO[H]=!0,E==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(E==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof E==="string")switch(E.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',E,E.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',E,E.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',E)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',E);if(H=M==null?"null":M,!L1[H])if(M==null){if(E==="forwards"||E==="backwards"||E==="unstable_legacy-backwards")L1[H]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else M!=="visible"&&M!=="collapsed"&&M!=="hidden"?(L1[H]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',M)):E!=="forwards"&&E!=="backwards"&&E!=="unstable_legacy-backwards"&&(L1[H]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',M));e:if((E==="forwards"||E==="backwards"||E==="unstable_legacy-backwards")&&D!==void 0&&D!==null&&D!==!1)if(Kn(D)){for(H=0;H<D.length;H++)if(!dR(D[H],H))break e}else if(H=ve(D),typeof H==="function"){if(H=H.call(D))for(var X=H.next(),ne=0;!X.done;X=H.next()){if(!dR(X.value,ne))break e;ne++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',E);if(hi(i,o,D,u),vr?(ul(),D=Sp):D=0,!m&&i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&a9(i,u,o);else if(i.tag===19)a9(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(E){case"forwards":u=o.child;for(E=null;u!==null;)i=u.alternate,i!==null&&_g(i)===null&&(E=u),u=u.sibling;u=E,u===null?(E=o.child,o.child=null):(E=u.sibling,u.sibling=null),px(o,!1,E,u,M,D);break;case"backwards":case"unstable_legacy-backwards":u=null,E=o.child;for(o.child=null;E!==null;){if(i=E.alternate,i!==null&&_g(i)===null){o.child=E;break}i=E.sibling,E.sibling=u,u=E,E=i}px(o,!0,u,null,M,D);break;case"together":px(o,!1,null,null,void 0,D);break;default:o.memoizedState=null}return o.child}function Es(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),Li=-1,$l|=o.lanes,(u&o.childLanes)===0)if(i!==null){if(sf(i,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error("Resuming work not yet implemented.");if(o.child!==null){i=o.child,u=Ss(i,i.pendingProps),o.child=u;for(u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=Ss(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function mx(i,o){if((i.lanes&o)!==0)return!0;return i=i.dependencies,i!==null&&fg(i)?!0:!1}function YK(i,o,u){switch(o.tag){case 3:h(o,o.stateNode.containerInfo),fl(o,Un,i.memoizedState.cache),zu();break;case 27:case 5:C(o);break;case 4:h(o,o.stateNode.containerInfo);break;case 10:fl(o,o.type,o.memoizedProps.value);break;case 12:(u&o.childLanes)!==0&&(o.flags|=4),o.flags|=2048;var m=o.stateNode;m.effectDuration=-0,m.passiveEffectDuration=-0;break;case 31:if(o.memoizedState!==null)return o.flags|=128,RS(o),null;break;case 13:if(m=o.memoizedState,m!==null){if(m.dehydrated!==null)return ml(o),o.flags|=128,null;if((u&o.child.childLanes)!==0)return o9(i,o,u);return ml(o),i=Es(i,o,u),i!==null?i.sibling:null}ml(o);break;case 19:var E=(i.flags&128)!==0;if(m=(u&o.childLanes)!==0,m||(sf(i,o,u,!1),m=(u&o.childLanes)!==0),E){if(m)return s9(i,o,u);o.flags|=128}if(E=o.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),p(zn,zn.current,o),m)break;else return null;case 22:return o.lanes=0,QR(i,o,u,o.pendingProps);case 24:fl(o,Un,i.memoizedState.cache)}return Es(i,o,u)}function gx(i,o,u){if(o._debugNeedsRemount&&i!==null){u=dS(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes),u._debugStack=o._debugStack,u._debugTask=o._debugTask;var m=o.return;if(m===null)throw Error("Cannot swap the root fiber.");if(i.alternate=null,o.alternate=null,u.index=o.index,u.sibling=o.sibling,u.return=o.return,u.ref=o.ref,u._debugInfo=o._debugInfo,o===m.child)m.child=u;else{var E=m.child;if(E===null)throw Error("Expected parent to have a child.");for(;E.sibling!==o;)if(E=E.sibling,E===null)throw Error("Expected to find the previous sibling.");E.sibling=u}return o=m.deletions,o===null?(m.deletions=[i],m.flags|=16):o.push(i),u.flags|=2,u}if(i!==null)if(i.memoizedProps!==o.pendingProps||o.type!==i.type)Zn=!0;else{if(!mx(i,u)&&(o.flags&128)===0)return Zn=!1,YK(i,o,u);Zn=(i.flags&131072)!==0?!0:!1}else{if(Zn=!1,m=vr)ul(),m=(o.flags&1048576)!==0;m&&(m=o.index,ul(),GC(o,Sp,m))}switch(o.lanes=0,o.tag){case 16:e:if(m=o.pendingProps,i=dl(o.elementType),o.type=i,typeof i==="function")fS(i)?(m=ju(i,m),o.tag=1,o.type=i=Ou(i),o=n9(null,o,i,m,u)):(o.tag=0,ux(o,i),o.type=i=Ou(i),o=lx(null,o,i,m,u));else{if(i!==void 0&&i!==null){if(E=i.$$typeof,E===sp){o.tag=11,o.type=i=cS(i),o=WR(null,o,i,m,u);break e}else if(E===i1){o.tag=14,o=XR(null,o,i,m,u);break e}}throw o="",i!==null&&typeof i==="object"&&i.$$typeof===Eo&&(o=" Did you wrap a component in React.lazy() more than once?"),u=ce(i)||i,Error("Element type is invalid. Received a promise that resolves to: "+u+". Lazy element type must resolve to a class or function."+o)}return o;case 0:return lx(i,o,o.type,o.pendingProps,u);case 1:return m=o.type,E=ju(m,o.pendingProps),n9(i,o,m,E,u);case 3:e:{if(h(o,o.stateNode.containerInfo),i===null)throw Error("Should have a current fiber. This is a bug in React.");m=o.pendingProps;var M=o.memoizedState;E=M.element,AS(i,o),jh(o,m,null,u);var D=o.memoizedState;if(m=D.cache,fl(o,Un,m),m!==M.cache&&SS(o,[Un],u,!0),Uh(),m=D.element,M.isDehydrated)if(M={element:m,isDehydrated:!1,cache:D.cache},o.updateQueue.baseState=M,o.memoizedState=M,o.flags&256){o=i9(i,o,m,u);break e}else if(m!==E){E=yo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o),Dh(E),o=i9(i,o,m,u);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}nn=wo(i.firstChild),gi=o,vr=!0,Cl=null,Xa=!1,Ao=null,Fo=!0,u=SO(o,null,m,u);for(o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(zu(),m===E){o=Es(i,o,u);break e}hi(i,o,m,u)}o=o.child}return o;case 26:return Pg(i,o),i===null?(u=O7(o.type,null,o.pendingProps,null))?o.memoizedState=u:vr||(u=o.type,i=o.pendingProps,m=x(_l.current),m=Yg(m).createElement(u),m[mi]=o,m[Ni]=i,pi(m,u,i),ht(m),o.stateNode=m):o.memoizedState=O7(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return C(o),i===null&&vr&&(m=x(_l.current),E=k(),m=o.stateNode=R7(o.type,o.pendingProps,m,E,!1),Xa||(E=y7(m,o.type,o.pendingProps,E),E!==null&&(Du(o,0).serverProps=E)),gi=o,Fo=!0,E=nn,Sl(o.type)?(E_=E,nn=wo(m.firstChild)):nn=E),hi(i,o,o.pendingProps.children,u),Pg(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&vr&&(M=k(),m=rS(o.type,M.ancestorInfo),E=nn,(D=!E)||(D=LW(E,o.type,o.pendingProps,Fo),D!==null?(o.stateNode=D,Xa||(M=y7(D,o.type,o.pendingProps,M),M!==null&&(Du(o,0).serverProps=M)),gi=o,nn=wo(D.firstChild),Fo=!1,M=!0):M=!1,D=!M),D&&(m&&ug(o,E),cl(o))),C(o),E=o.type,M=o.pendingProps,D=i!==null?i.memoizedProps:null,m=M.children,jx(E,M)?m=null:D!==null&&jx(E,D)&&(o.flags|=32),o.memoizedState!==null&&(E=OS(i,o,UK,null,null,u),Qp._currentValue=E),Pg(i,o),hi(i,o,m,u),o.child;case 6:return i===null&&vr&&(u=o.pendingProps,i=k(),m=i.ancestorInfo.current,u=m!=null?Q0(u,m.tag,i.ancestorInfo.implicitRootScope):!0,i=nn,(m=!i)||(m=PW(i,o.pendingProps,Fo),m!==null?(o.stateNode=m,gi=o,nn=null,m=!0):m=!1,m=!m),m&&(u&&ug(o,i),cl(o))),null;case 13:return o9(i,o,u);case 4:return h(o,o.stateNode.containerInfo),m=o.pendingProps,i===null?o.child=ec(o,null,m,u):hi(i,o,m,u),o.child;case 11:return WR(i,o,o.type,o.pendingProps,u);case 7:return hi(i,o,o.pendingProps,u),o.child;case 8:return hi(i,o,o.pendingProps.children,u),o.child;case 12:return o.flags|=4,o.flags|=2048,m=o.stateNode,m.effectDuration=-0,m.passiveEffectDuration=-0,hi(i,o,o.pendingProps.children,u),o.child;case 10:return m=o.type,E=o.pendingProps,M=E.value,"value"in E||GO||(GO=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),fl(o,m,M),hi(i,o,E.children,u),o.child;case 9:return E=o.type._context,m=o.pendingProps.children,typeof m!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Lu(o),E=cn(E),m=H6(m,E,void 0),o.flags|=1,hi(i,o,m,u),o.child;case 14:return XR(i,o,o.type,o.pendingProps,u);case 15:return JR(i,o,o.type,o.pendingProps,u);case 19:return s9(i,o,u);case 31:return VK(i,o,u);case 22:return QR(i,o,u,o.pendingProps);case 24:return Lu(o),m=cn(Un),i===null?(E=ES(),E===null&&(E=qr,M=xS(),E.pooledCache=M,Pu(M),M!==null&&(E.pooledCacheLanes|=u),E=M),o.memoizedState={parent:m,cache:E},kS(o),fl(o,Un,E)):((i.lanes&u)!==0&&(AS(i,o),jh(o,null,null,u),Uh()),E=i.memoizedState,M=o.memoizedState,E.parent!==m?(E={parent:m,cache:m},o.memoizedState=E,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=E),fl(o,Un,m)):(m=M.cache,fl(o,Un,m),m!==E.cache&&SS(o,[Un],u,!0))),hi(i,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ts(i){i.flags|=4}function bx(i,o,u,m,E){if(o=(i.mode&pJ)!==Xt)o=!1;if(o){if(i.flags|=16777216,(E&335544128)===E)if(i.stateNode.complete)i.flags|=8192;else if(U9())i.flags|=8192;else throw Qu=R1,F6}else i.flags&=-16777217}function l9(i,o){if(o.type!=="stylesheet"||(o.state.loading&Ko)!==fc)i.flags&=-16777217;else if(i.flags|=16777216,!P7(o))if(U9())i.flags|=8192;else throw Qu=R1,F6}function Bg(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?Ye():536870912,i.lanes|=o,oc|=o)}function Gh(i,o){if(!vr)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function Wr(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,m=0;if(o)if((i.mode&sr)!==Xt){for(var{selfBaseDuration:E,child:M}=i;M!==null;)u|=M.lanes|M.childLanes,m|=M.subtreeFlags&65011712,m|=M.flags&65011712,E+=M.treeBaseDuration,M=M.sibling;i.treeBaseDuration=E}else for(E=i.child;E!==null;)u|=E.lanes|E.childLanes,m|=E.subtreeFlags&65011712,m|=E.flags&65011712,E.return=i,E=E.sibling;else if((i.mode&sr)!==Xt){E=i.actualDuration,M=i.selfBaseDuration;for(var D=i.child;D!==null;)u|=D.lanes|D.childLanes,m|=D.subtreeFlags,m|=D.flags,E+=D.actualDuration,M+=D.treeBaseDuration,D=D.sibling;i.actualDuration=E,i.treeBaseDuration=M}else for(E=i.child;E!==null;)u|=E.lanes|E.childLanes,m|=E.subtreeFlags,m|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=m,i.childLanes=u,o}function KK(i,o,u){var m=o.pendingProps;switch(gS(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wr(o),null;case 1:return Wr(o),null;case 3:if(u=o.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),o.memoizedState.cache!==m&&(o.flags|=2048),_s(Un,o),S(o),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),i===null||i.child===null)af(o)?(yS(),Ts(o)):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,bS());return Wr(o),null;case 26:var{type:E,memoizedState:M}=o;return i===null?(Ts(o),M!==null?(Wr(o),l9(o,M)):(Wr(o),bx(o,E,null,m,u))):M?M!==i.memoizedState?(Ts(o),Wr(o),l9(o,M)):(Wr(o),o.flags&=-16777217):(i=i.memoizedProps,i!==m&&Ts(o),Wr(o),bx(o,E,i,m,u)),null;case 27:if(w(o),u=x(_l.current),E=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==m&&Ts(o);else{if(!m){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Wr(o),null}i=k(),af(o)?WC(o,i):(i=R7(E,m,u,i,!0),o.stateNode=i,Ts(o))}return Wr(o),null;case 5:if(w(o),E=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==m&&Ts(o);else{if(!m){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Wr(o),null}var D=k();if(af(o))WC(o,D);else{switch(M=x(_l.current),rS(E,D.ancestorInfo),D=D.context,M=Yg(M),D){case rd:M=M.createElementNS(kf,E);break;case rb:M=M.createElementNS(f1,E);break;default:switch(E){case"svg":M=M.createElementNS(kf,E);break;case"math":M=M.createElementNS(f1,E);break;case"script":M=M.createElement("div"),M.innerHTML="<script></script>",M=M.removeChild(M.firstChild);break;case"select":M=typeof m.is==="string"?M.createElement("select",{is:m.is}):M.createElement("select"),m.multiple?M.multiple=!0:m.size&&(M.size=m.size);break;default:M=typeof m.is==="string"?M.createElement(E,{is:m.is}):M.createElement(E),E.indexOf("-")===-1&&(E!==E.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",E),Object.prototype.toString.call(M)!=="[object HTMLUnknownElement]"||la.call(gN,E)||(gN[E]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",E)))}}M[mi]=o,M[Ni]=m;e:for(D=o.child;D!==null;){if(D.tag===5||D.tag===6)M.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===o)break e;for(;D.sibling===null;){if(D.return===null||D.return===o)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}o.stateNode=M;e:switch(pi(M,E,m),E){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&Ts(o)}}return Wr(o),bx(o,o.type,i===null?null:i.memoizedProps,o.pendingProps,u),null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==m&&Ts(o);else{if(typeof m!=="string"&&o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(i=x(_l.current),u=k(),af(o)){if(i=o.stateNode,u=o.memoizedProps,E=!Xa,m=null,M=gi,M!==null)switch(M.tag){case 3:E&&(E=M7(i,u,m),E!==null&&(Du(o,0).serverProps=E));break;case 27:case 5:m=M.memoizedProps,E&&(E=M7(i,u,m),E!==null&&(Du(o,0).serverProps=E))}i[mi]=o,i=i.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||h7(i.nodeValue,u)?!0:!1,i||cl(o,!0)}else E=u.ancestorInfo.current,E!=null&&Q0(m,E.tag,u.ancestorInfo.implicitRootScope),i=Yg(i).createTextNode(m),i[mi]=o,o.stateNode=i}return Wr(o),null;case 31:if(u=o.memoizedState,i===null||i.memoizedState!==null){if(m=af(o),u!==null){if(i===null){if(!m)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(i=o.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");i[mi]=o,Wr(o),(o.mode&sr)!==Xt&&u!==null&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration))}else yS(),zu(),(o.flags&128)===0&&(u=o.memoizedState=null),o.flags|=4,Wr(o),(o.mode&sr)!==Xt&&u!==null&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration));i=!1}else u=bS(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i){if(o.flags&256)return xo(o),o;return xo(o),null}if((o.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Wr(o),null;case 13:if(m=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=m,M=af(o),E!==null&&E.dehydrated!==null){if(i===null){if(!M)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(M=o.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");M[mi]=o,Wr(o),(o.mode&sr)!==Xt&&E!==null&&(E=o.child,E!==null&&(o.treeBaseDuration-=E.treeBaseDuration))}else yS(),zu(),(o.flags&128)===0&&(E=o.memoizedState=null),o.flags|=4,Wr(o),(o.mode&sr)!==Xt&&E!==null&&(E=o.child,E!==null&&(o.treeBaseDuration-=E.treeBaseDuration));E=!1}else E=bS(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E){if(o.flags&256)return xo(o),o;return xo(o),null}}if(xo(o),(o.flags&128)!==0)return o.lanes=u,(o.mode&sr)!==Xt&&Ph(o),o;return u=m!==null,i=i!==null&&i.memoizedState!==null,u&&(m=o.child,E=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(E=m.alternate.memoizedState.cachePool.pool),M=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(M=m.memoizedState.cachePool.pool),M!==E&&(m.flags|=2048)),u!==i&&u&&(o.child.flags|=8192),Bg(o,o.updateQueue),Wr(o),(o.mode&sr)!==Xt&&u&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration)),null;case 4:return S(o),i===null&&Dx(o.stateNode.containerInfo),Wr(o),null;case 10:return _s(o.type,o),Wr(o),null;case 19:if(f(zn,o),m=o.memoizedState,m===null)return Wr(o),null;if(E=(o.flags&128)!==0,M=m.rendering,M===null)if(E)Gh(m,!1);else{if(gn!==Us||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(M=_g(i),M!==null){o.flags|=128,Gh(m,!1),i=M.updateQueue,o.updateQueue=i,Bg(o,i),o.subtreeFlags=0,i=u;for(u=o.child;u!==null;)FC(u,i),u=u.sibling;return p(zn,zn.current&Ff|zp,o),vr&&xs(o,m.treeForkCount),o.child}i=i.sibling}m.tail!==null&&ti()>Z1&&(o.flags|=128,E=!0,Gh(m,!1),o.lanes=4194304)}else{if(!E)if(i=_g(M),i!==null){if(o.flags|=128,E=!0,i=i.updateQueue,o.updateQueue=i,Bg(o,i),Gh(m,!0),m.tail===null&&m.tailMode==="hidden"&&!M.alternate&&!vr)return Wr(o),null}else 2*ti()-m.renderingStartTime>Z1&&u!==536870912&&(o.flags|=128,E=!0,Gh(m,!1),o.lanes=4194304);m.isBackwards?(M.sibling=o.child,o.child=M):(i=m.last,i!==null?i.sibling=M:o.child=M,m.last=M)}if(m.tail!==null)return i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=ti(),i.sibling=null,u=zn.current,u=E?u&Ff|zp:u&Ff,p(zn,u,o),vr&&xs(o,m.treeForkCount),i;return Wr(o),null;case 22:case 23:return xo(o),CS(o),m=o.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(o.flags|=8192):m&&(o.flags|=8192),m?(u&536870912)!==0&&(o.flags&128)===0&&(Wr(o),o.subtreeFlags&6&&(o.flags|=8192)):Wr(o),u=o.updateQueue,u!==null&&Bg(o,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==u&&(o.flags|=2048),i!==null&&f(Xu,o),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),_s(Un,o),Wr(o),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function WK(i,o){switch(gS(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&sr)!==Xt&&Ph(o),o):null;case 3:return _s(Un,o),S(o),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return w(o),null;case 31:if(o.memoizedState!==null){if(xo(o),o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zu()}return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&sr)!==Xt&&Ph(o),o):null;case 13:if(xo(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zu()}return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&sr)!==Xt&&Ph(o),o):null;case 19:return f(zn,o),null;case 4:return S(o),null;case 10:return _s(o.type,o),null;case 22:case 23:return xo(o),CS(o),i!==null&&f(Xu,o),i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&sr)!==Xt&&Ph(o),o):null;case 24:return _s(Un,o),null;case 25:return null;default:return null}}function u9(i,o){switch(gS(o),o.tag){case 3:_s(Un,o),S(o);break;case 26:case 27:case 5:w(o);break;case 4:S(o);break;case 31:o.memoizedState!==null&&xo(o);break;case 13:xo(o);break;case 19:f(zn,o);break;case 10:_s(o.type,o);break;case 22:case 23:xo(o),CS(o),i!==null&&f(Xu,o);break;case 24:_s(Un,o)}}function $a(i){return(i.mode&sr)!==Xt}function c9(i,o){$a(i)?(Pa(),Vh(o,i),La()):Vh(o,i)}function yx(i,o,u){$a(i)?(Pa(),df(u,i,o),La()):df(u,i,o)}function Vh(i,o){try{var u=o.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var E=m.next;u=E;do{if((u.tag&i)===i&&(m=void 0,(i&Pi)!==O1&&(Qf=!0),m=be(o,vJ,u),(i&Pi)!==O1&&(Qf=!1),m!==void 0&&typeof m!=="function")){var M=void 0;M=(u.tag&Co)!==0?"useLayoutEffect":(u.tag&Pi)!==0?"useInsertionEffect":"useEffect";var D=void 0;D=m===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof m.then==="function"?`
140
+ %s.childContextTypes = ...`,o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps==="function"&&(i=ce(o)||"Unknown",FO[i]||(console.error("%s: Function components do not support getDerivedStateFromProps.",i),FO[i]=!0)),typeof o.contextType==="object"&&o.contextType!==null&&(o=ce(o)||"Unknown",HO[o]||(console.error("%s: Function components do not support contextType.",o),HO[o]=!0))}function cx(i){return{baseLanes:i,cachePool:rR()}}function fx(i,o,u){return i=i!==null?i.childLanes&~u:0,o&&(i|=so),i}function o9(i,o,u){var m,E=o.pendingProps;l(o)&&(o.flags|=128);var M=!1,D=(o.flags&128)!==0;if((m=D)||(m=i!==null&&i.memoizedState===null?!1:(zn.current&zp)!==0),m&&(M=!0,o.flags&=-129),m=(o.flags&32)!==0,o.flags&=-33,i===null){if(vr){if(M?ml(o):gl(o),(i=nn)?(u=k7(i,Fo),u=u!==null&&u.data!==lc?u:null,u!==null&&(m={dehydrated:u,treeContext:VC(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=qC(u),m.return=o,o.child=m,gi=o,nn=null)):u=null,u===null)throw ug(o,i),cl(o);return Fx(u)?o.lanes=32:o.lanes=536870912,null}var H=E.children;if(E=E.fallback,M){gl(o);var X=o.mode;return H=$g({mode:"hidden",children:H},X),E=Nu(E,X,u,null),H.return=o,E.return=o,H.sibling=E,o.child=H,E=o.child,E.memoizedState=cx(u),E.childLanes=fx(i,m,u),o.memoizedState=t_,qh(null,E)}return ml(o),dx(o,H)}var ne=i.memoizedState;if(ne!==null){var je=ne.dehydrated;if(je!==null){if(D)o.flags&256?(ml(o),o.flags&=-257,o=hx(i,o,u)):o.memoizedState!==null?(gl(o),o.child=i.child,o.flags|=128,o=null):(gl(o),H=E.fallback,X=o.mode,E=$g({mode:"visible",children:E.children},X),H=Nu(H,X,u,null),H.flags|=2,E.return=o,H.return=o,E.sibling=H,o.child=E,ec(o,i.child,null,u),E=o.child,E.memoizedState=cx(u),E.childLanes=fx(i,m,u),o.memoizedState=t_,o=qh(null,E));else if(ml(o),KC(),(u&536870912)!==0&&Zg(o),Fx(je)){if(m=je.nextSibling&&je.nextSibling.dataset,m){H=m.dgst;var He=m.msg;X=m.stck;var Re=m.cstck}M=He,m=H,E=X,je=Re,H=M,X=je,H=H?Error(H):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),H.stack=E||"",H.digest=m,m=X===void 0?null:X,E={value:H,source:null,stack:m},typeof m==="string"&&D6.set(H,E),Dh(E),o=hx(i,o,u)}else if(Zn||sf(i,o,u,!1),m=(u&i.childLanes)!==0,Zn||m){if(m=qr,m!==null&&(E=ot(m,u),E!==0&&E!==ne.retryLane))throw ne.retryLane=E,Si(i,E),vn(m,i,E),e_;Zx(je)||Fg(),o=hx(i,o,u)}else Zx(je)?(o.flags|=192,o.child=i.child,o=null):(i=ne.treeContext,nn=wo(je.nextSibling),gi=o,vr=!0,Cl=null,Xa=!1,Ao=null,Fo=!1,i!==null&&YC(o,i),o=dx(o,E.children),o.flags|=4096);return o}}if(M)return gl(o),H=E.fallback,X=o.mode,Re=i.child,je=Re.sibling,E=Ss(Re,{mode:"hidden",children:E.children}),E.subtreeFlags=Re.subtreeFlags&65011712,je!==null?H=Ss(je,H):(H=Nu(H,X,u,null),H.flags|=2),H.return=o,E.return=o,E.sibling=H,o.child=E,qh(null,E),E=o.child,H=i.child.memoizedState,H===null?H=cx(u):(X=H.cachePool,X!==null?(Re=Un._currentValue,X=X.parent!==Re?{parent:Re,pool:Re}:X):X=rR(),H={baseLanes:H.baseLanes|u,cachePool:X}),E.memoizedState=H,E.childLanes=fx(i,m,u),o.memoizedState=t_,qh(i.child,E);return ne!==null&&(u&62914560)===u&&(u&i.lanes)!==0&&Zg(o),ml(o),u=i.child,i=u.sibling,u=Ss(u,{mode:"visible",children:E.children}),u.return=o,u.sibling=null,i!==null&&(m=o.deletions,m===null?(o.deletions=[i],o.flags|=16):m.push(i)),o.child=u,o.memoizedState=null,u}function dx(i,o){return o=$g({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function $g(i,o){return i=_(22,i,null,o),i.lanes=0,i}function hx(i,o,u){return ec(o,i.child,null,u),i=dx(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function a9(i,o,u){i.lanes|=o;var m=i.alternate;m!==null&&(m.lanes|=o),vS(i.return,o,u)}function px(i,o,u,m,E,M){var D=i.memoizedState;D===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:E,treeForkCount:M}:(D.isBackwards=o,D.rendering=null,D.renderingStartTime=0,D.last=m,D.tail=u,D.tailMode=E,D.treeForkCount=M)}function s9(i,o,u){var m=o.pendingProps,E=m.revealOrder,M=m.tail,D=m.children,H=zn.current;if((m=(H&zp)!==0)?(H=H&Ff|zp,o.flags|=128):H&=Ff,p(zn,H,o),H=E==null?"null":E,E!=="forwards"&&E!=="unstable_legacy-backwards"&&E!=="together"&&E!=="independent"&&!qO[H])if(qO[H]=!0,E==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(E==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof E==="string")switch(E.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',E,E.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',E,E.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',E)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',E);if(H=M==null?"null":M,!L1[H])if(M==null){if(E==="forwards"||E==="backwards"||E==="unstable_legacy-backwards")L1[H]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else M!=="visible"&&M!=="collapsed"&&M!=="hidden"?(L1[H]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',M)):E!=="forwards"&&E!=="backwards"&&E!=="unstable_legacy-backwards"&&(L1[H]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',M));e:if((E==="forwards"||E==="backwards"||E==="unstable_legacy-backwards")&&D!==void 0&&D!==null&&D!==!1)if(Kn(D)){for(H=0;H<D.length;H++)if(!dR(D[H],H))break e}else if(H=ve(D),typeof H==="function"){if(H=H.call(D))for(var X=H.next(),ne=0;!X.done;X=H.next()){if(!dR(X.value,ne))break e;ne++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',E);if(hi(i,o,D,u),vr?(ul(),D=Sp):D=0,!m&&i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&a9(i,u,o);else if(i.tag===19)a9(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(E){case"forwards":u=o.child;for(E=null;u!==null;)i=u.alternate,i!==null&&_g(i)===null&&(E=u),u=u.sibling;u=E,u===null?(E=o.child,o.child=null):(E=u.sibling,u.sibling=null),px(o,!1,E,u,M,D);break;case"backwards":case"unstable_legacy-backwards":u=null,E=o.child;for(o.child=null;E!==null;){if(i=E.alternate,i!==null&&_g(i)===null){o.child=E;break}i=E.sibling,E.sibling=u,u=E,E=i}px(o,!0,u,null,M,D);break;case"together":px(o,!1,null,null,void 0,D);break;default:o.memoizedState=null}return o.child}function Es(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),Li=-1,$l|=o.lanes,(u&o.childLanes)===0)if(i!==null){if(sf(i,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error("Resuming work not yet implemented.");if(o.child!==null){i=o.child,u=Ss(i,i.pendingProps),o.child=u;for(u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=Ss(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function mx(i,o){if((i.lanes&o)!==0)return!0;return i=i.dependencies,i!==null&&fg(i)?!0:!1}function YK(i,o,u){switch(o.tag){case 3:h(o,o.stateNode.containerInfo),fl(o,Un,i.memoizedState.cache),zu();break;case 27:case 5:C(o);break;case 4:h(o,o.stateNode.containerInfo);break;case 10:fl(o,o.type,o.memoizedProps.value);break;case 12:(u&o.childLanes)!==0&&(o.flags|=4),o.flags|=2048;var m=o.stateNode;m.effectDuration=-0,m.passiveEffectDuration=-0;break;case 31:if(o.memoizedState!==null)return o.flags|=128,RS(o),null;break;case 13:if(m=o.memoizedState,m!==null){if(m.dehydrated!==null)return ml(o),o.flags|=128,null;if((u&o.child.childLanes)!==0)return o9(i,o,u);return ml(o),i=Es(i,o,u),i!==null?i.sibling:null}ml(o);break;case 19:var E=(i.flags&128)!==0;if(m=(u&o.childLanes)!==0,m||(sf(i,o,u,!1),m=(u&o.childLanes)!==0),E){if(m)return s9(i,o,u);o.flags|=128}if(E=o.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),p(zn,zn.current,o),m)break;else return null;case 22:return o.lanes=0,QR(i,o,u,o.pendingProps);case 24:fl(o,Un,i.memoizedState.cache)}return Es(i,o,u)}function gx(i,o,u){if(o._debugNeedsRemount&&i!==null){u=dS(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes),u._debugStack=o._debugStack,u._debugTask=o._debugTask;var m=o.return;if(m===null)throw Error("Cannot swap the root fiber.");if(i.alternate=null,o.alternate=null,u.index=o.index,u.sibling=o.sibling,u.return=o.return,u.ref=o.ref,u._debugInfo=o._debugInfo,o===m.child)m.child=u;else{var E=m.child;if(E===null)throw Error("Expected parent to have a child.");for(;E.sibling!==o;)if(E=E.sibling,E===null)throw Error("Expected to find the previous sibling.");E.sibling=u}return o=m.deletions,o===null?(m.deletions=[i],m.flags|=16):o.push(i),u.flags|=2,u}if(i!==null)if(i.memoizedProps!==o.pendingProps||o.type!==i.type)Zn=!0;else{if(!mx(i,u)&&(o.flags&128)===0)return Zn=!1,YK(i,o,u);Zn=(i.flags&131072)!==0?!0:!1}else{if(Zn=!1,m=vr)ul(),m=(o.flags&1048576)!==0;m&&(m=o.index,ul(),GC(o,Sp,m))}switch(o.lanes=0,o.tag){case 16:e:if(m=o.pendingProps,i=dl(o.elementType),o.type=i,typeof i==="function")fS(i)?(m=ju(i,m),o.tag=1,o.type=i=Ou(i),o=n9(null,o,i,m,u)):(o.tag=0,ux(o,i),o.type=i=Ou(i),o=lx(null,o,i,m,u));else{if(i!==void 0&&i!==null){if(E=i.$$typeof,E===sp){o.tag=11,o.type=i=cS(i),o=WR(null,o,i,m,u);break e}else if(E===i1){o.tag=14,o=XR(null,o,i,m,u);break e}}throw o="",i!==null&&typeof i==="object"&&i.$$typeof===Eo&&(o=" Did you wrap a component in React.lazy() more than once?"),u=ce(i)||i,Error("Element type is invalid. Received a promise that resolves to: "+u+". Lazy element type must resolve to a class or function."+o)}return o;case 0:return lx(i,o,o.type,o.pendingProps,u);case 1:return m=o.type,E=ju(m,o.pendingProps),n9(i,o,m,E,u);case 3:e:{if(h(o,o.stateNode.containerInfo),i===null)throw Error("Should have a current fiber. This is a bug in React.");m=o.pendingProps;var M=o.memoizedState;E=M.element,AS(i,o),jh(o,m,null,u);var D=o.memoizedState;if(m=D.cache,fl(o,Un,m),m!==M.cache&&SS(o,[Un],u,!0),Uh(),m=D.element,M.isDehydrated)if(M={element:m,isDehydrated:!1,cache:D.cache},o.updateQueue.baseState=M,o.memoizedState=M,o.flags&256){o=i9(i,o,m,u);break e}else if(m!==E){E=yo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o),Dh(E),o=i9(i,o,m,u);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}nn=wo(i.firstChild),gi=o,vr=!0,Cl=null,Xa=!1,Ao=null,Fo=!0,u=SO(o,null,m,u);for(o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(zu(),m===E){o=Es(i,o,u);break e}hi(i,o,m,u)}o=o.child}return o;case 26:return Pg(i,o),i===null?(u=O7(o.type,null,o.pendingProps,null))?o.memoizedState=u:vr||(u=o.type,i=o.pendingProps,m=x(_l.current),m=Yg(m).createElement(u),m[mi]=o,m[Ni]=i,pi(m,u,i),ht(m),o.stateNode=m):o.memoizedState=O7(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return C(o),i===null&&vr&&(m=x(_l.current),E=k(),m=o.stateNode=R7(o.type,o.pendingProps,m,E,!1),Xa||(E=y7(m,o.type,o.pendingProps,E),E!==null&&(Du(o,0).serverProps=E)),gi=o,Fo=!0,E=nn,Sl(o.type)?(E_=E,nn=wo(m.firstChild)):nn=E),hi(i,o,o.pendingProps.children,u),Pg(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&vr&&(M=k(),m=rS(o.type,M.ancestorInfo),E=nn,(D=!E)||(D=LW(E,o.type,o.pendingProps,Fo),D!==null?(o.stateNode=D,Xa||(M=y7(D,o.type,o.pendingProps,M),M!==null&&(Du(o,0).serverProps=M)),gi=o,nn=wo(D.firstChild),Fo=!1,M=!0):M=!1,D=!M),D&&(m&&ug(o,E),cl(o))),C(o),E=o.type,M=o.pendingProps,D=i!==null?i.memoizedProps:null,m=M.children,jx(E,M)?m=null:D!==null&&jx(E,D)&&(o.flags|=32),o.memoizedState!==null&&(E=OS(i,o,UK,null,null,u),Qp._currentValue=E),Pg(i,o),hi(i,o,m,u),o.child;case 6:return i===null&&vr&&(u=o.pendingProps,i=k(),m=i.ancestorInfo.current,u=m!=null?Q0(u,m.tag,i.ancestorInfo.implicitRootScope):!0,i=nn,(m=!i)||(m=PW(i,o.pendingProps,Fo),m!==null?(o.stateNode=m,gi=o,nn=null,m=!0):m=!1,m=!m),m&&(u&&ug(o,i),cl(o))),null;case 13:return o9(i,o,u);case 4:return h(o,o.stateNode.containerInfo),m=o.pendingProps,i===null?o.child=ec(o,null,m,u):hi(i,o,m,u),o.child;case 11:return WR(i,o,o.type,o.pendingProps,u);case 7:return hi(i,o,o.pendingProps,u),o.child;case 8:return hi(i,o,o.pendingProps.children,u),o.child;case 12:return o.flags|=4,o.flags|=2048,m=o.stateNode,m.effectDuration=-0,m.passiveEffectDuration=-0,hi(i,o,o.pendingProps.children,u),o.child;case 10:return m=o.type,E=o.pendingProps,M=E.value,"value"in E||GO||(GO=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),fl(o,m,M),hi(i,o,E.children,u),o.child;case 9:return E=o.type._context,m=o.pendingProps.children,typeof m!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Lu(o),E=cn(E),m=H6(m,E,void 0),o.flags|=1,hi(i,o,m,u),o.child;case 14:return XR(i,o,o.type,o.pendingProps,u);case 15:return JR(i,o,o.type,o.pendingProps,u);case 19:return s9(i,o,u);case 31:return VK(i,o,u);case 22:return QR(i,o,u,o.pendingProps);case 24:return Lu(o),m=cn(Un),i===null?(E=ES(),E===null&&(E=qr,M=xS(),E.pooledCache=M,Pu(M),M!==null&&(E.pooledCacheLanes|=u),E=M),o.memoizedState={parent:m,cache:E},kS(o),fl(o,Un,E)):((i.lanes&u)!==0&&(AS(i,o),jh(o,null,null,u),Uh()),E=i.memoizedState,M=o.memoizedState,E.parent!==m?(E={parent:m,cache:m},o.memoizedState=E,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=E),fl(o,Un,m)):(m=M.cache,fl(o,Un,m),m!==E.cache&&SS(o,[Un],u,!0))),hi(i,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ts(i){i.flags|=4}function bx(i,o,u,m,E){if(o=(i.mode&pJ)!==Xt)o=!1;if(o){if(i.flags|=16777216,(E&335544128)===E)if(i.stateNode.complete)i.flags|=8192;else if(U9())i.flags|=8192;else throw Qu=R1,F6}else i.flags&=-16777217}function l9(i,o){if(o.type!=="stylesheet"||(o.state.loading&Ko)!==fc)i.flags&=-16777217;else if(i.flags|=16777216,!P7(o))if(U9())i.flags|=8192;else throw Qu=R1,F6}function Bg(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?Ye():536870912,i.lanes|=o,oc|=o)}function Gh(i,o){if(!vr)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function Wr(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,m=0;if(o)if((i.mode&sr)!==Xt){for(var{selfBaseDuration:E,child:M}=i;M!==null;)u|=M.lanes|M.childLanes,m|=M.subtreeFlags&65011712,m|=M.flags&65011712,E+=M.treeBaseDuration,M=M.sibling;i.treeBaseDuration=E}else for(E=i.child;E!==null;)u|=E.lanes|E.childLanes,m|=E.subtreeFlags&65011712,m|=E.flags&65011712,E.return=i,E=E.sibling;else if((i.mode&sr)!==Xt){E=i.actualDuration,M=i.selfBaseDuration;for(var D=i.child;D!==null;)u|=D.lanes|D.childLanes,m|=D.subtreeFlags,m|=D.flags,E+=D.actualDuration,M+=D.treeBaseDuration,D=D.sibling;i.actualDuration=E,i.treeBaseDuration=M}else for(E=i.child;E!==null;)u|=E.lanes|E.childLanes,m|=E.subtreeFlags,m|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=m,i.childLanes=u,o}function KK(i,o,u){var m=o.pendingProps;switch(gS(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wr(o),null;case 1:return Wr(o),null;case 3:if(u=o.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),o.memoizedState.cache!==m&&(o.flags|=2048),_s(Un,o),S(o),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),i===null||i.child===null)af(o)?(yS(),Ts(o)):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,bS());return Wr(o),null;case 26:var{type:E,memoizedState:M}=o;return i===null?(Ts(o),M!==null?(Wr(o),l9(o,M)):(Wr(o),bx(o,E,null,m,u))):M?M!==i.memoizedState?(Ts(o),Wr(o),l9(o,M)):(Wr(o),o.flags&=-16777217):(i=i.memoizedProps,i!==m&&Ts(o),Wr(o),bx(o,E,i,m,u)),null;case 27:if(w(o),u=x(_l.current),E=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==m&&Ts(o);else{if(!m){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Wr(o),null}i=k(),af(o)?WC(o,i):(i=R7(E,m,u,i,!0),o.stateNode=i,Ts(o))}return Wr(o),null;case 5:if(w(o),E=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==m&&Ts(o);else{if(!m){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Wr(o),null}var D=k();if(af(o))WC(o,D);else{switch(M=x(_l.current),rS(E,D.ancestorInfo),D=D.context,M=Yg(M),D){case rd:M=M.createElementNS(kf,E);break;case rb:M=M.createElementNS(f1,E);break;default:switch(E){case"svg":M=M.createElementNS(kf,E);break;case"math":M=M.createElementNS(f1,E);break;case"script":M=M.createElement("div"),M.innerHTML="<script></script>",M=M.removeChild(M.firstChild);break;case"select":M=typeof m.is==="string"?M.createElement("select",{is:m.is}):M.createElement("select"),m.multiple?M.multiple=!0:m.size&&(M.size=m.size);break;default:M=typeof m.is==="string"?M.createElement(E,{is:m.is}):M.createElement(E),E.indexOf("-")===-1&&(E!==E.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",E),Object.prototype.toString.call(M)!=="[object HTMLUnknownElement]"||la.call(gN,E)||(gN[E]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",E)))}}M[mi]=o,M[Ni]=m;e:for(D=o.child;D!==null;){if(D.tag===5||D.tag===6)M.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===o)break e;for(;D.sibling===null;){if(D.return===null||D.return===o)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}o.stateNode=M;e:switch(pi(M,E,m),E){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&Ts(o)}}return Wr(o),bx(o,o.type,i===null?null:i.memoizedProps,o.pendingProps,u),null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==m&&Ts(o);else{if(typeof m!=="string"&&o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(i=x(_l.current),u=k(),af(o)){if(i=o.stateNode,u=o.memoizedProps,E=!Xa,m=null,M=gi,M!==null)switch(M.tag){case 3:E&&(E=M7(i,u,m),E!==null&&(Du(o,0).serverProps=E));break;case 27:case 5:m=M.memoizedProps,E&&(E=M7(i,u,m),E!==null&&(Du(o,0).serverProps=E))}i[mi]=o,i=i.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||h7(i.nodeValue,u)?!0:!1,i||cl(o,!0)}else E=u.ancestorInfo.current,E!=null&&Q0(m,E.tag,u.ancestorInfo.implicitRootScope),i=Yg(i).createTextNode(m),i[mi]=o,o.stateNode=i}return Wr(o),null;case 31:if(u=o.memoizedState,i===null||i.memoizedState!==null){if(m=af(o),u!==null){if(i===null){if(!m)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(i=o.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");i[mi]=o,Wr(o),(o.mode&sr)!==Xt&&u!==null&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration))}else yS(),zu(),(o.flags&128)===0&&(u=o.memoizedState=null),o.flags|=4,Wr(o),(o.mode&sr)!==Xt&&u!==null&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration));i=!1}else u=bS(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i){if(o.flags&256)return xo(o),o;return xo(o),null}if((o.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Wr(o),null;case 13:if(m=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=m,M=af(o),E!==null&&E.dehydrated!==null){if(i===null){if(!M)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(M=o.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");M[mi]=o,Wr(o),(o.mode&sr)!==Xt&&E!==null&&(E=o.child,E!==null&&(o.treeBaseDuration-=E.treeBaseDuration))}else yS(),zu(),(o.flags&128)===0&&(E=o.memoizedState=null),o.flags|=4,Wr(o),(o.mode&sr)!==Xt&&E!==null&&(E=o.child,E!==null&&(o.treeBaseDuration-=E.treeBaseDuration));E=!1}else E=bS(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E){if(o.flags&256)return xo(o),o;return xo(o),null}}if(xo(o),(o.flags&128)!==0)return o.lanes=u,(o.mode&sr)!==Xt&&Ph(o),o;return u=m!==null,i=i!==null&&i.memoizedState!==null,u&&(m=o.child,E=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(E=m.alternate.memoizedState.cachePool.pool),M=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(M=m.memoizedState.cachePool.pool),M!==E&&(m.flags|=2048)),u!==i&&u&&(o.child.flags|=8192),Bg(o,o.updateQueue),Wr(o),(o.mode&sr)!==Xt&&u&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration)),null;case 4:return S(o),i===null&&Dx(o.stateNode.containerInfo),Wr(o),null;case 10:return _s(o.type,o),Wr(o),null;case 19:if(f(zn,o),m=o.memoizedState,m===null)return Wr(o),null;if(E=(o.flags&128)!==0,M=m.rendering,M===null)if(E)Gh(m,!1);else{if(gn!==Us||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(M=_g(i),M!==null){o.flags|=128,Gh(m,!1),i=M.updateQueue,o.updateQueue=i,Bg(o,i),o.subtreeFlags=0,i=u;for(u=o.child;u!==null;)FC(u,i),u=u.sibling;return p(zn,zn.current&Ff|zp,o),vr&&xs(o,m.treeForkCount),o.child}i=i.sibling}m.tail!==null&&ti()>Z1&&(o.flags|=128,E=!0,Gh(m,!1),o.lanes=4194304)}else{if(!E)if(i=_g(M),i!==null){if(o.flags|=128,E=!0,i=i.updateQueue,o.updateQueue=i,Bg(o,i),Gh(m,!0),m.tail===null&&m.tailMode==="hidden"&&!M.alternate&&!vr)return Wr(o),null}else 2*ti()-m.renderingStartTime>Z1&&u!==536870912&&(o.flags|=128,E=!0,Gh(m,!1),o.lanes=4194304);m.isBackwards?(M.sibling=o.child,o.child=M):(i=m.last,i!==null?i.sibling=M:o.child=M,m.last=M)}if(m.tail!==null)return i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=ti(),i.sibling=null,u=zn.current,u=E?u&Ff|zp:u&Ff,p(zn,u,o),vr&&xs(o,m.treeForkCount),i;return Wr(o),null;case 22:case 23:return xo(o),CS(o),m=o.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(o.flags|=8192):m&&(o.flags|=8192),m?(u&536870912)!==0&&(o.flags&128)===0&&(Wr(o),o.subtreeFlags&6&&(o.flags|=8192)):Wr(o),u=o.updateQueue,u!==null&&Bg(o,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==u&&(o.flags|=2048),i!==null&&f(Xu,o),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),_s(Un,o),Wr(o),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function WK(i,o){switch(gS(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&sr)!==Xt&&Ph(o),o):null;case 3:return _s(Un,o),S(o),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return w(o),null;case 31:if(o.memoizedState!==null){if(xo(o),o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zu()}return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&sr)!==Xt&&Ph(o),o):null;case 13:if(xo(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zu()}return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&sr)!==Xt&&Ph(o),o):null;case 19:return f(zn,o),null;case 4:return S(o),null;case 10:return _s(o.type,o),null;case 22:case 23:return xo(o),CS(o),i!==null&&f(Xu,o),i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&sr)!==Xt&&Ph(o),o):null;case 24:return _s(Un,o),null;case 25:return null;default:return null}}function u9(i,o){switch(gS(o),o.tag){case 3:_s(Un,o),S(o);break;case 26:case 27:case 5:w(o);break;case 4:S(o);break;case 31:o.memoizedState!==null&&xo(o);break;case 13:xo(o);break;case 19:f(zn,o);break;case 10:_s(o.type,o);break;case 22:case 23:xo(o),CS(o),i!==null&&f(Xu,o);break;case 24:_s(Un,o)}}function $a(i){return(i.mode&sr)!==Xt}function c9(i,o){$a(i)?(Pa(),Vh(o,i),La()):Vh(o,i)}function yx(i,o,u){$a(i)?(Pa(),df(u,i,o),La()):df(u,i,o)}function Vh(i,o){try{var u=o.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var E=m.next;u=E;do{if((u.tag&i)===i&&(m=void 0,(i&Pi)!==O1&&(Qf=!0),m=be(o,vJ,u),(i&Pi)!==O1&&(Qf=!1),m!==void 0&&typeof m!=="function")){var M=void 0;M=(u.tag&Co)!==0?"useLayoutEffect":(u.tag&Pi)!==0?"useInsertionEffect":"useEffect";var D=void 0;D=m===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof m.then==="function"?`
141
141
 
142
142
  It looks like you wrote `+M+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
@@ -150,7 +150,7 @@ It looks like you wrote `+M+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+m,be(o,function(H,X){console.error("%s must not return anything besides a function, which is used for clean-up.%s",H,X)},M,D)}u=u.next}while(u!==E)}}catch(H){Nr(o,o.return,H)}}function df(i,o,u){try{var m=o.updateQueue,E=m!==null?m.lastEffect:null;if(E!==null){var M=E.next;m=M;do{if((m.tag&i)===i){var D=m.inst,H=D.destroy;H!==void 0&&(D.destroy=void 0,(i&Pi)!==O1&&(Qf=!0),E=o,be(E,SJ,E,u,H),(i&Pi)!==O1&&(Qf=!1))}m=m.next}while(m!==M)}}catch(X){Nr(o,o.return,X)}}function f9(i,o){$a(i)?(Pa(),Vh(o,i),La()):Vh(o,i)}function vx(i,o,u){$a(i)?(Pa(),df(u,i,o),La()):df(u,i,o)}function d9(i){var o=i.updateQueue;if(o!==null){var u=i.stateNode;i.type.defaultProps||"ref"in i.memoizedProps||Yf||(u.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(i)||"instance"),u.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(i)||"instance"));try{be(i,pR,o,u)}catch(m){Nr(i,i.return,m)}}}function XK(i,o,u){return i.getSnapshotBeforeUpdate(o,u)}function JK(i,o){var{memoizedProps:u,memoizedState:m}=o;o=i.stateNode,i.type.defaultProps||"ref"in i.memoizedProps||Yf||(o.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(i)||"instance"),o.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(i)||"instance"));try{var E=ju(i.type,u),M=be(i,XK,o,E,m);u=VO,M!==void 0||u.has(i.type)||(u.add(i.type),be(i,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Y(i))})),o.__reactInternalSnapshotBeforeUpdate=M}catch(D){Nr(i,i.return,D)}}function h9(i,o,u){u.props=ju(i.type,i.memoizedProps),u.state=i.memoizedState,$a(i)?(Pa(),be(i,dO,i,o,u),La()):be(i,dO,i,o,u)}function QK(i){var o=i.ref;if(o!==null){switch(i.tag){case 26:case 27:case 5:var u=i.stateNode;break;case 30:u=i.stateNode;break;default:u=i.stateNode}if(typeof o==="function")if($a(i))try{Pa(),i.refCleanup=o(u)}finally{La()}else i.refCleanup=o(u);else typeof o==="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Y(i)),o.current=u}}function Yh(i,o){try{be(i,QK,i)}catch(u){Nr(i,o,u)}}function Ba(i,o){var{ref:u,refCleanup:m}=i;if(u!==null)if(typeof m==="function")try{if($a(i))try{Pa(),be(i,m)}finally{La(i)}else be(i,m)}catch(E){Nr(i,o,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u==="function")try{if($a(i))try{Pa(),be(i,u,null)}finally{La(i)}else be(i,u,null)}catch(E){Nr(i,o,E)}else u.current=null}function p9(i,o,u,m){var E=i.memoizedProps,M=E.id,D=E.onCommit;E=E.onRender,o=o===null?"mount":"update",k1&&(o="nested-update"),typeof E==="function"&&E(M,o,i.actualDuration,i.treeBaseDuration,i.actualStartTime,u),typeof D==="function"&&D(M,o,m,u)}function eW(i,o,u,m){var E=i.memoizedProps;i=E.id,E=E.onPostCommit,o=o===null?"mount":"update",k1&&(o="nested-update"),typeof E==="function"&&E(i,o,m,u)}function m9(i){var{type:o,memoizedProps:u,stateNode:m}=i;try{be(i,EW,m,o,u,i)}catch(E){Nr(i,i.return,E)}}function Sx(i,o,u){try{be(i,kW,i.stateNode,i.type,u,o,i)}catch(m){Nr(i,i.return,m)}}function g9(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Sl(i.type)||i.tag===4}function xx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||g9(i.return))return null;i=i.return}i.sibling.return=i.return;for(i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Sl(i.type))continue e;if(i.flags&2)continue e;if(i.child===null||i.tag===4)continue e;else i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function _x(i,o,u){var m=i.tag;if(m===5||m===6)i=i.stateNode,o?(w7(u),(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,o)):(w7(u),o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(i),u=u._reactRootContainer,u!==null&&u!==void 0||o.onclick!==null||(o.onclick=vs));else if(m!==4&&(m===27&&Sl(i.type)&&(u=i.stateNode,o=null),i=i.child,i!==null))for(_x(i,o,u),i=i.sibling;i!==null;)_x(i,o,u),i=i.sibling}function Ug(i,o,u){var m=i.tag;if(m===5||m===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(m!==4&&(m===27&&Sl(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Ug(i,o,u),i=i.sibling;i!==null;)Ug(i,o,u),i=i.sibling}function tW(i){for(var o,u=i.return;u!==null;){if(g9(u)){o=u;break}u=u.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,u=xx(i),Ug(i,u,o);break;case 5:u=o.stateNode,o.flags&32&&(_7(u),o.flags&=-33),o=xx(i),Ug(i,o,u);break;case 3:case 4:o=o.stateNode.containerInfo,u=xx(i),_x(i,u,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function b9(i){var{stateNode:o,memoizedProps:u}=i;try{be(i,HW,i.type,u,o,i)}catch(m){Nr(i,i.return,m)}}function y9(i,o){return o.tag===31?(o=o.memoizedState,i.memoizedState!==null&&o===null):o.tag===13?(i=i.memoizedState,o=o.memoizedState,i!==null&&i.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?i.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function rW(i,o){if(i=i.containerInfo,x_=ab,i=DC(i),oS(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var{anchorOffset:E,focusNode:M}=m;m=m.focusOffset;try{u.nodeType,M.nodeType}catch(Lt){u=null;break e}var D=0,H=-1,X=-1,ne=0,je=0,He=i,Re=null;t:for(;;){for(var it;;){if(He!==u||E!==0&&He.nodeType!==3||(H=D+E),He!==M||m!==0&&He.nodeType!==3||(X=D+m),He.nodeType===3&&(D+=He.nodeValue.length),(it=He.firstChild)===null)break;Re=He,He=it}for(;;){if(He===i)break t;if(Re===u&&++ne===E&&(H=D),Re===M&&++je===m&&(X=D),(it=He.nextSibling)!==null)break;He=Re,Re=He.parentNode}He=it}u=H===-1||X===-1?null:{start:H,end:X}}else u=null}u=u||{start:0,end:0}}else u=null;__={focusedElem:i,selectionRange:u},ab=!1;for(ni=o;ni!==null;)if(o=ni,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,ni=i;else for(;ni!==null;){switch(i=o=ni,u=i.alternate,E=i.flags,i.tag){case 0:if((E&4)!==0&&(i=i.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)E=i[u],E.ref.impl=E.nextImpl;break;case 11:case 15:break;case 1:(E&1024)!==0&&u!==null&&JK(i,u);break;case 3:if((E&1024)!==0){if(i=i.stateNode.containerInfo,u=i.nodeType,u===9)Hx(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Hx(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((E&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(i=o.sibling,i!==null){i.return=o.return,ni=i;break}ni=o.return}}function v9(i,o,u){var m=vo(),E=Oa(),M=Da(),D=za(),H=u.flags;switch(u.tag){case 0:case 11:case 15:Ua(i,u),H&4&&c9(u,Co|Vo);break;case 1:if(Ua(i,u),H&4)if(i=u.stateNode,o===null)u.type.defaultProps||"ref"in u.memoizedProps||Yf||(i.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(u)||"instance"),i.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(u)||"instance")),$a(u)?(Pa(),be(u,Z6,u,i),La()):be(u,Z6,u,i);else{var X=ju(u.type,o.memoizedProps);o=o.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Yf||(i.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(u)||"instance"),i.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(u)||"instance")),$a(u)?(Pa(),be(u,uO,u,i,X,o,i.__reactInternalSnapshotBeforeUpdate),La()):be(u,uO,u,i,X,o,i.__reactInternalSnapshotBeforeUpdate)}H&64&&d9(u),H&512&&Yh(u,u.return);break;case 3:if(o=ws(),Ua(i,u),H&64&&(H=u.updateQueue,H!==null)){if(X=null,u.child!==null)switch(u.child.tag){case 27:case 5:X=u.child.stateNode;break;case 1:X=u.child.stateNode}try{be(u,pR,H,X)}catch(je){Nr(u,u.return,je)}}i.effectDuration+=hg(o);break;case 27:o===null&&H&4&&b9(u);case 26:case 5:if(Ua(i,u),o===null){if(H&4)m9(u);else if(H&64){i=u.type,o=u.memoizedProps,X=u.stateNode;try{be(u,TW,X,i,o,u)}catch(je){Nr(u,u.return,je)}}}H&512&&Yh(u,u.return);break;case 12:if(H&4){H=ws(),Ua(i,u),i=u.stateNode,i.effectDuration+=Lh(H);try{be(u,p9,u,o,Rl,i.effectDuration)}catch(je){Nr(u,u.return,je)}}else Ua(i,u);break;case 31:Ua(i,u),H&4&&_9(i,u);break;case 13:Ua(i,u),H&4&&w9(i,u),H&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(H=fW.bind(null,u),$W(i,H))));break;case 22:if(H=u.memoizedState!==null||Bs,!H){o=o!==null&&o.memoizedState!==null||Fn,X=Bs;var ne=Fn;Bs=H,(Fn=o)&&!ne?(ja(i,u,(u.subtreeFlags&8772)!==0),(u.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&ng(u,Gt,Wt)):Ua(i,u),Bs=X,Fn=ne}break;case 30:break;default:Ua(i,u)}(u.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&((xn||0.05<mn)&&Ra(u,Gt,Wt,mn,fn),u.alternate===null&&u.return!==null&&u.return.alternate!==null&&0.05<Wt-Gt&&(y9(u.return.alternate,u.return)||Ca(u,Gt,Wt,"Mount"))),So(m),Na(E),fn=M,xn=D}function S9(i){var o=i.alternate;o!==null&&(i.alternate=null,S9(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&pe(o)),i.stateNode=null,i._debugOwner=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function ks(i,o,u){for(u=u.child;u!==null;)x9(i,o,u),u=u.sibling}function x9(i,o,u){if(xi&&typeof xi.onCommitFiberUnmount==="function")try{xi.onCommitFiberUnmount(Ef,u)}catch(ne){Va||(Va=!0,console.error("React instrumentation encountered an error: %o",ne))}var m=vo(),E=Oa(),M=Da(),D=za();switch(u.tag){case 26:Fn||Ba(u,o),ks(i,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(i=u.stateNode,i.parentNode.removeChild(i));break;case 27:Fn||Ba(u,o);var H=qn,X=oo;Sl(u.type)&&(qn=u.stateNode,oo=!1),ks(i,o,u),be(u,np,u.stateNode),qn=H,oo=X;break;case 5:Fn||Ba(u,o);case 6:if(H=qn,X=oo,qn=null,ks(i,o,u),qn=H,oo=X,qn!==null)if(oo)try{be(u,CW,qn,u.stateNode)}catch(ne){Nr(u,o,ne)}else try{be(u,MW,qn,u.stateNode)}catch(ne){Nr(u,o,ne)}break;case 18:qn!==null&&(oo?(i=qn,E7(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),Sf(i)):E7(qn,u.stateNode));break;case 4:H=qn,X=oo,qn=u.stateNode.containerInfo,oo=!0,ks(i,o,u),qn=H,oo=X;break;case 0:case 11:case 14:case 15:df(Pi,u,o),Fn||yx(u,o,Co),ks(i,o,u);break;case 1:Fn||(Ba(u,o),H=u.stateNode,typeof H.componentWillUnmount==="function"&&h9(u,o,H)),ks(i,o,u);break;case 21:ks(i,o,u);break;case 22:Fn=(H=Fn)||u.memoizedState!==null,ks(i,o,u),Fn=H;break;default:ks(i,o,u)}(u.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(xn||0.05<mn)&&Ra(u,Gt,Wt,mn,fn),So(m),Na(E),fn=M,xn=D}function _9(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{be(o,UW,i)}catch(u){Nr(o,o.return,u)}}}function w9(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{be(o,jW,i)}catch(u){Nr(o,o.return,u)}}function nW(i){switch(i.tag){case 31:case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new YO),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new YO),o;default:throw Error("Unexpected Suspense handler tag ("+i.tag+"). This is a bug in React.")}}function jg(i,o){var u=nW(i);o.forEach(function(m){if(!u.has(m)){if(u.add(m),Ya)if(Kf!==null&&Wf!==null)Jh(Wf,Kf);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var E=dW.bind(null,i,m);m.then(E,E)}})}function no(i,o){var u=o.deletions;if(u!==null)for(var m=0;m<u.length;m++){var E=i,M=o,D=u[m],H=vo(),X=M;e:for(;X!==null;){switch(X.tag){case 27:if(Sl(X.type)){qn=X.stateNode,oo=!1;break e}break;case 5:qn=X.stateNode,oo=!1;break e;case 3:case 4:qn=X.stateNode.containerInfo,oo=!0;break e}X=X.return}if(qn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");x9(E,M,D),qn=null,oo=!1,(D.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(D,Gt,Wt,"Unmount"),So(H),E=D,M=E.alternate,M!==null&&(M.return=null),E.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)E9(o,i),o=o.sibling}function E9(i,o){var u=vo(),m=Oa(),E=Da(),M=za(),D=i.alternate,H=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:no(o,i),io(i),H&4&&(df(Pi|Vo,i,i.return),Vh(Pi|Vo,i),yx(i,i.return,Co|Vo));break;case 1:if(no(o,i),io(i),H&512&&(Fn||D===null||Ba(D,D.return)),H&64&&Bs&&(H=i.updateQueue,H!==null&&(D=H.callbacks,D!==null))){var X=H.shared.hiddenCallbacks;H.shared.hiddenCallbacks=X===null?D:X.concat(D)}break;case 26:if(X=ha,no(o,i),io(i),H&512&&(Fn||D===null||Ba(D,D.return)),H&4){var ne=D!==null?D.memoizedState:null;if(H=i.memoizedState,D===null)if(H===null)if(i.stateNode===null){e:{H=i.type,D=i.memoizedProps,X=X.ownerDocument||X;t:switch(H){case"title":if(ne=X.getElementsByTagName("title")[0],!ne||ne[cp]||ne[mi]||ne.namespaceURI===kf||ne.hasAttribute("itemprop"))ne=X.createElement(H),X.head.insertBefore(ne,X.querySelector("head > title"));pi(ne,H,D),ne[mi]=i,ht(ne),H=ne;break e;case"link":var je=z7("link","href",X).get(H+(D.href||""));if(je){for(var He=0;He<je.length;He++)if(ne=je[He],ne.getAttribute("href")===(D.href==null||D.href===""?null:D.href)&&ne.getAttribute("rel")===(D.rel==null?null:D.rel)&&ne.getAttribute("title")===(D.title==null?null:D.title)&&ne.getAttribute("crossorigin")===(D.crossOrigin==null?null:D.crossOrigin)){je.splice(He,1);break t}}ne=X.createElement(H),pi(ne,H,D),X.head.appendChild(ne);break;case"meta":if(je=z7("meta","content",X).get(H+(D.content||""))){for(He=0;He<je.length;He++)if(ne=je[He],se(D.content,"content"),ne.getAttribute("content")===(D.content==null?null:""+D.content)&&ne.getAttribute("name")===(D.name==null?null:D.name)&&ne.getAttribute("property")===(D.property==null?null:D.property)&&ne.getAttribute("http-equiv")===(D.httpEquiv==null?null:D.httpEquiv)&&ne.getAttribute("charset")===(D.charSet==null?null:D.charSet)){je.splice(He,1);break t}}ne=X.createElement(H),pi(ne,H,D),X.head.appendChild(ne);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+H+'". This is a bug in React.')}ne[mi]=i,ht(ne),H=ne}i.stateNode=H}else L7(X,i.type,i.stateNode);else i.stateNode=D7(X,H,i.memoizedProps);else ne!==H?(ne===null?D.stateNode!==null&&(D=D.stateNode,D.parentNode.removeChild(D)):ne.count--,H===null?L7(X,i.type,i.stateNode):D7(X,H,i.memoizedProps)):H===null&&i.stateNode!==null&&Sx(i,i.memoizedProps,D.memoizedProps)}break;case 27:no(o,i),io(i),H&512&&(Fn||D===null||Ba(D,D.return)),D!==null&&H&4&&Sx(i,i.memoizedProps,D.memoizedProps);break;case 5:if(no(o,i),io(i),H&512&&(Fn||D===null||Ba(D,D.return)),i.flags&32){X=i.stateNode;try{be(i,_7,X)}catch(Bt){Nr(i,i.return,Bt)}}H&4&&i.stateNode!=null&&(X=i.memoizedProps,Sx(i,X,D!==null?D.memoizedProps:X)),H&1024&&(r_=!0,i.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(no(o,i),io(i),H&4){if(i.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");H=i.memoizedProps,D=D!==null?D.memoizedProps:H,X=i.stateNode;try{be(i,AW,X,D,H)}catch(Bt){Nr(i,i.return,Bt)}}break;case 3:if(X=ws(),nb=null,ne=ha,ha=Kg(o.containerInfo),no(o,i),ha=ne,io(i),H&4&&D!==null&&D.memoizedState.isDehydrated)try{be(i,BW,o.containerInfo)}catch(Bt){Nr(i,i.return,Bt)}r_&&(r_=!1,T9(i)),o.effectDuration+=hg(X);break;case 4:H=ha,ha=Kg(i.stateNode.containerInfo),no(o,i),io(i),ha=H;break;case 12:H=ws(),no(o,i),io(i),i.stateNode.effectDuration+=Lh(H);break;case 31:no(o,i),io(i),H&4&&(H=i.updateQueue,H!==null&&(i.updateQueue=null,jg(i,H)));break;case 13:no(o,i),io(i),i.child.flags&8192&&i.memoizedState!==null!==(D!==null&&D.memoizedState!==null)&&(H1=ti()),H&4&&(H=i.updateQueue,H!==null&&(i.updateQueue=null,jg(i,H)));break;case 22:X=i.memoizedState!==null;var Re=D!==null&&D.memoizedState!==null,it=Bs,Lt=Fn;if(Bs=it||X,Fn=Lt||Re,no(o,i),Fn=Lt,Bs=it,Re&&!X&&!it&&!Lt&&(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&ng(i,Gt,Wt),io(i),H&8192)e:for(o=i.stateNode,o._visibility=X?o._visibility&~vp:o._visibility|vp,!X||D===null||Re||Bs||Fn||(Hu(i),(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(i,Gt,Wt,"Disconnect")),D=null,o=i;;){if(o.tag===5||o.tag===26){if(D===null){Re=D=o;try{ne=Re.stateNode,X?be(Re,IW,ne):be(Re,DW,Re.stateNode,Re.memoizedProps)}catch(Bt){Nr(Re,Re.return,Bt)}}}else if(o.tag===6){if(D===null){Re=o;try{je=Re.stateNode,X?be(Re,OW,je):be(Re,zW,je,Re.memoizedProps)}catch(Bt){Nr(Re,Re.return,Bt)}}}else if(o.tag===18){if(D===null){Re=o;try{He=Re.stateNode,X?be(Re,RW,He):be(Re,NW,Re.stateNode)}catch(Bt){Nr(Re,Re.return,Bt)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;D===o&&(D=null),o=o.return}D===o&&(D=null),o.sibling.return=o.return,o=o.sibling}H&4&&(H=i.updateQueue,H!==null&&(D=H.retryQueue,D!==null&&(H.retryQueue=null,jg(i,D))));break;case 19:no(o,i),io(i),H&4&&(H=i.updateQueue,H!==null&&(i.updateQueue=null,jg(i,H)));break;case 30:break;case 21:break;default:no(o,i),io(i)}(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&((xn||0.05<mn)&&Ra(i,Gt,Wt,mn,fn),i.alternate===null&&i.return!==null&&i.return.alternate!==null&&0.05<Wt-Gt&&(y9(i.return.alternate,i.return)||Ca(i,Gt,Wt,"Mount"))),So(u),Na(m),fn=E,xn=M}function io(i){var o=i.flags;if(o&2){try{be(i,tW,i)}catch(u){Nr(i,i.return,u)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function T9(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;T9(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function Ua(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)v9(i,o.alternate,o),o=o.sibling}function k9(i){var o=vo(),u=Oa(),m=Da(),E=za();switch(i.tag){case 0:case 11:case 14:case 15:yx(i,i.return,Co),Hu(i);break;case 1:Ba(i,i.return);var M=i.stateNode;typeof M.componentWillUnmount==="function"&&h9(i,i.return,M),Hu(i);break;case 27:be(i,np,i.stateNode);case 26:case 5:Ba(i,i.return),Hu(i);break;case 22:i.memoizedState===null&&Hu(i);break;case 30:Hu(i);break;default:Hu(i)}(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(xn||0.05<mn)&&Ra(i,Gt,Wt,mn,fn),So(o),Na(u),fn=m,xn=E}function Hu(i){for(i=i.child;i!==null;)k9(i),i=i.sibling}function A9(i,o,u,m){var E=vo(),M=Oa(),D=Da(),H=za(),X=u.flags;switch(u.tag){case 0:case 11:case 15:ja(i,u,m),c9(u,Co);break;case 1:if(ja(i,u,m),o=u.stateNode,typeof o.componentDidMount==="function"&&be(u,Z6,u,o),o=u.updateQueue,o!==null){i=u.stateNode;try{be(u,BK,o,i)}catch(ne){Nr(u,u.return,ne)}}m&&X&64&&d9(u),Yh(u,u.return);break;case 27:b9(u);case 26:case 5:ja(i,u,m),m&&o===null&&X&4&&m9(u),Yh(u,u.return);break;case 12:if(m&&X&4){X=ws(),ja(i,u,m),m=u.stateNode,m.effectDuration+=Lh(X);try{be(u,p9,u,o,Rl,m.effectDuration)}catch(ne){Nr(u,u.return,ne)}}else ja(i,u,m);break;case 31:ja(i,u,m),m&&X&4&&_9(i,u);break;case 13:ja(i,u,m),m&&X&4&&w9(i,u);break;case 22:u.memoizedState===null&&ja(i,u,m),Yh(u,u.return);break;case 30:break;default:ja(i,u,m)}(u.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(xn||0.05<mn)&&Ra(u,Gt,Wt,mn,fn),So(E),Na(M),fn=D,xn=H}function ja(i,o,u){u=u&&(o.subtreeFlags&8772)!==0;for(o=o.child;o!==null;)A9(i,o.alternate,o,u),o=o.sibling}function wx(i,o){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==u&&(i!=null&&Pu(i),u!=null&&zh(u))}function Ex(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(Pu(o),i!=null&&zh(i))}function sa(i,o,u,m,E){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var M=o.sibling;M9(i,o,u,m,M!==null?M.actualStartTime:E),o=M}}function M9(i,o,u,m,E){var M=vo(),D=Oa(),H=Da(),X=za(),ne=kl,je=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&sr)!==Xt&&0<o.actualStartTime&&(o.flags&1)!==0&&ig(o,o.actualStartTime,E,Wn,u),sa(i,o,u,m,E),je&2048&&f9(o,$i|Vo);break;case 1:(o.mode&sr)!==Xt&&0<o.actualStartTime&&((o.flags&128)!==0?sS(o,o.actualStartTime,E,[]):(o.flags&1)!==0&&ig(o,o.actualStartTime,E,Wn,u)),sa(i,o,u,m,E);break;case 3:var He=ws(),Re=Wn;Wn=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,sa(i,o,u,m,E),Wn=Re,je&2048&&(u=null,o.alternate!==null&&(u=o.alternate.memoizedState.cache),m=o.memoizedState.cache,m!==u&&(Pu(m),u!=null&&zh(u))),i.passiveEffectDuration+=hg(He);break;case 12:if(je&2048){je=ws(),sa(i,o,u,m,E),i=o.stateNode,i.passiveEffectDuration+=Lh(je);try{be(o,eW,o,o.alternate,Rl,i.passiveEffectDuration)}catch(it){Nr(o,o.return,it)}}else sa(i,o,u,m,E);break;case 31:je=Wn,He=o.alternate!==null?o.alternate.memoizedState:null,Re=o.memoizedState,He!==null&&Re===null?(Re=o.deletions,Re!==null&&0<Re.length&&Re[0].tag===18?(Wn=!1,He=He.hydrationErrors,He!==null&&sS(o,o.actualStartTime,E,He)):Wn=!0):Wn=!1,sa(i,o,u,m,E),Wn=je;break;case 13:je=Wn,He=o.alternate!==null?o.alternate.memoizedState:null,Re=o.memoizedState,He===null||He.dehydrated===null||Re!==null&&Re.dehydrated!==null?Wn=!1:(Re=o.deletions,Re!==null&&0<Re.length&&Re[0].tag===18?(Wn=!1,He=He.hydrationErrors,He!==null&&sS(o,o.actualStartTime,E,He)):Wn=!0),sa(i,o,u,m,E),Wn=je;break;case 23:break;case 22:Re=o.stateNode,He=o.alternate,o.memoizedState!==null?Re._visibility&Cs?sa(i,o,u,m,E):Kh(i,o,u,m,E):Re._visibility&Cs?sa(i,o,u,m,E):(Re._visibility|=Cs,hf(i,o,u,m,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),E),(o.mode&sr)===Xt||Wn||(i=o.actualStartTime,0<=i&&0.05<E-i&&ng(o,i,E),0<=Gt&&0<=Wt&&0.05<Wt-Gt&&ng(o,Gt,Wt))),je&2048&&wx(He,o);break;case 24:sa(i,o,u,m,E),je&2048&&Ex(o.alternate,o);break;default:sa(i,o,u,m,E)}if((o.mode&sr)!==Xt){if(i=!Wn&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)u=o.actualStartTime,0<=u&&0.05<E-u&&Ca(o,u,E,"Mount");0<=Gt&&0<=Wt&&((xn||0.05<mn)&&Ra(o,Gt,Wt,mn,fn),i&&0.05<Wt-Gt&&Ca(o,Gt,Wt,"Mount"))}So(M),Na(D),fn=H,xn=X,kl=ne}function hf(i,o,u,m,E,M){E=E&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child));for(o=o.child;o!==null;){var D=o.sibling;C9(i,o,u,m,E,D!==null?D.actualStartTime:M),o=D}}function C9(i,o,u,m,E,M){var D=vo(),H=Oa(),X=Da(),ne=za(),je=kl;E&&(o.mode&sr)!==Xt&&0<o.actualStartTime&&(o.flags&1)!==0&&ig(o,o.actualStartTime,M,Wn,u);var He=o.flags;switch(o.tag){case 0:case 11:case 15:hf(i,o,u,m,E,M),f9(o,$i);break;case 23:break;case 22:var Re=o.stateNode;o.memoizedState!==null?Re._visibility&Cs?hf(i,o,u,m,E,M):Kh(i,o,u,m,M):(Re._visibility|=Cs,hf(i,o,u,m,E,M)),E&&He&2048&&wx(o.alternate,o);break;case 24:hf(i,o,u,m,E,M),E&&He&2048&&Ex(o.alternate,o);break;default:hf(i,o,u,m,E,M)}(o.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(xn||0.05<mn)&&Ra(o,Gt,Wt,mn,fn),So(D),Na(H),fn=X,xn=ne,kl=je}function Kh(i,o,u,m,E){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var M=o.child;M!==null;){o=M.sibling;var D=i,H=u,X=m,ne=o!==null?o.actualStartTime:E,je=kl;(M.mode&sr)!==Xt&&0<M.actualStartTime&&(M.flags&1)!==0&&ig(M,M.actualStartTime,ne,Wn,H);var He=M.flags;switch(M.tag){case 22:Kh(D,M,H,X,ne),He&2048&&wx(M.alternate,M);break;case 24:Kh(D,M,H,X,ne),He&2048&&Ex(M.alternate,M);break;default:Kh(D,M,H,X,ne)}kl=je,M=o}}function pf(i,o,u){if(i.subtreeFlags&Bp)for(i=i.child;i!==null;)R9(i,o,u),i=i.sibling}function R9(i,o,u){switch(i.tag){case 26:pf(i,o,u),i.flags&Bp&&i.memoizedState!==null&&qW(u,ha,i.memoizedState,i.memoizedProps);break;case 5:pf(i,o,u);break;case 3:case 4:var m=ha;ha=Kg(i.stateNode.containerInfo),pf(i,o,u),ha=m;break;case 22:i.memoizedState===null&&(m=i.alternate,m!==null&&m.memoizedState!==null?(m=Bp,Bp=16777216,pf(i,o,u),Bp=m):pf(i,o,u));break;default:pf(i,o,u)}}function I9(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Wh(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var m=o[u],E=vo();ni=m,D9(m,i),(m.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(m,Gt,Wt,"Unmount"),So(E)}I9(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)O9(i),i=i.sibling}function O9(i){var o=vo(),u=Oa(),m=Da(),E=za();switch(i.tag){case 0:case 11:case 15:Wh(i),i.flags&2048&&vx(i,i.return,$i|Vo);break;case 3:var M=ws();Wh(i),i.stateNode.passiveEffectDuration+=hg(M);break;case 12:M=ws(),Wh(i),i.stateNode.passiveEffectDuration+=Lh(M);break;case 22:M=i.stateNode,i.memoizedState!==null&&M._visibility&Cs&&(i.return===null||i.return.tag!==13)?(M._visibility&=~Cs,Hg(i),(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(i,Gt,Wt,"Disconnect")):Wh(i);break;default:Wh(i)}(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(xn||0.05<mn)&&Ra(i,Gt,Wt,mn,fn),So(o),Na(u),xn=E,fn=m}function Hg(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var m=o[u],E=vo();ni=m,D9(m,i),(m.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(m,Gt,Wt,"Unmount"),So(E)}I9(i)}for(i=i.child;i!==null;)N9(i),i=i.sibling}function N9(i){var o=vo(),u=Oa(),m=Da(),E=za();switch(i.tag){case 0:case 11:case 15:vx(i,i.return,$i),Hg(i);break;case 22:var M=i.stateNode;M._visibility&Cs&&(M._visibility&=~Cs,Hg(i));break;default:Hg(i)}(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(xn||0.05<mn)&&Ra(i,Gt,Wt,mn,fn),So(o),Na(u),xn=E,fn=m}function D9(i,o){for(;ni!==null;){var u=ni,m=u,E=o,M=vo(),D=Oa(),H=Da(),X=za();switch(m.tag){case 0:case 11:case 15:vx(m,E,$i);break;case 23:case 22:m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool,E!=null&&Pu(E));break;case 24:zh(m.memoizedState.cache)}if((m.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(xn||0.05<mn)&&Ra(m,Gt,Wt,mn,fn),So(M),Na(D),xn=X,fn=H,m=u.child,m!==null)m.return=u,ni=m;else e:for(u=i;ni!==null;){if(m=ni,M=m.sibling,D=m.return,S9(m),m===u){ni=null;break e}if(M!==null){M.return=D,ni=M;break e}ni=D}}}function iW(){TJ.forEach(function(i){return i()})}function z9(){var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return i||ut.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),i}function _o(i){if((Mr&Xn)!==ii&&ur!==0)return ur&-ur;var o=ut.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(i),Ox()):te()}function L9(){if(so===0)if((ur&536870912)===0||vr){var i=s1;s1<<=1,(s1&3932160)===0&&(s1=262144),so=i}else so=536870912;return i=Mo.current,i!==null&&(i.flags|=32),so}function Sn(i,o,u){if(Qf&&console.error("useInsertionEffect must not schedule updates."),h_&&(G1=!0),i===qr&&($r===nc||$r===ic)||i.cancelPendingCommit!==null)gf(i,0),yl(i,ur,so,!1);if(Fe(i,u),(Mr&Xn)!==ii&&i===qr){if(Ga)switch(o.tag){case 0:case 11:case 15:i=fr&&Y(fr)||"Unknown",uN.has(i)||(uN.add(i),o=Y(o)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",o,i,i));break;case 1:lN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),lN=!0)}}else Ya&&K(i,o,u),pW(o),i===qr&&((Mr&Xn)===ii&&(Bl|=u),gn===Ll&&yl(i,ur,so,!1)),Ha(i)}function P9(i,o,u){if((Mr&(Xn|Ro))!==ii)throw Error("Should not already be working.");if(ur!==0&&fr!==null){var m=fr,E=ti();switch(tO){case Hp:case nc:var M=Tp;rn&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Suspended",M,E,Bo,void 0,"primary-light")):console.timeStamp("Suspended",M,E,Bo,void 0,"primary-light"));break;case ic:M=Tp,rn&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Action",M,E,Bo,void 0,"primary-light")):console.timeStamp("Action",M,E,Bo,void 0,"primary-light"));break;default:rn&&(m=E-Tp,3>m||console.timeStamp("Blocked",Tp,E,Bo,void 0,5>m?"primary-light":10>m?"primary":100>m?"primary-dark":"error"))}}M=(u=!u&&(o&127)===0&&(o&i.expiredLanes)===0||De(i,o))?aW(i,o):kx(i,o,!0);var D=u;do{if(M===Us){Xf&&!u&&yl(i,o,0,!1),o=$r,Tp=jn(),tO=o;break}else{if(m=ti(),E=i.current.alternate,D&&!oW(E)){bo(o),E=ri,M=m,!rn||M<=E||(Rn?Rn.run(console.timeStamp.bind(console,"Teared Render",E,M,mr,pr,"error")):console.timeStamp("Teared Render",E,M,mr,pr,"error")),Zu(o,m),M=kx(i,o,!1),D=!1;continue}if(M===rc){if(D=o,i.errorRecoveryDisabledLanes&D)var H=0;else H=i.pendingLanes&-536870913,H=H!==0?H:H&536870912?536870912:0;if(H!==0){bo(o),lS(ri,m,o,Rn),Zu(o,m),o=H;e:{m=i,M=D,D=Fp;var X=m.current.memoizedState.isDehydrated;if(X&&(gf(m,H).flags|=256),H=kx(m,H,!1),H!==rc){if(o_&&!X){m.errorRecoveryDisabledLanes|=M,Bl|=M,M=Ll;break e}m=Bi,Bi=D,m!==null&&(Bi===null?Bi=m:Bi.push.apply(Bi,m))}M=H}if(D=!1,M!==rc)continue;else m=ti()}}if(M===jp){bo(o),lS(ri,m,o,Rn),Zu(o,m),gf(i,0),yl(i,o,0,!0);break}e:{switch(u=i,M){case Us:case jp:throw Error("Root did not complete. This is a bug in React.");case Ll:if((o&4194048)!==o)break;case $1:bo(o),PC(ri,m,o,Rn),Zu(o,m),E=o,(E&127)!==0?w1=m:(E&4194048)!==0&&(E1=m),yl(u,o,so,!Pl);break e;case rc:Bi=null;break;case P1:case KO:break;default:throw Error("Unknown root exit status.")}if(ut.actQueue!==null)Ax(u,E,o,Bi,qp,j1,so,Bl,oc,M,null,null,ri,m);else{if((o&62914560)===o&&(D=H1+JO-ti(),10<D)){if(yl(u,o,so,!Pl),gt(u,0,!0)!==0)break e;pa=o,u.timeoutHandle=bN($9.bind(null,u,E,Bi,qp,j1,o,so,Bl,oc,Pl,M,"Throttled",ri,m),D);break e}$9(u,E,Bi,qp,j1,o,so,Bl,oc,Pl,M,null,ri,m)}}}break}while(1);Ha(i)}function $9(i,o,u,m,E,M,D,H,X,ne,je,He,Re,it){i.timeoutHandle=cc;var Lt=o.subtreeFlags,Bt=null;if(Lt&8192||(Lt&16785408)===16785408){if(Bt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vs},R9(o,M,Bt),Lt=(M&62914560)===M?H1-ti():(M&4194048)===M?XO-ti():0,Lt=GW(Bt,Lt),Lt!==null){pa=M,i.cancelPendingCommit=Lt(Ax.bind(null,i,o,M,u,m,E,D,H,X,je,Bt,Bt.waitingForViewTransition?"Waiting for the previous Animation":0<Bt.count?0<Bt.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Bt.imgCount===1?"Suspended on an Image":0<Bt.imgCount?"Suspended on Images":null,Re,it)),yl(i,M,D,!ne);return}}Ax(i,o,M,u,m,E,D,H,X,je,Bt,He,Re,it)}function oW(i){for(var o=i;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var E=u[m],M=E.getSnapshot;E=E.value;try{if(!zi(M(),E))return!1}catch(D){return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function yl(i,o,u,m){o&=~a_,o&=~Bl,i.suspendedLanes|=o,i.pingedLanes&=~o,m&&(i.warmLanes|=o),m=i.expirationTimes;for(var E=o;0<E;){var M=31-Oi(E),D=1<<M;m[M]=-1,E&=~D}u!==0&&ae(i,u,o)}function mf(){return(Mr&(Xn|Ro))===ii?(Qh(0,!1),!1):!0}function Tx(){if(fr!==null){if($r===ao)var i=fr.return;else i=fr,cg(),LS(i),Hf=null,Dp=0,i=fr;for(;i!==null;)u9(i.alternate,i),i=i.return;fr=null}}function Zu(i,o){(i&127)!==0&&(Il=o),(i&4194048)!==0&&(Qa=o),(i&62914560)!==0&&(QI=o),(i&2080374784)!==0&&(eO=o)}function gf(i,o){rn&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",pr,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",pr,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",pr,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",pr,"primary-light"));var u=ri;if(ri=jn(),ur!==0&&0<u){if(bo(ur),gn===P1||gn===Ll)PC(u,ri,o,Rn);else{var m=ri,E=Rn;if(rn&&!(m<=u)){var M=(o&738197653)===o?"tertiary-dark":"primary-dark",D=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";E?E.run(console.timeStamp.bind(console,D,u,m,mr,pr,M)):console.timeStamp(D,u,m,mr,pr,M)}}Zu(ur,ri)}if(u=Rn,Rn=null,(o&127)!==0){Rn=_p,E=0<=Ja&&Ja<Il?Il:Ja,m=0<=Yu&&Yu<Il?Il:Yu,M=0<=m?m:0<=E?E:ri,0<=w1?(bo(2),$C(w1,M,o,u)):(T1&127)!==0&&(bo(2),Nh(Il,M,zs)),u=E;var H=m,X=wp,ne=0<Bf,je=Ol===xp,He=Ol===_1;if(E=ri,m=_p,M=$6,D=B6,rn){if(mr="Blocking",0<u?u>E&&(u=E):u=E,0<H?H>u&&(H=u):H=u,X!==null&&u>H){var Re=ne?"secondary-light":"warning";m?m.run(console.timeStamp.bind(console,ne?"Consecutive":"Event: "+X,H,u,mr,pr,Re)):console.timeStamp(ne?"Consecutive":"Event: "+X,H,u,mr,pr,Re)}E>u&&(H=je?"error":(o&738197653)===o?"tertiary-light":"primary-light",je=He?"Promise Resolved":je?"Cascading Update":5<E-u?"Update Blocked":"Update",He=[],D!=null&&He.push(["Component name",D]),M!=null&&He.push(["Method name",M]),u={start:u,end:E,detail:{devtools:{properties:He,track:mr,trackGroup:pr,color:H}}},m?m.run(performance.measure.bind(performance,je,u)):performance.measure(je,u))}Ja=-1.1,Ol=0,B6=$6=null,w1=-1.1,Bf=Yu,Yu=-1.1,Il=jn()}if((o&4194048)!==0&&(Rn=Ep,E=0<=Ds&&Ds<Qa?Qa:Ds,u=0<=qo&&qo<Qa?Qa:qo,m=0<=Nl&&Nl<Qa?Qa:Nl,M=0<=m?m:0<=u?u:ri,0<=E1?(bo(256),$C(E1,M,o,Rn)):(T1&4194048)!==0&&(bo(256),Nh(Qa,M,zs)),He=m,H=Ku,X=0<Dl,ne=U6===_1,M=ri,m=Ep,D=XI,je=JI,rn&&(mr="Transition",0<u?u>M&&(u=M):u=M,0<E?E>u&&(E=u):E=u,0<He?He>E&&(He=E):He=E,E>He&&H!==null&&(Re=X?"secondary-light":"warning",m?m.run(console.timeStamp.bind(console,X?"Consecutive":"Event: "+H,He,E,mr,pr,Re)):console.timeStamp(X?"Consecutive":"Event: "+H,He,E,mr,pr,Re)),u>E&&(m?m.run(console.timeStamp.bind(console,"Action",E,u,mr,pr,"primary-dark")):console.timeStamp("Action",E,u,mr,pr,"primary-dark")),M>u&&(E=ne?"Promise Resolved":5<M-u?"Update Blocked":"Update",He=[],je!=null&&He.push(["Component name",je]),D!=null&&He.push(["Method name",D]),u={start:u,end:M,detail:{devtools:{properties:He,track:mr,trackGroup:pr,color:"primary-light"}}},m?m.run(performance.measure.bind(performance,E,u)):performance.measure(E,u))),qo=Ds=-1.1,U6=0,E1=-1.1,Dl=Nl,Nl=-1.1,Qa=jn()),(o&62914560)!==0&&(T1&62914560)!==0&&(bo(4194304),Nh(QI,ri,zs)),(o&2080374784)!==0&&(T1&2080374784)!==0&&(bo(268435456),Nh(eO,ri,zs)),u=i.timeoutHandle,u!==cc&&(i.timeoutHandle=cc,$J(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),pa=0,Tx(),qr=i,fr=u=Ss(i.current,null),ur=o,$r=ao,Io=null,Pl=!1,Xf=De(i,o),o_=!1,gn=Us,oc=so=a_=Bl=$l=0,Bi=Fp=null,j1=!1,(o&8)!==0&&(o|=o&32),m=i.entangledLanes,m!==0)for(i=i.entanglements,m&=o;0<m;)E=31-Oi(m),M=1<<E,o|=i[E],m&=~M;return ts=o,og(),i=qI(),1000<i-FI&&(ut.recentlyCreatedOwnerStacks=0,FI=i),fa.discardPendingWarnings(),u}function B9(i,o){Qt=null,ut.H=$p,ut.getCurrentStack=null,Ga=!1,To=null,o===jf||o===C1?(o=aR(),$r=Hp):o===F6?(o=aR(),$r=WO):$r=o===e_?i_:o!==null&&typeof o==="object"&&typeof o.then==="function"?Zp:B1,Io=o;var u=fr;u===null?(gn=jp,zg(i,yo(o,i.current))):u.mode&sr&&wS(u)}function U9(){var i=Mo.current;return i===null?!0:(ur&4194048)===ur?Go===null?!0:!1:(ur&62914560)===ur||(ur&536870912)!==0?i===Go:!1}function j9(){var i=ut.H;return ut.H=$p,i===null?$p:i}function H9(){var i=ut.A;return ut.A=EJ,i}function Zg(i){Rn===null&&(Rn=i._debugTask==null?null:i._debugTask)}function Fg(){gn=Ll,Pl||(ur&4194048)!==ur&&Mo.current!==null||(Xf=!0),($l&134217727)===0&&(Bl&134217727)===0||qr===null||yl(qr,ur,so,!1)}function kx(i,o,u){var m=Mr;Mr|=Xn;var E=j9(),M=H9();if(qr!==i||ur!==o){if(Ya){var D=i.memoizedUpdaters;0<D.size&&(Jh(i,ur),D.clear()),Ge(i,o)}qp=null,gf(i,o)}o=!1,D=gn;e:do try{if($r!==ao&&fr!==null){var H=fr,X=Io;switch($r){case i_:Tx(),D=$1;break e;case Hp:case nc:case ic:case Zp:Mo.current===null&&(o=!0);var ne=$r;if($r=ao,Io=null,bf(i,H,X,ne),u&&Xf){D=Us;break e}break;default:ne=$r,$r=ao,Io=null,bf(i,H,X,ne)}}Z9(),D=gn;break}catch(je){B9(i,je)}while(1);return o&&i.shellSuspendCounter++,cg(),Mr=m,ut.H=E,ut.A=M,fr===null&&(qr=null,ur=0,og()),D}function Z9(){for(;fr!==null;)F9(fr)}function aW(i,o){var u=Mr;Mr|=Xn;var m=j9(),E=H9();if(qr!==i||ur!==o){if(Ya){var M=i.memoizedUpdaters;0<M.size&&(Jh(i,ur),M.clear()),Ge(i,o)}qp=null,Z1=ti()+QO,gf(i,o)}else Xf=De(i,o);e:do try{if($r!==ao&&fr!==null)t:switch(o=fr,M=Io,$r){case B1:$r=ao,Io=null,bf(i,o,M,B1);break;case nc:case ic:if(iR(M)){$r=ao,Io=null,q9(o);break}o=function(){$r!==nc&&$r!==ic||qr!==i||($r=U1),Ha(i)},M.then(o,o);break e;case Hp:$r=U1;break e;case WO:$r=n_;break e;case U1:iR(M)?($r=ao,Io=null,q9(o)):($r=ao,Io=null,bf(i,o,M,U1));break;case n_:var D=null;switch(fr.tag){case 26:D=fr.memoizedState;case 5:case 27:var H=fr;if(D?P7(D):H.stateNode.complete){$r=ao,Io=null;var X=H.sibling;if(X!==null)fr=X;else{var ne=H.return;ne!==null?(fr=ne,qg(ne)):fr=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}$r=ao,Io=null,bf(i,o,M,n_);break;case Zp:$r=ao,Io=null,bf(i,o,M,Zp);break;case i_:Tx(),gn=$1;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}ut.actQueue!==null?Z9():sW();break}catch(je){B9(i,je)}while(1);if(cg(),ut.H=m,ut.A=E,Mr=u,fr!==null)return Us;return qr=null,ur=0,og(),gn}function sW(){for(;fr!==null&&!oX();)F9(fr)}function F9(i){var o=i.alternate;(i.mode&sr)!==Xt?(_S(i),o=be(i,gx,o,i,ts),wS(i)):o=be(i,gx,o,i,ts),i.memoizedProps=i.pendingProps,o===null?qg(i):fr=o}function q9(i){var o=be(i,lW,i);i.memoizedProps=i.pendingProps,o===null?qg(i):fr=o}function lW(i){var o=i.alternate,u=(i.mode&sr)!==Xt;switch(u&&_S(i),i.tag){case 15:case 0:o=r9(o,i,i.pendingProps,i.type,void 0,ur);break;case 11:o=r9(o,i,i.pendingProps,i.type.render,i.ref,ur);break;case 5:LS(i);default:u9(o,i),i=fr=FC(i,ts),o=gx(o,i,ts)}return u&&wS(i),o}function bf(i,o,u,m){cg(),LS(o),Hf=null,Dp=0;var E=o.return;try{if(GK(i,E,o,u,ur)){gn=jp,zg(i,yo(u,i.current)),fr=null;return}}catch(M){if(E!==null)throw fr=E,M;gn=jp,zg(i,yo(u,i.current)),fr=null;return}if(o.flags&32768){if(vr||m===B1)i=!0;else if(Xf||(ur&536870912)!==0)i=!1;else if(Pl=i=!0,m===nc||m===ic||m===Hp||m===Zp)m=Mo.current,m!==null&&m.tag===13&&(m.flags|=16384);G9(o,i)}else qg(o)}function qg(i){var o=i;do{if((o.flags&32768)!==0){G9(o,Pl);return}var u=o.alternate;if(i=o.return,_S(o),u=be(o,KK,u,o,ts),(o.mode&sr)!==Xt&&QC(o),u!==null){fr=u;return}if(o=o.sibling,o!==null){fr=o;return}fr=o=i}while(o!==null);gn===Us&&(gn=KO)}function G9(i,o){do{var u=WK(i.alternate,i);if(u!==null){u.flags&=32767,fr=u;return}if((i.mode&sr)!==Xt){QC(i),u=i.actualDuration;for(var m=i.child;m!==null;)u+=m.actualDuration,m=m.sibling;i.actualDuration=u}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(i=i.sibling,i!==null)){fr=i;return}fr=i=u}while(i!==null);gn=$1,fr=null}function Ax(i,o,u,m,E,M,D,H,X,ne,je,He,Re,it){i.cancelPendingCommit=null;do Xh();while(Gn!==jl);if(fa.flushLegacyContextWarning(),fa.flushPendingUnsafeLifecycleWarnings(),(Mr&(Xn|Ro))!==ii)throw Error("Should not already be working.");if(bo(u),ne===rc?lS(Re,it,u,Rn):m!==null?NK(Re,it,u,m,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,Rn):OK(Re,it,u,Rn),o!==null){if(u===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===i.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(M=o.lanes|o.childLanes,M|=N6,L(i,u,M,D,H,X),i===qr&&(fr=qr=null,ur=0),Jf=o,Hl=i,pa=u,u_=M,f_=E,oN=m,c_=it,aN=He,ma=F1,sN=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,hW(wf,function(){return Xp=window.event,ma===F1&&(ma=l_),X9(),null})):(i.callbackNode=null,i.callbackPriority=0),Ns=null,Rl=jn(),He!==null&&DK(it,Rl,He,Rn),m=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||m){m=ut.T,ut.T=null,E=Dr.p,Dr.p=ko,D=Mr,Mr|=Ro;try{rW(i,o,u)}finally{Mr=D,Dr.p=E,ut.T=m}}Gn=tN,V9(),Y9(),K9()}}function V9(){if(Gn===tN){Gn=jl;var i=Hl,o=Jf,u=pa,m=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||m){m=ut.T,ut.T=null;var E=Dr.p;Dr.p=ko;var M=Mr;Mr|=Ro;try{Kf=u,Wf=i,pg(),E9(o,i),Wf=Kf=null,u=__;var D=DC(i.containerInfo),H=u.focusedElem,X=u.selectionRange;if(D!==H&&H&&H.ownerDocument&&NC(H.ownerDocument.documentElement,H)){if(X!==null&&oS(H)){var{start:ne,end:je}=X;if(je===void 0&&(je=ne),"selectionStart"in H)H.selectionStart=ne,H.selectionEnd=Math.min(je,H.value.length);else{var He=H.ownerDocument||document,Re=He&&He.defaultView||window;if(Re.getSelection){var it=Re.getSelection(),Lt=H.textContent.length,Bt=Math.min(X.start,Lt),Xr=X.end===void 0?Bt:Math.min(X.end,Lt);!it.extend&&Bt>Xr&&(D=Xr,Xr=Bt,Bt=D);var wr=OC(H,Bt),Ce=OC(H,Xr);if(wr&&Ce&&(it.rangeCount!==1||it.anchorNode!==wr.node||it.anchorOffset!==wr.offset||it.focusNode!==Ce.node||it.focusOffset!==Ce.offset)){var ze=He.createRange();ze.setStart(wr.node,wr.offset),it.removeAllRanges(),Bt>Xr?(it.addRange(ze),it.extend(Ce.node,Ce.offset)):(ze.setEnd(Ce.node,Ce.offset),it.addRange(ze))}}}}He=[];for(it=H;it=it.parentNode;)it.nodeType===1&&He.push({element:it,left:it.scrollLeft,top:it.scrollTop});typeof H.focus==="function"&&H.focus();for(H=0;H<He.length;H++){var Ue=He[H];Ue.element.scrollLeft=Ue.left,Ue.element.scrollTop=Ue.top}}ab=!!x_,__=x_=null}finally{Mr=M,Dr.p=E,ut.T=m}}i.current=o,Gn=rN}}function Y9(){if(Gn===rN){Gn=jl;var i=sN;if(i!==null){Rl=jn();var o=Os,u=Rl;!rn||u<=o||(zs?zs.run(console.timeStamp.bind(console,i,o,u,mr,pr,"secondary-light")):console.timeStamp(i,o,u,mr,pr,"secondary-light"))}i=Hl,o=Jf,u=pa;var m=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||m){m=ut.T,ut.T=null;var E=Dr.p;Dr.p=ko;var M=Mr;Mr|=Ro;try{Kf=u,Wf=i,pg(),v9(i,o.alternate,o),Wf=Kf=null}finally{Mr=M,Dr.p=E,ut.T=m}}i=c_,o=aN,Os=jn(),i=o===null?i:Rl,o=Os,u=ma===s_,m=Rn,Ns!==null?BC(i,o,Ns,!1,m):!rn||o<=i||(m?m.run(console.timeStamp.bind(console,u?"Commit Interrupted View Transition":"Commit",i,o,mr,pr,u?"error":"secondary-dark")):console.timeStamp(u?"Commit Interrupted View Transition":"Commit",i,o,mr,pr,u?"error":"secondary-dark")),Gn=nN}}function K9(){if(Gn===iN||Gn===nN){if(Gn===iN){var i=Os;Os=jn();var o=Os,u=ma===s_;!rn||o<=i||(zs?zs.run(console.timeStamp.bind(console,u?"Interrupted View Transition":"Starting Animation",i,o,mr,pr,u?"error":"secondary-light")):console.timeStamp(u?"Interrupted View Transition":"Starting Animation",i,o,mr,pr,u?" error":"secondary-light")),ma!==s_&&(ma=eN)}Gn=jl,aX(),i=Hl;var m=Jf;o=pa,u=oN;var E=m.actualDuration!==0||(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0;E?Gn=q1:(Gn=jl,Jf=Hl=null,W9(i,i.pendingLanes),ac=0,Vp=null);var M=i.pendingLanes;if(M===0&&(Ul=null),E||t7(i),M=F(o),m=m.stateNode,xi&&typeof xi.onCommitFiberRoot==="function")try{var D=(m.current.flags&128)===128;switch(M){case ko:var H=f6;break;case ua:H=d6;break;case Ka:H=wf;break;case u1:H=h6;break;default:H=wf}xi.onCommitFiberRoot(Ef,m,H,D)}catch(He){Va||(Va=!0,console.error("React instrumentation encountered an error: %o",He))}if(Ya&&i.memoizedUpdaters.clear(),iW(),u!==null){D=ut.T,H=Dr.p,Dr.p=ko,ut.T=null;try{var X=i.onRecoverableError;for(m=0;m<u.length;m++){var ne=u[m],je=uW(ne.stack);be(ne.source,X,ne.value,je)}}finally{ut.T=D,Dr.p=H}}(pa&3)!==0&&Xh(),Ha(i),M=i.pendingLanes,(o&261930)!==0&&(M&42)!==0?(A1=!0,i===d_?Gp++:(Gp=0,d_=i)):Gp=0,E||Zu(o,Os),Qh(0,!1)}}function uW(i){return i={componentStack:i},Object.defineProperty(i,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),i}function W9(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,zh(o)))}function Xh(){return V9(),Y9(),K9(),X9()}function X9(){if(Gn!==q1)return!1;var i=Hl,o=u_;u_=0;var u=F(pa),m=Ka===0||Ka>u?Ka:u;u=ut.T;var E=Dr.p;try{Dr.p=m,ut.T=null;var M=f_;f_=null,m=Hl;var D=pa;if(Gn=jl,Jf=Hl=null,pa=0,(Mr&(Xn|Ro))!==ii)throw Error("Cannot flush passive effects while already rendering.");bo(D),h_=!0,G1=!1;var H=0;if(Ns=null,H=ti(),ma===eN)Nh(Os,H,zs);else{var X=Os,ne=H,je=ma===l_;!rn||ne<=X||(Rn?Rn.run(console.timeStamp.bind(console,je?"Waiting for Paint":"Waiting",X,ne,mr,pr,"secondary-light")):console.timeStamp(je?"Waiting for Paint":"Waiting",X,ne,mr,pr,"secondary-light"))}X=Mr,Mr|=Ro;var He=m.current;pg(),O9(He);var Re=m.current;He=c_,pg(),M9(m,Re,D,M,He),t7(m),Mr=X;var it=ti();if(Re=H,He=Rn,Ns!==null?BC(Re,it,Ns,!0,He):!rn||it<=Re||(He?He.run(console.timeStamp.bind(console,"Remaining Effects",Re,it,mr,pr,"secondary-dark")):console.timeStamp("Remaining Effects",Re,it,mr,pr,"secondary-dark")),Zu(D,it),Qh(0,!1),G1?m===Vp?ac++:(ac=0,Vp=m):ac=0,G1=h_=!1,xi&&typeof xi.onPostCommitFiberRoot==="function")try{xi.onPostCommitFiberRoot(Ef,m)}catch(Bt){Va||(Va=!0,console.error("React instrumentation encountered an error: %o",Bt))}var Lt=m.current.stateNode;return Lt.effectDuration=0,Lt.passiveEffectDuration=0,!0}finally{Dr.p=E,ut.T=u,W9(i,o)}}function J9(i,o,u){o=yo(u,o),eR(o),o=ox(i.stateNode,o,2),i=pl(i,o,2),i!==null&&(Fe(i,2),Ha(i))}function Nr(i,o,u){if(Qf=!1,i.tag===3)J9(i,i,u);else{for(;o!==null;){if(o.tag===3){J9(o,i,u);return}if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError==="function"||typeof m.componentDidCatch==="function"&&(Ul===null||!Ul.has(m))){i=yo(u,i),eR(i),u=ax(2),m=pl(o,u,2),m!==null&&(sx(u,m,o,i),Fe(m,2),Ha(m));return}}o=o.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+m,be(o,function(H,X){console.error("%s must not return anything besides a function, which is used for clean-up.%s",H,X)},M,D)}u=u.next}while(u!==E)}}catch(H){Nr(o,o.return,H)}}function df(i,o,u){try{var m=o.updateQueue,E=m!==null?m.lastEffect:null;if(E!==null){var M=E.next;m=M;do{if((m.tag&i)===i){var D=m.inst,H=D.destroy;H!==void 0&&(D.destroy=void 0,(i&Pi)!==O1&&(Qf=!0),E=o,be(E,SJ,E,u,H),(i&Pi)!==O1&&(Qf=!1))}m=m.next}while(m!==M)}}catch(X){Nr(o,o.return,X)}}function f9(i,o){$a(i)?(Pa(),Vh(o,i),La()):Vh(o,i)}function vx(i,o,u){$a(i)?(Pa(),df(u,i,o),La()):df(u,i,o)}function d9(i){var o=i.updateQueue;if(o!==null){var u=i.stateNode;i.type.defaultProps||"ref"in i.memoizedProps||Yf||(u.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(i)||"instance"),u.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(i)||"instance"));try{be(i,pR,o,u)}catch(m){Nr(i,i.return,m)}}}function XK(i,o,u){return i.getSnapshotBeforeUpdate(o,u)}function JK(i,o){var{memoizedProps:u,memoizedState:m}=o;o=i.stateNode,i.type.defaultProps||"ref"in i.memoizedProps||Yf||(o.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(i)||"instance"),o.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(i)||"instance"));try{var E=ju(i.type,u),M=be(i,XK,o,E,m);u=VO,M!==void 0||u.has(i.type)||(u.add(i.type),be(i,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Y(i))})),o.__reactInternalSnapshotBeforeUpdate=M}catch(D){Nr(i,i.return,D)}}function h9(i,o,u){u.props=ju(i.type,i.memoizedProps),u.state=i.memoizedState,$a(i)?(Pa(),be(i,dO,i,o,u),La()):be(i,dO,i,o,u)}function QK(i){var o=i.ref;if(o!==null){switch(i.tag){case 26:case 27:case 5:var u=i.stateNode;break;case 30:u=i.stateNode;break;default:u=i.stateNode}if(typeof o==="function")if($a(i))try{Pa(),i.refCleanup=o(u)}finally{La()}else i.refCleanup=o(u);else typeof o==="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Y(i)),o.current=u}}function Yh(i,o){try{be(i,QK,i)}catch(u){Nr(i,o,u)}}function Ba(i,o){var{ref:u,refCleanup:m}=i;if(u!==null)if(typeof m==="function")try{if($a(i))try{Pa(),be(i,m)}finally{La(i)}else be(i,m)}catch(E){Nr(i,o,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u==="function")try{if($a(i))try{Pa(),be(i,u,null)}finally{La(i)}else be(i,u,null)}catch(E){Nr(i,o,E)}else u.current=null}function p9(i,o,u,m){var E=i.memoizedProps,M=E.id,D=E.onCommit;E=E.onRender,o=o===null?"mount":"update",k1&&(o="nested-update"),typeof E==="function"&&E(M,o,i.actualDuration,i.treeBaseDuration,i.actualStartTime,u),typeof D==="function"&&D(M,o,m,u)}function eW(i,o,u,m){var E=i.memoizedProps;i=E.id,E=E.onPostCommit,o=o===null?"mount":"update",k1&&(o="nested-update"),typeof E==="function"&&E(i,o,m,u)}function m9(i){var{type:o,memoizedProps:u,stateNode:m}=i;try{be(i,EW,m,o,u,i)}catch(E){Nr(i,i.return,E)}}function Sx(i,o,u){try{be(i,kW,i.stateNode,i.type,u,o,i)}catch(m){Nr(i,i.return,m)}}function g9(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Sl(i.type)||i.tag===4}function xx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||g9(i.return))return null;i=i.return}i.sibling.return=i.return;for(i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Sl(i.type))continue e;if(i.flags&2)continue e;if(i.child===null||i.tag===4)continue e;else i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function _x(i,o,u){var m=i.tag;if(m===5||m===6)i=i.stateNode,o?(w7(u),(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,o)):(w7(u),o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(i),u=u._reactRootContainer,u!==null&&u!==void 0||o.onclick!==null||(o.onclick=vs));else if(m!==4&&(m===27&&Sl(i.type)&&(u=i.stateNode,o=null),i=i.child,i!==null))for(_x(i,o,u),i=i.sibling;i!==null;)_x(i,o,u),i=i.sibling}function Ug(i,o,u){var m=i.tag;if(m===5||m===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(m!==4&&(m===27&&Sl(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Ug(i,o,u),i=i.sibling;i!==null;)Ug(i,o,u),i=i.sibling}function tW(i){for(var o,u=i.return;u!==null;){if(g9(u)){o=u;break}u=u.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,u=xx(i),Ug(i,u,o);break;case 5:u=o.stateNode,o.flags&32&&(_7(u),o.flags&=-33),o=xx(i),Ug(i,o,u);break;case 3:case 4:o=o.stateNode.containerInfo,u=xx(i),_x(i,u,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function b9(i){var{stateNode:o,memoizedProps:u}=i;try{be(i,HW,i.type,u,o,i)}catch(m){Nr(i,i.return,m)}}function y9(i,o){return o.tag===31?(o=o.memoizedState,i.memoizedState!==null&&o===null):o.tag===13?(i=i.memoizedState,o=o.memoizedState,i!==null&&i.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?i.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function rW(i,o){if(i=i.containerInfo,x_=ab,i=DC(i),oS(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var{anchorOffset:E,focusNode:M}=m;m=m.focusOffset;try{u.nodeType,M.nodeType}catch(Lt){u=null;break e}var D=0,H=-1,X=-1,ne=0,je=0,He=i,Re=null;t:for(;;){for(var it;;){if(He!==u||E!==0&&He.nodeType!==3||(H=D+E),He!==M||m!==0&&He.nodeType!==3||(X=D+m),He.nodeType===3&&(D+=He.nodeValue.length),(it=He.firstChild)===null)break;Re=He,He=it}for(;;){if(He===i)break t;if(Re===u&&++ne===E&&(H=D),Re===M&&++je===m&&(X=D),(it=He.nextSibling)!==null)break;He=Re,Re=He.parentNode}He=it}u=H===-1||X===-1?null:{start:H,end:X}}else u=null}u=u||{start:0,end:0}}else u=null;__={focusedElem:i,selectionRange:u},ab=!1;for(ni=o;ni!==null;)if(o=ni,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,ni=i;else for(;ni!==null;){switch(i=o=ni,u=i.alternate,E=i.flags,i.tag){case 0:if((E&4)!==0&&(i=i.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)E=i[u],E.ref.impl=E.nextImpl;break;case 11:case 15:break;case 1:(E&1024)!==0&&u!==null&&JK(i,u);break;case 3:if((E&1024)!==0){if(i=i.stateNode.containerInfo,u=i.nodeType,u===9)Hx(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Hx(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((E&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(i=o.sibling,i!==null){i.return=o.return,ni=i;break}ni=o.return}}function v9(i,o,u){var m=vo(),E=Oa(),M=Da(),D=za(),H=u.flags;switch(u.tag){case 0:case 11:case 15:Ua(i,u),H&4&&c9(u,Co|Vo);break;case 1:if(Ua(i,u),H&4)if(i=u.stateNode,o===null)u.type.defaultProps||"ref"in u.memoizedProps||Yf||(i.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(u)||"instance"),i.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(u)||"instance")),$a(u)?(Pa(),be(u,Z6,u,i),La()):be(u,Z6,u,i);else{var X=ju(u.type,o.memoizedProps);o=o.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Yf||(i.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(u)||"instance"),i.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(u)||"instance")),$a(u)?(Pa(),be(u,uO,u,i,X,o,i.__reactInternalSnapshotBeforeUpdate),La()):be(u,uO,u,i,X,o,i.__reactInternalSnapshotBeforeUpdate)}H&64&&d9(u),H&512&&Yh(u,u.return);break;case 3:if(o=ws(),Ua(i,u),H&64&&(H=u.updateQueue,H!==null)){if(X=null,u.child!==null)switch(u.child.tag){case 27:case 5:X=u.child.stateNode;break;case 1:X=u.child.stateNode}try{be(u,pR,H,X)}catch(je){Nr(u,u.return,je)}}i.effectDuration+=hg(o);break;case 27:o===null&&H&4&&b9(u);case 26:case 5:if(Ua(i,u),o===null){if(H&4)m9(u);else if(H&64){i=u.type,o=u.memoizedProps,X=u.stateNode;try{be(u,TW,X,i,o,u)}catch(je){Nr(u,u.return,je)}}}H&512&&Yh(u,u.return);break;case 12:if(H&4){H=ws(),Ua(i,u),i=u.stateNode,i.effectDuration+=Lh(H);try{be(u,p9,u,o,Rl,i.effectDuration)}catch(je){Nr(u,u.return,je)}}else Ua(i,u);break;case 31:Ua(i,u),H&4&&_9(i,u);break;case 13:Ua(i,u),H&4&&w9(i,u),H&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(H=fW.bind(null,u),$W(i,H))));break;case 22:if(H=u.memoizedState!==null||Bs,!H){o=o!==null&&o.memoizedState!==null||Fn,X=Bs;var ne=Fn;Bs=H,(Fn=o)&&!ne?(ja(i,u,(u.subtreeFlags&8772)!==0),(u.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&ng(u,Gt,Wt)):Ua(i,u),Bs=X,Fn=ne}break;case 30:break;default:Ua(i,u)}(u.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&((Sn||0.05<mn)&&Ra(u,Gt,Wt,mn,fn),u.alternate===null&&u.return!==null&&u.return.alternate!==null&&0.05<Wt-Gt&&(y9(u.return.alternate,u.return)||Ca(u,Gt,Wt,"Mount"))),So(m),Na(E),fn=M,Sn=D}function S9(i){var o=i.alternate;o!==null&&(i.alternate=null,S9(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&pe(o)),i.stateNode=null,i._debugOwner=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function ks(i,o,u){for(u=u.child;u!==null;)x9(i,o,u),u=u.sibling}function x9(i,o,u){if(xi&&typeof xi.onCommitFiberUnmount==="function")try{xi.onCommitFiberUnmount(Ef,u)}catch(ne){Va||(Va=!0,console.error("React instrumentation encountered an error: %o",ne))}var m=vo(),E=Oa(),M=Da(),D=za();switch(u.tag){case 26:Fn||Ba(u,o),ks(i,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(i=u.stateNode,i.parentNode.removeChild(i));break;case 27:Fn||Ba(u,o);var H=qn,X=oo;Sl(u.type)&&(qn=u.stateNode,oo=!1),ks(i,o,u),be(u,np,u.stateNode),qn=H,oo=X;break;case 5:Fn||Ba(u,o);case 6:if(H=qn,X=oo,qn=null,ks(i,o,u),qn=H,oo=X,qn!==null)if(oo)try{be(u,CW,qn,u.stateNode)}catch(ne){Nr(u,o,ne)}else try{be(u,MW,qn,u.stateNode)}catch(ne){Nr(u,o,ne)}break;case 18:qn!==null&&(oo?(i=qn,E7(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),Sf(i)):E7(qn,u.stateNode));break;case 4:H=qn,X=oo,qn=u.stateNode.containerInfo,oo=!0,ks(i,o,u),qn=H,oo=X;break;case 0:case 11:case 14:case 15:df(Pi,u,o),Fn||yx(u,o,Co),ks(i,o,u);break;case 1:Fn||(Ba(u,o),H=u.stateNode,typeof H.componentWillUnmount==="function"&&h9(u,o,H)),ks(i,o,u);break;case 21:ks(i,o,u);break;case 22:Fn=(H=Fn)||u.memoizedState!==null,ks(i,o,u),Fn=H;break;default:ks(i,o,u)}(u.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(Sn||0.05<mn)&&Ra(u,Gt,Wt,mn,fn),So(m),Na(E),fn=M,Sn=D}function _9(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{be(o,UW,i)}catch(u){Nr(o,o.return,u)}}}function w9(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{be(o,jW,i)}catch(u){Nr(o,o.return,u)}}function nW(i){switch(i.tag){case 31:case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new YO),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new YO),o;default:throw Error("Unexpected Suspense handler tag ("+i.tag+"). This is a bug in React.")}}function jg(i,o){var u=nW(i);o.forEach(function(m){if(!u.has(m)){if(u.add(m),Ya)if(Kf!==null&&Wf!==null)Jh(Wf,Kf);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var E=dW.bind(null,i,m);m.then(E,E)}})}function no(i,o){var u=o.deletions;if(u!==null)for(var m=0;m<u.length;m++){var E=i,M=o,D=u[m],H=vo(),X=M;e:for(;X!==null;){switch(X.tag){case 27:if(Sl(X.type)){qn=X.stateNode,oo=!1;break e}break;case 5:qn=X.stateNode,oo=!1;break e;case 3:case 4:qn=X.stateNode.containerInfo,oo=!0;break e}X=X.return}if(qn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");x9(E,M,D),qn=null,oo=!1,(D.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(D,Gt,Wt,"Unmount"),So(H),E=D,M=E.alternate,M!==null&&(M.return=null),E.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)E9(o,i),o=o.sibling}function E9(i,o){var u=vo(),m=Oa(),E=Da(),M=za(),D=i.alternate,H=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:no(o,i),io(i),H&4&&(df(Pi|Vo,i,i.return),Vh(Pi|Vo,i),yx(i,i.return,Co|Vo));break;case 1:if(no(o,i),io(i),H&512&&(Fn||D===null||Ba(D,D.return)),H&64&&Bs&&(H=i.updateQueue,H!==null&&(D=H.callbacks,D!==null))){var X=H.shared.hiddenCallbacks;H.shared.hiddenCallbacks=X===null?D:X.concat(D)}break;case 26:if(X=ha,no(o,i),io(i),H&512&&(Fn||D===null||Ba(D,D.return)),H&4){var ne=D!==null?D.memoizedState:null;if(H=i.memoizedState,D===null)if(H===null)if(i.stateNode===null){e:{H=i.type,D=i.memoizedProps,X=X.ownerDocument||X;t:switch(H){case"title":if(ne=X.getElementsByTagName("title")[0],!ne||ne[cp]||ne[mi]||ne.namespaceURI===kf||ne.hasAttribute("itemprop"))ne=X.createElement(H),X.head.insertBefore(ne,X.querySelector("head > title"));pi(ne,H,D),ne[mi]=i,ht(ne),H=ne;break e;case"link":var je=z7("link","href",X).get(H+(D.href||""));if(je){for(var He=0;He<je.length;He++)if(ne=je[He],ne.getAttribute("href")===(D.href==null||D.href===""?null:D.href)&&ne.getAttribute("rel")===(D.rel==null?null:D.rel)&&ne.getAttribute("title")===(D.title==null?null:D.title)&&ne.getAttribute("crossorigin")===(D.crossOrigin==null?null:D.crossOrigin)){je.splice(He,1);break t}}ne=X.createElement(H),pi(ne,H,D),X.head.appendChild(ne);break;case"meta":if(je=z7("meta","content",X).get(H+(D.content||""))){for(He=0;He<je.length;He++)if(ne=je[He],se(D.content,"content"),ne.getAttribute("content")===(D.content==null?null:""+D.content)&&ne.getAttribute("name")===(D.name==null?null:D.name)&&ne.getAttribute("property")===(D.property==null?null:D.property)&&ne.getAttribute("http-equiv")===(D.httpEquiv==null?null:D.httpEquiv)&&ne.getAttribute("charset")===(D.charSet==null?null:D.charSet)){je.splice(He,1);break t}}ne=X.createElement(H),pi(ne,H,D),X.head.appendChild(ne);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+H+'". This is a bug in React.')}ne[mi]=i,ht(ne),H=ne}i.stateNode=H}else L7(X,i.type,i.stateNode);else i.stateNode=D7(X,H,i.memoizedProps);else ne!==H?(ne===null?D.stateNode!==null&&(D=D.stateNode,D.parentNode.removeChild(D)):ne.count--,H===null?L7(X,i.type,i.stateNode):D7(X,H,i.memoizedProps)):H===null&&i.stateNode!==null&&Sx(i,i.memoizedProps,D.memoizedProps)}break;case 27:no(o,i),io(i),H&512&&(Fn||D===null||Ba(D,D.return)),D!==null&&H&4&&Sx(i,i.memoizedProps,D.memoizedProps);break;case 5:if(no(o,i),io(i),H&512&&(Fn||D===null||Ba(D,D.return)),i.flags&32){X=i.stateNode;try{be(i,_7,X)}catch(Bt){Nr(i,i.return,Bt)}}H&4&&i.stateNode!=null&&(X=i.memoizedProps,Sx(i,X,D!==null?D.memoizedProps:X)),H&1024&&(r_=!0,i.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(no(o,i),io(i),H&4){if(i.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");H=i.memoizedProps,D=D!==null?D.memoizedProps:H,X=i.stateNode;try{be(i,AW,X,D,H)}catch(Bt){Nr(i,i.return,Bt)}}break;case 3:if(X=ws(),nb=null,ne=ha,ha=Kg(o.containerInfo),no(o,i),ha=ne,io(i),H&4&&D!==null&&D.memoizedState.isDehydrated)try{be(i,BW,o.containerInfo)}catch(Bt){Nr(i,i.return,Bt)}r_&&(r_=!1,T9(i)),o.effectDuration+=hg(X);break;case 4:H=ha,ha=Kg(i.stateNode.containerInfo),no(o,i),io(i),ha=H;break;case 12:H=ws(),no(o,i),io(i),i.stateNode.effectDuration+=Lh(H);break;case 31:no(o,i),io(i),H&4&&(H=i.updateQueue,H!==null&&(i.updateQueue=null,jg(i,H)));break;case 13:no(o,i),io(i),i.child.flags&8192&&i.memoizedState!==null!==(D!==null&&D.memoizedState!==null)&&(H1=ti()),H&4&&(H=i.updateQueue,H!==null&&(i.updateQueue=null,jg(i,H)));break;case 22:X=i.memoizedState!==null;var Re=D!==null&&D.memoizedState!==null,it=Bs,Lt=Fn;if(Bs=it||X,Fn=Lt||Re,no(o,i),Fn=Lt,Bs=it,Re&&!X&&!it&&!Lt&&(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&ng(i,Gt,Wt),io(i),H&8192)e:for(o=i.stateNode,o._visibility=X?o._visibility&~vp:o._visibility|vp,!X||D===null||Re||Bs||Fn||(Hu(i),(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(i,Gt,Wt,"Disconnect")),D=null,o=i;;){if(o.tag===5||o.tag===26){if(D===null){Re=D=o;try{ne=Re.stateNode,X?be(Re,IW,ne):be(Re,DW,Re.stateNode,Re.memoizedProps)}catch(Bt){Nr(Re,Re.return,Bt)}}}else if(o.tag===6){if(D===null){Re=o;try{je=Re.stateNode,X?be(Re,OW,je):be(Re,zW,je,Re.memoizedProps)}catch(Bt){Nr(Re,Re.return,Bt)}}}else if(o.tag===18){if(D===null){Re=o;try{He=Re.stateNode,X?be(Re,RW,He):be(Re,NW,Re.stateNode)}catch(Bt){Nr(Re,Re.return,Bt)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;D===o&&(D=null),o=o.return}D===o&&(D=null),o.sibling.return=o.return,o=o.sibling}H&4&&(H=i.updateQueue,H!==null&&(D=H.retryQueue,D!==null&&(H.retryQueue=null,jg(i,D))));break;case 19:no(o,i),io(i),H&4&&(H=i.updateQueue,H!==null&&(i.updateQueue=null,jg(i,H)));break;case 30:break;case 21:break;default:no(o,i),io(i)}(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&((Sn||0.05<mn)&&Ra(i,Gt,Wt,mn,fn),i.alternate===null&&i.return!==null&&i.return.alternate!==null&&0.05<Wt-Gt&&(y9(i.return.alternate,i.return)||Ca(i,Gt,Wt,"Mount"))),So(u),Na(m),fn=E,Sn=M}function io(i){var o=i.flags;if(o&2){try{be(i,tW,i)}catch(u){Nr(i,i.return,u)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function T9(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;T9(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function Ua(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)v9(i,o.alternate,o),o=o.sibling}function k9(i){var o=vo(),u=Oa(),m=Da(),E=za();switch(i.tag){case 0:case 11:case 14:case 15:yx(i,i.return,Co),Hu(i);break;case 1:Ba(i,i.return);var M=i.stateNode;typeof M.componentWillUnmount==="function"&&h9(i,i.return,M),Hu(i);break;case 27:be(i,np,i.stateNode);case 26:case 5:Ba(i,i.return),Hu(i);break;case 22:i.memoizedState===null&&Hu(i);break;case 30:Hu(i);break;default:Hu(i)}(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(Sn||0.05<mn)&&Ra(i,Gt,Wt,mn,fn),So(o),Na(u),fn=m,Sn=E}function Hu(i){for(i=i.child;i!==null;)k9(i),i=i.sibling}function A9(i,o,u,m){var E=vo(),M=Oa(),D=Da(),H=za(),X=u.flags;switch(u.tag){case 0:case 11:case 15:ja(i,u,m),c9(u,Co);break;case 1:if(ja(i,u,m),o=u.stateNode,typeof o.componentDidMount==="function"&&be(u,Z6,u,o),o=u.updateQueue,o!==null){i=u.stateNode;try{be(u,BK,o,i)}catch(ne){Nr(u,u.return,ne)}}m&&X&64&&d9(u),Yh(u,u.return);break;case 27:b9(u);case 26:case 5:ja(i,u,m),m&&o===null&&X&4&&m9(u),Yh(u,u.return);break;case 12:if(m&&X&4){X=ws(),ja(i,u,m),m=u.stateNode,m.effectDuration+=Lh(X);try{be(u,p9,u,o,Rl,m.effectDuration)}catch(ne){Nr(u,u.return,ne)}}else ja(i,u,m);break;case 31:ja(i,u,m),m&&X&4&&_9(i,u);break;case 13:ja(i,u,m),m&&X&4&&w9(i,u);break;case 22:u.memoizedState===null&&ja(i,u,m),Yh(u,u.return);break;case 30:break;default:ja(i,u,m)}(u.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(Sn||0.05<mn)&&Ra(u,Gt,Wt,mn,fn),So(E),Na(M),fn=D,Sn=H}function ja(i,o,u){u=u&&(o.subtreeFlags&8772)!==0;for(o=o.child;o!==null;)A9(i,o.alternate,o,u),o=o.sibling}function wx(i,o){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==u&&(i!=null&&Pu(i),u!=null&&zh(u))}function Ex(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(Pu(o),i!=null&&zh(i))}function sa(i,o,u,m,E){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var M=o.sibling;M9(i,o,u,m,M!==null?M.actualStartTime:E),o=M}}function M9(i,o,u,m,E){var M=vo(),D=Oa(),H=Da(),X=za(),ne=kl,je=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&sr)!==Xt&&0<o.actualStartTime&&(o.flags&1)!==0&&ig(o,o.actualStartTime,E,Wn,u),sa(i,o,u,m,E),je&2048&&f9(o,$i|Vo);break;case 1:(o.mode&sr)!==Xt&&0<o.actualStartTime&&((o.flags&128)!==0?sS(o,o.actualStartTime,E,[]):(o.flags&1)!==0&&ig(o,o.actualStartTime,E,Wn,u)),sa(i,o,u,m,E);break;case 3:var He=ws(),Re=Wn;Wn=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,sa(i,o,u,m,E),Wn=Re,je&2048&&(u=null,o.alternate!==null&&(u=o.alternate.memoizedState.cache),m=o.memoizedState.cache,m!==u&&(Pu(m),u!=null&&zh(u))),i.passiveEffectDuration+=hg(He);break;case 12:if(je&2048){je=ws(),sa(i,o,u,m,E),i=o.stateNode,i.passiveEffectDuration+=Lh(je);try{be(o,eW,o,o.alternate,Rl,i.passiveEffectDuration)}catch(it){Nr(o,o.return,it)}}else sa(i,o,u,m,E);break;case 31:je=Wn,He=o.alternate!==null?o.alternate.memoizedState:null,Re=o.memoizedState,He!==null&&Re===null?(Re=o.deletions,Re!==null&&0<Re.length&&Re[0].tag===18?(Wn=!1,He=He.hydrationErrors,He!==null&&sS(o,o.actualStartTime,E,He)):Wn=!0):Wn=!1,sa(i,o,u,m,E),Wn=je;break;case 13:je=Wn,He=o.alternate!==null?o.alternate.memoizedState:null,Re=o.memoizedState,He===null||He.dehydrated===null||Re!==null&&Re.dehydrated!==null?Wn=!1:(Re=o.deletions,Re!==null&&0<Re.length&&Re[0].tag===18?(Wn=!1,He=He.hydrationErrors,He!==null&&sS(o,o.actualStartTime,E,He)):Wn=!0),sa(i,o,u,m,E),Wn=je;break;case 23:break;case 22:Re=o.stateNode,He=o.alternate,o.memoizedState!==null?Re._visibility&Cs?sa(i,o,u,m,E):Kh(i,o,u,m,E):Re._visibility&Cs?sa(i,o,u,m,E):(Re._visibility|=Cs,hf(i,o,u,m,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),E),(o.mode&sr)===Xt||Wn||(i=o.actualStartTime,0<=i&&0.05<E-i&&ng(o,i,E),0<=Gt&&0<=Wt&&0.05<Wt-Gt&&ng(o,Gt,Wt))),je&2048&&wx(He,o);break;case 24:sa(i,o,u,m,E),je&2048&&Ex(o.alternate,o);break;default:sa(i,o,u,m,E)}if((o.mode&sr)!==Xt){if(i=!Wn&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)u=o.actualStartTime,0<=u&&0.05<E-u&&Ca(o,u,E,"Mount");0<=Gt&&0<=Wt&&((Sn||0.05<mn)&&Ra(o,Gt,Wt,mn,fn),i&&0.05<Wt-Gt&&Ca(o,Gt,Wt,"Mount"))}So(M),Na(D),fn=H,Sn=X,kl=ne}function hf(i,o,u,m,E,M){E=E&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child));for(o=o.child;o!==null;){var D=o.sibling;C9(i,o,u,m,E,D!==null?D.actualStartTime:M),o=D}}function C9(i,o,u,m,E,M){var D=vo(),H=Oa(),X=Da(),ne=za(),je=kl;E&&(o.mode&sr)!==Xt&&0<o.actualStartTime&&(o.flags&1)!==0&&ig(o,o.actualStartTime,M,Wn,u);var He=o.flags;switch(o.tag){case 0:case 11:case 15:hf(i,o,u,m,E,M),f9(o,$i);break;case 23:break;case 22:var Re=o.stateNode;o.memoizedState!==null?Re._visibility&Cs?hf(i,o,u,m,E,M):Kh(i,o,u,m,M):(Re._visibility|=Cs,hf(i,o,u,m,E,M)),E&&He&2048&&wx(o.alternate,o);break;case 24:hf(i,o,u,m,E,M),E&&He&2048&&Ex(o.alternate,o);break;default:hf(i,o,u,m,E,M)}(o.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(Sn||0.05<mn)&&Ra(o,Gt,Wt,mn,fn),So(D),Na(H),fn=X,Sn=ne,kl=je}function Kh(i,o,u,m,E){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var M=o.child;M!==null;){o=M.sibling;var D=i,H=u,X=m,ne=o!==null?o.actualStartTime:E,je=kl;(M.mode&sr)!==Xt&&0<M.actualStartTime&&(M.flags&1)!==0&&ig(M,M.actualStartTime,ne,Wn,H);var He=M.flags;switch(M.tag){case 22:Kh(D,M,H,X,ne),He&2048&&wx(M.alternate,M);break;case 24:Kh(D,M,H,X,ne),He&2048&&Ex(M.alternate,M);break;default:Kh(D,M,H,X,ne)}kl=je,M=o}}function pf(i,o,u){if(i.subtreeFlags&Bp)for(i=i.child;i!==null;)R9(i,o,u),i=i.sibling}function R9(i,o,u){switch(i.tag){case 26:pf(i,o,u),i.flags&Bp&&i.memoizedState!==null&&qW(u,ha,i.memoizedState,i.memoizedProps);break;case 5:pf(i,o,u);break;case 3:case 4:var m=ha;ha=Kg(i.stateNode.containerInfo),pf(i,o,u),ha=m;break;case 22:i.memoizedState===null&&(m=i.alternate,m!==null&&m.memoizedState!==null?(m=Bp,Bp=16777216,pf(i,o,u),Bp=m):pf(i,o,u));break;default:pf(i,o,u)}}function I9(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Wh(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var m=o[u],E=vo();ni=m,D9(m,i),(m.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(m,Gt,Wt,"Unmount"),So(E)}I9(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)O9(i),i=i.sibling}function O9(i){var o=vo(),u=Oa(),m=Da(),E=za();switch(i.tag){case 0:case 11:case 15:Wh(i),i.flags&2048&&vx(i,i.return,$i|Vo);break;case 3:var M=ws();Wh(i),i.stateNode.passiveEffectDuration+=hg(M);break;case 12:M=ws(),Wh(i),i.stateNode.passiveEffectDuration+=Lh(M);break;case 22:M=i.stateNode,i.memoizedState!==null&&M._visibility&Cs&&(i.return===null||i.return.tag!==13)?(M._visibility&=~Cs,Hg(i),(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(i,Gt,Wt,"Disconnect")):Wh(i);break;default:Wh(i)}(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(Sn||0.05<mn)&&Ra(i,Gt,Wt,mn,fn),So(o),Na(u),Sn=E,fn=m}function Hg(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var m=o[u],E=vo();ni=m,D9(m,i),(m.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&0.05<Wt-Gt&&Ca(m,Gt,Wt,"Unmount"),So(E)}I9(i)}for(i=i.child;i!==null;)N9(i),i=i.sibling}function N9(i){var o=vo(),u=Oa(),m=Da(),E=za();switch(i.tag){case 0:case 11:case 15:vx(i,i.return,$i),Hg(i);break;case 22:var M=i.stateNode;M._visibility&Cs&&(M._visibility&=~Cs,Hg(i));break;default:Hg(i)}(i.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(Sn||0.05<mn)&&Ra(i,Gt,Wt,mn,fn),So(o),Na(u),Sn=E,fn=m}function D9(i,o){for(;ni!==null;){var u=ni,m=u,E=o,M=vo(),D=Oa(),H=Da(),X=za();switch(m.tag){case 0:case 11:case 15:vx(m,E,$i);break;case 23:case 22:m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool,E!=null&&Pu(E));break;case 24:zh(m.memoizedState.cache)}if((m.mode&sr)!==Xt&&0<=Gt&&0<=Wt&&(Sn||0.05<mn)&&Ra(m,Gt,Wt,mn,fn),So(M),Na(D),Sn=X,fn=H,m=u.child,m!==null)m.return=u,ni=m;else e:for(u=i;ni!==null;){if(m=ni,M=m.sibling,D=m.return,S9(m),m===u){ni=null;break e}if(M!==null){M.return=D,ni=M;break e}ni=D}}}function iW(){TJ.forEach(function(i){return i()})}function z9(){var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return i||ut.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),i}function _o(i){if((Mr&Xn)!==ii&&ur!==0)return ur&-ur;var o=ut.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(i),Ox()):te()}function L9(){if(so===0)if((ur&536870912)===0||vr){var i=s1;s1<<=1,(s1&3932160)===0&&(s1=262144),so=i}else so=536870912;return i=Mo.current,i!==null&&(i.flags|=32),so}function vn(i,o,u){if(Qf&&console.error("useInsertionEffect must not schedule updates."),h_&&(G1=!0),i===qr&&($r===nc||$r===ic)||i.cancelPendingCommit!==null)gf(i,0),yl(i,ur,so,!1);if(Fe(i,u),(Mr&Xn)!==ii&&i===qr){if(Ga)switch(o.tag){case 0:case 11:case 15:i=fr&&Y(fr)||"Unknown",uN.has(i)||(uN.add(i),o=Y(o)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",o,i,i));break;case 1:lN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),lN=!0)}}else Ya&&K(i,o,u),pW(o),i===qr&&((Mr&Xn)===ii&&(Bl|=u),gn===Ll&&yl(i,ur,so,!1)),Ha(i)}function P9(i,o,u){if((Mr&(Xn|Ro))!==ii)throw Error("Should not already be working.");if(ur!==0&&fr!==null){var m=fr,E=ti();switch(tO){case Hp:case nc:var M=Tp;rn&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Suspended",M,E,Bo,void 0,"primary-light")):console.timeStamp("Suspended",M,E,Bo,void 0,"primary-light"));break;case ic:M=Tp,rn&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Action",M,E,Bo,void 0,"primary-light")):console.timeStamp("Action",M,E,Bo,void 0,"primary-light"));break;default:rn&&(m=E-Tp,3>m||console.timeStamp("Blocked",Tp,E,Bo,void 0,5>m?"primary-light":10>m?"primary":100>m?"primary-dark":"error"))}}M=(u=!u&&(o&127)===0&&(o&i.expiredLanes)===0||De(i,o))?aW(i,o):kx(i,o,!0);var D=u;do{if(M===Us){Xf&&!u&&yl(i,o,0,!1),o=$r,Tp=jn(),tO=o;break}else{if(m=ti(),E=i.current.alternate,D&&!oW(E)){bo(o),E=ri,M=m,!rn||M<=E||(Rn?Rn.run(console.timeStamp.bind(console,"Teared Render",E,M,mr,pr,"error")):console.timeStamp("Teared Render",E,M,mr,pr,"error")),Zu(o,m),M=kx(i,o,!1),D=!1;continue}if(M===rc){if(D=o,i.errorRecoveryDisabledLanes&D)var H=0;else H=i.pendingLanes&-536870913,H=H!==0?H:H&536870912?536870912:0;if(H!==0){bo(o),lS(ri,m,o,Rn),Zu(o,m),o=H;e:{m=i,M=D,D=Fp;var X=m.current.memoizedState.isDehydrated;if(X&&(gf(m,H).flags|=256),H=kx(m,H,!1),H!==rc){if(o_&&!X){m.errorRecoveryDisabledLanes|=M,Bl|=M,M=Ll;break e}m=Bi,Bi=D,m!==null&&(Bi===null?Bi=m:Bi.push.apply(Bi,m))}M=H}if(D=!1,M!==rc)continue;else m=ti()}}if(M===jp){bo(o),lS(ri,m,o,Rn),Zu(o,m),gf(i,0),yl(i,o,0,!0);break}e:{switch(u=i,M){case Us:case jp:throw Error("Root did not complete. This is a bug in React.");case Ll:if((o&4194048)!==o)break;case $1:bo(o),PC(ri,m,o,Rn),Zu(o,m),E=o,(E&127)!==0?w1=m:(E&4194048)!==0&&(E1=m),yl(u,o,so,!Pl);break e;case rc:Bi=null;break;case P1:case KO:break;default:throw Error("Unknown root exit status.")}if(ut.actQueue!==null)Ax(u,E,o,Bi,qp,j1,so,Bl,oc,M,null,null,ri,m);else{if((o&62914560)===o&&(D=H1+JO-ti(),10<D)){if(yl(u,o,so,!Pl),gt(u,0,!0)!==0)break e;pa=o,u.timeoutHandle=bN($9.bind(null,u,E,Bi,qp,j1,o,so,Bl,oc,Pl,M,"Throttled",ri,m),D);break e}$9(u,E,Bi,qp,j1,o,so,Bl,oc,Pl,M,null,ri,m)}}}break}while(1);Ha(i)}function $9(i,o,u,m,E,M,D,H,X,ne,je,He,Re,it){i.timeoutHandle=cc;var Lt=o.subtreeFlags,Bt=null;if(Lt&8192||(Lt&16785408)===16785408){if(Bt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vs},R9(o,M,Bt),Lt=(M&62914560)===M?H1-ti():(M&4194048)===M?XO-ti():0,Lt=GW(Bt,Lt),Lt!==null){pa=M,i.cancelPendingCommit=Lt(Ax.bind(null,i,o,M,u,m,E,D,H,X,je,Bt,Bt.waitingForViewTransition?"Waiting for the previous Animation":0<Bt.count?0<Bt.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Bt.imgCount===1?"Suspended on an Image":0<Bt.imgCount?"Suspended on Images":null,Re,it)),yl(i,M,D,!ne);return}}Ax(i,o,M,u,m,E,D,H,X,je,Bt,He,Re,it)}function oW(i){for(var o=i;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var E=u[m],M=E.getSnapshot;E=E.value;try{if(!zi(M(),E))return!1}catch(D){return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function yl(i,o,u,m){o&=~a_,o&=~Bl,i.suspendedLanes|=o,i.pingedLanes&=~o,m&&(i.warmLanes|=o),m=i.expirationTimes;for(var E=o;0<E;){var M=31-Oi(E),D=1<<M;m[M]=-1,E&=~D}u!==0&&ae(i,u,o)}function mf(){return(Mr&(Xn|Ro))===ii?(Qh(0,!1),!1):!0}function Tx(){if(fr!==null){if($r===ao)var i=fr.return;else i=fr,cg(),LS(i),Hf=null,Dp=0,i=fr;for(;i!==null;)u9(i.alternate,i),i=i.return;fr=null}}function Zu(i,o){(i&127)!==0&&(Il=o),(i&4194048)!==0&&(Qa=o),(i&62914560)!==0&&(QI=o),(i&2080374784)!==0&&(eO=o)}function gf(i,o){rn&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",pr,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",pr,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",pr,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",pr,"primary-light"));var u=ri;if(ri=jn(),ur!==0&&0<u){if(bo(ur),gn===P1||gn===Ll)PC(u,ri,o,Rn);else{var m=ri,E=Rn;if(rn&&!(m<=u)){var M=(o&738197653)===o?"tertiary-dark":"primary-dark",D=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";E?E.run(console.timeStamp.bind(console,D,u,m,mr,pr,M)):console.timeStamp(D,u,m,mr,pr,M)}}Zu(ur,ri)}if(u=Rn,Rn=null,(o&127)!==0){Rn=_p,E=0<=Ja&&Ja<Il?Il:Ja,m=0<=Yu&&Yu<Il?Il:Yu,M=0<=m?m:0<=E?E:ri,0<=w1?(bo(2),$C(w1,M,o,u)):(T1&127)!==0&&(bo(2),Nh(Il,M,zs)),u=E;var H=m,X=wp,ne=0<Bf,je=Ol===xp,He=Ol===_1;if(E=ri,m=_p,M=$6,D=B6,rn){if(mr="Blocking",0<u?u>E&&(u=E):u=E,0<H?H>u&&(H=u):H=u,X!==null&&u>H){var Re=ne?"secondary-light":"warning";m?m.run(console.timeStamp.bind(console,ne?"Consecutive":"Event: "+X,H,u,mr,pr,Re)):console.timeStamp(ne?"Consecutive":"Event: "+X,H,u,mr,pr,Re)}E>u&&(H=je?"error":(o&738197653)===o?"tertiary-light":"primary-light",je=He?"Promise Resolved":je?"Cascading Update":5<E-u?"Update Blocked":"Update",He=[],D!=null&&He.push(["Component name",D]),M!=null&&He.push(["Method name",M]),u={start:u,end:E,detail:{devtools:{properties:He,track:mr,trackGroup:pr,color:H}}},m?m.run(performance.measure.bind(performance,je,u)):performance.measure(je,u))}Ja=-1.1,Ol=0,B6=$6=null,w1=-1.1,Bf=Yu,Yu=-1.1,Il=jn()}if((o&4194048)!==0&&(Rn=Ep,E=0<=Ds&&Ds<Qa?Qa:Ds,u=0<=qo&&qo<Qa?Qa:qo,m=0<=Nl&&Nl<Qa?Qa:Nl,M=0<=m?m:0<=u?u:ri,0<=E1?(bo(256),$C(E1,M,o,Rn)):(T1&4194048)!==0&&(bo(256),Nh(Qa,M,zs)),He=m,H=Ku,X=0<Dl,ne=U6===_1,M=ri,m=Ep,D=XI,je=JI,rn&&(mr="Transition",0<u?u>M&&(u=M):u=M,0<E?E>u&&(E=u):E=u,0<He?He>E&&(He=E):He=E,E>He&&H!==null&&(Re=X?"secondary-light":"warning",m?m.run(console.timeStamp.bind(console,X?"Consecutive":"Event: "+H,He,E,mr,pr,Re)):console.timeStamp(X?"Consecutive":"Event: "+H,He,E,mr,pr,Re)),u>E&&(m?m.run(console.timeStamp.bind(console,"Action",E,u,mr,pr,"primary-dark")):console.timeStamp("Action",E,u,mr,pr,"primary-dark")),M>u&&(E=ne?"Promise Resolved":5<M-u?"Update Blocked":"Update",He=[],je!=null&&He.push(["Component name",je]),D!=null&&He.push(["Method name",D]),u={start:u,end:M,detail:{devtools:{properties:He,track:mr,trackGroup:pr,color:"primary-light"}}},m?m.run(performance.measure.bind(performance,E,u)):performance.measure(E,u))),qo=Ds=-1.1,U6=0,E1=-1.1,Dl=Nl,Nl=-1.1,Qa=jn()),(o&62914560)!==0&&(T1&62914560)!==0&&(bo(4194304),Nh(QI,ri,zs)),(o&2080374784)!==0&&(T1&2080374784)!==0&&(bo(268435456),Nh(eO,ri,zs)),u=i.timeoutHandle,u!==cc&&(i.timeoutHandle=cc,$J(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),pa=0,Tx(),qr=i,fr=u=Ss(i.current,null),ur=o,$r=ao,Io=null,Pl=!1,Xf=De(i,o),o_=!1,gn=Us,oc=so=a_=Bl=$l=0,Bi=Fp=null,j1=!1,(o&8)!==0&&(o|=o&32),m=i.entangledLanes,m!==0)for(i=i.entanglements,m&=o;0<m;)E=31-Oi(m),M=1<<E,o|=i[E],m&=~M;return ts=o,og(),i=qI(),1000<i-FI&&(ut.recentlyCreatedOwnerStacks=0,FI=i),fa.discardPendingWarnings(),u}function B9(i,o){Qt=null,ut.H=$p,ut.getCurrentStack=null,Ga=!1,To=null,o===jf||o===C1?(o=aR(),$r=Hp):o===F6?(o=aR(),$r=WO):$r=o===e_?i_:o!==null&&typeof o==="object"&&typeof o.then==="function"?Zp:B1,Io=o;var u=fr;u===null?(gn=jp,zg(i,yo(o,i.current))):u.mode&sr&&wS(u)}function U9(){var i=Mo.current;return i===null?!0:(ur&4194048)===ur?Go===null?!0:!1:(ur&62914560)===ur||(ur&536870912)!==0?i===Go:!1}function j9(){var i=ut.H;return ut.H=$p,i===null?$p:i}function H9(){var i=ut.A;return ut.A=EJ,i}function Zg(i){Rn===null&&(Rn=i._debugTask==null?null:i._debugTask)}function Fg(){gn=Ll,Pl||(ur&4194048)!==ur&&Mo.current!==null||(Xf=!0),($l&134217727)===0&&(Bl&134217727)===0||qr===null||yl(qr,ur,so,!1)}function kx(i,o,u){var m=Mr;Mr|=Xn;var E=j9(),M=H9();if(qr!==i||ur!==o){if(Ya){var D=i.memoizedUpdaters;0<D.size&&(Jh(i,ur),D.clear()),Ge(i,o)}qp=null,gf(i,o)}o=!1,D=gn;e:do try{if($r!==ao&&fr!==null){var H=fr,X=Io;switch($r){case i_:Tx(),D=$1;break e;case Hp:case nc:case ic:case Zp:Mo.current===null&&(o=!0);var ne=$r;if($r=ao,Io=null,bf(i,H,X,ne),u&&Xf){D=Us;break e}break;default:ne=$r,$r=ao,Io=null,bf(i,H,X,ne)}}Z9(),D=gn;break}catch(je){B9(i,je)}while(1);return o&&i.shellSuspendCounter++,cg(),Mr=m,ut.H=E,ut.A=M,fr===null&&(qr=null,ur=0,og()),D}function Z9(){for(;fr!==null;)F9(fr)}function aW(i,o){var u=Mr;Mr|=Xn;var m=j9(),E=H9();if(qr!==i||ur!==o){if(Ya){var M=i.memoizedUpdaters;0<M.size&&(Jh(i,ur),M.clear()),Ge(i,o)}qp=null,Z1=ti()+QO,gf(i,o)}else Xf=De(i,o);e:do try{if($r!==ao&&fr!==null)t:switch(o=fr,M=Io,$r){case B1:$r=ao,Io=null,bf(i,o,M,B1);break;case nc:case ic:if(iR(M)){$r=ao,Io=null,q9(o);break}o=function(){$r!==nc&&$r!==ic||qr!==i||($r=U1),Ha(i)},M.then(o,o);break e;case Hp:$r=U1;break e;case WO:$r=n_;break e;case U1:iR(M)?($r=ao,Io=null,q9(o)):($r=ao,Io=null,bf(i,o,M,U1));break;case n_:var D=null;switch(fr.tag){case 26:D=fr.memoizedState;case 5:case 27:var H=fr;if(D?P7(D):H.stateNode.complete){$r=ao,Io=null;var X=H.sibling;if(X!==null)fr=X;else{var ne=H.return;ne!==null?(fr=ne,qg(ne)):fr=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}$r=ao,Io=null,bf(i,o,M,n_);break;case Zp:$r=ao,Io=null,bf(i,o,M,Zp);break;case i_:Tx(),gn=$1;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}ut.actQueue!==null?Z9():sW();break}catch(je){B9(i,je)}while(1);if(cg(),ut.H=m,ut.A=E,Mr=u,fr!==null)return Us;return qr=null,ur=0,og(),gn}function sW(){for(;fr!==null&&!oX();)F9(fr)}function F9(i){var o=i.alternate;(i.mode&sr)!==Xt?(_S(i),o=be(i,gx,o,i,ts),wS(i)):o=be(i,gx,o,i,ts),i.memoizedProps=i.pendingProps,o===null?qg(i):fr=o}function q9(i){var o=be(i,lW,i);i.memoizedProps=i.pendingProps,o===null?qg(i):fr=o}function lW(i){var o=i.alternate,u=(i.mode&sr)!==Xt;switch(u&&_S(i),i.tag){case 15:case 0:o=r9(o,i,i.pendingProps,i.type,void 0,ur);break;case 11:o=r9(o,i,i.pendingProps,i.type.render,i.ref,ur);break;case 5:LS(i);default:u9(o,i),i=fr=FC(i,ts),o=gx(o,i,ts)}return u&&wS(i),o}function bf(i,o,u,m){cg(),LS(o),Hf=null,Dp=0;var E=o.return;try{if(GK(i,E,o,u,ur)){gn=jp,zg(i,yo(u,i.current)),fr=null;return}}catch(M){if(E!==null)throw fr=E,M;gn=jp,zg(i,yo(u,i.current)),fr=null;return}if(o.flags&32768){if(vr||m===B1)i=!0;else if(Xf||(ur&536870912)!==0)i=!1;else if(Pl=i=!0,m===nc||m===ic||m===Hp||m===Zp)m=Mo.current,m!==null&&m.tag===13&&(m.flags|=16384);G9(o,i)}else qg(o)}function qg(i){var o=i;do{if((o.flags&32768)!==0){G9(o,Pl);return}var u=o.alternate;if(i=o.return,_S(o),u=be(o,KK,u,o,ts),(o.mode&sr)!==Xt&&QC(o),u!==null){fr=u;return}if(o=o.sibling,o!==null){fr=o;return}fr=o=i}while(o!==null);gn===Us&&(gn=KO)}function G9(i,o){do{var u=WK(i.alternate,i);if(u!==null){u.flags&=32767,fr=u;return}if((i.mode&sr)!==Xt){QC(i),u=i.actualDuration;for(var m=i.child;m!==null;)u+=m.actualDuration,m=m.sibling;i.actualDuration=u}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(i=i.sibling,i!==null)){fr=i;return}fr=i=u}while(i!==null);gn=$1,fr=null}function Ax(i,o,u,m,E,M,D,H,X,ne,je,He,Re,it){i.cancelPendingCommit=null;do Xh();while(Gn!==jl);if(fa.flushLegacyContextWarning(),fa.flushPendingUnsafeLifecycleWarnings(),(Mr&(Xn|Ro))!==ii)throw Error("Should not already be working.");if(bo(u),ne===rc?lS(Re,it,u,Rn):m!==null?NK(Re,it,u,m,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,Rn):OK(Re,it,u,Rn),o!==null){if(u===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===i.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(M=o.lanes|o.childLanes,M|=N6,L(i,u,M,D,H,X),i===qr&&(fr=qr=null,ur=0),Jf=o,Hl=i,pa=u,u_=M,f_=E,oN=m,c_=it,aN=He,ma=F1,sN=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,hW(wf,function(){return Xp=window.event,ma===F1&&(ma=l_),X9(),null})):(i.callbackNode=null,i.callbackPriority=0),Ns=null,Rl=jn(),He!==null&&DK(it,Rl,He,Rn),m=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||m){m=ut.T,ut.T=null,E=Dr.p,Dr.p=ko,D=Mr,Mr|=Ro;try{rW(i,o,u)}finally{Mr=D,Dr.p=E,ut.T=m}}Gn=tN,V9(),Y9(),K9()}}function V9(){if(Gn===tN){Gn=jl;var i=Hl,o=Jf,u=pa,m=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||m){m=ut.T,ut.T=null;var E=Dr.p;Dr.p=ko;var M=Mr;Mr|=Ro;try{Kf=u,Wf=i,pg(),E9(o,i),Wf=Kf=null,u=__;var D=DC(i.containerInfo),H=u.focusedElem,X=u.selectionRange;if(D!==H&&H&&H.ownerDocument&&NC(H.ownerDocument.documentElement,H)){if(X!==null&&oS(H)){var{start:ne,end:je}=X;if(je===void 0&&(je=ne),"selectionStart"in H)H.selectionStart=ne,H.selectionEnd=Math.min(je,H.value.length);else{var He=H.ownerDocument||document,Re=He&&He.defaultView||window;if(Re.getSelection){var it=Re.getSelection(),Lt=H.textContent.length,Bt=Math.min(X.start,Lt),Xr=X.end===void 0?Bt:Math.min(X.end,Lt);!it.extend&&Bt>Xr&&(D=Xr,Xr=Bt,Bt=D);var wr=OC(H,Bt),Ce=OC(H,Xr);if(wr&&Ce&&(it.rangeCount!==1||it.anchorNode!==wr.node||it.anchorOffset!==wr.offset||it.focusNode!==Ce.node||it.focusOffset!==Ce.offset)){var ze=He.createRange();ze.setStart(wr.node,wr.offset),it.removeAllRanges(),Bt>Xr?(it.addRange(ze),it.extend(Ce.node,Ce.offset)):(ze.setEnd(Ce.node,Ce.offset),it.addRange(ze))}}}}He=[];for(it=H;it=it.parentNode;)it.nodeType===1&&He.push({element:it,left:it.scrollLeft,top:it.scrollTop});typeof H.focus==="function"&&H.focus();for(H=0;H<He.length;H++){var Ue=He[H];Ue.element.scrollLeft=Ue.left,Ue.element.scrollTop=Ue.top}}ab=!!x_,__=x_=null}finally{Mr=M,Dr.p=E,ut.T=m}}i.current=o,Gn=rN}}function Y9(){if(Gn===rN){Gn=jl;var i=sN;if(i!==null){Rl=jn();var o=Os,u=Rl;!rn||u<=o||(zs?zs.run(console.timeStamp.bind(console,i,o,u,mr,pr,"secondary-light")):console.timeStamp(i,o,u,mr,pr,"secondary-light"))}i=Hl,o=Jf,u=pa;var m=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||m){m=ut.T,ut.T=null;var E=Dr.p;Dr.p=ko;var M=Mr;Mr|=Ro;try{Kf=u,Wf=i,pg(),v9(i,o.alternate,o),Wf=Kf=null}finally{Mr=M,Dr.p=E,ut.T=m}}i=c_,o=aN,Os=jn(),i=o===null?i:Rl,o=Os,u=ma===s_,m=Rn,Ns!==null?BC(i,o,Ns,!1,m):!rn||o<=i||(m?m.run(console.timeStamp.bind(console,u?"Commit Interrupted View Transition":"Commit",i,o,mr,pr,u?"error":"secondary-dark")):console.timeStamp(u?"Commit Interrupted View Transition":"Commit",i,o,mr,pr,u?"error":"secondary-dark")),Gn=nN}}function K9(){if(Gn===iN||Gn===nN){if(Gn===iN){var i=Os;Os=jn();var o=Os,u=ma===s_;!rn||o<=i||(zs?zs.run(console.timeStamp.bind(console,u?"Interrupted View Transition":"Starting Animation",i,o,mr,pr,u?"error":"secondary-light")):console.timeStamp(u?"Interrupted View Transition":"Starting Animation",i,o,mr,pr,u?" error":"secondary-light")),ma!==s_&&(ma=eN)}Gn=jl,aX(),i=Hl;var m=Jf;o=pa,u=oN;var E=m.actualDuration!==0||(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0;E?Gn=q1:(Gn=jl,Jf=Hl=null,W9(i,i.pendingLanes),ac=0,Vp=null);var M=i.pendingLanes;if(M===0&&(Ul=null),E||t7(i),M=F(o),m=m.stateNode,xi&&typeof xi.onCommitFiberRoot==="function")try{var D=(m.current.flags&128)===128;switch(M){case ko:var H=f6;break;case ua:H=d6;break;case Ka:H=wf;break;case u1:H=h6;break;default:H=wf}xi.onCommitFiberRoot(Ef,m,H,D)}catch(He){Va||(Va=!0,console.error("React instrumentation encountered an error: %o",He))}if(Ya&&i.memoizedUpdaters.clear(),iW(),u!==null){D=ut.T,H=Dr.p,Dr.p=ko,ut.T=null;try{var X=i.onRecoverableError;for(m=0;m<u.length;m++){var ne=u[m],je=uW(ne.stack);be(ne.source,X,ne.value,je)}}finally{ut.T=D,Dr.p=H}}(pa&3)!==0&&Xh(),Ha(i),M=i.pendingLanes,(o&261930)!==0&&(M&42)!==0?(A1=!0,i===d_?Gp++:(Gp=0,d_=i)):Gp=0,E||Zu(o,Os),Qh(0,!1)}}function uW(i){return i={componentStack:i},Object.defineProperty(i,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),i}function W9(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,zh(o)))}function Xh(){return V9(),Y9(),K9(),X9()}function X9(){if(Gn!==q1)return!1;var i=Hl,o=u_;u_=0;var u=F(pa),m=Ka===0||Ka>u?Ka:u;u=ut.T;var E=Dr.p;try{Dr.p=m,ut.T=null;var M=f_;f_=null,m=Hl;var D=pa;if(Gn=jl,Jf=Hl=null,pa=0,(Mr&(Xn|Ro))!==ii)throw Error("Cannot flush passive effects while already rendering.");bo(D),h_=!0,G1=!1;var H=0;if(Ns=null,H=ti(),ma===eN)Nh(Os,H,zs);else{var X=Os,ne=H,je=ma===l_;!rn||ne<=X||(Rn?Rn.run(console.timeStamp.bind(console,je?"Waiting for Paint":"Waiting",X,ne,mr,pr,"secondary-light")):console.timeStamp(je?"Waiting for Paint":"Waiting",X,ne,mr,pr,"secondary-light"))}X=Mr,Mr|=Ro;var He=m.current;pg(),O9(He);var Re=m.current;He=c_,pg(),M9(m,Re,D,M,He),t7(m),Mr=X;var it=ti();if(Re=H,He=Rn,Ns!==null?BC(Re,it,Ns,!0,He):!rn||it<=Re||(He?He.run(console.timeStamp.bind(console,"Remaining Effects",Re,it,mr,pr,"secondary-dark")):console.timeStamp("Remaining Effects",Re,it,mr,pr,"secondary-dark")),Zu(D,it),Qh(0,!1),G1?m===Vp?ac++:(ac=0,Vp=m):ac=0,G1=h_=!1,xi&&typeof xi.onPostCommitFiberRoot==="function")try{xi.onPostCommitFiberRoot(Ef,m)}catch(Bt){Va||(Va=!0,console.error("React instrumentation encountered an error: %o",Bt))}var Lt=m.current.stateNode;return Lt.effectDuration=0,Lt.passiveEffectDuration=0,!0}finally{Dr.p=E,ut.T=u,W9(i,o)}}function J9(i,o,u){o=yo(u,o),eR(o),o=ox(i.stateNode,o,2),i=pl(i,o,2),i!==null&&(Fe(i,2),Ha(i))}function Nr(i,o,u){if(Qf=!1,i.tag===3)J9(i,i,u);else{for(;o!==null;){if(o.tag===3){J9(o,i,u);return}if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError==="function"||typeof m.componentDidCatch==="function"&&(Ul===null||!Ul.has(m))){i=yo(u,i),eR(i),u=ax(2),m=pl(o,u,2),m!==null&&(sx(u,m,o,i),Fe(m,2),Ha(m));return}}o=o.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
154
 
155
155
  Error message:
156
156
 
@@ -181,7 +181,7 @@ This ensures that you're testing the behavior the user would see in the browser.
181
181
  - `+Wg(o)+`
182
182
  + `+Wg(u),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+u);return null;case"script":return o=u.async,u=u.src,typeof u==="string"&&o&&typeof o!=="function"&&typeof o!=="symbol"?(u=vf(u),o=qe(E).hoistableScripts,m=o.get(u),m||(m={type:"script",instance:null,count:0,state:null},o.set(u,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+i+'". this is a bug in React.')}}function Wg(i){var o=0,u="<link";return typeof i.rel==="string"?(o++,u+=' rel="'+i.rel+'"'):la.call(i,"rel")&&(o++,u+=' rel="'+(i.rel===null?"null":"invalid type "+typeof i.rel)+'"'),typeof i.href==="string"?(o++,u+=' href="'+i.href+'"'):la.call(i,"href")&&(o++,u+=' href="'+(i.href===null?"null":"invalid type "+typeof i.href)+'"'),typeof i.precedence==="string"?(o++,u+=' precedence="'+i.precedence+'"'):la.call(i,"precedence")&&(o++,u+=" precedence={"+(i.precedence===null?"null":"invalid type "+typeof i.precedence)+"}"),Object.getOwnPropertyNames(i).length>o&&(u+=" ..."),u+" />"}function yf(i){return'href="'+zr(i)+'"'}function ip(i){return'link[rel="stylesheet"]['+i+"]"}function N7(i){return hr({},i,{"data-precedence":i.precedence,precedence:null})}function ZW(i,o,u,m){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?m.loading=Jp:(o=i.createElement("link"),m.preload=o,o.addEventListener("load",function(){return m.loading|=Jp}),o.addEventListener("error",function(){return m.loading|=vN}),pi(o,"link",u),ht(o),i.head.appendChild(o))}function vf(i){return'[src="'+zr(i)+'"]'}function op(i){return"script[async]"+i}function D7(i,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var m=i.querySelector('style[data-href~="'+zr(u.href)+'"]');if(m)return o.instance=m,ht(m),m;var E=hr({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),ht(m),pi(m,"style",E),Xg(m,u.precedence,i),o.instance=m;case"stylesheet":E=yf(u.href);var M=i.querySelector(ip(E));if(M)return o.state.loading|=Ko,o.instance=M,ht(M),M;m=N7(u),(E=Wo.get(E))&&Gx(m,E),M=(i.ownerDocument||i).createElement("link"),ht(M);var D=M;return D._p=new Promise(function(H,X){D.onload=H,D.onerror=X}),pi(M,"link",m),o.state.loading|=Ko,Xg(M,u.precedence,i),o.instance=M;case"script":if(M=vf(u.src),E=i.querySelector(op(M)))return o.instance=E,ht(E),E;if(m=u,E=Wo.get(M))m=hr({},u),Vx(m,E);return i=i.ownerDocument||i,E=i.createElement("script"),ht(E),pi(E,"link",m),i.head.appendChild(E),o.instance=E;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+o.type+'". this is a bug in React.')}else o.type==="stylesheet"&&(o.state.loading&Ko)===fc&&(m=o.instance,o.state.loading|=Ko,Xg(m,u.precedence,i));return o.instance}function Xg(i,o,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=m.length?m[m.length-1]:null,M=E,D=0;D<m.length;D++){var H=m[D];if(H.dataset.precedence===o)M=H;else if(M!==E)break}M?M.parentNode.insertBefore(i,M.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(i,o.firstChild))}function Gx(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function Vx(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}function z7(i,o,u){if(nb===null){var m=new Map,E=nb=new Map;E.set(u,m)}else E=nb,m=E.get(u),m||(m=new Map,E.set(u,m));if(m.has(i))return m;m.set(i,null),u=u.getElementsByTagName(i);for(E=0;E<u.length;E++){var M=u[E];if(!(M[cp]||M[mi]||i==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!==kf){var D=M.getAttribute(o)||"";D=i+D;var H=m.get(D);H?H.push(M):m.set(D,[M])}}return m}function L7(i,o,u){i=i.ownerDocument||i,i.head.insertBefore(u,o==="title"?i.querySelector("head > title"):null)}function FW(i,o,u){var m=!u.ancestorInfo.containerTagInScope;if(u.context===rd||o.itemProp!=null)return!m||o.itemProp==null||i!=="meta"&&i!=="title"&&i!=="style"&&i!=="link"&&i!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",i,i),!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!=="string"||typeof o.href!=="string"||o.href===""){m&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof o.rel!=="string"||typeof o.href!=="string"||o.href===""||o.onLoad||o.onError){if(o.rel==="stylesheet"&&typeof o.precedence==="string"){i=o.href;var{onError:E,disabled:M}=o;u=[],o.onLoad&&u.push("`onLoad`"),E&&u.push("`onError`"),M!=null&&u.push("`disabled`"),E=SW(u,"and"),E+=u.length===1?" prop":" props",M=u.length===1?"an "+E:"the "+E,u.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',i,M,E)}m&&(typeof o.rel!=="string"||typeof o.href!=="string"||o.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(o.onError||o.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(o.rel){case"stylesheet":return i=o.precedence,o=o.disabled,typeof i!=="string"&&m&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof i==="string"&&o==null;default:return!0}case"script":if(i=o.async&&typeof o.async!=="function"&&typeof o.async!=="symbol",!i||o.onLoad||o.onError||!o.src||typeof o.src!=="string"){m&&(i?o.onLoad||o.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":m&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",i)}return!1}function P7(i){return i.type==="stylesheet"&&(i.state.loading&SN)===fc?!1:!0}function qW(i,o,u,m){if(u.type==="stylesheet"&&(typeof m.media!=="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&Ko)===fc){if(u.instance===null){var E=yf(m.href),M=o.querySelector(ip(E));if(M){o=M._p,o!==null&&typeof o==="object"&&typeof o.then==="function"&&(i.count++,i=Jg.bind(i),o.then(i,i)),u.state.loading|=Ko,u.instance=M,ht(M);return}M=o.ownerDocument||o,m=N7(m),(E=Wo.get(E))&&Gx(m,E),M=M.createElement("link"),ht(M);var D=M;D._p=new Promise(function(H,X){D.onload=H,D.onerror=X}),pi(M,"link",m),u.instance=M}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&SN)===fc&&(i.count++,u=Jg.bind(i),o.addEventListener("load",u),o.addEventListener("error",u))}}function GW(i,o){return i.stylesheets&&i.count===0&&Qg(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var m=setTimeout(function(){if(i.stylesheets&&Qg(i,i.stylesheets),i.unsuspend){var M=i.unsuspend;i.unsuspend=null,M()}},UJ+o);0<i.imgBytes&&T_===0&&(T_=125*xW()*HJ);var E=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Qg(i,i.stylesheets),i.unsuspend)){var M=i.unsuspend;i.unsuspend=null,M()}},(i.imgBytes>T_?50:jJ)+o);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(m),clearTimeout(E)}}:null}function Jg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qg(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}function Qg(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,ib=new Map,o.forEach(VW,i),ib=null,Jg.call(i))}function VW(i,o){if(!(o.state.loading&Ko)){var u=ib.get(i);if(u)var m=u.get(k_);else{u=new Map,ib.set(i,u);for(var E=i.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<E.length;M++){var D=E[M];if(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")u.set(D.dataset.precedence,D),m=D}m&&u.set(k_,m)}E=o.instance,D=E.getAttribute("data-precedence"),M=u.get(D)||m,M===m&&u.set(k_,E),u.set(D,E),this.count++,m=Jg.bind(this),E.addEventListener("load",m),E.addEventListener("error",m),M?M.parentNode.insertBefore(E,M.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(E,i.firstChild)),o.state.loading|=Ko}}function YW(i,o,u,m,E,M,D,H,X){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=cc,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=we(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=we(0),this.hiddenUpdates=we(null),this.identifierPrefix=m,this.onUncaughtError=E,this.onCaughtError=M,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,i=this.pendingUpdatersLaneMap=[];for(o=0;31>o;o++)i.push(new Set);this._debugRootType=u?"hydrateRoot()":"createRoot()"}function $7(i,o,u,m,E,M,D,H,X,ne,je,He){return i=new YW(i,o,u,D,X,ne,je,He,H),o=hJ,M===!0&&(o|=_i|ca),o|=sr,M=_(3,null,null,o),i.current=M,M.stateNode=i,o=xS(),Pu(o),i.pooledCache=o,Pu(o),M.memoizedState={element:m,isDehydrated:u,cache:o},kS(M),i}function B7(i){if(!i)return Ml;return i=Ml,i}function Yx(i,o,u,m,E,M){if(xi&&typeof xi.onScheduleFiberRoot==="function")try{xi.onScheduleFiberRoot(Ef,m,u)}catch(D){Va||(Va=!0,console.error("React instrumentation encountered an error: %o",D))}E=B7(E),m.context===null?m.context=E:m.pendingContext=E,Ga&&To!==null&&!TN&&(TN=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
183
183
 
184
- Check the render method of %s.`,Y(To)||"Unknown")),m=hl(o),m.payload={element:u},M=M===void 0?null:M,M!==null&&(typeof M!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",M),m.callback=M),u=pl(i,m,o),u!==null&&(Ia(o,"root.render()",null),Sn(u,i,o),Bh(u,i,o))}function U7(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function Kx(i,o){U7(i,o),(i=i.alternate)&&U7(i,o)}function j7(i){if(i.tag===13||i.tag===31){var o=Si(i,67108864);o!==null&&Sn(o,i,67108864),Kx(i,67108864)}}function H7(i){if(i.tag===13||i.tag===31){var o=_o(i);o=xe(o);var u=Si(i,o);u!==null&&Sn(u,i,o),Kx(i,o)}}function KW(){return To}function WW(i,o,u,m){var E=ut.T;ut.T=null;var M=Dr.p;try{Dr.p=ko,Wx(i,o,u,m)}finally{Dr.p=M,ut.T=E}}function XW(i,o,u,m){var E=ut.T;ut.T=null;var M=Dr.p;try{Dr.p=ua,Wx(i,o,u,m)}finally{Dr.p=M,ut.T=E}}function Wx(i,o,u,m){if(ab){var E=Xx(m);if(E===null)zx(i,o,m,sb,u),F7(i,m);else if(JW(E,i,o,u,m))m.stopPropagation();else if(F7(i,m),o&4&&-1<FJ.indexOf(i)){for(;E!==null;){var M=at(E);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var D=Ee(M.pendingLanes);if(D!==0){var H=M;H.pendingLanes|=2;for(H.entangledLanes|=2;D;){var X=1<<31-Oi(D);H.entanglements[1]|=X,D&=~X}Ha(M),(Mr&(Xn|Ro))===ii&&(Z1=ti()+QO,Qh(0,!1))}}break;case 31:case 13:H=Si(M,2),H!==null&&Sn(H,M,2),mf(),Kx(M,2)}if(M=Xx(m),M===null&&zx(i,o,m,sb,u),M===E)break;E=M}E!==null&&m.stopPropagation()}else zx(i,o,m,null,u)}}function Xx(i){return i=nS(i),Jx(i)}function Jx(i){if(sb=null,i=de(i),i!==null){var o=P(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=j(o),i!==null)return i;i=null}else if(u===31){if(i=Z(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return sb=i,null}function Z7(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return ko;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ua;case"message":switch(sX()){case f6:return ko;case d6:return ua;case wf:case lX:return Ka;case h6:return u1;default:return Ka}default:return Ka}}function F7(i,o){switch(i){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":Gl=null;break;case"mouseover":case"mouseout":Vl=null;break;case"pointerover":case"pointerout":em.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":tm.delete(o.pointerId)}}function ap(i,o,u,m,E,M){if(i===null||i.nativeEvent!==M)return i={blockedOn:o,domEventName:u,eventSystemFlags:m,nativeEvent:M,targetContainers:[E]},o!==null&&(o=at(o),o!==null&&j7(o)),i;return i.eventSystemFlags|=m,o=i.targetContainers,E!==null&&o.indexOf(E)===-1&&o.push(E),i}function JW(i,o,u,m,E){switch(o){case"focusin":return ql=ap(ql,i,o,u,m,E),!0;case"dragenter":return Gl=ap(Gl,i,o,u,m,E),!0;case"mouseover":return Vl=ap(Vl,i,o,u,m,E),!0;case"pointerover":var M=E.pointerId;return em.set(M,ap(em.get(M)||null,i,o,u,m,E)),!0;case"gotpointercapture":return M=E.pointerId,tm.set(M,ap(tm.get(M)||null,i,o,u,m,E)),!0}return!1}function q7(i){var o=de(i.target);if(o!==null){var u=P(o);if(u!==null){if(o=u.tag,o===13){if(o=j(u),o!==null){i.blockedOn=o,Pe(i.priority,function(){H7(u)});return}}else if(o===31){if(o=Z(u),o!==null){i.blockedOn=o,Pe(i.priority,function(){H7(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function e1(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=Xx(i.nativeEvent);if(u===null){u=i.nativeEvent;var m=new u.constructor(u.type,u),E=m;fp!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),fp=E,u.target.dispatchEvent(m),fp===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),fp=null}else return o=at(u),o!==null&&j7(o),i.blockedOn=u,!1;o.shift()}return!0}function G7(i,o,u){e1(i)&&u.delete(o)}function QW(){A_=!1,ql!==null&&e1(ql)&&(ql=null),Gl!==null&&e1(Gl)&&(Gl=null),Vl!==null&&e1(Vl)&&(Vl=null),em.forEach(G7),tm.forEach(G7)}function t1(i,o){i.blockedOn===o&&(i.blockedOn=null,A_||(A_=!0,Rr.unstable_scheduleCallback(Rr.unstable_NormalPriority,QW)))}function V7(i){lb!==i&&(lb=i,Rr.unstable_scheduleCallback(Rr.unstable_NormalPriority,function(){lb===i&&(lb=null);for(var o=0;o<i.length;o+=3){var u=i[o],m=i[o+1],E=i[o+2];if(typeof m!=="function")if(Jx(m||u)===null)continue;else break;var M=at(u);M!==null&&(i.splice(o,3),o-=3,u={pending:!0,data:E,method:u.method,action:m},Object.freeze(u),JS(M,u,m,E))}}))}function Sf(i){function o(X){return t1(X,i)}ql!==null&&t1(ql,i),Gl!==null&&t1(Gl,i),Vl!==null&&t1(Vl,i),em.forEach(o),tm.forEach(o);for(var u=0;u<Yl.length;u++){var m=Yl[u];m.blockedOn===i&&(m.blockedOn=null)}for(;0<Yl.length&&(u=Yl[0],u.blockedOn===null);)q7(u),u.blockedOn===null&&Yl.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var E=u[m],M=u[m+1],D=E[Ni]||null;if(typeof M==="function")D||V7(u);else if(D){var H=null;if(M&&M.hasAttribute("formAction")){if(E=M,D=M[Ni]||null)H=D.formAction;else if(Jx(E)!==null)continue}else H=D.action;typeof H==="function"?u[m+1]=H:(u.splice(m,3),m-=3),V7(u)}}}function Y7(){function i(M){M.canIntercept&&M.info==="react-transition"&&M.intercept({handler:function(){return new Promise(function(D){return E=D})},focusReset:"manual",scroll:"manual"})}function o(){E!==null&&(E(),E=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var M=navigation.currentEntry;M&&M.url!=null&&navigation.navigate(M.url,{state:M.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var m=!1,E=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),E!==null&&(E(),E=null)}}}function Qx(i){this._internalRoot=i}function r1(i){this._internalRoot=i}function K7(i){i[El]&&(i._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var hr=Object.assign,eX=Symbol.for("react.element"),Fa=Symbol.for("react.transitional.element"),xf=Symbol.for("react.portal"),_f=Symbol.for("react.fragment"),n1=Symbol.for("react.strict_mode"),e6=Symbol.for("react.profiler"),t6=Symbol.for("react.consumer"),qa=Symbol.for("react.context"),sp=Symbol.for("react.forward_ref"),r6=Symbol.for("react.suspense"),n6=Symbol.for("react.suspense_list"),i1=Symbol.for("react.memo"),Eo=Symbol.for("react.lazy"),i6=Symbol.for("react.activity"),tX=Symbol.for("react.memo_cache_sentinel"),W7=Symbol.iterator,rX=Symbol.for("react.client.reference"),Kn=Array.isArray,ut=id.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Dr=C_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nX=Object.freeze({pending:!1,data:null,method:null,action:null}),o6=[],a6=[],As=-1,xl=Te(null),lp=Te(null),_l=Te(null),o1=Te(null),up=0,X7,J7,Q7,eI,tI,rI,nI;c.__reactDisabledLog=!0;var s6,iI,l6=!1,u6=new(typeof WeakMap==="function"?WeakMap:Map),To=null,Ga=!1,la=Object.prototype.hasOwnProperty,c6=Rr.unstable_scheduleCallback,iX=Rr.unstable_cancelCallback,oX=Rr.unstable_shouldYield,aX=Rr.unstable_requestPaint,ti=Rr.unstable_now,sX=Rr.unstable_getCurrentPriorityLevel,f6=Rr.unstable_ImmediatePriority,d6=Rr.unstable_UserBlockingPriority,wf=Rr.unstable_NormalPriority,lX=Rr.unstable_LowPriority,h6=Rr.unstable_IdlePriority,uX=Rr.log,cX=Rr.unstable_setDisableYieldValue,Ef=null,xi=null,Va=!1,Ya=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Oi=Math.clz32?Math.clz32:le,fX=Math.log,dX=Math.LN2,a1=256,s1=262144,l1=4194304,ko=2,ua=8,Ka=32,u1=268435456,wl=Math.random().toString(36).slice(2),mi="__reactFiber$"+wl,Ni="__reactProps$"+wl,El="__reactContainer$"+wl,p6="__reactEvents$"+wl,hX="__reactListeners$"+wl,pX="__reactHandles$"+wl,oI="__reactResources$"+wl,cp="__reactMarker$"+wl,aI=new Set,Fu={},m6={},mX={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gX=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),sI={},lI={},bX=/[\n"\\]/g,uI=!1,cI=!1,fI=!1,dI=!1,hI=!1,pI=!1,mI=["value","defaultValue"],gI=!1,bI=/["'&<>\n\t]|^\s|\s$/,yX="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),yI="applet caption html table td th marquee object template foreignObject desc title".split(" "),vX=yI.concat(["button"]),SX="dd dt li option optgroup p rp rt".split(" "),vI={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},c1={},g6={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},SI=/([A-Z])/g,xI=/^ms-/,xX=/^(?:webkit|moz|o)[A-Z]/,_X=/^-ms-/,wX=/-(.)/g,_I=/;\s*$/,Tf={},b6={},wI=!1,EI=!1,TI=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),f1="http://www.w3.org/1998/Math/MathML",kf="http://www.w3.org/2000/svg",EX=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),d1={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},kI={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Af={},TX=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kX=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),AI=!1,Di={},MI=/^on./,AX=/^on[^A-Z]/,MX=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),CX=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),RX=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,fp=null,Mf=null,Cf=null,y6=!1,Wa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v6=!1;if(Wa)try{var dp={};Object.defineProperty(dp,"passive",{get:function(){v6=!0}}),window.addEventListener("test",dp,dp),window.removeEventListener("test",dp,dp)}catch(i){v6=!1}var Tl=null,S6=null,h1=null,qu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},p1=to(qu),hp=hr({},qu,{view:0,detail:0}),IX=to(hp),x6,_6,pp,m1=hr({},hp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iS,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){if("movementX"in i)return i.movementX;return i!==pp&&(pp&&i.type==="mousemove"?(x6=i.screenX-pp.screenX,_6=i.screenY-pp.screenY):_6=x6=0,pp=i),x6},movementY:function(i){return"movementY"in i?i.movementY:_6}}),CI=to(m1),OX=hr({},m1,{dataTransfer:0}),NX=to(OX),DX=hr({},hp,{relatedTarget:0}),w6=to(DX),zX=hr({},qu,{animationName:0,elapsedTime:0,pseudoElement:0}),LX=to(zX),PX=hr({},qu,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),$X=to(PX),BX=hr({},qu,{data:0}),RI=to(BX),UX=RI,jX={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HX={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ZX={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},FX=hr({},hp,{key:function(i){if(i.key){var o=jX[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=eg(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?HX[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iS,charCode:function(i){return i.type==="keypress"?eg(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?eg(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),qX=to(FX),GX=hr({},m1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),II=to(GX),VX=hr({},hp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iS}),YX=to(VX),KX=hr({},qu,{propertyName:0,elapsedTime:0,pseudoElement:0}),WX=to(KX),XX=hr({},m1,{deltaX:function(i){return"deltaX"in i?i.deltaX:("wheelDeltaX"in i)?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:("wheelDeltaY"in i)?-i.wheelDeltaY:("wheelDelta"in i)?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),JX=to(XX),QX=hr({},qu,{newState:0,oldState:0}),eJ=to(QX),tJ=[9,13,27,32],OI=229,E6=Wa&&"CompositionEvent"in window,mp=null;Wa&&"documentMode"in document&&(mp=document.documentMode);var rJ=Wa&&"TextEvent"in window&&!mp,NI=Wa&&(!E6||mp&&8<mp&&11>=mp),DI=32,zI=String.fromCharCode(DI),LI=!1,Rf=!1,nJ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},gp=null,bp=null,PI=!1;Wa&&(PI=EK("input")&&(!document.documentMode||9<document.documentMode));var zi=typeof Object.is==="function"?Object.is:RK,iJ=Wa&&"documentMode"in document&&11>=document.documentMode,If=null,T6=null,yp=null,k6=!1,Of={animationend:Ru("Animation","AnimationEnd"),animationiteration:Ru("Animation","AnimationIteration"),animationstart:Ru("Animation","AnimationStart"),transitionrun:Ru("Transition","TransitionRun"),transitionstart:Ru("Transition","TransitionStart"),transitioncancel:Ru("Transition","TransitionCancel"),transitionend:Ru("Transition","TransitionEnd")},A6={},$I={};Wa&&($I=document.createElement("div").style,("AnimationEvent"in window)||(delete Of.animationend.animation,delete Of.animationiteration.animation,delete Of.animationstart.animation),("TransitionEvent"in window)||delete Of.transitionend.transition);var BI=Iu("animationend"),UI=Iu("animationiteration"),jI=Iu("animationstart"),oJ=Iu("transitionrun"),aJ=Iu("transitionstart"),sJ=Iu("transitioncancel"),HI=Iu("transitionend"),ZI=new Map,M6="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");M6.push("scrollEnd");var FI=0;if(typeof performance==="object"&&typeof performance.now==="function")var lJ=performance,qI=function(){return lJ.now()};else{var uJ=Date;qI=function(){return uJ.now()}}var C6=typeof reportError==="function"?reportError:function(i){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i==="object"&&i!==null&&typeof i.message==="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",i);return}console.error(i)},cJ="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",g1=0,R6=1,I6=2,O6=3,b1="– ",y1="+ ",GI="  ",rn=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Bo="Components ⚛",pr="Scheduler ⚛",mr="Blocking",kl=!1,Ms={color:"primary",properties:null,tooltipText:"",track:Bo},Al={start:-0,end:-0,detail:{devtools:Ms}},fJ=["Changed Props",""],VI="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dJ=["Changed Props",VI],vp=1,Cs=2,Uo=[],Nf=0,N6=0,Ml={};Object.freeze(Ml);var jo=null,Df=null,Xt=0,hJ=1,sr=2,_i=8,ca=16,pJ=32,YI=!1;try{var KI=Object.preventExtensions({})}catch(i){YI=!0}var D6=new WeakMap,zf=[],Lf=0,v1=null,Sp=0,Ho=[],Zo=0,Gu=null,Rs=1,Is="",gi=null,nn=null,vr=!1,Xa=!1,Ao=null,Cl=null,Fo=!1,z6=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),L6=Te(null),P6=Te(null),WI={},S1=null,Pf=null,$f=!1,mJ=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(u,m){i.push(m)}};this.abort=function(){o.aborted=!0,i.forEach(function(u){return u()})}},gJ=Rr.unstable_scheduleCallback,bJ=Rr.unstable_NormalPriority,Un={$$typeof:qa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},jn=Rr.unstable_now,x1=console.createTask?console.createTask:function(){return null},xp=1,_1=2,ri=-0,Rl=-0,Os=-0,Ns=null,Li=-1.1,Vu=-0,mn=-0,Gt=-1.1,Wt=-1.1,fn=null,xn=!1,Il=-0,Ja=-1.1,_p=null,Ol=0,$6=null,B6=null,Yu=-1.1,wp=null,Bf=-1.1,w1=-1.1,Qa=-0,Ds=-1.1,qo=-1.1,U6=0,Ep=null,XI=null,JI=null,Nl=-1.1,Ku=null,Dl=-1.1,E1=-1.1,QI=-0,eO=-0,T1=0,zs=null,tO=0,Tp=-1.1,k1=!1,A1=!1,kp=null,j6=0,Wu=0,Uf=null,rO=ut.S;ut.S=function(i,o){if(XO=ti(),typeof o==="object"&&o!==null&&typeof o.then==="function"){if(0>Ds&&0>qo){Ds=jn();var u=rp(),m=tp();if(u!==Dl||m!==Ku)Dl=-1.1;Nl=u,Ku=m}PK(i,o)}rO!==null&&rO(i,o)};var Xu=Te(null),fa={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ap=[],Mp=[],Cp=[],Rp=[],Ip=[],Op=[],Ju=new Set;fa.recordUnsafeLifecycleWarnings=function(i,o){Ju.has(i.type)||(typeof o.componentWillMount==="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&Ap.push(i),i.mode&_i&&typeof o.UNSAFE_componentWillMount==="function"&&Mp.push(i),typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Cp.push(i),i.mode&_i&&typeof o.UNSAFE_componentWillReceiveProps==="function"&&Rp.push(i),typeof o.componentWillUpdate==="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ip.push(i),i.mode&_i&&typeof o.UNSAFE_componentWillUpdate==="function"&&Op.push(i))},fa.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;0<Ap.length&&(Ap.forEach(function(H){i.add(Y(H)||"Component"),Ju.add(H.type)}),Ap=[]);var o=new Set;0<Mp.length&&(Mp.forEach(function(H){o.add(Y(H)||"Component"),Ju.add(H.type)}),Mp=[]);var u=new Set;0<Cp.length&&(Cp.forEach(function(H){u.add(Y(H)||"Component"),Ju.add(H.type)}),Cp=[]);var m=new Set;0<Rp.length&&(Rp.forEach(function(H){m.add(Y(H)||"Component"),Ju.add(H.type)}),Rp=[]);var E=new Set;0<Ip.length&&(Ip.forEach(function(H){E.add(Y(H)||"Component"),Ju.add(H.type)}),Ip=[]);var M=new Set;if(0<Op.length&&(Op.forEach(function(H){M.add(Y(H)||"Component"),Ju.add(H.type)}),Op=[]),0<o.size){var D=g(o);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
184
+ Check the render method of %s.`,Y(To)||"Unknown")),m=hl(o),m.payload={element:u},M=M===void 0?null:M,M!==null&&(typeof M!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",M),m.callback=M),u=pl(i,m,o),u!==null&&(Ia(o,"root.render()",null),vn(u,i,o),Bh(u,i,o))}function U7(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function Kx(i,o){U7(i,o),(i=i.alternate)&&U7(i,o)}function j7(i){if(i.tag===13||i.tag===31){var o=Si(i,67108864);o!==null&&vn(o,i,67108864),Kx(i,67108864)}}function H7(i){if(i.tag===13||i.tag===31){var o=_o(i);o=xe(o);var u=Si(i,o);u!==null&&vn(u,i,o),Kx(i,o)}}function KW(){return To}function WW(i,o,u,m){var E=ut.T;ut.T=null;var M=Dr.p;try{Dr.p=ko,Wx(i,o,u,m)}finally{Dr.p=M,ut.T=E}}function XW(i,o,u,m){var E=ut.T;ut.T=null;var M=Dr.p;try{Dr.p=ua,Wx(i,o,u,m)}finally{Dr.p=M,ut.T=E}}function Wx(i,o,u,m){if(ab){var E=Xx(m);if(E===null)zx(i,o,m,sb,u),F7(i,m);else if(JW(E,i,o,u,m))m.stopPropagation();else if(F7(i,m),o&4&&-1<FJ.indexOf(i)){for(;E!==null;){var M=at(E);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var D=Ee(M.pendingLanes);if(D!==0){var H=M;H.pendingLanes|=2;for(H.entangledLanes|=2;D;){var X=1<<31-Oi(D);H.entanglements[1]|=X,D&=~X}Ha(M),(Mr&(Xn|Ro))===ii&&(Z1=ti()+QO,Qh(0,!1))}}break;case 31:case 13:H=Si(M,2),H!==null&&vn(H,M,2),mf(),Kx(M,2)}if(M=Xx(m),M===null&&zx(i,o,m,sb,u),M===E)break;E=M}E!==null&&m.stopPropagation()}else zx(i,o,m,null,u)}}function Xx(i){return i=nS(i),Jx(i)}function Jx(i){if(sb=null,i=de(i),i!==null){var o=P(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=j(o),i!==null)return i;i=null}else if(u===31){if(i=Z(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return sb=i,null}function Z7(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return ko;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ua;case"message":switch(sX()){case f6:return ko;case d6:return ua;case wf:case lX:return Ka;case h6:return u1;default:return Ka}default:return Ka}}function F7(i,o){switch(i){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":Gl=null;break;case"mouseover":case"mouseout":Vl=null;break;case"pointerover":case"pointerout":em.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":tm.delete(o.pointerId)}}function ap(i,o,u,m,E,M){if(i===null||i.nativeEvent!==M)return i={blockedOn:o,domEventName:u,eventSystemFlags:m,nativeEvent:M,targetContainers:[E]},o!==null&&(o=at(o),o!==null&&j7(o)),i;return i.eventSystemFlags|=m,o=i.targetContainers,E!==null&&o.indexOf(E)===-1&&o.push(E),i}function JW(i,o,u,m,E){switch(o){case"focusin":return ql=ap(ql,i,o,u,m,E),!0;case"dragenter":return Gl=ap(Gl,i,o,u,m,E),!0;case"mouseover":return Vl=ap(Vl,i,o,u,m,E),!0;case"pointerover":var M=E.pointerId;return em.set(M,ap(em.get(M)||null,i,o,u,m,E)),!0;case"gotpointercapture":return M=E.pointerId,tm.set(M,ap(tm.get(M)||null,i,o,u,m,E)),!0}return!1}function q7(i){var o=de(i.target);if(o!==null){var u=P(o);if(u!==null){if(o=u.tag,o===13){if(o=j(u),o!==null){i.blockedOn=o,Pe(i.priority,function(){H7(u)});return}}else if(o===31){if(o=Z(u),o!==null){i.blockedOn=o,Pe(i.priority,function(){H7(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function e1(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=Xx(i.nativeEvent);if(u===null){u=i.nativeEvent;var m=new u.constructor(u.type,u),E=m;fp!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),fp=E,u.target.dispatchEvent(m),fp===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),fp=null}else return o=at(u),o!==null&&j7(o),i.blockedOn=u,!1;o.shift()}return!0}function G7(i,o,u){e1(i)&&u.delete(o)}function QW(){A_=!1,ql!==null&&e1(ql)&&(ql=null),Gl!==null&&e1(Gl)&&(Gl=null),Vl!==null&&e1(Vl)&&(Vl=null),em.forEach(G7),tm.forEach(G7)}function t1(i,o){i.blockedOn===o&&(i.blockedOn=null,A_||(A_=!0,Rr.unstable_scheduleCallback(Rr.unstable_NormalPriority,QW)))}function V7(i){lb!==i&&(lb=i,Rr.unstable_scheduleCallback(Rr.unstable_NormalPriority,function(){lb===i&&(lb=null);for(var o=0;o<i.length;o+=3){var u=i[o],m=i[o+1],E=i[o+2];if(typeof m!=="function")if(Jx(m||u)===null)continue;else break;var M=at(u);M!==null&&(i.splice(o,3),o-=3,u={pending:!0,data:E,method:u.method,action:m},Object.freeze(u),JS(M,u,m,E))}}))}function Sf(i){function o(X){return t1(X,i)}ql!==null&&t1(ql,i),Gl!==null&&t1(Gl,i),Vl!==null&&t1(Vl,i),em.forEach(o),tm.forEach(o);for(var u=0;u<Yl.length;u++){var m=Yl[u];m.blockedOn===i&&(m.blockedOn=null)}for(;0<Yl.length&&(u=Yl[0],u.blockedOn===null);)q7(u),u.blockedOn===null&&Yl.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var E=u[m],M=u[m+1],D=E[Ni]||null;if(typeof M==="function")D||V7(u);else if(D){var H=null;if(M&&M.hasAttribute("formAction")){if(E=M,D=M[Ni]||null)H=D.formAction;else if(Jx(E)!==null)continue}else H=D.action;typeof H==="function"?u[m+1]=H:(u.splice(m,3),m-=3),V7(u)}}}function Y7(){function i(M){M.canIntercept&&M.info==="react-transition"&&M.intercept({handler:function(){return new Promise(function(D){return E=D})},focusReset:"manual",scroll:"manual"})}function o(){E!==null&&(E(),E=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var M=navigation.currentEntry;M&&M.url!=null&&navigation.navigate(M.url,{state:M.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var m=!1,E=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),E!==null&&(E(),E=null)}}}function Qx(i){this._internalRoot=i}function r1(i){this._internalRoot=i}function K7(i){i[El]&&(i._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var hr=Object.assign,eX=Symbol.for("react.element"),Fa=Symbol.for("react.transitional.element"),xf=Symbol.for("react.portal"),_f=Symbol.for("react.fragment"),n1=Symbol.for("react.strict_mode"),e6=Symbol.for("react.profiler"),t6=Symbol.for("react.consumer"),qa=Symbol.for("react.context"),sp=Symbol.for("react.forward_ref"),r6=Symbol.for("react.suspense"),n6=Symbol.for("react.suspense_list"),i1=Symbol.for("react.memo"),Eo=Symbol.for("react.lazy"),i6=Symbol.for("react.activity"),tX=Symbol.for("react.memo_cache_sentinel"),W7=Symbol.iterator,rX=Symbol.for("react.client.reference"),Kn=Array.isArray,ut=id.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Dr=C_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nX=Object.freeze({pending:!1,data:null,method:null,action:null}),o6=[],a6=[],As=-1,xl=Te(null),lp=Te(null),_l=Te(null),o1=Te(null),up=0,X7,J7,Q7,eI,tI,rI,nI;c.__reactDisabledLog=!0;var s6,iI,l6=!1,u6=new(typeof WeakMap==="function"?WeakMap:Map),To=null,Ga=!1,la=Object.prototype.hasOwnProperty,c6=Rr.unstable_scheduleCallback,iX=Rr.unstable_cancelCallback,oX=Rr.unstable_shouldYield,aX=Rr.unstable_requestPaint,ti=Rr.unstable_now,sX=Rr.unstable_getCurrentPriorityLevel,f6=Rr.unstable_ImmediatePriority,d6=Rr.unstable_UserBlockingPriority,wf=Rr.unstable_NormalPriority,lX=Rr.unstable_LowPriority,h6=Rr.unstable_IdlePriority,uX=Rr.log,cX=Rr.unstable_setDisableYieldValue,Ef=null,xi=null,Va=!1,Ya=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Oi=Math.clz32?Math.clz32:le,fX=Math.log,dX=Math.LN2,a1=256,s1=262144,l1=4194304,ko=2,ua=8,Ka=32,u1=268435456,wl=Math.random().toString(36).slice(2),mi="__reactFiber$"+wl,Ni="__reactProps$"+wl,El="__reactContainer$"+wl,p6="__reactEvents$"+wl,hX="__reactListeners$"+wl,pX="__reactHandles$"+wl,oI="__reactResources$"+wl,cp="__reactMarker$"+wl,aI=new Set,Fu={},m6={},mX={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gX=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),sI={},lI={},bX=/[\n"\\]/g,uI=!1,cI=!1,fI=!1,dI=!1,hI=!1,pI=!1,mI=["value","defaultValue"],gI=!1,bI=/["'&<>\n\t]|^\s|\s$/,yX="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),yI="applet caption html table td th marquee object template foreignObject desc title".split(" "),vX=yI.concat(["button"]),SX="dd dt li option optgroup p rp rt".split(" "),vI={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},c1={},g6={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},SI=/([A-Z])/g,xI=/^ms-/,xX=/^(?:webkit|moz|o)[A-Z]/,_X=/^-ms-/,wX=/-(.)/g,_I=/;\s*$/,Tf={},b6={},wI=!1,EI=!1,TI=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),f1="http://www.w3.org/1998/Math/MathML",kf="http://www.w3.org/2000/svg",EX=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),d1={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},kI={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Af={},TX=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kX=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),AI=!1,Di={},MI=/^on./,AX=/^on[^A-Z]/,MX=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),CX=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),RX=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,fp=null,Mf=null,Cf=null,y6=!1,Wa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v6=!1;if(Wa)try{var dp={};Object.defineProperty(dp,"passive",{get:function(){v6=!0}}),window.addEventListener("test",dp,dp),window.removeEventListener("test",dp,dp)}catch(i){v6=!1}var Tl=null,S6=null,h1=null,qu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},p1=to(qu),hp=hr({},qu,{view:0,detail:0}),IX=to(hp),x6,_6,pp,m1=hr({},hp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iS,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){if("movementX"in i)return i.movementX;return i!==pp&&(pp&&i.type==="mousemove"?(x6=i.screenX-pp.screenX,_6=i.screenY-pp.screenY):_6=x6=0,pp=i),x6},movementY:function(i){return"movementY"in i?i.movementY:_6}}),CI=to(m1),OX=hr({},m1,{dataTransfer:0}),NX=to(OX),DX=hr({},hp,{relatedTarget:0}),w6=to(DX),zX=hr({},qu,{animationName:0,elapsedTime:0,pseudoElement:0}),LX=to(zX),PX=hr({},qu,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),$X=to(PX),BX=hr({},qu,{data:0}),RI=to(BX),UX=RI,jX={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HX={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ZX={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},FX=hr({},hp,{key:function(i){if(i.key){var o=jX[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=eg(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?HX[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iS,charCode:function(i){return i.type==="keypress"?eg(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?eg(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),qX=to(FX),GX=hr({},m1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),II=to(GX),VX=hr({},hp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iS}),YX=to(VX),KX=hr({},qu,{propertyName:0,elapsedTime:0,pseudoElement:0}),WX=to(KX),XX=hr({},m1,{deltaX:function(i){return"deltaX"in i?i.deltaX:("wheelDeltaX"in i)?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:("wheelDeltaY"in i)?-i.wheelDeltaY:("wheelDelta"in i)?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),JX=to(XX),QX=hr({},qu,{newState:0,oldState:0}),eJ=to(QX),tJ=[9,13,27,32],OI=229,E6=Wa&&"CompositionEvent"in window,mp=null;Wa&&"documentMode"in document&&(mp=document.documentMode);var rJ=Wa&&"TextEvent"in window&&!mp,NI=Wa&&(!E6||mp&&8<mp&&11>=mp),DI=32,zI=String.fromCharCode(DI),LI=!1,Rf=!1,nJ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},gp=null,bp=null,PI=!1;Wa&&(PI=EK("input")&&(!document.documentMode||9<document.documentMode));var zi=typeof Object.is==="function"?Object.is:RK,iJ=Wa&&"documentMode"in document&&11>=document.documentMode,If=null,T6=null,yp=null,k6=!1,Of={animationend:Ru("Animation","AnimationEnd"),animationiteration:Ru("Animation","AnimationIteration"),animationstart:Ru("Animation","AnimationStart"),transitionrun:Ru("Transition","TransitionRun"),transitionstart:Ru("Transition","TransitionStart"),transitioncancel:Ru("Transition","TransitionCancel"),transitionend:Ru("Transition","TransitionEnd")},A6={},$I={};Wa&&($I=document.createElement("div").style,("AnimationEvent"in window)||(delete Of.animationend.animation,delete Of.animationiteration.animation,delete Of.animationstart.animation),("TransitionEvent"in window)||delete Of.transitionend.transition);var BI=Iu("animationend"),UI=Iu("animationiteration"),jI=Iu("animationstart"),oJ=Iu("transitionrun"),aJ=Iu("transitionstart"),sJ=Iu("transitioncancel"),HI=Iu("transitionend"),ZI=new Map,M6="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");M6.push("scrollEnd");var FI=0;if(typeof performance==="object"&&typeof performance.now==="function")var lJ=performance,qI=function(){return lJ.now()};else{var uJ=Date;qI=function(){return uJ.now()}}var C6=typeof reportError==="function"?reportError:function(i){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i==="object"&&i!==null&&typeof i.message==="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",i);return}console.error(i)},cJ="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",g1=0,R6=1,I6=2,O6=3,b1="– ",y1="+ ",GI="  ",rn=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Bo="Components ⚛",pr="Scheduler ⚛",mr="Blocking",kl=!1,Ms={color:"primary",properties:null,tooltipText:"",track:Bo},Al={start:-0,end:-0,detail:{devtools:Ms}},fJ=["Changed Props",""],VI="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dJ=["Changed Props",VI],vp=1,Cs=2,Uo=[],Nf=0,N6=0,Ml={};Object.freeze(Ml);var jo=null,Df=null,Xt=0,hJ=1,sr=2,_i=8,ca=16,pJ=32,YI=!1;try{var KI=Object.preventExtensions({})}catch(i){YI=!0}var D6=new WeakMap,zf=[],Lf=0,v1=null,Sp=0,Ho=[],Zo=0,Gu=null,Rs=1,Is="",gi=null,nn=null,vr=!1,Xa=!1,Ao=null,Cl=null,Fo=!1,z6=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),L6=Te(null),P6=Te(null),WI={},S1=null,Pf=null,$f=!1,mJ=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(u,m){i.push(m)}};this.abort=function(){o.aborted=!0,i.forEach(function(u){return u()})}},gJ=Rr.unstable_scheduleCallback,bJ=Rr.unstable_NormalPriority,Un={$$typeof:qa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},jn=Rr.unstable_now,x1=console.createTask?console.createTask:function(){return null},xp=1,_1=2,ri=-0,Rl=-0,Os=-0,Ns=null,Li=-1.1,Vu=-0,mn=-0,Gt=-1.1,Wt=-1.1,fn=null,Sn=!1,Il=-0,Ja=-1.1,_p=null,Ol=0,$6=null,B6=null,Yu=-1.1,wp=null,Bf=-1.1,w1=-1.1,Qa=-0,Ds=-1.1,qo=-1.1,U6=0,Ep=null,XI=null,JI=null,Nl=-1.1,Ku=null,Dl=-1.1,E1=-1.1,QI=-0,eO=-0,T1=0,zs=null,tO=0,Tp=-1.1,k1=!1,A1=!1,kp=null,j6=0,Wu=0,Uf=null,rO=ut.S;ut.S=function(i,o){if(XO=ti(),typeof o==="object"&&o!==null&&typeof o.then==="function"){if(0>Ds&&0>qo){Ds=jn();var u=rp(),m=tp();if(u!==Dl||m!==Ku)Dl=-1.1;Nl=u,Ku=m}PK(i,o)}rO!==null&&rO(i,o)};var Xu=Te(null),fa={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ap=[],Mp=[],Cp=[],Rp=[],Ip=[],Op=[],Ju=new Set;fa.recordUnsafeLifecycleWarnings=function(i,o){Ju.has(i.type)||(typeof o.componentWillMount==="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&Ap.push(i),i.mode&_i&&typeof o.UNSAFE_componentWillMount==="function"&&Mp.push(i),typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Cp.push(i),i.mode&_i&&typeof o.UNSAFE_componentWillReceiveProps==="function"&&Rp.push(i),typeof o.componentWillUpdate==="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ip.push(i),i.mode&_i&&typeof o.UNSAFE_componentWillUpdate==="function"&&Op.push(i))},fa.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;0<Ap.length&&(Ap.forEach(function(H){i.add(Y(H)||"Component"),Ju.add(H.type)}),Ap=[]);var o=new Set;0<Mp.length&&(Mp.forEach(function(H){o.add(Y(H)||"Component"),Ju.add(H.type)}),Mp=[]);var u=new Set;0<Cp.length&&(Cp.forEach(function(H){u.add(Y(H)||"Component"),Ju.add(H.type)}),Cp=[]);var m=new Set;0<Rp.length&&(Rp.forEach(function(H){m.add(Y(H)||"Component"),Ju.add(H.type)}),Rp=[]);var E=new Set;0<Ip.length&&(Ip.forEach(function(H){E.add(Y(H)||"Component"),Ju.add(H.type)}),Ip=[]);var M=new Set;if(0<Op.length&&(Op.forEach(function(H){M.add(Y(H)||"Component"),Ju.add(H.type)}),Op=[]),0<o.size){var D=g(o);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
@@ -220,7 +220,7 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,m)})}
220
220
 
221
221
  Check the render method of \``+E+"`."),M||m&&(M=`
222
222
 
223
- Check the top-level render call using <`+m+">.");var D="";u!=null&&i!==u&&(m=null,typeof u.tag==="number"?m=Y(u):typeof u.name==="string"&&(m=u.name),m&&(D=" It was passed a child from "+m+".")),be(o,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',M,D)})}}};var ec=fR(!0),SO=fR(!1),xO=0,_O=1,wO=2,G6=3,zl=!1,EO=!1,V6=null,Y6=!1,Zf=Te(null),I1=Te(0),Mo=Te(null),Go=null,Ff=1,zp=2,zn=Te(0),O1=0,Vo=1,Pi=2,Co=4,$i=8,qf,TO=new Set,kO=new Set,K6=new Set,AO=new Set,Ls=0,Qt=null,Fr=null,Hn=null,N1=!1,Gf=!1,tc=!1,D1=0,Lp=0,Ps=null,_J=0,wJ=25,lt=null,Yo=null,$s=-1,Pp=!1,$p={readContext:cn,use:bl,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useLayoutEffect:Cn,useInsertionEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useSyncExternalStore:Cn,useId:Cn,useHostTransitionStatus:Cn,useFormState:Cn,useActionState:Cn,useOptimistic:Cn,useMemoCache:Cn,useCacheRefresh:Cn};$p.useEffectEvent=Cn;var W6=null,MO=null,X6=null,CO=null,es=null,da=null,z1=null;W6={readContext:function(i){return cn(i)},use:bl,useCallback:function(i,o){return lt="useCallback",dr(),lf(o),YS(i,o)},useContext:function(i){return lt="useContext",dr(),cn(i)},useEffect:function(i,o){return lt="useEffect",dr(),lf(o),Mg(i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",dr(),lf(u),VS(i,o,u)},useInsertionEffect:function(i,o){lt="useInsertionEffect",dr(),lf(o),Bu(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",dr(),lf(o),GS(i,o)},useMemo:function(i,o){lt="useMemo",dr(),lf(o);var u=ut.H;ut.H=es;try{return KS(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",dr();var m=ut.H;ut.H=es;try{return PS(i,o,u)}finally{ut.H=m}},useRef:function(i){return lt="useRef",dr(),FS(i)},useState:function(i){lt="useState",dr();var o=ut.H;ut.H=es;try{return jS(i)}finally{ut.H=o}},useDebugValue:function(){lt="useDebugValue",dr()},useDeferredValue:function(i,o){return lt="useDeferredValue",dr(),WS(i,o)},useTransition:function(){return lt="useTransition",dr(),QS()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",dr(),BS(i,o,u)},useId:function(){return lt="useId",dr(),ex()},useFormState:function(i,o){return lt="useFormState",dr(),wg(),cf(i,o)},useActionState:function(i,o){return lt="useActionState",dr(),cf(i,o)},useOptimistic:function(i){return lt="useOptimistic",dr(),HS(i)},useHostTransitionStatus:Uu,useMemoCache:$u,useCacheRefresh:function(){return lt="useCacheRefresh",dr(),tx()},useEffectEvent:function(i){return lt="useEffectEvent",dr(),qS(i)}},MO={readContext:function(i){return cn(i)},use:bl,useCallback:function(i,o){return lt="useCallback",Ct(),YS(i,o)},useContext:function(i){return lt="useContext",Ct(),cn(i)},useEffect:function(i,o){return lt="useEffect",Ct(),Mg(i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",Ct(),VS(i,o,u)},useInsertionEffect:function(i,o){lt="useInsertionEffect",Ct(),Bu(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",Ct(),GS(i,o)},useMemo:function(i,o){lt="useMemo",Ct();var u=ut.H;ut.H=es;try{return KS(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",Ct();var m=ut.H;ut.H=es;try{return PS(i,o,u)}finally{ut.H=m}},useRef:function(i){return lt="useRef",Ct(),FS(i)},useState:function(i){lt="useState",Ct();var o=ut.H;ut.H=es;try{return jS(i)}finally{ut.H=o}},useDebugValue:function(){lt="useDebugValue",Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",Ct(),WS(i,o)},useTransition:function(){return lt="useTransition",Ct(),QS()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",Ct(),BS(i,o,u)},useId:function(){return lt="useId",Ct(),ex()},useActionState:function(i,o){return lt="useActionState",Ct(),cf(i,o)},useFormState:function(i,o){return lt="useFormState",Ct(),wg(),cf(i,o)},useOptimistic:function(i){return lt="useOptimistic",Ct(),HS(i)},useHostTransitionStatus:Uu,useMemoCache:$u,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),tx()},useEffectEvent:function(i){return lt="useEffectEvent",Ct(),qS(i)}},X6={readContext:function(i){return cn(i)},use:bl,useCallback:function(i,o){return lt="useCallback",Ct(),Ig(i,o)},useContext:function(i){return lt="useContext",Ct(),cn(i)},useEffect:function(i,o){lt="useEffect",Ct(),ro(2048,$i,i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",Ct(),Rg(i,o,u)},useInsertionEffect:function(i,o){return lt="useInsertionEffect",Ct(),ro(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",Ct(),ro(4,Co,i,o)},useMemo:function(i,o){lt="useMemo",Ct();var u=ut.H;ut.H=da;try{return Og(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",Ct();var m=ut.H;ut.H=da;try{return uf(i,o,u)}finally{ut.H=m}},useRef:function(){return lt="useRef",Ct(),Pr().memoizedState},useState:function(){lt="useState",Ct();var i=ut.H;ut.H=da;try{return uf(aa)}finally{ut.H=i}},useDebugValue:function(){lt="useDebugValue",Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",Ct(),NR(i,o)},useTransition:function(){return lt="useTransition",Ct(),BR()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",Ct(),Tg(i,o,u)},useId:function(){return lt="useId",Ct(),Pr().memoizedState},useFormState:function(i){return lt="useFormState",Ct(),wg(),kg(i)},useActionState:function(i){return lt="useActionState",Ct(),kg(i)},useOptimistic:function(i,o){return lt="useOptimistic",Ct(),wR(i,o)},useHostTransitionStatus:Uu,useMemoCache:$u,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),Pr().memoizedState},useEffectEvent:function(i){return lt="useEffectEvent",Ct(),Cg(i)}},CO={readContext:function(i){return cn(i)},use:bl,useCallback:function(i,o){return lt="useCallback",Ct(),Ig(i,o)},useContext:function(i){return lt="useContext",Ct(),cn(i)},useEffect:function(i,o){lt="useEffect",Ct(),ro(2048,$i,i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",Ct(),Rg(i,o,u)},useInsertionEffect:function(i,o){return lt="useInsertionEffect",Ct(),ro(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",Ct(),ro(4,Co,i,o)},useMemo:function(i,o){lt="useMemo",Ct();var u=ut.H;ut.H=z1;try{return Og(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",Ct();var m=ut.H;ut.H=z1;try{return Zh(i,o,u)}finally{ut.H=m}},useRef:function(){return lt="useRef",Ct(),Pr().memoizedState},useState:function(){lt="useState",Ct();var i=ut.H;ut.H=z1;try{return Zh(aa)}finally{ut.H=i}},useDebugValue:function(){lt="useDebugValue",Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",Ct(),DR(i,o)},useTransition:function(){return lt="useTransition",Ct(),UR()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",Ct(),Tg(i,o,u)},useId:function(){return lt="useId",Ct(),Pr().memoizedState},useFormState:function(i){return lt="useFormState",Ct(),wg(),Ag(i)},useActionState:function(i){return lt="useActionState",Ct(),Ag(i)},useOptimistic:function(i,o){return lt="useOptimistic",Ct(),TR(i,o)},useHostTransitionStatus:Uu,useMemoCache:$u,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),Pr().memoizedState},useEffectEvent:function(i){return lt="useEffectEvent",Ct(),Cg(i)}},es={readContext:function(i){return b(),cn(i)},use:function(i){return d(),bl(i)},useCallback:function(i,o){return lt="useCallback",d(),dr(),YS(i,o)},useContext:function(i){return lt="useContext",d(),dr(),cn(i)},useEffect:function(i,o){return lt="useEffect",d(),dr(),Mg(i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",d(),dr(),VS(i,o,u)},useInsertionEffect:function(i,o){lt="useInsertionEffect",d(),dr(),Bu(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",d(),dr(),GS(i,o)},useMemo:function(i,o){lt="useMemo",d(),dr();var u=ut.H;ut.H=es;try{return KS(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",d(),dr();var m=ut.H;ut.H=es;try{return PS(i,o,u)}finally{ut.H=m}},useRef:function(i){return lt="useRef",d(),dr(),FS(i)},useState:function(i){lt="useState",d(),dr();var o=ut.H;ut.H=es;try{return jS(i)}finally{ut.H=o}},useDebugValue:function(){lt="useDebugValue",d(),dr()},useDeferredValue:function(i,o){return lt="useDeferredValue",d(),dr(),WS(i,o)},useTransition:function(){return lt="useTransition",d(),dr(),QS()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",d(),dr(),BS(i,o,u)},useId:function(){return lt="useId",d(),dr(),ex()},useFormState:function(i,o){return lt="useFormState",d(),dr(),cf(i,o)},useActionState:function(i,o){return lt="useActionState",d(),dr(),cf(i,o)},useOptimistic:function(i){return lt="useOptimistic",d(),dr(),HS(i)},useMemoCache:function(i){return d(),$u(i)},useHostTransitionStatus:Uu,useCacheRefresh:function(){return lt="useCacheRefresh",dr(),tx()},useEffectEvent:function(i){return lt="useEffectEvent",d(),dr(),qS(i)}},da={readContext:function(i){return b(),cn(i)},use:function(i){return d(),bl(i)},useCallback:function(i,o){return lt="useCallback",d(),Ct(),Ig(i,o)},useContext:function(i){return lt="useContext",d(),Ct(),cn(i)},useEffect:function(i,o){lt="useEffect",d(),Ct(),ro(2048,$i,i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",d(),Ct(),Rg(i,o,u)},useInsertionEffect:function(i,o){return lt="useInsertionEffect",d(),Ct(),ro(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",d(),Ct(),ro(4,Co,i,o)},useMemo:function(i,o){lt="useMemo",d(),Ct();var u=ut.H;ut.H=da;try{return Og(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",d(),Ct();var m=ut.H;ut.H=da;try{return uf(i,o,u)}finally{ut.H=m}},useRef:function(){return lt="useRef",d(),Ct(),Pr().memoizedState},useState:function(){lt="useState",d(),Ct();var i=ut.H;ut.H=da;try{return uf(aa)}finally{ut.H=i}},useDebugValue:function(){lt="useDebugValue",d(),Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",d(),Ct(),NR(i,o)},useTransition:function(){return lt="useTransition",d(),Ct(),BR()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",d(),Ct(),Tg(i,o,u)},useId:function(){return lt="useId",d(),Ct(),Pr().memoizedState},useFormState:function(i){return lt="useFormState",d(),Ct(),kg(i)},useActionState:function(i){return lt="useActionState",d(),Ct(),kg(i)},useOptimistic:function(i,o){return lt="useOptimistic",d(),Ct(),wR(i,o)},useMemoCache:function(i){return d(),$u(i)},useHostTransitionStatus:Uu,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),Pr().memoizedState},useEffectEvent:function(i){return lt="useEffectEvent",d(),Ct(),Cg(i)}},z1={readContext:function(i){return b(),cn(i)},use:function(i){return d(),bl(i)},useCallback:function(i,o){return lt="useCallback",d(),Ct(),Ig(i,o)},useContext:function(i){return lt="useContext",d(),Ct(),cn(i)},useEffect:function(i,o){lt="useEffect",d(),Ct(),ro(2048,$i,i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",d(),Ct(),Rg(i,o,u)},useInsertionEffect:function(i,o){return lt="useInsertionEffect",d(),Ct(),ro(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",d(),Ct(),ro(4,Co,i,o)},useMemo:function(i,o){lt="useMemo",d(),Ct();var u=ut.H;ut.H=da;try{return Og(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",d(),Ct();var m=ut.H;ut.H=da;try{return Zh(i,o,u)}finally{ut.H=m}},useRef:function(){return lt="useRef",d(),Ct(),Pr().memoizedState},useState:function(){lt="useState",d(),Ct();var i=ut.H;ut.H=da;try{return Zh(aa)}finally{ut.H=i}},useDebugValue:function(){lt="useDebugValue",d(),Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",d(),Ct(),DR(i,o)},useTransition:function(){return lt="useTransition",d(),Ct(),UR()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",d(),Ct(),Tg(i,o,u)},useId:function(){return lt="useId",d(),Ct(),Pr().memoizedState},useFormState:function(i){return lt="useFormState",d(),Ct(),Ag(i)},useActionState:function(i){return lt="useActionState",d(),Ct(),Ag(i)},useOptimistic:function(i,o){return lt="useOptimistic",d(),Ct(),TR(i,o)},useMemoCache:function(i){return d(),$u(i)},useHostTransitionStatus:Uu,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),Pr().memoizedState},useEffectEvent:function(i){return lt="useEffectEvent",d(),Ct(),Cg(i)}};var RO={},IO=new Set,OO=new Set,NO=new Set,DO=new Set,zO=new Set,LO=new Set,PO=new Set,$O=new Set,BO=new Set,UO=new Set;Object.freeze(RO);var J6={enqueueSetState:function(i,o,u){i=i._reactInternals;var m=_o(i),E=hl(m);E.payload=o,u!==void 0&&u!==null&&(nx(u),E.callback=u),o=pl(i,E,m),o!==null&&(Ia(m,"this.setState()",i),Sn(o,i,m),Bh(o,i,m))},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var m=_o(i),E=hl(m);E.tag=_O,E.payload=o,u!==void 0&&u!==null&&(nx(u),E.callback=u),o=pl(i,E,m),o!==null&&(Ia(m,"this.replaceState()",i),Sn(o,i,m),Bh(o,i,m))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=_o(i),m=hl(u);m.tag=wO,o!==void 0&&o!==null&&(nx(o),m.callback=o),o=pl(i,m,u),o!==null&&(Ia(u,"this.forceUpdate()",i),Sn(o,i,u),Bh(o,i,u))}},Vf=null,Q6=null,e_=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Zn=!1,jO={},HO={},ZO={},FO={},Yf=!1,qO={},L1={},t_={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},GO=!1,VO=null;VO=new Set;var Bs=!1,Fn=!1,r_=!1,YO=typeof WeakSet==="function"?WeakSet:Set,ni=null,Kf=null,Wf=null,qn=null,oo=!1,ha=null,Wn=!1,Bp=8192,EJ={getCacheForType:function(i){var o=cn(Un),u=o.data.get(i);return u===void 0&&(u=i(),o.data.set(i,u)),u},cacheSignal:function(){return cn(Un).controller.signal},getOwner:function(){return To}};if(typeof Symbol==="function"&&Symbol.for){var Up=Symbol.for;Up("selector.component"),Up("selector.has_pseudo_class"),Up("selector.role"),Up("selector.test_id"),Up("selector.text")}var TJ=[],kJ=typeof WeakMap==="function"?WeakMap:Map,ii=0,Xn=2,Ro=4,Us=0,jp=1,rc=2,P1=3,Ll=4,$1=6,KO=5,Mr=ii,qr=null,fr=null,ur=0,ao=0,B1=1,nc=2,Hp=3,WO=4,n_=5,Zp=6,U1=7,i_=8,ic=9,$r=ao,Io=null,Pl=!1,Xf=!1,o_=!1,ts=0,gn=Us,$l=0,Bl=0,a_=0,so=0,oc=0,Fp=null,Bi=null,j1=!1,H1=0,XO=0,JO=300,Z1=1/0,QO=500,qp=null,Rn=null,Ul=null,F1=0,s_=1,l_=2,eN=3,jl=0,tN=1,rN=2,nN=3,iN=4,q1=5,Gn=0,Hl=null,Jf=null,pa=0,u_=0,c_=-0,f_=null,oN=null,aN=null,ma=F1,sN=null,AJ=50,Gp=0,d_=null,h_=!1,G1=!1,MJ=50,ac=0,Vp=null,Qf=!1,V1=null,lN=!1,uN=new Set,CJ={},Y1=null,ed=null,p_=!1,m_=!1,K1=!1,g_=!1,Zl=0,b_={};(function(){for(var i=0;i<M6.length;i++){var o=M6[i],u=o.toLowerCase();o=o[0].toUpperCase()+o.slice(1),oa(u,"on"+o)}oa(BI,"onAnimationEnd"),oa(UI,"onAnimationIteration"),oa(jI,"onAnimationStart"),oa("dblclick","onDoubleClick"),oa("focusin","onFocus"),oa("focusout","onBlur"),oa(oJ,"onTransitionRun"),oa(aJ,"onTransitionStart"),oa(sJ,"onTransitionCancel"),oa(HI,"onTransitionEnd")})(),nt("onMouseEnter",["mouseout","mouseover"]),nt("onMouseLeave",["mouseout","mouseover"]),nt("onPointerEnter",["pointerout","pointerover"]),nt("onPointerLeave",["pointerout","pointerover"]),tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tt("onBeforeInput",["compositionend","keypress","textInput","paste"]),tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),y_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yp)),W1="_reactListening"+Math.random().toString(36).slice(2),cN=!1,fN=!1,X1=!1,dN=!1,J1=!1,Q1=!1,hN=!1,eb={},RJ=/\r\n?/g,IJ=/\u0000|\uFFFD/g,sc="http://www.w3.org/1999/xlink",v_="http://www.w3.org/XML/1998/namespace",OJ="javascript:throw new Error('React form unexpectedly submitted.')",NJ="suppressHydrationWarning",lc="&",tb="/&",Kp="$",Wp="/$",Fl="$?",uc="$~",td="$!",DJ="html",zJ="body",LJ="head",S_="F!",pN="F",mN="loading",PJ="style",js=0,rd=1,rb=2,x_=null,__=null,gN={dialog:!0,webview:!0},w_=null,Xp=void 0,bN=typeof setTimeout==="function"?setTimeout:void 0,$J=typeof clearTimeout==="function"?clearTimeout:void 0,cc=-1,yN=typeof Promise==="function"?Promise:void 0,BJ=typeof queueMicrotask==="function"?queueMicrotask:typeof yN<"u"?function(i){return yN.resolve(null).then(i).catch(wW)}:bN,E_=null,fc=0,Jp=1,vN=2,SN=3,Ko=4,Wo=new Map,xN=new Set,Hs=Dr.d;Dr.d={f:function(){var i=Hs.f(),o=mf();return i||o},r:function(i){var o=at(i);o!==null&&o.tag===5&&o.type==="form"?$R(o):Hs.r(i)},D:function(i){Hs.D(i),I7("dns-prefetch",i,null)},C:function(i,o){Hs.C(i,o),I7("preconnect",i,o)},L:function(i,o,u){Hs.L(i,o,u);var m=nd;if(m&&i&&o){var E='link[rel="preload"][as="'+zr(o)+'"]';o==="image"?u&&u.imageSrcSet?(E+='[imagesrcset="'+zr(u.imageSrcSet)+'"]',typeof u.imageSizes==="string"&&(E+='[imagesizes="'+zr(u.imageSizes)+'"]')):E+='[href="'+zr(i)+'"]':E+='[href="'+zr(i)+'"]';var M=E;switch(o){case"style":M=yf(i);break;case"script":M=vf(i)}Wo.has(M)||(i=hr({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),Wo.set(M,i),m.querySelector(E)!==null||o==="style"&&m.querySelector(ip(M))||o==="script"&&m.querySelector(op(M))||(o=m.createElement("link"),pi(o,"link",i),ht(o),m.head.appendChild(o)))}},m:function(i,o){Hs.m(i,o);var u=nd;if(u&&i){var m=o&&typeof o.as==="string"?o.as:"script",E='link[rel="modulepreload"][as="'+zr(m)+'"][href="'+zr(i)+'"]',M=E;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=vf(i)}if(!Wo.has(M)&&(i=hr({rel:"modulepreload",href:i},o),Wo.set(M,i),u.querySelector(E)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(op(M)))return}m=u.createElement("link"),pi(m,"link",i),ht(m),u.head.appendChild(m)}}},X:function(i,o){Hs.X(i,o);var u=nd;if(u&&i){var m=qe(u).hoistableScripts,E=vf(i),M=m.get(E);M||(M=u.querySelector(op(E)),M||(i=hr({src:i,async:!0},o),(o=Wo.get(E))&&Vx(i,o),M=u.createElement("script"),ht(M),pi(M,"link",i),u.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},m.set(E,M))}},S:function(i,o,u){Hs.S(i,o,u);var m=nd;if(m&&i){var E=qe(m).hoistableStyles,M=yf(i);o=o||"default";var D=E.get(M);if(!D){var H={loading:fc,preload:null};if(D=m.querySelector(ip(M)))H.loading=Jp|Ko;else{i=hr({rel:"stylesheet",href:i,"data-precedence":o},u),(u=Wo.get(M))&&Gx(i,u);var X=D=m.createElement("link");ht(X),pi(X,"link",i),X._p=new Promise(function(ne,je){X.onload=ne,X.onerror=je}),X.addEventListener("load",function(){H.loading|=Jp}),X.addEventListener("error",function(){H.loading|=vN}),H.loading|=Ko,Xg(D,o,m)}D={type:"stylesheet",instance:D,count:1,state:H},E.set(M,D)}}},M:function(i,o){Hs.M(i,o);var u=nd;if(u&&i){var m=qe(u).hoistableScripts,E=vf(i),M=m.get(E);M||(M=u.querySelector(op(E)),M||(i=hr({src:i,async:!0,type:"module"},o),(o=Wo.get(E))&&Vx(i,o),M=u.createElement("script"),ht(M),pi(M,"link",i),u.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},m.set(E,M))}}};var nd=typeof document>"u"?null:document,nb=null,UJ=60000,jJ=800,HJ=500,T_=0,k_=null,ib=null,dc=nX,Qp={$$typeof:qa,Provider:null,Consumer:null,_currentValue:dc,_currentValue2:dc,_threadCount:0},_N="%c%s%c",wN="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",EN="",ob=" ",ZJ=Function.prototype.bind,TN=!1,kN=null,AN=null,MN=null,CN=null,RN=null,IN=null,ON=null,NN=null,DN=null,zN=null;kN=function(i,o,u,m){o=e(i,o),o!==null&&(u=t(o.memoizedState,u,0,m),o.memoizedState=u,o.baseState=u,i.memoizedProps=hr({},i.memoizedProps),u=Si(i,2),u!==null&&Sn(u,i,2))},AN=function(i,o,u){o=e(i,o),o!==null&&(u=n(o.memoizedState,u,0),o.memoizedState=u,o.baseState=u,i.memoizedProps=hr({},i.memoizedProps),u=Si(i,2),u!==null&&Sn(u,i,2))},MN=function(i,o,u,m){o=e(i,o),o!==null&&(u=r(o.memoizedState,u,m),o.memoizedState=u,o.baseState=u,i.memoizedProps=hr({},i.memoizedProps),u=Si(i,2),u!==null&&Sn(u,i,2))},CN=function(i,o,u){i.pendingProps=t(i.memoizedProps,o,0,u),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Si(i,2),o!==null&&Sn(o,i,2)},RN=function(i,o){i.pendingProps=n(i.memoizedProps,o,0),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Si(i,2),o!==null&&Sn(o,i,2)},IN=function(i,o,u){i.pendingProps=r(i.memoizedProps,o,u),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Si(i,2),o!==null&&Sn(o,i,2)},ON=function(i){var o=Si(i,2);o!==null&&Sn(o,i,2)},NN=function(i){var o=Ye(),u=Si(i,o);u!==null&&Sn(u,i,o)},DN=function(i){s=i},zN=function(i){l=i};var ab=!0,sb=null,A_=!1,ql=null,Gl=null,Vl=null,em=new Map,tm=new Map,Yl=[],FJ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),lb=null;if(r1.prototype.render=Qx.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error("Cannot update an unmounted root.");var u=arguments;typeof u[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):N(u[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof u[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),u=i;var m=o.current,E=_o(m);Yx(m,E,u,o,null,null)},r1.prototype.unmount=Qx.prototype.unmount=function(){var i=arguments;if(typeof i[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),i=this._internalRoot,i!==null){this._internalRoot=null;var o=i.containerInfo;(Mr&(Xn|Ro))!==ii&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Yx(i.current,2,null,i,null,null),mf(),o[El]=null}},r1.prototype.unstable_scheduleHydration=function(i){if(i){var o=te();i={blockedOn:null,target:i,priority:o};for(var u=0;u<Yl.length&&o!==0&&o<Yl[u].priority;u++);Yl.splice(u,0,i),u===0&&q7(i)}},function(){var i=id.version;if(i!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+m+">.");var D="";u!=null&&i!==u&&(m=null,typeof u.tag==="number"?m=Y(u):typeof u.name==="string"&&(m=u.name),m&&(D=" It was passed a child from "+m+".")),be(o,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',M,D)})}}};var ec=fR(!0),SO=fR(!1),xO=0,_O=1,wO=2,G6=3,zl=!1,EO=!1,V6=null,Y6=!1,Zf=Te(null),I1=Te(0),Mo=Te(null),Go=null,Ff=1,zp=2,zn=Te(0),O1=0,Vo=1,Pi=2,Co=4,$i=8,qf,TO=new Set,kO=new Set,K6=new Set,AO=new Set,Ls=0,Qt=null,Fr=null,Hn=null,N1=!1,Gf=!1,tc=!1,D1=0,Lp=0,Ps=null,_J=0,wJ=25,lt=null,Yo=null,$s=-1,Pp=!1,$p={readContext:cn,use:bl,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useLayoutEffect:Cn,useInsertionEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useSyncExternalStore:Cn,useId:Cn,useHostTransitionStatus:Cn,useFormState:Cn,useActionState:Cn,useOptimistic:Cn,useMemoCache:Cn,useCacheRefresh:Cn};$p.useEffectEvent=Cn;var W6=null,MO=null,X6=null,CO=null,es=null,da=null,z1=null;W6={readContext:function(i){return cn(i)},use:bl,useCallback:function(i,o){return lt="useCallback",dr(),lf(o),YS(i,o)},useContext:function(i){return lt="useContext",dr(),cn(i)},useEffect:function(i,o){return lt="useEffect",dr(),lf(o),Mg(i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",dr(),lf(u),VS(i,o,u)},useInsertionEffect:function(i,o){lt="useInsertionEffect",dr(),lf(o),Bu(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",dr(),lf(o),GS(i,o)},useMemo:function(i,o){lt="useMemo",dr(),lf(o);var u=ut.H;ut.H=es;try{return KS(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",dr();var m=ut.H;ut.H=es;try{return PS(i,o,u)}finally{ut.H=m}},useRef:function(i){return lt="useRef",dr(),FS(i)},useState:function(i){lt="useState",dr();var o=ut.H;ut.H=es;try{return jS(i)}finally{ut.H=o}},useDebugValue:function(){lt="useDebugValue",dr()},useDeferredValue:function(i,o){return lt="useDeferredValue",dr(),WS(i,o)},useTransition:function(){return lt="useTransition",dr(),QS()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",dr(),BS(i,o,u)},useId:function(){return lt="useId",dr(),ex()},useFormState:function(i,o){return lt="useFormState",dr(),wg(),cf(i,o)},useActionState:function(i,o){return lt="useActionState",dr(),cf(i,o)},useOptimistic:function(i){return lt="useOptimistic",dr(),HS(i)},useHostTransitionStatus:Uu,useMemoCache:$u,useCacheRefresh:function(){return lt="useCacheRefresh",dr(),tx()},useEffectEvent:function(i){return lt="useEffectEvent",dr(),qS(i)}},MO={readContext:function(i){return cn(i)},use:bl,useCallback:function(i,o){return lt="useCallback",Ct(),YS(i,o)},useContext:function(i){return lt="useContext",Ct(),cn(i)},useEffect:function(i,o){return lt="useEffect",Ct(),Mg(i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",Ct(),VS(i,o,u)},useInsertionEffect:function(i,o){lt="useInsertionEffect",Ct(),Bu(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",Ct(),GS(i,o)},useMemo:function(i,o){lt="useMemo",Ct();var u=ut.H;ut.H=es;try{return KS(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",Ct();var m=ut.H;ut.H=es;try{return PS(i,o,u)}finally{ut.H=m}},useRef:function(i){return lt="useRef",Ct(),FS(i)},useState:function(i){lt="useState",Ct();var o=ut.H;ut.H=es;try{return jS(i)}finally{ut.H=o}},useDebugValue:function(){lt="useDebugValue",Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",Ct(),WS(i,o)},useTransition:function(){return lt="useTransition",Ct(),QS()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",Ct(),BS(i,o,u)},useId:function(){return lt="useId",Ct(),ex()},useActionState:function(i,o){return lt="useActionState",Ct(),cf(i,o)},useFormState:function(i,o){return lt="useFormState",Ct(),wg(),cf(i,o)},useOptimistic:function(i){return lt="useOptimistic",Ct(),HS(i)},useHostTransitionStatus:Uu,useMemoCache:$u,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),tx()},useEffectEvent:function(i){return lt="useEffectEvent",Ct(),qS(i)}},X6={readContext:function(i){return cn(i)},use:bl,useCallback:function(i,o){return lt="useCallback",Ct(),Ig(i,o)},useContext:function(i){return lt="useContext",Ct(),cn(i)},useEffect:function(i,o){lt="useEffect",Ct(),ro(2048,$i,i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",Ct(),Rg(i,o,u)},useInsertionEffect:function(i,o){return lt="useInsertionEffect",Ct(),ro(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",Ct(),ro(4,Co,i,o)},useMemo:function(i,o){lt="useMemo",Ct();var u=ut.H;ut.H=da;try{return Og(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",Ct();var m=ut.H;ut.H=da;try{return uf(i,o,u)}finally{ut.H=m}},useRef:function(){return lt="useRef",Ct(),Pr().memoizedState},useState:function(){lt="useState",Ct();var i=ut.H;ut.H=da;try{return uf(aa)}finally{ut.H=i}},useDebugValue:function(){lt="useDebugValue",Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",Ct(),NR(i,o)},useTransition:function(){return lt="useTransition",Ct(),BR()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",Ct(),Tg(i,o,u)},useId:function(){return lt="useId",Ct(),Pr().memoizedState},useFormState:function(i){return lt="useFormState",Ct(),wg(),kg(i)},useActionState:function(i){return lt="useActionState",Ct(),kg(i)},useOptimistic:function(i,o){return lt="useOptimistic",Ct(),wR(i,o)},useHostTransitionStatus:Uu,useMemoCache:$u,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),Pr().memoizedState},useEffectEvent:function(i){return lt="useEffectEvent",Ct(),Cg(i)}},CO={readContext:function(i){return cn(i)},use:bl,useCallback:function(i,o){return lt="useCallback",Ct(),Ig(i,o)},useContext:function(i){return lt="useContext",Ct(),cn(i)},useEffect:function(i,o){lt="useEffect",Ct(),ro(2048,$i,i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",Ct(),Rg(i,o,u)},useInsertionEffect:function(i,o){return lt="useInsertionEffect",Ct(),ro(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",Ct(),ro(4,Co,i,o)},useMemo:function(i,o){lt="useMemo",Ct();var u=ut.H;ut.H=z1;try{return Og(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",Ct();var m=ut.H;ut.H=z1;try{return Zh(i,o,u)}finally{ut.H=m}},useRef:function(){return lt="useRef",Ct(),Pr().memoizedState},useState:function(){lt="useState",Ct();var i=ut.H;ut.H=z1;try{return Zh(aa)}finally{ut.H=i}},useDebugValue:function(){lt="useDebugValue",Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",Ct(),DR(i,o)},useTransition:function(){return lt="useTransition",Ct(),UR()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",Ct(),Tg(i,o,u)},useId:function(){return lt="useId",Ct(),Pr().memoizedState},useFormState:function(i){return lt="useFormState",Ct(),wg(),Ag(i)},useActionState:function(i){return lt="useActionState",Ct(),Ag(i)},useOptimistic:function(i,o){return lt="useOptimistic",Ct(),TR(i,o)},useHostTransitionStatus:Uu,useMemoCache:$u,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),Pr().memoizedState},useEffectEvent:function(i){return lt="useEffectEvent",Ct(),Cg(i)}},es={readContext:function(i){return b(),cn(i)},use:function(i){return d(),bl(i)},useCallback:function(i,o){return lt="useCallback",d(),dr(),YS(i,o)},useContext:function(i){return lt="useContext",d(),dr(),cn(i)},useEffect:function(i,o){return lt="useEffect",d(),dr(),Mg(i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",d(),dr(),VS(i,o,u)},useInsertionEffect:function(i,o){lt="useInsertionEffect",d(),dr(),Bu(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",d(),dr(),GS(i,o)},useMemo:function(i,o){lt="useMemo",d(),dr();var u=ut.H;ut.H=es;try{return KS(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",d(),dr();var m=ut.H;ut.H=es;try{return PS(i,o,u)}finally{ut.H=m}},useRef:function(i){return lt="useRef",d(),dr(),FS(i)},useState:function(i){lt="useState",d(),dr();var o=ut.H;ut.H=es;try{return jS(i)}finally{ut.H=o}},useDebugValue:function(){lt="useDebugValue",d(),dr()},useDeferredValue:function(i,o){return lt="useDeferredValue",d(),dr(),WS(i,o)},useTransition:function(){return lt="useTransition",d(),dr(),QS()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",d(),dr(),BS(i,o,u)},useId:function(){return lt="useId",d(),dr(),ex()},useFormState:function(i,o){return lt="useFormState",d(),dr(),cf(i,o)},useActionState:function(i,o){return lt="useActionState",d(),dr(),cf(i,o)},useOptimistic:function(i){return lt="useOptimistic",d(),dr(),HS(i)},useMemoCache:function(i){return d(),$u(i)},useHostTransitionStatus:Uu,useCacheRefresh:function(){return lt="useCacheRefresh",dr(),tx()},useEffectEvent:function(i){return lt="useEffectEvent",d(),dr(),qS(i)}},da={readContext:function(i){return b(),cn(i)},use:function(i){return d(),bl(i)},useCallback:function(i,o){return lt="useCallback",d(),Ct(),Ig(i,o)},useContext:function(i){return lt="useContext",d(),Ct(),cn(i)},useEffect:function(i,o){lt="useEffect",d(),Ct(),ro(2048,$i,i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",d(),Ct(),Rg(i,o,u)},useInsertionEffect:function(i,o){return lt="useInsertionEffect",d(),Ct(),ro(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",d(),Ct(),ro(4,Co,i,o)},useMemo:function(i,o){lt="useMemo",d(),Ct();var u=ut.H;ut.H=da;try{return Og(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",d(),Ct();var m=ut.H;ut.H=da;try{return uf(i,o,u)}finally{ut.H=m}},useRef:function(){return lt="useRef",d(),Ct(),Pr().memoizedState},useState:function(){lt="useState",d(),Ct();var i=ut.H;ut.H=da;try{return uf(aa)}finally{ut.H=i}},useDebugValue:function(){lt="useDebugValue",d(),Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",d(),Ct(),NR(i,o)},useTransition:function(){return lt="useTransition",d(),Ct(),BR()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",d(),Ct(),Tg(i,o,u)},useId:function(){return lt="useId",d(),Ct(),Pr().memoizedState},useFormState:function(i){return lt="useFormState",d(),Ct(),kg(i)},useActionState:function(i){return lt="useActionState",d(),Ct(),kg(i)},useOptimistic:function(i,o){return lt="useOptimistic",d(),Ct(),wR(i,o)},useMemoCache:function(i){return d(),$u(i)},useHostTransitionStatus:Uu,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),Pr().memoizedState},useEffectEvent:function(i){return lt="useEffectEvent",d(),Ct(),Cg(i)}},z1={readContext:function(i){return b(),cn(i)},use:function(i){return d(),bl(i)},useCallback:function(i,o){return lt="useCallback",d(),Ct(),Ig(i,o)},useContext:function(i){return lt="useContext",d(),Ct(),cn(i)},useEffect:function(i,o){lt="useEffect",d(),Ct(),ro(2048,$i,i,o)},useImperativeHandle:function(i,o,u){return lt="useImperativeHandle",d(),Ct(),Rg(i,o,u)},useInsertionEffect:function(i,o){return lt="useInsertionEffect",d(),Ct(),ro(4,Pi,i,o)},useLayoutEffect:function(i,o){return lt="useLayoutEffect",d(),Ct(),ro(4,Co,i,o)},useMemo:function(i,o){lt="useMemo",d(),Ct();var u=ut.H;ut.H=da;try{return Og(i,o)}finally{ut.H=u}},useReducer:function(i,o,u){lt="useReducer",d(),Ct();var m=ut.H;ut.H=da;try{return Zh(i,o,u)}finally{ut.H=m}},useRef:function(){return lt="useRef",d(),Ct(),Pr().memoizedState},useState:function(){lt="useState",d(),Ct();var i=ut.H;ut.H=da;try{return Zh(aa)}finally{ut.H=i}},useDebugValue:function(){lt="useDebugValue",d(),Ct()},useDeferredValue:function(i,o){return lt="useDeferredValue",d(),Ct(),DR(i,o)},useTransition:function(){return lt="useTransition",d(),Ct(),UR()},useSyncExternalStore:function(i,o,u){return lt="useSyncExternalStore",d(),Ct(),Tg(i,o,u)},useId:function(){return lt="useId",d(),Ct(),Pr().memoizedState},useFormState:function(i){return lt="useFormState",d(),Ct(),Ag(i)},useActionState:function(i){return lt="useActionState",d(),Ct(),Ag(i)},useOptimistic:function(i,o){return lt="useOptimistic",d(),Ct(),TR(i,o)},useMemoCache:function(i){return d(),$u(i)},useHostTransitionStatus:Uu,useCacheRefresh:function(){return lt="useCacheRefresh",Ct(),Pr().memoizedState},useEffectEvent:function(i){return lt="useEffectEvent",d(),Ct(),Cg(i)}};var RO={},IO=new Set,OO=new Set,NO=new Set,DO=new Set,zO=new Set,LO=new Set,PO=new Set,$O=new Set,BO=new Set,UO=new Set;Object.freeze(RO);var J6={enqueueSetState:function(i,o,u){i=i._reactInternals;var m=_o(i),E=hl(m);E.payload=o,u!==void 0&&u!==null&&(nx(u),E.callback=u),o=pl(i,E,m),o!==null&&(Ia(m,"this.setState()",i),vn(o,i,m),Bh(o,i,m))},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var m=_o(i),E=hl(m);E.tag=_O,E.payload=o,u!==void 0&&u!==null&&(nx(u),E.callback=u),o=pl(i,E,m),o!==null&&(Ia(m,"this.replaceState()",i),vn(o,i,m),Bh(o,i,m))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=_o(i),m=hl(u);m.tag=wO,o!==void 0&&o!==null&&(nx(o),m.callback=o),o=pl(i,m,u),o!==null&&(Ia(u,"this.forceUpdate()",i),vn(o,i,u),Bh(o,i,u))}},Vf=null,Q6=null,e_=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Zn=!1,jO={},HO={},ZO={},FO={},Yf=!1,qO={},L1={},t_={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},GO=!1,VO=null;VO=new Set;var Bs=!1,Fn=!1,r_=!1,YO=typeof WeakSet==="function"?WeakSet:Set,ni=null,Kf=null,Wf=null,qn=null,oo=!1,ha=null,Wn=!1,Bp=8192,EJ={getCacheForType:function(i){var o=cn(Un),u=o.data.get(i);return u===void 0&&(u=i(),o.data.set(i,u)),u},cacheSignal:function(){return cn(Un).controller.signal},getOwner:function(){return To}};if(typeof Symbol==="function"&&Symbol.for){var Up=Symbol.for;Up("selector.component"),Up("selector.has_pseudo_class"),Up("selector.role"),Up("selector.test_id"),Up("selector.text")}var TJ=[],kJ=typeof WeakMap==="function"?WeakMap:Map,ii=0,Xn=2,Ro=4,Us=0,jp=1,rc=2,P1=3,Ll=4,$1=6,KO=5,Mr=ii,qr=null,fr=null,ur=0,ao=0,B1=1,nc=2,Hp=3,WO=4,n_=5,Zp=6,U1=7,i_=8,ic=9,$r=ao,Io=null,Pl=!1,Xf=!1,o_=!1,ts=0,gn=Us,$l=0,Bl=0,a_=0,so=0,oc=0,Fp=null,Bi=null,j1=!1,H1=0,XO=0,JO=300,Z1=1/0,QO=500,qp=null,Rn=null,Ul=null,F1=0,s_=1,l_=2,eN=3,jl=0,tN=1,rN=2,nN=3,iN=4,q1=5,Gn=0,Hl=null,Jf=null,pa=0,u_=0,c_=-0,f_=null,oN=null,aN=null,ma=F1,sN=null,AJ=50,Gp=0,d_=null,h_=!1,G1=!1,MJ=50,ac=0,Vp=null,Qf=!1,V1=null,lN=!1,uN=new Set,CJ={},Y1=null,ed=null,p_=!1,m_=!1,K1=!1,g_=!1,Zl=0,b_={};(function(){for(var i=0;i<M6.length;i++){var o=M6[i],u=o.toLowerCase();o=o[0].toUpperCase()+o.slice(1),oa(u,"on"+o)}oa(BI,"onAnimationEnd"),oa(UI,"onAnimationIteration"),oa(jI,"onAnimationStart"),oa("dblclick","onDoubleClick"),oa("focusin","onFocus"),oa("focusout","onBlur"),oa(oJ,"onTransitionRun"),oa(aJ,"onTransitionStart"),oa(sJ,"onTransitionCancel"),oa(HI,"onTransitionEnd")})(),nt("onMouseEnter",["mouseout","mouseover"]),nt("onMouseLeave",["mouseout","mouseover"]),nt("onPointerEnter",["pointerout","pointerover"]),nt("onPointerLeave",["pointerout","pointerover"]),tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tt("onBeforeInput",["compositionend","keypress","textInput","paste"]),tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),y_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yp)),W1="_reactListening"+Math.random().toString(36).slice(2),cN=!1,fN=!1,X1=!1,dN=!1,J1=!1,Q1=!1,hN=!1,eb={},RJ=/\r\n?/g,IJ=/\u0000|\uFFFD/g,sc="http://www.w3.org/1999/xlink",v_="http://www.w3.org/XML/1998/namespace",OJ="javascript:throw new Error('React form unexpectedly submitted.')",NJ="suppressHydrationWarning",lc="&",tb="/&",Kp="$",Wp="/$",Fl="$?",uc="$~",td="$!",DJ="html",zJ="body",LJ="head",S_="F!",pN="F",mN="loading",PJ="style",js=0,rd=1,rb=2,x_=null,__=null,gN={dialog:!0,webview:!0},w_=null,Xp=void 0,bN=typeof setTimeout==="function"?setTimeout:void 0,$J=typeof clearTimeout==="function"?clearTimeout:void 0,cc=-1,yN=typeof Promise==="function"?Promise:void 0,BJ=typeof queueMicrotask==="function"?queueMicrotask:typeof yN<"u"?function(i){return yN.resolve(null).then(i).catch(wW)}:bN,E_=null,fc=0,Jp=1,vN=2,SN=3,Ko=4,Wo=new Map,xN=new Set,Hs=Dr.d;Dr.d={f:function(){var i=Hs.f(),o=mf();return i||o},r:function(i){var o=at(i);o!==null&&o.tag===5&&o.type==="form"?$R(o):Hs.r(i)},D:function(i){Hs.D(i),I7("dns-prefetch",i,null)},C:function(i,o){Hs.C(i,o),I7("preconnect",i,o)},L:function(i,o,u){Hs.L(i,o,u);var m=nd;if(m&&i&&o){var E='link[rel="preload"][as="'+zr(o)+'"]';o==="image"?u&&u.imageSrcSet?(E+='[imagesrcset="'+zr(u.imageSrcSet)+'"]',typeof u.imageSizes==="string"&&(E+='[imagesizes="'+zr(u.imageSizes)+'"]')):E+='[href="'+zr(i)+'"]':E+='[href="'+zr(i)+'"]';var M=E;switch(o){case"style":M=yf(i);break;case"script":M=vf(i)}Wo.has(M)||(i=hr({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),Wo.set(M,i),m.querySelector(E)!==null||o==="style"&&m.querySelector(ip(M))||o==="script"&&m.querySelector(op(M))||(o=m.createElement("link"),pi(o,"link",i),ht(o),m.head.appendChild(o)))}},m:function(i,o){Hs.m(i,o);var u=nd;if(u&&i){var m=o&&typeof o.as==="string"?o.as:"script",E='link[rel="modulepreload"][as="'+zr(m)+'"][href="'+zr(i)+'"]',M=E;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=vf(i)}if(!Wo.has(M)&&(i=hr({rel:"modulepreload",href:i},o),Wo.set(M,i),u.querySelector(E)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(op(M)))return}m=u.createElement("link"),pi(m,"link",i),ht(m),u.head.appendChild(m)}}},X:function(i,o){Hs.X(i,o);var u=nd;if(u&&i){var m=qe(u).hoistableScripts,E=vf(i),M=m.get(E);M||(M=u.querySelector(op(E)),M||(i=hr({src:i,async:!0},o),(o=Wo.get(E))&&Vx(i,o),M=u.createElement("script"),ht(M),pi(M,"link",i),u.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},m.set(E,M))}},S:function(i,o,u){Hs.S(i,o,u);var m=nd;if(m&&i){var E=qe(m).hoistableStyles,M=yf(i);o=o||"default";var D=E.get(M);if(!D){var H={loading:fc,preload:null};if(D=m.querySelector(ip(M)))H.loading=Jp|Ko;else{i=hr({rel:"stylesheet",href:i,"data-precedence":o},u),(u=Wo.get(M))&&Gx(i,u);var X=D=m.createElement("link");ht(X),pi(X,"link",i),X._p=new Promise(function(ne,je){X.onload=ne,X.onerror=je}),X.addEventListener("load",function(){H.loading|=Jp}),X.addEventListener("error",function(){H.loading|=vN}),H.loading|=Ko,Xg(D,o,m)}D={type:"stylesheet",instance:D,count:1,state:H},E.set(M,D)}}},M:function(i,o){Hs.M(i,o);var u=nd;if(u&&i){var m=qe(u).hoistableScripts,E=vf(i),M=m.get(E);M||(M=u.querySelector(op(E)),M||(i=hr({src:i,async:!0,type:"module"},o),(o=Wo.get(E))&&Vx(i,o),M=u.createElement("script"),ht(M),pi(M,"link",i),u.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},m.set(E,M))}}};var nd=typeof document>"u"?null:document,nb=null,UJ=60000,jJ=800,HJ=500,T_=0,k_=null,ib=null,dc=nX,Qp={$$typeof:qa,Provider:null,Consumer:null,_currentValue:dc,_currentValue2:dc,_threadCount:0},_N="%c%s%c",wN="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",EN="",ob=" ",ZJ=Function.prototype.bind,TN=!1,kN=null,AN=null,MN=null,CN=null,RN=null,IN=null,ON=null,NN=null,DN=null,zN=null;kN=function(i,o,u,m){o=e(i,o),o!==null&&(u=t(o.memoizedState,u,0,m),o.memoizedState=u,o.baseState=u,i.memoizedProps=hr({},i.memoizedProps),u=Si(i,2),u!==null&&vn(u,i,2))},AN=function(i,o,u){o=e(i,o),o!==null&&(u=n(o.memoizedState,u,0),o.memoizedState=u,o.baseState=u,i.memoizedProps=hr({},i.memoizedProps),u=Si(i,2),u!==null&&vn(u,i,2))},MN=function(i,o,u,m){o=e(i,o),o!==null&&(u=r(o.memoizedState,u,m),o.memoizedState=u,o.baseState=u,i.memoizedProps=hr({},i.memoizedProps),u=Si(i,2),u!==null&&vn(u,i,2))},CN=function(i,o,u){i.pendingProps=t(i.memoizedProps,o,0,u),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Si(i,2),o!==null&&vn(o,i,2)},RN=function(i,o){i.pendingProps=n(i.memoizedProps,o,0),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Si(i,2),o!==null&&vn(o,i,2)},IN=function(i,o,u){i.pendingProps=r(i.memoizedProps,o,u),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Si(i,2),o!==null&&vn(o,i,2)},ON=function(i){var o=Si(i,2);o!==null&&vn(o,i,2)},NN=function(i){var o=Ye(),u=Si(i,o);u!==null&&vn(u,i,o)},DN=function(i){s=i},zN=function(i){l=i};var ab=!0,sb=null,A_=!1,ql=null,Gl=null,Vl=null,em=new Map,tm=new Map,Yl=[],FJ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),lb=null;if(r1.prototype.render=Qx.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error("Cannot update an unmounted root.");var u=arguments;typeof u[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):N(u[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof u[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),u=i;var m=o.current,E=_o(m);Yx(m,E,u,o,null,null)},r1.prototype.unmount=Qx.prototype.unmount=function(){var i=arguments;if(typeof i[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),i=this._internalRoot,i!==null){this._internalRoot=null;var o=i.containerInfo;(Mr&(Xn|Ro))!==ii&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Yx(i.current,2,null,i,null,null),mf(),o[El]=null}},r1.prototype.unstable_scheduleHydration=function(i){if(i){var o=te();i={blockedOn:null,target:i,priority:o};for(var u=0;u<Yl.length&&o!==0&&o<Yl[u].priority;u++);Yl.splice(u,0,i),u===0&&q7(i)}},function(){var i=id.version;if(i!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
224
  - react: `+(i+`
225
225
  - react-dom: 19.2.7
226
226
  Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Dr.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0){if(typeof i.render==="function")throw Error("Unable to find node on an unmounted component.");throw i=Object.keys(i).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+i)}return i=W(o),i=i!==null?J(i):null,i=i===null?null:i.stateNode,i},!function(){var i={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:ut,reconcilerVersion:"19.2.7"};return i.overrideHookState=kN,i.overrideHookStateDeletePath=AN,i.overrideHookStateRenamePath=MN,i.overrideProps=CN,i.overridePropsDeletePath=RN,i.overridePropsRenamePath=IN,i.scheduleUpdate=ON,i.scheduleRetry=NN,i.setErrorHandler=DN,i.setSuspenseHandler=zN,i.scheduleRefresh=I,i.scheduleRoot=A,i.setRefreshHandler=O,i.getCurrentFiber=KW,Ie(i)}()&&Wa&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var LN=window.location.protocol;/^(https?|file):$/.test(LN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(LN==="file:"?`
@@ -373,11 +373,11 @@ Please report this to https://github.com/markedjs/marked.`,e){let a="<p>An error
373
373
  `)}else d=e.stylize("[Circular]","special");if(Sh(s)){if(l&&n.match(/^\d+$/))return d;if(s=JSON.stringify(""+n),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))s=s.slice(1,-1),s=e.stylize(s,"name");else s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string")}return s+": "+d}function m0e(e,t,r){var a=0,n=e.reduce(function(l,s){if(a++,s.indexOf(`
374
374
  `)>=0)a++;return l+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(n>60)return r[0]+(t===""?"":t+`
375
375
  `)+" "+e.join(`,
376
- `)+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}function yV(e){return Array.isArray(e)}function LM(e){return typeof e==="boolean"}function P2(e){return e===null}function b0e(e){return e==null}function vV(e){return typeof e==="number"}function $2(e){return typeof e==="string"}function y0e(e){return typeof e==="symbol"}function Sh(e){return e===void 0}function N2(e){return xh(e)&&PM(e)==="[object RegExp]"}function xh(e){return typeof e==="object"&&e!==null}function DM(e){return xh(e)&&PM(e)==="[object Date]"}function D2(e){return xh(e)&&(PM(e)==="[object Error]"||e instanceof Error)}function z2(e){return typeof e==="function"}function v0e(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e>"u"}function S0e(e){return e instanceof Buffer}function PM(e){return Object.prototype.toString.call(e)}function OM(e){return e<10?"0"+e.toString(10):e.toString(10)}function _0e(){var e=new Date,t=[OM(e.getHours()),OM(e.getMinutes()),OM(e.getSeconds())].join(":");return[e.getDate(),x0e[e.getMonth()],t].join(" ")}function SV(...e){console.log("%s - %s",_0e(),zM.apply(null,e))}function xV(e,t){if(t)e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function $M(e,t){if(!t||!xh(t))return e;var r=Object.keys(t),a=r.length;while(a--)e[r[a]]=t[r[a]];return e}function _V(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function BM(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function EV(e){if(typeof e!=="function")throw TypeError('The "original" argument must be of type Function');function t(...r){var a=r.pop();if(typeof a!=="function")throw TypeError("The last argument must be of type Function");var n=this,l=function(...s){return a.apply(n,...s)};e.apply(this,r).then(function(s){process.nextTick(l.bind(null,null,s))},function(s){process.nextTick(BM.bind(null,s,l))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),t}var s0e,u0e,tf,g0e=()=>{},x0e,wV,TV,kV,w0e;var MV=Le(()=>{s0e=/%[sdj%]/g;u0e=((e={},t={},r)=>((r=typeof process<"u"&&!1)&&(r=r.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),t=new RegExp("^"+r+"$","i"),(a)=>{if(a=a.toUpperCase(),!e[a])if(t.test(a))e[a]=function(...n){console.error("%s: %s",a,pid,zM.apply(null,...n))};else e[a]=function(){};return e[a]}))(),tf=((e)=>(e.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]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.custom=Symbol.for("nodejs.util.inspect.custom"),e))(function(e,t,...r){var a={seen:[],stylize:f0e};if(r.length>=1)a.depth=r[0];if(r.length>=2)a.colors=r[1];if(LM(t))a.showHidden=t;else if(t)$M(a,t);if(Sh(a.showHidden))a.showHidden=!1;if(Sh(a.depth))a.depth=2;if(Sh(a.colors))a.colors=!1;if(a.colors)a.stylize=c0e;return L2(a,e,a.depth)});x0e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];wV=((e)=>(e.custom=Symbol.for("nodejs.util.promisify.custom"),e))(function(e){if(typeof e!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&e[kCustomPromisifiedSymbol]){var t=e[kCustomPromisifiedSymbol];if(typeof t!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,kCustomPromisifiedSymbol,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(...r){var a,n,l=new Promise(function(s,d){a=s,n=d});r.push(function(s,d){if(s)n(s);else a(d)});try{e.apply(this,r)}catch(s){n(s)}return l}if(Object.setPrototypeOf(t,Object.getPrototypeOf(e)),kCustomPromisifiedSymbol)Object.defineProperty(t,kCustomPromisifiedSymbol,{value:t,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))});({TextEncoder:TV,TextDecoder:kV}=globalThis),w0e={TextEncoder:TV,TextDecoder:kV,promisify:wV,log:SV,inherits:xV,_extend:$M,callbackifyOnRejected:BM,callbackify:EV}});var $0={};Vn($0,{EventEmitter:()=>wu,addAbortListener:()=>ZV,captureRejectionSymbol:()=>NV,default:()=>O0e,getEventListeners:()=>$V,getMaxListeners:()=>HV,init:()=>wu,listenerCount:()=>UV,once:()=>PV,setMaxListeners:()=>BV});function DV(e,t){var{_events:r}=e;if(t[0]??=Error("Unhandled error."),!r)throw t[0];var a=r[OV];if(a)for(var n of RV.call(a))n.apply(e,t);var l=r.error;if(!l)throw t[0];for(var n of RV.call(l))n.apply(e,t);return!0}function k0e(e,t,r,a){t.then(void 0,function(n){queueMicrotask(()=>A0e(e,n,r,a))})}function A0e(e,t,r,a){if(typeof e[CV]==="function")e[CV](t,r,...a);else try{e[rf]=!1,e.emit("error",t)}finally{e[rf]=!0}}function zV(e,t,r){r.warned=!0;let a=Error(`Possible EventEmitter memory leak detected. ${r.length} ${String(t)} listeners added to [${e.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=r.length,console.warn(a)}function LV(e,t,...r){this.removeListener(e,t),t.apply(this,r)}function PV(e,t,r){var a=r?.signal;if(jV(a,"options.signal"),a?.aborted)throw new UM(void 0,{cause:a?.reason});let{resolve:n,reject:l,promise:s}=$newPromiseCapability(Promise),d=(v)=>{if(e.removeListener(t,b),a!=null)B2(a,"abort",y);l(v)},b=(...v)=>{if(typeof e.removeListener==="function")e.removeListener("error",d);if(a!=null)B2(a,"abort",y);n(v)};if(IV(e,t,b,{once:!0}),t!=="error"&&typeof e.once==="function")e.once("error",d);function y(){B2(e,t,b),B2(e,"error",d),l(new UM(void 0,{cause:a?.reason}))}if(a!=null)IV(a,"abort",y,{once:!0});return s}function $V(e,t){return e.listeners(t)}function BV(e,...t){HM(e,"setMaxListeners",0);var r;if(t&&(r=t.length))for(let a=0;a<r;a++)t[a].setMaxListeners(e);else nf=e}function UV(e,t){return e.listenerCount(t)}function B2(e,t,r,a){if(typeof e.removeListener==="function")e.removeListener(t,r);else e.removeEventListener(t,r,a)}function IV(e,t,r,a){if(typeof e.on==="function")if(a.once)e.once(t,r);else e.on(t,r);else e.addEventListener(t,r,a)}function _h(e,t,r){let a=TypeError(`The "${e}" argument must be of type ${t}. Received ${r}`);return a.code="ERR_INVALID_ARG_TYPE",a}function R0e(e,t,r){let a=RangeError(`The "${e}" argument is out of range. It must be ${t}. Received ${r}`);return a.code="ERR_OUT_OF_RANGE",a}function jV(e,t){if(e!==void 0&&(e===null||typeof e!=="object"||!("aborted"in e)))throw _h(t,"AbortSignal",e)}function HM(e,t,r,a){if(typeof e!=="number")throw _h(t,"number",e);if(r!=null&&e<r||a!=null&&e>a||(r!=null||a!=null)&&Number.isNaN(e))throw R0e(t,`${r!=null?`>= ${r}`:""}${r!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,e)}function P0(e){if(typeof e!=="function")throw TypeError("The listener must be a function")}function I0e(e,t){if(typeof e!=="boolean")throw _h(t,"boolean",e)}function HV(e){return e?._maxListeners??nf}function ZV(e,t){if(e===void 0)throw _h("signal","AbortSignal",e);if(jV(e,"signal"),typeof t!=="function")throw _h("listener","function",t);let r;if(e.aborted)queueMicrotask(()=>t());else e.addEventListener("abort",t,{__proto__:null,once:!0}),r=()=>{e.removeEventListener("abort",t)};return{__proto__:null,[Symbol.dispose](){r?.()}}}var jM,rf,OV,E0e,T0e,CV,NV,RV,nf=10,wu=function(e){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[rf]=e?.captureRejections?Boolean(e?.captureRejections):dn[rf])this.emit=C0e},dn,M0e=function(e,...t){if(e==="error")return DV(this,t);var{_events:r}=this;if(r===void 0)return!1;var a=r[e];if(a===void 0)return!1;let n=a.length>1?a.slice():a;for(let l=0,{length:s}=n;l<s;l++){let d=n[l];switch(t.length){case 0:d.call(this);break;case 1:d.call(this,t[0]);break;case 2:d.call(this,t[0],t[1]);break;case 3:d.call(this,t[0],t[1],t[2]);break;default:d.apply(this,t);break}}return!0},C0e=function(e,...t){if(e==="error")return DV(this,t);var{_events:r}=this;if(r===void 0)return!1;var a=r[e];if(a===void 0)return!1;let n=a.length>1?a.slice():a;for(let l=0,{length:s}=n;l<s;l++){let d=n[l],b;switch(t.length){case 0:b=d.call(this);break;case 1:b=d.call(this,t[0]);break;case 2:b=d.call(this,t[0],t[1]);break;case 3:b=d.call(this,t[0],t[1],t[2]);break;default:b=d.apply(this,t);break}if(b!==void 0&&typeof b?.then==="function"&&b.then===Promise.prototype.then)k0e(this,b,e,t)}return!0},UM,O0e;var B0=Le(()=>{jM=Symbol.for,rf=Symbol("kCapture"),OV=jM("events.errorMonitor"),E0e=Symbol("events.maxEventTargetListeners"),T0e=Symbol("events.maxEventTargetListenersWarned"),CV=jM("nodejs.rejection"),NV=jM("nodejs.rejection"),RV=Array.prototype.slice,dn=wu.prototype={};dn._events=void 0;dn._eventsCount=0;dn._maxListeners=void 0;dn.setMaxListeners=function(e){return HM(e,"setMaxListeners",0),this._maxListeners=e,this};dn.constructor=wu;dn.getMaxListeners=function(){return this?._maxListeners??nf};dn.emit=M0e;dn.addListener=function(e,t){P0(t);var r=this._events;if(!r)r=this._events={__proto__:null},this._eventsCount=0;else if(r.newListener)this.emit("newListener",e,t.listener??t);var a=r[e];if(!a)r[e]=[t],this._eventsCount++;else{a.push(t);var n=this._maxListeners??nf;if(n>0&&a.length>n&&!a.warned)zV(this,e,a)}return this};dn.on=dn.addListener;dn.prependListener=function(e,t){P0(t);var r=this._events;if(!r)r=this._events={__proto__:null},this._eventsCount=0;else if(r.newListener)this.emit("newListener",e,t.listener??t);var a=r[e];if(!a)r[e]=[t],this._eventsCount++;else{a.unshift(t);var n=this._maxListeners??nf;if(n>0&&a.length>n&&!a.warned)zV(this,e,a)}return this};dn.once=function(e,t){P0(t);let r=LV.bind(this,e,t);return r.listener=t,this.addListener(e,r),this};dn.prependOnceListener=function(e,t){P0(t);let r=LV.bind(this,e,t);return r.listener=t,this.prependListener(e,r),this};dn.removeListener=function(e,t){P0(t);var{_events:r}=this;if(!r)return this;var a=r[e];if(!a)return this;var n=a.length;let l=-1;for(let s=n-1;s>=0;s--)if(a[s]===t||a[s].listener===t){l=s;break}if(l<0)return this;if(l===0)a.shift();else a.splice(l,1);if(a.length===0)delete r[e],this._eventsCount--;return this};dn.off=dn.removeListener;dn.removeAllListeners=function(e){var{_events:t}=this;if(e&&t){if(t[e])delete t[e],this._eventsCount--}else this._events={__proto__:null};return this};dn.listeners=function(e){var{_events:t}=this;if(!t)return[];var r=t[e];if(!r)return[];return r.map((a)=>a.listener??a)};dn.rawListeners=function(e){var{_events:t}=this;if(!t)return[];var r=t[e];if(!r)return[];return r.slice()};dn.listenerCount=function(e){var{_events:t}=this;if(!t)return 0;return t[e]?.length??0};dn.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};dn[rf]=!1;UM=class UM extends Error{constructor(e="The operation was aborted",t=void 0){if(t!==void 0&&typeof t!=="object")throw _h("options","Object",t);super(e,t);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(wu,{captureRejections:{get(){return dn[rf]},set(e){I0e(e,"EventEmitter.captureRejections"),dn[rf]=e},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>nf,set:(e)=>{HM(e,"defaultMaxListeners",0),nf=e}},kMaxEventTargetListeners:{value:E0e,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:T0e,enumerable:!1,configurable:!1,writable:!1}});Object.assign(wu,{once:PV,getEventListeners:$V,getMaxListeners:HV,setMaxListeners:BV,EventEmitter:wu,usingDomains:!1,captureRejectionSymbol:NV,errorMonitor:OV,addAbortListener:ZV,init:wu,listenerCount:UV});O0e=wu});var GM=oi(function(_Oe,XV){var jr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_n=jr((e,t)=>{class r extends Error{constructor(a){if(!Array.isArray(a))throw TypeError(`Expected input to be an Array, got ${typeof a}`);let n="";for(let l=0;l<a.length;l++)n+=` ${a[l].stack}
377
- `;super(n);this.name="AggregateError",this.errors=a}}t.exports={AggregateError:r,ArrayIsArray(a){return Array.isArray(a)},ArrayPrototypeIncludes(a,n){return a.includes(n)},ArrayPrototypeIndexOf(a,n){return a.indexOf(n)},ArrayPrototypeJoin(a,n){return a.join(n)},ArrayPrototypeMap(a,n){return a.map(n)},ArrayPrototypePop(a,n){return a.pop(n)},ArrayPrototypePush(a,n){return a.push(n)},ArrayPrototypeSlice(a,n,l){return a.slice(n,l)},Error,FunctionPrototypeCall(a,n,...l){return a.call(n,...l)},FunctionPrototypeSymbolHasInstance(a,n){return Function.prototype[Symbol.hasInstance].call(a,n)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(a,n){return Object.defineProperties(a,n)},ObjectDefineProperty(a,n,l){return Object.defineProperty(a,n,l)},ObjectGetOwnPropertyDescriptor(a,n){return Object.getOwnPropertyDescriptor(a,n)},ObjectKeys(a){return Object.keys(a)},ObjectSetPrototypeOf(a,n){return Object.setPrototypeOf(a,n)},Promise,PromisePrototypeCatch(a,n){return a.catch(n)},PromisePrototypeThen(a,n,l){return a.then(n,l)},PromiseReject(a){return Promise.reject(a)},PromiseResolve(a){return Promise.resolve(a)},ReflectApply:Reflect.apply,RegExpPrototypeTest(a,n){return a.test(n)},SafeSet:Set,String,StringPrototypeSlice(a,n,l){return a.slice(n,l)},StringPrototypeToLowerCase(a){return a.toLowerCase()},StringPrototypeToUpperCase(a){return a.toUpperCase()},StringPrototypeTrim(a){return a.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(a,n,l){return a.set(n,l)},Boolean,Uint8Array}}),FV=jr((e,t)=>{t.exports={format(r,...a){return r.replace(/%([sdifj])/g,function(...[n,l]){let s=a.shift();if(l==="f")return s.toFixed(6);else if(l==="j")return JSON.stringify(s);else if(l==="s"&&typeof s==="object")return`${s.constructor!==Object?s.constructor.name:""} {}`.trim();else return s.toString()})},inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"'))return`"${r}"`;else if(!r.includes("`")&&!r.includes("${"))return`\`${r}\``}return`'${r}'`;case"number":if(isNaN(r))return"NaN";else if(Object.is(r,-0))return String(r);return r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}}}}),Ji=jr((e,t)=>{var{format:r,inspect:a}=FV(),{AggregateError:n}=_n(),l=globalThis.AggregateError||n,s=Symbol("kIsNodeError"),d=["string","function","number","object","Function","Object","boolean","bigint","symbol"],b=/^([A-Z][a-z0-9]*)+$/,y={};function v(P,j){if(!P)throw new y.ERR_INTERNAL_ASSERTION(j)}function g(P){let j="",Z=P.length,V=P[0]==="-"?1:0;for(;Z>=V+4;Z-=3)j=`_${P.slice(Z-3,Z)}${j}`;return`${P.slice(0,Z)}${j}`}function _(P,j,Z){if(typeof j==="function")return v(j.length<=Z.length,`Code: ${P}; The provided arguments length (${Z.length}) does not match the required ones (${j.length}).`),j(...Z);let V=(j.match(/%[dfijoOs]/g)||[]).length;if(v(V===Z.length,`Code: ${P}; The provided arguments length (${Z.length}) does not match the required ones (${V}).`),Z.length===0)return j;return r(j,...Z)}function A(P,j,Z){if(!Z)Z=Error;class V extends Z{constructor(...W){super(_(P,j,W))}toString(){return`${this.name} [${P}]: ${this.message}`}}Object.defineProperties(V.prototype,{name:{value:Z.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${P}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),V.prototype.code=P,V.prototype[s]=!0,y[P]=V}function I(P){let j="__node_internal_"+P.name;return Object.defineProperty(P,"name",{value:j}),P}function O(P,j){if(P&&j&&P!==j){if(Array.isArray(j.errors))return j.errors.push(P),j;let Z=new l([j,P],j.message);return Z.code=j.code,Z}return P||j}class N extends Error{constructor(P="The operation was aborted",j=void 0){if(j!==void 0&&typeof j!=="object")throw new y.ERR_INVALID_ARG_TYPE("options","Object",j);super(P,j);this.code="ABORT_ERR",this.name="AbortError"}}A("ERR_ASSERTION","%s",Error),A("ERR_INVALID_ARG_TYPE",(P,j,Z)=>{if(v(typeof P==="string","'name' must be a string"),!Array.isArray(j))j=[j];let V="The ";if(P.endsWith(" argument"))V+=`${P} `;else V+=`"${P}" ${P.includes(".")?"property":"argument"} `;V+="must be ";let W=[],J=[],ve=[];for(let Me of j)if(v(typeof Me==="string","All expected entries have to be of type string"),d.includes(Me))W.push(Me.toLowerCase());else if(b.test(Me))J.push(Me);else v(Me!=="object",'The value "object" should be written as "Object"'),ve.push(Me);if(J.length>0){let Me=W.indexOf("object");if(Me!==-1)W.splice(W,Me,1),J.push("Object")}if(W.length>0){switch(W.length){case 1:V+=`of type ${W[0]}`;break;case 2:V+=`one of type ${W[0]} or ${W[1]}`;break;default:{let Me=W.pop();V+=`one of type ${W.join(", ")}, or ${Me}`}}if(J.length>0||ve.length>0)V+=" or "}if(J.length>0){switch(J.length){case 1:V+=`an instance of ${J[0]}`;break;case 2:V+=`an instance of ${J[0]} or ${J[1]}`;break;default:{let Me=J.pop();V+=`an instance of ${J.join(", ")}, or ${Me}`}}if(ve.length>0)V+=" or "}switch(ve.length){case 0:break;case 1:if(ve[0].toLowerCase()!==ve[0])V+="an ";V+=`${ve[0]}`;break;case 2:V+=`one of ${ve[0]} or ${ve[1]}`;break;default:{let Me=ve.pop();V+=`one of ${ve.join(", ")}, or ${Me}`}}if(Z==null)V+=`. Received ${Z}`;else if(typeof Z==="function"&&Z.name)V+=`. Received function ${Z.name}`;else if(typeof Z==="object"){var ce;if((ce=Z.constructor)!==null&&ce!==void 0&&ce.name)V+=`. Received an instance of ${Z.constructor.name}`;else{let Me=a(Z,{depth:-1});V+=`. Received ${Me}`}}else{let Me=a(Z,{colors:!1});if(Me.length>25)Me=`${Me.slice(0,25)}...`;V+=`. Received type ${typeof Z} (${Me})`}return V},TypeError),A("ERR_INVALID_ARG_VALUE",(P,j,Z="is invalid")=>{let V=a(j);if(V.length>128)V=V.slice(0,128)+"...";return`The ${P.includes(".")?"property":"argument"} '${P}' ${Z}. Received ${V}`},TypeError),A("ERR_INVALID_RETURN_VALUE",(P,j,Z)=>{var V;let W=Z!==null&&Z!==void 0&&(V=Z.constructor)!==null&&V!==void 0&&V.name?`instance of ${Z.constructor.name}`:`type ${typeof Z}`;return`Expected ${P} to be returned from the "${j}" function but got ${W}.`},TypeError),A("ERR_MISSING_ARGS",(...P)=>{v(P.length>0,"At least one arg needs to be specified");let j,Z=P.length;switch(P=(Array.isArray(P)?P:[P]).map((V)=>`"${V}"`).join(" or "),Z){case 1:j+=`The ${P[0]} argument`;break;case 2:j+=`The ${P[0]} and ${P[1]} arguments`;break;default:{let V=P.pop();j+=`The ${P.join(", ")}, and ${V} arguments`}break}return`${j} must be specified`},TypeError),A("ERR_OUT_OF_RANGE",(P,j,Z)=>{v(j,'Missing "range" argument');let V;if(Number.isInteger(Z)&&Math.abs(Z)>4294967296)V=g(String(Z));else if(typeof Z==="bigint"){V=String(Z);let W=BigInt(2)**BigInt(32);if(Z>W||Z<-W)V=g(V);V+="n"}else V=a(Z);return`The value of "${P}" is out of range. It must be ${j}. Received ${V}`},RangeError),A("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),A("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),A("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),A("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),A("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),A("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),A("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),A("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),A("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),A("ERR_STREAM_WRITE_AFTER_END","write after end",Error),A("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:N,aggregateTwoErrors:I(O),hideStackFrames:I,codes:y}}),N0e=jr((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=new WeakMap,a=new WeakMap;function n(Y){let Te=r.get(Y);return console.assert(Te!=null,"'this' is expected an Event object, but got",Y),Te}function l(Y){if(Y.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",Y.passiveListener);return}if(!Y.event.cancelable)return;if(Y.canceled=!0,typeof Y.event.preventDefault==="function")Y.event.preventDefault()}function s(Y,Te){r.set(this,{eventTarget:Y,event:Te,eventPhase:2,currentTarget:Y,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:Te.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let f=Object.keys(Te);for(let p=0;p<f.length;++p){let x=f[p];if(!(x in this))Object.defineProperty(this,x,d(x))}}if(s.prototype={get type(){return n(this).event.type},get target(){return n(this).eventTarget},get currentTarget(){return n(this).currentTarget},composedPath(){let Y=n(this).currentTarget;if(Y==null)return[];return[Y]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return n(this).eventPhase},stopPropagation(){let Y=n(this);if(Y.stopped=!0,typeof Y.event.stopPropagation==="function")Y.event.stopPropagation()},stopImmediatePropagation(){let Y=n(this);if(Y.stopped=!0,Y.immediateStopped=!0,typeof Y.event.stopImmediatePropagation==="function")Y.event.stopImmediatePropagation()},get bubbles(){return Boolean(n(this).event.bubbles)},get cancelable(){return Boolean(n(this).event.cancelable)},preventDefault(){l(n(this))},get defaultPrevented(){return n(this).canceled},get composed(){return Boolean(n(this).event.composed)},get timeStamp(){return n(this).timeStamp},get srcElement(){return n(this).eventTarget},get cancelBubble(){return n(this).stopped},set cancelBubble(Y){if(!Y)return;let Te=n(this);if(Te.stopped=!0,typeof Te.event.cancelBubble==="boolean")Te.event.cancelBubble=!0},get returnValue(){return!n(this).canceled},set returnValue(Y){if(!Y)l(n(this))},initEvent(){}},Object.defineProperty(s.prototype,"constructor",{value:s,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(s.prototype,window.Event.prototype),a.set(window.Event.prototype,s);function d(Y){return{get(){return n(this).event[Y]},set(Te){n(this).event[Y]=Te},configurable:!0,enumerable:!0}}function b(Y){return{value(){let Te=n(this).event;return Te[Y].apply(Te,arguments)},configurable:!0,enumerable:!0}}function y(Y,Te){let f=Object.keys(Te);if(f.length===0)return Y;function p(x,h){Y.call(this,x,h)}p.prototype=Object.create(Y.prototype,{constructor:{value:p,configurable:!0,writable:!0}});for(let x=0;x<f.length;++x){let h=f[x];if(!(h in Y.prototype)){let S=typeof Object.getOwnPropertyDescriptor(Te,h).value==="function";Object.defineProperty(p.prototype,h,S?b(h):d(h))}}return p}function v(Y){if(Y==null||Y===Object.prototype)return s;let Te=a.get(Y);if(Te==null)Te=y(v(Object.getPrototypeOf(Y)),Y),a.set(Y,Te);return Te}function g(Y,Te){return new(v(Object.getPrototypeOf(Te)))(Y,Te)}function _(Y){return n(Y).immediateStopped}function A(Y,Te){n(Y).eventPhase=Te}function I(Y,Te){n(Y).currentTarget=Te}function O(Y,Te){n(Y).passiveListener=Te}var N=new WeakMap,P=1,j=2,Z=3;function V(Y){return Y!==null&&typeof Y==="object"}function W(Y){let Te=N.get(Y);if(Te==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return Te}function J(Y){return{get(){let Te=W(this).get(Y);while(Te!=null){if(Te.listenerType===Z)return Te.listener;Te=Te.next}return null},set(Te){if(typeof Te!=="function"&&!V(Te))Te=null;let f=W(this),p=null,x=f.get(Y);while(x!=null){if(x.listenerType===Z)if(p!==null)p.next=x.next;else if(x.next!==null)f.set(Y,x.next);else f.delete(Y);else p=x;x=x.next}if(Te!==null){let h={listener:Te,listenerType:Z,passive:!1,once:!1,next:null};if(p===null)f.set(Y,h);else p.next=h}},configurable:!0,enumerable:!0}}function ve(Y,Te){Object.defineProperty(Y,`on${Te}`,J(Te))}function ce(Y){function Te(){Me.call(this)}Te.prototype=Object.create(Me.prototype,{constructor:{value:Te,configurable:!0,writable:!0}});for(let f=0;f<Y.length;++f)ve(Te.prototype,Y[f]);return Te}function Me(){if(this instanceof Me){N.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return ce(arguments[0]);if(arguments.length>0){let Y=Array(arguments.length);for(let Te=0;Te<arguments.length;++Te)Y[Te]=arguments[Te];return ce(Y)}throw TypeError("Cannot call a class as a function")}if(Me.prototype={addEventListener(Y,Te,f){if(Te==null)return;if(typeof Te!=="function"&&!V(Te))throw TypeError("'listener' should be a function or an object.");let p=W(this),x=V(f),h=(x?Boolean(f.capture):Boolean(f))?P:j,S={listener:Te,listenerType:h,passive:x&&Boolean(f.passive),once:x&&Boolean(f.once),next:null},k=p.get(Y);if(k===void 0){p.set(Y,S);return}let C=null;while(k!=null){if(k.listener===Te&&k.listenerType===h)return;C=k,k=k.next}C.next=S},removeEventListener(Y,Te,f){if(Te==null)return;let p=W(this),x=(V(f)?Boolean(f.capture):Boolean(f))?P:j,h=null,S=p.get(Y);while(S!=null){if(S.listener===Te&&S.listenerType===x){if(h!==null)h.next=S.next;else if(S.next!==null)p.set(Y,S.next);else p.delete(Y);return}h=S,S=S.next}},dispatchEvent(Y){if(Y==null||typeof Y.type!=="string")throw TypeError('"event.type" should be a string.');let Te=W(this),f=Y.type,p=Te.get(f);if(p==null)return!0;let x=g(this,Y),h=null;while(p!=null){if(p.once)if(h!==null)h.next=p.next;else if(p.next!==null)Te.set(f,p.next);else Te.delete(f);else h=p;if(O(x,p.passive?p.listener:null),typeof p.listener==="function")try{p.listener.call(this,x)}catch(S){if(typeof console<"u"&&typeof console.error==="function")console.error(S)}else if(p.listenerType!==Z&&typeof p.listener.handleEvent==="function")p.listener.handleEvent(x);if(_(x))break;p=p.next}return O(x,null),A(x,0),I(x,null),!x.defaultPrevented}},Object.defineProperty(Me.prototype,"constructor",{value:Me,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(Me.prototype,window.EventTarget.prototype);e.defineEventAttribute=ve,e.EventTarget=Me,e.default=Me,t.exports=Me,t.exports.EventTarget=t.exports.default=Me,t.exports.defineEventAttribute=ve}),U0=jr((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=N0e();class a extends r.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let v=s.get(this);if(typeof v!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return v}}r.defineEventAttribute(a.prototype,"abort");function n(){let v=Object.create(a.prototype);return r.EventTarget.call(v),s.set(v,!1),v}function l(v){if(s.get(v)!==!1)return;s.set(v,!0),v.dispatchEvent({type:"abort"})}var s=new WeakMap;if(Object.defineProperties(a.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(a.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class d{constructor(){b.set(this,n())}get signal(){return y(this)}abort(){l(y(this))}}var b=new WeakMap;function y(v){let g=b.get(v);if(g==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${v===null?"null":typeof v}`);return g}if(Object.defineProperties(d.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(d.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});e.AbortController=d,e.AbortSignal=a,e.default=d,t.exports=d,t.exports.AbortController=t.exports.default=d,t.exports.AbortSignal=a}),mo=jr((e,t)=>{var r=(ci(),Cr(ui)),{format:a,inspect:n}=FV(),{codes:{ERR_INVALID_ARG_TYPE:l}}=Ji(),{kResistStopPropagation:s,AggregateError:d,SymbolDispose:b}=_n(),y=globalThis.AbortSignal||U0().AbortSignal,v=globalThis.AbortController||U0().AbortController,g=Object.getPrototypeOf(async function(){}).constructor,_=globalThis.Blob||r.Blob,A=typeof _<"u"?function(N){return N instanceof _}:function(N){return!1},I=(N,P)=>{if(N!==void 0&&(N===null||typeof N!=="object"||!("aborted"in N)))throw new l(P,"AbortSignal",N)},O=(N,P)=>{if(typeof N!=="function")throw new l(P,"Function",N)};t.exports={AggregateError:d,kEmptyObject:Object.freeze({}),once(N){let P=!1;return function(...j){if(P)return;P=!0,N.apply(this,j)}},createDeferredPromise:function(){let N,P;return{promise:new Promise((j,Z)=>{N=j,P=Z}),resolve:N,reject:P}},promisify(N){return new Promise((P,j)=>{N((Z,...V)=>{if(Z)return j(Z);return P(...V)})})},debuglog(){return function(){}},format:a,inspect:n,types:{isAsyncFunction(N){return N instanceof g},isArrayBufferView(N){return ArrayBuffer.isView(N)}},isBlob:A,deprecate(N,P){return N},addAbortListener:(B0(),Cr($0)).addAbortListener||function(N,P){if(N===void 0)throw new l("signal","AbortSignal",N);I(N,"signal"),O(P,"listener");let j;if(N.aborted)queueMicrotask(()=>P());else N.addEventListener("abort",P,{__proto__:null,once:!0,[s]:!0}),j=()=>{N.removeEventListener("abort",P)};return{__proto__:null,[b](){var Z;(Z=j)===null||Z===void 0||Z()}}},AbortSignalAny:y.any||function(N){if(N.length===1)return N[0];let P=new v,j=()=>P.abort();return N.forEach((Z)=>{I(Z,"signals"),Z.addEventListener("abort",j,{once:!0})}),P.signal.addEventListener("abort",()=>{N.forEach((Z)=>Z.removeEventListener("abort",j))},{once:!0}),P.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),j0=jr((e,t)=>{var{ArrayIsArray:r,ArrayPrototypeIncludes:a,ArrayPrototypeJoin:n,ArrayPrototypeMap:l,NumberIsInteger:s,NumberIsNaN:d,NumberMAX_SAFE_INTEGER:b,NumberMIN_SAFE_INTEGER:y,NumberParseInt:v,ObjectPrototypeHasOwnProperty:g,RegExpPrototypeExec:_,String:A,StringPrototypeToUpperCase:I,StringPrototypeTrim:O}=_n(),{hideStackFrames:N,codes:{ERR_SOCKET_BAD_PORT:P,ERR_INVALID_ARG_TYPE:j,ERR_INVALID_ARG_VALUE:Z,ERR_OUT_OF_RANGE:V,ERR_UNKNOWN_SIGNAL:W}}=Ji(),{normalizeEncoding:J}=mo(),{isAsyncFunction:ve,isArrayBufferView:ce}=mo().types,Me={};function Y(le){return le===(le|0)}function Te(le){return le===le>>>0}var f=/^[0-7]+$/,p="must be a 32-bit unsigned integer or an octal string";function x(le,Ee,gt){if(typeof le>"u")le=gt;if(typeof le==="string"){if(_(f,le)===null)throw new Z(Ee,le,p);le=v(le,8)}return k(le,Ee),le}var h=N((le,Ee,gt=y,De=b)=>{if(typeof le!=="number")throw new j(Ee,"number",le);if(!s(le))throw new V(Ee,"an integer",le);if(le<gt||le>De)throw new V(Ee,`>= ${gt} && <= ${De}`,le)}),S=N((le,Ee,gt=-2147483648,De=2147483647)=>{if(typeof le!=="number")throw new j(Ee,"number",le);if(!s(le))throw new V(Ee,"an integer",le);if(le<gt||le>De)throw new V(Ee,`>= ${gt} && <= ${De}`,le)}),k=N((le,Ee,gt=!1)=>{if(typeof le!=="number")throw new j(Ee,"number",le);if(!s(le))throw new V(Ee,"an integer",le);let De=gt?1:0,We=4294967295;if(le<De||le>We)throw new V(Ee,`>= ${De} && <= ${We}`,le)});function C(le,Ee){if(typeof le!=="string")throw new j(Ee,"string",le)}function w(le,Ee,gt=void 0,De){if(typeof le!=="number")throw new j(Ee,"number",le);if(gt!=null&&le<gt||De!=null&&le>De||(gt!=null||De!=null)&&d(le))throw new V(Ee,`${gt!=null?`>= ${gt}`:""}${gt!=null&&De!=null?" && ":""}${De!=null?`<= ${De}`:""}`,le)}var c=N((le,Ee,gt)=>{if(!a(gt,le)){let De="must be one of: "+n(l(gt,(We)=>typeof We==="string"?`'${We}'`:A(We)),", ");throw new Z(Ee,le,De)}});function T(le,Ee){if(typeof le!=="boolean")throw new j(Ee,"boolean",le)}function z(le,Ee,gt){return le==null||!g(le,Ee)?gt:le[Ee]}var R=N((le,Ee,gt=null)=>{let De=z(gt,"allowArray",!1),We=z(gt,"allowFunction",!1);if(!z(gt,"nullable",!1)&&le===null||!De&&r(le)||typeof le!=="object"&&(!We||typeof le!=="function"))throw new j(Ee,"Object",le)}),q=N((le,Ee)=>{if(le!=null&&typeof le!=="object"&&typeof le!=="function")throw new j(Ee,"a dictionary",le)}),Q=N((le,Ee,gt=0)=>{if(!r(le))throw new j(Ee,"Array",le);if(le.length<gt){let De=`must be longer than ${gt}`;throw new Z(Ee,le,De)}});function ie(le,Ee){Q(le,Ee);for(let gt=0;gt<le.length;gt++)C(le[gt],`${Ee}[${gt}]`)}function me(le,Ee){Q(le,Ee);for(let gt=0;gt<le.length;gt++)T(le[gt],`${Ee}[${gt}]`)}function Je(le,Ee){Q(le,Ee);for(let gt=0;gt<le.length;gt++){let De=le[gt],We=`${Ee}[${gt}]`;if(De==null)throw new j(We,"AbortSignal",De);Be(De,We)}}function ke(le,Ee="signal"){if(C(le,Ee),Me[le]===void 0){if(Me[I(le)]!==void 0)throw new W(le+" (signals must use all capital letters)");throw new W(le)}}var fe=N((le,Ee="buffer")=>{if(!ce(le))throw new j(Ee,["Buffer","TypedArray","DataView"],le)});function be(le,Ee){let gt=J(Ee),De=le.length;if(gt==="hex"&&De%2!==0)throw new Z("encoding",Ee,`is invalid for data of length ${De}`)}function Ae(le,Ee="Port",gt=!0){if(typeof le!=="number"&&typeof le!=="string"||typeof le==="string"&&O(le).length===0||+le!==+le>>>0||le>65535||le===0&&!gt)throw new P(Ee,le,gt);return le|0}var Be=N((le,Ee)=>{if(le!==void 0&&(le===null||typeof le!=="object"||!("aborted"in le)))throw new j(Ee,"AbortSignal",le)}),vt=N((le,Ee)=>{if(typeof le!=="function")throw new j(Ee,"Function",le)}),oe=N((le,Ee)=>{if(typeof le!=="function"||ve(le))throw new j(Ee,"Function",le)}),se=N((le,Ee)=>{if(le!==void 0)throw new j(Ee,"undefined",le)});function Ke(le,Ee,gt){if(!a(gt,le))throw new j(Ee,`('${n(gt,"|")}')`,le)}var he=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Ie(le,Ee){if(typeof le>"u"||!_(he,le))throw new Z(Ee,le,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Qe(le){if(typeof le==="string")return Ie(le,"hints"),le;else if(r(le)){let Ee=le.length,gt="";if(Ee===0)return gt;for(let De=0;De<Ee;De++){let We=le[De];if(Ie(We,"hints"),gt+=We,De!==Ee-1)gt+=", "}return gt}throw new Z("hints",le,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:Y,isUint32:Te,parseFileMode:x,validateArray:Q,validateStringArray:ie,validateBooleanArray:me,validateAbortSignalArray:Je,validateBoolean:T,validateBuffer:fe,validateDictionary:q,validateEncoding:be,validateFunction:vt,validateInt32:S,validateInteger:h,validateNumber:w,validateObject:R,validateOneOf:c,validatePlainFunction:oe,validatePort:Ae,validateSignalName:ke,validateString:C,validateUint32:k,validateUndefined:se,validateUnion:Ke,validateAbortSignal:Be,validateLinkHeaderValue:Qe}}),of=jr((e,t)=>{t.exports=globalThis.process}),al=jr((e,t)=>{var{SymbolAsyncIterator:r,SymbolIterator:a,SymbolFor:n}=_n(),l=n("nodejs.stream.destroyed"),s=n("nodejs.stream.errored"),d=n("nodejs.stream.readable"),b=n("nodejs.stream.writable"),y=n("nodejs.stream.disturbed"),v=n("nodejs.webstream.isClosedPromise"),g=n("nodejs.webstream.controllerErrorFunction");function _(z,R=!1){var q;return!!(z&&typeof z.pipe==="function"&&typeof z.on==="function"&&(!R||typeof z.pause==="function"&&typeof z.resume==="function")&&(!z._writableState||((q=z._readableState)===null||q===void 0?void 0:q.readable)!==!1)&&(!z._writableState||z._readableState))}function A(z){var R;return!!(z&&typeof z.write==="function"&&typeof z.on==="function"&&(!z._readableState||((R=z._writableState)===null||R===void 0?void 0:R.writable)!==!1))}function I(z){return!!(z&&typeof z.pipe==="function"&&z._readableState&&typeof z.on==="function"&&typeof z.write==="function")}function O(z){return z&&(z._readableState||z._writableState||typeof z.write==="function"&&typeof z.on==="function"||typeof z.pipe==="function"&&typeof z.on==="function")}function N(z){return!!(z&&!O(z)&&typeof z.pipeThrough==="function"&&typeof z.getReader==="function"&&typeof z.cancel==="function")}function P(z){return!!(z&&!O(z)&&typeof z.getWriter==="function"&&typeof z.abort==="function")}function j(z){return!!(z&&!O(z)&&typeof z.readable==="object"&&typeof z.writable==="object")}function Z(z){return N(z)||P(z)||j(z)}function V(z,R){if(z==null)return!1;if(R===!0)return typeof z[r]==="function";if(R===!1)return typeof z[a]==="function";return typeof z[r]==="function"||typeof z[a]==="function"}function W(z){if(!O(z))return null;let{_writableState:R,_readableState:q}=z,Q=R||q;return!!(z.destroyed||z[l]||Q!==null&&Q!==void 0&&Q.destroyed)}function J(z){if(!A(z))return null;if(z.writableEnded===!0)return!0;let R=z._writableState;if(R!==null&&R!==void 0&&R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function ve(z,R){if(!A(z))return null;if(z.writableFinished===!0)return!0;let q=z._writableState;if(q!==null&&q!==void 0&&q.errored)return!1;if(typeof(q===null||q===void 0?void 0:q.finished)!=="boolean")return null;return!!(q.finished||R===!1&&q.ended===!0&&q.length===0)}function ce(z){if(!_(z))return null;if(z.readableEnded===!0)return!0;let R=z._readableState;if(!R||R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function Me(z,R){if(!_(z))return null;let q=z._readableState;if(q!==null&&q!==void 0&&q.errored)return!1;if(typeof(q===null||q===void 0?void 0:q.endEmitted)!=="boolean")return null;return!!(q.endEmitted||R===!1&&q.ended===!0&&q.length===0)}function Y(z){if(z&&z[d]!=null)return z[d];if(typeof(z===null||z===void 0?void 0:z.readable)!=="boolean")return null;if(W(z))return!1;return _(z)&&z.readable&&!Me(z)}function Te(z){if(z&&z[b]!=null)return z[b];if(typeof(z===null||z===void 0?void 0:z.writable)!=="boolean")return null;if(W(z))return!1;return A(z)&&z.writable&&!J(z)}function f(z,R){if(!O(z))return null;if(W(z))return!0;if((R===null||R===void 0?void 0:R.readable)!==!1&&Y(z))return!1;if((R===null||R===void 0?void 0:R.writable)!==!1&&Te(z))return!1;return!0}function p(z){var R,q;if(!O(z))return null;if(z.writableErrored)return z.writableErrored;return(R=(q=z._writableState)===null||q===void 0?void 0:q.errored)!==null&&R!==void 0?R:null}function x(z){var R,q;if(!O(z))return null;if(z.readableErrored)return z.readableErrored;return(R=(q=z._readableState)===null||q===void 0?void 0:q.errored)!==null&&R!==void 0?R:null}function h(z){if(!O(z))return null;if(typeof z.closed==="boolean")return z.closed;let{_writableState:R,_readableState:q}=z;if(typeof(R===null||R===void 0?void 0:R.closed)==="boolean"||typeof(q===null||q===void 0?void 0:q.closed)==="boolean")return(R===null||R===void 0?void 0:R.closed)||(q===null||q===void 0?void 0:q.closed);if(typeof z._closed==="boolean"&&S(z))return z._closed;return null}function S(z){return typeof z._closed==="boolean"&&typeof z._defaultKeepAlive==="boolean"&&typeof z._removedConnection==="boolean"&&typeof z._removedContLen==="boolean"}function k(z){return typeof z._sent100==="boolean"&&S(z)}function C(z){var R;return typeof z._consuming==="boolean"&&typeof z._dumped==="boolean"&&((R=z.req)===null||R===void 0?void 0:R.upgradeOrConnect)===void 0}function w(z){if(!O(z))return null;let{_writableState:R,_readableState:q}=z,Q=R||q;return!Q&&k(z)||!!(Q&&Q.autoDestroy&&Q.emitClose&&Q.closed===!1)}function c(z){var R;return!!(z&&((R=z[y])!==null&&R!==void 0?R:z.readableDidRead||z.readableAborted))}function T(z){var R,q,Q,ie,me,Je,ke,fe,be,Ae;return!!(z&&((R=(q=(Q=(ie=(me=(Je=z[s])!==null&&Je!==void 0?Je:z.readableErrored)!==null&&me!==void 0?me:z.writableErrored)!==null&&ie!==void 0?ie:(ke=z._readableState)===null||ke===void 0?void 0:ke.errorEmitted)!==null&&Q!==void 0?Q:(fe=z._writableState)===null||fe===void 0?void 0:fe.errorEmitted)!==null&&q!==void 0?q:(be=z._readableState)===null||be===void 0?void 0:be.errored)!==null&&R!==void 0?R:(Ae=z._writableState)===null||Ae===void 0?void 0:Ae.errored))}t.exports={isDestroyed:W,kIsDestroyed:l,isDisturbed:c,kIsDisturbed:y,isErrored:T,kIsErrored:s,isReadable:Y,kIsReadable:d,kIsClosedPromise:v,kControllerErrorFunction:g,kIsWritable:b,isClosed:h,isDuplexNodeStream:I,isFinished:f,isIterable:V,isReadableNodeStream:_,isReadableStream:N,isReadableEnded:ce,isReadableFinished:Me,isReadableErrored:x,isNodeStream:O,isWebStream:Z,isWritable:Te,isWritableNodeStream:A,isWritableStream:P,isWritableEnded:J,isWritableFinished:ve,isWritableErrored:p,isServerRequest:C,isServerResponse:k,willEmitClose:w,isTransformStream:j}}),Eu=jr((e,t)=>{var r=of(),{AbortError:a,codes:n}=Ji(),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_PREMATURE_CLOSE:s}=n,{kEmptyObject:d,once:b}=mo(),{validateAbortSignal:y,validateFunction:v,validateObject:g,validateBoolean:_}=j0(),{Promise:A,PromisePrototypeThen:I,SymbolDispose:O}=_n(),{isClosed:N,isReadable:P,isReadableNodeStream:j,isReadableStream:Z,isReadableFinished:V,isReadableErrored:W,isWritable:J,isWritableNodeStream:ve,isWritableStream:ce,isWritableFinished:Me,isWritableErrored:Y,isNodeStream:Te,willEmitClose:f,kIsClosedPromise:p}=al(),x;function h(c){return c.setHeader&&typeof c.abort==="function"}var S=()=>{};function k(c,T,z){var R,q;if(arguments.length===2)z=T,T=d;else if(T==null)T=d;else g(T,"options");if(v(z,"callback"),y(T.signal,"options.signal"),z=b(z),Z(c)||ce(c))return C(c,T,z);if(!Te(c))throw new l("stream",["ReadableStream","WritableStream","Stream"],c);let Q=(R=T.readable)!==null&&R!==void 0?R:j(c),ie=(q=T.writable)!==null&&q!==void 0?q:ve(c),me=c._writableState,Je=c._readableState,ke=()=>{if(!c.writable)Ae()},fe=f(c)&&j(c)===Q&&ve(c)===ie,be=Me(c,!1),Ae=()=>{if(be=!0,c.destroyed)fe=!1;if(fe&&(!c.readable||Q))return;if(!Q||Be)z.call(c)},Be=V(c,!1),vt=()=>{if(Be=!0,c.destroyed)fe=!1;if(fe&&(!c.writable||ie))return;if(!ie||be)z.call(c)},oe=(le)=>{z.call(c,le)},se=N(c),Ke=()=>{se=!0;let le=Y(c)||W(c);if(le&&typeof le!=="boolean")return z.call(c,le);if(Q&&!Be&&j(c,!0)){if(!V(c,!1))return z.call(c,new s)}if(ie&&!be){if(!Me(c,!1))return z.call(c,new s)}z.call(c)},he=()=>{se=!0;let le=Y(c)||W(c);if(le&&typeof le!=="boolean")return z.call(c,le);z.call(c)},Ie=()=>{c.req.on("finish",Ae)};if(h(c)){if(c.on("complete",Ae),!fe)c.on("abort",Ke);if(c.req)Ie();else c.on("request",Ie)}else if(ie&&!me)c.on("end",ke),c.on("close",ke);if(!fe&&typeof c.aborted==="boolean")c.on("aborted",Ke);if(c.on("end",vt),c.on("finish",Ae),T.error!==!1)c.on("error",oe);if(c.on("close",Ke),se)r.nextTick(Ke);else if(me!==null&&me!==void 0&&me.errorEmitted||Je!==null&&Je!==void 0&&Je.errorEmitted){if(!fe)r.nextTick(he)}else if(!Q&&(!fe||P(c))&&(be||J(c)===!1))r.nextTick(he);else if(!ie&&(!fe||J(c))&&(Be||P(c)===!1))r.nextTick(he);else if(Je&&c.req&&c.aborted)r.nextTick(he);let Qe=()=>{if(z=S,c.removeListener("aborted",Ke),c.removeListener("complete",Ae),c.removeListener("abort",Ke),c.removeListener("request",Ie),c.req)c.req.removeListener("finish",Ae);c.removeListener("end",ke),c.removeListener("close",ke),c.removeListener("finish",Ae),c.removeListener("end",vt),c.removeListener("error",oe),c.removeListener("close",Ke)};if(T.signal&&!se){let le=()=>{let Ee=z;Qe(),Ee.call(c,new a(void 0,{cause:T.signal.reason}))};if(T.signal.aborted)r.nextTick(le);else{x=x||mo().addAbortListener;let Ee=x(T.signal,le),gt=z;z=b((...De)=>{Ee[O](),gt.apply(c,De)})}}return Qe}function C(c,T,z){let R=!1,q=S;if(T.signal)if(q=()=>{R=!0,z.call(c,new a(void 0,{cause:T.signal.reason}))},T.signal.aborted)r.nextTick(q);else{x=x||mo().addAbortListener;let ie=x(T.signal,q),me=z;z=b((...Je)=>{ie[O](),me.apply(c,Je)})}let Q=(...ie)=>{if(!R)r.nextTick(()=>z.apply(c,ie))};return I(c[p].promise,Q,Q),S}function w(c,T){var z;let R=!1;if(T===null)T=d;if((z=T)!==null&&z!==void 0&&z.cleanup)_(T.cleanup,"cleanup"),R=T.cleanup;return new A((q,Q)=>{let ie=k(c,T,(me)=>{if(R)ie();if(me)Q(me);else q()})})}t.exports=k,t.exports.finished=w}),wh=jr((e,t)=>{var r=of(),{aggregateTwoErrors:a,codes:{ERR_MULTIPLE_CALLBACK:n},AbortError:l}=Ji(),{Symbol:s}=_n(),{kIsDestroyed:d,isDestroyed:b,isFinished:y,isServerRequest:v}=al(),g=s("kDestroy"),_=s("kConstruct");function A(f,p,x){if(f){if(f.stack,p&&!p.errored)p.errored=f;if(x&&!x.errored)x.errored=f}}function I(f,p){let x=this._readableState,h=this._writableState,S=h||x;if(h!==null&&h!==void 0&&h.destroyed||x!==null&&x!==void 0&&x.destroyed){if(typeof p==="function")p();return this}if(A(f,h,x),h)h.destroyed=!0;if(x)x.destroyed=!0;if(!S.constructed)this.once(g,function(k){O(this,a(k,f),p)});else O(this,f,p);return this}function O(f,p,x){let h=!1;function S(k){if(h)return;h=!0;let{_readableState:C,_writableState:w}=f;if(A(k,w,C),w)w.closed=!0;if(C)C.closed=!0;if(typeof x==="function")x(k);if(k)r.nextTick(N,f,k);else r.nextTick(P,f)}try{f._destroy(p||null,S)}catch(k){S(k)}}function N(f,p){j(f,p),P(f)}function P(f){let{_readableState:p,_writableState:x}=f;if(x)x.closeEmitted=!0;if(p)p.closeEmitted=!0;if(x!==null&&x!==void 0&&x.emitClose||p!==null&&p!==void 0&&p.emitClose)f.emit("close")}function j(f,p){let{_readableState:x,_writableState:h}=f;if(h!==null&&h!==void 0&&h.errorEmitted||x!==null&&x!==void 0&&x.errorEmitted)return;if(h)h.errorEmitted=!0;if(x)x.errorEmitted=!0;f.emit("error",p)}function Z(){let f=this._readableState,p=this._writableState;if(f)f.constructed=!0,f.closed=!1,f.closeEmitted=!1,f.destroyed=!1,f.errored=null,f.errorEmitted=!1,f.reading=!1,f.ended=f.readable===!1,f.endEmitted=f.readable===!1;if(p)p.constructed=!0,p.destroyed=!1,p.closed=!1,p.closeEmitted=!1,p.errored=null,p.errorEmitted=!1,p.finalCalled=!1,p.prefinished=!1,p.ended=p.writable===!1,p.ending=p.writable===!1,p.finished=p.writable===!1}function V(f,p,x){let{_readableState:h,_writableState:S}=f;if(S!==null&&S!==void 0&&S.destroyed||h!==null&&h!==void 0&&h.destroyed)return this;if(h!==null&&h!==void 0&&h.autoDestroy||S!==null&&S!==void 0&&S.autoDestroy)f.destroy(p);else if(p){if(p.stack,S&&!S.errored)S.errored=p;if(h&&!h.errored)h.errored=p;if(x)r.nextTick(j,f,p);else j(f,p)}}function W(f,p){if(typeof f._construct!=="function")return;let{_readableState:x,_writableState:h}=f;if(x)x.constructed=!1;if(h)h.constructed=!1;if(f.once(_,p),f.listenerCount(_)>1)return;r.nextTick(J,f)}function J(f){let p=!1;function x(h){if(p){V(f,h!==null&&h!==void 0?h:new n);return}p=!0;let{_readableState:S,_writableState:k}=f,C=k||S;if(S)S.constructed=!0;if(k)k.constructed=!0;if(C.destroyed)f.emit(g,h);else if(h)V(f,h,!0);else r.nextTick(ve,f)}try{f._construct((h)=>{r.nextTick(x,h)})}catch(h){r.nextTick(x,h)}}function ve(f){f.emit(_)}function ce(f){return(f===null||f===void 0?void 0:f.setHeader)&&typeof f.abort==="function"}function Me(f){f.emit("close")}function Y(f,p){f.emit("error",p),r.nextTick(Me,f)}function Te(f,p){if(!f||b(f))return;if(!p&&!y(f))p=new l;if(v(f))f.socket=null,f.destroy(p);else if(ce(f))f.abort();else if(ce(f.req))f.req.abort();else if(typeof f.destroy==="function")f.destroy(p);else if(typeof f.close==="function")f.close();else if(p)r.nextTick(Y,f,p);else r.nextTick(Me,f);if(!f.destroyed)f[d]=!0}t.exports={construct:W,destroyer:Te,destroy:I,undestroy:Z,errorOrDestroy:V}}),ZM=jr((e,t)=>{var{ArrayIsArray:r,ObjectSetPrototypeOf:a}=_n(),{EventEmitter:n}=(B0(),Cr($0));function l(d){n.call(this,d)}a(l.prototype,n.prototype),a(l,n),l.prototype.pipe=function(d,b){let y=this;function v(P){if(d.writable&&d.write(P)===!1&&y.pause)y.pause()}y.on("data",v);function g(){if(y.readable&&y.resume)y.resume()}if(d.on("drain",g),!d._isStdio&&(!b||b.end!==!1))y.on("end",A),y.on("close",I);let _=!1;function A(){if(_)return;_=!0,d.end()}function I(){if(_)return;if(_=!0,typeof d.destroy==="function")d.destroy()}function O(P){if(N(),n.listenerCount(this,"error")===0)this.emit("error",P)}s(y,"error",O),s(d,"error",O);function N(){y.removeListener("data",v),d.removeListener("drain",g),y.removeListener("end",A),y.removeListener("close",I),y.removeListener("error",O),d.removeListener("error",O),y.removeListener("end",N),y.removeListener("close",N),d.removeListener("close",N)}return y.on("end",N),y.on("close",N),d.on("close",N),d.emit("pipe",y),d};function s(d,b,y){if(typeof d.prependListener==="function")return d.prependListener(b,y);if(!d._events||!d._events[b])d.on(b,y);else if(r(d._events[b]))d._events[b].unshift(y);else d._events[b]=[y,d._events[b]]}t.exports={Stream:l,prependListener:s}}),U2=jr((e,t)=>{var{SymbolDispose:r}=_n(),{AbortError:a,codes:n}=Ji(),{isNodeStream:l,isWebStream:s,kControllerErrorFunction:d}=al(),b=Eu(),{ERR_INVALID_ARG_TYPE:y}=n,v,g=(_,A)=>{if(typeof _!=="object"||!("aborted"in _))throw new y(A,"AbortSignal",_)};t.exports.addAbortSignal=function(_,A){if(g(_,"signal"),!l(A)&&!s(A))throw new y("stream",["ReadableStream","WritableStream","Stream"],A);return t.exports.addAbortSignalNoValidate(_,A)},t.exports.addAbortSignalNoValidate=function(_,A){if(typeof _!=="object"||!("aborted"in _))return A;let I=l(A)?()=>{A.destroy(new a(void 0,{cause:_.reason}))}:()=>{A[d](new a(void 0,{cause:_.reason}))};if(_.aborted)I();else{v=v||mo().addAbortListener;let O=v(_,I);b(A,O[r])}return A}}),D0e=jr((e,t)=>{var{StringPrototypeSlice:r,SymbolIterator:a,TypedArrayPrototypeSet:n,Uint8Array:l}=_n(),{Buffer:s}=(ci(),Cr(ui)),{inspect:d}=mo();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(b){let y={data:b,next:null};if(this.length>0)this.tail.next=y;else this.head=y;this.tail=y,++this.length}unshift(b){let y={data:b,next:this.head};if(this.length===0)this.tail=y;this.head=y,++this.length}shift(){if(this.length===0)return;let b=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,b}clear(){this.head=this.tail=null,this.length=0}join(b){if(this.length===0)return"";let y=this.head,v=""+y.data;while((y=y.next)!==null)v+=b+y.data;return v}concat(b){if(this.length===0)return s.alloc(0);let y=s.allocUnsafe(b>>>0),v=this.head,g=0;while(v)n(y,v.data,g),g+=v.data.length,v=v.next;return y}consume(b,y){let v=this.head.data;if(b<v.length){let g=v.slice(0,b);return this.head.data=v.slice(b),g}if(b===v.length)return this.shift();return y?this._getString(b):this._getBuffer(b)}first(){return this.head.data}*[a](){for(let b=this.head;b;b=b.next)yield b.data}_getString(b){let y="",v=this.head,g=0;do{let _=v.data;if(b>_.length)y+=_,b-=_.length;else{if(b===_.length)if(y+=_,++g,v.next)this.head=v.next;else this.head=this.tail=null;else y+=r(_,0,b),this.head=v,v.data=r(_,b);break}++g}while((v=v.next)!==null);return this.length-=g,y}_getBuffer(b){let y=s.allocUnsafe(b),v=b,g=this.head,_=0;do{let A=g.data;if(b>A.length)n(y,A,v-b),b-=A.length;else{if(b===A.length)if(n(y,A,v-b),++_,g.next)this.head=g.next;else this.head=this.tail=null;else n(y,new l(A.buffer,A.byteOffset,b),v-b),this.head=g,g.data=A.slice(b);break}++_}while((g=g.next)!==null);return this.length-=_,y}[Symbol.for("nodejs.util.inspect.custom")](b,y){return d(this,{...y,depth:0,customInspect:!1})}}}),j2=jr((e,t)=>{var{MathFloor:r,NumberIsInteger:a}=_n(),{validateInteger:n}=j0(),{ERR_INVALID_ARG_VALUE:l}=Ji().codes,s=16384,d=16;function b(_,A,I){return _.highWaterMark!=null?_.highWaterMark:A?_[I]:null}function y(_){return _?d:s}function v(_,A){if(n(A,"value",0),_)d=A;else s=A}function g(_,A,I,O){let N=b(A,O,I);if(N!=null){if(!a(N)||N<0){let P=O?`options.${I}`:"options.highWaterMark";throw new l(P,N)}return r(N)}return y(_.objectMode)}t.exports={getHighWaterMark:g,getDefaultHighWaterMark:y,setDefaultHighWaterMark:v}}),z0e=jr((e,t)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var r=(ci(),Cr(ui)),a=r.Buffer;function n(s,d){for(var b in s)d[b]=s[b]}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow)t.exports=r;else n(r,e),e.Buffer=l;function l(s,d,b){return a(s,d,b)}l.prototype=Object.create(a.prototype),n(a,l),l.from=function(s,d,b){if(typeof s==="number")throw TypeError("Argument must not be a number");return a(s,d,b)},l.alloc=function(s,d,b){if(typeof s!=="number")throw TypeError("Argument must be a number");var y=a(s);if(d!==void 0)if(typeof b==="string")y.fill(d,b);else y.fill(d);else y.fill(0);return y},l.allocUnsafe=function(s){if(typeof s!=="number")throw TypeError("Argument must be a number");return a(s)},l.allocUnsafeSlow=function(s){if(typeof s!=="number")throw TypeError("Argument must be a number");return r.SlowBuffer(s)}}),L0e=jr((e)=>{var t=z0e().Buffer,r=t.isEncoding||function(j){switch(j=""+j,j&&j.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 a(j){if(!j)return"utf8";var Z;while(!0)switch(j){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 j;default:if(Z)return;j=(""+j).toLowerCase(),Z=!0}}function n(j){var Z=a(j);if(typeof Z!=="string"&&(t.isEncoding===r||!r(j)))throw Error("Unknown encoding: "+j);return Z||j}e.StringDecoder=l;function l(j){this.encoding=n(j);var Z;switch(this.encoding){case"utf16le":this.text=_,this.end=A,Z=4;break;case"utf8":this.fillLast=y,Z=4;break;case"base64":this.text=I,this.end=O,Z=3;break;default:this.write=N,this.end=P;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(Z)}l.prototype.write=function(j){if(j.length===0)return"";var Z,V;if(this.lastNeed){if(Z=this.fillLast(j),Z===void 0)return"";V=this.lastNeed,this.lastNeed=0}else V=0;if(V<j.length)return Z?Z+this.text(j,V):this.text(j,V);return Z||""},l.prototype.end=g,l.prototype.text=v,l.prototype.fillLast=function(j){if(this.lastNeed<=j.length)return j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,j.length),this.lastNeed-=j.length};function s(j){if(j<=127)return 0;else if(j>>5===6)return 2;else if(j>>4===14)return 3;else if(j>>3===30)return 4;return j>>6===2?-1:-2}function d(j,Z,V){var W=Z.length-1;if(W<V)return 0;var J=s(Z[W]);if(J>=0){if(J>0)j.lastNeed=J-1;return J}if(--W<V||J===-2)return 0;if(J=s(Z[W]),J>=0){if(J>0)j.lastNeed=J-2;return J}if(--W<V||J===-2)return 0;if(J=s(Z[W]),J>=0){if(J>0)if(J===2)J=0;else j.lastNeed=J-3;return J}return 0}function b(j,Z,V){if((Z[0]&192)!==128)return j.lastNeed=0,"�";if(j.lastNeed>1&&Z.length>1){if((Z[1]&192)!==128)return j.lastNeed=1,"�";if(j.lastNeed>2&&Z.length>2){if((Z[2]&192)!==128)return j.lastNeed=2,"�"}}}function y(j){var Z=this.lastTotal-this.lastNeed,V=b(this,j,Z);if(V!==void 0)return V;if(this.lastNeed<=j.length)return j.copy(this.lastChar,Z,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,Z,0,j.length),this.lastNeed-=j.length}function v(j,Z){var V=d(this,j,Z);if(!this.lastNeed)return j.toString("utf8",Z);this.lastTotal=V;var W=j.length-(V-this.lastNeed);return j.copy(this.lastChar,0,W),j.toString("utf8",Z,W)}function g(j){var Z=j&&j.length?this.write(j):"";if(this.lastNeed)return Z+"�";return Z}function _(j,Z){if((j.length-Z)%2===0){var V=j.toString("utf16le",Z);if(V){var W=V.charCodeAt(V.length-1);if(W>=55296&&W<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1],V.slice(0,-1)}return V}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=j[j.length-1],j.toString("utf16le",Z,j.length-1)}function A(j){var Z=j&&j.length?this.write(j):"";if(this.lastNeed){var V=this.lastTotal-this.lastNeed;return Z+this.lastChar.toString("utf16le",0,V)}return Z}function I(j,Z){var V=(j.length-Z)%3;if(V===0)return j.toString("base64",Z);if(this.lastNeed=3-V,this.lastTotal=3,V===1)this.lastChar[0]=j[j.length-1];else this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1];return j.toString("base64",Z,j.length-V)}function O(j){var Z=j&&j.length?this.write(j):"";if(this.lastNeed)return Z+this.lastChar.toString("base64",0,3-this.lastNeed);return Z}function N(j){return j.toString(this.encoding)}function P(j){return j&&j.length?this.write(j):""}}),qV=jr((e,t)=>{var r=of(),{PromisePrototypeThen:a,SymbolAsyncIterator:n,SymbolIterator:l}=_n(),{Buffer:s}=(ci(),Cr(ui)),{ERR_INVALID_ARG_TYPE:d,ERR_STREAM_NULL_VALUES:b}=Ji().codes;function y(v,g,_){let A;if(typeof g==="string"||g instanceof s)return new v({objectMode:!0,..._,read(){this.push(g),this.push(null)}});let I;if(g&&g[n])I=!0,A=g[n]();else if(g&&g[l])I=!1,A=g[l]();else throw new d("iterable",["Iterable"],g);let O=new v({objectMode:!0,highWaterMark:1,..._}),N=!1;O._read=function(){if(!N)N=!0,j()},O._destroy=function(Z,V){a(P(Z),()=>r.nextTick(V,Z),(W)=>r.nextTick(V,W||Z))};async function P(Z){let V=Z!==void 0&&Z!==null,W=typeof A.throw==="function";if(V&&W){let{value:J,done:ve}=await A.throw(Z);if(await J,ve)return}if(typeof A.return==="function"){let{value:J}=await A.return();await J}}async function j(){for(;;){try{let{value:Z,done:V}=I?await A.next():A.next();if(V)O.push(null);else{let W=Z&&typeof Z.then==="function"?await Z:Z;if(W===null)throw N=!1,new b;else if(O.push(W))continue;else N=!1}}catch(Z){O.destroy(Z)}break}}return O}t.exports=y}),H2=jr((e,t)=>{var r=of(),{ArrayPrototypeIndexOf:a,NumberIsInteger:n,NumberIsNaN:l,NumberParseInt:s,ObjectDefineProperties:d,ObjectKeys:b,ObjectSetPrototypeOf:y,Promise:v,SafeSet:g,SymbolAsyncDispose:_,SymbolAsyncIterator:A,Symbol:I}=_n();t.exports=De,De.ReadableState=gt;var{EventEmitter:O}=(B0(),Cr($0)),{Stream:N,prependListener:P}=ZM(),{Buffer:j}=(ci(),Cr(ui)),{addAbortSignal:Z}=U2(),V=Eu(),W=mo().debuglog("stream",(re)=>{W=re}),J=D0e(),ve=wh(),{getHighWaterMark:ce,getDefaultHighWaterMark:Me}=j2(),{aggregateTwoErrors:Y,codes:{ERR_INVALID_ARG_TYPE:Te,ERR_METHOD_NOT_IMPLEMENTED:f,ERR_OUT_OF_RANGE:p,ERR_STREAM_PUSH_AFTER_EOF:x,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:h},AbortError:S}=Ji(),{validateObject:k}=j0(),C=I("kPaused"),{StringDecoder:w}=L0e(),c=qV();y(De.prototype,N.prototype),y(De,N);var T=()=>{},{errorOrDestroy:z}=ve,R=1,q=2,Q=4,ie=8,me=16,Je=32,ke=64,fe=128,be=256,Ae=512,Be=1024,vt=2048,oe=4096,se=8192,Ke=16384,he=32768,Ie=65536,Qe=131072,le=262144;function Ee(re){return{enumerable:!1,get(){return(this.state&re)!==0},set(ye){if(ye)this.state|=re;else this.state&=~re}}}d(gt.prototype,{objectMode:Ee(R),ended:Ee(q),endEmitted:Ee(Q),reading:Ee(ie),constructed:Ee(me),sync:Ee(Je),needReadable:Ee(ke),emittedReadable:Ee(fe),readableListening:Ee(be),resumeScheduled:Ee(Ae),errorEmitted:Ee(Be),emitClose:Ee(vt),autoDestroy:Ee(oe),destroyed:Ee(se),closed:Ee(Ke),closeEmitted:Ee(he),multiAwaitDrain:Ee(Ie),readingMore:Ee(Qe),dataEmitted:Ee(le)});function gt(re,ye,Ze){if(typeof Ze!=="boolean")Ze=ye instanceof ol();if(this.state=vt|oe|me|Je,re&&re.objectMode)this.state|=R;if(Ze&&re&&re.readableObjectMode)this.state|=R;if(this.highWaterMark=re?ce(this,re,"readableHighWaterMark",Ze):Me(!1),this.buffer=new J,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,re&&re.emitClose===!1)this.state&=~vt;if(re&&re.autoDestroy===!1)this.state&=~oe;if(this.errored=null,this.defaultEncoding=re&&re.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,re&&re.encoding)this.decoder=new w(re.encoding),this.encoding=re.encoding}function De(re){if(!(this instanceof De))return new De(re);let ye=this instanceof ol();if(this._readableState=new gt(re,this,ye),re){if(typeof re.read==="function")this._read=re.read;if(typeof re.destroy==="function")this._destroy=re.destroy;if(typeof re.construct==="function")this._construct=re.construct;if(re.signal&&!ye)Z(re.signal,this)}N.call(this,re),ve.construct(this,()=>{if(this._readableState.needReadable)xe(this,this._readableState)})}De.prototype.destroy=ve.destroy,De.prototype._undestroy=ve.undestroy,De.prototype._destroy=function(re,ye){ye(re)},De.prototype[O.captureRejectionSymbol]=function(re){this.destroy(re)},De.prototype[_]=function(){let re;if(!this.destroyed)re=this.readableEnded?null:new S,this.destroy(re);return new v((ye,Ze)=>V(this,(Ve)=>Ve&&Ve!==re?Ze(Ve):ye(null)))},De.prototype.push=function(re,ye){return We(this,re,ye,!1)},De.prototype.unshift=function(re,ye){return We(this,re,ye,!0)};function We(re,ye,Ze,Ve){W("readableAddChunk",ye);let Dt=re._readableState,mt;if((Dt.state&R)===0){if(typeof ye==="string"){if(Ze=Ze||Dt.defaultEncoding,Dt.encoding!==Ze)if(Ve&&Dt.encoding)ye=j.from(ye,Ze).toString(Dt.encoding);else ye=j.from(ye,Ze),Ze=""}else if(ye instanceof j)Ze="";else if(N._isUint8Array(ye))ye=N._uint8ArrayToBuffer(ye),Ze="";else if(ye!=null)mt=new Te("chunk",["string","Buffer","Uint8Array"],ye)}if(mt)z(re,mt);else if(ye===null)Dt.state&=~ie,ae(re,Dt);else if((Dt.state&R)!==0||ye&&ye.length>0)if(Ve)if((Dt.state&Q)!==0)z(re,new h);else if(Dt.destroyed||Dt.errored)return!1;else Ye(re,Dt,ye,!0);else if(Dt.ended)z(re,new x);else if(Dt.destroyed||Dt.errored)return!1;else if(Dt.state&=~ie,Dt.decoder&&!Ze)if(ye=Dt.decoder.write(ye),Dt.objectMode||ye.length!==0)Ye(re,Dt,ye,!1);else xe(re,Dt);else Ye(re,Dt,ye,!1);else if(!Ve)Dt.state&=~ie,xe(re,Dt);return!Dt.ended&&(Dt.length<Dt.highWaterMark||Dt.length===0)}function Ye(re,ye,Ze,Ve){if(ye.flowing&&ye.length===0&&!ye.sync&&re.listenerCount("data")>0){if((ye.state&Ie)!==0)ye.awaitDrainWriters.clear();else ye.awaitDrainWriters=null;ye.dataEmitted=!0,re.emit("data",Ze)}else{if(ye.length+=ye.objectMode?1:Ze.length,Ve)ye.buffer.unshift(Ze);else ye.buffer.push(Ze);if((ye.state&ke)!==0)_e(re)}xe(re,ye)}De.prototype.isPaused=function(){let re=this._readableState;return re[C]===!0||re.flowing===!1},De.prototype.setEncoding=function(re){let ye=new w(re);this._readableState.decoder=ye,this._readableState.encoding=this._readableState.decoder.encoding;let Ze=this._readableState.buffer,Ve="";for(let Dt of Ze)Ve+=ye.write(Dt);if(Ze.clear(),Ve!=="")Ze.push(Ve);return this._readableState.length=Ve.length,this};var we=1073741824;function Fe(re){if(re>we)throw new p("size","<= 1GiB",re);else re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++;return re}function L(re,ye){if(re<=0||ye.length===0&&ye.ended)return 0;if((ye.state&R)!==0)return 1;if(l(re)){if(ye.flowing&&ye.length)return ye.buffer.first().length;return ye.length}if(re<=ye.length)return re;return ye.ended?ye.length:0}De.prototype.read=function(re){if(W("read",re),re===void 0)re=NaN;else if(!n(re))re=s(re,10);let ye=this._readableState,Ze=re;if(re>ye.highWaterMark)ye.highWaterMark=Fe(re);if(re!==0)ye.state&=~fe;if(re===0&&ye.needReadable&&((ye.highWaterMark!==0?ye.length>=ye.highWaterMark:ye.length>0)||ye.ended)){if(W("read: emitReadable",ye.length,ye.ended),ye.length===0&&ye.ended)ht(this);else _e(this);return null}if(re=L(re,ye),re===0&&ye.ended){if(ye.length===0)ht(this);return null}let Ve=(ye.state&ke)!==0;if(W("need readable",Ve),ye.length===0||ye.length-re<ye.highWaterMark)Ve=!0,W("length less than watermark",Ve);if(ye.ended||ye.reading||ye.destroyed||ye.errored||!ye.constructed)Ve=!1,W("reading, ended or constructing",Ve);else if(Ve){if(W("do read"),ye.state|=ie|Je,ye.length===0)ye.state|=ke;try{this._read(ye.highWaterMark)}catch(mt){z(this,mt)}if(ye.state&=~Je,!ye.reading)re=L(Ze,ye)}let Dt;if(re>0)Dt=qe(re,ye);else Dt=null;if(Dt===null)ye.needReadable=ye.length<=ye.highWaterMark,re=0;else if(ye.length-=re,ye.multiAwaitDrain)ye.awaitDrainWriters.clear();else ye.awaitDrainWriters=null;if(ye.length===0){if(!ye.ended)ye.needReadable=!0;if(Ze!==re&&ye.ended)ht(this)}if(Dt!==null&&!ye.errorEmitted&&!ye.closeEmitted)ye.dataEmitted=!0,this.emit("data",Dt);return Dt};function ae(re,ye){if(W("onEofChunk"),ye.ended)return;if(ye.decoder){let Ze=ye.decoder.end();if(Ze&&Ze.length)ye.buffer.push(Ze),ye.length+=ye.objectMode?1:Ze.length}if(ye.ended=!0,ye.sync)_e(re);else ye.needReadable=!1,ye.emittedReadable=!0,ot(re)}function _e(re){let ye=re._readableState;if(W("emitReadable",ye.needReadable,ye.emittedReadable),ye.needReadable=!1,!ye.emittedReadable)W("emitReadable",ye.flowing),ye.emittedReadable=!0,r.nextTick(ot,re)}function ot(re){let ye=re._readableState;if(W("emitReadable_",ye.destroyed,ye.length,ye.ended),!ye.destroyed&&!ye.errored&&(ye.length||ye.ended))re.emit("readable"),ye.emittedReadable=!1;ye.needReadable=!ye.flowing&&!ye.ended&&ye.length<=ye.highWaterMark,de(re)}function xe(re,ye){if(!ye.readingMore&&ye.constructed)ye.readingMore=!0,r.nextTick(K,re,ye)}function K(re,ye){while(!ye.reading&&!ye.ended&&(ye.length<ye.highWaterMark||ye.flowing&&ye.length===0)){let Ze=ye.length;if(W("maybeReadMore read 0"),re.read(0),Ze===ye.length)break}ye.readingMore=!1}De.prototype._read=function(re){throw new f("_read()")},De.prototype.pipe=function(re,ye){let Ze=this,Ve=this._readableState;if(Ve.pipes.length===1){if(!Ve.multiAwaitDrain)Ve.multiAwaitDrain=!0,Ve.awaitDrainWriters=new g(Ve.awaitDrainWriters?[Ve.awaitDrainWriters]:[])}Ve.pipes.push(re),W("pipe count=%d opts=%j",Ve.pipes.length,ye);let Dt=(!ye||ye.end!==!1)&&re!==r.stdout&&re!==r.stderr?yt:nr;if(Ve.endEmitted)r.nextTick(Dt);else Ze.once("end",Dt);re.on("unpipe",mt);function mt(Lr,Tr){if(W("onunpipe"),Lr===Ze){if(Tr&&Tr.hasUnpiped===!1)Tr.hasUnpiped=!0,xt()}}function yt(){W("onend"),re.end()}let Qr,_t=!1;function xt(){if(W("cleanup"),re.removeListener("close",sn),re.removeListener("finish",ir),Qr)re.removeListener("drain",Qr);if(re.removeListener("error",St),re.removeListener("unpipe",mt),Ze.removeListener("end",yt),Ze.removeListener("end",nr),Ze.removeListener("data",wt),_t=!0,Qr&&Ve.awaitDrainWriters&&(!re._writableState||re._writableState.needDrain))Qr()}function zr(){if(!_t){if(Ve.pipes.length===1&&Ve.pipes[0]===re)W("false write response, pause",0),Ve.awaitDrainWriters=re,Ve.multiAwaitDrain=!1;else if(Ve.pipes.length>1&&Ve.pipes.includes(re))W("false write response, pause",Ve.awaitDrainWriters.size),Ve.awaitDrainWriters.add(re);Ze.pause()}if(!Qr)Qr=Ge(Ze,re),re.on("drain",Qr)}Ze.on("data",wt);function wt(Lr){W("ondata");let Tr=re.write(Lr);if(W("dest.write",Tr),Tr===!1)zr()}function St(Lr){if(W("onerror",Lr),nr(),re.removeListener("error",St),re.listenerCount("error")===0){let Tr=re._writableState||re._readableState;if(Tr&&!Tr.errorEmitted)z(re,Lr);else re.emit("error",Lr)}}P(re,"error",St);function sn(){re.removeListener("finish",ir),nr()}re.once("close",sn);function ir(){W("onfinish"),re.removeListener("close",sn),nr()}re.once("finish",ir);function nr(){W("unpipe"),Ze.unpipe(re)}if(re.emit("pipe",Ze),re.writableNeedDrain===!0)zr();else if(!Ve.flowing)W("pipe resume"),Ze.resume();return re};function Ge(re,ye){return function(){let Ze=re._readableState;if(Ze.awaitDrainWriters===ye)W("pipeOnDrain",1),Ze.awaitDrainWriters=null;else if(Ze.multiAwaitDrain)W("pipeOnDrain",Ze.awaitDrainWriters.size),Ze.awaitDrainWriters.delete(ye);if((!Ze.awaitDrainWriters||Ze.awaitDrainWriters.size===0)&&re.listenerCount("data"))re.resume()}}De.prototype.unpipe=function(re){let ye=this._readableState,Ze={hasUnpiped:!1};if(ye.pipes.length===0)return this;if(!re){let Dt=ye.pipes;ye.pipes=[],this.pause();for(let mt=0;mt<Dt.length;mt++)Dt[mt].emit("unpipe",this,{hasUnpiped:!1});return this}let Ve=a(ye.pipes,re);if(Ve===-1)return this;if(ye.pipes.splice(Ve,1),ye.pipes.length===0)this.pause();return re.emit("unpipe",this,Ze),this},De.prototype.on=function(re,ye){let Ze=N.prototype.on.call(this,re,ye),Ve=this._readableState;if(re==="data"){if(Ve.readableListening=this.listenerCount("readable")>0,Ve.flowing!==!1)this.resume()}else if(re==="readable"){if(!Ve.endEmitted&&!Ve.readableListening){if(Ve.readableListening=Ve.needReadable=!0,Ve.flowing=!1,Ve.emittedReadable=!1,W("on readable",Ve.length,Ve.reading),Ve.length)_e(this);else if(!Ve.reading)r.nextTick(te,this)}}return Ze},De.prototype.addListener=De.prototype.on,De.prototype.removeListener=function(re,ye){let Ze=N.prototype.removeListener.call(this,re,ye);if(re==="readable")r.nextTick(F,this);return Ze},De.prototype.off=De.prototype.removeListener,De.prototype.removeAllListeners=function(re){let ye=N.prototype.removeAllListeners.apply(this,arguments);if(re==="readable"||re===void 0)r.nextTick(F,this);return ye};function F(re){let ye=re._readableState;if(ye.readableListening=re.listenerCount("readable")>0,ye.resumeScheduled&&ye[C]===!1)ye.flowing=!0;else if(re.listenerCount("data")>0)re.resume();else if(!ye.readableListening)ye.flowing=null}function te(re){W("readable nexttick read 0"),re.read(0)}De.prototype.resume=function(){let re=this._readableState;if(!re.flowing)W("resume"),re.flowing=!re.readableListening,Pe(this,re);return re[C]=!1,this};function Pe(re,ye){if(!ye.resumeScheduled)ye.resumeScheduled=!0,r.nextTick(pe,re,ye)}function pe(re,ye){if(W("resume",ye.reading),!ye.reading)re.read(0);if(ye.resumeScheduled=!1,re.emit("resume"),de(re),ye.flowing&&!ye.reading)re.read(0)}De.prototype.pause=function(){if(W("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)W("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[C]=!0,this};function de(re){let ye=re._readableState;W("flow",ye.flowing);while(ye.flowing&&re.read()!==null);}De.prototype.wrap=function(re){let ye=!1;re.on("data",(Ve)=>{if(!this.push(Ve)&&re.pause)ye=!0,re.pause()}),re.on("end",()=>{this.push(null)}),re.on("error",(Ve)=>{z(this,Ve)}),re.on("close",()=>{this.destroy()}),re.on("destroy",()=>{this.destroy()}),this._read=()=>{if(ye&&re.resume)ye=!1,re.resume()};let Ze=b(re);for(let Ve=1;Ve<Ze.length;Ve++){let Dt=Ze[Ve];if(this[Dt]===void 0&&typeof re[Dt]==="function")this[Dt]=re[Dt].bind(re)}return this},De.prototype[A]=function(){return at(this)},De.prototype.iterator=function(re){if(re!==void 0)k(re,"options");return at(this,re)};function at(re,ye){if(typeof re.read!=="function")re=De.wrap(re,{objectMode:!0});let Ze=$e(re,ye);return Ze.stream=re,Ze}async function*$e(re,ye){let Ze=T;function Ve(yt){if(this===re)Ze(),Ze=T;else Ze=yt}re.on("readable",Ve);let Dt,mt=V(re,{writable:!1},(yt)=>{Dt=yt?Y(Dt,yt):null,Ze(),Ze=T});try{while(!0){let yt=re.destroyed?null:re.read();if(yt!==null)yield yt;else if(Dt)throw Dt;else if(Dt===null)return;else await new v(Ve)}}catch(yt){throw Dt=Y(Dt,yt),Dt}finally{if((Dt||(ye===null||ye===void 0?void 0:ye.destroyOnReturn)!==!1)&&(Dt===void 0||re._readableState.autoDestroy))ve.destroyer(re,null);else re.off("readable",Ve),mt()}}d(De.prototype,{readable:{__proto__:null,get(){let re=this._readableState;return!!re&&re.readable!==!1&&!re.destroyed&&!re.errorEmitted&&!re.endEmitted},set(re){if(this._readableState)this._readableState.readable=!!re}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(re){if(this._readableState)this._readableState.flowing=re}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(re){if(!this._readableState)return;this._readableState.destroyed=re}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(gt.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[C]!==!1},set(re){this[C]=!!re}}}),De._fromList=qe;function qe(re,ye){if(ye.length===0)return null;let Ze;if(ye.objectMode)Ze=ye.buffer.shift();else if(!re||re>=ye.length){if(ye.decoder)Ze=ye.buffer.join("");else if(ye.buffer.length===1)Ze=ye.buffer.first();else Ze=ye.buffer.concat(ye.length);ye.buffer.clear()}else Ze=ye.buffer.consume(re,ye.decoder);return Ze}function ht(re){let ye=re._readableState;if(W("endReadable",ye.endEmitted),!ye.endEmitted)ye.ended=!0,r.nextTick(tt,ye,re)}function tt(re,ye){if(W("endReadableNT",re.endEmitted,re.length),!re.errored&&!re.closeEmitted&&!re.endEmitted&&re.length===0){if(re.endEmitted=!0,ye.emit("end"),ye.writable&&ye.allowHalfOpen===!1)r.nextTick(nt,ye);else if(re.autoDestroy){let Ze=ye._writableState;if(!Ze||Ze.autoDestroy&&(Ze.finished||Ze.writable===!1))ye.destroy()}}}function nt(re){if(re.writable&&!re.writableEnded&&!re.destroyed)re.end()}De.from=function(re,ye){return c(De,re,ye)};var Er;function bt(){if(Er===void 0)Er={};return Er}De.fromWeb=function(re,ye){return bt().newStreamReadableFromReadableStream(re,ye)},De.toWeb=function(re,ye){return bt().newReadableStreamFromStreamReadable(re,ye)},De.wrap=function(re,ye){var Ze,Ve;return new De({objectMode:(Ze=(Ve=re.readableObjectMode)!==null&&Ve!==void 0?Ve:re.objectMode)!==null&&Ze!==void 0?Ze:!0,...ye,destroy(Dt,mt){ve.destroyer(re,Dt),mt(Dt)}}).wrap(re)}}),FM=jr((e,t)=>{var r=of(),{ArrayPrototypeSlice:a,Error:n,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:s,ObjectDefineProperties:d,ObjectSetPrototypeOf:b,StringPrototypeToLowerCase:y,Symbol:v,SymbolHasInstance:g}=_n();t.exports=k,k.WritableState=h;var{EventEmitter:_}=(B0(),Cr($0)),A=ZM().Stream,{Buffer:I}=(ci(),Cr(ui)),O=wh(),{addAbortSignal:N}=U2(),{getHighWaterMark:P,getDefaultHighWaterMark:j}=j2(),{ERR_INVALID_ARG_TYPE:Z,ERR_METHOD_NOT_IMPLEMENTED:V,ERR_MULTIPLE_CALLBACK:W,ERR_STREAM_CANNOT_PIPE:J,ERR_STREAM_DESTROYED:ve,ERR_STREAM_ALREADY_FINISHED:ce,ERR_STREAM_NULL_VALUES:Me,ERR_STREAM_WRITE_AFTER_END:Y,ERR_UNKNOWN_ENCODING:Te}=Ji().codes,{errorOrDestroy:f}=O;b(k.prototype,A.prototype),b(k,A);function p(){}var x=v("kOnFinished");function h(oe,se,Ke){if(typeof Ke!=="boolean")Ke=se instanceof ol();if(this.objectMode=!!(oe&&oe.objectMode),Ke)this.objectMode=this.objectMode||!!(oe&&oe.writableObjectMode);this.highWaterMark=oe?P(this,oe,"writableHighWaterMark",Ke):j(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let he=!!(oe&&oe.decodeStrings===!1);this.decodeStrings=!he,this.defaultEncoding=oe&&oe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=z.bind(void 0,se),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,S(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!oe||oe.emitClose!==!1,this.autoDestroy=!oe||oe.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[x]=[]}function S(oe){oe.buffered=[],oe.bufferedIndex=0,oe.allBuffers=!0,oe.allNoop=!0}h.prototype.getBuffer=function(){return a(this.buffered,this.bufferedIndex)},s(h.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function k(oe){let se=this instanceof ol();if(!se&&!l(k,this))return new k(oe);if(this._writableState=new h(oe,this,se),oe){if(typeof oe.write==="function")this._write=oe.write;if(typeof oe.writev==="function")this._writev=oe.writev;if(typeof oe.destroy==="function")this._destroy=oe.destroy;if(typeof oe.final==="function")this._final=oe.final;if(typeof oe.construct==="function")this._construct=oe.construct;if(oe.signal)N(oe.signal,this)}A.call(this,oe),O.construct(this,()=>{let Ke=this._writableState;if(!Ke.writing)ie(this,Ke);fe(this,Ke)})}s(k,g,{__proto__:null,value:function(oe){if(l(this,oe))return!0;if(this!==k)return!1;return oe&&oe._writableState instanceof h}}),k.prototype.pipe=function(){f(this,new J)};function C(oe,se,Ke,he){let Ie=oe._writableState;if(typeof Ke==="function")he=Ke,Ke=Ie.defaultEncoding;else{if(!Ke)Ke=Ie.defaultEncoding;else if(Ke!=="buffer"&&!I.isEncoding(Ke))throw new Te(Ke);if(typeof he!=="function")he=p}if(se===null)throw new Me;else if(!Ie.objectMode)if(typeof se==="string"){if(Ie.decodeStrings!==!1)se=I.from(se,Ke),Ke="buffer"}else if(se instanceof I)Ke="buffer";else if(A._isUint8Array(se))se=A._uint8ArrayToBuffer(se),Ke="buffer";else throw new Z("chunk",["string","Buffer","Uint8Array"],se);let Qe;if(Ie.ending)Qe=new Y;else if(Ie.destroyed)Qe=new ve("write");if(Qe)return r.nextTick(he,Qe),f(oe,Qe,!0),Qe;return Ie.pendingcb++,w(oe,Ie,se,Ke,he)}k.prototype.write=function(oe,se,Ke){return C(this,oe,se,Ke)===!0},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){let oe=this._writableState;if(oe.corked){if(oe.corked--,!oe.writing)ie(this,oe)}},k.prototype.setDefaultEncoding=function(oe){if(typeof oe==="string")oe=y(oe);if(!I.isEncoding(oe))throw new Te(oe);return this._writableState.defaultEncoding=oe,this};function w(oe,se,Ke,he,Ie){let Qe=se.objectMode?1:Ke.length;se.length+=Qe;let le=se.length<se.highWaterMark;if(!le)se.needDrain=!0;if(se.writing||se.corked||se.errored||!se.constructed){if(se.buffered.push({chunk:Ke,encoding:he,callback:Ie}),se.allBuffers&&he!=="buffer")se.allBuffers=!1;if(se.allNoop&&Ie!==p)se.allNoop=!1}else se.writelen=Qe,se.writecb=Ie,se.writing=!0,se.sync=!0,oe._write(Ke,he,se.onwrite),se.sync=!1;return le&&!se.errored&&!se.destroyed}function c(oe,se,Ke,he,Ie,Qe,le){if(se.writelen=he,se.writecb=le,se.writing=!0,se.sync=!0,se.destroyed)se.onwrite(new ve("write"));else if(Ke)oe._writev(Ie,se.onwrite);else oe._write(Ie,Qe,se.onwrite);se.sync=!1}function T(oe,se,Ke,he){--se.pendingcb,he(Ke),Q(se),f(oe,Ke)}function z(oe,se){let Ke=oe._writableState,he=Ke.sync,Ie=Ke.writecb;if(typeof Ie!=="function"){f(oe,new W);return}if(Ke.writing=!1,Ke.writecb=null,Ke.length-=Ke.writelen,Ke.writelen=0,se){if(se.stack,!Ke.errored)Ke.errored=se;if(oe._readableState&&!oe._readableState.errored)oe._readableState.errored=se;if(he)r.nextTick(T,oe,Ke,se,Ie);else T(oe,Ke,se,Ie)}else{if(Ke.buffered.length>Ke.bufferedIndex)ie(oe,Ke);if(he)if(Ke.afterWriteTickInfo!==null&&Ke.afterWriteTickInfo.cb===Ie)Ke.afterWriteTickInfo.count++;else Ke.afterWriteTickInfo={count:1,cb:Ie,stream:oe,state:Ke},r.nextTick(R,Ke.afterWriteTickInfo);else q(oe,Ke,1,Ie)}}function R({stream:oe,state:se,count:Ke,cb:he}){return se.afterWriteTickInfo=null,q(oe,se,Ke,he)}function q(oe,se,Ke,he){if(!se.ending&&!oe.destroyed&&se.length===0&&se.needDrain)se.needDrain=!1,oe.emit("drain");while(Ke-- >0)se.pendingcb--,he();if(se.destroyed)Q(se);fe(oe,se)}function Q(oe){if(oe.writing)return;for(let Ie=oe.bufferedIndex;Ie<oe.buffered.length;++Ie){var se;let{chunk:Qe,callback:le}=oe.buffered[Ie],Ee=oe.objectMode?1:Qe.length;oe.length-=Ee,le((se=oe.errored)!==null&&se!==void 0?se:new ve("write"))}let Ke=oe[x].splice(0);for(let Ie=0;Ie<Ke.length;Ie++){var he;Ke[Ie]((he=oe.errored)!==null&&he!==void 0?he:new ve("end"))}S(oe)}function ie(oe,se){if(se.corked||se.bufferProcessing||se.destroyed||!se.constructed)return;let{buffered:Ke,bufferedIndex:he,objectMode:Ie}=se,Qe=Ke.length-he;if(!Qe)return;let le=he;if(se.bufferProcessing=!0,Qe>1&&oe._writev){se.pendingcb-=Qe-1;let Ee=se.allNoop?p:(De)=>{for(let We=le;We<Ke.length;++We)Ke[We].callback(De)},gt=se.allNoop&&le===0?Ke:a(Ke,le);gt.allBuffers=se.allBuffers,c(oe,se,!0,se.length,gt,"",Ee),S(se)}else{do{let{chunk:Ee,encoding:gt,callback:De}=Ke[le];Ke[le++]=null;let We=Ie?1:Ee.length;c(oe,se,!1,We,Ee,gt,De)}while(le<Ke.length&&!se.writing);if(le===Ke.length)S(se);else if(le>256)Ke.splice(0,le),se.bufferedIndex=0;else se.bufferedIndex=le}se.bufferProcessing=!1}k.prototype._write=function(oe,se,Ke){if(this._writev)this._writev([{chunk:oe,encoding:se}],Ke);else throw new V("_write()")},k.prototype._writev=null,k.prototype.end=function(oe,se,Ke){let he=this._writableState;if(typeof oe==="function")Ke=oe,oe=null,se=null;else if(typeof se==="function")Ke=se,se=null;let Ie;if(oe!==null&&oe!==void 0){let Qe=C(this,oe,se);if(Qe instanceof n)Ie=Qe}if(he.corked)he.corked=1,this.uncork();if(Ie);else if(!he.errored&&!he.ending)he.ending=!0,fe(this,he,!0),he.ended=!0;else if(he.finished)Ie=new ce("end");else if(he.destroyed)Ie=new ve("end");if(typeof Ke==="function")if(Ie||he.finished)r.nextTick(Ke,Ie);else he[x].push(Ke);return this};function me(oe){return oe.ending&&!oe.destroyed&&oe.constructed&&oe.length===0&&!oe.errored&&oe.buffered.length===0&&!oe.finished&&!oe.writing&&!oe.errorEmitted&&!oe.closeEmitted}function Je(oe,se){let Ke=!1;function he(Ie){if(Ke){f(oe,Ie!==null&&Ie!==void 0?Ie:W());return}if(Ke=!0,se.pendingcb--,Ie){let Qe=se[x].splice(0);for(let le=0;le<Qe.length;le++)Qe[le](Ie);f(oe,Ie,se.sync)}else if(me(se))se.prefinished=!0,oe.emit("prefinish"),se.pendingcb++,r.nextTick(be,oe,se)}se.sync=!0,se.pendingcb++;try{oe._final(he)}catch(Ie){he(Ie)}se.sync=!1}function ke(oe,se){if(!se.prefinished&&!se.finalCalled)if(typeof oe._final==="function"&&!se.destroyed)se.finalCalled=!0,Je(oe,se);else se.prefinished=!0,oe.emit("prefinish")}function fe(oe,se,Ke){if(me(se)){if(ke(oe,se),se.pendingcb===0){if(Ke)se.pendingcb++,r.nextTick((he,Ie)=>{if(me(Ie))be(he,Ie);else Ie.pendingcb--},oe,se);else if(me(se))se.pendingcb++,be(oe,se)}}}function be(oe,se){se.pendingcb--,se.finished=!0;let Ke=se[x].splice(0);for(let he=0;he<Ke.length;he++)Ke[he]();if(oe.emit("finish"),se.autoDestroy){let he=oe._readableState;if(!he||he.autoDestroy&&(he.endEmitted||he.readable===!1))oe.destroy()}}d(k.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(oe){if(this._writableState)this._writableState.destroyed=oe}},writable:{__proto__:null,get(){let oe=this._writableState;return!!oe&&oe.writable!==!1&&!oe.destroyed&&!oe.errored&&!oe.ending&&!oe.ended},set(oe){if(this._writableState)this._writableState.writable=!!oe}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let oe=this._writableState;if(!oe)return!1;return!oe.destroyed&&!oe.ending&&oe.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Ae=O.destroy;k.prototype.destroy=function(oe,se){let Ke=this._writableState;if(!Ke.destroyed&&(Ke.bufferedIndex<Ke.buffered.length||Ke[x].length))r.nextTick(Q,Ke);return Ae.call(this,oe,se),this},k.prototype._undestroy=O.undestroy,k.prototype._destroy=function(oe,se){se(oe)},k.prototype[_.captureRejectionSymbol]=function(oe){this.destroy(oe)};var Be;function vt(){if(Be===void 0)Be={};return Be}k.fromWeb=function(oe,se){return vt().newStreamWritableFromWritableStream(oe,se)},k.toWeb=function(oe){return vt().newWritableStreamFromStreamWritable(oe)}}),P0e=jr((e,t)=>{var r=of(),a=(ci(),Cr(ui)),{isReadable:n,isWritable:l,isIterable:s,isNodeStream:d,isReadableNodeStream:b,isWritableNodeStream:y,isDuplexNodeStream:v,isReadableStream:g,isWritableStream:_}=al(),A=Eu(),{AbortError:I,codes:{ERR_INVALID_ARG_TYPE:O,ERR_INVALID_RETURN_VALUE:N}}=Ji(),{destroyer:P}=wh(),j=ol(),Z=H2(),V=FM(),{createDeferredPromise:W}=mo(),J=qV(),ve=globalThis.Blob||a.Blob,ce=typeof ve<"u"?function(x){return x instanceof ve}:function(x){return!1},Me=globalThis.AbortController||U0().AbortController,{FunctionPrototypeCall:Y}=_n();class Te extends j{constructor(x){super(x);if((x===null||x===void 0?void 0:x.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((x===null||x===void 0?void 0:x.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}t.exports=function x(h,S){if(v(h))return h;if(b(h))return p({readable:h});if(y(h))return p({writable:h});if(d(h))return p({writable:!1,readable:!1});if(g(h))return p({readable:Z.fromWeb(h)});if(_(h))return p({writable:V.fromWeb(h)});if(typeof h==="function"){let{value:C,write:w,final:c,destroy:T}=f(h);if(s(C))return J(Te,C,{objectMode:!0,write:w,final:c,destroy:T});let z=C===null||C===void 0?void 0:C.then;if(typeof z==="function"){let R,q=Y(z,C,(Q)=>{if(Q!=null)throw new N("nully","body",Q)},(Q)=>{P(R,Q)});return R=new Te({objectMode:!0,readable:!1,write:w,final(Q){c(async()=>{try{await q,r.nextTick(Q,null)}catch(ie){r.nextTick(Q,ie)}})},destroy:T})}throw new N("Iterable, AsyncIterable or AsyncFunction",S,C)}if(ce(h))return x(h.arrayBuffer());if(s(h))return J(Te,h,{objectMode:!0,writable:!1});if(g(h===null||h===void 0?void 0:h.readable)&&_(h===null||h===void 0?void 0:h.writable))return Te.fromWeb(h);if(typeof(h===null||h===void 0?void 0:h.writable)==="object"||typeof(h===null||h===void 0?void 0:h.readable)==="object"){let C=h!==null&&h!==void 0&&h.readable?b(h===null||h===void 0?void 0:h.readable)?h===null||h===void 0?void 0:h.readable:x(h.readable):void 0,w=h!==null&&h!==void 0&&h.writable?y(h===null||h===void 0?void 0:h.writable)?h===null||h===void 0?void 0:h.writable:x(h.writable):void 0;return p({readable:C,writable:w})}let k=h===null||h===void 0?void 0:h.then;if(typeof k==="function"){let C;return Y(k,h,(w)=>{if(w!=null)C.push(w);C.push(null)},(w)=>{P(C,w)}),C=new Te({objectMode:!0,writable:!1,read(){}})}throw new O(S,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],h)};function f(x){let{promise:h,resolve:S}=W(),k=new Me,C=k.signal;return{value:x(async function*(){while(!0){let w=h;h=null;let{chunk:c,done:T,cb:z}=await w;if(r.nextTick(z),T)return;if(C.aborted)throw new I(void 0,{cause:C.reason});({promise:h,resolve:S}=W()),yield c}}(),{signal:C}),write(w,c,T){let z=S;S=null,z({chunk:w,done:!1,cb:T})},final(w){let c=S;S=null,c({done:!0,cb:w})},destroy(w,c){k.abort(),c(w)}}}function p(x){let h=x.readable&&typeof x.readable.read!=="function"?Z.wrap(x.readable):x.readable,S=x.writable,k=!!n(h),C=!!l(S),w,c,T,z,R;function q(Q){let ie=z;if(z=null,ie)ie(Q);else if(Q)R.destroy(Q)}if(R=new Te({readableObjectMode:!!(h!==null&&h!==void 0&&h.readableObjectMode),writableObjectMode:!!(S!==null&&S!==void 0&&S.writableObjectMode),readable:k,writable:C}),C)A(S,(Q)=>{if(C=!1,Q)P(h,Q);q(Q)}),R._write=function(Q,ie,me){if(S.write(Q,ie))me();else w=me},R._final=function(Q){S.end(),c=Q},S.on("drain",function(){if(w){let Q=w;w=null,Q()}}),S.on("finish",function(){if(c){let Q=c;c=null,Q()}});if(k)A(h,(Q)=>{if(k=!1,Q)P(h,Q);q(Q)}),h.on("readable",function(){if(T){let Q=T;T=null,Q()}}),h.on("end",function(){R.push(null)}),R._read=function(){while(!0){let Q=h.read();if(Q===null){T=R._read;return}if(!R.push(Q))return}};return R._destroy=function(Q,ie){if(!Q&&z!==null)Q=new I;if(T=null,w=null,c=null,z===null)ie(Q);else z=ie,P(S,Q),P(h,Q)},R}}),ol=jr((e,t)=>{var{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:a,ObjectKeys:n,ObjectSetPrototypeOf:l}=_n();t.exports=b;var s=H2(),d=FM();l(b.prototype,s.prototype),l(b,s);{let _=n(d.prototype);for(let A=0;A<_.length;A++){let I=_[A];if(!b.prototype[I])b.prototype[I]=d.prototype[I]}}function b(_){if(!(this instanceof b))return new b(_);if(s.call(this,_),d.call(this,_),_){if(this.allowHalfOpen=_.allowHalfOpen!==!1,_.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(_.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}r(b.prototype,{writable:{__proto__:null,...a(d.prototype,"writable")},writableHighWaterMark:{__proto__:null,...a(d.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...a(d.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...a(d.prototype,"writableBuffer")},writableLength:{__proto__:null,...a(d.prototype,"writableLength")},writableFinished:{__proto__:null,...a(d.prototype,"writableFinished")},writableCorked:{__proto__:null,...a(d.prototype,"writableCorked")},writableEnded:{__proto__:null,...a(d.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...a(d.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(_){if(this._readableState&&this._writableState)this._readableState.destroyed=_,this._writableState.destroyed=_}}});var y;function v(){if(y===void 0)y={};return y}b.fromWeb=function(_,A){return v().newStreamDuplexFromReadableWritablePair(_,A)},b.toWeb=function(_){return v().newReadableWritablePairFromDuplex(_)};var g;b.from=function(_){if(!g)g=P0e();return g(_,"body")}}),GV=jr((e,t)=>{var{ObjectSetPrototypeOf:r,Symbol:a}=_n();t.exports=b;var{ERR_METHOD_NOT_IMPLEMENTED:n}=Ji().codes,l=ol(),{getHighWaterMark:s}=j2();r(b.prototype,l.prototype),r(b,l);var d=a("kCallback");function b(g){if(!(this instanceof b))return new b(g);let _=g?s(this,g,"readableHighWaterMark",!0):null;if(_===0)g={...g,highWaterMark:null,readableHighWaterMark:_,writableHighWaterMark:g.writableHighWaterMark||0};if(l.call(this,g),this._readableState.sync=!1,this[d]=null,g){if(typeof g.transform==="function")this._transform=g.transform;if(typeof g.flush==="function")this._flush=g.flush}this.on("prefinish",v)}function y(g){if(typeof this._flush==="function"&&!this.destroyed)this._flush((_,A)=>{if(_){if(g)g(_);else this.destroy(_);return}if(A!=null)this.push(A);if(this.push(null),g)g()});else if(this.push(null),g)g()}function v(){if(this._final!==y)y.call(this)}b.prototype._final=y,b.prototype._transform=function(g,_,A){throw new n("_transform()")},b.prototype._write=function(g,_,A){let I=this._readableState,O=this._writableState,N=I.length;this._transform(g,_,(P,j)=>{if(P){A(P);return}if(j!=null)this.push(j);if(O.ended||N===I.length||I.length<I.highWaterMark)A();else this[d]=A})},b.prototype._read=function(){if(this[d]){let g=this[d];this[d]=null,g()}}}),VV=jr((e,t)=>{var{ObjectSetPrototypeOf:r}=_n();t.exports=n;var a=GV();r(n.prototype,a.prototype),r(n,a);function n(l){if(!(this instanceof n))return new n(l);a.call(this,l)}n.prototype._transform=function(l,s,d){d(null,l)}}),qM=jr((e,t)=>{var r=of(),{ArrayIsArray:a,Promise:n,SymbolAsyncIterator:l,SymbolDispose:s}=_n(),d=Eu(),{once:b}=mo(),y=wh(),v=ol(),{aggregateTwoErrors:g,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:A,ERR_MISSING_ARGS:I,ERR_STREAM_DESTROYED:O,ERR_STREAM_PREMATURE_CLOSE:N},AbortError:P}=Ji(),{validateFunction:j,validateAbortSignal:Z}=j0(),{isIterable:V,isReadable:W,isReadableNodeStream:J,isNodeStream:ve,isTransformStream:ce,isWebStream:Me,isReadableStream:Y,isReadableFinished:Te}=al(),f=globalThis.AbortController||U0().AbortController,p,x,h;function S(Q,ie,me){let Je=!1;Q.on("close",()=>{Je=!0});let ke=d(Q,{readable:ie,writable:me},(fe)=>{Je=!fe});return{destroy:(fe)=>{if(Je)return;Je=!0,y.destroyer(Q,fe||new O("pipe"))},cleanup:ke}}function k(Q){return j(Q[Q.length-1],"streams[stream.length - 1]"),Q.pop()}function C(Q){if(V(Q))return Q;else if(J(Q))return w(Q);throw new _("val",["Readable","Iterable","AsyncIterable"],Q)}async function*w(Q){if(!x)x=H2();yield*x.prototype[l].call(Q)}async function c(Q,ie,me,{end:Je}){let ke,fe=null,be=(vt)=>{if(vt)ke=vt;if(fe){let oe=fe;fe=null,oe()}},Ae=()=>new n((vt,oe)=>{if(ke)oe(ke);else fe=()=>{if(ke)oe(ke);else vt()}});ie.on("drain",be);let Be=d(ie,{readable:!1},be);try{if(ie.writableNeedDrain)await Ae();for await(let vt of Q)if(!ie.write(vt))await Ae();if(Je)ie.end(),await Ae();me()}catch(vt){me(ke!==vt?g(ke,vt):vt)}finally{Be(),ie.off("drain",be)}}async function T(Q,ie,me,{end:Je}){if(ce(ie))ie=ie.writable;let ke=ie.getWriter();try{for await(let fe of Q)await ke.ready,ke.write(fe).catch(()=>{});if(await ke.ready,Je)await ke.close();me()}catch(fe){try{await ke.abort(fe),me(fe)}catch(be){me(be)}}}function z(...Q){return R(Q,b(k(Q)))}function R(Q,ie,me){if(Q.length===1&&a(Q[0]))Q=Q[0];if(Q.length<2)throw new I("streams");let Je=new f,ke=Je.signal,fe=me===null||me===void 0?void 0:me.signal,be=[];Z(fe,"options.signal");function Ae(){Ie(new P)}h=h||mo().addAbortListener;let Be;if(fe)Be=h(fe,Ae);let vt,oe,se=[],Ke=0;function he(De){Ie(De,--Ke===0)}function Ie(De,We){var Ye;if(De&&(!vt||vt.code==="ERR_STREAM_PREMATURE_CLOSE"))vt=De;if(!vt&&!We)return;while(se.length)se.shift()(vt);if((Ye=Be)===null||Ye===void 0||Ye[s](),Je.abort(),We){if(!vt)be.forEach((we)=>we());r.nextTick(ie,vt,oe)}}let Qe;for(let De=0;De<Q.length;De++){let We=Q[De],Ye=De<Q.length-1,we=De>0,Fe=Ye||(me===null||me===void 0?void 0:me.end)!==!1,L=De===Q.length-1;if(ve(We)){let ae=function(_e){if(_e&&_e.name!=="AbortError"&&_e.code!=="ERR_STREAM_PREMATURE_CLOSE")he(_e)};var le=ae;if(Fe){let{destroy:_e,cleanup:ot}=S(We,Ye,we);if(se.push(_e),W(We)&&L)be.push(ot)}if(We.on("error",ae),W(We)&&L)be.push(()=>{We.removeListener("error",ae)})}if(De===0)if(typeof We==="function"){if(Qe=We({signal:ke}),!V(Qe))throw new A("Iterable, AsyncIterable or Stream","source",Qe)}else if(V(We)||J(We)||ce(We))Qe=We;else Qe=v.from(We);else if(typeof We==="function"){if(ce(Qe)){var Ee;Qe=C((Ee=Qe)===null||Ee===void 0?void 0:Ee.readable)}else Qe=C(Qe);if(Qe=We(Qe,{signal:ke}),Ye){if(!V(Qe,!0))throw new A("AsyncIterable",`transform[${De-1}]`,Qe)}else{var gt;if(!p)p=VV();let ae=new p({objectMode:!0}),_e=(gt=Qe)===null||gt===void 0?void 0:gt.then;if(typeof _e==="function")Ke++,_e.call(Qe,(K)=>{if(oe=K,K!=null)ae.write(K);if(Fe)ae.end();r.nextTick(he)},(K)=>{ae.destroy(K),r.nextTick(he,K)});else if(V(Qe,!0))Ke++,c(Qe,ae,he,{end:Fe});else if(Y(Qe)||ce(Qe)){let K=Qe.readable||Qe;Ke++,c(K,ae,he,{end:Fe})}else throw new A("AsyncIterable or Promise","destination",Qe);Qe=ae;let{destroy:ot,cleanup:xe}=S(Qe,!1,!0);if(se.push(ot),L)be.push(xe)}}else if(ve(We)){if(J(Qe)){Ke+=2;let ae=q(Qe,We,he,{end:Fe});if(W(We)&&L)be.push(ae)}else if(ce(Qe)||Y(Qe)){let ae=Qe.readable||Qe;Ke++,c(ae,We,he,{end:Fe})}else if(V(Qe))Ke++,c(Qe,We,he,{end:Fe});else throw new _("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Qe);Qe=We}else if(Me(We)){if(J(Qe))Ke++,T(C(Qe),We,he,{end:Fe});else if(Y(Qe)||V(Qe))Ke++,T(Qe,We,he,{end:Fe});else if(ce(Qe))Ke++,T(Qe.readable,We,he,{end:Fe});else throw new _("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Qe);Qe=We}else Qe=v.from(We)}if(ke!==null&&ke!==void 0&&ke.aborted||fe!==null&&fe!==void 0&&fe.aborted)r.nextTick(Ae);return Qe}function q(Q,ie,me,{end:Je}){let ke=!1;if(ie.on("close",()=>{if(!ke)me(new N)}),Q.pipe(ie,{end:!1}),Je){let be=function(){ke=!0,ie.end()};var fe=be;if(Te(Q))r.nextTick(be);else Q.once("end",be)}else me();return d(Q,{readable:!0,writable:!1},(be)=>{let Ae=Q._readableState;if(be&&be.code==="ERR_STREAM_PREMATURE_CLOSE"&&Ae&&Ae.ended&&!Ae.errored&&!Ae.errorEmitted)Q.once("end",me).once("error",me);else me(be)}),d(ie,{readable:!1,writable:!0},me)}t.exports={pipelineImpl:R,pipeline:z}}),YV=jr((e,t)=>{var{pipeline:r}=qM(),a=ol(),{destroyer:n}=wh(),{isNodeStream:l,isReadable:s,isWritable:d,isWebStream:b,isTransformStream:y,isWritableStream:v,isReadableStream:g}=al(),{AbortError:_,codes:{ERR_INVALID_ARG_VALUE:A,ERR_MISSING_ARGS:I}}=Ji(),O=Eu();t.exports=function(...N){if(N.length===0)throw new I("streams");if(N.length===1)return a.from(N[0]);let P=[...N];if(typeof N[0]==="function")N[0]=a.from(N[0]);if(typeof N[N.length-1]==="function"){let f=N.length-1;N[f]=a.from(N[f])}for(let f=0;f<N.length;++f){if(!l(N[f])&&!b(N[f]))continue;if(f<N.length-1&&!(s(N[f])||g(N[f])||y(N[f])))throw new A(`streams[${f}]`,P[f],"must be readable");if(f>0&&!(d(N[f])||v(N[f])||y(N[f])))throw new A(`streams[${f}]`,P[f],"must be writable")}let j,Z,V,W,J;function ve(f){let p=W;if(W=null,p)p(f);else if(f)J.destroy(f);else if(!Te&&!Y)J.destroy()}let ce=N[0],Me=r(N,ve),Y=!!(d(ce)||v(ce)||y(ce)),Te=!!(s(Me)||g(Me)||y(Me));if(J=new a({writableObjectMode:!!(ce!==null&&ce!==void 0&&ce.writableObjectMode),readableObjectMode:!!(Me!==null&&Me!==void 0&&Me.readableObjectMode),writable:Y,readable:Te}),Y){if(l(ce))J._write=function(p,x,h){if(ce.write(p,x))h();else j=h},J._final=function(p){ce.end(),Z=p},ce.on("drain",function(){if(j){let p=j;j=null,p()}});else if(b(ce)){let p=(y(ce)?ce.writable:ce).getWriter();J._write=async function(x,h,S){try{await p.ready,p.write(x).catch(()=>{}),S()}catch(k){S(k)}},J._final=async function(x){try{await p.ready,p.close().catch(()=>{}),Z=x}catch(h){x(h)}}}let f=y(Me)?Me.readable:Me;O(f,()=>{if(Z){let p=Z;Z=null,p()}})}if(Te){if(l(Me))Me.on("readable",function(){if(V){let f=V;V=null,f()}}),Me.on("end",function(){J.push(null)}),J._read=function(){while(!0){let f=Me.read();if(f===null){V=J._read;return}if(!J.push(f))return}};else if(b(Me)){let f=(y(Me)?Me.readable:Me).getReader();J._read=async function(){while(!0)try{let{value:p,done:x}=await f.read();if(!J.push(p))return;if(x){J.push(null);return}}catch{return}}}}return J._destroy=function(f,p){if(!f&&W!==null)f=new _;if(V=null,j=null,Z=null,W===null)p(f);else if(W=p,l(Me))n(Me,f)},J}}),$0e=jr((e,t)=>{var r=globalThis.AbortController||U0().AbortController,{codes:{ERR_INVALID_ARG_VALUE:a,ERR_INVALID_ARG_TYPE:n,ERR_MISSING_ARGS:l,ERR_OUT_OF_RANGE:s},AbortError:d}=Ji(),{validateAbortSignal:b,validateInteger:y,validateObject:v}=j0(),g=_n().Symbol("kWeak"),_=_n().Symbol("kResistStopPropagation"),{finished:A}=Eu(),I=YV(),{addAbortSignalNoValidate:O}=U2(),{isWritable:N,isNodeStream:P}=al(),{deprecate:j}=mo(),{ArrayPrototypePush:Z,Boolean:V,MathFloor:W,Number:J,NumberIsNaN:ve,Promise:ce,PromiseReject:Me,PromiseResolve:Y,PromisePrototypeThen:Te,Symbol:f}=_n(),p=f("kEmpty"),x=f("kEof");function h(fe,be){if(be!=null)v(be,"options");if((be===null||be===void 0?void 0:be.signal)!=null)b(be.signal,"options.signal");if(P(fe)&&!N(fe))throw new a("stream",fe,"must be writable");let Ae=I(this,fe);if(be!==null&&be!==void 0&&be.signal)O(be.signal,Ae);return Ae}function S(fe,be){if(typeof fe!=="function")throw new n("fn",["Function","AsyncFunction"],fe);if(be!=null)v(be,"options");if((be===null||be===void 0?void 0:be.signal)!=null)b(be.signal,"options.signal");let Ae=1;if((be===null||be===void 0?void 0:be.concurrency)!=null)Ae=W(be.concurrency);let Be=Ae-1;if((be===null||be===void 0?void 0:be.highWaterMark)!=null)Be=W(be.highWaterMark);return y(Ae,"options.concurrency",1),y(Be,"options.highWaterMark",0),Be+=Ae,async function*(){let vt=mo().AbortSignalAny([be===null||be===void 0?void 0:be.signal].filter(V)),oe=this,se=[],Ke={signal:vt},he,Ie,Qe=!1,le=0;function Ee(){Qe=!0,gt()}function gt(){le-=1,De()}function De(){if(Ie&&!Qe&&le<Ae&&se.length<Be)Ie(),Ie=null}async function We(){try{for await(let Ye of oe){if(Qe)return;if(vt.aborted)throw new d;try{if(Ye=fe(Ye,Ke),Ye===p)continue;Ye=Y(Ye)}catch(we){Ye=Me(we)}if(le+=1,Te(Ye,gt,Ee),se.push(Ye),he)he(),he=null;if(!Qe&&(se.length>=Be||le>=Ae))await new ce((we)=>{Ie=we})}se.push(x)}catch(Ye){let we=Me(Ye);Te(we,gt,Ee),se.push(we)}finally{if(Qe=!0,he)he(),he=null}}We();try{while(!0){while(se.length>0){let Ye=await se[0];if(Ye===x)return;if(vt.aborted)throw new d;if(Ye!==p)yield Ye;se.shift(),De()}await new ce((Ye)=>{he=Ye})}}finally{if(Qe=!0,Ie)Ie(),Ie=null}}.call(this)}function k(fe=void 0){if(fe!=null)v(fe,"options");if((fe===null||fe===void 0?void 0:fe.signal)!=null)b(fe.signal,"options.signal");return async function*(){let be=0;for await(let Be of this){var Ae;if(fe!==null&&fe!==void 0&&(Ae=fe.signal)!==null&&Ae!==void 0&&Ae.aborted)throw new d({cause:fe.signal.reason});yield[be++,Be]}}.call(this)}async function C(fe,be=void 0){for await(let Ae of z.call(this,fe,be))return!0;return!1}async function w(fe,be=void 0){if(typeof fe!=="function")throw new n("fn",["Function","AsyncFunction"],fe);return!await C.call(this,async(...Ae)=>!await fe(...Ae),be)}async function c(fe,be){for await(let Ae of z.call(this,fe,be))return Ae;return}async function T(fe,be){if(typeof fe!=="function")throw new n("fn",["Function","AsyncFunction"],fe);async function Ae(Be,vt){return await fe(Be,vt),p}for await(let Be of S.call(this,Ae,be));}function z(fe,be){if(typeof fe!=="function")throw new n("fn",["Function","AsyncFunction"],fe);async function Ae(Be,vt){if(await fe(Be,vt))return Be;return p}return S.call(this,Ae,be)}class R extends l{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function q(fe,be,Ae){var Be;if(typeof fe!=="function")throw new n("reducer",["Function","AsyncFunction"],fe);if(Ae!=null)v(Ae,"options");if((Ae===null||Ae===void 0?void 0:Ae.signal)!=null)b(Ae.signal,"options.signal");let vt=arguments.length>1;if(Ae!==null&&Ae!==void 0&&(Be=Ae.signal)!==null&&Be!==void 0&&Be.aborted){let Ie=new d(void 0,{cause:Ae.signal.reason});throw this.once("error",()=>{}),await A(this.destroy(Ie)),Ie}let oe=new r,se=oe.signal;if(Ae!==null&&Ae!==void 0&&Ae.signal){let Ie={once:!0,[g]:this,[_]:!0};Ae.signal.addEventListener("abort",()=>oe.abort(),Ie)}let Ke=!1;try{for await(let Ie of this){var he;if(Ke=!0,Ae!==null&&Ae!==void 0&&(he=Ae.signal)!==null&&he!==void 0&&he.aborted)throw new d;if(!vt)be=Ie,vt=!0;else be=await fe(be,Ie,{signal:se})}if(!Ke&&!vt)throw new R}finally{oe.abort()}return be}async function Q(fe){if(fe!=null)v(fe,"options");if((fe===null||fe===void 0?void 0:fe.signal)!=null)b(fe.signal,"options.signal");let be=[];for await(let Be of this){var Ae;if(fe!==null&&fe!==void 0&&(Ae=fe.signal)!==null&&Ae!==void 0&&Ae.aborted)throw new d(void 0,{cause:fe.signal.reason});Z(be,Be)}return be}function ie(fe,be){let Ae=S.call(this,fe,be);return async function*(){for await(let Be of Ae)yield*Be}.call(this)}function me(fe){if(fe=J(fe),ve(fe))return 0;if(fe<0)throw new s("number",">= 0",fe);return fe}function Je(fe,be=void 0){if(be!=null)v(be,"options");if((be===null||be===void 0?void 0:be.signal)!=null)b(be.signal,"options.signal");return fe=me(fe),async function*(){var Ae;if(be!==null&&be!==void 0&&(Ae=be.signal)!==null&&Ae!==void 0&&Ae.aborted)throw new d;for await(let vt of this){var Be;if(be!==null&&be!==void 0&&(Be=be.signal)!==null&&Be!==void 0&&Be.aborted)throw new d;if(fe--<=0)yield vt}}.call(this)}function ke(fe,be=void 0){if(be!=null)v(be,"options");if((be===null||be===void 0?void 0:be.signal)!=null)b(be.signal,"options.signal");return fe=me(fe),async function*(){var Ae;if(be!==null&&be!==void 0&&(Ae=be.signal)!==null&&Ae!==void 0&&Ae.aborted)throw new d;for await(let vt of this){var Be;if(be!==null&&be!==void 0&&(Be=be.signal)!==null&&Be!==void 0&&Be.aborted)throw new d;if(fe-- >0)yield vt;if(fe<=0)return}}.call(this)}t.exports.streamReturningOperators={asIndexedPairs:j(k,"readable.asIndexedPairs will be removed in a future version."),drop:Je,filter:z,flatMap:ie,map:S,take:ke,compose:h},t.exports.promiseReturningOperators={every:w,forEach:T,reduce:q,toArray:Q,some:C,find:c}}),KV=jr((e,t)=>{var{ArrayPrototypePop:r,Promise:a}=_n(),{isIterable:n,isNodeStream:l,isWebStream:s}=al(),{pipelineImpl:d}=qM(),{finished:b}=Eu();WV();function y(...v){return new a((g,_)=>{let A,I,O=v[v.length-1];if(O&&typeof O==="object"&&!l(O)&&!n(O)&&!s(O)){let N=r(v);A=N.signal,I=N.end}d(v,(N,P)=>{if(N)_(N);else g(P)},{signal:A,end:I})})}t.exports={finished:b,pipeline:y}}),WV=jr((e,t)=>{var{Buffer:r}=(ci(),Cr(ui)),{ObjectDefineProperty:a,ObjectKeys:n,ReflectApply:l}=_n(),{promisify:{custom:s}}=mo(),{streamReturningOperators:d,promiseReturningOperators:b}=$0e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:y}}=Ji(),v=YV(),{setDefaultHighWaterMark:g,getDefaultHighWaterMark:_}=j2(),{pipeline:A}=qM(),{destroyer:I}=wh(),O=Eu(),N=KV(),P=al(),j=t.exports=ZM().Stream;j.isDestroyed=P.isDestroyed,j.isDisturbed=P.isDisturbed,j.isErrored=P.isErrored,j.isReadable=P.isReadable,j.isWritable=P.isWritable,j.Readable=H2();for(let V of n(d)){let W=function(...ve){if(new.target)throw y();return j.Readable.from(l(J,this,ve))},J=d[V];a(W,"name",{__proto__:null,value:J.name}),a(W,"length",{__proto__:null,value:J.length}),a(j.Readable.prototype,V,{__proto__:null,value:W,enumerable:!1,configurable:!0,writable:!0})}for(let V of n(b)){let W=function(...ve){if(new.target)throw y();return l(J,this,ve)},J=b[V];a(W,"name",{__proto__:null,value:J.name}),a(W,"length",{__proto__:null,value:J.length}),a(j.Readable.prototype,V,{__proto__:null,value:W,enumerable:!1,configurable:!0,writable:!0})}j.Writable=FM(),j.Duplex=ol(),j.Transform=GV(),j.PassThrough=VV(),j.pipeline=A;var{addAbortSignal:Z}=U2();j.addAbortSignal=Z,j.finished=O,j.destroy=I,j.compose=v,j.setDefaultHighWaterMark=g,j.getDefaultHighWaterMark=_,a(j,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return N}}),a(A,s,{__proto__:null,enumerable:!0,get(){return N.pipeline}}),a(O,s,{__proto__:null,enumerable:!0,get(){return N.finished}}),j.Stream=j,j._isUint8Array=function(V){return V instanceof Uint8Array},j._uint8ArrayToBuffer=function(V){return r.from(V.buffer,V.byteOffset,V.byteLength)}}),B0e=jr((e,t)=>{var r=GM();{let a=WV(),n=KV(),l=a.Readable.destroy;t.exports=a.Readable,t.exports._uint8ArrayToBuffer=a._uint8ArrayToBuffer,t.exports._isUint8Array=a._isUint8Array,t.exports.isDisturbed=a.isDisturbed,t.exports.isErrored=a.isErrored,t.exports.isReadable=a.isReadable,t.exports.Readable=a.Readable,t.exports.Writable=a.Writable,t.exports.Duplex=a.Duplex,t.exports.Transform=a.Transform,t.exports.PassThrough=a.PassThrough,t.exports.addAbortSignal=a.addAbortSignal,t.exports.finished=a.finished,t.exports.destroy=a.destroy,t.exports.destroy=l,t.exports.pipeline=a.pipeline,t.exports.compose=a.compose,Object.defineProperty(a,"promises",{configurable:!0,enumerable:!0,get(){return n}}),t.exports.Stream=a.Stream}t.exports.default=t.exports});XV.exports=B0e()});var Lo={};Vn(Lo,{Cipher:()=>z1e,Cipheriv:()=>P1e,DEFAULT_ENCODING:()=>ube,Decipher:()=>B1e,Decipheriv:()=>j1e,DiffieHellman:()=>K1e,DiffieHellmanGroup:()=>q1e,Hash:()=>C1e,Hmac:()=>R1e,Sign:()=>X1e,Verify:()=>Q1e,constants:()=>lbe,createCipher:()=>L1e,createCipheriv:()=>$1e,createCredentials:()=>sbe,createDecipher:()=>U1e,createDecipheriv:()=>H1e,createDiffieHellman:()=>Y1e,createDiffieHellmanGroup:()=>G1e,createECDH:()=>ebe,createHash:()=>nC,createHmac:()=>I1e,createSign:()=>W1e,createVerify:()=>J1e,default:()=>mbe,getCiphers:()=>Z1e,getCurves:()=>hbe,getDiffieHellman:()=>V1e,getHashes:()=>O1e,getRandomValues:()=>cbe,listCiphers:()=>F1e,pbkdf2:()=>N1e,pbkdf2Sync:()=>D1e,privateDecrypt:()=>ibe,privateEncrypt:()=>rbe,prng:()=>T1e,pseudoRandomBytes:()=>k1e,publicDecrypt:()=>nbe,publicEncrypt:()=>tbe,randomBytes:()=>M1e,randomFill:()=>obe,randomFillSync:()=>abe,randomUUID:()=>fbe,rng:()=>A1e,webcrypto:()=>pbe});function F0e(e){return this[e]}function hbe(){return dbe}var U0e,j0e,JV,H0e,Z0e,q0e,G0e,V0e=(e,t,r)=>{var a=e!=null&&typeof e==="object";if(a){var n=t?q0e??=new WeakMap:G0e??=new WeakMap,l=n.get(e);if(l)return l}r=e!=null?U0e(j0e(e)):{};let s=t||!e||!e.__esModule?JV(r,"default",{value:e,enumerable:!0}):r;for(let d of H0e(e))if(!Z0e.call(s,d))JV(s,d,{get:F0e.bind(e,d),enumerable:!0});if(a)n.set(e,s);return s},ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z2,F2,eY,Y0e,YM,KM,Qi,K0e,Z0,tY,W0e,X0e,J0e,Q0e,rY,ege,tge,rge,nge,ige,oge,age,sge,lge,uge,F0,q2,nY,cge,iY,oY,fge,q0,WM,XM,dge,aY,JM,hge,sY,pge,lY,uY,mge,gge,bge,yge,vge,Sge,xge,_ge,wge,Ege,Tge,kge,Age,Mge,QM,cY,Cge,fY,Rge,Ige,Oge,Nge,sl,Tu,dY,na,hY,G2,Dge,zo,zge,Lge,Pge,pY,bs,G0,mY,$ge,gY,Bge,bY,Uge,jge,Hge,Zge,eC,Fge,tC,qge,Gge,Vge,Yge,Kge,Wge,Xge,Jge,Qge,e1e,t1e,r1e,n1e,i1e,QV,o1e,H0,a1e,yY,vY,s1e,l1e,SY,u1e,c1e,V0,f1e,d1e,h1e,p1e,m1e,g1e,xY,b1e,_Y,wY,EY,rC,TY,y1e,kY,v1e,S1e,VM,x1e,_1e,w1e,E1e,yr,T1e,k1e,A1e,M1e,C1e,nC,R1e,I1e,O1e,N1e,D1e,z1e,L1e,P1e,$1e,B1e,U1e,j1e,H1e,Z1e,F1e,q1e,G1e,V1e,Y1e,K1e,W1e,X1e,J1e,Q1e,ebe,tbe,rbe,nbe,ibe,obe,abe,sbe,lbe,ube="buffer",cbe=(e)=>crypto.getRandomValues(e),fbe=()=>crypto.randomUUID(),dbe,pbe,mbe;var eo=Le(()=>{U0e=Object.create,{getPrototypeOf:j0e,defineProperty:JV,getOwnPropertyNames:H0e}=Object,Z0e=Object.prototype.hasOwnProperty;Z2=ct((e,t)=>{t.exports=(eo(),Cr(Lo)).randomBytes}),F2=ct((e,t)=>{t.exports=(eo(),Cr(Lo)).createHash}),eY=ct((e,t)=>{t.exports=(eo(),Cr(Lo)).createHmac}),Y0e=ct((e,t)=>{t.exports={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"}}}),YM=ct((e,t)=>{var r=isFinite,a=Math.pow(2,30)-1;t.exports=function(n,l){if(typeof n!=="number")throw TypeError("Iterations not a number");if(n<0||!r(n))throw TypeError("Bad iterations");if(typeof l!=="number")throw TypeError("Key length not a number");if(l<0||l>a||l!==l)throw TypeError("Bad key length")}}),KM=ct((e,t)=>{var r;if(globalThis.process&&globalThis.process.browser)r="utf-8";else if(globalThis.process&&globalThis.process.version)a=parseInt(process.version.split(".")[0].slice(1),10),r=a>=6?"utf-8":"binary";else r="utf-8";var a;t.exports=r}),Qi=ct((e,t)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var r=(ci(),Cr(ui)),a=r.Buffer;function n(s,d){for(var b in s)d[b]=s[b]}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow)t.exports=r;else n(r,e),e.Buffer=l;function l(s,d,b){return a(s,d,b)}l.prototype=Object.create(a.prototype),n(a,l),l.from=function(s,d,b){if(typeof s==="number")throw TypeError("Argument must not be a number");return a(s,d,b)},l.alloc=function(s,d,b){if(typeof s!=="number")throw TypeError("Argument must be a number");var y=a(s);if(d!==void 0)if(typeof b==="string")y.fill(d,b);else y.fill(d);else y.fill(0);return y},l.allocUnsafe=function(s){if(typeof s!=="number")throw TypeError("Argument must be a number");return a(s)},l.allocUnsafeSlow=function(s){if(typeof s!=="number")throw TypeError("Argument must be a number");return r.SlowBuffer(s)}}),K0e=ct((e,t)=>{var r={}.toString;t.exports=Array.isArray||function(a){return r.call(a)=="[object Array]"}}),Z0=ct((e,t)=>{t.exports=TypeError}),tY=ct((e,t)=>{t.exports=Object}),W0e=ct((e,t)=>{t.exports=Error}),X0e=ct((e,t)=>{t.exports=EvalError}),J0e=ct((e,t)=>{t.exports=RangeError}),Q0e=ct((e,t)=>{t.exports=ReferenceError}),rY=ct((e,t)=>{t.exports=SyntaxError}),ege=ct((e,t)=>{t.exports=URIError}),tge=ct((e,t)=>{t.exports=Math.abs}),rge=ct((e,t)=>{t.exports=Math.floor}),nge=ct((e,t)=>{t.exports=Math.max}),ige=ct((e,t)=>{t.exports=Math.min}),oge=ct((e,t)=>{t.exports=Math.pow}),age=ct((e,t)=>{t.exports=Math.round}),sge=ct((e,t)=>{t.exports=Number.isNaN||function(r){return r!==r}}),lge=ct((e,t)=>{var r=sge();t.exports=function(a){if(r(a)||a===0)return a;return a<0?-1:1}}),uge=ct((e,t)=>{t.exports=Object.getOwnPropertyDescriptor}),F0=ct((e,t)=>{var r=uge();if(r)try{r([],"length")}catch(a){r=null}t.exports=r}),q2=ct((e,t)=>{var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(a){r=!1}t.exports=r}),nY=ct((e,t)=>{t.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var r={},a=Symbol("test"),n=Object(a);if(typeof a==="string")return!1;if(Object.prototype.toString.call(a)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var l=42;r[a]=l;for(var s in r)return!1;if(typeof Object.keys==="function"&&Object.keys(r).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var d=Object.getOwnPropertySymbols(r);if(d.length!==1||d[0]!==a)return!1;if(!Object.prototype.propertyIsEnumerable.call(r,a))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var b=Object.getOwnPropertyDescriptor(r,a);if(b.value!==l||b.enumerable!==!0)return!1}return!0}}),cge=ct((e,t)=>{var r=typeof Symbol<"u"&&Symbol,a=nY();t.exports=function(){if(typeof r!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof r("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return a()}}),iY=ct((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),oY=ct((e,t)=>{var r=tY();t.exports=r.getPrototypeOf||null}),fge=ct((e,t)=>{var r="Function.prototype.bind called on incompatible ",a=Object.prototype.toString,n=Math.max,l="[object Function]",s=function(y,v){var g=[];for(var _=0;_<y.length;_+=1)g[_]=y[_];for(var A=0;A<v.length;A+=1)g[A+y.length]=v[A];return g},d=function(y,v){var g=[];for(var _=v||0,A=0;_<y.length;_+=1,A+=1)g[A]=y[_];return g},b=function(y,v){var g="";for(var _=0;_<y.length;_+=1)if(g+=y[_],_+1<y.length)g+=v;return g};t.exports=function(y){var v=this;if(typeof v!=="function"||a.apply(v)!==l)throw TypeError(r+v);var g=d(arguments,1),_,A=function(){if(this instanceof _){var j=v.apply(this,s(g,arguments));if(Object(j)===j)return j;return this}return v.apply(y,s(g,arguments))},I=n(0,v.length-g.length),O=[];for(var N=0;N<I;N++)O[N]="$"+N;if(_=Function("binder","return function ("+b(O,",")+"){ return binder.apply(this,arguments); }")(A),v.prototype){var P=function(){};P.prototype=v.prototype,_.prototype=new P,P.prototype=null}return _}}),q0=ct((e,t)=>{var r=fge();t.exports=Function.prototype.bind||r}),WM=ct((e,t)=>{t.exports=Function.prototype.call}),XM=ct((e,t)=>{t.exports=Function.prototype.apply}),dge=ct((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),aY=ct((e,t)=>{var r=q0(),a=XM(),n=WM(),l=dge();t.exports=l||r.call(n,a)}),JM=ct((e,t)=>{var r=q0(),a=Z0(),n=WM(),l=aY();t.exports=function(s){if(s.length<1||typeof s[0]!=="function")throw new a("a function is required");return l(r,n,s)}}),hge=ct((e,t)=>{var r=JM(),a=F0(),n;try{n=[].__proto__===Array.prototype}catch(b){if(!b||typeof b!=="object"||!("code"in b)||b.code!=="ERR_PROTO_ACCESS")throw b}var l=!!n&&a&&a(Object.prototype,"__proto__"),s=Object,d=s.getPrototypeOf;t.exports=l&&typeof l.get==="function"?r([l.get]):typeof d==="function"?function(b){return d(b==null?b:s(b))}:!1}),sY=ct((e,t)=>{var r=iY(),a=oY(),n=hge();t.exports=r?function(l){return r(l)}:a?function(l){if(!l||typeof l!=="object"&&typeof l!=="function")throw TypeError("getProto: not an object");return a(l)}:n?function(l){return n(l)}:null}),pge=ct((e,t)=>{var r=Function.prototype.call,a=Object.prototype.hasOwnProperty,n=q0();t.exports=n.call(r,a)}),lY=ct((e,t)=>{var r,a=tY(),n=W0e(),l=X0e(),s=J0e(),d=Q0e(),b=rY(),y=Z0(),v=ege(),g=tge(),_=rge(),A=nge(),I=ige(),O=oge(),N=age(),P=lge(),j=Function,Z=function(be){try{return j('"use strict"; return ('+be+").constructor;")()}catch(Ae){}},V=F0(),W=q2(),J=function(){throw new y},ve=V?function(){try{return arguments.callee,J}catch(be){try{return V(arguments,"callee").get}catch(Ae){return J}}}():J,ce=cge()(),Me=sY(),Y=oY(),Te=iY(),f=XM(),p=WM(),x={},h=typeof Uint8Array>"u"||!Me?r:Me(Uint8Array),S={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":ce&&Me?Me([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":j,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ce&&Me?Me(Me([][Symbol.iterator]())):r,"%JSON%":typeof JSON==="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ce||!Me?r:Me(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":V,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":s,"%ReferenceError%":d,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ce||!Me?r:Me(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ce&&Me?Me(""[Symbol.iterator]()):r,"%Symbol%":ce?Symbol:r,"%SyntaxError%":b,"%ThrowTypeError%":ve,"%TypedArray%":h,"%TypeError%":y,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":v,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":p,"%Function.prototype.apply%":f,"%Object.defineProperty%":W,"%Object.getPrototypeOf%":Y,"%Math.abs%":g,"%Math.floor%":_,"%Math.max%":A,"%Math.min%":I,"%Math.pow%":O,"%Math.round%":N,"%Math.sign%":P,"%Reflect.getPrototypeOf%":Te};if(Me)try{null.error}catch(be){k=Me(Me(be)),S["%Error.prototype%"]=k}var k,C=function be(Ae){var Be;if(Ae==="%AsyncFunction%")Be=Z("async function () {}");else if(Ae==="%GeneratorFunction%")Be=Z("function* () {}");else if(Ae==="%AsyncGeneratorFunction%")Be=Z("async function* () {}");else if(Ae==="%AsyncGenerator%"){var vt=be("%AsyncGeneratorFunction%");if(vt)Be=vt.prototype}else if(Ae==="%AsyncIteratorPrototype%"){var oe=be("%AsyncGenerator%");if(oe&&Me)Be=Me(oe.prototype)}return S[Ae]=Be,Be},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=q0(),T=pge(),z=c.call(p,Array.prototype.concat),R=c.call(f,Array.prototype.splice),q=c.call(p,String.prototype.replace),Q=c.call(p,String.prototype.slice),ie=c.call(p,RegExp.prototype.exec),me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Je=/\\(\\)?/g,ke=function(be){var Ae=Q(be,0,1),Be=Q(be,-1);if(Ae==="%"&&Be!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");else if(Be==="%"&&Ae!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var vt=[];return q(be,me,function(oe,se,Ke,he){vt[vt.length]=Ke?q(he,Je,"$1"):se||oe}),vt},fe=function(be,Ae){var Be=be,vt;if(T(w,Be))vt=w[Be],Be="%"+vt[0]+"%";if(T(S,Be)){var oe=S[Be];if(oe===x)oe=C(Be);if(typeof oe>"u"&&!Ae)throw new y("intrinsic "+be+" exists, but is not available. Please file an issue!");return{alias:vt,name:Be,value:oe}}throw new b("intrinsic "+be+" does not exist!")};t.exports=function(be,Ae){if(typeof be!=="string"||be.length===0)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ae!=="boolean")throw new y('"allowMissing" argument must be a boolean');if(ie(/^%?[^%]*%?$/,be)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Be=ke(be),vt=Be.length>0?Be[0]:"",oe=fe("%"+vt+"%",Ae),se=oe.name,Ke=oe.value,he=!1,Ie=oe.alias;if(Ie)vt=Ie[0],R(Be,z([0,1],Ie));for(var Qe=1,le=!0;Qe<Be.length;Qe+=1){var Ee=Be[Qe],gt=Q(Ee,0,1),De=Q(Ee,-1);if((gt==='"'||gt==="'"||gt==="`"||(De==='"'||De==="'"||De==="`"))&&gt!==De)throw new b("property names with quotes must have matching quotes");if(Ee==="constructor"||!le)he=!0;if(vt+="."+Ee,se="%"+vt+"%",T(S,se))Ke=S[se];else if(Ke!=null){if(!(Ee in Ke)){if(!Ae)throw new y("base intrinsic for "+be+" exists, but the property is not available.");return}if(V&&Qe+1>=Be.length){var We=V(Ke,Ee);if(le=!!We,le&&"get"in We&&!("originalValue"in We.get))Ke=We.get;else Ke=Ke[Ee]}else le=T(Ke,Ee),Ke=Ke[Ee];if(le&&!he)S[se]=Ke}}return Ke}}),uY=ct((e,t)=>{var r=lY(),a=JM(),n=a([r("%String.prototype.indexOf%")]);t.exports=function(l,s){var d=r(l,!!s);if(typeof d==="function"&&n(l,".prototype.")>-1)return a([d]);return d}}),mge=ct((e,t)=>{var r=Function.prototype.toString,a=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,n,l;if(typeof a==="function"&&typeof Object.defineProperty==="function")try{n=Object.defineProperty({},"length",{get:function(){throw l}}),l={},a(function(){throw 42},null,n)}catch(V){if(V!==l)a=null}else a=null;var s=/^\s*class\b/,d=function(V){try{var W=r.call(V);return s.test(W)}catch(J){return!1}},b=function(V){try{if(d(V))return!1;return r.call(V),!0}catch(W){return!1}},y=Object.prototype.toString,v="[object Object]",g="[object Function]",_="[object GeneratorFunction]",A="[object HTMLAllCollection]",I="[object HTML document.all class]",O="[object HTMLCollection]",N=typeof Symbol==="function"&&!!Symbol.toStringTag,P=!(0 in[,]),j=function(){return!1};if(typeof document==="object"){if(Z=document.all,y.call(Z)===y.call(document.all))j=function(V){if((P||!V)&&(typeof V>"u"||typeof V==="object"))try{var W=y.call(V);return(W===A||W===I||W===O||W===v)&&V("")==null}catch(J){}return!1}}var Z;t.exports=a?function(V){if(j(V))return!0;if(!V)return!1;if(typeof V!=="function"&&typeof V!=="object")return!1;try{a(V,null,n)}catch(W){if(W!==l)return!1}return!d(V)&&b(V)}:function(V){if(j(V))return!0;if(!V)return!1;if(typeof V!=="function"&&typeof V!=="object")return!1;if(N)return b(V);if(d(V))return!1;var W=y.call(V);if(W!==g&&W!==_&&!/^\[object HTML/.test(W))return!1;return b(V)}}),gge=ct((e,t)=>{var r=mge(),a=Object.prototype.toString,n=Object.prototype.hasOwnProperty,l=function(y,v,g){for(var _=0,A=y.length;_<A;_++)if(n.call(y,_))if(g==null)v(y[_],_,y);else v.call(g,y[_],_,y)},s=function(y,v,g){for(var _=0,A=y.length;_<A;_++)if(g==null)v(y.charAt(_),_,y);else v.call(g,y.charAt(_),_,y)},d=function(y,v,g){for(var _ in y)if(n.call(y,_))if(g==null)v(y[_],_,y);else v.call(g,y[_],_,y)};function b(y){return a.call(y)==="[object Array]"}t.exports=function(y,v,g){if(!r(v))throw TypeError("iterator must be a function");var _;if(arguments.length>=3)_=g;if(b(y))l(y,v,_);else if(typeof y==="string")s(y,v,_);else d(y,v,_)}}),bge=ct((e,t)=>{t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),yge=ct((e,t)=>{var r=bge(),a=typeof globalThis>"u"?globalThis:globalThis;t.exports=function(){var n=[];for(var l=0;l<r.length;l++)if(typeof a[r[l]]==="function")n[n.length]=r[l];return n}}),vge=ct((e,t)=>{var r=q2(),a=rY(),n=Z0(),l=F0();t.exports=function(s,d,b){if(!s||typeof s!=="object"&&typeof s!=="function")throw new n("`obj` must be an object or a function`");if(typeof d!=="string"&&typeof d!=="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new n("`loose`, if provided, must be a boolean");var y=arguments.length>3?arguments[3]:null,v=arguments.length>4?arguments[4]:null,g=arguments.length>5?arguments[5]:null,_=arguments.length>6?arguments[6]:!1,A=!!l&&l(s,d);if(r)r(s,d,{configurable:g===null&&A?A.configurable:!g,enumerable:y===null&&A?A.enumerable:!y,value:b,writable:v===null&&A?A.writable:!v});else if(_||!y&&!v&&!g)s[d]=b;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),Sge=ct((e,t)=>{var r=q2(),a=function(){return!!r};a.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch(n){return!0}},t.exports=a}),xge=ct((e,t)=>{var r=lY(),a=vge(),n=Sge()(),l=F0(),s=Z0(),d=r("%Math.floor%");t.exports=function(b,y){if(typeof b!=="function")throw new s("`fn` is not a function");if(typeof y!=="number"||y<0||y>4294967295||d(y)!==y)throw new s("`length` must be a positive 32-bit integer");var v=arguments.length>2&&!!arguments[2],g=!0,_=!0;if("length"in b&&l){var A=l(b,"length");if(A&&!A.configurable)g=!1;if(A&&!A.writable)_=!1}if(g||_||!v)if(n)a(b,"length",y,!0,!0);else a(b,"length",y);return b}}),_ge=ct((e,t)=>{var r=q0(),a=XM(),n=aY();t.exports=function(){return n(r,a,arguments)}}),wge=ct((e,t)=>{var r=xge(),a=q2(),n=JM(),l=_ge();if(t.exports=function(s){var d=n(arguments),b=s.length-(arguments.length-1);return r(d,1+(b>0?b:0),!0)},a)a(t.exports,"apply",{value:l});else t.exports.apply=l}),Ege=ct((e,t)=>{var r=nY();t.exports=function(){return r()&&!!Symbol.toStringTag}}),Tge=ct((e,t)=>{var r=gge(),a=yge(),n=wge(),l=uY(),s=F0(),d=sY(),b=l("Object.prototype.toString"),y=Ege()(),v=typeof globalThis>"u"?globalThis:globalThis,g=a(),_=l("String.prototype.slice"),A=l("Array.prototype.indexOf",!0)||function(P,j){for(var Z=0;Z<P.length;Z+=1)if(P[Z]===j)return Z;return-1},I={__proto__:null};if(y&&s&&d)r(g,function(P){var j=new v[P];if(Symbol.toStringTag in j&&d){var Z=d(j),V=s(Z,Symbol.toStringTag);if(!V&&Z){var W=d(Z);V=s(W,Symbol.toStringTag)}I["$"+P]=n(V.get)}});else r(g,function(P){var j=new v[P],Z=j.slice||j.set;if(Z)I["$"+P]=n(Z)});var O=function(P){var j=!1;return r(I,function(Z,V){if(!j)try{if("$"+Z(P)===V)j=_(V,1)}catch(W){}}),j},N=function(P){var j=!1;return r(I,function(Z,V){if(!j)try{Z(P),j=_(V,1)}catch(W){}}),j};t.exports=function(P){if(!P||typeof P!=="object")return!1;if(!y){var j=_(b(P),8,-1);if(A(g,j)>-1)return j;if(j!=="Object")return!1;return N(P)}if(!s)return null;return O(P)}}),kge=ct((e,t)=>{var r=Tge();t.exports=function(a){return!!r(a)}}),Age=ct((e,t)=>{var r=Z0(),a=uY(),n=a("TypedArray.prototype.buffer",!0),l=kge();t.exports=n||function(s){if(!l(s))throw new r("Not a Typed Array");return s.buffer}}),Mge=ct((e,t)=>{var r=Qi().Buffer,a=K0e(),n=Age(),l=ArrayBuffer.isView||function(y){try{return n(y),!0}catch(v){return!1}},s=typeof Uint8Array<"u",d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",b=d&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);t.exports=function(y,v){if(r.isBuffer(y)){if(y.constructor&&!("isBuffer"in y))return r.from(y);return y}if(typeof y==="string")return r.from(y,v);if(d&&l(y)){if(y.byteLength===0)return r.alloc(0);if(b){var g=r.from(y.buffer,y.byteOffset,y.byteLength);if(g.byteLength===y.byteLength)return g}var _=y instanceof Uint8Array?y:new Uint8Array(y.buffer,y.byteOffset,y.byteLength),A=r.from(_);if(A.length===y.byteLength)return A}if(s&&y instanceof Uint8Array)return r.from(y);var I=a(y);if(I)for(var O=0;O<y.length;O+=1){var N=y[O];if(typeof N!=="number"||N<0||N>255||~~N!==N)throw RangeError("Array items must be numbers in the range 0-255.")}if(I||r.isBuffer(y)&&y.constructor&&typeof y.constructor.isBuffer==="function"&&y.constructor.isBuffer(y))return r.from(y);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),QM=ct((e,t)=>{var r=Qi().Buffer,a=Mge(),n=typeof Uint8Array<"u",l=n&&typeof ArrayBuffer<"u",s=l&&ArrayBuffer.isView;t.exports=function(d,b,y){if(typeof d==="string"||r.isBuffer(d)||n&&d instanceof Uint8Array||s&&s(d))return a(d,b);throw TypeError(y+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),cY=ct((e,t)=>{var r={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},a={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},n=eY(),l=Qi().Buffer,s=YM(),d=KM(),b=QM();function y(v,g,_,A,I){s(_,A),v=b(v,d,"Password"),g=b(g,d,"Salt");var O=(I||"sha1").toLowerCase(),N=a[O]||O,P=r[N];if(typeof P!=="number"||!P)throw TypeError("Digest algorithm not supported: "+I);var j=l.allocUnsafe(A),Z=l.allocUnsafe(g.length+4);g.copy(Z,0,0,g.length);var V=0,W=P,J=Math.ceil(A/W);for(var ve=1;ve<=J;ve++){Z.writeUInt32BE(ve,g.length);var ce=n(N,v).update(Z).digest(),Me=ce;for(var Y=1;Y<_;Y++){Me=n(N,v).update(Me).digest();for(var Te=0;Te<W;Te++)ce[Te]^=Me[Te]}ce.copy(j,V),V+=W}return j}t.exports=y}),Cge=ct((e,t)=>{var r=Qi().Buffer,a=YM(),n=KM(),l=cY(),s=QM(),d,b=globalThis.crypto&&globalThis.crypto.subtle,y={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"},v=[],g;function _(){if(g)return g;if(globalThis.process&&globalThis.process.nextTick)g=globalThis.process.nextTick;else if(globalThis.queueMicrotask)g=globalThis.queueMicrotask;else if(globalThis.setImmediate)g=globalThis.setImmediate;else g=globalThis.setTimeout;return g}function A(N,P,j,Z,V){return b.importKey("raw",N,{name:"PBKDF2"},!1,["deriveBits"]).then(function(W){return b.deriveBits({name:"PBKDF2",salt:P,iterations:j,hash:{name:V}},W,Z<<3)}).then(function(W){return r.from(W)})}function I(N){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!b||!b.importKey||!b.deriveBits)return Promise.resolve(!1);if(v[N]!==void 0)return v[N];d=d||r.alloc(8);var P=A(d,d,10,128,N).then(function(){return!0},function(){return!1});return v[N]=P,P}function O(N,P){N.then(function(j){_()(function(){P(null,j)})},function(j){_()(function(){P(j)})})}t.exports=function(N,P,j,Z,V,W){if(typeof V==="function")W=V,V=void 0;if(a(j,Z),N=s(N,n,"Password"),P=s(P,n,"Salt"),typeof W!=="function")throw Error("No callback provided to pbkdf2");V=V||"sha1";var J=y[V.toLowerCase()];if(!J||typeof globalThis.Promise!=="function"){_()(function(){var ve;try{ve=l(N,P,j,Z,V)}catch(ce){W(ce);return}W(null,ve)});return}O(I(J).then(function(ve){if(ve)return A(N,P,j,Z,J);return l(N,P,j,Z,V)}),W)}}),fY=ct((e)=>{var t=(eo(),Cr(Lo)),r=YM(),a=KM(),n=QM();function l(d,b,y,v,g,_){if(r(y,v),d=n(d,a,"Password"),b=n(b,a,"Salt"),typeof g==="function")_=g,g="sha1";if(typeof _!=="function")throw Error("No callback provided to pbkdf2");return t.pbkdf2(d,b,y,v,g,_)}function s(d,b,y,v,g){return r(y,v),d=n(d,a,"Password"),b=n(b,a,"Salt"),g=g||"sha1",t.pbkdf2Sync(d,b,y,v,g)}if(!t.pbkdf2Sync||t.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)e.pbkdf2Sync=cY(),e.pbkdf2=Cge();else e.pbkdf2Sync=s,e.pbkdf2=l}),Rge=ct((e)=>{var t=(eo(),Cr(Lo));e.createCipher=e.Cipher=t.createCipher,e.createCipheriv=e.Cipheriv=t.createCipheriv,e.createDecipher=e.Decipher=t.createDecipher,e.createDecipheriv=e.Decipheriv=t.createDecipheriv,e.listCiphers=e.getCiphers=t.getCiphers}),Ige=ct((e)=>{var t=(eo(),Cr(Lo));e.DiffieHellmanGroup=t.DiffieHellmanGroup,e.createDiffieHellmanGroup=t.createDiffieHellmanGroup,e.getDiffieHellman=t.getDiffieHellman,e.createDiffieHellman=t.createDiffieHellman,e.DiffieHellman=t.DiffieHellman}),Oge=ct((e)=>{var t=(eo(),Cr(Lo));e.createSign=t.createSign,e.Sign=t.Sign,e.createVerify=t.createVerify,e.Verify=t.Verify}),Nge=ct((e,t)=>{t.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),sl=ct((e,t)=>{(function(r,a){function n(f,p){if(!f)throw Error(p||"Assertion failed")}function l(f,p){f.super_=p;var x=function(){};x.prototype=p.prototype,f.prototype=new x,f.prototype.constructor=f}function s(f,p,x){if(s.isBN(f))return f;if(this.negative=0,this.words=null,this.length=0,this.red=null,f!==null){if(p==="le"||p==="be")x=p,p=10;this._init(f||0,p||10,x||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(f){}s.isBN=function(f){if(f instanceof s)return!0;return f!==null&&typeof f==="object"&&f.constructor.wordSize===s.wordSize&&Array.isArray(f.words)},s.max=function(f,p){if(f.cmp(p)>0)return f;return p},s.min=function(f,p){if(f.cmp(p)<0)return f;return p},s.prototype._init=function(f,p,x){if(typeof f==="number")return this._initNumber(f,p,x);if(typeof f==="object")return this._initArray(f,p,x);if(p==="hex")p=16;n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var h=0;if(f[0]==="-")h++,this.negative=1;if(h<f.length){if(p===16)this._parseHex(f,h,x);else if(this._parseBase(f,p,h),x==="le")this._initArray(this.toArray(),p,x)}},s.prototype._initNumber=function(f,p,x){if(f<0)this.negative=1,f=-f;if(f<67108864)this.words=[f&67108863],this.length=1;else if(f<4503599627370496)this.words=[f&67108863,f/67108864&67108863],this.length=2;else n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3;if(x!=="le")return;this._initArray(this.toArray(),p,x)},s.prototype._initArray=function(f,p,x){if(n(typeof f.length==="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S,k,C=0;if(x==="be"){for(h=f.length-1,S=0;h>=0;h-=3)if(k=f[h]|f[h-1]<<8|f[h-2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}else if(x==="le"){for(h=0,S=0;h<f.length;h+=3)if(k=f[h]|f[h+1]<<8|f[h+2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}return this.strip()};function b(f,p){var x=f.charCodeAt(p);if(x>=65&&x<=70)return x-55;else if(x>=97&&x<=102)return x-87;else return x-48&15}function y(f,p,x){var h=b(f,x);if(x-1>=p)h|=b(f,x-1)<<4;return h}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S=0,k=0,C;if(x==="be")for(h=f.length-1;h>=p;h-=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8;else{var w=f.length-p;for(h=w%2===0?p+1:p;h<f.length;h+=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8}this.strip()};function v(f,p,x,h){var S=0,k=Math.min(f.length,x);for(var C=p;C<k;C++){var w=f.charCodeAt(C)-48;if(S*=h,w>=49)S+=w-49+10;else if(w>=17)S+=w-17+10;else S+=w}return S}s.prototype._parseBase=function(f,p,x){this.words=[0],this.length=1;for(var h=0,S=1;S<=67108863;S*=p)h++;h--,S=S/p|0;var k=f.length-x,C=k%h,w=Math.min(k,k-C)+x,c=0;for(var T=x;T<w;T+=h)if(c=v(f,T,T+h,p),this.imuln(S),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(C!==0){var z=1;c=v(f,T,f.length,p);for(T=0;T<C;T++)z*=p;if(this.imuln(z),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this.strip()},s.prototype.copy=function(f){f.words=Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red},s.prototype.clone=function(){var f=new s(null);return this.copy(f),f},s.prototype._expand=function(f){while(this.length<f)this.words[this.length++]=0;return this},s.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],_=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";var h=0,S=0;for(var k=0;k<this.length;k++){var C=this.words[k],w=((C<<h|S)&16777215).toString(16);if(S=C>>>24-h&16777215,h+=2,h>=26)h-=26,k--;if(S!==0||k!==this.length-1)x=g[6-w.length]+w+x;else x=w+x}if(S!==0)x=S.toString(16)+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}if(f===(f|0)&&f>=2&&f<=36){var c=_[f],T=A[f];x="";var z=this.clone();z.negative=0;while(!z.isZero()){var R=z.modn(T).toString(f);if(z=z.idivn(T),!z.isZero())x=g[c-R.length]+R+x;else x=R+x}if(this.isZero())x="0"+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];if(this.length===2)f+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)f+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(f,p){return n(typeof d<"u"),this.toArrayLike(d,f,p)},s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)},s.prototype.toArrayLike=function(f,p,x){var h=this.byteLength(),S=x||Math.max(1,h);n(h<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var k=p==="le",C=new f(S),w,c,T=this.clone();if(!k){for(c=0;c<S-h;c++)C[c]=0;for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[S-c-1]=w}else{for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[c]=w;for(;c<S;c++)C[c]=0}return C},Math.clz32)s.prototype._countBits=function(f){return 32-Math.clz32(f)};else s.prototype._countBits=function(f){var p=f,x=0;if(p>=4096)x+=13,p>>>=13;if(p>=64)x+=7,p>>>=7;if(p>=8)x+=4,p>>>=4;if(p>=2)x+=2,p>>>=2;return x+p};s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;if((p&8191)===0)x+=13,p>>>=13;if((p&127)===0)x+=7,p>>>=7;if((p&15)===0)x+=4,p>>>=4;if((p&3)===0)x+=2,p>>>=2;if((p&1)===0)x++;return x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(f){var p=Array(f.bitLength());for(var x=0;x<p.length;x++){var h=x/26|0,S=x%26;p[x]=(f.words[h]&1<<S)>>>S}return p}s.prototype.zeroBits=function(){if(this.isZero())return 0;var f=0;for(var p=0;p<this.length;p++){var x=this._zeroBits(this.words[p]);if(f+=x,x!==26)break}return f},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(f){if(this.negative!==0)return this.abs().inotn(f).iaddn(1);return this.clone()},s.prototype.fromTwos=function(f){if(this.testn(f-1))return this.notn(f).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(f){while(this.length<f.length)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this.strip()},s.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},s.prototype.or=function(f){if(this.length>f.length)return this.clone().ior(f);return f.clone().ior(this)},s.prototype.uor=function(f){if(this.length>f.length)return this.clone().iuor(f);return f.clone().iuor(this)},s.prototype.iuand=function(f){var p;if(this.length>f.length)p=f;else p=this;for(var x=0;x<p.length;x++)this.words[x]=this.words[x]&f.words[x];return this.length=p.length,this.strip()},s.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},s.prototype.and=function(f){if(this.length>f.length)return this.clone().iand(f);return f.clone().iand(this)},s.prototype.uand=function(f){if(this.length>f.length)return this.clone().iuand(f);return f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;if(this.length>f.length)p=this,x=f;else p=f,x=this;for(var h=0;h<x.length;h++)this.words[h]=p.words[h]^x.words[h];if(this!==p)for(;h<p.length;h++)this.words[h]=p.words[h];return this.length=p.length,this.strip()},s.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},s.prototype.xor=function(f){if(this.length>f.length)return this.clone().ixor(f);return f.clone().ixor(this)},s.prototype.uxor=function(f){if(this.length>f.length)return this.clone().iuxor(f);return f.clone().iuxor(this)},s.prototype.inotn=function(f){n(typeof f==="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;if(this._expand(p),x>0)p--;for(var h=0;h<p;h++)this.words[h]=~this.words[h]&67108863;if(x>0)this.words[h]=~this.words[h]&67108863>>26-x;return this.strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){n(typeof f==="number"&&f>=0);var x=f/26|0,h=f%26;if(this._expand(x+1),p)this.words[x]=this.words[x]|1<<h;else this.words[x]=this.words[x]&~(1<<h);return this.strip()},s.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();else if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var x,h;if(this.length>f.length)x=this,h=f;else x=f,h=this;var S=0;for(var k=0;k<h.length;k++)p=(x.words[k]|0)+(h.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;for(;S!==0&&k<x.length;k++)p=(x.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;if(this.length=x.length,S!==0)this.words[this.length]=S,this.length++;else if(x!==this)for(;k<x.length;k++)this.words[k]=x.words[k];return this},s.prototype.add=function(f){var p;if(f.negative!==0&&this.negative===0)return f.negative=0,p=this.sub(f),f.negative^=1,p;else if(f.negative===0&&this.negative!==0)return this.negative=0,p=f.sub(this),this.negative=1,p;if(this.length>f.length)return this.clone().iadd(f);return f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,S;if(x>0)h=this,S=f;else h=f,S=this;var k=0;for(var C=0;C<S.length;C++)p=(h.words[C]|0)-(S.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;for(;k!==0&&C<h.length;C++)p=(h.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;if(k===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];if(this.length=Math.max(this.length,C),h!==this)this.negative=1;return this.strip()},s.prototype.sub=function(f){return this.clone().isub(f)};function O(f,p,x){x.negative=p.negative^f.negative;var h=f.length+p.length|0;x.length=h,h=h-1|0;var S=f.words[0]|0,k=p.words[0]|0,C=S*k,w=C&67108863,c=C/67108864|0;x.words[0]=w;for(var T=1;T<h;T++){var z=c>>>26,R=c&67108863,q=Math.min(T,p.length-1);for(var Q=Math.max(0,T-f.length+1);Q<=q;Q++){var ie=T-Q|0;S=f.words[ie]|0,k=p.words[Q]|0,C=S*k+R,z+=C/67108864|0,R=C&67108863}x.words[T]=R|0,c=z|0}if(c!==0)x.words[T]=c|0;else x.length--;return x.strip()}var N=function(f,p,x){var h=f.words,S=p.words,k=x.words,C=0,w,c,T,z=h[0]|0,R=z&8191,q=z>>>13,Q=h[1]|0,ie=Q&8191,me=Q>>>13,Je=h[2]|0,ke=Je&8191,fe=Je>>>13,be=h[3]|0,Ae=be&8191,Be=be>>>13,vt=h[4]|0,oe=vt&8191,se=vt>>>13,Ke=h[5]|0,he=Ke&8191,Ie=Ke>>>13,Qe=h[6]|0,le=Qe&8191,Ee=Qe>>>13,gt=h[7]|0,De=gt&8191,We=gt>>>13,Ye=h[8]|0,we=Ye&8191,Fe=Ye>>>13,L=h[9]|0,ae=L&8191,_e=L>>>13,ot=S[0]|0,xe=ot&8191,K=ot>>>13,Ge=S[1]|0,F=Ge&8191,te=Ge>>>13,Pe=S[2]|0,pe=Pe&8191,de=Pe>>>13,at=S[3]|0,$e=at&8191,qe=at>>>13,ht=S[4]|0,tt=ht&8191,nt=ht>>>13,Er=S[5]|0,bt=Er&8191,re=Er>>>13,ye=S[6]|0,Ze=ye&8191,Ve=ye>>>13,Dt=S[7]|0,mt=Dt&8191,yt=Dt>>>13,Qr=S[8]|0,_t=Qr&8191,xt=Qr>>>13,zr=S[9]|0,wt=zr&8191,St=zr>>>13;x.negative=f.negative^p.negative,x.length=19,w=Math.imul(R,xe),c=Math.imul(R,K),c=c+Math.imul(q,xe)|0,T=Math.imul(q,K);var sn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(ie,xe),c=Math.imul(ie,K),c=c+Math.imul(me,xe)|0,T=Math.imul(me,K),w=w+Math.imul(R,F)|0,c=c+Math.imul(R,te)|0,c=c+Math.imul(q,F)|0,T=T+Math.imul(q,te)|0;var ir=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(ke,xe),c=Math.imul(ke,K),c=c+Math.imul(fe,xe)|0,T=Math.imul(fe,K),w=w+Math.imul(ie,F)|0,c=c+Math.imul(ie,te)|0,c=c+Math.imul(me,F)|0,T=T+Math.imul(me,te)|0,w=w+Math.imul(R,pe)|0,c=c+Math.imul(R,de)|0,c=c+Math.imul(q,pe)|0,T=T+Math.imul(q,de)|0;var nr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ae,xe),c=Math.imul(Ae,K),c=c+Math.imul(Be,xe)|0,T=Math.imul(Be,K),w=w+Math.imul(ke,F)|0,c=c+Math.imul(ke,te)|0,c=c+Math.imul(fe,F)|0,T=T+Math.imul(fe,te)|0,w=w+Math.imul(ie,pe)|0,c=c+Math.imul(ie,de)|0,c=c+Math.imul(me,pe)|0,T=T+Math.imul(me,de)|0,w=w+Math.imul(R,$e)|0,c=c+Math.imul(R,qe)|0,c=c+Math.imul(q,$e)|0,T=T+Math.imul(q,qe)|0;var Lr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,w=Math.imul(oe,xe),c=Math.imul(oe,K),c=c+Math.imul(se,xe)|0,T=Math.imul(se,K),w=w+Math.imul(Ae,F)|0,c=c+Math.imul(Ae,te)|0,c=c+Math.imul(Be,F)|0,T=T+Math.imul(Be,te)|0,w=w+Math.imul(ke,pe)|0,c=c+Math.imul(ke,de)|0,c=c+Math.imul(fe,pe)|0,T=T+Math.imul(fe,de)|0,w=w+Math.imul(ie,$e)|0,c=c+Math.imul(ie,qe)|0,c=c+Math.imul(me,$e)|0,T=T+Math.imul(me,qe)|0,w=w+Math.imul(R,tt)|0,c=c+Math.imul(R,nt)|0,c=c+Math.imul(q,tt)|0,T=T+Math.imul(q,nt)|0;var Tr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(he,xe),c=Math.imul(he,K),c=c+Math.imul(Ie,xe)|0,T=Math.imul(Ie,K),w=w+Math.imul(oe,F)|0,c=c+Math.imul(oe,te)|0,c=c+Math.imul(se,F)|0,T=T+Math.imul(se,te)|0,w=w+Math.imul(Ae,pe)|0,c=c+Math.imul(Ae,de)|0,c=c+Math.imul(Be,pe)|0,T=T+Math.imul(Be,de)|0,w=w+Math.imul(ke,$e)|0,c=c+Math.imul(ke,qe)|0,c=c+Math.imul(fe,$e)|0,T=T+Math.imul(fe,qe)|0,w=w+Math.imul(ie,tt)|0,c=c+Math.imul(ie,nt)|0,c=c+Math.imul(me,tt)|0,T=T+Math.imul(me,nt)|0,w=w+Math.imul(R,bt)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(q,bt)|0,T=T+Math.imul(q,re)|0;var wn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,w=Math.imul(le,xe),c=Math.imul(le,K),c=c+Math.imul(Ee,xe)|0,T=Math.imul(Ee,K),w=w+Math.imul(he,F)|0,c=c+Math.imul(he,te)|0,c=c+Math.imul(Ie,F)|0,T=T+Math.imul(Ie,te)|0,w=w+Math.imul(oe,pe)|0,c=c+Math.imul(oe,de)|0,c=c+Math.imul(se,pe)|0,T=T+Math.imul(se,de)|0,w=w+Math.imul(Ae,$e)|0,c=c+Math.imul(Ae,qe)|0,c=c+Math.imul(Be,$e)|0,T=T+Math.imul(Be,qe)|0,w=w+Math.imul(ke,tt)|0,c=c+Math.imul(ke,nt)|0,c=c+Math.imul(fe,tt)|0,T=T+Math.imul(fe,nt)|0,w=w+Math.imul(ie,bt)|0,c=c+Math.imul(ie,re)|0,c=c+Math.imul(me,bt)|0,T=T+Math.imul(me,re)|0,w=w+Math.imul(R,Ze)|0,c=c+Math.imul(R,Ve)|0,c=c+Math.imul(q,Ze)|0,T=T+Math.imul(q,Ve)|0;var En=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(En>>>26)|0,En&=67108863,w=Math.imul(De,xe),c=Math.imul(De,K),c=c+Math.imul(We,xe)|0,T=Math.imul(We,K),w=w+Math.imul(le,F)|0,c=c+Math.imul(le,te)|0,c=c+Math.imul(Ee,F)|0,T=T+Math.imul(Ee,te)|0,w=w+Math.imul(he,pe)|0,c=c+Math.imul(he,de)|0,c=c+Math.imul(Ie,pe)|0,T=T+Math.imul(Ie,de)|0,w=w+Math.imul(oe,$e)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(se,$e)|0,T=T+Math.imul(se,qe)|0,w=w+Math.imul(Ae,tt)|0,c=c+Math.imul(Ae,nt)|0,c=c+Math.imul(Be,tt)|0,T=T+Math.imul(Be,nt)|0,w=w+Math.imul(ke,bt)|0,c=c+Math.imul(ke,re)|0,c=c+Math.imul(fe,bt)|0,T=T+Math.imul(fe,re)|0,w=w+Math.imul(ie,Ze)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(me,Ze)|0,T=T+Math.imul(me,Ve)|0,w=w+Math.imul(R,mt)|0,c=c+Math.imul(R,yt)|0,c=c+Math.imul(q,mt)|0,T=T+Math.imul(q,yt)|0;var Tn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(we,xe),c=Math.imul(we,K),c=c+Math.imul(Fe,xe)|0,T=Math.imul(Fe,K),w=w+Math.imul(De,F)|0,c=c+Math.imul(De,te)|0,c=c+Math.imul(We,F)|0,T=T+Math.imul(We,te)|0,w=w+Math.imul(le,pe)|0,c=c+Math.imul(le,de)|0,c=c+Math.imul(Ee,pe)|0,T=T+Math.imul(Ee,de)|0,w=w+Math.imul(he,$e)|0,c=c+Math.imul(he,qe)|0,c=c+Math.imul(Ie,$e)|0,T=T+Math.imul(Ie,qe)|0,w=w+Math.imul(oe,tt)|0,c=c+Math.imul(oe,nt)|0,c=c+Math.imul(se,tt)|0,T=T+Math.imul(se,nt)|0,w=w+Math.imul(Ae,bt)|0,c=c+Math.imul(Ae,re)|0,c=c+Math.imul(Be,bt)|0,T=T+Math.imul(Be,re)|0,w=w+Math.imul(ke,Ze)|0,c=c+Math.imul(ke,Ve)|0,c=c+Math.imul(fe,Ze)|0,T=T+Math.imul(fe,Ve)|0,w=w+Math.imul(ie,mt)|0,c=c+Math.imul(ie,yt)|0,c=c+Math.imul(me,mt)|0,T=T+Math.imul(me,yt)|0,w=w+Math.imul(R,_t)|0,c=c+Math.imul(R,xt)|0,c=c+Math.imul(q,_t)|0,T=T+Math.imul(q,xt)|0;var kn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,w=Math.imul(ae,xe),c=Math.imul(ae,K),c=c+Math.imul(_e,xe)|0,T=Math.imul(_e,K),w=w+Math.imul(we,F)|0,c=c+Math.imul(we,te)|0,c=c+Math.imul(Fe,F)|0,T=T+Math.imul(Fe,te)|0,w=w+Math.imul(De,pe)|0,c=c+Math.imul(De,de)|0,c=c+Math.imul(We,pe)|0,T=T+Math.imul(We,de)|0,w=w+Math.imul(le,$e)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(Ee,$e)|0,T=T+Math.imul(Ee,qe)|0,w=w+Math.imul(he,tt)|0,c=c+Math.imul(he,nt)|0,c=c+Math.imul(Ie,tt)|0,T=T+Math.imul(Ie,nt)|0,w=w+Math.imul(oe,bt)|0,c=c+Math.imul(oe,re)|0,c=c+Math.imul(se,bt)|0,T=T+Math.imul(se,re)|0,w=w+Math.imul(Ae,Ze)|0,c=c+Math.imul(Ae,Ve)|0,c=c+Math.imul(Be,Ze)|0,T=T+Math.imul(Be,Ve)|0,w=w+Math.imul(ke,mt)|0,c=c+Math.imul(ke,yt)|0,c=c+Math.imul(fe,mt)|0,T=T+Math.imul(fe,yt)|0,w=w+Math.imul(ie,_t)|0,c=c+Math.imul(ie,xt)|0,c=c+Math.imul(me,_t)|0,T=T+Math.imul(me,xt)|0,w=w+Math.imul(R,wt)|0,c=c+Math.imul(R,St)|0,c=c+Math.imul(q,wt)|0,T=T+Math.imul(q,St)|0;var An=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(ae,F),c=Math.imul(ae,te),c=c+Math.imul(_e,F)|0,T=Math.imul(_e,te),w=w+Math.imul(we,pe)|0,c=c+Math.imul(we,de)|0,c=c+Math.imul(Fe,pe)|0,T=T+Math.imul(Fe,de)|0,w=w+Math.imul(De,$e)|0,c=c+Math.imul(De,qe)|0,c=c+Math.imul(We,$e)|0,T=T+Math.imul(We,qe)|0,w=w+Math.imul(le,tt)|0,c=c+Math.imul(le,nt)|0,c=c+Math.imul(Ee,tt)|0,T=T+Math.imul(Ee,nt)|0,w=w+Math.imul(he,bt)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Ie,bt)|0,T=T+Math.imul(Ie,re)|0,w=w+Math.imul(oe,Ze)|0,c=c+Math.imul(oe,Ve)|0,c=c+Math.imul(se,Ze)|0,T=T+Math.imul(se,Ve)|0,w=w+Math.imul(Ae,mt)|0,c=c+Math.imul(Ae,yt)|0,c=c+Math.imul(Be,mt)|0,T=T+Math.imul(Be,yt)|0,w=w+Math.imul(ke,_t)|0,c=c+Math.imul(ke,xt)|0,c=c+Math.imul(fe,_t)|0,T=T+Math.imul(fe,xt)|0,w=w+Math.imul(ie,wt)|0,c=c+Math.imul(ie,St)|0,c=c+Math.imul(me,wt)|0,T=T+Math.imul(me,St)|0;var Or=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Or>>>26)|0,Or&=67108863,w=Math.imul(ae,pe),c=Math.imul(ae,de),c=c+Math.imul(_e,pe)|0,T=Math.imul(_e,de),w=w+Math.imul(we,$e)|0,c=c+Math.imul(we,qe)|0,c=c+Math.imul(Fe,$e)|0,T=T+Math.imul(Fe,qe)|0,w=w+Math.imul(De,tt)|0,c=c+Math.imul(De,nt)|0,c=c+Math.imul(We,tt)|0,T=T+Math.imul(We,nt)|0,w=w+Math.imul(le,bt)|0,c=c+Math.imul(le,re)|0,c=c+Math.imul(Ee,bt)|0,T=T+Math.imul(Ee,re)|0,w=w+Math.imul(he,Ze)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(Ie,Ze)|0,T=T+Math.imul(Ie,Ve)|0,w=w+Math.imul(oe,mt)|0,c=c+Math.imul(oe,yt)|0,c=c+Math.imul(se,mt)|0,T=T+Math.imul(se,yt)|0,w=w+Math.imul(Ae,_t)|0,c=c+Math.imul(Ae,xt)|0,c=c+Math.imul(Be,_t)|0,T=T+Math.imul(Be,xt)|0,w=w+Math.imul(ke,wt)|0,c=c+Math.imul(ke,St)|0,c=c+Math.imul(fe,wt)|0,T=T+Math.imul(fe,St)|0;var en=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(en>>>26)|0,en&=67108863,w=Math.imul(ae,$e),c=Math.imul(ae,qe),c=c+Math.imul(_e,$e)|0,T=Math.imul(_e,qe),w=w+Math.imul(we,tt)|0,c=c+Math.imul(we,nt)|0,c=c+Math.imul(Fe,tt)|0,T=T+Math.imul(Fe,nt)|0,w=w+Math.imul(De,bt)|0,c=c+Math.imul(De,re)|0,c=c+Math.imul(We,bt)|0,T=T+Math.imul(We,re)|0,w=w+Math.imul(le,Ze)|0,c=c+Math.imul(le,Ve)|0,c=c+Math.imul(Ee,Ze)|0,T=T+Math.imul(Ee,Ve)|0,w=w+Math.imul(he,mt)|0,c=c+Math.imul(he,yt)|0,c=c+Math.imul(Ie,mt)|0,T=T+Math.imul(Ie,yt)|0,w=w+Math.imul(oe,_t)|0,c=c+Math.imul(oe,xt)|0,c=c+Math.imul(se,_t)|0,T=T+Math.imul(se,xt)|0,w=w+Math.imul(Ae,wt)|0,c=c+Math.imul(Ae,St)|0,c=c+Math.imul(Be,wt)|0,T=T+Math.imul(Be,St)|0;var Kr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(ae,tt),c=Math.imul(ae,nt),c=c+Math.imul(_e,tt)|0,T=Math.imul(_e,nt),w=w+Math.imul(we,bt)|0,c=c+Math.imul(we,re)|0,c=c+Math.imul(Fe,bt)|0,T=T+Math.imul(Fe,re)|0,w=w+Math.imul(De,Ze)|0,c=c+Math.imul(De,Ve)|0,c=c+Math.imul(We,Ze)|0,T=T+Math.imul(We,Ve)|0,w=w+Math.imul(le,mt)|0,c=c+Math.imul(le,yt)|0,c=c+Math.imul(Ee,mt)|0,T=T+Math.imul(Ee,yt)|0,w=w+Math.imul(he,_t)|0,c=c+Math.imul(he,xt)|0,c=c+Math.imul(Ie,_t)|0,T=T+Math.imul(Ie,xt)|0,w=w+Math.imul(oe,wt)|0,c=c+Math.imul(oe,St)|0,c=c+Math.imul(se,wt)|0,T=T+Math.imul(se,St)|0;var Mn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,w=Math.imul(ae,bt),c=Math.imul(ae,re),c=c+Math.imul(_e,bt)|0,T=Math.imul(_e,re),w=w+Math.imul(we,Ze)|0,c=c+Math.imul(we,Ve)|0,c=c+Math.imul(Fe,Ze)|0,T=T+Math.imul(Fe,Ve)|0,w=w+Math.imul(De,mt)|0,c=c+Math.imul(De,yt)|0,c=c+Math.imul(We,mt)|0,T=T+Math.imul(We,yt)|0,w=w+Math.imul(le,_t)|0,c=c+Math.imul(le,xt)|0,c=c+Math.imul(Ee,_t)|0,T=T+Math.imul(Ee,xt)|0,w=w+Math.imul(he,wt)|0,c=c+Math.imul(he,St)|0,c=c+Math.imul(Ie,wt)|0,T=T+Math.imul(Ie,St)|0;var ln=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ln>>>26)|0,ln&=67108863,w=Math.imul(ae,Ze),c=Math.imul(ae,Ve),c=c+Math.imul(_e,Ze)|0,T=Math.imul(_e,Ve),w=w+Math.imul(we,mt)|0,c=c+Math.imul(we,yt)|0,c=c+Math.imul(Fe,mt)|0,T=T+Math.imul(Fe,yt)|0,w=w+Math.imul(De,_t)|0,c=c+Math.imul(De,xt)|0,c=c+Math.imul(We,_t)|0,T=T+Math.imul(We,xt)|0,w=w+Math.imul(le,wt)|0,c=c+Math.imul(le,St)|0,c=c+Math.imul(Ee,wt)|0,T=T+Math.imul(Ee,St)|0;var pn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(ae,mt),c=Math.imul(ae,yt),c=c+Math.imul(_e,mt)|0,T=Math.imul(_e,yt),w=w+Math.imul(we,_t)|0,c=c+Math.imul(we,xt)|0,c=c+Math.imul(Fe,_t)|0,T=T+Math.imul(Fe,xt)|0,w=w+Math.imul(De,wt)|0,c=c+Math.imul(De,St)|0,c=c+Math.imul(We,wt)|0,T=T+Math.imul(We,St)|0;var vn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(vn>>>26)|0,vn&=67108863,w=Math.imul(ae,_t),c=Math.imul(ae,xt),c=c+Math.imul(_e,_t)|0,T=Math.imul(_e,xt),w=w+Math.imul(we,wt)|0,c=c+Math.imul(we,St)|0,c=c+Math.imul(Fe,wt)|0,T=T+Math.imul(Fe,St)|0;var un=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(un>>>26)|0,un&=67108863,w=Math.imul(ae,wt),c=Math.imul(ae,St),c=c+Math.imul(_e,wt)|0,T=Math.imul(_e,St);var tn=(C+w|0)+((c&8191)<<13)|0;if(C=(T+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,k[0]=sn,k[1]=ir,k[2]=nr,k[3]=Lr,k[4]=Tr,k[5]=wn,k[6]=En,k[7]=Tn,k[8]=kn,k[9]=An,k[10]=Or,k[11]=en,k[12]=Kr,k[13]=Mn,k[14]=ln,k[15]=pn,k[16]=vn,k[17]=un,k[18]=tn,C!==0)k[19]=C,x.length++;return x};if(!Math.imul)N=O;function P(f,p,x){x.negative=p.negative^f.negative,x.length=f.length+p.length;var h=0,S=0;for(var k=0;k<x.length-1;k++){var C=S;S=0;var w=h&67108863,c=Math.min(k,p.length-1);for(var T=Math.max(0,k-f.length+1);T<=c;T++){var z=k-T,R=f.words[z]|0,q=p.words[T]|0,Q=R*q,ie=Q&67108863;C=C+(Q/67108864|0)|0,ie=ie+w|0,w=ie&67108863,C=C+(ie>>>26)|0,S+=C>>>26,C&=67108863}x.words[k]=w,h=C,C=S}if(h!==0)x.words[k]=h;else x.length--;return x.strip()}function j(f,p,x){var h=new Z;return h.mulp(f,p,x)}s.prototype.mulTo=function(f,p){var x,h=this.length+f.length;if(this.length===10&&f.length===10)x=N(this,f,p);else if(h<63)x=O(this,f,p);else if(h<1024)x=P(this,f,p);else x=j(this,f,p);return x};function Z(f,p){this.x=f,this.y=p}Z.prototype.makeRBT=function(f){var p=Array(f),x=s.prototype._countBits(f)-1;for(var h=0;h<f;h++)p[h]=this.revBin(h,x,f);return p},Z.prototype.revBin=function(f,p,x){if(f===0||f===x-1)return f;var h=0;for(var S=0;S<p;S++)h|=(f&1)<<p-S-1,f>>=1;return h},Z.prototype.permute=function(f,p,x,h,S,k){for(var C=0;C<k;C++)h[C]=p[f[C]],S[C]=x[f[C]]},Z.prototype.transform=function(f,p,x,h,S,k){this.permute(k,f,p,x,h,S);for(var C=1;C<S;C<<=1){var w=C<<1,c=Math.cos(2*Math.PI/w),T=Math.sin(2*Math.PI/w);for(var z=0;z<S;z+=w){var R=c,q=T;for(var Q=0;Q<C;Q++){var ie=x[z+Q],me=h[z+Q],Je=x[z+Q+C],ke=h[z+Q+C],fe=R*Je-q*ke;if(ke=R*ke+q*Je,Je=fe,x[z+Q]=ie+Je,h[z+Q]=me+ke,x[z+Q+C]=ie-Je,h[z+Q+C]=me-ke,Q!==w)fe=c*R-T*q,q=c*q+T*R,R=fe}}}},Z.prototype.guessLen13b=function(f,p){var x=Math.max(p,f)|1,h=x&1,S=0;for(x=x/2|0;x;x=x>>>1)S++;return 1<<S+1+h},Z.prototype.conjugate=function(f,p,x){if(x<=1)return;for(var h=0;h<x/2;h++){var S=f[h];f[h]=f[x-h-1],f[x-h-1]=S,S=p[h],p[h]=-p[x-h-1],p[x-h-1]=-S}},Z.prototype.normalize13b=function(f,p){var x=0;for(var h=0;h<p/2;h++){var S=Math.round(f[2*h+1]/p)*8192+Math.round(f[2*h]/p)+x;if(f[h]=S&67108863,S<67108864)x=0;else x=S/67108864|0}return f},Z.prototype.convert13b=function(f,p,x,h){var S=0;for(var k=0;k<p;k++)S=S+(f[k]|0),x[2*k]=S&8191,S=S>>>13,x[2*k+1]=S&8191,S=S>>>13;for(k=2*p;k<h;++k)x[k]=0;n(S===0),n((S&-8192)===0)},Z.prototype.stub=function(f){var p=Array(f);for(var x=0;x<f;x++)p[x]=0;return p},Z.prototype.mulp=function(f,p,x){var h=2*this.guessLen13b(f.length,p.length),S=this.makeRBT(h),k=this.stub(h),C=Array(h),w=Array(h),c=Array(h),T=Array(h),z=Array(h),R=Array(h),q=x.words;q.length=h,this.convert13b(f.words,f.length,C,h),this.convert13b(p.words,p.length,T,h),this.transform(C,k,w,c,h,S),this.transform(T,k,z,R,h,S);for(var Q=0;Q<h;Q++){var ie=w[Q]*z[Q]-c[Q]*R[Q];c[Q]=w[Q]*R[Q]+c[Q]*z[Q],w[Q]=ie}return this.conjugate(w,c,h),this.transform(w,c,q,k,h,S),this.conjugate(q,k,h),this.normalize13b(q,h),x.negative=f.negative^p.negative,x.length=f.length+p.length,x.strip()},s.prototype.mul=function(f){var p=new s(null);return p.words=Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=Array(this.length+f.length),j(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){n(typeof f==="number"),n(f<67108864);var p=0;for(var x=0;x<this.length;x++){var h=(this.words[x]|0)*f,S=(h&67108863)+(p&67108863);p>>=26,p+=h/67108864|0,p+=S>>>26,this.words[x]=S&67108863}if(p!==0)this.words[x]=p,this.length++;return this.length=f===0?1:this.length,this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=I(f);if(p.length===0)return new s(1);var x=this;for(var h=0;h<p.length;h++,x=x.sqr())if(p[h]!==0)break;if(++h<p.length)for(var S=x.sqr();h<p.length;h++,S=S.sqr()){if(p[h]===0)continue;x=x.mul(S)}return x},s.prototype.iushln=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=67108863>>>26-p<<26-p,S;if(p!==0){var k=0;for(S=0;S<this.length;S++){var C=this.words[S]&h,w=(this.words[S]|0)-C<<p;this.words[S]=w|k,k=C>>>26-p}if(k)this.words[S]=k,this.length++}if(x!==0){for(S=this.length-1;S>=0;S--)this.words[S+x]=this.words[S];for(S=0;S<x;S++)this.words[S]=0;this.length+=x}return this.strip()},s.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},s.prototype.iushrn=function(f,p,x){n(typeof f==="number"&&f>=0);var h;if(p)h=(p-p%26)/26;else h=0;var S=f%26,k=Math.min((f-S)/26,this.length),C=67108863^67108863>>>S<<S,w=x;if(h-=k,h=Math.max(0,h),w){for(var c=0;c<k;c++)w.words[c]=this.words[c];w.length=k}if(k===0);else if(this.length>k){this.length-=k;for(c=0;c<this.length;c++)this.words[c]=this.words[c+k]}else this.words[0]=0,this.length=1;var T=0;for(c=this.length-1;c>=0&&(T!==0||c>=h);c--){var z=this.words[c]|0;this.words[c]=T<<26-S|z>>>S,T=z&C}if(w&&T!==0)w.words[w.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},s.prototype.ishrn=function(f,p,x){return n(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return!1;var S=this.words[x];return!!(S&h)},s.prototype.imaskn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0)x++;if(this.length=Math.min(x,this.length),p!==0){var h=67108863^67108863>>>p<<p;this.words[this.length-1]&=h}return this.strip()},s.prototype.maskn=function(f){return this.clone().imaskn(f)},s.prototype.iaddn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.isubn(-f);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<f)return this.words[0]=f-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(f),this.negative=1,this}return this._iaddn(f)},s.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)if(this.words[p]-=67108864,p===this.length-1)this.words[p+1]=1;else this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(f){return this.clone().iaddn(f)},s.prototype.subn=function(f){return this.clone().isubn(f)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(f,p,x){var h=f.length+x,S;this._expand(h);var k,C=0;for(S=0;S<f.length;S++){k=(this.words[S+x]|0)+C;var w=(f.words[S]|0)*p;k-=w&67108863,C=(k>>26)-(w/67108864|0),this.words[S+x]=k&67108863}for(;S<this.length-x;S++)k=(this.words[S+x]|0)+C,C=k>>26,this.words[S+x]=k&67108863;if(C===0)return this.strip();n(C===-1),C=0;for(S=0;S<this.length;S++)k=-(this.words[S]|0)+C,C=k>>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,h=this.clone(),S=f,k=S.words[S.length-1]|0,C=this._countBits(k);if(x=26-C,x!==0)S=S.ushln(x),h.iushln(x),k=S.words[S.length-1]|0;var w=h.length-S.length,c;if(p!=="mod"){c=new s(null),c.length=w+1,c.words=Array(c.length);for(var T=0;T<c.length;T++)c.words[T]=0}var z=h.clone()._ishlnsubmul(S,1,w);if(z.negative===0){if(h=z,c)c.words[w]=1}for(var R=w-1;R>=0;R--){var q=(h.words[S.length+R]|0)*67108864+(h.words[S.length+R-1]|0);q=Math.min(q/k|0,67108863),h._ishlnsubmul(S,q,R);while(h.negative!==0)if(q--,h.negative=0,h._ishlnsubmul(S,1,R),!h.isZero())h.negative^=1;if(c)c.words[R]=q}if(c)c.strip();if(h.strip(),p!=="div"&&x!==0)h.iushrn(x);return{div:c||null,mod:h}},s.prototype.divmod=function(f,p,x){if(n(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var h,S,k;if(this.negative!==0&&f.negative===0){if(k=this.neg().divmod(f,p),p!=="mod")h=k.div.neg();if(p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.iadd(f)}return{div:h,mod:S}}if(this.negative===0&&f.negative!==0){if(k=this.divmod(f.neg(),p),p!=="mod")h=k.div.neg();return{div:h,mod:k.mod}}if((this.negative&f.negative)!==0){if(k=this.neg().divmod(f.neg(),p),p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.isub(f)}return{div:k.div,mod:S}}if(f.length>this.length||this.cmp(f)<0)return{div:new s(0),mod:this};if(f.length===1){if(p==="div")return{div:this.divn(f.words[0]),mod:null};if(p==="mod")return{div:null,mod:new s(this.modn(f.words[0]))};return{div:this.divn(f.words[0]),mod:new s(this.modn(f.words[0]))}}return this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,h=f.ushrn(1),S=f.andln(1),k=x.cmp(h);if(k<0||S===1&&k===0)return p.div;return p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(f){n(f<=67108863);var p=67108864%f,x=0;for(var h=this.length-1;h>=0;h--)x=(p*x+(this.words[h]|0))%f;return x},s.prototype.idivn=function(f){n(f<=67108863);var p=0;for(var x=this.length-1;x>=0;x--){var h=(this.words[x]|0)+p*67108864;this.words[x]=h/f|0,p=h%f}return this.strip()},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=new s(0),C=new s(1),w=0;while(p.isEven()&&x.isEven())p.iushrn(1),x.iushrn(1),++w;var c=x.clone(),T=p.clone();while(!p.isZero()){for(var z=0,R=1;(p.words[0]&R)===0&&z<26;++z,R<<=1);if(z>0){p.iushrn(z);while(z-- >0){if(h.isOdd()||S.isOdd())h.iadd(c),S.isub(T);h.iushrn(1),S.iushrn(1)}}for(var q=0,Q=1;(x.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0){x.iushrn(q);while(q-- >0){if(k.isOdd()||C.isOdd())k.iadd(c),C.isub(T);k.iushrn(1),C.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(k),S.isub(C);else x.isub(p),k.isub(h),C.isub(S)}return{a:k,b:C,gcd:x.iushln(w)}},s.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=x.clone();while(p.cmpn(1)>0&&x.cmpn(1)>0){for(var C=0,w=1;(p.words[0]&w)===0&&C<26;++C,w<<=1);if(C>0){p.iushrn(C);while(C-- >0){if(h.isOdd())h.iadd(k);h.iushrn(1)}}for(var c=0,T=1;(x.words[0]&T)===0&&c<26;++c,T<<=1);if(c>0){x.iushrn(c);while(c-- >0){if(S.isOdd())S.iadd(k);S.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(S);else x.isub(p),S.isub(h)}var z;if(p.cmpn(1)===0)z=h;else z=S;if(z.cmpn(0)<0)z.iadd(f);return z},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var h=0;p.isEven()&&x.isEven();h++)p.iushrn(1),x.iushrn(1);do{while(p.isEven())p.iushrn(1);while(x.isEven())x.iushrn(1);var S=p.cmp(x);if(S<0){var k=p;p=x,x=k}else if(S===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(h)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){n(typeof f==="number");var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return this._expand(x+1),this.words[x]|=h,this;var S=h;for(var k=x;S!==0&&k<this.length;k++){var C=this.words[k]|0;C+=S,S=C>>>26,C&=67108863,this.words[k]=C}if(S!==0)this.words[k]=S,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var x;if(this.length>1)x=1;else{if(p)f=-f;n(f<=67108863,"Number is too big");var h=this.words[0]|0;x=h===f?0:h<f?-1:1}if(this.negative!==0)return-x|0;return x},s.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);if(this.negative!==0)return-p|0;return p},s.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;var p=0;for(var x=this.length-1;x>=0;x--){var h=this.words[x]|0,S=f.words[x]|0;if(h===S)continue;if(h<S)p=-1;else if(h>S)p=1;break}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new Y(f)},s.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var V={k256:null,p224:null,p192:null,p25519:null};function W(f,p){this.name=f,this.p=new s(p,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}W.prototype._tmp=function(){var f=new s(null);return f.words=Array(Math.ceil(this.n/13)),f},W.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var h=x<this.n?-1:p.ucmp(this.p);if(h===0)p.words[0]=0,p.length=1;else if(h>0)p.isub(this.p);else if(p.strip!==void 0)p.strip();else p._strip();return p},W.prototype.split=function(f,p){f.iushrn(this.n,0,p)},W.prototype.imulK=function(f){return f.imul(this.k)};function J(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(J,W),J.prototype.split=function(f,p){var x=4194303,h=Math.min(f.length,9);for(var S=0;S<h;S++)p.words[S]=f.words[S];if(p.length=h,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];p.words[p.length++]=k&x;for(S=10;S<f.length;S++){var C=f.words[S]|0;f.words[S-10]=(C&x)<<4|k>>>22,k=C}if(k>>>=22,f.words[S-10]=k,k===0&&f.length>10)f.length-=10;else f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;var p=0;for(var x=0;x<f.length;x++){var h=f.words[x]|0;p+=h*977,f.words[x]=p&67108863,p=h*64+(p/67108864|0)}if(f.words[f.length-1]===0){if(f.length--,f.words[f.length-1]===0)f.length--}return f};function ve(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(ve,W);function ce(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(ce,W);function Me(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(Me,W),Me.prototype.imulK=function(f){var p=0;for(var x=0;x<f.length;x++){var h=(f.words[x]|0)*19+p,S=h&67108863;h>>>=26,f.words[x]=S,p=h}if(p!==0)f.words[f.length++]=p;return f},s._prime=function(f){if(V[f])return V[f];var p;if(f==="k256")p=new J;else if(f==="p224")p=new ve;else if(f==="p192")p=new ce;else if(f==="p25519")p=new Me;else throw Error("Unknown prime "+f);return V[f]=p,p};function Y(f){if(typeof f==="string"){var p=s._prime(f);this.m=p.p,this.prime=p}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}Y.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},Y.prototype.imod=function(f){if(this.prime)return this.prime.ireduce(f)._forceRed(this);return f.umod(this.m)._forceRed(this)},Y.prototype.neg=function(f){if(f.isZero())return f.clone();return this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x._forceRed(this)},Y.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x},Y.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x._forceRed(this)},Y.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x},Y.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},Y.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},Y.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}var h=this.m.subn(1),S=0;while(!h.isZero()&&h.andln(1)===0)S++,h.iushrn(1);n(!h.isZero());var k=new s(1).toRed(this),C=k.redNeg(),w=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new s(2*c*c).toRed(this);while(this.pow(c,w).cmp(C)!==0)c.redIAdd(C);var T=this.pow(c,h),z=this.pow(f,h.addn(1).iushrn(1)),R=this.pow(f,h),q=S;while(R.cmp(k)!==0){var Q=R;for(var ie=0;Q.cmp(k)!==0;ie++)Q=Q.redSqr();n(ie<q);var me=this.pow(T,new s(1).iushln(q-ie-1));z=z.redMul(me),T=me.redSqr(),R=R.redMul(T),q=ie}return z},Y.prototype.invm=function(f){var p=f._invmp(this.m);if(p.negative!==0)return p.negative=0,this.imod(p).redNeg();else return this.imod(p)},Y.prototype.pow=function(f,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var x=4,h=Array(1<<x);h[0]=new s(1).toRed(this),h[1]=f;for(var S=2;S<h.length;S++)h[S]=this.mul(h[S-1],f);var k=h[0],C=0,w=0,c=p.bitLength()%26;if(c===0)c=26;for(S=p.length-1;S>=0;S--){var T=p.words[S];for(var z=c-1;z>=0;z--){var R=T>>z&1;if(k!==h[0])k=this.sqr(k);if(R===0&&C===0){w=0;continue}if(C<<=1,C|=R,w++,w!==x&&(S!==0||z!==0))continue;k=this.mul(k,h[C]),w=0,C=0}c=26}return k},Y.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},Y.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new Te(f)};function Te(f){if(Y.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(Te,Y),Te.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Te.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},Te.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof t>"u"||t,e)}),Tu=ct((e,t)=>{t.exports=r;function r(a,n){if(!a)throw Error(n||"Assertion failed")}r.equal=function(a,n,l){if(a!=n)throw Error(l||"Assertion failed: "+a+" != "+n)}}),dY=ct((e)=>{var t=e;function r(l,s){if(Array.isArray(l))return l.slice();if(!l)return[];var d=[];if(typeof l!=="string"){for(var b=0;b<l.length;b++)d[b]=l[b]|0;return d}if(s==="hex"){if(l=l.replace(/[^a-z0-9]+/ig,""),l.length%2!==0)l="0"+l;for(var b=0;b<l.length;b+=2)d.push(parseInt(l[b]+l[b+1],16))}else for(var b=0;b<l.length;b++){var y=l.charCodeAt(b),v=y>>8,g=y&255;if(v)d.push(v,g);else d.push(g)}return d}t.toArray=r;function a(l){if(l.length===1)return"0"+l;else return l}t.zero2=a;function n(l){var s="";for(var d=0;d<l.length;d++)s+=a(l[d].toString(16));return s}t.toHex=n,t.encode=function(l,s){if(s==="hex")return n(l);else return l}}),na=ct((e)=>{var t=e,r=sl(),a=Tu(),n=dY();t.assert=a,t.toArray=n.toArray,t.zero2=n.zero2,t.toHex=n.toHex,t.encode=n.encode;function l(v,g,_){var A=Array(Math.max(v.bitLength(),_)+1),I;for(I=0;I<A.length;I+=1)A[I]=0;var O=1<<g+1,N=v.clone();for(I=0;I<A.length;I++){var P,j=N.andln(O-1);if(N.isOdd()){if(j>(O>>1)-1)P=(O>>1)-j;else P=j;N.isubn(P)}else P=0;A[I]=P,N.iushrn(1)}return A}t.getNAF=l;function s(v,g){var _=[[],[]];v=v.clone(),g=g.clone();var A=0,I=0,O;while(v.cmpn(-A)>0||g.cmpn(-I)>0){var N=v.andln(3)+A&3,P=g.andln(3)+I&3;if(N===3)N=-1;if(P===3)P=-1;var j;if((N&1)===0)j=0;else if(O=v.andln(7)+A&7,(O===3||O===5)&&P===2)j=-N;else j=N;_[0].push(j);var Z;if((P&1)===0)Z=0;else if(O=g.andln(7)+I&7,(O===3||O===5)&&N===2)Z=-P;else Z=P;if(_[1].push(Z),2*A===j+1)A=1-A;if(2*I===Z+1)I=1-I;v.iushrn(1),g.iushrn(1)}return _}t.getJSF=s;function d(v,g,_){var A="_"+g;v.prototype[g]=function(){return this[A]!==void 0?this[A]:this[A]=_.call(this)}}t.cachedProperty=d;function b(v){return typeof v==="string"?t.toArray(v,"hex"):v}t.parseBytes=b;function y(v){return new r(v,"hex","le")}t.intFromLE=y}),hY=ct((e,t)=>{var r;t.exports=function(l){if(!r)r=new a(null);return r.generate(l)};function a(l){this.rand=l}if(t.exports.Rand=a,a.prototype.generate=function(l){return this._rand(l)},a.prototype._rand=function(l){if(this.rand.getBytes)return this.rand.getBytes(l);var s=new Uint8Array(l);for(var d=0;d<s.length;d++)s[d]=this.rand.getByte();return s},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)a.prototype._rand=function(l){var s=new Uint8Array(l);return self.crypto.getRandomValues(s),s};else if(self.msCrypto&&self.msCrypto.getRandomValues)a.prototype._rand=function(l){var s=new Uint8Array(l);return self.msCrypto.getRandomValues(s),s};else if(typeof window==="object")a.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(n=(eo(),Cr(Lo)),typeof n.randomBytes!=="function")throw Error("Not supported");a.prototype._rand=function(l){return n.randomBytes(l)}}catch(l){}var n}),G2=ct((e,t)=>{var r=sl(),a=na(),n=a.getNAF,l=a.getJSF,s=a.assert;function d(y,v){this.type=y,this.p=new r(v.p,16),this.red=v.prime?r.red(v.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=v.n&&new r(v.n,16),this.g=v.g&&this.pointFromJSON(v.g,v.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var g=this.n&&this.p.div(this.n);if(!g||g.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}t.exports=d,d.prototype.point=function(){throw Error("Not implemented")},d.prototype.validate=function(){throw Error("Not implemented")},d.prototype._fixedNafMul=function(y,v){s(y.precomputed);var g=y._getDoubles(),_=n(v,1,this._bitLength),A=(1<<g.step+1)-(g.step%2===0?2:1);A/=3;var I=[],O,N;for(O=0;O<_.length;O+=g.step){N=0;for(var P=O+g.step-1;P>=O;P--)N=(N<<1)+_[P];I.push(N)}var j=this.jpoint(null,null,null),Z=this.jpoint(null,null,null);for(var V=A;V>0;V--){for(O=0;O<I.length;O++)if(N=I[O],N===V)Z=Z.mixedAdd(g.points[O]);else if(N===-V)Z=Z.mixedAdd(g.points[O].neg());j=j.add(Z)}return j.toP()},d.prototype._wnafMul=function(y,v){var g=4,_=y._getNAFPoints(g);g=_.wnd;var A=_.points,I=n(v,g,this._bitLength),O=this.jpoint(null,null,null);for(var N=I.length-1;N>=0;N--){for(var P=0;N>=0&&I[N]===0;N--)P++;if(N>=0)P++;if(O=O.dblp(P),N<0)break;var j=I[N];if(s(j!==0),y.type==="affine")if(j>0)O=O.mixedAdd(A[j-1>>1]);else O=O.mixedAdd(A[-j-1>>1].neg());else if(j>0)O=O.add(A[j-1>>1]);else O=O.add(A[-j-1>>1].neg())}return y.type==="affine"?O.toP():O},d.prototype._wnafMulAdd=function(y,v,g,_,A){var I=this._wnafT1,O=this._wnafT2,N=this._wnafT3,P=0,j,Z,V;for(j=0;j<_;j++){V=v[j];var W=V._getNAFPoints(y);I[j]=W.wnd,O[j]=W.points}for(j=_-1;j>=1;j-=2){var J=j-1,ve=j;if(I[J]!==1||I[ve]!==1){N[J]=n(g[J],I[J],this._bitLength),N[ve]=n(g[ve],I[ve],this._bitLength),P=Math.max(N[J].length,P),P=Math.max(N[ve].length,P);continue}var ce=[v[J],null,null,v[ve]];if(v[J].y.cmp(v[ve].y)===0)ce[1]=v[J].add(v[ve]),ce[2]=v[J].toJ().mixedAdd(v[ve].neg());else if(v[J].y.cmp(v[ve].y.redNeg())===0)ce[1]=v[J].toJ().mixedAdd(v[ve]),ce[2]=v[J].add(v[ve].neg());else ce[1]=v[J].toJ().mixedAdd(v[ve]),ce[2]=v[J].toJ().mixedAdd(v[ve].neg());var Me=[-3,-1,-5,-7,0,7,5,1,3],Y=l(g[J],g[ve]);P=Math.max(Y[0].length,P),N[J]=Array(P),N[ve]=Array(P);for(Z=0;Z<P;Z++){var Te=Y[0][Z]|0,f=Y[1][Z]|0;N[J][Z]=Me[(Te+1)*3+(f+1)],N[ve][Z]=0,O[J]=ce}}var p=this.jpoint(null,null,null),x=this._wnafT4;for(j=P;j>=0;j--){var h=0;while(j>=0){var S=!0;for(Z=0;Z<_;Z++)if(x[Z]=N[Z][j]|0,x[Z]!==0)S=!1;if(!S)break;h++,j--}if(j>=0)h++;if(p=p.dblp(h),j<0)break;for(Z=0;Z<_;Z++){var k=x[Z];if(k===0)continue;else if(k>0)V=O[Z][k-1>>1];else if(k<0)V=O[Z][-k-1>>1].neg();if(V.type==="affine")p=p.mixedAdd(V);else p=p.add(V)}}for(j=0;j<_;j++)O[j]=null;if(A)return p;else return p.toP()};function b(y,v){this.curve=y,this.type=v,this.precomputed=null}d.BasePoint=b,b.prototype.eq=function(){throw Error("Not implemented")},b.prototype.validate=function(){return this.curve.validate(this)},d.prototype.decodePoint=function(y,v){y=a.toArray(y,v);var g=this.p.byteLength();if((y[0]===4||y[0]===6||y[0]===7)&&y.length-1===2*g){if(y[0]===6)s(y[y.length-1]%2===0);else if(y[0]===7)s(y[y.length-1]%2===1);var _=this.point(y.slice(1,1+g),y.slice(1+g,1+2*g));return _}else if((y[0]===2||y[0]===3)&&y.length-1===g)return this.pointFromX(y.slice(1,1+g),y[0]===3);throw Error("Unknown point format")},b.prototype.encodeCompressed=function(y){return this.encode(y,!0)},b.prototype._encode=function(y){var v=this.curve.p.byteLength(),g=this.getX().toArray("be",v);if(y)return[this.getY().isEven()?2:3].concat(g);return[4].concat(g,this.getY().toArray("be",v))},b.prototype.encode=function(y,v){return a.encode(this._encode(v),y)},b.prototype.precompute=function(y){if(this.precomputed)return this;var v={doubles:null,naf:null,beta:null};return v.naf=this._getNAFPoints(8),v.doubles=this._getDoubles(4,y),v.beta=this._getBeta(),this.precomputed=v,this},b.prototype._hasDoubles=function(y){if(!this.precomputed)return!1;var v=this.precomputed.doubles;if(!v)return!1;return v.points.length>=Math.ceil((y.bitLength()+1)/v.step)},b.prototype._getDoubles=function(y,v){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var g=[this],_=this;for(var A=0;A<v;A+=y){for(var I=0;I<y;I++)_=_.dbl();g.push(_)}return{step:y,points:g}},b.prototype._getNAFPoints=function(y){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var v=[this],g=(1<<y)-1,_=g===1?null:this.dbl();for(var A=1;A<g;A++)v[A]=v[A-1].add(_);return{wnd:y,points:v}},b.prototype._getBeta=function(){return null},b.prototype.dblp=function(y){var v=this;for(var g=0;g<y;g++)v=v.dbl();return v}}),Dge=ct((e,t)=>{if(typeof Object.create==="function")t.exports=function(r,a){if(a)r.super_=a,r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})};else t.exports=function(r,a){if(a){r.super_=a;var n=function(){};n.prototype=a.prototype,r.prototype=new n,r.prototype.constructor=r}}}),zo=ct((e,t)=>{try{if(r=(MV(),Cr(AV)),typeof r.inherits!=="function")throw"";t.exports=r.inherits}catch(a){t.exports=Dge()}var r}),zge=ct((e,t)=>{var r=na(),a=sl(),n=zo(),l=G2(),s=r.assert;function d(v){l.call(this,"short",v),this.a=new a(v.a,16).toRed(this.red),this.b=new a(v.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(v),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}n(d,l),t.exports=d,d.prototype._getEndomorphism=function(v){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var g,_;if(v.beta)g=new a(v.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);g=A[0].cmp(A[1])<0?A[0]:A[1],g=g.toRed(this.red)}if(v.lambda)_=new a(v.lambda,16);else{var I=this._getEndoRoots(this.n);if(this.g.mul(I[0]).x.cmp(this.g.x.redMul(g))===0)_=I[0];else _=I[1],s(this.g.mul(_).x.cmp(this.g.x.redMul(g))===0)}var O;if(v.basis)O=v.basis.map(function(N){return{a:new a(N.a,16),b:new a(N.b,16)}});else O=this._getEndoBasis(_);return{beta:g,lambda:_,basis:O}},d.prototype._getEndoRoots=function(v){var g=v===this.p?this.red:a.mont(v),_=new a(2).toRed(g).redInvm(),A=_.redNeg(),I=new a(3).toRed(g).redNeg().redSqrt().redMul(_),O=A.redAdd(I).fromRed(),N=A.redSub(I).fromRed();return[O,N]},d.prototype._getEndoBasis=function(v){var g=this.n.ushrn(Math.floor(this.n.bitLength()/2)),_=v,A=this.n.clone(),I=new a(1),O=new a(0),N=new a(0),P=new a(1),j,Z,V,W,J,ve,ce,Me=0,Y,Te;while(_.cmpn(0)!==0){var f=A.div(_);Y=A.sub(f.mul(_)),Te=N.sub(f.mul(I));var p=P.sub(f.mul(O));if(!V&&Y.cmp(g)<0)j=ce.neg(),Z=I,V=Y.neg(),W=Te;else if(V&&++Me===2)break;ce=Y,A=_,_=Y,N=I,I=Te,P=O,O=p}J=Y.neg(),ve=Te;var x=V.sqr().add(W.sqr()),h=J.sqr().add(ve.sqr());if(h.cmp(x)>=0)J=j,ve=Z;if(V.negative)V=V.neg(),W=W.neg();if(J.negative)J=J.neg(),ve=ve.neg();return[{a:V,b:W},{a:J,b:ve}]},d.prototype._endoSplit=function(v){var g=this.endo.basis,_=g[0],A=g[1],I=A.b.mul(v).divRound(this.n),O=_.b.neg().mul(v).divRound(this.n),N=I.mul(_.a),P=O.mul(A.a),j=I.mul(_.b),Z=O.mul(A.b),V=v.sub(N).sub(P),W=j.add(Z).neg();return{k1:V,k2:W}},d.prototype.pointFromX=function(v,g){if(v=new a(v,16),!v.red)v=v.toRed(this.red);var _=v.redSqr().redMul(v).redIAdd(v.redMul(this.a)).redIAdd(this.b),A=_.redSqrt();if(A.redSqr().redSub(_).cmp(this.zero)!==0)throw Error("invalid point");var I=A.fromRed().isOdd();if(g&&!I||!g&&I)A=A.redNeg();return this.point(v,A)},d.prototype.validate=function(v){if(v.inf)return!0;var{x:g,y:_}=v,A=this.a.redMul(g),I=g.redSqr().redMul(g).redIAdd(A).redIAdd(this.b);return _.redSqr().redISub(I).cmpn(0)===0},d.prototype._endoWnafMulAdd=function(v,g,_){var A=this._endoWnafT1,I=this._endoWnafT2;for(var O=0;O<v.length;O++){var N=this._endoSplit(g[O]),P=v[O],j=P._getBeta();if(N.k1.negative)N.k1.ineg(),P=P.neg(!0);if(N.k2.negative)N.k2.ineg(),j=j.neg(!0);A[O*2]=P,A[O*2+1]=j,I[O*2]=N.k1,I[O*2+1]=N.k2}var Z=this._wnafMulAdd(1,A,I,O*2,_);for(var V=0;V<O*2;V++)A[V]=null,I[V]=null;return Z};function b(v,g,_,A){if(l.BasePoint.call(this,v,"affine"),g===null&&_===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new a(g,16),this.y=new a(_,16),A)this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);this.inf=!1}}n(b,l.BasePoint),d.prototype.point=function(v,g,_){return new b(this,v,g,_)},d.prototype.pointFromJSON=function(v,g){return b.fromJSON(this,v,g)},b.prototype._getBeta=function(){if(!this.curve.endo)return;var v=this.precomputed;if(v&&v.beta)return v.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(v){var _=this.curve,A=function(I){return _.point(I.x.redMul(_.endo.beta),I.y)};v.beta=g,g.precomputed={beta:null,naf:v.naf&&{wnd:v.naf.wnd,points:v.naf.points.map(A)},doubles:v.doubles&&{step:v.doubles.step,points:v.doubles.points.map(A)}}}return g},b.prototype.toJSON=function(){if(!this.precomputed)return[this.x,this.y];return[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]},b.fromJSON=function(v,g,_){if(typeof g==="string")g=JSON.parse(g);var A=v.point(g[0],g[1],_);if(!g[2])return A;function I(N){return v.point(N[0],N[1],_)}var O=g[2];return A.precomputed={beta:null,doubles:O.doubles&&{step:O.doubles.step,points:[A].concat(O.doubles.points.map(I))},naf:O.naf&&{wnd:O.naf.wnd,points:[A].concat(O.naf.points.map(I))}},A},b.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},b.prototype.isInfinity=function(){return this.inf},b.prototype.add=function(v){if(this.inf)return v;if(v.inf)return this;if(this.eq(v))return this.dbl();if(this.neg().eq(v))return this.curve.point(null,null);if(this.x.cmp(v.x)===0)return this.curve.point(null,null);var g=this.y.redSub(v.y);if(g.cmpn(0)!==0)g=g.redMul(this.x.redSub(v.x).redInvm());var _=g.redSqr().redISub(this.x).redISub(v.x),A=g.redMul(this.x.redSub(_)).redISub(this.y);return this.curve.point(_,A)},b.prototype.dbl=function(){if(this.inf)return this;var v=this.y.redAdd(this.y);if(v.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,_=this.x.redSqr(),A=v.redInvm(),I=_.redAdd(_).redIAdd(_).redIAdd(g).redMul(A),O=I.redSqr().redISub(this.x.redAdd(this.x)),N=I.redMul(this.x.redSub(O)).redISub(this.y);return this.curve.point(O,N)},b.prototype.getX=function(){return this.x.fromRed()},b.prototype.getY=function(){return this.y.fromRed()},b.prototype.mul=function(v){if(v=new a(v,16),this.isInfinity())return this;else if(this._hasDoubles(v))return this.curve._fixedNafMul(this,v);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[v]);else return this.curve._wnafMul(this,v)},b.prototype.mulAdd=function(v,g,_){var A=[this,g],I=[v,_];if(this.curve.endo)return this.curve._endoWnafMulAdd(A,I);else return this.curve._wnafMulAdd(1,A,I,2)},b.prototype.jmulAdd=function(v,g,_){var A=[this,g],I=[v,_];if(this.curve.endo)return this.curve._endoWnafMulAdd(A,I,!0);else return this.curve._wnafMulAdd(1,A,I,2,!0)},b.prototype.eq=function(v){return this===v||this.inf===v.inf&&(this.inf||this.x.cmp(v.x)===0&&this.y.cmp(v.y)===0)},b.prototype.neg=function(v){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(v&&this.precomputed){var _=this.precomputed,A=function(I){return I.neg()};g.precomputed={naf:_.naf&&{wnd:_.naf.wnd,points:_.naf.points.map(A)},doubles:_.doubles&&{step:_.doubles.step,points:_.doubles.points.map(A)}}}return g},b.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var v=this.curve.jpoint(this.x,this.y,this.curve.one);return v};function y(v,g,_,A){if(l.BasePoint.call(this,v,"jacobian"),g===null&&_===null&&A===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0);else this.x=new a(g,16),this.y=new a(_,16),this.z=new a(A,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}n(y,l.BasePoint),d.prototype.jpoint=function(v,g,_){return new y(this,v,g,_)},y.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var v=this.z.redInvm(),g=v.redSqr(),_=this.x.redMul(g),A=this.y.redMul(g).redMul(v);return this.curve.point(_,A)},y.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},y.prototype.add=function(v){if(this.isInfinity())return v;if(v.isInfinity())return this;var g=v.z.redSqr(),_=this.z.redSqr(),A=this.x.redMul(g),I=v.x.redMul(_),O=this.y.redMul(g.redMul(v.z)),N=v.y.redMul(_.redMul(this.z)),P=A.redSub(I),j=O.redSub(N);if(P.cmpn(0)===0)if(j.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var Z=P.redSqr(),V=Z.redMul(P),W=A.redMul(Z),J=j.redSqr().redIAdd(V).redISub(W).redISub(W),ve=j.redMul(W.redISub(J)).redISub(O.redMul(V)),ce=this.z.redMul(v.z).redMul(P);return this.curve.jpoint(J,ve,ce)},y.prototype.mixedAdd=function(v){if(this.isInfinity())return v.toJ();if(v.isInfinity())return this;var g=this.z.redSqr(),_=this.x,A=v.x.redMul(g),I=this.y,O=v.y.redMul(g).redMul(this.z),N=_.redSub(A),P=I.redSub(O);if(N.cmpn(0)===0)if(P.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var j=N.redSqr(),Z=j.redMul(N),V=_.redMul(j),W=P.redSqr().redIAdd(Z).redISub(V).redISub(V),J=P.redMul(V.redISub(W)).redISub(I.redMul(Z)),ve=this.z.redMul(N);return this.curve.jpoint(W,J,ve)},y.prototype.dblp=function(v){if(v===0)return this;if(this.isInfinity())return this;if(!v)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var _=this;for(g=0;g<v;g++)_=_.dbl();return _}var A=this.curve.a,I=this.curve.tinv,O=this.x,N=this.y,P=this.z,j=P.redSqr().redSqr(),Z=N.redAdd(N);for(g=0;g<v;g++){var V=O.redSqr(),W=Z.redSqr(),J=W.redSqr(),ve=V.redAdd(V).redIAdd(V).redIAdd(A.redMul(j)),ce=O.redMul(W),Me=ve.redSqr().redISub(ce.redAdd(ce)),Y=ce.redISub(Me),Te=ve.redMul(Y);Te=Te.redIAdd(Te).redISub(J);var f=Z.redMul(P);if(g+1<v)j=j.redMul(J);O=Me,P=f,Z=Te}return this.curve.jpoint(O,Z.redMul(I),P)},y.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()},y.prototype._zeroDbl=function(){var v,g,_;if(this.zOne){var A=this.x.redSqr(),I=this.y.redSqr(),O=I.redSqr(),N=this.x.redAdd(I).redSqr().redISub(A).redISub(O);N=N.redIAdd(N);var P=A.redAdd(A).redIAdd(A),j=P.redSqr().redISub(N).redISub(N),Z=O.redIAdd(O);Z=Z.redIAdd(Z),Z=Z.redIAdd(Z),v=j,g=P.redMul(N.redISub(j)).redISub(Z),_=this.y.redAdd(this.y)}else{var V=this.x.redSqr(),W=this.y.redSqr(),J=W.redSqr(),ve=this.x.redAdd(W).redSqr().redISub(V).redISub(J);ve=ve.redIAdd(ve);var ce=V.redAdd(V).redIAdd(V),Me=ce.redSqr(),Y=J.redIAdd(J);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),v=Me.redISub(ve).redISub(ve),g=ce.redMul(ve.redISub(v)).redISub(Y),_=this.y.redMul(this.z),_=_.redIAdd(_)}return this.curve.jpoint(v,g,_)},y.prototype._threeDbl=function(){var v,g,_;if(this.zOne){var A=this.x.redSqr(),I=this.y.redSqr(),O=I.redSqr(),N=this.x.redAdd(I).redSqr().redISub(A).redISub(O);N=N.redIAdd(N);var P=A.redAdd(A).redIAdd(A).redIAdd(this.curve.a),j=P.redSqr().redISub(N).redISub(N);v=j;var Z=O.redIAdd(O);Z=Z.redIAdd(Z),Z=Z.redIAdd(Z),g=P.redMul(N.redISub(j)).redISub(Z),_=this.y.redAdd(this.y)}else{var V=this.z.redSqr(),W=this.y.redSqr(),J=this.x.redMul(W),ve=this.x.redSub(V).redMul(this.x.redAdd(V));ve=ve.redAdd(ve).redIAdd(ve);var ce=J.redIAdd(J);ce=ce.redIAdd(ce);var Me=ce.redAdd(ce);v=ve.redSqr().redISub(Me),_=this.y.redAdd(this.z).redSqr().redISub(W).redISub(V);var Y=W.redSqr();Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),g=ve.redMul(ce.redISub(v)).redISub(Y)}return this.curve.jpoint(v,g,_)},y.prototype._dbl=function(){var v=this.curve.a,g=this.x,_=this.y,A=this.z,I=A.redSqr().redSqr(),O=g.redSqr(),N=_.redSqr(),P=O.redAdd(O).redIAdd(O).redIAdd(v.redMul(I)),j=g.redAdd(g);j=j.redIAdd(j);var Z=j.redMul(N),V=P.redSqr().redISub(Z.redAdd(Z)),W=Z.redISub(V),J=N.redSqr();J=J.redIAdd(J),J=J.redIAdd(J),J=J.redIAdd(J);var ve=P.redMul(W).redISub(J),ce=_.redAdd(_).redMul(A);return this.curve.jpoint(V,ve,ce)},y.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var v=this.x.redSqr(),g=this.y.redSqr(),_=this.z.redSqr(),A=g.redSqr(),I=v.redAdd(v).redIAdd(v),O=I.redSqr(),N=this.x.redAdd(g).redSqr().redISub(v).redISub(A);N=N.redIAdd(N),N=N.redAdd(N).redIAdd(N),N=N.redISub(O);var P=N.redSqr(),j=A.redIAdd(A);j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j);var Z=I.redIAdd(N).redSqr().redISub(O).redISub(P).redISub(j),V=g.redMul(Z);V=V.redIAdd(V),V=V.redIAdd(V);var W=this.x.redMul(P).redISub(V);W=W.redIAdd(W),W=W.redIAdd(W);var J=this.y.redMul(Z.redMul(j.redISub(Z)).redISub(N.redMul(P)));J=J.redIAdd(J),J=J.redIAdd(J),J=J.redIAdd(J);var ve=this.z.redAdd(N).redSqr().redISub(_).redISub(P);return this.curve.jpoint(W,J,ve)},y.prototype.mul=function(v,g){return v=new a(v,g),this.curve._wnafMul(this,v)},y.prototype.eq=function(v){if(v.type==="affine")return this.eq(v.toJ());if(this===v)return!0;var g=this.z.redSqr(),_=v.z.redSqr();if(this.x.redMul(_).redISub(v.x.redMul(g)).cmpn(0)!==0)return!1;var A=g.redMul(this.z),I=_.redMul(v.z);return this.y.redMul(I).redISub(v.y.redMul(A)).cmpn(0)===0},y.prototype.eqXToP=function(v){var g=this.z.redSqr(),_=v.toRed(this.curve.red).redMul(g);if(this.x.cmp(_)===0)return!0;var A=v.clone(),I=this.curve.redN.redMul(g);for(;;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(_.redIAdd(I),this.x.cmp(_)===0)return!0}},y.prototype.inspect=function(){if(this.isInfinity())return"<EC JPoint Infinity>";return"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},y.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),Lge=ct((e,t)=>{var r=sl(),a=zo(),n=G2(),l=na();function s(b){n.call(this,"mont",b),this.a=new r(b.a,16).toRed(this.red),this.b=new r(b.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}a(s,n),t.exports=s,s.prototype.validate=function(b){var y=b.normalize().x,v=y.redSqr(),g=v.redMul(y).redAdd(v.redMul(this.a)).redAdd(y),_=g.redSqrt();return _.redSqr().cmp(g)===0};function d(b,y,v){if(n.BasePoint.call(this,b,"projective"),y===null&&v===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new r(y,16),this.z=new r(v,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}a(d,n.BasePoint),s.prototype.decodePoint=function(b,y){return this.point(l.toArray(b,y),1)},s.prototype.point=function(b,y){return new d(this,b,y)},s.prototype.pointFromJSON=function(b){return d.fromJSON(this,b)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(b,y){return new d(b,y[0],y[1]||b.one)},d.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.z.cmpn(0)===0},d.prototype.dbl=function(){var b=this.x.redAdd(this.z),y=b.redSqr(),v=this.x.redSub(this.z),g=v.redSqr(),_=y.redSub(g),A=y.redMul(g),I=_.redMul(g.redAdd(this.curve.a24.redMul(_)));return this.curve.point(A,I)},d.prototype.add=function(){throw Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(b,y){var v=this.x.redAdd(this.z),g=this.x.redSub(this.z),_=b.x.redAdd(b.z),A=b.x.redSub(b.z),I=A.redMul(v),O=_.redMul(g),N=y.z.redMul(I.redAdd(O).redSqr()),P=y.x.redMul(I.redISub(O).redSqr());return this.curve.point(N,P)},d.prototype.mul=function(b){var y=b.clone(),v=this,g=this.curve.point(null,null),_=this;for(var A=[];y.cmpn(0)!==0;y.iushrn(1))A.push(y.andln(1));for(var I=A.length-1;I>=0;I--)if(A[I]===0)v=v.diffAdd(g,_),g=g.dbl();else g=v.diffAdd(g,_),v=v.dbl();return g},d.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},d.prototype.eq=function(b){return this.getX().cmp(b.getX())===0},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),Pge=ct((e,t)=>{var r=na(),a=sl(),n=zo(),l=G2(),s=r.assert;function d(y){this.twisted=(y.a|0)!==1,this.mOneA=this.twisted&&(y.a|0)===-1,this.extended=this.mOneA,l.call(this,"edwards",y),this.a=new a(y.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(y.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(y.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(y.c|0)===1}n(d,l),t.exports=d,d.prototype._mulA=function(y){if(this.mOneA)return y.redNeg();else return this.a.redMul(y)},d.prototype._mulC=function(y){if(this.oneC)return y;else return this.c.redMul(y)},d.prototype.jpoint=function(y,v,g,_){return this.point(y,v,g,_)},d.prototype.pointFromX=function(y,v){if(y=new a(y,16),!y.red)y=y.toRed(this.red);var g=y.redSqr(),_=this.c2.redSub(this.a.redMul(g)),A=this.one.redSub(this.c2.redMul(this.d).redMul(g)),I=_.redMul(A.redInvm()),O=I.redSqrt();if(O.redSqr().redSub(I).cmp(this.zero)!==0)throw Error("invalid point");var N=O.fromRed().isOdd();if(v&&!N||!v&&N)O=O.redNeg();return this.point(y,O)},d.prototype.pointFromY=function(y,v){if(y=new a(y,16),!y.red)y=y.toRed(this.red);var g=y.redSqr(),_=g.redSub(this.c2),A=g.redMul(this.d).redMul(this.c2).redSub(this.a),I=_.redMul(A.redInvm());if(I.cmp(this.zero)===0)if(v)throw Error("invalid point");else return this.point(this.zero,y);var O=I.redSqrt();if(O.redSqr().redSub(I).cmp(this.zero)!==0)throw Error("invalid point");if(O.fromRed().isOdd()!==v)O=O.redNeg();return this.point(O,y)},d.prototype.validate=function(y){if(y.isInfinity())return!0;y.normalize();var v=y.x.redSqr(),g=y.y.redSqr(),_=v.redMul(this.a).redAdd(g),A=this.c2.redMul(this.one.redAdd(this.d.redMul(v).redMul(g)));return _.cmp(A)===0};function b(y,v,g,_,A){if(l.BasePoint.call(this,y,"projective"),v===null&&g===null&&_===null)this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0;else{if(this.x=new a(v,16),this.y=new a(g,16),this.z=_?new a(_,16):this.curve.one,this.t=A&&new a(A,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);if(this.t&&!this.t.red)this.t=this.t.toRed(this.curve.red);if(this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t){if(this.t=this.x.redMul(this.y),!this.zOne)this.t=this.t.redMul(this.z.redInvm())}}}n(b,l.BasePoint),d.prototype.pointFromJSON=function(y){return b.fromJSON(this,y)},d.prototype.point=function(y,v,g,_){return new b(this,y,v,g,_)},b.fromJSON=function(y,v){return new b(y,v[0],v[1],v[2])},b.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},b.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},b.prototype._extDbl=function(){var y=this.x.redSqr(),v=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var _=this.curve._mulA(y),A=this.x.redAdd(this.y).redSqr().redISub(y).redISub(v),I=_.redAdd(v),O=I.redSub(g),N=_.redSub(v),P=A.redMul(O),j=I.redMul(N),Z=A.redMul(N),V=O.redMul(I);return this.curve.point(P,j,V,Z)},b.prototype._projDbl=function(){var y=this.x.redAdd(this.y).redSqr(),v=this.x.redSqr(),g=this.y.redSqr(),_,A,I,O,N,P;if(this.curve.twisted){O=this.curve._mulA(v);var j=O.redAdd(g);if(this.zOne)_=y.redSub(v).redSub(g).redMul(j.redSub(this.curve.two)),A=j.redMul(O.redSub(g)),I=j.redSqr().redSub(j).redSub(j);else N=this.z.redSqr(),P=j.redSub(N).redISub(N),_=y.redSub(v).redISub(g).redMul(P),A=j.redMul(O.redSub(g)),I=j.redMul(P)}else O=v.redAdd(g),N=this.curve._mulC(this.z).redSqr(),P=O.redSub(N).redSub(N),_=this.curve._mulC(y.redISub(O)).redMul(P),A=this.curve._mulC(O).redMul(v.redISub(g)),I=O.redMul(P);return this.curve.point(_,A,I)},b.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},b.prototype._extAdd=function(y){var v=this.y.redSub(this.x).redMul(y.y.redSub(y.x)),g=this.y.redAdd(this.x).redMul(y.y.redAdd(y.x)),_=this.t.redMul(this.curve.dd).redMul(y.t),A=this.z.redMul(y.z.redAdd(y.z)),I=g.redSub(v),O=A.redSub(_),N=A.redAdd(_),P=g.redAdd(v),j=I.redMul(O),Z=N.redMul(P),V=I.redMul(P),W=O.redMul(N);return this.curve.point(j,Z,W,V)},b.prototype._projAdd=function(y){var v=this.z.redMul(y.z),g=v.redSqr(),_=this.x.redMul(y.x),A=this.y.redMul(y.y),I=this.curve.d.redMul(_).redMul(A),O=g.redSub(I),N=g.redAdd(I),P=this.x.redAdd(this.y).redMul(y.x.redAdd(y.y)).redISub(_).redISub(A),j=v.redMul(O).redMul(P),Z,V;if(this.curve.twisted)Z=v.redMul(N).redMul(A.redSub(this.curve._mulA(_))),V=O.redMul(N);else Z=v.redMul(N).redMul(A.redSub(_)),V=this.curve._mulC(O).redMul(N);return this.curve.point(j,Z,V)},b.prototype.add=function(y){if(this.isInfinity())return y;if(y.isInfinity())return this;if(this.curve.extended)return this._extAdd(y);else return this._projAdd(y)},b.prototype.mul=function(y){if(this._hasDoubles(y))return this.curve._fixedNafMul(this,y);else return this.curve._wnafMul(this,y)},b.prototype.mulAdd=function(y,v,g){return this.curve._wnafMulAdd(1,[this,v],[y,g],2,!1)},b.prototype.jmulAdd=function(y,v,g){return this.curve._wnafMulAdd(1,[this,v],[y,g],2,!0)},b.prototype.normalize=function(){if(this.zOne)return this;var y=this.z.redInvm();if(this.x=this.x.redMul(y),this.y=this.y.redMul(y),this.t)this.t=this.t.redMul(y);return this.z=this.curve.one,this.zOne=!0,this},b.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},b.prototype.getX=function(){return this.normalize(),this.x.fromRed()},b.prototype.getY=function(){return this.normalize(),this.y.fromRed()},b.prototype.eq=function(y){return this===y||this.getX().cmp(y.getX())===0&&this.getY().cmp(y.getY())===0},b.prototype.eqXToP=function(y){var v=y.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(v)===0)return!0;var g=y.clone(),_=this.curve.redN.redMul(this.z);for(;;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(v.redIAdd(_),this.x.cmp(v)===0)return!0}},b.prototype.toP=b.prototype.normalize,b.prototype.mixedAdd=b.prototype.add}),pY=ct((e)=>{var t=e;t.base=G2(),t.short=zge(),t.mont=Lge(),t.edwards=Pge()}),bs=ct((e)=>{var t=Tu(),r=zo();e.inherits=r;function a(p,x){if((p.charCodeAt(x)&64512)!==55296)return!1;if(x<0||x+1>=p.length)return!1;return(p.charCodeAt(x+1)&64512)===56320}function n(p,x){if(Array.isArray(p))return p.slice();if(!p)return[];var h=[];if(typeof p==="string"){if(!x){var S=0;for(var k=0;k<p.length;k++){var C=p.charCodeAt(k);if(C<128)h[S++]=C;else if(C<2048)h[S++]=C>>6|192,h[S++]=C&63|128;else if(a(p,k))C=65536+((C&1023)<<10)+(p.charCodeAt(++k)&1023),h[S++]=C>>18|240,h[S++]=C>>12&63|128,h[S++]=C>>6&63|128,h[S++]=C&63|128;else h[S++]=C>>12|224,h[S++]=C>>6&63|128,h[S++]=C&63|128}}else if(x==="hex"){if(p=p.replace(/[^a-z0-9]+/ig,""),p.length%2!==0)p="0"+p;for(k=0;k<p.length;k+=2)h.push(parseInt(p[k]+p[k+1],16))}}else for(k=0;k<p.length;k++)h[k]=p[k]|0;return h}e.toArray=n;function l(p){var x="";for(var h=0;h<p.length;h++)x+=b(p[h].toString(16));return x}e.toHex=l;function s(p){var x=p>>>24|p>>>8&65280|p<<8&16711680|(p&255)<<24;return x>>>0}e.htonl=s;function d(p,x){var h="";for(var S=0;S<p.length;S++){var k=p[S];if(x==="little")k=s(k);h+=y(k.toString(16))}return h}e.toHex32=d;function b(p){if(p.length===1)return"0"+p;else return p}e.zero2=b;function y(p){if(p.length===7)return"0"+p;else if(p.length===6)return"00"+p;else if(p.length===5)return"000"+p;else if(p.length===4)return"0000"+p;else if(p.length===3)return"00000"+p;else if(p.length===2)return"000000"+p;else if(p.length===1)return"0000000"+p;else return p}e.zero8=y;function v(p,x,h,S){var k=h-x;t(k%4===0);var C=Array(k/4);for(var w=0,c=x;w<C.length;w++,c+=4){var T;if(S==="big")T=p[c]<<24|p[c+1]<<16|p[c+2]<<8|p[c+3];else T=p[c+3]<<24|p[c+2]<<16|p[c+1]<<8|p[c];C[w]=T>>>0}return C}e.join32=v;function g(p,x){var h=Array(p.length*4);for(var S=0,k=0;S<p.length;S++,k+=4){var C=p[S];if(x==="big")h[k]=C>>>24,h[k+1]=C>>>16&255,h[k+2]=C>>>8&255,h[k+3]=C&255;else h[k+3]=C>>>24,h[k+2]=C>>>16&255,h[k+1]=C>>>8&255,h[k]=C&255}return h}e.split32=g;function _(p,x){return p>>>x|p<<32-x}e.rotr32=_;function A(p,x){return p<<x|p>>>32-x}e.rotl32=A;function I(p,x){return p+x>>>0}e.sum32=I;function O(p,x,h){return p+x+h>>>0}e.sum32_3=O;function N(p,x,h,S){return p+x+h+S>>>0}e.sum32_4=N;function P(p,x,h,S,k){return p+x+h+S+k>>>0}e.sum32_5=P;function j(p,x,h,S){var k=p[x],C=p[x+1],w=S+C>>>0,c=(w<S?1:0)+h+k;p[x]=c>>>0,p[x+1]=w}e.sum64=j;function Z(p,x,h,S){var k=x+S>>>0,C=(k<x?1:0)+p+h;return C>>>0}e.sum64_hi=Z;function V(p,x,h,S){var k=x+S;return k>>>0}e.sum64_lo=V;function W(p,x,h,S,k,C,w,c){var T=0,z=x;z=z+S>>>0,T+=z<x?1:0,z=z+C>>>0,T+=z<C?1:0,z=z+c>>>0,T+=z<c?1:0;var R=p+h+k+w+T;return R>>>0}e.sum64_4_hi=W;function J(p,x,h,S,k,C,w,c){var T=x+S+C+c;return T>>>0}e.sum64_4_lo=J;function ve(p,x,h,S,k,C,w,c,T,z){var R=0,q=x;q=q+S>>>0,R+=q<x?1:0,q=q+C>>>0,R+=q<C?1:0,q=q+c>>>0,R+=q<c?1:0,q=q+z>>>0,R+=q<z?1:0;var Q=p+h+k+w+T+R;return Q>>>0}e.sum64_5_hi=ve;function ce(p,x,h,S,k,C,w,c,T,z){var R=x+S+C+c+z;return R>>>0}e.sum64_5_lo=ce;function Me(p,x,h){var S=x<<32-h|p>>>h;return S>>>0}e.rotr64_hi=Me;function Y(p,x,h){var S=p<<32-h|x>>>h;return S>>>0}e.rotr64_lo=Y;function Te(p,x,h){return p>>>h}e.shr64_hi=Te;function f(p,x,h){var S=p<<32-h|x>>>h;return S>>>0}e.shr64_lo=f}),G0=ct((e)=>{var t=bs(),r=Tu();function a(){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}e.BlockHash=a,a.prototype.update=function(n,l){if(n=t.toArray(n,l),!this.pending)this.pending=n;else this.pending=this.pending.concat(n);if(this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var s=n.length%this._delta8;if(this.pending=n.slice(n.length-s,n.length),this.pending.length===0)this.pending=null;n=t.join32(n,0,n.length-s,this.endian);for(var d=0;d<n.length;d+=this._delta32)this._update(n,d,d+this._delta32)}return this},a.prototype.digest=function(n){return this.update(this._pad()),r(this.pending===null),this._digest(n)},a.prototype._pad=function(){var n=this.pendingTotal,l=this._delta8,s=l-(n+this.padLength)%l,d=Array(s+this.padLength);d[0]=128;for(var b=1;b<s;b++)d[b]=0;if(n<<=3,this.endian==="big"){for(var y=8;y<this.padLength;y++)d[b++]=0;d[b++]=0,d[b++]=0,d[b++]=0,d[b++]=0,d[b++]=n>>>24&255,d[b++]=n>>>16&255,d[b++]=n>>>8&255,d[b++]=n&255}else{d[b++]=n&255,d[b++]=n>>>8&255,d[b++]=n>>>16&255,d[b++]=n>>>24&255,d[b++]=0,d[b++]=0,d[b++]=0,d[b++]=0;for(y=8;y<this.padLength;y++)d[b++]=0}return d}}),mY=ct((e)=>{var t=bs(),r=t.rotr32;function a(g,_,A,I){if(g===0)return n(_,A,I);if(g===1||g===3)return s(_,A,I);if(g===2)return l(_,A,I)}e.ft_1=a;function n(g,_,A){return g&_^~g&A}e.ch32=n;function l(g,_,A){return g&_^g&A^_&A}e.maj32=l;function s(g,_,A){return g^_^A}e.p32=s;function d(g){return r(g,2)^r(g,13)^r(g,22)}e.s0_256=d;function b(g){return r(g,6)^r(g,11)^r(g,25)}e.s1_256=b;function y(g){return r(g,7)^r(g,18)^g>>>3}e.g0_256=y;function v(g){return r(g,17)^r(g,19)^g>>>10}e.g1_256=v}),$ge=ct((e,t)=>{var r=bs(),a=G0(),n=mY(),l=r.rotl32,s=r.sum32,d=r.sum32_5,b=n.ft_1,y=a.BlockHash,v=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}r.inherits(g,y),t.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(_,A){var I=this.W;for(var O=0;O<16;O++)I[O]=_[A+O];for(;O<I.length;O++)I[O]=l(I[O-3]^I[O-8]^I[O-14]^I[O-16],1);var N=this.h[0],P=this.h[1],j=this.h[2],Z=this.h[3],V=this.h[4];for(O=0;O<I.length;O++){var W=~~(O/20),J=d(l(N,5),b(W,P,j,Z),V,I[O],v[W]);V=Z,Z=j,j=l(P,30),P=N,N=J}this.h[0]=s(this.h[0],N),this.h[1]=s(this.h[1],P),this.h[2]=s(this.h[2],j),this.h[3]=s(this.h[3],Z),this.h[4]=s(this.h[4],V)},g.prototype._digest=function(_){if(_==="hex")return r.toHex32(this.h,"big");else return r.split32(this.h,"big")}}),gY=ct((e,t)=>{var r=bs(),a=G0(),n=mY(),l=Tu(),s=r.sum32,d=r.sum32_4,b=r.sum32_5,y=n.ch32,v=n.maj32,g=n.s0_256,_=n.s1_256,A=n.g0_256,I=n.g1_256,O=a.BlockHash,N=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function P(){if(!(this instanceof P))return new P;O.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=N,this.W=Array(64)}r.inherits(P,O),t.exports=P,P.blockSize=512,P.outSize=256,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(j,Z){var V=this.W;for(var W=0;W<16;W++)V[W]=j[Z+W];for(;W<V.length;W++)V[W]=d(I(V[W-2]),V[W-7],A(V[W-15]),V[W-16]);var J=this.h[0],ve=this.h[1],ce=this.h[2],Me=this.h[3],Y=this.h[4],Te=this.h[5],f=this.h[6],p=this.h[7];l(this.k.length===V.length);for(W=0;W<V.length;W++){var x=b(p,_(Y),y(Y,Te,f),this.k[W],V[W]),h=s(g(J),v(J,ve,ce));p=f,f=Te,Te=Y,Y=s(Me,x),Me=ce,ce=ve,ve=J,J=s(x,h)}this.h[0]=s(this.h[0],J),this.h[1]=s(this.h[1],ve),this.h[2]=s(this.h[2],ce),this.h[3]=s(this.h[3],Me),this.h[4]=s(this.h[4],Y),this.h[5]=s(this.h[5],Te),this.h[6]=s(this.h[6],f),this.h[7]=s(this.h[7],p)},P.prototype._digest=function(j){if(j==="hex")return r.toHex32(this.h,"big");else return r.split32(this.h,"big")}}),Bge=ct((e,t)=>{var r=bs(),a=gY();function n(){if(!(this instanceof n))return new n;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(n,a),t.exports=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(l){if(l==="hex")return r.toHex32(this.h.slice(0,7),"big");else return r.split32(this.h.slice(0,7),"big")}}),bY=ct((e,t)=>{var r=bs(),a=G0(),n=Tu(),l=r.rotr64_hi,s=r.rotr64_lo,d=r.shr64_hi,b=r.shr64_lo,y=r.sum64,v=r.sum64_hi,g=r.sum64_lo,_=r.sum64_4_hi,A=r.sum64_4_lo,I=r.sum64_5_hi,O=r.sum64_5_lo,N=a.BlockHash,P=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function j(){if(!(this instanceof j))return new j;N.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=P,this.W=Array(160)}r.inherits(j,N),t.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(h,S){var k=this.W;for(var C=0;C<32;C++)k[C]=h[S+C];for(;C<k.length;C+=2){var w=p(k[C-4],k[C-3]),c=x(k[C-4],k[C-3]),T=k[C-14],z=k[C-13],R=Te(k[C-30],k[C-29]),q=f(k[C-30],k[C-29]),Q=k[C-32],ie=k[C-31];k[C]=_(w,c,T,z,R,q,Q,ie),k[C+1]=A(w,c,T,z,R,q,Q,ie)}},j.prototype._update=function(h,S){this._prepareBlock(h,S);var k=this.W,C=this.h[0],w=this.h[1],c=this.h[2],T=this.h[3],z=this.h[4],R=this.h[5],q=this.h[6],Q=this.h[7],ie=this.h[8],me=this.h[9],Je=this.h[10],ke=this.h[11],fe=this.h[12],be=this.h[13],Ae=this.h[14],Be=this.h[15];n(this.k.length===k.length);for(var vt=0;vt<k.length;vt+=2){var oe=Ae,se=Be,Ke=Me(ie,me),he=Y(ie,me),Ie=Z(ie,me,Je,ke,fe,be),Qe=V(ie,me,Je,ke,fe,be),le=this.k[vt],Ee=this.k[vt+1],gt=k[vt],De=k[vt+1],We=I(oe,se,Ke,he,Ie,Qe,le,Ee,gt,De),Ye=O(oe,se,Ke,he,Ie,Qe,le,Ee,gt,De);oe=ve(C,w),se=ce(C,w),Ke=W(C,w,c,T,z,R),he=J(C,w,c,T,z,R);var we=v(oe,se,Ke,he),Fe=g(oe,se,Ke,he);Ae=fe,Be=be,fe=Je,be=ke,Je=ie,ke=me,ie=v(q,Q,We,Ye),me=g(Q,Q,We,Ye),q=z,Q=R,z=c,R=T,c=C,T=w,C=v(We,Ye,we,Fe),w=g(We,Ye,we,Fe)}y(this.h,0,C,w),y(this.h,2,c,T),y(this.h,4,z,R),y(this.h,6,q,Q),y(this.h,8,ie,me),y(this.h,10,Je,ke),y(this.h,12,fe,be),y(this.h,14,Ae,Be)},j.prototype._digest=function(h){if(h==="hex")return r.toHex32(this.h,"big");else return r.split32(this.h,"big")};function Z(h,S,k,C,w){var c=h&k^~h&w;if(c<0)c+=4294967296;return c}function V(h,S,k,C,w,c){var T=S&C^~S&c;if(T<0)T+=4294967296;return T}function W(h,S,k,C,w){var c=h&k^h&w^k&w;if(c<0)c+=4294967296;return c}function J(h,S,k,C,w,c){var T=S&C^S&c^C&c;if(T<0)T+=4294967296;return T}function ve(h,S){var k=l(h,S,28),C=l(S,h,2),w=l(S,h,7),c=k^C^w;if(c<0)c+=4294967296;return c}function ce(h,S){var k=s(h,S,28),C=s(S,h,2),w=s(S,h,7),c=k^C^w;if(c<0)c+=4294967296;return c}function Me(h,S){var k=l(h,S,14),C=l(h,S,18),w=l(S,h,9),c=k^C^w;if(c<0)c+=4294967296;return c}function Y(h,S){var k=s(h,S,14),C=s(h,S,18),w=s(S,h,9),c=k^C^w;if(c<0)c+=4294967296;return c}function Te(h,S){var k=l(h,S,1),C=l(h,S,8),w=d(h,S,7),c=k^C^w;if(c<0)c+=4294967296;return c}function f(h,S){var k=s(h,S,1),C=s(h,S,8),w=b(h,S,7),c=k^C^w;if(c<0)c+=4294967296;return c}function p(h,S){var k=l(h,S,19),C=l(S,h,29),w=d(h,S,6),c=k^C^w;if(c<0)c+=4294967296;return c}function x(h,S){var k=s(h,S,19),C=s(S,h,29),w=b(h,S,6),c=k^C^w;if(c<0)c+=4294967296;return c}}),Uge=ct((e,t)=>{var r=bs(),a=bY();function n(){if(!(this instanceof n))return new n;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(n,a),t.exports=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(l){if(l==="hex")return r.toHex32(this.h.slice(0,12),"big");else return r.split32(this.h.slice(0,12),"big")}}),jge=ct((e)=>{e.sha1=$ge(),e.sha224=Bge(),e.sha256=gY(),e.sha384=Uge(),e.sha512=bY()}),Hge=ct((e)=>{var t=bs(),r=G0(),a=t.rotl32,n=t.sum32,l=t.sum32_3,s=t.sum32_4,d=r.BlockHash;function b(){if(!(this instanceof b))return new b;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}t.inherits(b,d),e.ripemd160=b,b.blockSize=512,b.outSize=160,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(N,P){var j=this.h[0],Z=this.h[1],V=this.h[2],W=this.h[3],J=this.h[4],ve=j,ce=Z,Me=V,Y=W,Te=J;for(var f=0;f<80;f++){var p=n(a(s(j,y(f,Z,V,W),N[_[f]+P],v(f)),I[f]),J);j=J,J=W,W=a(V,10),V=Z,Z=p,p=n(a(s(ve,y(79-f,ce,Me,Y),N[A[f]+P],g(f)),O[f]),Te),ve=Te,Te=Y,Y=a(Me,10),Me=ce,ce=p}p=l(this.h[1],V,Y),this.h[1]=l(this.h[2],W,Te),this.h[2]=l(this.h[3],J,ve),this.h[3]=l(this.h[4],j,ce),this.h[4]=l(this.h[0],Z,Me),this.h[0]=p},b.prototype._digest=function(N){if(N==="hex")return t.toHex32(this.h,"little");else return t.split32(this.h,"little")};function y(N,P,j,Z){if(N<=15)return P^j^Z;else if(N<=31)return P&j|~P&Z;else if(N<=47)return(P|~j)^Z;else if(N<=63)return P&Z|j&~Z;else return P^(j|~Z)}function v(N){if(N<=15)return 0;else if(N<=31)return 1518500249;else if(N<=47)return 1859775393;else if(N<=63)return 2400959708;else return 2840853838}function g(N){if(N<=15)return 1352829926;else if(N<=31)return 1548603684;else if(N<=47)return 1836072691;else if(N<=63)return 2053994217;else return 0}var _=[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],A=[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],I=[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],O=[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]}),Zge=ct((e,t)=>{var r=bs(),a=Tu();function n(l,s,d){if(!(this instanceof n))return new n(l,s,d);this.Hash=l,this.blockSize=l.blockSize/8,this.outSize=l.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(s,d))}t.exports=n,n.prototype._init=function(l){if(l.length>this.blockSize)l=new this.Hash().update(l).digest();a(l.length<=this.blockSize);for(var s=l.length;s<this.blockSize;s++)l.push(0);for(s=0;s<l.length;s++)l[s]^=54;this.inner=new this.Hash().update(l);for(s=0;s<l.length;s++)l[s]^=106;this.outer=new this.Hash().update(l)},n.prototype.update=function(l,s){return this.inner.update(l,s),this},n.prototype.digest=function(l){return this.outer.update(this.inner.digest()),this.outer.digest(l)}}),eC=ct((e)=>{var t=e;t.utils=bs(),t.common=G0(),t.sha=jge(),t.ripemd=Hge(),t.hmac=Zge(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}),Fge=ct((e,t)=>{t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}),tC=ct((e)=>{var t=e,r=eC(),a=pY(),n=na(),l=n.assert;function s(y){if(y.type==="short")this.curve=new a.short(y);else if(y.type==="edwards")this.curve=new a.edwards(y);else this.curve=new a.mont(y);this.g=this.curve.g,this.n=this.curve.n,this.hash=y.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=s;function d(y,v){Object.defineProperty(t,y,{configurable:!0,enumerable:!0,get:function(){var g=new s(v);return Object.defineProperty(t,y,{configurable:!0,enumerable:!0,value:g}),g}})}d("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:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("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:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("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:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("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:r.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"]}),d("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:r.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"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),d("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:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var b;try{b=Fge()}catch(y){b=void 0}d("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:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",b]})}),qge=ct((e,t)=>{var r=eC(),a=dY(),n=Tu();function l(s){if(!(this instanceof l))return new l(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var d=a.toArray(s.entropy,s.entropyEnc||"hex"),b=a.toArray(s.nonce,s.nonceEnc||"hex"),y=a.toArray(s.pers,s.persEnc||"hex");n(d.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(d,b,y)}t.exports=l,l.prototype._init=function(s,d,b){var y=s.concat(d).concat(b);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var v=0;v<this.V.length;v++)this.K[v]=0,this.V[v]=1;this._update(y),this._reseed=1,this.reseedInterval=281474976710656},l.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},l.prototype._update=function(s){var d=this._hmac().update(this.V).update([0]);if(s)d=d.update(s);if(this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),!s)return;this.K=this._hmac().update(this.V).update([1]).update(s).digest(),this.V=this._hmac().update(this.V).digest()},l.prototype.reseed=function(s,d,b,y){if(typeof d!=="string")y=b,b=d,d=null;s=a.toArray(s,d),b=a.toArray(b,y),n(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(b||[])),this._reseed=1},l.prototype.generate=function(s,d,b,y){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof d!=="string")y=b,b=d,d=null;if(b)b=a.toArray(b,y||"hex"),this._update(b);var v=[];while(v.length<s)this.V=this._hmac().update(this.V).digest(),v=v.concat(this.V);var g=v.slice(0,s);return this._update(b),this._reseed++,a.encode(g,d)}}),Gge=ct((e,t)=>{var r=sl(),a=na(),n=a.assert;function l(s,d){if(this.ec=s,this.priv=null,this.pub=null,d.priv)this._importPrivate(d.priv,d.privEnc);if(d.pub)this._importPublic(d.pub,d.pubEnc)}t.exports=l,l.fromPublic=function(s,d,b){if(d instanceof l)return d;return new l(s,{pub:d,pubEnc:b})},l.fromPrivate=function(s,d,b){if(d instanceof l)return d;return new l(s,{priv:d,privEnc:b})},l.prototype.validate=function(){var s=this.getPublic();if(s.isInfinity())return{result:!1,reason:"Invalid public key"};if(!s.validate())return{result:!1,reason:"Public key is not a point"};if(!s.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},l.prototype.getPublic=function(s,d){if(typeof s==="string")d=s,s=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!d)return this.pub;return this.pub.encode(d,s)},l.prototype.getPrivate=function(s){if(s==="hex")return this.priv.toString(16,2);else return this.priv},l.prototype._importPrivate=function(s,d){this.priv=new r(s,d||16),this.priv=this.priv.umod(this.ec.curve.n)},l.prototype._importPublic=function(s,d){if(s.x||s.y){if(this.ec.curve.type==="mont")n(s.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")n(s.x&&s.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(s.x,s.y);return}this.pub=this.ec.curve.decodePoint(s,d)},l.prototype.derive=function(s){if(!s.validate())n(s.validate(),"public point not validated");return s.mul(this.priv).getX()},l.prototype.sign=function(s,d,b){return this.ec.sign(s,this,d,b)},l.prototype.verify=function(s,d,b){return this.ec.verify(s,d,this,void 0,b)},l.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),Vge=ct((e,t)=>{var r=sl(),a=na(),n=a.assert;function l(v,g){if(v instanceof l)return v;if(this._importDER(v,g))return;if(n(v.r&&v.s,"Signature without r or s"),this.r=new r(v.r,16),this.s=new r(v.s,16),v.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=v.recoveryParam}t.exports=l;function s(){this.place=0}function d(v,g){var _=v[g.place++];if(!(_&128))return _;var A=_&15;if(A===0||A>4)return!1;if(v[g.place]===0)return!1;var I=0;for(var O=0,N=g.place;O<A;O++,N++)I<<=8,I|=v[N],I>>>=0;if(I<=127)return!1;return g.place=N,I}function b(v){var g=0,_=v.length-1;while(!v[g]&&!(v[g+1]&128)&&g<_)g++;if(g===0)return v;return v.slice(g)}l.prototype._importDER=function(v,g){v=a.toArray(v,g);var _=new s;if(v[_.place++]!==48)return!1;var A=d(v,_);if(A===!1)return!1;if(A+_.place!==v.length)return!1;if(v[_.place++]!==2)return!1;var I=d(v,_);if(I===!1)return!1;if((v[_.place]&128)!==0)return!1;var O=v.slice(_.place,I+_.place);if(_.place+=I,v[_.place++]!==2)return!1;var N=d(v,_);if(N===!1)return!1;if(v.length!==N+_.place)return!1;if((v[_.place]&128)!==0)return!1;var P=v.slice(_.place,N+_.place);if(O[0]===0)if(O[1]&128)O=O.slice(1);else return!1;if(P[0]===0)if(P[1]&128)P=P.slice(1);else return!1;return this.r=new r(O),this.s=new r(P),this.recoveryParam=null,!0};function y(v,g){if(g<128){v.push(g);return}var _=1+(Math.log(g)/Math.LN2>>>3);v.push(_|128);while(--_)v.push(g>>>(_<<3)&255);v.push(g)}l.prototype.toDER=function(v){var g=this.r.toArray(),_=this.s.toArray();if(g[0]&128)g=[0].concat(g);if(_[0]&128)_=[0].concat(_);g=b(g),_=b(_);while(!_[0]&&!(_[1]&128))_=_.slice(1);var A=[2];y(A,g.length),A=A.concat(g),A.push(2),y(A,_.length);var I=A.concat(_),O=[48];return y(O,I.length),O=O.concat(I),a.encode(O,v)}}),Yge=ct((e,t)=>{var r=sl(),a=qge(),n=na(),l=tC(),s=hY(),d=n.assert,b=Gge(),y=Vge();function v(g){if(!(this instanceof v))return new v(g);if(typeof g==="string")d(Object.prototype.hasOwnProperty.call(l,g),"Unknown curve "+g),g=l[g];if(g instanceof l.PresetCurve)g={curve:g};this.curve=g.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=g.curve.g,this.g.precompute(g.curve.n.bitLength()+1),this.hash=g.hash||g.curve.hash}t.exports=v,v.prototype.keyPair=function(g){return new b(this,g)},v.prototype.keyFromPrivate=function(g,_){return b.fromPrivate(this,g,_)},v.prototype.keyFromPublic=function(g,_){return b.fromPublic(this,g,_)},v.prototype.genKeyPair=function(g){if(!g)g={};var _=new a({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||s(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),A=this.n.byteLength(),I=this.n.sub(new r(2));for(;;){var O=new r(_.generate(A));if(O.cmp(I)>0)continue;return O.iaddn(1),this.keyFromPrivate(O)}},v.prototype._truncateToN=function(g,_,A){var I;if(r.isBN(g)||typeof g==="number")g=new r(g,16),I=g.byteLength();else if(typeof g==="object")I=g.length,g=new r(g,16);else{var O=g.toString();I=O.length+1>>>1,g=new r(O,16)}if(typeof A!=="number")A=I*8;var N=A-this.n.bitLength();if(N>0)g=g.ushrn(N);if(!_&&g.cmp(this.n)>=0)return g.sub(this.n);else return g},v.prototype.sign=function(g,_,A,I){if(typeof A==="object")I=A,A=null;if(!I)I={};if(typeof g!=="string"&&typeof g!=="number"&&!r.isBN(g)){d(typeof g==="object"&&g&&typeof g.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),d(g.length>>>0===g.length);for(var O=0;O<g.length;O++)d((g[O]&255)===g[O])}_=this.keyFromPrivate(_,A),g=this._truncateToN(g,!1,I.msgBitLength),d(!g.isNeg(),"Can not sign a negative message");var N=this.n.byteLength(),P=_.getPrivate().toArray("be",N),j=g.toArray("be",N);d(new r(j).eq(g),"Can not sign message");var Z=new a({hash:this.hash,entropy:P,nonce:j,pers:I.pers,persEnc:I.persEnc||"utf8"}),V=this.n.sub(new r(1));for(var W=0;;W++){var J=I.k?I.k(W):new r(Z.generate(this.n.byteLength()));if(J=this._truncateToN(J,!0),J.cmpn(1)<=0||J.cmp(V)>=0)continue;var ve=this.g.mul(J);if(ve.isInfinity())continue;var ce=ve.getX(),Me=ce.umod(this.n);if(Me.cmpn(0)===0)continue;var Y=J.invm(this.n).mul(Me.mul(_.getPrivate()).iadd(g));if(Y=Y.umod(this.n),Y.cmpn(0)===0)continue;var Te=(ve.getY().isOdd()?1:0)|(ce.cmp(Me)!==0?2:0);if(I.canonical&&Y.cmp(this.nh)>0)Y=this.n.sub(Y),Te^=1;return new y({r:Me,s:Y,recoveryParam:Te})}},v.prototype.verify=function(g,_,A,I,O){if(!O)O={};g=this._truncateToN(g,!1,O.msgBitLength),A=this.keyFromPublic(A,I),_=new y(_,"hex");var{r:N,s:P}=_;if(N.cmpn(1)<0||N.cmp(this.n)>=0)return!1;if(P.cmpn(1)<0||P.cmp(this.n)>=0)return!1;var j=P.invm(this.n),Z=j.mul(g).umod(this.n),V=j.mul(N).umod(this.n),W;if(!this.curve._maxwellTrick){if(W=this.g.mulAdd(Z,A.getPublic(),V),W.isInfinity())return!1;return W.getX().umod(this.n).cmp(N)===0}if(W=this.g.jmulAdd(Z,A.getPublic(),V),W.isInfinity())return!1;return W.eqXToP(N)},v.prototype.recoverPubKey=function(g,_,A,I){d((3&A)===A,"The recovery param is more than two bits"),_=new y(_,I);var O=this.n,N=new r(g),P=_.r,j=_.s,Z=A&1,V=A>>1;if(P.cmp(this.curve.p.umod(this.curve.n))>=0&&V)throw Error("Unable to find sencond key candinate");if(V)P=this.curve.pointFromX(P.add(this.curve.n),Z);else P=this.curve.pointFromX(P,Z);var W=_.r.invm(O),J=O.sub(N).mul(W).umod(O),ve=j.mul(W).umod(O);return this.g.mulAdd(J,P,ve)},v.prototype.getKeyRecoveryParam=function(g,_,A,I){if(_=new y(_,I),_.recoveryParam!==null)return _.recoveryParam;for(var O=0;O<4;O++){var N;try{N=this.recoverPubKey(g,_,O)}catch(P){continue}if(N.eq(A))return O}throw Error("Unable to find valid recovery factor")}}),Kge=ct((e,t)=>{var r=na(),a=r.assert,n=r.parseBytes,l=r.cachedProperty;function s(d,b){if(this.eddsa=d,this._secret=n(b.secret),d.isPoint(b.pub))this._pub=b.pub;else this._pubBytes=n(b.pub)}s.fromPublic=function(d,b){if(b instanceof s)return b;return new s(d,{pub:b})},s.fromSecret=function(d,b){if(b instanceof s)return b;return new s(d,{secret:b})},s.prototype.secret=function(){return this._secret},l(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),l(s,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),l(s,"privBytes",function(){var d=this.eddsa,b=this.hash(),y=d.encodingLength-1,v=b.slice(0,d.encodingLength);return v[0]&=248,v[y]&=127,v[y]|=64,v}),l(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),l(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),l(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(d){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},s.prototype.verify=function(d,b){return this.eddsa.verify(d,b,this)},s.prototype.getSecret=function(d){return a(this._secret,"KeyPair is public only"),r.encode(this.secret(),d)},s.prototype.getPublic=function(d){return r.encode(this.pubBytes(),d)},t.exports=s}),Wge=ct((e,t)=>{var r=sl(),a=na(),n=a.assert,l=a.cachedProperty,s=a.parseBytes;function d(b,y){if(this.eddsa=b,typeof y!=="object")y=s(y);if(Array.isArray(y))n(y.length===b.encodingLength*2,"Signature has invalid size"),y={R:y.slice(0,b.encodingLength),S:y.slice(b.encodingLength)};if(n(y.R&&y.S,"Signature without R or S"),b.isPoint(y.R))this._R=y.R;if(y.S instanceof r)this._S=y.S;this._Rencoded=Array.isArray(y.R)?y.R:y.Rencoded,this._Sencoded=Array.isArray(y.S)?y.S:y.Sencoded}l(d,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),l(d,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),l(d,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),l(d,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},t.exports=d}),Xge=ct((e,t)=>{var r=eC(),a=tC(),n=na(),l=n.assert,s=n.parseBytes,d=Kge(),b=Wge();function y(v){if(l(v==="ed25519","only tested with ed25519 so far"),!(this instanceof y))return new y(v);v=a[v].curve,this.curve=v,this.g=v.g,this.g.precompute(v.n.bitLength()+1),this.pointClass=v.point().constructor,this.encodingLength=Math.ceil(v.n.bitLength()/8),this.hash=r.sha512}t.exports=y,y.prototype.sign=function(v,g){v=s(v);var _=this.keyFromSecret(g),A=this.hashInt(_.messagePrefix(),v),I=this.g.mul(A),O=this.encodePoint(I),N=this.hashInt(O,_.pubBytes(),v).mul(_.priv()),P=A.add(N).umod(this.curve.n);return this.makeSignature({R:I,S:P,Rencoded:O})},y.prototype.verify=function(v,g,_){if(v=s(v),g=this.makeSignature(g),g.S().gte(g.eddsa.curve.n)||g.S().isNeg())return!1;var A=this.keyFromPublic(_),I=this.hashInt(g.Rencoded(),A.pubBytes(),v),O=this.g.mul(g.S()),N=g.R().add(A.pub().mul(I));return N.eq(O)},y.prototype.hashInt=function(){var v=this.hash();for(var g=0;g<arguments.length;g++)v.update(arguments[g]);return n.intFromLE(v.digest()).umod(this.curve.n)},y.prototype.keyFromPublic=function(v){return d.fromPublic(this,v)},y.prototype.keyFromSecret=function(v){return d.fromSecret(this,v)},y.prototype.makeSignature=function(v){if(v instanceof b)return v;return new b(this,v)},y.prototype.encodePoint=function(v){var g=v.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=v.getX().isOdd()?128:0,g},y.prototype.decodePoint=function(v){v=n.parseBytes(v);var g=v.length-1,_=v.slice(0,g).concat(v[g]&-129),A=(v[g]&128)!==0,I=n.intFromLE(_);return this.curve.pointFromY(I,A)},y.prototype.encodeInt=function(v){return v.toArray("le",this.encodingLength)},y.prototype.decodeInt=function(v){return n.intFromLE(v)},y.prototype.isPoint=function(v){return v instanceof this.pointClass}}),Jge=ct((e)=>{var t=e;t.version=Nge().version,t.utils=na(),t.rand=hY(),t.curve=pY(),t.curves=tC(),t.ec=Yge(),t.eddsa=Xge()}),Qge=ct((e,t)=>{(function(r,a){function n(f,p){if(!f)throw Error(p||"Assertion failed")}function l(f,p){f.super_=p;var x=function(){};x.prototype=p.prototype,f.prototype=new x,f.prototype.constructor=f}function s(f,p,x){if(s.isBN(f))return f;if(this.negative=0,this.words=null,this.length=0,this.red=null,f!==null){if(p==="le"||p==="be")x=p,p=10;this._init(f||0,p||10,x||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(f){}s.isBN=function(f){if(f instanceof s)return!0;return f!==null&&typeof f==="object"&&f.constructor.wordSize===s.wordSize&&Array.isArray(f.words)},s.max=function(f,p){if(f.cmp(p)>0)return f;return p},s.min=function(f,p){if(f.cmp(p)<0)return f;return p},s.prototype._init=function(f,p,x){if(typeof f==="number")return this._initNumber(f,p,x);if(typeof f==="object")return this._initArray(f,p,x);if(p==="hex")p=16;n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var h=0;if(f[0]==="-")h++,this.negative=1;if(h<f.length){if(p===16)this._parseHex(f,h,x);else if(this._parseBase(f,p,h),x==="le")this._initArray(this.toArray(),p,x)}},s.prototype._initNumber=function(f,p,x){if(f<0)this.negative=1,f=-f;if(f<67108864)this.words=[f&67108863],this.length=1;else if(f<4503599627370496)this.words=[f&67108863,f/67108864&67108863],this.length=2;else n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3;if(x!=="le")return;this._initArray(this.toArray(),p,x)},s.prototype._initArray=function(f,p,x){if(n(typeof f.length==="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S,k,C=0;if(x==="be"){for(h=f.length-1,S=0;h>=0;h-=3)if(k=f[h]|f[h-1]<<8|f[h-2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}else if(x==="le"){for(h=0,S=0;h<f.length;h+=3)if(k=f[h]|f[h+1]<<8|f[h+2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}return this.strip()};function b(f,p){var x=f.charCodeAt(p);if(x>=65&&x<=70)return x-55;else if(x>=97&&x<=102)return x-87;else return x-48&15}function y(f,p,x){var h=b(f,x);if(x-1>=p)h|=b(f,x-1)<<4;return h}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S=0,k=0,C;if(x==="be")for(h=f.length-1;h>=p;h-=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8;else{var w=f.length-p;for(h=w%2===0?p+1:p;h<f.length;h+=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8}this.strip()};function v(f,p,x,h){var S=0,k=Math.min(f.length,x);for(var C=p;C<k;C++){var w=f.charCodeAt(C)-48;if(S*=h,w>=49)S+=w-49+10;else if(w>=17)S+=w-17+10;else S+=w}return S}s.prototype._parseBase=function(f,p,x){this.words=[0],this.length=1;for(var h=0,S=1;S<=67108863;S*=p)h++;h--,S=S/p|0;var k=f.length-x,C=k%h,w=Math.min(k,k-C)+x,c=0;for(var T=x;T<w;T+=h)if(c=v(f,T,T+h,p),this.imuln(S),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(C!==0){var z=1;c=v(f,T,f.length,p);for(T=0;T<C;T++)z*=p;if(this.imuln(z),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this.strip()},s.prototype.copy=function(f){f.words=Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red},s.prototype.clone=function(){var f=new s(null);return this.copy(f),f},s.prototype._expand=function(f){while(this.length<f)this.words[this.length++]=0;return this},s.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],_=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";var h=0,S=0;for(var k=0;k<this.length;k++){var C=this.words[k],w=((C<<h|S)&16777215).toString(16);if(S=C>>>24-h&16777215,h+=2,h>=26)h-=26,k--;if(S!==0||k!==this.length-1)x=g[6-w.length]+w+x;else x=w+x}if(S!==0)x=S.toString(16)+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}if(f===(f|0)&&f>=2&&f<=36){var c=_[f],T=A[f];x="";var z=this.clone();z.negative=0;while(!z.isZero()){var R=z.modn(T).toString(f);if(z=z.idivn(T),!z.isZero())x=g[c-R.length]+R+x;else x=R+x}if(this.isZero())x="0"+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];if(this.length===2)f+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)f+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(f,p){return n(typeof d<"u"),this.toArrayLike(d,f,p)},s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)},s.prototype.toArrayLike=function(f,p,x){var h=this.byteLength(),S=x||Math.max(1,h);n(h<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var k=p==="le",C=new f(S),w,c,T=this.clone();if(!k){for(c=0;c<S-h;c++)C[c]=0;for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[S-c-1]=w}else{for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[c]=w;for(;c<S;c++)C[c]=0}return C},Math.clz32)s.prototype._countBits=function(f){return 32-Math.clz32(f)};else s.prototype._countBits=function(f){var p=f,x=0;if(p>=4096)x+=13,p>>>=13;if(p>=64)x+=7,p>>>=7;if(p>=8)x+=4,p>>>=4;if(p>=2)x+=2,p>>>=2;return x+p};s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;if((p&8191)===0)x+=13,p>>>=13;if((p&127)===0)x+=7,p>>>=7;if((p&15)===0)x+=4,p>>>=4;if((p&3)===0)x+=2,p>>>=2;if((p&1)===0)x++;return x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(f){var p=Array(f.bitLength());for(var x=0;x<p.length;x++){var h=x/26|0,S=x%26;p[x]=(f.words[h]&1<<S)>>>S}return p}s.prototype.zeroBits=function(){if(this.isZero())return 0;var f=0;for(var p=0;p<this.length;p++){var x=this._zeroBits(this.words[p]);if(f+=x,x!==26)break}return f},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(f){if(this.negative!==0)return this.abs().inotn(f).iaddn(1);return this.clone()},s.prototype.fromTwos=function(f){if(this.testn(f-1))return this.notn(f).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(f){while(this.length<f.length)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this.strip()},s.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},s.prototype.or=function(f){if(this.length>f.length)return this.clone().ior(f);return f.clone().ior(this)},s.prototype.uor=function(f){if(this.length>f.length)return this.clone().iuor(f);return f.clone().iuor(this)},s.prototype.iuand=function(f){var p;if(this.length>f.length)p=f;else p=this;for(var x=0;x<p.length;x++)this.words[x]=this.words[x]&f.words[x];return this.length=p.length,this.strip()},s.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},s.prototype.and=function(f){if(this.length>f.length)return this.clone().iand(f);return f.clone().iand(this)},s.prototype.uand=function(f){if(this.length>f.length)return this.clone().iuand(f);return f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;if(this.length>f.length)p=this,x=f;else p=f,x=this;for(var h=0;h<x.length;h++)this.words[h]=p.words[h]^x.words[h];if(this!==p)for(;h<p.length;h++)this.words[h]=p.words[h];return this.length=p.length,this.strip()},s.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},s.prototype.xor=function(f){if(this.length>f.length)return this.clone().ixor(f);return f.clone().ixor(this)},s.prototype.uxor=function(f){if(this.length>f.length)return this.clone().iuxor(f);return f.clone().iuxor(this)},s.prototype.inotn=function(f){n(typeof f==="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;if(this._expand(p),x>0)p--;for(var h=0;h<p;h++)this.words[h]=~this.words[h]&67108863;if(x>0)this.words[h]=~this.words[h]&67108863>>26-x;return this.strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){n(typeof f==="number"&&f>=0);var x=f/26|0,h=f%26;if(this._expand(x+1),p)this.words[x]=this.words[x]|1<<h;else this.words[x]=this.words[x]&~(1<<h);return this.strip()},s.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();else if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var x,h;if(this.length>f.length)x=this,h=f;else x=f,h=this;var S=0;for(var k=0;k<h.length;k++)p=(x.words[k]|0)+(h.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;for(;S!==0&&k<x.length;k++)p=(x.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;if(this.length=x.length,S!==0)this.words[this.length]=S,this.length++;else if(x!==this)for(;k<x.length;k++)this.words[k]=x.words[k];return this},s.prototype.add=function(f){var p;if(f.negative!==0&&this.negative===0)return f.negative=0,p=this.sub(f),f.negative^=1,p;else if(f.negative===0&&this.negative!==0)return this.negative=0,p=f.sub(this),this.negative=1,p;if(this.length>f.length)return this.clone().iadd(f);return f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,S;if(x>0)h=this,S=f;else h=f,S=this;var k=0;for(var C=0;C<S.length;C++)p=(h.words[C]|0)-(S.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;for(;k!==0&&C<h.length;C++)p=(h.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;if(k===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];if(this.length=Math.max(this.length,C),h!==this)this.negative=1;return this.strip()},s.prototype.sub=function(f){return this.clone().isub(f)};function O(f,p,x){x.negative=p.negative^f.negative;var h=f.length+p.length|0;x.length=h,h=h-1|0;var S=f.words[0]|0,k=p.words[0]|0,C=S*k,w=C&67108863,c=C/67108864|0;x.words[0]=w;for(var T=1;T<h;T++){var z=c>>>26,R=c&67108863,q=Math.min(T,p.length-1);for(var Q=Math.max(0,T-f.length+1);Q<=q;Q++){var ie=T-Q|0;S=f.words[ie]|0,k=p.words[Q]|0,C=S*k+R,z+=C/67108864|0,R=C&67108863}x.words[T]=R|0,c=z|0}if(c!==0)x.words[T]=c|0;else x.length--;return x.strip()}var N=function(f,p,x){var h=f.words,S=p.words,k=x.words,C=0,w,c,T,z=h[0]|0,R=z&8191,q=z>>>13,Q=h[1]|0,ie=Q&8191,me=Q>>>13,Je=h[2]|0,ke=Je&8191,fe=Je>>>13,be=h[3]|0,Ae=be&8191,Be=be>>>13,vt=h[4]|0,oe=vt&8191,se=vt>>>13,Ke=h[5]|0,he=Ke&8191,Ie=Ke>>>13,Qe=h[6]|0,le=Qe&8191,Ee=Qe>>>13,gt=h[7]|0,De=gt&8191,We=gt>>>13,Ye=h[8]|0,we=Ye&8191,Fe=Ye>>>13,L=h[9]|0,ae=L&8191,_e=L>>>13,ot=S[0]|0,xe=ot&8191,K=ot>>>13,Ge=S[1]|0,F=Ge&8191,te=Ge>>>13,Pe=S[2]|0,pe=Pe&8191,de=Pe>>>13,at=S[3]|0,$e=at&8191,qe=at>>>13,ht=S[4]|0,tt=ht&8191,nt=ht>>>13,Er=S[5]|0,bt=Er&8191,re=Er>>>13,ye=S[6]|0,Ze=ye&8191,Ve=ye>>>13,Dt=S[7]|0,mt=Dt&8191,yt=Dt>>>13,Qr=S[8]|0,_t=Qr&8191,xt=Qr>>>13,zr=S[9]|0,wt=zr&8191,St=zr>>>13;x.negative=f.negative^p.negative,x.length=19,w=Math.imul(R,xe),c=Math.imul(R,K),c=c+Math.imul(q,xe)|0,T=Math.imul(q,K);var sn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(ie,xe),c=Math.imul(ie,K),c=c+Math.imul(me,xe)|0,T=Math.imul(me,K),w=w+Math.imul(R,F)|0,c=c+Math.imul(R,te)|0,c=c+Math.imul(q,F)|0,T=T+Math.imul(q,te)|0;var ir=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(ke,xe),c=Math.imul(ke,K),c=c+Math.imul(fe,xe)|0,T=Math.imul(fe,K),w=w+Math.imul(ie,F)|0,c=c+Math.imul(ie,te)|0,c=c+Math.imul(me,F)|0,T=T+Math.imul(me,te)|0,w=w+Math.imul(R,pe)|0,c=c+Math.imul(R,de)|0,c=c+Math.imul(q,pe)|0,T=T+Math.imul(q,de)|0;var nr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ae,xe),c=Math.imul(Ae,K),c=c+Math.imul(Be,xe)|0,T=Math.imul(Be,K),w=w+Math.imul(ke,F)|0,c=c+Math.imul(ke,te)|0,c=c+Math.imul(fe,F)|0,T=T+Math.imul(fe,te)|0,w=w+Math.imul(ie,pe)|0,c=c+Math.imul(ie,de)|0,c=c+Math.imul(me,pe)|0,T=T+Math.imul(me,de)|0,w=w+Math.imul(R,$e)|0,c=c+Math.imul(R,qe)|0,c=c+Math.imul(q,$e)|0,T=T+Math.imul(q,qe)|0;var Lr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,w=Math.imul(oe,xe),c=Math.imul(oe,K),c=c+Math.imul(se,xe)|0,T=Math.imul(se,K),w=w+Math.imul(Ae,F)|0,c=c+Math.imul(Ae,te)|0,c=c+Math.imul(Be,F)|0,T=T+Math.imul(Be,te)|0,w=w+Math.imul(ke,pe)|0,c=c+Math.imul(ke,de)|0,c=c+Math.imul(fe,pe)|0,T=T+Math.imul(fe,de)|0,w=w+Math.imul(ie,$e)|0,c=c+Math.imul(ie,qe)|0,c=c+Math.imul(me,$e)|0,T=T+Math.imul(me,qe)|0,w=w+Math.imul(R,tt)|0,c=c+Math.imul(R,nt)|0,c=c+Math.imul(q,tt)|0,T=T+Math.imul(q,nt)|0;var Tr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(he,xe),c=Math.imul(he,K),c=c+Math.imul(Ie,xe)|0,T=Math.imul(Ie,K),w=w+Math.imul(oe,F)|0,c=c+Math.imul(oe,te)|0,c=c+Math.imul(se,F)|0,T=T+Math.imul(se,te)|0,w=w+Math.imul(Ae,pe)|0,c=c+Math.imul(Ae,de)|0,c=c+Math.imul(Be,pe)|0,T=T+Math.imul(Be,de)|0,w=w+Math.imul(ke,$e)|0,c=c+Math.imul(ke,qe)|0,c=c+Math.imul(fe,$e)|0,T=T+Math.imul(fe,qe)|0,w=w+Math.imul(ie,tt)|0,c=c+Math.imul(ie,nt)|0,c=c+Math.imul(me,tt)|0,T=T+Math.imul(me,nt)|0,w=w+Math.imul(R,bt)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(q,bt)|0,T=T+Math.imul(q,re)|0;var wn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,w=Math.imul(le,xe),c=Math.imul(le,K),c=c+Math.imul(Ee,xe)|0,T=Math.imul(Ee,K),w=w+Math.imul(he,F)|0,c=c+Math.imul(he,te)|0,c=c+Math.imul(Ie,F)|0,T=T+Math.imul(Ie,te)|0,w=w+Math.imul(oe,pe)|0,c=c+Math.imul(oe,de)|0,c=c+Math.imul(se,pe)|0,T=T+Math.imul(se,de)|0,w=w+Math.imul(Ae,$e)|0,c=c+Math.imul(Ae,qe)|0,c=c+Math.imul(Be,$e)|0,T=T+Math.imul(Be,qe)|0,w=w+Math.imul(ke,tt)|0,c=c+Math.imul(ke,nt)|0,c=c+Math.imul(fe,tt)|0,T=T+Math.imul(fe,nt)|0,w=w+Math.imul(ie,bt)|0,c=c+Math.imul(ie,re)|0,c=c+Math.imul(me,bt)|0,T=T+Math.imul(me,re)|0,w=w+Math.imul(R,Ze)|0,c=c+Math.imul(R,Ve)|0,c=c+Math.imul(q,Ze)|0,T=T+Math.imul(q,Ve)|0;var En=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(En>>>26)|0,En&=67108863,w=Math.imul(De,xe),c=Math.imul(De,K),c=c+Math.imul(We,xe)|0,T=Math.imul(We,K),w=w+Math.imul(le,F)|0,c=c+Math.imul(le,te)|0,c=c+Math.imul(Ee,F)|0,T=T+Math.imul(Ee,te)|0,w=w+Math.imul(he,pe)|0,c=c+Math.imul(he,de)|0,c=c+Math.imul(Ie,pe)|0,T=T+Math.imul(Ie,de)|0,w=w+Math.imul(oe,$e)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(se,$e)|0,T=T+Math.imul(se,qe)|0,w=w+Math.imul(Ae,tt)|0,c=c+Math.imul(Ae,nt)|0,c=c+Math.imul(Be,tt)|0,T=T+Math.imul(Be,nt)|0,w=w+Math.imul(ke,bt)|0,c=c+Math.imul(ke,re)|0,c=c+Math.imul(fe,bt)|0,T=T+Math.imul(fe,re)|0,w=w+Math.imul(ie,Ze)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(me,Ze)|0,T=T+Math.imul(me,Ve)|0,w=w+Math.imul(R,mt)|0,c=c+Math.imul(R,yt)|0,c=c+Math.imul(q,mt)|0,T=T+Math.imul(q,yt)|0;var Tn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(we,xe),c=Math.imul(we,K),c=c+Math.imul(Fe,xe)|0,T=Math.imul(Fe,K),w=w+Math.imul(De,F)|0,c=c+Math.imul(De,te)|0,c=c+Math.imul(We,F)|0,T=T+Math.imul(We,te)|0,w=w+Math.imul(le,pe)|0,c=c+Math.imul(le,de)|0,c=c+Math.imul(Ee,pe)|0,T=T+Math.imul(Ee,de)|0,w=w+Math.imul(he,$e)|0,c=c+Math.imul(he,qe)|0,c=c+Math.imul(Ie,$e)|0,T=T+Math.imul(Ie,qe)|0,w=w+Math.imul(oe,tt)|0,c=c+Math.imul(oe,nt)|0,c=c+Math.imul(se,tt)|0,T=T+Math.imul(se,nt)|0,w=w+Math.imul(Ae,bt)|0,c=c+Math.imul(Ae,re)|0,c=c+Math.imul(Be,bt)|0,T=T+Math.imul(Be,re)|0,w=w+Math.imul(ke,Ze)|0,c=c+Math.imul(ke,Ve)|0,c=c+Math.imul(fe,Ze)|0,T=T+Math.imul(fe,Ve)|0,w=w+Math.imul(ie,mt)|0,c=c+Math.imul(ie,yt)|0,c=c+Math.imul(me,mt)|0,T=T+Math.imul(me,yt)|0,w=w+Math.imul(R,_t)|0,c=c+Math.imul(R,xt)|0,c=c+Math.imul(q,_t)|0,T=T+Math.imul(q,xt)|0;var kn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,w=Math.imul(ae,xe),c=Math.imul(ae,K),c=c+Math.imul(_e,xe)|0,T=Math.imul(_e,K),w=w+Math.imul(we,F)|0,c=c+Math.imul(we,te)|0,c=c+Math.imul(Fe,F)|0,T=T+Math.imul(Fe,te)|0,w=w+Math.imul(De,pe)|0,c=c+Math.imul(De,de)|0,c=c+Math.imul(We,pe)|0,T=T+Math.imul(We,de)|0,w=w+Math.imul(le,$e)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(Ee,$e)|0,T=T+Math.imul(Ee,qe)|0,w=w+Math.imul(he,tt)|0,c=c+Math.imul(he,nt)|0,c=c+Math.imul(Ie,tt)|0,T=T+Math.imul(Ie,nt)|0,w=w+Math.imul(oe,bt)|0,c=c+Math.imul(oe,re)|0,c=c+Math.imul(se,bt)|0,T=T+Math.imul(se,re)|0,w=w+Math.imul(Ae,Ze)|0,c=c+Math.imul(Ae,Ve)|0,c=c+Math.imul(Be,Ze)|0,T=T+Math.imul(Be,Ve)|0,w=w+Math.imul(ke,mt)|0,c=c+Math.imul(ke,yt)|0,c=c+Math.imul(fe,mt)|0,T=T+Math.imul(fe,yt)|0,w=w+Math.imul(ie,_t)|0,c=c+Math.imul(ie,xt)|0,c=c+Math.imul(me,_t)|0,T=T+Math.imul(me,xt)|0,w=w+Math.imul(R,wt)|0,c=c+Math.imul(R,St)|0,c=c+Math.imul(q,wt)|0,T=T+Math.imul(q,St)|0;var An=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(ae,F),c=Math.imul(ae,te),c=c+Math.imul(_e,F)|0,T=Math.imul(_e,te),w=w+Math.imul(we,pe)|0,c=c+Math.imul(we,de)|0,c=c+Math.imul(Fe,pe)|0,T=T+Math.imul(Fe,de)|0,w=w+Math.imul(De,$e)|0,c=c+Math.imul(De,qe)|0,c=c+Math.imul(We,$e)|0,T=T+Math.imul(We,qe)|0,w=w+Math.imul(le,tt)|0,c=c+Math.imul(le,nt)|0,c=c+Math.imul(Ee,tt)|0,T=T+Math.imul(Ee,nt)|0,w=w+Math.imul(he,bt)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Ie,bt)|0,T=T+Math.imul(Ie,re)|0,w=w+Math.imul(oe,Ze)|0,c=c+Math.imul(oe,Ve)|0,c=c+Math.imul(se,Ze)|0,T=T+Math.imul(se,Ve)|0,w=w+Math.imul(Ae,mt)|0,c=c+Math.imul(Ae,yt)|0,c=c+Math.imul(Be,mt)|0,T=T+Math.imul(Be,yt)|0,w=w+Math.imul(ke,_t)|0,c=c+Math.imul(ke,xt)|0,c=c+Math.imul(fe,_t)|0,T=T+Math.imul(fe,xt)|0,w=w+Math.imul(ie,wt)|0,c=c+Math.imul(ie,St)|0,c=c+Math.imul(me,wt)|0,T=T+Math.imul(me,St)|0;var Or=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Or>>>26)|0,Or&=67108863,w=Math.imul(ae,pe),c=Math.imul(ae,de),c=c+Math.imul(_e,pe)|0,T=Math.imul(_e,de),w=w+Math.imul(we,$e)|0,c=c+Math.imul(we,qe)|0,c=c+Math.imul(Fe,$e)|0,T=T+Math.imul(Fe,qe)|0,w=w+Math.imul(De,tt)|0,c=c+Math.imul(De,nt)|0,c=c+Math.imul(We,tt)|0,T=T+Math.imul(We,nt)|0,w=w+Math.imul(le,bt)|0,c=c+Math.imul(le,re)|0,c=c+Math.imul(Ee,bt)|0,T=T+Math.imul(Ee,re)|0,w=w+Math.imul(he,Ze)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(Ie,Ze)|0,T=T+Math.imul(Ie,Ve)|0,w=w+Math.imul(oe,mt)|0,c=c+Math.imul(oe,yt)|0,c=c+Math.imul(se,mt)|0,T=T+Math.imul(se,yt)|0,w=w+Math.imul(Ae,_t)|0,c=c+Math.imul(Ae,xt)|0,c=c+Math.imul(Be,_t)|0,T=T+Math.imul(Be,xt)|0,w=w+Math.imul(ke,wt)|0,c=c+Math.imul(ke,St)|0,c=c+Math.imul(fe,wt)|0,T=T+Math.imul(fe,St)|0;var en=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(en>>>26)|0,en&=67108863,w=Math.imul(ae,$e),c=Math.imul(ae,qe),c=c+Math.imul(_e,$e)|0,T=Math.imul(_e,qe),w=w+Math.imul(we,tt)|0,c=c+Math.imul(we,nt)|0,c=c+Math.imul(Fe,tt)|0,T=T+Math.imul(Fe,nt)|0,w=w+Math.imul(De,bt)|0,c=c+Math.imul(De,re)|0,c=c+Math.imul(We,bt)|0,T=T+Math.imul(We,re)|0,w=w+Math.imul(le,Ze)|0,c=c+Math.imul(le,Ve)|0,c=c+Math.imul(Ee,Ze)|0,T=T+Math.imul(Ee,Ve)|0,w=w+Math.imul(he,mt)|0,c=c+Math.imul(he,yt)|0,c=c+Math.imul(Ie,mt)|0,T=T+Math.imul(Ie,yt)|0,w=w+Math.imul(oe,_t)|0,c=c+Math.imul(oe,xt)|0,c=c+Math.imul(se,_t)|0,T=T+Math.imul(se,xt)|0,w=w+Math.imul(Ae,wt)|0,c=c+Math.imul(Ae,St)|0,c=c+Math.imul(Be,wt)|0,T=T+Math.imul(Be,St)|0;var Kr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(ae,tt),c=Math.imul(ae,nt),c=c+Math.imul(_e,tt)|0,T=Math.imul(_e,nt),w=w+Math.imul(we,bt)|0,c=c+Math.imul(we,re)|0,c=c+Math.imul(Fe,bt)|0,T=T+Math.imul(Fe,re)|0,w=w+Math.imul(De,Ze)|0,c=c+Math.imul(De,Ve)|0,c=c+Math.imul(We,Ze)|0,T=T+Math.imul(We,Ve)|0,w=w+Math.imul(le,mt)|0,c=c+Math.imul(le,yt)|0,c=c+Math.imul(Ee,mt)|0,T=T+Math.imul(Ee,yt)|0,w=w+Math.imul(he,_t)|0,c=c+Math.imul(he,xt)|0,c=c+Math.imul(Ie,_t)|0,T=T+Math.imul(Ie,xt)|0,w=w+Math.imul(oe,wt)|0,c=c+Math.imul(oe,St)|0,c=c+Math.imul(se,wt)|0,T=T+Math.imul(se,St)|0;var Mn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,w=Math.imul(ae,bt),c=Math.imul(ae,re),c=c+Math.imul(_e,bt)|0,T=Math.imul(_e,re),w=w+Math.imul(we,Ze)|0,c=c+Math.imul(we,Ve)|0,c=c+Math.imul(Fe,Ze)|0,T=T+Math.imul(Fe,Ve)|0,w=w+Math.imul(De,mt)|0,c=c+Math.imul(De,yt)|0,c=c+Math.imul(We,mt)|0,T=T+Math.imul(We,yt)|0,w=w+Math.imul(le,_t)|0,c=c+Math.imul(le,xt)|0,c=c+Math.imul(Ee,_t)|0,T=T+Math.imul(Ee,xt)|0,w=w+Math.imul(he,wt)|0,c=c+Math.imul(he,St)|0,c=c+Math.imul(Ie,wt)|0,T=T+Math.imul(Ie,St)|0;var ln=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ln>>>26)|0,ln&=67108863,w=Math.imul(ae,Ze),c=Math.imul(ae,Ve),c=c+Math.imul(_e,Ze)|0,T=Math.imul(_e,Ve),w=w+Math.imul(we,mt)|0,c=c+Math.imul(we,yt)|0,c=c+Math.imul(Fe,mt)|0,T=T+Math.imul(Fe,yt)|0,w=w+Math.imul(De,_t)|0,c=c+Math.imul(De,xt)|0,c=c+Math.imul(We,_t)|0,T=T+Math.imul(We,xt)|0,w=w+Math.imul(le,wt)|0,c=c+Math.imul(le,St)|0,c=c+Math.imul(Ee,wt)|0,T=T+Math.imul(Ee,St)|0;var pn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(ae,mt),c=Math.imul(ae,yt),c=c+Math.imul(_e,mt)|0,T=Math.imul(_e,yt),w=w+Math.imul(we,_t)|0,c=c+Math.imul(we,xt)|0,c=c+Math.imul(Fe,_t)|0,T=T+Math.imul(Fe,xt)|0,w=w+Math.imul(De,wt)|0,c=c+Math.imul(De,St)|0,c=c+Math.imul(We,wt)|0,T=T+Math.imul(We,St)|0;var vn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(vn>>>26)|0,vn&=67108863,w=Math.imul(ae,_t),c=Math.imul(ae,xt),c=c+Math.imul(_e,_t)|0,T=Math.imul(_e,xt),w=w+Math.imul(we,wt)|0,c=c+Math.imul(we,St)|0,c=c+Math.imul(Fe,wt)|0,T=T+Math.imul(Fe,St)|0;var un=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(un>>>26)|0,un&=67108863,w=Math.imul(ae,wt),c=Math.imul(ae,St),c=c+Math.imul(_e,wt)|0,T=Math.imul(_e,St);var tn=(C+w|0)+((c&8191)<<13)|0;if(C=(T+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,k[0]=sn,k[1]=ir,k[2]=nr,k[3]=Lr,k[4]=Tr,k[5]=wn,k[6]=En,k[7]=Tn,k[8]=kn,k[9]=An,k[10]=Or,k[11]=en,k[12]=Kr,k[13]=Mn,k[14]=ln,k[15]=pn,k[16]=vn,k[17]=un,k[18]=tn,C!==0)k[19]=C,x.length++;return x};if(!Math.imul)N=O;function P(f,p,x){x.negative=p.negative^f.negative,x.length=f.length+p.length;var h=0,S=0;for(var k=0;k<x.length-1;k++){var C=S;S=0;var w=h&67108863,c=Math.min(k,p.length-1);for(var T=Math.max(0,k-f.length+1);T<=c;T++){var z=k-T,R=f.words[z]|0,q=p.words[T]|0,Q=R*q,ie=Q&67108863;C=C+(Q/67108864|0)|0,ie=ie+w|0,w=ie&67108863,C=C+(ie>>>26)|0,S+=C>>>26,C&=67108863}x.words[k]=w,h=C,C=S}if(h!==0)x.words[k]=h;else x.length--;return x.strip()}function j(f,p,x){var h=new Z;return h.mulp(f,p,x)}s.prototype.mulTo=function(f,p){var x,h=this.length+f.length;if(this.length===10&&f.length===10)x=N(this,f,p);else if(h<63)x=O(this,f,p);else if(h<1024)x=P(this,f,p);else x=j(this,f,p);return x};function Z(f,p){this.x=f,this.y=p}Z.prototype.makeRBT=function(f){var p=Array(f),x=s.prototype._countBits(f)-1;for(var h=0;h<f;h++)p[h]=this.revBin(h,x,f);return p},Z.prototype.revBin=function(f,p,x){if(f===0||f===x-1)return f;var h=0;for(var S=0;S<p;S++)h|=(f&1)<<p-S-1,f>>=1;return h},Z.prototype.permute=function(f,p,x,h,S,k){for(var C=0;C<k;C++)h[C]=p[f[C]],S[C]=x[f[C]]},Z.prototype.transform=function(f,p,x,h,S,k){this.permute(k,f,p,x,h,S);for(var C=1;C<S;C<<=1){var w=C<<1,c=Math.cos(2*Math.PI/w),T=Math.sin(2*Math.PI/w);for(var z=0;z<S;z+=w){var R=c,q=T;for(var Q=0;Q<C;Q++){var ie=x[z+Q],me=h[z+Q],Je=x[z+Q+C],ke=h[z+Q+C],fe=R*Je-q*ke;if(ke=R*ke+q*Je,Je=fe,x[z+Q]=ie+Je,h[z+Q]=me+ke,x[z+Q+C]=ie-Je,h[z+Q+C]=me-ke,Q!==w)fe=c*R-T*q,q=c*q+T*R,R=fe}}}},Z.prototype.guessLen13b=function(f,p){var x=Math.max(p,f)|1,h=x&1,S=0;for(x=x/2|0;x;x=x>>>1)S++;return 1<<S+1+h},Z.prototype.conjugate=function(f,p,x){if(x<=1)return;for(var h=0;h<x/2;h++){var S=f[h];f[h]=f[x-h-1],f[x-h-1]=S,S=p[h],p[h]=-p[x-h-1],p[x-h-1]=-S}},Z.prototype.normalize13b=function(f,p){var x=0;for(var h=0;h<p/2;h++){var S=Math.round(f[2*h+1]/p)*8192+Math.round(f[2*h]/p)+x;if(f[h]=S&67108863,S<67108864)x=0;else x=S/67108864|0}return f},Z.prototype.convert13b=function(f,p,x,h){var S=0;for(var k=0;k<p;k++)S=S+(f[k]|0),x[2*k]=S&8191,S=S>>>13,x[2*k+1]=S&8191,S=S>>>13;for(k=2*p;k<h;++k)x[k]=0;n(S===0),n((S&-8192)===0)},Z.prototype.stub=function(f){var p=Array(f);for(var x=0;x<f;x++)p[x]=0;return p},Z.prototype.mulp=function(f,p,x){var h=2*this.guessLen13b(f.length,p.length),S=this.makeRBT(h),k=this.stub(h),C=Array(h),w=Array(h),c=Array(h),T=Array(h),z=Array(h),R=Array(h),q=x.words;q.length=h,this.convert13b(f.words,f.length,C,h),this.convert13b(p.words,p.length,T,h),this.transform(C,k,w,c,h,S),this.transform(T,k,z,R,h,S);for(var Q=0;Q<h;Q++){var ie=w[Q]*z[Q]-c[Q]*R[Q];c[Q]=w[Q]*R[Q]+c[Q]*z[Q],w[Q]=ie}return this.conjugate(w,c,h),this.transform(w,c,q,k,h,S),this.conjugate(q,k,h),this.normalize13b(q,h),x.negative=f.negative^p.negative,x.length=f.length+p.length,x.strip()},s.prototype.mul=function(f){var p=new s(null);return p.words=Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=Array(this.length+f.length),j(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){n(typeof f==="number"),n(f<67108864);var p=0;for(var x=0;x<this.length;x++){var h=(this.words[x]|0)*f,S=(h&67108863)+(p&67108863);p>>=26,p+=h/67108864|0,p+=S>>>26,this.words[x]=S&67108863}if(p!==0)this.words[x]=p,this.length++;return this.length=f===0?1:this.length,this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=I(f);if(p.length===0)return new s(1);var x=this;for(var h=0;h<p.length;h++,x=x.sqr())if(p[h]!==0)break;if(++h<p.length)for(var S=x.sqr();h<p.length;h++,S=S.sqr()){if(p[h]===0)continue;x=x.mul(S)}return x},s.prototype.iushln=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=67108863>>>26-p<<26-p,S;if(p!==0){var k=0;for(S=0;S<this.length;S++){var C=this.words[S]&h,w=(this.words[S]|0)-C<<p;this.words[S]=w|k,k=C>>>26-p}if(k)this.words[S]=k,this.length++}if(x!==0){for(S=this.length-1;S>=0;S--)this.words[S+x]=this.words[S];for(S=0;S<x;S++)this.words[S]=0;this.length+=x}return this.strip()},s.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},s.prototype.iushrn=function(f,p,x){n(typeof f==="number"&&f>=0);var h;if(p)h=(p-p%26)/26;else h=0;var S=f%26,k=Math.min((f-S)/26,this.length),C=67108863^67108863>>>S<<S,w=x;if(h-=k,h=Math.max(0,h),w){for(var c=0;c<k;c++)w.words[c]=this.words[c];w.length=k}if(k===0);else if(this.length>k){this.length-=k;for(c=0;c<this.length;c++)this.words[c]=this.words[c+k]}else this.words[0]=0,this.length=1;var T=0;for(c=this.length-1;c>=0&&(T!==0||c>=h);c--){var z=this.words[c]|0;this.words[c]=T<<26-S|z>>>S,T=z&C}if(w&&T!==0)w.words[w.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},s.prototype.ishrn=function(f,p,x){return n(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return!1;var S=this.words[x];return!!(S&h)},s.prototype.imaskn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0)x++;if(this.length=Math.min(x,this.length),p!==0){var h=67108863^67108863>>>p<<p;this.words[this.length-1]&=h}return this.strip()},s.prototype.maskn=function(f){return this.clone().imaskn(f)},s.prototype.iaddn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.isubn(-f);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<f)return this.words[0]=f-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(f),this.negative=1,this}return this._iaddn(f)},s.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)if(this.words[p]-=67108864,p===this.length-1)this.words[p+1]=1;else this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(f){return this.clone().iaddn(f)},s.prototype.subn=function(f){return this.clone().isubn(f)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(f,p,x){var h=f.length+x,S;this._expand(h);var k,C=0;for(S=0;S<f.length;S++){k=(this.words[S+x]|0)+C;var w=(f.words[S]|0)*p;k-=w&67108863,C=(k>>26)-(w/67108864|0),this.words[S+x]=k&67108863}for(;S<this.length-x;S++)k=(this.words[S+x]|0)+C,C=k>>26,this.words[S+x]=k&67108863;if(C===0)return this.strip();n(C===-1),C=0;for(S=0;S<this.length;S++)k=-(this.words[S]|0)+C,C=k>>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,h=this.clone(),S=f,k=S.words[S.length-1]|0,C=this._countBits(k);if(x=26-C,x!==0)S=S.ushln(x),h.iushln(x),k=S.words[S.length-1]|0;var w=h.length-S.length,c;if(p!=="mod"){c=new s(null),c.length=w+1,c.words=Array(c.length);for(var T=0;T<c.length;T++)c.words[T]=0}var z=h.clone()._ishlnsubmul(S,1,w);if(z.negative===0){if(h=z,c)c.words[w]=1}for(var R=w-1;R>=0;R--){var q=(h.words[S.length+R]|0)*67108864+(h.words[S.length+R-1]|0);q=Math.min(q/k|0,67108863),h._ishlnsubmul(S,q,R);while(h.negative!==0)if(q--,h.negative=0,h._ishlnsubmul(S,1,R),!h.isZero())h.negative^=1;if(c)c.words[R]=q}if(c)c.strip();if(h.strip(),p!=="div"&&x!==0)h.iushrn(x);return{div:c||null,mod:h}},s.prototype.divmod=function(f,p,x){if(n(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var h,S,k;if(this.negative!==0&&f.negative===0){if(k=this.neg().divmod(f,p),p!=="mod")h=k.div.neg();if(p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.iadd(f)}return{div:h,mod:S}}if(this.negative===0&&f.negative!==0){if(k=this.divmod(f.neg(),p),p!=="mod")h=k.div.neg();return{div:h,mod:k.mod}}if((this.negative&f.negative)!==0){if(k=this.neg().divmod(f.neg(),p),p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.isub(f)}return{div:k.div,mod:S}}if(f.length>this.length||this.cmp(f)<0)return{div:new s(0),mod:this};if(f.length===1){if(p==="div")return{div:this.divn(f.words[0]),mod:null};if(p==="mod")return{div:null,mod:new s(this.modn(f.words[0]))};return{div:this.divn(f.words[0]),mod:new s(this.modn(f.words[0]))}}return this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,h=f.ushrn(1),S=f.andln(1),k=x.cmp(h);if(k<0||S===1&&k===0)return p.div;return p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(f){n(f<=67108863);var p=67108864%f,x=0;for(var h=this.length-1;h>=0;h--)x=(p*x+(this.words[h]|0))%f;return x},s.prototype.idivn=function(f){n(f<=67108863);var p=0;for(var x=this.length-1;x>=0;x--){var h=(this.words[x]|0)+p*67108864;this.words[x]=h/f|0,p=h%f}return this.strip()},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=new s(0),C=new s(1),w=0;while(p.isEven()&&x.isEven())p.iushrn(1),x.iushrn(1),++w;var c=x.clone(),T=p.clone();while(!p.isZero()){for(var z=0,R=1;(p.words[0]&R)===0&&z<26;++z,R<<=1);if(z>0){p.iushrn(z);while(z-- >0){if(h.isOdd()||S.isOdd())h.iadd(c),S.isub(T);h.iushrn(1),S.iushrn(1)}}for(var q=0,Q=1;(x.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0){x.iushrn(q);while(q-- >0){if(k.isOdd()||C.isOdd())k.iadd(c),C.isub(T);k.iushrn(1),C.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(k),S.isub(C);else x.isub(p),k.isub(h),C.isub(S)}return{a:k,b:C,gcd:x.iushln(w)}},s.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=x.clone();while(p.cmpn(1)>0&&x.cmpn(1)>0){for(var C=0,w=1;(p.words[0]&w)===0&&C<26;++C,w<<=1);if(C>0){p.iushrn(C);while(C-- >0){if(h.isOdd())h.iadd(k);h.iushrn(1)}}for(var c=0,T=1;(x.words[0]&T)===0&&c<26;++c,T<<=1);if(c>0){x.iushrn(c);while(c-- >0){if(S.isOdd())S.iadd(k);S.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(S);else x.isub(p),S.isub(h)}var z;if(p.cmpn(1)===0)z=h;else z=S;if(z.cmpn(0)<0)z.iadd(f);return z},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var h=0;p.isEven()&&x.isEven();h++)p.iushrn(1),x.iushrn(1);do{while(p.isEven())p.iushrn(1);while(x.isEven())x.iushrn(1);var S=p.cmp(x);if(S<0){var k=p;p=x,x=k}else if(S===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(h)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){n(typeof f==="number");var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return this._expand(x+1),this.words[x]|=h,this;var S=h;for(var k=x;S!==0&&k<this.length;k++){var C=this.words[k]|0;C+=S,S=C>>>26,C&=67108863,this.words[k]=C}if(S!==0)this.words[k]=S,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var x;if(this.length>1)x=1;else{if(p)f=-f;n(f<=67108863,"Number is too big");var h=this.words[0]|0;x=h===f?0:h<f?-1:1}if(this.negative!==0)return-x|0;return x},s.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);if(this.negative!==0)return-p|0;return p},s.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;var p=0;for(var x=this.length-1;x>=0;x--){var h=this.words[x]|0,S=f.words[x]|0;if(h===S)continue;if(h<S)p=-1;else if(h>S)p=1;break}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new Y(f)},s.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var V={k256:null,p224:null,p192:null,p25519:null};function W(f,p){this.name=f,this.p=new s(p,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}W.prototype._tmp=function(){var f=new s(null);return f.words=Array(Math.ceil(this.n/13)),f},W.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var h=x<this.n?-1:p.ucmp(this.p);if(h===0)p.words[0]=0,p.length=1;else if(h>0)p.isub(this.p);else if(p.strip!==void 0)p.strip();else p._strip();return p},W.prototype.split=function(f,p){f.iushrn(this.n,0,p)},W.prototype.imulK=function(f){return f.imul(this.k)};function J(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(J,W),J.prototype.split=function(f,p){var x=4194303,h=Math.min(f.length,9);for(var S=0;S<h;S++)p.words[S]=f.words[S];if(p.length=h,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];p.words[p.length++]=k&x;for(S=10;S<f.length;S++){var C=f.words[S]|0;f.words[S-10]=(C&x)<<4|k>>>22,k=C}if(k>>>=22,f.words[S-10]=k,k===0&&f.length>10)f.length-=10;else f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;var p=0;for(var x=0;x<f.length;x++){var h=f.words[x]|0;p+=h*977,f.words[x]=p&67108863,p=h*64+(p/67108864|0)}if(f.words[f.length-1]===0){if(f.length--,f.words[f.length-1]===0)f.length--}return f};function ve(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(ve,W);function ce(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(ce,W);function Me(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(Me,W),Me.prototype.imulK=function(f){var p=0;for(var x=0;x<f.length;x++){var h=(f.words[x]|0)*19+p,S=h&67108863;h>>>=26,f.words[x]=S,p=h}if(p!==0)f.words[f.length++]=p;return f},s._prime=function(f){if(V[f])return V[f];var p;if(f==="k256")p=new J;else if(f==="p224")p=new ve;else if(f==="p192")p=new ce;else if(f==="p25519")p=new Me;else throw Error("Unknown prime "+f);return V[f]=p,p};function Y(f){if(typeof f==="string"){var p=s._prime(f);this.m=p.p,this.prime=p}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}Y.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},Y.prototype.imod=function(f){if(this.prime)return this.prime.ireduce(f)._forceRed(this);return f.umod(this.m)._forceRed(this)},Y.prototype.neg=function(f){if(f.isZero())return f.clone();return this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x._forceRed(this)},Y.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x},Y.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x._forceRed(this)},Y.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x},Y.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},Y.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},Y.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}var h=this.m.subn(1),S=0;while(!h.isZero()&&h.andln(1)===0)S++,h.iushrn(1);n(!h.isZero());var k=new s(1).toRed(this),C=k.redNeg(),w=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new s(2*c*c).toRed(this);while(this.pow(c,w).cmp(C)!==0)c.redIAdd(C);var T=this.pow(c,h),z=this.pow(f,h.addn(1).iushrn(1)),R=this.pow(f,h),q=S;while(R.cmp(k)!==0){var Q=R;for(var ie=0;Q.cmp(k)!==0;ie++)Q=Q.redSqr();n(ie<q);var me=this.pow(T,new s(1).iushln(q-ie-1));z=z.redMul(me),T=me.redSqr(),R=R.redMul(T),q=ie}return z},Y.prototype.invm=function(f){var p=f._invmp(this.m);if(p.negative!==0)return p.negative=0,this.imod(p).redNeg();else return this.imod(p)},Y.prototype.pow=function(f,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var x=4,h=Array(1<<x);h[0]=new s(1).toRed(this),h[1]=f;for(var S=2;S<h.length;S++)h[S]=this.mul(h[S-1],f);var k=h[0],C=0,w=0,c=p.bitLength()%26;if(c===0)c=26;for(S=p.length-1;S>=0;S--){var T=p.words[S];for(var z=c-1;z>=0;z--){var R=T>>z&1;if(k!==h[0])k=this.sqr(k);if(R===0&&C===0){w=0;continue}if(C<<=1,C|=R,w++,w!==x&&(S!==0||z!==0))continue;k=this.mul(k,h[C]),w=0,C=0}c=26}return k},Y.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},Y.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new Te(f)};function Te(f){if(Y.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(Te,Y),Te.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Te.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},Te.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof t>"u"||t,e)}),e1e=ct((e,t)=>{var r=Jge(),a=Qge();t.exports=function(d){return new l(d)};var n={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};n.p224=n.secp224r1,n.p256=n.secp256r1=n.prime256v1,n.p192=n.secp192r1=n.prime192v1,n.p384=n.secp384r1,n.p521=n.secp521r1;function l(d){if(this.curveType=n[d],!this.curveType)this.curveType={name:d};this.curve=new r.ec(this.curveType.name),this.keys=void 0}l.prototype.generateKeys=function(d,b){return this.keys=this.curve.genKeyPair(),this.getPublicKey(d,b)},l.prototype.computeSecret=function(d,b,y){if(b=b||"utf8",!Buffer.isBuffer(d))d=new Buffer(d,b);var v=this.curve.keyFromPublic(d).getPublic(),g=v.mul(this.keys.getPrivate()).getX();return s(g,y,this.curveType.byteLength)},l.prototype.getPublicKey=function(d,b){var y=this.keys.getPublic(b==="compressed",!0);if(b==="hybrid")if(y[y.length-1]%2)y[0]=7;else y[0]=6;return s(y,d)},l.prototype.getPrivateKey=function(d){return s(this.keys.getPrivate(),d)},l.prototype.setPublicKey=function(d,b){if(b=b||"utf8",!Buffer.isBuffer(d))d=new Buffer(d,b);return this.keys._importPublic(d),this},l.prototype.setPrivateKey=function(d,b){if(b=b||"utf8",!Buffer.isBuffer(d))d=new Buffer(d,b);var y=new a(d);return y=y.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(y),this};function s(d,b,y){if(!Array.isArray(d))d=d.toArray();var v=new Buffer(d);if(y&&v.length<y){var g=new Buffer(y-v.length);g.fill(0),v=Buffer.concat([g,v])}if(!b)return v;else return v.toString(b)}}),t1e=ct((e,t)=>{var r=(eo(),Cr(Lo)).createECDH;t.exports=r||e1e()}),r1e=ct((e,t)=>{(function(r,a){function n(f,p){if(!f)throw Error(p||"Assertion failed")}function l(f,p){f.super_=p;var x=function(){};x.prototype=p.prototype,f.prototype=new x,f.prototype.constructor=f}function s(f,p,x){if(s.isBN(f))return f;if(this.negative=0,this.words=null,this.length=0,this.red=null,f!==null){if(p==="le"||p==="be")x=p,p=10;this._init(f||0,p||10,x||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(f){}s.isBN=function(f){if(f instanceof s)return!0;return f!==null&&typeof f==="object"&&f.constructor.wordSize===s.wordSize&&Array.isArray(f.words)},s.max=function(f,p){if(f.cmp(p)>0)return f;return p},s.min=function(f,p){if(f.cmp(p)<0)return f;return p},s.prototype._init=function(f,p,x){if(typeof f==="number")return this._initNumber(f,p,x);if(typeof f==="object")return this._initArray(f,p,x);if(p==="hex")p=16;n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var h=0;if(f[0]==="-")h++,this.negative=1;if(h<f.length){if(p===16)this._parseHex(f,h,x);else if(this._parseBase(f,p,h),x==="le")this._initArray(this.toArray(),p,x)}},s.prototype._initNumber=function(f,p,x){if(f<0)this.negative=1,f=-f;if(f<67108864)this.words=[f&67108863],this.length=1;else if(f<4503599627370496)this.words=[f&67108863,f/67108864&67108863],this.length=2;else n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3;if(x!=="le")return;this._initArray(this.toArray(),p,x)},s.prototype._initArray=function(f,p,x){if(n(typeof f.length==="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S,k,C=0;if(x==="be"){for(h=f.length-1,S=0;h>=0;h-=3)if(k=f[h]|f[h-1]<<8|f[h-2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}else if(x==="le"){for(h=0,S=0;h<f.length;h+=3)if(k=f[h]|f[h+1]<<8|f[h+2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}return this.strip()};function b(f,p){var x=f.charCodeAt(p);if(x>=65&&x<=70)return x-55;else if(x>=97&&x<=102)return x-87;else return x-48&15}function y(f,p,x){var h=b(f,x);if(x-1>=p)h|=b(f,x-1)<<4;return h}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S=0,k=0,C;if(x==="be")for(h=f.length-1;h>=p;h-=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8;else{var w=f.length-p;for(h=w%2===0?p+1:p;h<f.length;h+=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8}this.strip()};function v(f,p,x,h){var S=0,k=Math.min(f.length,x);for(var C=p;C<k;C++){var w=f.charCodeAt(C)-48;if(S*=h,w>=49)S+=w-49+10;else if(w>=17)S+=w-17+10;else S+=w}return S}s.prototype._parseBase=function(f,p,x){this.words=[0],this.length=1;for(var h=0,S=1;S<=67108863;S*=p)h++;h--,S=S/p|0;var k=f.length-x,C=k%h,w=Math.min(k,k-C)+x,c=0;for(var T=x;T<w;T+=h)if(c=v(f,T,T+h,p),this.imuln(S),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(C!==0){var z=1;c=v(f,T,f.length,p);for(T=0;T<C;T++)z*=p;if(this.imuln(z),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this.strip()},s.prototype.copy=function(f){f.words=Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red},s.prototype.clone=function(){var f=new s(null);return this.copy(f),f},s.prototype._expand=function(f){while(this.length<f)this.words[this.length++]=0;return this},s.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],_=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";var h=0,S=0;for(var k=0;k<this.length;k++){var C=this.words[k],w=((C<<h|S)&16777215).toString(16);if(S=C>>>24-h&16777215,h+=2,h>=26)h-=26,k--;if(S!==0||k!==this.length-1)x=g[6-w.length]+w+x;else x=w+x}if(S!==0)x=S.toString(16)+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}if(f===(f|0)&&f>=2&&f<=36){var c=_[f],T=A[f];x="";var z=this.clone();z.negative=0;while(!z.isZero()){var R=z.modn(T).toString(f);if(z=z.idivn(T),!z.isZero())x=g[c-R.length]+R+x;else x=R+x}if(this.isZero())x="0"+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];if(this.length===2)f+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)f+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(f,p){return n(typeof d<"u"),this.toArrayLike(d,f,p)},s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)},s.prototype.toArrayLike=function(f,p,x){var h=this.byteLength(),S=x||Math.max(1,h);n(h<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var k=p==="le",C=new f(S),w,c,T=this.clone();if(!k){for(c=0;c<S-h;c++)C[c]=0;for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[S-c-1]=w}else{for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[c]=w;for(;c<S;c++)C[c]=0}return C},Math.clz32)s.prototype._countBits=function(f){return 32-Math.clz32(f)};else s.prototype._countBits=function(f){var p=f,x=0;if(p>=4096)x+=13,p>>>=13;if(p>=64)x+=7,p>>>=7;if(p>=8)x+=4,p>>>=4;if(p>=2)x+=2,p>>>=2;return x+p};s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;if((p&8191)===0)x+=13,p>>>=13;if((p&127)===0)x+=7,p>>>=7;if((p&15)===0)x+=4,p>>>=4;if((p&3)===0)x+=2,p>>>=2;if((p&1)===0)x++;return x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(f){var p=Array(f.bitLength());for(var x=0;x<p.length;x++){var h=x/26|0,S=x%26;p[x]=(f.words[h]&1<<S)>>>S}return p}s.prototype.zeroBits=function(){if(this.isZero())return 0;var f=0;for(var p=0;p<this.length;p++){var x=this._zeroBits(this.words[p]);if(f+=x,x!==26)break}return f},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(f){if(this.negative!==0)return this.abs().inotn(f).iaddn(1);return this.clone()},s.prototype.fromTwos=function(f){if(this.testn(f-1))return this.notn(f).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(f){while(this.length<f.length)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this.strip()},s.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},s.prototype.or=function(f){if(this.length>f.length)return this.clone().ior(f);return f.clone().ior(this)},s.prototype.uor=function(f){if(this.length>f.length)return this.clone().iuor(f);return f.clone().iuor(this)},s.prototype.iuand=function(f){var p;if(this.length>f.length)p=f;else p=this;for(var x=0;x<p.length;x++)this.words[x]=this.words[x]&f.words[x];return this.length=p.length,this.strip()},s.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},s.prototype.and=function(f){if(this.length>f.length)return this.clone().iand(f);return f.clone().iand(this)},s.prototype.uand=function(f){if(this.length>f.length)return this.clone().iuand(f);return f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;if(this.length>f.length)p=this,x=f;else p=f,x=this;for(var h=0;h<x.length;h++)this.words[h]=p.words[h]^x.words[h];if(this!==p)for(;h<p.length;h++)this.words[h]=p.words[h];return this.length=p.length,this.strip()},s.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},s.prototype.xor=function(f){if(this.length>f.length)return this.clone().ixor(f);return f.clone().ixor(this)},s.prototype.uxor=function(f){if(this.length>f.length)return this.clone().iuxor(f);return f.clone().iuxor(this)},s.prototype.inotn=function(f){n(typeof f==="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;if(this._expand(p),x>0)p--;for(var h=0;h<p;h++)this.words[h]=~this.words[h]&67108863;if(x>0)this.words[h]=~this.words[h]&67108863>>26-x;return this.strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){n(typeof f==="number"&&f>=0);var x=f/26|0,h=f%26;if(this._expand(x+1),p)this.words[x]=this.words[x]|1<<h;else this.words[x]=this.words[x]&~(1<<h);return this.strip()},s.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();else if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var x,h;if(this.length>f.length)x=this,h=f;else x=f,h=this;var S=0;for(var k=0;k<h.length;k++)p=(x.words[k]|0)+(h.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;for(;S!==0&&k<x.length;k++)p=(x.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;if(this.length=x.length,S!==0)this.words[this.length]=S,this.length++;else if(x!==this)for(;k<x.length;k++)this.words[k]=x.words[k];return this},s.prototype.add=function(f){var p;if(f.negative!==0&&this.negative===0)return f.negative=0,p=this.sub(f),f.negative^=1,p;else if(f.negative===0&&this.negative!==0)return this.negative=0,p=f.sub(this),this.negative=1,p;if(this.length>f.length)return this.clone().iadd(f);return f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,S;if(x>0)h=this,S=f;else h=f,S=this;var k=0;for(var C=0;C<S.length;C++)p=(h.words[C]|0)-(S.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;for(;k!==0&&C<h.length;C++)p=(h.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;if(k===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];if(this.length=Math.max(this.length,C),h!==this)this.negative=1;return this.strip()},s.prototype.sub=function(f){return this.clone().isub(f)};function O(f,p,x){x.negative=p.negative^f.negative;var h=f.length+p.length|0;x.length=h,h=h-1|0;var S=f.words[0]|0,k=p.words[0]|0,C=S*k,w=C&67108863,c=C/67108864|0;x.words[0]=w;for(var T=1;T<h;T++){var z=c>>>26,R=c&67108863,q=Math.min(T,p.length-1);for(var Q=Math.max(0,T-f.length+1);Q<=q;Q++){var ie=T-Q|0;S=f.words[ie]|0,k=p.words[Q]|0,C=S*k+R,z+=C/67108864|0,R=C&67108863}x.words[T]=R|0,c=z|0}if(c!==0)x.words[T]=c|0;else x.length--;return x.strip()}var N=function(f,p,x){var h=f.words,S=p.words,k=x.words,C=0,w,c,T,z=h[0]|0,R=z&8191,q=z>>>13,Q=h[1]|0,ie=Q&8191,me=Q>>>13,Je=h[2]|0,ke=Je&8191,fe=Je>>>13,be=h[3]|0,Ae=be&8191,Be=be>>>13,vt=h[4]|0,oe=vt&8191,se=vt>>>13,Ke=h[5]|0,he=Ke&8191,Ie=Ke>>>13,Qe=h[6]|0,le=Qe&8191,Ee=Qe>>>13,gt=h[7]|0,De=gt&8191,We=gt>>>13,Ye=h[8]|0,we=Ye&8191,Fe=Ye>>>13,L=h[9]|0,ae=L&8191,_e=L>>>13,ot=S[0]|0,xe=ot&8191,K=ot>>>13,Ge=S[1]|0,F=Ge&8191,te=Ge>>>13,Pe=S[2]|0,pe=Pe&8191,de=Pe>>>13,at=S[3]|0,$e=at&8191,qe=at>>>13,ht=S[4]|0,tt=ht&8191,nt=ht>>>13,Er=S[5]|0,bt=Er&8191,re=Er>>>13,ye=S[6]|0,Ze=ye&8191,Ve=ye>>>13,Dt=S[7]|0,mt=Dt&8191,yt=Dt>>>13,Qr=S[8]|0,_t=Qr&8191,xt=Qr>>>13,zr=S[9]|0,wt=zr&8191,St=zr>>>13;x.negative=f.negative^p.negative,x.length=19,w=Math.imul(R,xe),c=Math.imul(R,K),c=c+Math.imul(q,xe)|0,T=Math.imul(q,K);var sn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(ie,xe),c=Math.imul(ie,K),c=c+Math.imul(me,xe)|0,T=Math.imul(me,K),w=w+Math.imul(R,F)|0,c=c+Math.imul(R,te)|0,c=c+Math.imul(q,F)|0,T=T+Math.imul(q,te)|0;var ir=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(ke,xe),c=Math.imul(ke,K),c=c+Math.imul(fe,xe)|0,T=Math.imul(fe,K),w=w+Math.imul(ie,F)|0,c=c+Math.imul(ie,te)|0,c=c+Math.imul(me,F)|0,T=T+Math.imul(me,te)|0,w=w+Math.imul(R,pe)|0,c=c+Math.imul(R,de)|0,c=c+Math.imul(q,pe)|0,T=T+Math.imul(q,de)|0;var nr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ae,xe),c=Math.imul(Ae,K),c=c+Math.imul(Be,xe)|0,T=Math.imul(Be,K),w=w+Math.imul(ke,F)|0,c=c+Math.imul(ke,te)|0,c=c+Math.imul(fe,F)|0,T=T+Math.imul(fe,te)|0,w=w+Math.imul(ie,pe)|0,c=c+Math.imul(ie,de)|0,c=c+Math.imul(me,pe)|0,T=T+Math.imul(me,de)|0,w=w+Math.imul(R,$e)|0,c=c+Math.imul(R,qe)|0,c=c+Math.imul(q,$e)|0,T=T+Math.imul(q,qe)|0;var Lr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,w=Math.imul(oe,xe),c=Math.imul(oe,K),c=c+Math.imul(se,xe)|0,T=Math.imul(se,K),w=w+Math.imul(Ae,F)|0,c=c+Math.imul(Ae,te)|0,c=c+Math.imul(Be,F)|0,T=T+Math.imul(Be,te)|0,w=w+Math.imul(ke,pe)|0,c=c+Math.imul(ke,de)|0,c=c+Math.imul(fe,pe)|0,T=T+Math.imul(fe,de)|0,w=w+Math.imul(ie,$e)|0,c=c+Math.imul(ie,qe)|0,c=c+Math.imul(me,$e)|0,T=T+Math.imul(me,qe)|0,w=w+Math.imul(R,tt)|0,c=c+Math.imul(R,nt)|0,c=c+Math.imul(q,tt)|0,T=T+Math.imul(q,nt)|0;var Tr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(he,xe),c=Math.imul(he,K),c=c+Math.imul(Ie,xe)|0,T=Math.imul(Ie,K),w=w+Math.imul(oe,F)|0,c=c+Math.imul(oe,te)|0,c=c+Math.imul(se,F)|0,T=T+Math.imul(se,te)|0,w=w+Math.imul(Ae,pe)|0,c=c+Math.imul(Ae,de)|0,c=c+Math.imul(Be,pe)|0,T=T+Math.imul(Be,de)|0,w=w+Math.imul(ke,$e)|0,c=c+Math.imul(ke,qe)|0,c=c+Math.imul(fe,$e)|0,T=T+Math.imul(fe,qe)|0,w=w+Math.imul(ie,tt)|0,c=c+Math.imul(ie,nt)|0,c=c+Math.imul(me,tt)|0,T=T+Math.imul(me,nt)|0,w=w+Math.imul(R,bt)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(q,bt)|0,T=T+Math.imul(q,re)|0;var wn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,w=Math.imul(le,xe),c=Math.imul(le,K),c=c+Math.imul(Ee,xe)|0,T=Math.imul(Ee,K),w=w+Math.imul(he,F)|0,c=c+Math.imul(he,te)|0,c=c+Math.imul(Ie,F)|0,T=T+Math.imul(Ie,te)|0,w=w+Math.imul(oe,pe)|0,c=c+Math.imul(oe,de)|0,c=c+Math.imul(se,pe)|0,T=T+Math.imul(se,de)|0,w=w+Math.imul(Ae,$e)|0,c=c+Math.imul(Ae,qe)|0,c=c+Math.imul(Be,$e)|0,T=T+Math.imul(Be,qe)|0,w=w+Math.imul(ke,tt)|0,c=c+Math.imul(ke,nt)|0,c=c+Math.imul(fe,tt)|0,T=T+Math.imul(fe,nt)|0,w=w+Math.imul(ie,bt)|0,c=c+Math.imul(ie,re)|0,c=c+Math.imul(me,bt)|0,T=T+Math.imul(me,re)|0,w=w+Math.imul(R,Ze)|0,c=c+Math.imul(R,Ve)|0,c=c+Math.imul(q,Ze)|0,T=T+Math.imul(q,Ve)|0;var En=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(En>>>26)|0,En&=67108863,w=Math.imul(De,xe),c=Math.imul(De,K),c=c+Math.imul(We,xe)|0,T=Math.imul(We,K),w=w+Math.imul(le,F)|0,c=c+Math.imul(le,te)|0,c=c+Math.imul(Ee,F)|0,T=T+Math.imul(Ee,te)|0,w=w+Math.imul(he,pe)|0,c=c+Math.imul(he,de)|0,c=c+Math.imul(Ie,pe)|0,T=T+Math.imul(Ie,de)|0,w=w+Math.imul(oe,$e)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(se,$e)|0,T=T+Math.imul(se,qe)|0,w=w+Math.imul(Ae,tt)|0,c=c+Math.imul(Ae,nt)|0,c=c+Math.imul(Be,tt)|0,T=T+Math.imul(Be,nt)|0,w=w+Math.imul(ke,bt)|0,c=c+Math.imul(ke,re)|0,c=c+Math.imul(fe,bt)|0,T=T+Math.imul(fe,re)|0,w=w+Math.imul(ie,Ze)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(me,Ze)|0,T=T+Math.imul(me,Ve)|0,w=w+Math.imul(R,mt)|0,c=c+Math.imul(R,yt)|0,c=c+Math.imul(q,mt)|0,T=T+Math.imul(q,yt)|0;var Tn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(we,xe),c=Math.imul(we,K),c=c+Math.imul(Fe,xe)|0,T=Math.imul(Fe,K),w=w+Math.imul(De,F)|0,c=c+Math.imul(De,te)|0,c=c+Math.imul(We,F)|0,T=T+Math.imul(We,te)|0,w=w+Math.imul(le,pe)|0,c=c+Math.imul(le,de)|0,c=c+Math.imul(Ee,pe)|0,T=T+Math.imul(Ee,de)|0,w=w+Math.imul(he,$e)|0,c=c+Math.imul(he,qe)|0,c=c+Math.imul(Ie,$e)|0,T=T+Math.imul(Ie,qe)|0,w=w+Math.imul(oe,tt)|0,c=c+Math.imul(oe,nt)|0,c=c+Math.imul(se,tt)|0,T=T+Math.imul(se,nt)|0,w=w+Math.imul(Ae,bt)|0,c=c+Math.imul(Ae,re)|0,c=c+Math.imul(Be,bt)|0,T=T+Math.imul(Be,re)|0,w=w+Math.imul(ke,Ze)|0,c=c+Math.imul(ke,Ve)|0,c=c+Math.imul(fe,Ze)|0,T=T+Math.imul(fe,Ve)|0,w=w+Math.imul(ie,mt)|0,c=c+Math.imul(ie,yt)|0,c=c+Math.imul(me,mt)|0,T=T+Math.imul(me,yt)|0,w=w+Math.imul(R,_t)|0,c=c+Math.imul(R,xt)|0,c=c+Math.imul(q,_t)|0,T=T+Math.imul(q,xt)|0;var kn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,w=Math.imul(ae,xe),c=Math.imul(ae,K),c=c+Math.imul(_e,xe)|0,T=Math.imul(_e,K),w=w+Math.imul(we,F)|0,c=c+Math.imul(we,te)|0,c=c+Math.imul(Fe,F)|0,T=T+Math.imul(Fe,te)|0,w=w+Math.imul(De,pe)|0,c=c+Math.imul(De,de)|0,c=c+Math.imul(We,pe)|0,T=T+Math.imul(We,de)|0,w=w+Math.imul(le,$e)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(Ee,$e)|0,T=T+Math.imul(Ee,qe)|0,w=w+Math.imul(he,tt)|0,c=c+Math.imul(he,nt)|0,c=c+Math.imul(Ie,tt)|0,T=T+Math.imul(Ie,nt)|0,w=w+Math.imul(oe,bt)|0,c=c+Math.imul(oe,re)|0,c=c+Math.imul(se,bt)|0,T=T+Math.imul(se,re)|0,w=w+Math.imul(Ae,Ze)|0,c=c+Math.imul(Ae,Ve)|0,c=c+Math.imul(Be,Ze)|0,T=T+Math.imul(Be,Ve)|0,w=w+Math.imul(ke,mt)|0,c=c+Math.imul(ke,yt)|0,c=c+Math.imul(fe,mt)|0,T=T+Math.imul(fe,yt)|0,w=w+Math.imul(ie,_t)|0,c=c+Math.imul(ie,xt)|0,c=c+Math.imul(me,_t)|0,T=T+Math.imul(me,xt)|0,w=w+Math.imul(R,wt)|0,c=c+Math.imul(R,St)|0,c=c+Math.imul(q,wt)|0,T=T+Math.imul(q,St)|0;var An=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(ae,F),c=Math.imul(ae,te),c=c+Math.imul(_e,F)|0,T=Math.imul(_e,te),w=w+Math.imul(we,pe)|0,c=c+Math.imul(we,de)|0,c=c+Math.imul(Fe,pe)|0,T=T+Math.imul(Fe,de)|0,w=w+Math.imul(De,$e)|0,c=c+Math.imul(De,qe)|0,c=c+Math.imul(We,$e)|0,T=T+Math.imul(We,qe)|0,w=w+Math.imul(le,tt)|0,c=c+Math.imul(le,nt)|0,c=c+Math.imul(Ee,tt)|0,T=T+Math.imul(Ee,nt)|0,w=w+Math.imul(he,bt)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Ie,bt)|0,T=T+Math.imul(Ie,re)|0,w=w+Math.imul(oe,Ze)|0,c=c+Math.imul(oe,Ve)|0,c=c+Math.imul(se,Ze)|0,T=T+Math.imul(se,Ve)|0,w=w+Math.imul(Ae,mt)|0,c=c+Math.imul(Ae,yt)|0,c=c+Math.imul(Be,mt)|0,T=T+Math.imul(Be,yt)|0,w=w+Math.imul(ke,_t)|0,c=c+Math.imul(ke,xt)|0,c=c+Math.imul(fe,_t)|0,T=T+Math.imul(fe,xt)|0,w=w+Math.imul(ie,wt)|0,c=c+Math.imul(ie,St)|0,c=c+Math.imul(me,wt)|0,T=T+Math.imul(me,St)|0;var Or=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Or>>>26)|0,Or&=67108863,w=Math.imul(ae,pe),c=Math.imul(ae,de),c=c+Math.imul(_e,pe)|0,T=Math.imul(_e,de),w=w+Math.imul(we,$e)|0,c=c+Math.imul(we,qe)|0,c=c+Math.imul(Fe,$e)|0,T=T+Math.imul(Fe,qe)|0,w=w+Math.imul(De,tt)|0,c=c+Math.imul(De,nt)|0,c=c+Math.imul(We,tt)|0,T=T+Math.imul(We,nt)|0,w=w+Math.imul(le,bt)|0,c=c+Math.imul(le,re)|0,c=c+Math.imul(Ee,bt)|0,T=T+Math.imul(Ee,re)|0,w=w+Math.imul(he,Ze)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(Ie,Ze)|0,T=T+Math.imul(Ie,Ve)|0,w=w+Math.imul(oe,mt)|0,c=c+Math.imul(oe,yt)|0,c=c+Math.imul(se,mt)|0,T=T+Math.imul(se,yt)|0,w=w+Math.imul(Ae,_t)|0,c=c+Math.imul(Ae,xt)|0,c=c+Math.imul(Be,_t)|0,T=T+Math.imul(Be,xt)|0,w=w+Math.imul(ke,wt)|0,c=c+Math.imul(ke,St)|0,c=c+Math.imul(fe,wt)|0,T=T+Math.imul(fe,St)|0;var en=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(en>>>26)|0,en&=67108863,w=Math.imul(ae,$e),c=Math.imul(ae,qe),c=c+Math.imul(_e,$e)|0,T=Math.imul(_e,qe),w=w+Math.imul(we,tt)|0,c=c+Math.imul(we,nt)|0,c=c+Math.imul(Fe,tt)|0,T=T+Math.imul(Fe,nt)|0,w=w+Math.imul(De,bt)|0,c=c+Math.imul(De,re)|0,c=c+Math.imul(We,bt)|0,T=T+Math.imul(We,re)|0,w=w+Math.imul(le,Ze)|0,c=c+Math.imul(le,Ve)|0,c=c+Math.imul(Ee,Ze)|0,T=T+Math.imul(Ee,Ve)|0,w=w+Math.imul(he,mt)|0,c=c+Math.imul(he,yt)|0,c=c+Math.imul(Ie,mt)|0,T=T+Math.imul(Ie,yt)|0,w=w+Math.imul(oe,_t)|0,c=c+Math.imul(oe,xt)|0,c=c+Math.imul(se,_t)|0,T=T+Math.imul(se,xt)|0,w=w+Math.imul(Ae,wt)|0,c=c+Math.imul(Ae,St)|0,c=c+Math.imul(Be,wt)|0,T=T+Math.imul(Be,St)|0;var Kr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(ae,tt),c=Math.imul(ae,nt),c=c+Math.imul(_e,tt)|0,T=Math.imul(_e,nt),w=w+Math.imul(we,bt)|0,c=c+Math.imul(we,re)|0,c=c+Math.imul(Fe,bt)|0,T=T+Math.imul(Fe,re)|0,w=w+Math.imul(De,Ze)|0,c=c+Math.imul(De,Ve)|0,c=c+Math.imul(We,Ze)|0,T=T+Math.imul(We,Ve)|0,w=w+Math.imul(le,mt)|0,c=c+Math.imul(le,yt)|0,c=c+Math.imul(Ee,mt)|0,T=T+Math.imul(Ee,yt)|0,w=w+Math.imul(he,_t)|0,c=c+Math.imul(he,xt)|0,c=c+Math.imul(Ie,_t)|0,T=T+Math.imul(Ie,xt)|0,w=w+Math.imul(oe,wt)|0,c=c+Math.imul(oe,St)|0,c=c+Math.imul(se,wt)|0,T=T+Math.imul(se,St)|0;var Mn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,w=Math.imul(ae,bt),c=Math.imul(ae,re),c=c+Math.imul(_e,bt)|0,T=Math.imul(_e,re),w=w+Math.imul(we,Ze)|0,c=c+Math.imul(we,Ve)|0,c=c+Math.imul(Fe,Ze)|0,T=T+Math.imul(Fe,Ve)|0,w=w+Math.imul(De,mt)|0,c=c+Math.imul(De,yt)|0,c=c+Math.imul(We,mt)|0,T=T+Math.imul(We,yt)|0,w=w+Math.imul(le,_t)|0,c=c+Math.imul(le,xt)|0,c=c+Math.imul(Ee,_t)|0,T=T+Math.imul(Ee,xt)|0,w=w+Math.imul(he,wt)|0,c=c+Math.imul(he,St)|0,c=c+Math.imul(Ie,wt)|0,T=T+Math.imul(Ie,St)|0;var ln=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ln>>>26)|0,ln&=67108863,w=Math.imul(ae,Ze),c=Math.imul(ae,Ve),c=c+Math.imul(_e,Ze)|0,T=Math.imul(_e,Ve),w=w+Math.imul(we,mt)|0,c=c+Math.imul(we,yt)|0,c=c+Math.imul(Fe,mt)|0,T=T+Math.imul(Fe,yt)|0,w=w+Math.imul(De,_t)|0,c=c+Math.imul(De,xt)|0,c=c+Math.imul(We,_t)|0,T=T+Math.imul(We,xt)|0,w=w+Math.imul(le,wt)|0,c=c+Math.imul(le,St)|0,c=c+Math.imul(Ee,wt)|0,T=T+Math.imul(Ee,St)|0;var pn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(ae,mt),c=Math.imul(ae,yt),c=c+Math.imul(_e,mt)|0,T=Math.imul(_e,yt),w=w+Math.imul(we,_t)|0,c=c+Math.imul(we,xt)|0,c=c+Math.imul(Fe,_t)|0,T=T+Math.imul(Fe,xt)|0,w=w+Math.imul(De,wt)|0,c=c+Math.imul(De,St)|0,c=c+Math.imul(We,wt)|0,T=T+Math.imul(We,St)|0;var vn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(vn>>>26)|0,vn&=67108863,w=Math.imul(ae,_t),c=Math.imul(ae,xt),c=c+Math.imul(_e,_t)|0,T=Math.imul(_e,xt),w=w+Math.imul(we,wt)|0,c=c+Math.imul(we,St)|0,c=c+Math.imul(Fe,wt)|0,T=T+Math.imul(Fe,St)|0;var un=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(un>>>26)|0,un&=67108863,w=Math.imul(ae,wt),c=Math.imul(ae,St),c=c+Math.imul(_e,wt)|0,T=Math.imul(_e,St);var tn=(C+w|0)+((c&8191)<<13)|0;if(C=(T+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,k[0]=sn,k[1]=ir,k[2]=nr,k[3]=Lr,k[4]=Tr,k[5]=wn,k[6]=En,k[7]=Tn,k[8]=kn,k[9]=An,k[10]=Or,k[11]=en,k[12]=Kr,k[13]=Mn,k[14]=ln,k[15]=pn,k[16]=vn,k[17]=un,k[18]=tn,C!==0)k[19]=C,x.length++;return x};if(!Math.imul)N=O;function P(f,p,x){x.negative=p.negative^f.negative,x.length=f.length+p.length;var h=0,S=0;for(var k=0;k<x.length-1;k++){var C=S;S=0;var w=h&67108863,c=Math.min(k,p.length-1);for(var T=Math.max(0,k-f.length+1);T<=c;T++){var z=k-T,R=f.words[z]|0,q=p.words[T]|0,Q=R*q,ie=Q&67108863;C=C+(Q/67108864|0)|0,ie=ie+w|0,w=ie&67108863,C=C+(ie>>>26)|0,S+=C>>>26,C&=67108863}x.words[k]=w,h=C,C=S}if(h!==0)x.words[k]=h;else x.length--;return x.strip()}function j(f,p,x){var h=new Z;return h.mulp(f,p,x)}s.prototype.mulTo=function(f,p){var x,h=this.length+f.length;if(this.length===10&&f.length===10)x=N(this,f,p);else if(h<63)x=O(this,f,p);else if(h<1024)x=P(this,f,p);else x=j(this,f,p);return x};function Z(f,p){this.x=f,this.y=p}Z.prototype.makeRBT=function(f){var p=Array(f),x=s.prototype._countBits(f)-1;for(var h=0;h<f;h++)p[h]=this.revBin(h,x,f);return p},Z.prototype.revBin=function(f,p,x){if(f===0||f===x-1)return f;var h=0;for(var S=0;S<p;S++)h|=(f&1)<<p-S-1,f>>=1;return h},Z.prototype.permute=function(f,p,x,h,S,k){for(var C=0;C<k;C++)h[C]=p[f[C]],S[C]=x[f[C]]},Z.prototype.transform=function(f,p,x,h,S,k){this.permute(k,f,p,x,h,S);for(var C=1;C<S;C<<=1){var w=C<<1,c=Math.cos(2*Math.PI/w),T=Math.sin(2*Math.PI/w);for(var z=0;z<S;z+=w){var R=c,q=T;for(var Q=0;Q<C;Q++){var ie=x[z+Q],me=h[z+Q],Je=x[z+Q+C],ke=h[z+Q+C],fe=R*Je-q*ke;if(ke=R*ke+q*Je,Je=fe,x[z+Q]=ie+Je,h[z+Q]=me+ke,x[z+Q+C]=ie-Je,h[z+Q+C]=me-ke,Q!==w)fe=c*R-T*q,q=c*q+T*R,R=fe}}}},Z.prototype.guessLen13b=function(f,p){var x=Math.max(p,f)|1,h=x&1,S=0;for(x=x/2|0;x;x=x>>>1)S++;return 1<<S+1+h},Z.prototype.conjugate=function(f,p,x){if(x<=1)return;for(var h=0;h<x/2;h++){var S=f[h];f[h]=f[x-h-1],f[x-h-1]=S,S=p[h],p[h]=-p[x-h-1],p[x-h-1]=-S}},Z.prototype.normalize13b=function(f,p){var x=0;for(var h=0;h<p/2;h++){var S=Math.round(f[2*h+1]/p)*8192+Math.round(f[2*h]/p)+x;if(f[h]=S&67108863,S<67108864)x=0;else x=S/67108864|0}return f},Z.prototype.convert13b=function(f,p,x,h){var S=0;for(var k=0;k<p;k++)S=S+(f[k]|0),x[2*k]=S&8191,S=S>>>13,x[2*k+1]=S&8191,S=S>>>13;for(k=2*p;k<h;++k)x[k]=0;n(S===0),n((S&-8192)===0)},Z.prototype.stub=function(f){var p=Array(f);for(var x=0;x<f;x++)p[x]=0;return p},Z.prototype.mulp=function(f,p,x){var h=2*this.guessLen13b(f.length,p.length),S=this.makeRBT(h),k=this.stub(h),C=Array(h),w=Array(h),c=Array(h),T=Array(h),z=Array(h),R=Array(h),q=x.words;q.length=h,this.convert13b(f.words,f.length,C,h),this.convert13b(p.words,p.length,T,h),this.transform(C,k,w,c,h,S),this.transform(T,k,z,R,h,S);for(var Q=0;Q<h;Q++){var ie=w[Q]*z[Q]-c[Q]*R[Q];c[Q]=w[Q]*R[Q]+c[Q]*z[Q],w[Q]=ie}return this.conjugate(w,c,h),this.transform(w,c,q,k,h,S),this.conjugate(q,k,h),this.normalize13b(q,h),x.negative=f.negative^p.negative,x.length=f.length+p.length,x.strip()},s.prototype.mul=function(f){var p=new s(null);return p.words=Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=Array(this.length+f.length),j(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){n(typeof f==="number"),n(f<67108864);var p=0;for(var x=0;x<this.length;x++){var h=(this.words[x]|0)*f,S=(h&67108863)+(p&67108863);p>>=26,p+=h/67108864|0,p+=S>>>26,this.words[x]=S&67108863}if(p!==0)this.words[x]=p,this.length++;return this.length=f===0?1:this.length,this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=I(f);if(p.length===0)return new s(1);var x=this;for(var h=0;h<p.length;h++,x=x.sqr())if(p[h]!==0)break;if(++h<p.length)for(var S=x.sqr();h<p.length;h++,S=S.sqr()){if(p[h]===0)continue;x=x.mul(S)}return x},s.prototype.iushln=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=67108863>>>26-p<<26-p,S;if(p!==0){var k=0;for(S=0;S<this.length;S++){var C=this.words[S]&h,w=(this.words[S]|0)-C<<p;this.words[S]=w|k,k=C>>>26-p}if(k)this.words[S]=k,this.length++}if(x!==0){for(S=this.length-1;S>=0;S--)this.words[S+x]=this.words[S];for(S=0;S<x;S++)this.words[S]=0;this.length+=x}return this.strip()},s.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},s.prototype.iushrn=function(f,p,x){n(typeof f==="number"&&f>=0);var h;if(p)h=(p-p%26)/26;else h=0;var S=f%26,k=Math.min((f-S)/26,this.length),C=67108863^67108863>>>S<<S,w=x;if(h-=k,h=Math.max(0,h),w){for(var c=0;c<k;c++)w.words[c]=this.words[c];w.length=k}if(k===0);else if(this.length>k){this.length-=k;for(c=0;c<this.length;c++)this.words[c]=this.words[c+k]}else this.words[0]=0,this.length=1;var T=0;for(c=this.length-1;c>=0&&(T!==0||c>=h);c--){var z=this.words[c]|0;this.words[c]=T<<26-S|z>>>S,T=z&C}if(w&&T!==0)w.words[w.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},s.prototype.ishrn=function(f,p,x){return n(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return!1;var S=this.words[x];return!!(S&h)},s.prototype.imaskn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0)x++;if(this.length=Math.min(x,this.length),p!==0){var h=67108863^67108863>>>p<<p;this.words[this.length-1]&=h}return this.strip()},s.prototype.maskn=function(f){return this.clone().imaskn(f)},s.prototype.iaddn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.isubn(-f);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<f)return this.words[0]=f-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(f),this.negative=1,this}return this._iaddn(f)},s.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)if(this.words[p]-=67108864,p===this.length-1)this.words[p+1]=1;else this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(f){return this.clone().iaddn(f)},s.prototype.subn=function(f){return this.clone().isubn(f)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(f,p,x){var h=f.length+x,S;this._expand(h);var k,C=0;for(S=0;S<f.length;S++){k=(this.words[S+x]|0)+C;var w=(f.words[S]|0)*p;k-=w&67108863,C=(k>>26)-(w/67108864|0),this.words[S+x]=k&67108863}for(;S<this.length-x;S++)k=(this.words[S+x]|0)+C,C=k>>26,this.words[S+x]=k&67108863;if(C===0)return this.strip();n(C===-1),C=0;for(S=0;S<this.length;S++)k=-(this.words[S]|0)+C,C=k>>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,h=this.clone(),S=f,k=S.words[S.length-1]|0,C=this._countBits(k);if(x=26-C,x!==0)S=S.ushln(x),h.iushln(x),k=S.words[S.length-1]|0;var w=h.length-S.length,c;if(p!=="mod"){c=new s(null),c.length=w+1,c.words=Array(c.length);for(var T=0;T<c.length;T++)c.words[T]=0}var z=h.clone()._ishlnsubmul(S,1,w);if(z.negative===0){if(h=z,c)c.words[w]=1}for(var R=w-1;R>=0;R--){var q=(h.words[S.length+R]|0)*67108864+(h.words[S.length+R-1]|0);q=Math.min(q/k|0,67108863),h._ishlnsubmul(S,q,R);while(h.negative!==0)if(q--,h.negative=0,h._ishlnsubmul(S,1,R),!h.isZero())h.negative^=1;if(c)c.words[R]=q}if(c)c.strip();if(h.strip(),p!=="div"&&x!==0)h.iushrn(x);return{div:c||null,mod:h}},s.prototype.divmod=function(f,p,x){if(n(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var h,S,k;if(this.negative!==0&&f.negative===0){if(k=this.neg().divmod(f,p),p!=="mod")h=k.div.neg();if(p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.iadd(f)}return{div:h,mod:S}}if(this.negative===0&&f.negative!==0){if(k=this.divmod(f.neg(),p),p!=="mod")h=k.div.neg();return{div:h,mod:k.mod}}if((this.negative&f.negative)!==0){if(k=this.neg().divmod(f.neg(),p),p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.isub(f)}return{div:k.div,mod:S}}if(f.length>this.length||this.cmp(f)<0)return{div:new s(0),mod:this};if(f.length===1){if(p==="div")return{div:this.divn(f.words[0]),mod:null};if(p==="mod")return{div:null,mod:new s(this.modn(f.words[0]))};return{div:this.divn(f.words[0]),mod:new s(this.modn(f.words[0]))}}return this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,h=f.ushrn(1),S=f.andln(1),k=x.cmp(h);if(k<0||S===1&&k===0)return p.div;return p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(f){n(f<=67108863);var p=67108864%f,x=0;for(var h=this.length-1;h>=0;h--)x=(p*x+(this.words[h]|0))%f;return x},s.prototype.idivn=function(f){n(f<=67108863);var p=0;for(var x=this.length-1;x>=0;x--){var h=(this.words[x]|0)+p*67108864;this.words[x]=h/f|0,p=h%f}return this.strip()},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=new s(0),C=new s(1),w=0;while(p.isEven()&&x.isEven())p.iushrn(1),x.iushrn(1),++w;var c=x.clone(),T=p.clone();while(!p.isZero()){for(var z=0,R=1;(p.words[0]&R)===0&&z<26;++z,R<<=1);if(z>0){p.iushrn(z);while(z-- >0){if(h.isOdd()||S.isOdd())h.iadd(c),S.isub(T);h.iushrn(1),S.iushrn(1)}}for(var q=0,Q=1;(x.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0){x.iushrn(q);while(q-- >0){if(k.isOdd()||C.isOdd())k.iadd(c),C.isub(T);k.iushrn(1),C.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(k),S.isub(C);else x.isub(p),k.isub(h),C.isub(S)}return{a:k,b:C,gcd:x.iushln(w)}},s.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=x.clone();while(p.cmpn(1)>0&&x.cmpn(1)>0){for(var C=0,w=1;(p.words[0]&w)===0&&C<26;++C,w<<=1);if(C>0){p.iushrn(C);while(C-- >0){if(h.isOdd())h.iadd(k);h.iushrn(1)}}for(var c=0,T=1;(x.words[0]&T)===0&&c<26;++c,T<<=1);if(c>0){x.iushrn(c);while(c-- >0){if(S.isOdd())S.iadd(k);S.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(S);else x.isub(p),S.isub(h)}var z;if(p.cmpn(1)===0)z=h;else z=S;if(z.cmpn(0)<0)z.iadd(f);return z},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var h=0;p.isEven()&&x.isEven();h++)p.iushrn(1),x.iushrn(1);do{while(p.isEven())p.iushrn(1);while(x.isEven())x.iushrn(1);var S=p.cmp(x);if(S<0){var k=p;p=x,x=k}else if(S===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(h)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){n(typeof f==="number");var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return this._expand(x+1),this.words[x]|=h,this;var S=h;for(var k=x;S!==0&&k<this.length;k++){var C=this.words[k]|0;C+=S,S=C>>>26,C&=67108863,this.words[k]=C}if(S!==0)this.words[k]=S,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var x;if(this.length>1)x=1;else{if(p)f=-f;n(f<=67108863,"Number is too big");var h=this.words[0]|0;x=h===f?0:h<f?-1:1}if(this.negative!==0)return-x|0;return x},s.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);if(this.negative!==0)return-p|0;return p},s.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;var p=0;for(var x=this.length-1;x>=0;x--){var h=this.words[x]|0,S=f.words[x]|0;if(h===S)continue;if(h<S)p=-1;else if(h>S)p=1;break}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new Y(f)},s.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var V={k256:null,p224:null,p192:null,p25519:null};function W(f,p){this.name=f,this.p=new s(p,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}W.prototype._tmp=function(){var f=new s(null);return f.words=Array(Math.ceil(this.n/13)),f},W.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var h=x<this.n?-1:p.ucmp(this.p);if(h===0)p.words[0]=0,p.length=1;else if(h>0)p.isub(this.p);else if(p.strip!==void 0)p.strip();else p._strip();return p},W.prototype.split=function(f,p){f.iushrn(this.n,0,p)},W.prototype.imulK=function(f){return f.imul(this.k)};function J(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(J,W),J.prototype.split=function(f,p){var x=4194303,h=Math.min(f.length,9);for(var S=0;S<h;S++)p.words[S]=f.words[S];if(p.length=h,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];p.words[p.length++]=k&x;for(S=10;S<f.length;S++){var C=f.words[S]|0;f.words[S-10]=(C&x)<<4|k>>>22,k=C}if(k>>>=22,f.words[S-10]=k,k===0&&f.length>10)f.length-=10;else f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;var p=0;for(var x=0;x<f.length;x++){var h=f.words[x]|0;p+=h*977,f.words[x]=p&67108863,p=h*64+(p/67108864|0)}if(f.words[f.length-1]===0){if(f.length--,f.words[f.length-1]===0)f.length--}return f};function ve(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(ve,W);function ce(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(ce,W);function Me(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(Me,W),Me.prototype.imulK=function(f){var p=0;for(var x=0;x<f.length;x++){var h=(f.words[x]|0)*19+p,S=h&67108863;h>>>=26,f.words[x]=S,p=h}if(p!==0)f.words[f.length++]=p;return f},s._prime=function(f){if(V[f])return V[f];var p;if(f==="k256")p=new J;else if(f==="p224")p=new ve;else if(f==="p192")p=new ce;else if(f==="p25519")p=new Me;else throw Error("Unknown prime "+f);return V[f]=p,p};function Y(f){if(typeof f==="string"){var p=s._prime(f);this.m=p.p,this.prime=p}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}Y.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},Y.prototype.imod=function(f){if(this.prime)return this.prime.ireduce(f)._forceRed(this);return f.umod(this.m)._forceRed(this)},Y.prototype.neg=function(f){if(f.isZero())return f.clone();return this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x._forceRed(this)},Y.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x},Y.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x._forceRed(this)},Y.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x},Y.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},Y.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},Y.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}var h=this.m.subn(1),S=0;while(!h.isZero()&&h.andln(1)===0)S++,h.iushrn(1);n(!h.isZero());var k=new s(1).toRed(this),C=k.redNeg(),w=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new s(2*c*c).toRed(this);while(this.pow(c,w).cmp(C)!==0)c.redIAdd(C);var T=this.pow(c,h),z=this.pow(f,h.addn(1).iushrn(1)),R=this.pow(f,h),q=S;while(R.cmp(k)!==0){var Q=R;for(var ie=0;Q.cmp(k)!==0;ie++)Q=Q.redSqr();n(ie<q);var me=this.pow(T,new s(1).iushln(q-ie-1));z=z.redMul(me),T=me.redSqr(),R=R.redMul(T),q=ie}return z},Y.prototype.invm=function(f){var p=f._invmp(this.m);if(p.negative!==0)return p.negative=0,this.imod(p).redNeg();else return this.imod(p)},Y.prototype.pow=function(f,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var x=4,h=Array(1<<x);h[0]=new s(1).toRed(this),h[1]=f;for(var S=2;S<h.length;S++)h[S]=this.mul(h[S-1],f);var k=h[0],C=0,w=0,c=p.bitLength()%26;if(c===0)c=26;for(S=p.length-1;S>=0;S--){var T=p.words[S];for(var z=c-1;z>=0;z--){var R=T>>z&1;if(k!==h[0])k=this.sqr(k);if(R===0&&C===0){w=0;continue}if(C<<=1,C|=R,w++,w!==x&&(S!==0||z!==0))continue;k=this.mul(k,h[C]),w=0,C=0}c=26}return k},Y.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},Y.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new Te(f)};function Te(f){if(Y.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(Te,Y),Te.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Te.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},Te.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof t>"u"||t,e)}),n1e=ct((e)=>{var t=V0(),r=zo(),a=e;a.define=function(l,s){return new n(l,s)};function n(l,s){this.name=l,this.body=s,this.decoders={},this.encoders={}}n.prototype._createNamed=function(l){var s;try{s=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
376
+ `)+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}function yV(e){return Array.isArray(e)}function LM(e){return typeof e==="boolean"}function P2(e){return e===null}function b0e(e){return e==null}function vV(e){return typeof e==="number"}function $2(e){return typeof e==="string"}function y0e(e){return typeof e==="symbol"}function Sh(e){return e===void 0}function N2(e){return xh(e)&&PM(e)==="[object RegExp]"}function xh(e){return typeof e==="object"&&e!==null}function DM(e){return xh(e)&&PM(e)==="[object Date]"}function D2(e){return xh(e)&&(PM(e)==="[object Error]"||e instanceof Error)}function z2(e){return typeof e==="function"}function v0e(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e>"u"}function S0e(e){return e instanceof Buffer}function PM(e){return Object.prototype.toString.call(e)}function OM(e){return e<10?"0"+e.toString(10):e.toString(10)}function _0e(){var e=new Date,t=[OM(e.getHours()),OM(e.getMinutes()),OM(e.getSeconds())].join(":");return[e.getDate(),x0e[e.getMonth()],t].join(" ")}function SV(...e){console.log("%s - %s",_0e(),zM.apply(null,e))}function xV(e,t){if(t)e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function $M(e,t){if(!t||!xh(t))return e;var r=Object.keys(t),a=r.length;while(a--)e[r[a]]=t[r[a]];return e}function _V(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function BM(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function EV(e){if(typeof e!=="function")throw TypeError('The "original" argument must be of type Function');function t(...r){var a=r.pop();if(typeof a!=="function")throw TypeError("The last argument must be of type Function");var n=this,l=function(...s){return a.apply(n,...s)};e.apply(this,r).then(function(s){process.nextTick(l.bind(null,null,s))},function(s){process.nextTick(BM.bind(null,s,l))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),t}var s0e,u0e,tf,g0e=()=>{},x0e,wV,TV,kV,w0e;var MV=Le(()=>{s0e=/%[sdj%]/g;u0e=((e={},t={},r)=>((r=typeof process<"u"&&!1)&&(r=r.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),t=new RegExp("^"+r+"$","i"),(a)=>{if(a=a.toUpperCase(),!e[a])if(t.test(a))e[a]=function(...n){console.error("%s: %s",a,pid,zM.apply(null,...n))};else e[a]=function(){};return e[a]}))(),tf=((e)=>(e.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]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.custom=Symbol.for("nodejs.util.inspect.custom"),e))(function(e,t,...r){var a={seen:[],stylize:f0e};if(r.length>=1)a.depth=r[0];if(r.length>=2)a.colors=r[1];if(LM(t))a.showHidden=t;else if(t)$M(a,t);if(Sh(a.showHidden))a.showHidden=!1;if(Sh(a.depth))a.depth=2;if(Sh(a.colors))a.colors=!1;if(a.colors)a.stylize=c0e;return L2(a,e,a.depth)});x0e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];wV=((e)=>(e.custom=Symbol.for("nodejs.util.promisify.custom"),e))(function(e){if(typeof e!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&e[kCustomPromisifiedSymbol]){var t=e[kCustomPromisifiedSymbol];if(typeof t!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,kCustomPromisifiedSymbol,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(...r){var a,n,l=new Promise(function(s,d){a=s,n=d});r.push(function(s,d){if(s)n(s);else a(d)});try{e.apply(this,r)}catch(s){n(s)}return l}if(Object.setPrototypeOf(t,Object.getPrototypeOf(e)),kCustomPromisifiedSymbol)Object.defineProperty(t,kCustomPromisifiedSymbol,{value:t,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))});({TextEncoder:TV,TextDecoder:kV}=globalThis),w0e={TextEncoder:TV,TextDecoder:kV,promisify:wV,log:SV,inherits:xV,_extend:$M,callbackifyOnRejected:BM,callbackify:EV}});var $0={};Vn($0,{EventEmitter:()=>wu,addAbortListener:()=>ZV,captureRejectionSymbol:()=>NV,default:()=>O0e,getEventListeners:()=>$V,getMaxListeners:()=>HV,init:()=>wu,listenerCount:()=>UV,once:()=>PV,setMaxListeners:()=>BV});function DV(e,t){var{_events:r}=e;if(t[0]??=Error("Unhandled error."),!r)throw t[0];var a=r[OV];if(a)for(var n of RV.call(a))n.apply(e,t);var l=r.error;if(!l)throw t[0];for(var n of RV.call(l))n.apply(e,t);return!0}function k0e(e,t,r,a){t.then(void 0,function(n){queueMicrotask(()=>A0e(e,n,r,a))})}function A0e(e,t,r,a){if(typeof e[CV]==="function")e[CV](t,r,...a);else try{e[rf]=!1,e.emit("error",t)}finally{e[rf]=!0}}function zV(e,t,r){r.warned=!0;let a=Error(`Possible EventEmitter memory leak detected. ${r.length} ${String(t)} listeners added to [${e.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=r.length,console.warn(a)}function LV(e,t,...r){this.removeListener(e,t),t.apply(this,r)}function PV(e,t,r){var a=r?.signal;if(jV(a,"options.signal"),a?.aborted)throw new UM(void 0,{cause:a?.reason});let{resolve:n,reject:l,promise:s}=$newPromiseCapability(Promise),d=(v)=>{if(e.removeListener(t,b),a!=null)B2(a,"abort",y);l(v)},b=(...v)=>{if(typeof e.removeListener==="function")e.removeListener("error",d);if(a!=null)B2(a,"abort",y);n(v)};if(IV(e,t,b,{once:!0}),t!=="error"&&typeof e.once==="function")e.once("error",d);function y(){B2(e,t,b),B2(e,"error",d),l(new UM(void 0,{cause:a?.reason}))}if(a!=null)IV(a,"abort",y,{once:!0});return s}function $V(e,t){return e.listeners(t)}function BV(e,...t){HM(e,"setMaxListeners",0);var r;if(t&&(r=t.length))for(let a=0;a<r;a++)t[a].setMaxListeners(e);else nf=e}function UV(e,t){return e.listenerCount(t)}function B2(e,t,r,a){if(typeof e.removeListener==="function")e.removeListener(t,r);else e.removeEventListener(t,r,a)}function IV(e,t,r,a){if(typeof e.on==="function")if(a.once)e.once(t,r);else e.on(t,r);else e.addEventListener(t,r,a)}function _h(e,t,r){let a=TypeError(`The "${e}" argument must be of type ${t}. Received ${r}`);return a.code="ERR_INVALID_ARG_TYPE",a}function R0e(e,t,r){let a=RangeError(`The "${e}" argument is out of range. It must be ${t}. Received ${r}`);return a.code="ERR_OUT_OF_RANGE",a}function jV(e,t){if(e!==void 0&&(e===null||typeof e!=="object"||!("aborted"in e)))throw _h(t,"AbortSignal",e)}function HM(e,t,r,a){if(typeof e!=="number")throw _h(t,"number",e);if(r!=null&&e<r||a!=null&&e>a||(r!=null||a!=null)&&Number.isNaN(e))throw R0e(t,`${r!=null?`>= ${r}`:""}${r!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,e)}function P0(e){if(typeof e!=="function")throw TypeError("The listener must be a function")}function I0e(e,t){if(typeof e!=="boolean")throw _h(t,"boolean",e)}function HV(e){return e?._maxListeners??nf}function ZV(e,t){if(e===void 0)throw _h("signal","AbortSignal",e);if(jV(e,"signal"),typeof t!=="function")throw _h("listener","function",t);let r;if(e.aborted)queueMicrotask(()=>t());else e.addEventListener("abort",t,{__proto__:null,once:!0}),r=()=>{e.removeEventListener("abort",t)};return{__proto__:null,[Symbol.dispose](){r?.()}}}var jM,rf,OV,E0e,T0e,CV,NV,RV,nf=10,wu=function(e){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[rf]=e?.captureRejections?Boolean(e?.captureRejections):dn[rf])this.emit=C0e},dn,M0e=function(e,...t){if(e==="error")return DV(this,t);var{_events:r}=this;if(r===void 0)return!1;var a=r[e];if(a===void 0)return!1;let n=a.length>1?a.slice():a;for(let l=0,{length:s}=n;l<s;l++){let d=n[l];switch(t.length){case 0:d.call(this);break;case 1:d.call(this,t[0]);break;case 2:d.call(this,t[0],t[1]);break;case 3:d.call(this,t[0],t[1],t[2]);break;default:d.apply(this,t);break}}return!0},C0e=function(e,...t){if(e==="error")return DV(this,t);var{_events:r}=this;if(r===void 0)return!1;var a=r[e];if(a===void 0)return!1;let n=a.length>1?a.slice():a;for(let l=0,{length:s}=n;l<s;l++){let d=n[l],b;switch(t.length){case 0:b=d.call(this);break;case 1:b=d.call(this,t[0]);break;case 2:b=d.call(this,t[0],t[1]);break;case 3:b=d.call(this,t[0],t[1],t[2]);break;default:b=d.apply(this,t);break}if(b!==void 0&&typeof b?.then==="function"&&b.then===Promise.prototype.then)k0e(this,b,e,t)}return!0},UM,O0e;var B0=Le(()=>{jM=Symbol.for,rf=Symbol("kCapture"),OV=jM("events.errorMonitor"),E0e=Symbol("events.maxEventTargetListeners"),T0e=Symbol("events.maxEventTargetListenersWarned"),CV=jM("nodejs.rejection"),NV=jM("nodejs.rejection"),RV=Array.prototype.slice,dn=wu.prototype={};dn._events=void 0;dn._eventsCount=0;dn._maxListeners=void 0;dn.setMaxListeners=function(e){return HM(e,"setMaxListeners",0),this._maxListeners=e,this};dn.constructor=wu;dn.getMaxListeners=function(){return this?._maxListeners??nf};dn.emit=M0e;dn.addListener=function(e,t){P0(t);var r=this._events;if(!r)r=this._events={__proto__:null},this._eventsCount=0;else if(r.newListener)this.emit("newListener",e,t.listener??t);var a=r[e];if(!a)r[e]=[t],this._eventsCount++;else{a.push(t);var n=this._maxListeners??nf;if(n>0&&a.length>n&&!a.warned)zV(this,e,a)}return this};dn.on=dn.addListener;dn.prependListener=function(e,t){P0(t);var r=this._events;if(!r)r=this._events={__proto__:null},this._eventsCount=0;else if(r.newListener)this.emit("newListener",e,t.listener??t);var a=r[e];if(!a)r[e]=[t],this._eventsCount++;else{a.unshift(t);var n=this._maxListeners??nf;if(n>0&&a.length>n&&!a.warned)zV(this,e,a)}return this};dn.once=function(e,t){P0(t);let r=LV.bind(this,e,t);return r.listener=t,this.addListener(e,r),this};dn.prependOnceListener=function(e,t){P0(t);let r=LV.bind(this,e,t);return r.listener=t,this.prependListener(e,r),this};dn.removeListener=function(e,t){P0(t);var{_events:r}=this;if(!r)return this;var a=r[e];if(!a)return this;var n=a.length;let l=-1;for(let s=n-1;s>=0;s--)if(a[s]===t||a[s].listener===t){l=s;break}if(l<0)return this;if(l===0)a.shift();else a.splice(l,1);if(a.length===0)delete r[e],this._eventsCount--;return this};dn.off=dn.removeListener;dn.removeAllListeners=function(e){var{_events:t}=this;if(e&&t){if(t[e])delete t[e],this._eventsCount--}else this._events={__proto__:null};return this};dn.listeners=function(e){var{_events:t}=this;if(!t)return[];var r=t[e];if(!r)return[];return r.map((a)=>a.listener??a)};dn.rawListeners=function(e){var{_events:t}=this;if(!t)return[];var r=t[e];if(!r)return[];return r.slice()};dn.listenerCount=function(e){var{_events:t}=this;if(!t)return 0;return t[e]?.length??0};dn.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};dn[rf]=!1;UM=class UM extends Error{constructor(e="The operation was aborted",t=void 0){if(t!==void 0&&typeof t!=="object")throw _h("options","Object",t);super(e,t);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(wu,{captureRejections:{get(){return dn[rf]},set(e){I0e(e,"EventEmitter.captureRejections"),dn[rf]=e},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>nf,set:(e)=>{HM(e,"defaultMaxListeners",0),nf=e}},kMaxEventTargetListeners:{value:E0e,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:T0e,enumerable:!1,configurable:!1,writable:!1}});Object.assign(wu,{once:PV,getEventListeners:$V,getMaxListeners:HV,setMaxListeners:BV,EventEmitter:wu,usingDomains:!1,captureRejectionSymbol:NV,errorMonitor:OV,addAbortListener:ZV,init:wu,listenerCount:UV});O0e=wu});var GM=oi(function(_Oe,XV){var jr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xn=jr((e,t)=>{class r extends Error{constructor(a){if(!Array.isArray(a))throw TypeError(`Expected input to be an Array, got ${typeof a}`);let n="";for(let l=0;l<a.length;l++)n+=` ${a[l].stack}
377
+ `;super(n);this.name="AggregateError",this.errors=a}}t.exports={AggregateError:r,ArrayIsArray(a){return Array.isArray(a)},ArrayPrototypeIncludes(a,n){return a.includes(n)},ArrayPrototypeIndexOf(a,n){return a.indexOf(n)},ArrayPrototypeJoin(a,n){return a.join(n)},ArrayPrototypeMap(a,n){return a.map(n)},ArrayPrototypePop(a,n){return a.pop(n)},ArrayPrototypePush(a,n){return a.push(n)},ArrayPrototypeSlice(a,n,l){return a.slice(n,l)},Error,FunctionPrototypeCall(a,n,...l){return a.call(n,...l)},FunctionPrototypeSymbolHasInstance(a,n){return Function.prototype[Symbol.hasInstance].call(a,n)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(a,n){return Object.defineProperties(a,n)},ObjectDefineProperty(a,n,l){return Object.defineProperty(a,n,l)},ObjectGetOwnPropertyDescriptor(a,n){return Object.getOwnPropertyDescriptor(a,n)},ObjectKeys(a){return Object.keys(a)},ObjectSetPrototypeOf(a,n){return Object.setPrototypeOf(a,n)},Promise,PromisePrototypeCatch(a,n){return a.catch(n)},PromisePrototypeThen(a,n,l){return a.then(n,l)},PromiseReject(a){return Promise.reject(a)},PromiseResolve(a){return Promise.resolve(a)},ReflectApply:Reflect.apply,RegExpPrototypeTest(a,n){return a.test(n)},SafeSet:Set,String,StringPrototypeSlice(a,n,l){return a.slice(n,l)},StringPrototypeToLowerCase(a){return a.toLowerCase()},StringPrototypeToUpperCase(a){return a.toUpperCase()},StringPrototypeTrim(a){return a.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(a,n,l){return a.set(n,l)},Boolean,Uint8Array}}),FV=jr((e,t)=>{t.exports={format(r,...a){return r.replace(/%([sdifj])/g,function(...[n,l]){let s=a.shift();if(l==="f")return s.toFixed(6);else if(l==="j")return JSON.stringify(s);else if(l==="s"&&typeof s==="object")return`${s.constructor!==Object?s.constructor.name:""} {}`.trim();else return s.toString()})},inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"'))return`"${r}"`;else if(!r.includes("`")&&!r.includes("${"))return`\`${r}\``}return`'${r}'`;case"number":if(isNaN(r))return"NaN";else if(Object.is(r,-0))return String(r);return r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}}}}),Ji=jr((e,t)=>{var{format:r,inspect:a}=FV(),{AggregateError:n}=xn(),l=globalThis.AggregateError||n,s=Symbol("kIsNodeError"),d=["string","function","number","object","Function","Object","boolean","bigint","symbol"],b=/^([A-Z][a-z0-9]*)+$/,y={};function v(P,j){if(!P)throw new y.ERR_INTERNAL_ASSERTION(j)}function g(P){let j="",Z=P.length,V=P[0]==="-"?1:0;for(;Z>=V+4;Z-=3)j=`_${P.slice(Z-3,Z)}${j}`;return`${P.slice(0,Z)}${j}`}function _(P,j,Z){if(typeof j==="function")return v(j.length<=Z.length,`Code: ${P}; The provided arguments length (${Z.length}) does not match the required ones (${j.length}).`),j(...Z);let V=(j.match(/%[dfijoOs]/g)||[]).length;if(v(V===Z.length,`Code: ${P}; The provided arguments length (${Z.length}) does not match the required ones (${V}).`),Z.length===0)return j;return r(j,...Z)}function A(P,j,Z){if(!Z)Z=Error;class V extends Z{constructor(...W){super(_(P,j,W))}toString(){return`${this.name} [${P}]: ${this.message}`}}Object.defineProperties(V.prototype,{name:{value:Z.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${P}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),V.prototype.code=P,V.prototype[s]=!0,y[P]=V}function I(P){let j="__node_internal_"+P.name;return Object.defineProperty(P,"name",{value:j}),P}function O(P,j){if(P&&j&&P!==j){if(Array.isArray(j.errors))return j.errors.push(P),j;let Z=new l([j,P],j.message);return Z.code=j.code,Z}return P||j}class N extends Error{constructor(P="The operation was aborted",j=void 0){if(j!==void 0&&typeof j!=="object")throw new y.ERR_INVALID_ARG_TYPE("options","Object",j);super(P,j);this.code="ABORT_ERR",this.name="AbortError"}}A("ERR_ASSERTION","%s",Error),A("ERR_INVALID_ARG_TYPE",(P,j,Z)=>{if(v(typeof P==="string","'name' must be a string"),!Array.isArray(j))j=[j];let V="The ";if(P.endsWith(" argument"))V+=`${P} `;else V+=`"${P}" ${P.includes(".")?"property":"argument"} `;V+="must be ";let W=[],J=[],ve=[];for(let Me of j)if(v(typeof Me==="string","All expected entries have to be of type string"),d.includes(Me))W.push(Me.toLowerCase());else if(b.test(Me))J.push(Me);else v(Me!=="object",'The value "object" should be written as "Object"'),ve.push(Me);if(J.length>0){let Me=W.indexOf("object");if(Me!==-1)W.splice(W,Me,1),J.push("Object")}if(W.length>0){switch(W.length){case 1:V+=`of type ${W[0]}`;break;case 2:V+=`one of type ${W[0]} or ${W[1]}`;break;default:{let Me=W.pop();V+=`one of type ${W.join(", ")}, or ${Me}`}}if(J.length>0||ve.length>0)V+=" or "}if(J.length>0){switch(J.length){case 1:V+=`an instance of ${J[0]}`;break;case 2:V+=`an instance of ${J[0]} or ${J[1]}`;break;default:{let Me=J.pop();V+=`an instance of ${J.join(", ")}, or ${Me}`}}if(ve.length>0)V+=" or "}switch(ve.length){case 0:break;case 1:if(ve[0].toLowerCase()!==ve[0])V+="an ";V+=`${ve[0]}`;break;case 2:V+=`one of ${ve[0]} or ${ve[1]}`;break;default:{let Me=ve.pop();V+=`one of ${ve.join(", ")}, or ${Me}`}}if(Z==null)V+=`. Received ${Z}`;else if(typeof Z==="function"&&Z.name)V+=`. Received function ${Z.name}`;else if(typeof Z==="object"){var ce;if((ce=Z.constructor)!==null&&ce!==void 0&&ce.name)V+=`. Received an instance of ${Z.constructor.name}`;else{let Me=a(Z,{depth:-1});V+=`. Received ${Me}`}}else{let Me=a(Z,{colors:!1});if(Me.length>25)Me=`${Me.slice(0,25)}...`;V+=`. Received type ${typeof Z} (${Me})`}return V},TypeError),A("ERR_INVALID_ARG_VALUE",(P,j,Z="is invalid")=>{let V=a(j);if(V.length>128)V=V.slice(0,128)+"...";return`The ${P.includes(".")?"property":"argument"} '${P}' ${Z}. Received ${V}`},TypeError),A("ERR_INVALID_RETURN_VALUE",(P,j,Z)=>{var V;let W=Z!==null&&Z!==void 0&&(V=Z.constructor)!==null&&V!==void 0&&V.name?`instance of ${Z.constructor.name}`:`type ${typeof Z}`;return`Expected ${P} to be returned from the "${j}" function but got ${W}.`},TypeError),A("ERR_MISSING_ARGS",(...P)=>{v(P.length>0,"At least one arg needs to be specified");let j,Z=P.length;switch(P=(Array.isArray(P)?P:[P]).map((V)=>`"${V}"`).join(" or "),Z){case 1:j+=`The ${P[0]} argument`;break;case 2:j+=`The ${P[0]} and ${P[1]} arguments`;break;default:{let V=P.pop();j+=`The ${P.join(", ")}, and ${V} arguments`}break}return`${j} must be specified`},TypeError),A("ERR_OUT_OF_RANGE",(P,j,Z)=>{v(j,'Missing "range" argument');let V;if(Number.isInteger(Z)&&Math.abs(Z)>4294967296)V=g(String(Z));else if(typeof Z==="bigint"){V=String(Z);let W=BigInt(2)**BigInt(32);if(Z>W||Z<-W)V=g(V);V+="n"}else V=a(Z);return`The value of "${P}" is out of range. It must be ${j}. Received ${V}`},RangeError),A("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),A("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),A("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),A("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),A("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),A("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),A("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),A("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),A("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),A("ERR_STREAM_WRITE_AFTER_END","write after end",Error),A("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:N,aggregateTwoErrors:I(O),hideStackFrames:I,codes:y}}),N0e=jr((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=new WeakMap,a=new WeakMap;function n(Y){let Te=r.get(Y);return console.assert(Te!=null,"'this' is expected an Event object, but got",Y),Te}function l(Y){if(Y.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",Y.passiveListener);return}if(!Y.event.cancelable)return;if(Y.canceled=!0,typeof Y.event.preventDefault==="function")Y.event.preventDefault()}function s(Y,Te){r.set(this,{eventTarget:Y,event:Te,eventPhase:2,currentTarget:Y,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:Te.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let f=Object.keys(Te);for(let p=0;p<f.length;++p){let x=f[p];if(!(x in this))Object.defineProperty(this,x,d(x))}}if(s.prototype={get type(){return n(this).event.type},get target(){return n(this).eventTarget},get currentTarget(){return n(this).currentTarget},composedPath(){let Y=n(this).currentTarget;if(Y==null)return[];return[Y]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return n(this).eventPhase},stopPropagation(){let Y=n(this);if(Y.stopped=!0,typeof Y.event.stopPropagation==="function")Y.event.stopPropagation()},stopImmediatePropagation(){let Y=n(this);if(Y.stopped=!0,Y.immediateStopped=!0,typeof Y.event.stopImmediatePropagation==="function")Y.event.stopImmediatePropagation()},get bubbles(){return Boolean(n(this).event.bubbles)},get cancelable(){return Boolean(n(this).event.cancelable)},preventDefault(){l(n(this))},get defaultPrevented(){return n(this).canceled},get composed(){return Boolean(n(this).event.composed)},get timeStamp(){return n(this).timeStamp},get srcElement(){return n(this).eventTarget},get cancelBubble(){return n(this).stopped},set cancelBubble(Y){if(!Y)return;let Te=n(this);if(Te.stopped=!0,typeof Te.event.cancelBubble==="boolean")Te.event.cancelBubble=!0},get returnValue(){return!n(this).canceled},set returnValue(Y){if(!Y)l(n(this))},initEvent(){}},Object.defineProperty(s.prototype,"constructor",{value:s,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(s.prototype,window.Event.prototype),a.set(window.Event.prototype,s);function d(Y){return{get(){return n(this).event[Y]},set(Te){n(this).event[Y]=Te},configurable:!0,enumerable:!0}}function b(Y){return{value(){let Te=n(this).event;return Te[Y].apply(Te,arguments)},configurable:!0,enumerable:!0}}function y(Y,Te){let f=Object.keys(Te);if(f.length===0)return Y;function p(x,h){Y.call(this,x,h)}p.prototype=Object.create(Y.prototype,{constructor:{value:p,configurable:!0,writable:!0}});for(let x=0;x<f.length;++x){let h=f[x];if(!(h in Y.prototype)){let S=typeof Object.getOwnPropertyDescriptor(Te,h).value==="function";Object.defineProperty(p.prototype,h,S?b(h):d(h))}}return p}function v(Y){if(Y==null||Y===Object.prototype)return s;let Te=a.get(Y);if(Te==null)Te=y(v(Object.getPrototypeOf(Y)),Y),a.set(Y,Te);return Te}function g(Y,Te){return new(v(Object.getPrototypeOf(Te)))(Y,Te)}function _(Y){return n(Y).immediateStopped}function A(Y,Te){n(Y).eventPhase=Te}function I(Y,Te){n(Y).currentTarget=Te}function O(Y,Te){n(Y).passiveListener=Te}var N=new WeakMap,P=1,j=2,Z=3;function V(Y){return Y!==null&&typeof Y==="object"}function W(Y){let Te=N.get(Y);if(Te==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return Te}function J(Y){return{get(){let Te=W(this).get(Y);while(Te!=null){if(Te.listenerType===Z)return Te.listener;Te=Te.next}return null},set(Te){if(typeof Te!=="function"&&!V(Te))Te=null;let f=W(this),p=null,x=f.get(Y);while(x!=null){if(x.listenerType===Z)if(p!==null)p.next=x.next;else if(x.next!==null)f.set(Y,x.next);else f.delete(Y);else p=x;x=x.next}if(Te!==null){let h={listener:Te,listenerType:Z,passive:!1,once:!1,next:null};if(p===null)f.set(Y,h);else p.next=h}},configurable:!0,enumerable:!0}}function ve(Y,Te){Object.defineProperty(Y,`on${Te}`,J(Te))}function ce(Y){function Te(){Me.call(this)}Te.prototype=Object.create(Me.prototype,{constructor:{value:Te,configurable:!0,writable:!0}});for(let f=0;f<Y.length;++f)ve(Te.prototype,Y[f]);return Te}function Me(){if(this instanceof Me){N.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return ce(arguments[0]);if(arguments.length>0){let Y=Array(arguments.length);for(let Te=0;Te<arguments.length;++Te)Y[Te]=arguments[Te];return ce(Y)}throw TypeError("Cannot call a class as a function")}if(Me.prototype={addEventListener(Y,Te,f){if(Te==null)return;if(typeof Te!=="function"&&!V(Te))throw TypeError("'listener' should be a function or an object.");let p=W(this),x=V(f),h=(x?Boolean(f.capture):Boolean(f))?P:j,S={listener:Te,listenerType:h,passive:x&&Boolean(f.passive),once:x&&Boolean(f.once),next:null},k=p.get(Y);if(k===void 0){p.set(Y,S);return}let C=null;while(k!=null){if(k.listener===Te&&k.listenerType===h)return;C=k,k=k.next}C.next=S},removeEventListener(Y,Te,f){if(Te==null)return;let p=W(this),x=(V(f)?Boolean(f.capture):Boolean(f))?P:j,h=null,S=p.get(Y);while(S!=null){if(S.listener===Te&&S.listenerType===x){if(h!==null)h.next=S.next;else if(S.next!==null)p.set(Y,S.next);else p.delete(Y);return}h=S,S=S.next}},dispatchEvent(Y){if(Y==null||typeof Y.type!=="string")throw TypeError('"event.type" should be a string.');let Te=W(this),f=Y.type,p=Te.get(f);if(p==null)return!0;let x=g(this,Y),h=null;while(p!=null){if(p.once)if(h!==null)h.next=p.next;else if(p.next!==null)Te.set(f,p.next);else Te.delete(f);else h=p;if(O(x,p.passive?p.listener:null),typeof p.listener==="function")try{p.listener.call(this,x)}catch(S){if(typeof console<"u"&&typeof console.error==="function")console.error(S)}else if(p.listenerType!==Z&&typeof p.listener.handleEvent==="function")p.listener.handleEvent(x);if(_(x))break;p=p.next}return O(x,null),A(x,0),I(x,null),!x.defaultPrevented}},Object.defineProperty(Me.prototype,"constructor",{value:Me,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(Me.prototype,window.EventTarget.prototype);e.defineEventAttribute=ve,e.EventTarget=Me,e.default=Me,t.exports=Me,t.exports.EventTarget=t.exports.default=Me,t.exports.defineEventAttribute=ve}),U0=jr((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=N0e();class a extends r.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let v=s.get(this);if(typeof v!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return v}}r.defineEventAttribute(a.prototype,"abort");function n(){let v=Object.create(a.prototype);return r.EventTarget.call(v),s.set(v,!1),v}function l(v){if(s.get(v)!==!1)return;s.set(v,!0),v.dispatchEvent({type:"abort"})}var s=new WeakMap;if(Object.defineProperties(a.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(a.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class d{constructor(){b.set(this,n())}get signal(){return y(this)}abort(){l(y(this))}}var b=new WeakMap;function y(v){let g=b.get(v);if(g==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${v===null?"null":typeof v}`);return g}if(Object.defineProperties(d.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(d.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});e.AbortController=d,e.AbortSignal=a,e.default=d,t.exports=d,t.exports.AbortController=t.exports.default=d,t.exports.AbortSignal=a}),mo=jr((e,t)=>{var r=(ci(),Cr(ui)),{format:a,inspect:n}=FV(),{codes:{ERR_INVALID_ARG_TYPE:l}}=Ji(),{kResistStopPropagation:s,AggregateError:d,SymbolDispose:b}=xn(),y=globalThis.AbortSignal||U0().AbortSignal,v=globalThis.AbortController||U0().AbortController,g=Object.getPrototypeOf(async function(){}).constructor,_=globalThis.Blob||r.Blob,A=typeof _<"u"?function(N){return N instanceof _}:function(N){return!1},I=(N,P)=>{if(N!==void 0&&(N===null||typeof N!=="object"||!("aborted"in N)))throw new l(P,"AbortSignal",N)},O=(N,P)=>{if(typeof N!=="function")throw new l(P,"Function",N)};t.exports={AggregateError:d,kEmptyObject:Object.freeze({}),once(N){let P=!1;return function(...j){if(P)return;P=!0,N.apply(this,j)}},createDeferredPromise:function(){let N,P;return{promise:new Promise((j,Z)=>{N=j,P=Z}),resolve:N,reject:P}},promisify(N){return new Promise((P,j)=>{N((Z,...V)=>{if(Z)return j(Z);return P(...V)})})},debuglog(){return function(){}},format:a,inspect:n,types:{isAsyncFunction(N){return N instanceof g},isArrayBufferView(N){return ArrayBuffer.isView(N)}},isBlob:A,deprecate(N,P){return N},addAbortListener:(B0(),Cr($0)).addAbortListener||function(N,P){if(N===void 0)throw new l("signal","AbortSignal",N);I(N,"signal"),O(P,"listener");let j;if(N.aborted)queueMicrotask(()=>P());else N.addEventListener("abort",P,{__proto__:null,once:!0,[s]:!0}),j=()=>{N.removeEventListener("abort",P)};return{__proto__:null,[b](){var Z;(Z=j)===null||Z===void 0||Z()}}},AbortSignalAny:y.any||function(N){if(N.length===1)return N[0];let P=new v,j=()=>P.abort();return N.forEach((Z)=>{I(Z,"signals"),Z.addEventListener("abort",j,{once:!0})}),P.signal.addEventListener("abort",()=>{N.forEach((Z)=>Z.removeEventListener("abort",j))},{once:!0}),P.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),j0=jr((e,t)=>{var{ArrayIsArray:r,ArrayPrototypeIncludes:a,ArrayPrototypeJoin:n,ArrayPrototypeMap:l,NumberIsInteger:s,NumberIsNaN:d,NumberMAX_SAFE_INTEGER:b,NumberMIN_SAFE_INTEGER:y,NumberParseInt:v,ObjectPrototypeHasOwnProperty:g,RegExpPrototypeExec:_,String:A,StringPrototypeToUpperCase:I,StringPrototypeTrim:O}=xn(),{hideStackFrames:N,codes:{ERR_SOCKET_BAD_PORT:P,ERR_INVALID_ARG_TYPE:j,ERR_INVALID_ARG_VALUE:Z,ERR_OUT_OF_RANGE:V,ERR_UNKNOWN_SIGNAL:W}}=Ji(),{normalizeEncoding:J}=mo(),{isAsyncFunction:ve,isArrayBufferView:ce}=mo().types,Me={};function Y(le){return le===(le|0)}function Te(le){return le===le>>>0}var f=/^[0-7]+$/,p="must be a 32-bit unsigned integer or an octal string";function x(le,Ee,gt){if(typeof le>"u")le=gt;if(typeof le==="string"){if(_(f,le)===null)throw new Z(Ee,le,p);le=v(le,8)}return k(le,Ee),le}var h=N((le,Ee,gt=y,De=b)=>{if(typeof le!=="number")throw new j(Ee,"number",le);if(!s(le))throw new V(Ee,"an integer",le);if(le<gt||le>De)throw new V(Ee,`>= ${gt} && <= ${De}`,le)}),S=N((le,Ee,gt=-2147483648,De=2147483647)=>{if(typeof le!=="number")throw new j(Ee,"number",le);if(!s(le))throw new V(Ee,"an integer",le);if(le<gt||le>De)throw new V(Ee,`>= ${gt} && <= ${De}`,le)}),k=N((le,Ee,gt=!1)=>{if(typeof le!=="number")throw new j(Ee,"number",le);if(!s(le))throw new V(Ee,"an integer",le);let De=gt?1:0,We=4294967295;if(le<De||le>We)throw new V(Ee,`>= ${De} && <= ${We}`,le)});function C(le,Ee){if(typeof le!=="string")throw new j(Ee,"string",le)}function w(le,Ee,gt=void 0,De){if(typeof le!=="number")throw new j(Ee,"number",le);if(gt!=null&&le<gt||De!=null&&le>De||(gt!=null||De!=null)&&d(le))throw new V(Ee,`${gt!=null?`>= ${gt}`:""}${gt!=null&&De!=null?" && ":""}${De!=null?`<= ${De}`:""}`,le)}var c=N((le,Ee,gt)=>{if(!a(gt,le)){let De="must be one of: "+n(l(gt,(We)=>typeof We==="string"?`'${We}'`:A(We)),", ");throw new Z(Ee,le,De)}});function T(le,Ee){if(typeof le!=="boolean")throw new j(Ee,"boolean",le)}function z(le,Ee,gt){return le==null||!g(le,Ee)?gt:le[Ee]}var R=N((le,Ee,gt=null)=>{let De=z(gt,"allowArray",!1),We=z(gt,"allowFunction",!1);if(!z(gt,"nullable",!1)&&le===null||!De&&r(le)||typeof le!=="object"&&(!We||typeof le!=="function"))throw new j(Ee,"Object",le)}),q=N((le,Ee)=>{if(le!=null&&typeof le!=="object"&&typeof le!=="function")throw new j(Ee,"a dictionary",le)}),Q=N((le,Ee,gt=0)=>{if(!r(le))throw new j(Ee,"Array",le);if(le.length<gt){let De=`must be longer than ${gt}`;throw new Z(Ee,le,De)}});function ie(le,Ee){Q(le,Ee);for(let gt=0;gt<le.length;gt++)C(le[gt],`${Ee}[${gt}]`)}function me(le,Ee){Q(le,Ee);for(let gt=0;gt<le.length;gt++)T(le[gt],`${Ee}[${gt}]`)}function Je(le,Ee){Q(le,Ee);for(let gt=0;gt<le.length;gt++){let De=le[gt],We=`${Ee}[${gt}]`;if(De==null)throw new j(We,"AbortSignal",De);Be(De,We)}}function ke(le,Ee="signal"){if(C(le,Ee),Me[le]===void 0){if(Me[I(le)]!==void 0)throw new W(le+" (signals must use all capital letters)");throw new W(le)}}var fe=N((le,Ee="buffer")=>{if(!ce(le))throw new j(Ee,["Buffer","TypedArray","DataView"],le)});function be(le,Ee){let gt=J(Ee),De=le.length;if(gt==="hex"&&De%2!==0)throw new Z("encoding",Ee,`is invalid for data of length ${De}`)}function Ae(le,Ee="Port",gt=!0){if(typeof le!=="number"&&typeof le!=="string"||typeof le==="string"&&O(le).length===0||+le!==+le>>>0||le>65535||le===0&&!gt)throw new P(Ee,le,gt);return le|0}var Be=N((le,Ee)=>{if(le!==void 0&&(le===null||typeof le!=="object"||!("aborted"in le)))throw new j(Ee,"AbortSignal",le)}),vt=N((le,Ee)=>{if(typeof le!=="function")throw new j(Ee,"Function",le)}),oe=N((le,Ee)=>{if(typeof le!=="function"||ve(le))throw new j(Ee,"Function",le)}),se=N((le,Ee)=>{if(le!==void 0)throw new j(Ee,"undefined",le)});function Ke(le,Ee,gt){if(!a(gt,le))throw new j(Ee,`('${n(gt,"|")}')`,le)}var he=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Ie(le,Ee){if(typeof le>"u"||!_(he,le))throw new Z(Ee,le,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Qe(le){if(typeof le==="string")return Ie(le,"hints"),le;else if(r(le)){let Ee=le.length,gt="";if(Ee===0)return gt;for(let De=0;De<Ee;De++){let We=le[De];if(Ie(We,"hints"),gt+=We,De!==Ee-1)gt+=", "}return gt}throw new Z("hints",le,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:Y,isUint32:Te,parseFileMode:x,validateArray:Q,validateStringArray:ie,validateBooleanArray:me,validateAbortSignalArray:Je,validateBoolean:T,validateBuffer:fe,validateDictionary:q,validateEncoding:be,validateFunction:vt,validateInt32:S,validateInteger:h,validateNumber:w,validateObject:R,validateOneOf:c,validatePlainFunction:oe,validatePort:Ae,validateSignalName:ke,validateString:C,validateUint32:k,validateUndefined:se,validateUnion:Ke,validateAbortSignal:Be,validateLinkHeaderValue:Qe}}),of=jr((e,t)=>{t.exports=globalThis.process}),al=jr((e,t)=>{var{SymbolAsyncIterator:r,SymbolIterator:a,SymbolFor:n}=xn(),l=n("nodejs.stream.destroyed"),s=n("nodejs.stream.errored"),d=n("nodejs.stream.readable"),b=n("nodejs.stream.writable"),y=n("nodejs.stream.disturbed"),v=n("nodejs.webstream.isClosedPromise"),g=n("nodejs.webstream.controllerErrorFunction");function _(z,R=!1){var q;return!!(z&&typeof z.pipe==="function"&&typeof z.on==="function"&&(!R||typeof z.pause==="function"&&typeof z.resume==="function")&&(!z._writableState||((q=z._readableState)===null||q===void 0?void 0:q.readable)!==!1)&&(!z._writableState||z._readableState))}function A(z){var R;return!!(z&&typeof z.write==="function"&&typeof z.on==="function"&&(!z._readableState||((R=z._writableState)===null||R===void 0?void 0:R.writable)!==!1))}function I(z){return!!(z&&typeof z.pipe==="function"&&z._readableState&&typeof z.on==="function"&&typeof z.write==="function")}function O(z){return z&&(z._readableState||z._writableState||typeof z.write==="function"&&typeof z.on==="function"||typeof z.pipe==="function"&&typeof z.on==="function")}function N(z){return!!(z&&!O(z)&&typeof z.pipeThrough==="function"&&typeof z.getReader==="function"&&typeof z.cancel==="function")}function P(z){return!!(z&&!O(z)&&typeof z.getWriter==="function"&&typeof z.abort==="function")}function j(z){return!!(z&&!O(z)&&typeof z.readable==="object"&&typeof z.writable==="object")}function Z(z){return N(z)||P(z)||j(z)}function V(z,R){if(z==null)return!1;if(R===!0)return typeof z[r]==="function";if(R===!1)return typeof z[a]==="function";return typeof z[r]==="function"||typeof z[a]==="function"}function W(z){if(!O(z))return null;let{_writableState:R,_readableState:q}=z,Q=R||q;return!!(z.destroyed||z[l]||Q!==null&&Q!==void 0&&Q.destroyed)}function J(z){if(!A(z))return null;if(z.writableEnded===!0)return!0;let R=z._writableState;if(R!==null&&R!==void 0&&R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function ve(z,R){if(!A(z))return null;if(z.writableFinished===!0)return!0;let q=z._writableState;if(q!==null&&q!==void 0&&q.errored)return!1;if(typeof(q===null||q===void 0?void 0:q.finished)!=="boolean")return null;return!!(q.finished||R===!1&&q.ended===!0&&q.length===0)}function ce(z){if(!_(z))return null;if(z.readableEnded===!0)return!0;let R=z._readableState;if(!R||R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function Me(z,R){if(!_(z))return null;let q=z._readableState;if(q!==null&&q!==void 0&&q.errored)return!1;if(typeof(q===null||q===void 0?void 0:q.endEmitted)!=="boolean")return null;return!!(q.endEmitted||R===!1&&q.ended===!0&&q.length===0)}function Y(z){if(z&&z[d]!=null)return z[d];if(typeof(z===null||z===void 0?void 0:z.readable)!=="boolean")return null;if(W(z))return!1;return _(z)&&z.readable&&!Me(z)}function Te(z){if(z&&z[b]!=null)return z[b];if(typeof(z===null||z===void 0?void 0:z.writable)!=="boolean")return null;if(W(z))return!1;return A(z)&&z.writable&&!J(z)}function f(z,R){if(!O(z))return null;if(W(z))return!0;if((R===null||R===void 0?void 0:R.readable)!==!1&&Y(z))return!1;if((R===null||R===void 0?void 0:R.writable)!==!1&&Te(z))return!1;return!0}function p(z){var R,q;if(!O(z))return null;if(z.writableErrored)return z.writableErrored;return(R=(q=z._writableState)===null||q===void 0?void 0:q.errored)!==null&&R!==void 0?R:null}function x(z){var R,q;if(!O(z))return null;if(z.readableErrored)return z.readableErrored;return(R=(q=z._readableState)===null||q===void 0?void 0:q.errored)!==null&&R!==void 0?R:null}function h(z){if(!O(z))return null;if(typeof z.closed==="boolean")return z.closed;let{_writableState:R,_readableState:q}=z;if(typeof(R===null||R===void 0?void 0:R.closed)==="boolean"||typeof(q===null||q===void 0?void 0:q.closed)==="boolean")return(R===null||R===void 0?void 0:R.closed)||(q===null||q===void 0?void 0:q.closed);if(typeof z._closed==="boolean"&&S(z))return z._closed;return null}function S(z){return typeof z._closed==="boolean"&&typeof z._defaultKeepAlive==="boolean"&&typeof z._removedConnection==="boolean"&&typeof z._removedContLen==="boolean"}function k(z){return typeof z._sent100==="boolean"&&S(z)}function C(z){var R;return typeof z._consuming==="boolean"&&typeof z._dumped==="boolean"&&((R=z.req)===null||R===void 0?void 0:R.upgradeOrConnect)===void 0}function w(z){if(!O(z))return null;let{_writableState:R,_readableState:q}=z,Q=R||q;return!Q&&k(z)||!!(Q&&Q.autoDestroy&&Q.emitClose&&Q.closed===!1)}function c(z){var R;return!!(z&&((R=z[y])!==null&&R!==void 0?R:z.readableDidRead||z.readableAborted))}function T(z){var R,q,Q,ie,me,Je,ke,fe,be,Ae;return!!(z&&((R=(q=(Q=(ie=(me=(Je=z[s])!==null&&Je!==void 0?Je:z.readableErrored)!==null&&me!==void 0?me:z.writableErrored)!==null&&ie!==void 0?ie:(ke=z._readableState)===null||ke===void 0?void 0:ke.errorEmitted)!==null&&Q!==void 0?Q:(fe=z._writableState)===null||fe===void 0?void 0:fe.errorEmitted)!==null&&q!==void 0?q:(be=z._readableState)===null||be===void 0?void 0:be.errored)!==null&&R!==void 0?R:(Ae=z._writableState)===null||Ae===void 0?void 0:Ae.errored))}t.exports={isDestroyed:W,kIsDestroyed:l,isDisturbed:c,kIsDisturbed:y,isErrored:T,kIsErrored:s,isReadable:Y,kIsReadable:d,kIsClosedPromise:v,kControllerErrorFunction:g,kIsWritable:b,isClosed:h,isDuplexNodeStream:I,isFinished:f,isIterable:V,isReadableNodeStream:_,isReadableStream:N,isReadableEnded:ce,isReadableFinished:Me,isReadableErrored:x,isNodeStream:O,isWebStream:Z,isWritable:Te,isWritableNodeStream:A,isWritableStream:P,isWritableEnded:J,isWritableFinished:ve,isWritableErrored:p,isServerRequest:C,isServerResponse:k,willEmitClose:w,isTransformStream:j}}),Eu=jr((e,t)=>{var r=of(),{AbortError:a,codes:n}=Ji(),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_PREMATURE_CLOSE:s}=n,{kEmptyObject:d,once:b}=mo(),{validateAbortSignal:y,validateFunction:v,validateObject:g,validateBoolean:_}=j0(),{Promise:A,PromisePrototypeThen:I,SymbolDispose:O}=xn(),{isClosed:N,isReadable:P,isReadableNodeStream:j,isReadableStream:Z,isReadableFinished:V,isReadableErrored:W,isWritable:J,isWritableNodeStream:ve,isWritableStream:ce,isWritableFinished:Me,isWritableErrored:Y,isNodeStream:Te,willEmitClose:f,kIsClosedPromise:p}=al(),x;function h(c){return c.setHeader&&typeof c.abort==="function"}var S=()=>{};function k(c,T,z){var R,q;if(arguments.length===2)z=T,T=d;else if(T==null)T=d;else g(T,"options");if(v(z,"callback"),y(T.signal,"options.signal"),z=b(z),Z(c)||ce(c))return C(c,T,z);if(!Te(c))throw new l("stream",["ReadableStream","WritableStream","Stream"],c);let Q=(R=T.readable)!==null&&R!==void 0?R:j(c),ie=(q=T.writable)!==null&&q!==void 0?q:ve(c),me=c._writableState,Je=c._readableState,ke=()=>{if(!c.writable)Ae()},fe=f(c)&&j(c)===Q&&ve(c)===ie,be=Me(c,!1),Ae=()=>{if(be=!0,c.destroyed)fe=!1;if(fe&&(!c.readable||Q))return;if(!Q||Be)z.call(c)},Be=V(c,!1),vt=()=>{if(Be=!0,c.destroyed)fe=!1;if(fe&&(!c.writable||ie))return;if(!ie||be)z.call(c)},oe=(le)=>{z.call(c,le)},se=N(c),Ke=()=>{se=!0;let le=Y(c)||W(c);if(le&&typeof le!=="boolean")return z.call(c,le);if(Q&&!Be&&j(c,!0)){if(!V(c,!1))return z.call(c,new s)}if(ie&&!be){if(!Me(c,!1))return z.call(c,new s)}z.call(c)},he=()=>{se=!0;let le=Y(c)||W(c);if(le&&typeof le!=="boolean")return z.call(c,le);z.call(c)},Ie=()=>{c.req.on("finish",Ae)};if(h(c)){if(c.on("complete",Ae),!fe)c.on("abort",Ke);if(c.req)Ie();else c.on("request",Ie)}else if(ie&&!me)c.on("end",ke),c.on("close",ke);if(!fe&&typeof c.aborted==="boolean")c.on("aborted",Ke);if(c.on("end",vt),c.on("finish",Ae),T.error!==!1)c.on("error",oe);if(c.on("close",Ke),se)r.nextTick(Ke);else if(me!==null&&me!==void 0&&me.errorEmitted||Je!==null&&Je!==void 0&&Je.errorEmitted){if(!fe)r.nextTick(he)}else if(!Q&&(!fe||P(c))&&(be||J(c)===!1))r.nextTick(he);else if(!ie&&(!fe||J(c))&&(Be||P(c)===!1))r.nextTick(he);else if(Je&&c.req&&c.aborted)r.nextTick(he);let Qe=()=>{if(z=S,c.removeListener("aborted",Ke),c.removeListener("complete",Ae),c.removeListener("abort",Ke),c.removeListener("request",Ie),c.req)c.req.removeListener("finish",Ae);c.removeListener("end",ke),c.removeListener("close",ke),c.removeListener("finish",Ae),c.removeListener("end",vt),c.removeListener("error",oe),c.removeListener("close",Ke)};if(T.signal&&!se){let le=()=>{let Ee=z;Qe(),Ee.call(c,new a(void 0,{cause:T.signal.reason}))};if(T.signal.aborted)r.nextTick(le);else{x=x||mo().addAbortListener;let Ee=x(T.signal,le),gt=z;z=b((...De)=>{Ee[O](),gt.apply(c,De)})}}return Qe}function C(c,T,z){let R=!1,q=S;if(T.signal)if(q=()=>{R=!0,z.call(c,new a(void 0,{cause:T.signal.reason}))},T.signal.aborted)r.nextTick(q);else{x=x||mo().addAbortListener;let ie=x(T.signal,q),me=z;z=b((...Je)=>{ie[O](),me.apply(c,Je)})}let Q=(...ie)=>{if(!R)r.nextTick(()=>z.apply(c,ie))};return I(c[p].promise,Q,Q),S}function w(c,T){var z;let R=!1;if(T===null)T=d;if((z=T)!==null&&z!==void 0&&z.cleanup)_(T.cleanup,"cleanup"),R=T.cleanup;return new A((q,Q)=>{let ie=k(c,T,(me)=>{if(R)ie();if(me)Q(me);else q()})})}t.exports=k,t.exports.finished=w}),wh=jr((e,t)=>{var r=of(),{aggregateTwoErrors:a,codes:{ERR_MULTIPLE_CALLBACK:n},AbortError:l}=Ji(),{Symbol:s}=xn(),{kIsDestroyed:d,isDestroyed:b,isFinished:y,isServerRequest:v}=al(),g=s("kDestroy"),_=s("kConstruct");function A(f,p,x){if(f){if(f.stack,p&&!p.errored)p.errored=f;if(x&&!x.errored)x.errored=f}}function I(f,p){let x=this._readableState,h=this._writableState,S=h||x;if(h!==null&&h!==void 0&&h.destroyed||x!==null&&x!==void 0&&x.destroyed){if(typeof p==="function")p();return this}if(A(f,h,x),h)h.destroyed=!0;if(x)x.destroyed=!0;if(!S.constructed)this.once(g,function(k){O(this,a(k,f),p)});else O(this,f,p);return this}function O(f,p,x){let h=!1;function S(k){if(h)return;h=!0;let{_readableState:C,_writableState:w}=f;if(A(k,w,C),w)w.closed=!0;if(C)C.closed=!0;if(typeof x==="function")x(k);if(k)r.nextTick(N,f,k);else r.nextTick(P,f)}try{f._destroy(p||null,S)}catch(k){S(k)}}function N(f,p){j(f,p),P(f)}function P(f){let{_readableState:p,_writableState:x}=f;if(x)x.closeEmitted=!0;if(p)p.closeEmitted=!0;if(x!==null&&x!==void 0&&x.emitClose||p!==null&&p!==void 0&&p.emitClose)f.emit("close")}function j(f,p){let{_readableState:x,_writableState:h}=f;if(h!==null&&h!==void 0&&h.errorEmitted||x!==null&&x!==void 0&&x.errorEmitted)return;if(h)h.errorEmitted=!0;if(x)x.errorEmitted=!0;f.emit("error",p)}function Z(){let f=this._readableState,p=this._writableState;if(f)f.constructed=!0,f.closed=!1,f.closeEmitted=!1,f.destroyed=!1,f.errored=null,f.errorEmitted=!1,f.reading=!1,f.ended=f.readable===!1,f.endEmitted=f.readable===!1;if(p)p.constructed=!0,p.destroyed=!1,p.closed=!1,p.closeEmitted=!1,p.errored=null,p.errorEmitted=!1,p.finalCalled=!1,p.prefinished=!1,p.ended=p.writable===!1,p.ending=p.writable===!1,p.finished=p.writable===!1}function V(f,p,x){let{_readableState:h,_writableState:S}=f;if(S!==null&&S!==void 0&&S.destroyed||h!==null&&h!==void 0&&h.destroyed)return this;if(h!==null&&h!==void 0&&h.autoDestroy||S!==null&&S!==void 0&&S.autoDestroy)f.destroy(p);else if(p){if(p.stack,S&&!S.errored)S.errored=p;if(h&&!h.errored)h.errored=p;if(x)r.nextTick(j,f,p);else j(f,p)}}function W(f,p){if(typeof f._construct!=="function")return;let{_readableState:x,_writableState:h}=f;if(x)x.constructed=!1;if(h)h.constructed=!1;if(f.once(_,p),f.listenerCount(_)>1)return;r.nextTick(J,f)}function J(f){let p=!1;function x(h){if(p){V(f,h!==null&&h!==void 0?h:new n);return}p=!0;let{_readableState:S,_writableState:k}=f,C=k||S;if(S)S.constructed=!0;if(k)k.constructed=!0;if(C.destroyed)f.emit(g,h);else if(h)V(f,h,!0);else r.nextTick(ve,f)}try{f._construct((h)=>{r.nextTick(x,h)})}catch(h){r.nextTick(x,h)}}function ve(f){f.emit(_)}function ce(f){return(f===null||f===void 0?void 0:f.setHeader)&&typeof f.abort==="function"}function Me(f){f.emit("close")}function Y(f,p){f.emit("error",p),r.nextTick(Me,f)}function Te(f,p){if(!f||b(f))return;if(!p&&!y(f))p=new l;if(v(f))f.socket=null,f.destroy(p);else if(ce(f))f.abort();else if(ce(f.req))f.req.abort();else if(typeof f.destroy==="function")f.destroy(p);else if(typeof f.close==="function")f.close();else if(p)r.nextTick(Y,f,p);else r.nextTick(Me,f);if(!f.destroyed)f[d]=!0}t.exports={construct:W,destroyer:Te,destroy:I,undestroy:Z,errorOrDestroy:V}}),ZM=jr((e,t)=>{var{ArrayIsArray:r,ObjectSetPrototypeOf:a}=xn(),{EventEmitter:n}=(B0(),Cr($0));function l(d){n.call(this,d)}a(l.prototype,n.prototype),a(l,n),l.prototype.pipe=function(d,b){let y=this;function v(P){if(d.writable&&d.write(P)===!1&&y.pause)y.pause()}y.on("data",v);function g(){if(y.readable&&y.resume)y.resume()}if(d.on("drain",g),!d._isStdio&&(!b||b.end!==!1))y.on("end",A),y.on("close",I);let _=!1;function A(){if(_)return;_=!0,d.end()}function I(){if(_)return;if(_=!0,typeof d.destroy==="function")d.destroy()}function O(P){if(N(),n.listenerCount(this,"error")===0)this.emit("error",P)}s(y,"error",O),s(d,"error",O);function N(){y.removeListener("data",v),d.removeListener("drain",g),y.removeListener("end",A),y.removeListener("close",I),y.removeListener("error",O),d.removeListener("error",O),y.removeListener("end",N),y.removeListener("close",N),d.removeListener("close",N)}return y.on("end",N),y.on("close",N),d.on("close",N),d.emit("pipe",y),d};function s(d,b,y){if(typeof d.prependListener==="function")return d.prependListener(b,y);if(!d._events||!d._events[b])d.on(b,y);else if(r(d._events[b]))d._events[b].unshift(y);else d._events[b]=[y,d._events[b]]}t.exports={Stream:l,prependListener:s}}),U2=jr((e,t)=>{var{SymbolDispose:r}=xn(),{AbortError:a,codes:n}=Ji(),{isNodeStream:l,isWebStream:s,kControllerErrorFunction:d}=al(),b=Eu(),{ERR_INVALID_ARG_TYPE:y}=n,v,g=(_,A)=>{if(typeof _!=="object"||!("aborted"in _))throw new y(A,"AbortSignal",_)};t.exports.addAbortSignal=function(_,A){if(g(_,"signal"),!l(A)&&!s(A))throw new y("stream",["ReadableStream","WritableStream","Stream"],A);return t.exports.addAbortSignalNoValidate(_,A)},t.exports.addAbortSignalNoValidate=function(_,A){if(typeof _!=="object"||!("aborted"in _))return A;let I=l(A)?()=>{A.destroy(new a(void 0,{cause:_.reason}))}:()=>{A[d](new a(void 0,{cause:_.reason}))};if(_.aborted)I();else{v=v||mo().addAbortListener;let O=v(_,I);b(A,O[r])}return A}}),D0e=jr((e,t)=>{var{StringPrototypeSlice:r,SymbolIterator:a,TypedArrayPrototypeSet:n,Uint8Array:l}=xn(),{Buffer:s}=(ci(),Cr(ui)),{inspect:d}=mo();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(b){let y={data:b,next:null};if(this.length>0)this.tail.next=y;else this.head=y;this.tail=y,++this.length}unshift(b){let y={data:b,next:this.head};if(this.length===0)this.tail=y;this.head=y,++this.length}shift(){if(this.length===0)return;let b=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,b}clear(){this.head=this.tail=null,this.length=0}join(b){if(this.length===0)return"";let y=this.head,v=""+y.data;while((y=y.next)!==null)v+=b+y.data;return v}concat(b){if(this.length===0)return s.alloc(0);let y=s.allocUnsafe(b>>>0),v=this.head,g=0;while(v)n(y,v.data,g),g+=v.data.length,v=v.next;return y}consume(b,y){let v=this.head.data;if(b<v.length){let g=v.slice(0,b);return this.head.data=v.slice(b),g}if(b===v.length)return this.shift();return y?this._getString(b):this._getBuffer(b)}first(){return this.head.data}*[a](){for(let b=this.head;b;b=b.next)yield b.data}_getString(b){let y="",v=this.head,g=0;do{let _=v.data;if(b>_.length)y+=_,b-=_.length;else{if(b===_.length)if(y+=_,++g,v.next)this.head=v.next;else this.head=this.tail=null;else y+=r(_,0,b),this.head=v,v.data=r(_,b);break}++g}while((v=v.next)!==null);return this.length-=g,y}_getBuffer(b){let y=s.allocUnsafe(b),v=b,g=this.head,_=0;do{let A=g.data;if(b>A.length)n(y,A,v-b),b-=A.length;else{if(b===A.length)if(n(y,A,v-b),++_,g.next)this.head=g.next;else this.head=this.tail=null;else n(y,new l(A.buffer,A.byteOffset,b),v-b),this.head=g,g.data=A.slice(b);break}++_}while((g=g.next)!==null);return this.length-=_,y}[Symbol.for("nodejs.util.inspect.custom")](b,y){return d(this,{...y,depth:0,customInspect:!1})}}}),j2=jr((e,t)=>{var{MathFloor:r,NumberIsInteger:a}=xn(),{validateInteger:n}=j0(),{ERR_INVALID_ARG_VALUE:l}=Ji().codes,s=16384,d=16;function b(_,A,I){return _.highWaterMark!=null?_.highWaterMark:A?_[I]:null}function y(_){return _?d:s}function v(_,A){if(n(A,"value",0),_)d=A;else s=A}function g(_,A,I,O){let N=b(A,O,I);if(N!=null){if(!a(N)||N<0){let P=O?`options.${I}`:"options.highWaterMark";throw new l(P,N)}return r(N)}return y(_.objectMode)}t.exports={getHighWaterMark:g,getDefaultHighWaterMark:y,setDefaultHighWaterMark:v}}),z0e=jr((e,t)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var r=(ci(),Cr(ui)),a=r.Buffer;function n(s,d){for(var b in s)d[b]=s[b]}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow)t.exports=r;else n(r,e),e.Buffer=l;function l(s,d,b){return a(s,d,b)}l.prototype=Object.create(a.prototype),n(a,l),l.from=function(s,d,b){if(typeof s==="number")throw TypeError("Argument must not be a number");return a(s,d,b)},l.alloc=function(s,d,b){if(typeof s!=="number")throw TypeError("Argument must be a number");var y=a(s);if(d!==void 0)if(typeof b==="string")y.fill(d,b);else y.fill(d);else y.fill(0);return y},l.allocUnsafe=function(s){if(typeof s!=="number")throw TypeError("Argument must be a number");return a(s)},l.allocUnsafeSlow=function(s){if(typeof s!=="number")throw TypeError("Argument must be a number");return r.SlowBuffer(s)}}),L0e=jr((e)=>{var t=z0e().Buffer,r=t.isEncoding||function(j){switch(j=""+j,j&&j.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 a(j){if(!j)return"utf8";var Z;while(!0)switch(j){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 j;default:if(Z)return;j=(""+j).toLowerCase(),Z=!0}}function n(j){var Z=a(j);if(typeof Z!=="string"&&(t.isEncoding===r||!r(j)))throw Error("Unknown encoding: "+j);return Z||j}e.StringDecoder=l;function l(j){this.encoding=n(j);var Z;switch(this.encoding){case"utf16le":this.text=_,this.end=A,Z=4;break;case"utf8":this.fillLast=y,Z=4;break;case"base64":this.text=I,this.end=O,Z=3;break;default:this.write=N,this.end=P;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(Z)}l.prototype.write=function(j){if(j.length===0)return"";var Z,V;if(this.lastNeed){if(Z=this.fillLast(j),Z===void 0)return"";V=this.lastNeed,this.lastNeed=0}else V=0;if(V<j.length)return Z?Z+this.text(j,V):this.text(j,V);return Z||""},l.prototype.end=g,l.prototype.text=v,l.prototype.fillLast=function(j){if(this.lastNeed<=j.length)return j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,j.length),this.lastNeed-=j.length};function s(j){if(j<=127)return 0;else if(j>>5===6)return 2;else if(j>>4===14)return 3;else if(j>>3===30)return 4;return j>>6===2?-1:-2}function d(j,Z,V){var W=Z.length-1;if(W<V)return 0;var J=s(Z[W]);if(J>=0){if(J>0)j.lastNeed=J-1;return J}if(--W<V||J===-2)return 0;if(J=s(Z[W]),J>=0){if(J>0)j.lastNeed=J-2;return J}if(--W<V||J===-2)return 0;if(J=s(Z[W]),J>=0){if(J>0)if(J===2)J=0;else j.lastNeed=J-3;return J}return 0}function b(j,Z,V){if((Z[0]&192)!==128)return j.lastNeed=0,"�";if(j.lastNeed>1&&Z.length>1){if((Z[1]&192)!==128)return j.lastNeed=1,"�";if(j.lastNeed>2&&Z.length>2){if((Z[2]&192)!==128)return j.lastNeed=2,"�"}}}function y(j){var Z=this.lastTotal-this.lastNeed,V=b(this,j,Z);if(V!==void 0)return V;if(this.lastNeed<=j.length)return j.copy(this.lastChar,Z,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,Z,0,j.length),this.lastNeed-=j.length}function v(j,Z){var V=d(this,j,Z);if(!this.lastNeed)return j.toString("utf8",Z);this.lastTotal=V;var W=j.length-(V-this.lastNeed);return j.copy(this.lastChar,0,W),j.toString("utf8",Z,W)}function g(j){var Z=j&&j.length?this.write(j):"";if(this.lastNeed)return Z+"�";return Z}function _(j,Z){if((j.length-Z)%2===0){var V=j.toString("utf16le",Z);if(V){var W=V.charCodeAt(V.length-1);if(W>=55296&&W<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1],V.slice(0,-1)}return V}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=j[j.length-1],j.toString("utf16le",Z,j.length-1)}function A(j){var Z=j&&j.length?this.write(j):"";if(this.lastNeed){var V=this.lastTotal-this.lastNeed;return Z+this.lastChar.toString("utf16le",0,V)}return Z}function I(j,Z){var V=(j.length-Z)%3;if(V===0)return j.toString("base64",Z);if(this.lastNeed=3-V,this.lastTotal=3,V===1)this.lastChar[0]=j[j.length-1];else this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1];return j.toString("base64",Z,j.length-V)}function O(j){var Z=j&&j.length?this.write(j):"";if(this.lastNeed)return Z+this.lastChar.toString("base64",0,3-this.lastNeed);return Z}function N(j){return j.toString(this.encoding)}function P(j){return j&&j.length?this.write(j):""}}),qV=jr((e,t)=>{var r=of(),{PromisePrototypeThen:a,SymbolAsyncIterator:n,SymbolIterator:l}=xn(),{Buffer:s}=(ci(),Cr(ui)),{ERR_INVALID_ARG_TYPE:d,ERR_STREAM_NULL_VALUES:b}=Ji().codes;function y(v,g,_){let A;if(typeof g==="string"||g instanceof s)return new v({objectMode:!0,..._,read(){this.push(g),this.push(null)}});let I;if(g&&g[n])I=!0,A=g[n]();else if(g&&g[l])I=!1,A=g[l]();else throw new d("iterable",["Iterable"],g);let O=new v({objectMode:!0,highWaterMark:1,..._}),N=!1;O._read=function(){if(!N)N=!0,j()},O._destroy=function(Z,V){a(P(Z),()=>r.nextTick(V,Z),(W)=>r.nextTick(V,W||Z))};async function P(Z){let V=Z!==void 0&&Z!==null,W=typeof A.throw==="function";if(V&&W){let{value:J,done:ve}=await A.throw(Z);if(await J,ve)return}if(typeof A.return==="function"){let{value:J}=await A.return();await J}}async function j(){for(;;){try{let{value:Z,done:V}=I?await A.next():A.next();if(V)O.push(null);else{let W=Z&&typeof Z.then==="function"?await Z:Z;if(W===null)throw N=!1,new b;else if(O.push(W))continue;else N=!1}}catch(Z){O.destroy(Z)}break}}return O}t.exports=y}),H2=jr((e,t)=>{var r=of(),{ArrayPrototypeIndexOf:a,NumberIsInteger:n,NumberIsNaN:l,NumberParseInt:s,ObjectDefineProperties:d,ObjectKeys:b,ObjectSetPrototypeOf:y,Promise:v,SafeSet:g,SymbolAsyncDispose:_,SymbolAsyncIterator:A,Symbol:I}=xn();t.exports=De,De.ReadableState=gt;var{EventEmitter:O}=(B0(),Cr($0)),{Stream:N,prependListener:P}=ZM(),{Buffer:j}=(ci(),Cr(ui)),{addAbortSignal:Z}=U2(),V=Eu(),W=mo().debuglog("stream",(re)=>{W=re}),J=D0e(),ve=wh(),{getHighWaterMark:ce,getDefaultHighWaterMark:Me}=j2(),{aggregateTwoErrors:Y,codes:{ERR_INVALID_ARG_TYPE:Te,ERR_METHOD_NOT_IMPLEMENTED:f,ERR_OUT_OF_RANGE:p,ERR_STREAM_PUSH_AFTER_EOF:x,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:h},AbortError:S}=Ji(),{validateObject:k}=j0(),C=I("kPaused"),{StringDecoder:w}=L0e(),c=qV();y(De.prototype,N.prototype),y(De,N);var T=()=>{},{errorOrDestroy:z}=ve,R=1,q=2,Q=4,ie=8,me=16,Je=32,ke=64,fe=128,be=256,Ae=512,Be=1024,vt=2048,oe=4096,se=8192,Ke=16384,he=32768,Ie=65536,Qe=131072,le=262144;function Ee(re){return{enumerable:!1,get(){return(this.state&re)!==0},set(ye){if(ye)this.state|=re;else this.state&=~re}}}d(gt.prototype,{objectMode:Ee(R),ended:Ee(q),endEmitted:Ee(Q),reading:Ee(ie),constructed:Ee(me),sync:Ee(Je),needReadable:Ee(ke),emittedReadable:Ee(fe),readableListening:Ee(be),resumeScheduled:Ee(Ae),errorEmitted:Ee(Be),emitClose:Ee(vt),autoDestroy:Ee(oe),destroyed:Ee(se),closed:Ee(Ke),closeEmitted:Ee(he),multiAwaitDrain:Ee(Ie),readingMore:Ee(Qe),dataEmitted:Ee(le)});function gt(re,ye,Ze){if(typeof Ze!=="boolean")Ze=ye instanceof ol();if(this.state=vt|oe|me|Je,re&&re.objectMode)this.state|=R;if(Ze&&re&&re.readableObjectMode)this.state|=R;if(this.highWaterMark=re?ce(this,re,"readableHighWaterMark",Ze):Me(!1),this.buffer=new J,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,re&&re.emitClose===!1)this.state&=~vt;if(re&&re.autoDestroy===!1)this.state&=~oe;if(this.errored=null,this.defaultEncoding=re&&re.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,re&&re.encoding)this.decoder=new w(re.encoding),this.encoding=re.encoding}function De(re){if(!(this instanceof De))return new De(re);let ye=this instanceof ol();if(this._readableState=new gt(re,this,ye),re){if(typeof re.read==="function")this._read=re.read;if(typeof re.destroy==="function")this._destroy=re.destroy;if(typeof re.construct==="function")this._construct=re.construct;if(re.signal&&!ye)Z(re.signal,this)}N.call(this,re),ve.construct(this,()=>{if(this._readableState.needReadable)xe(this,this._readableState)})}De.prototype.destroy=ve.destroy,De.prototype._undestroy=ve.undestroy,De.prototype._destroy=function(re,ye){ye(re)},De.prototype[O.captureRejectionSymbol]=function(re){this.destroy(re)},De.prototype[_]=function(){let re;if(!this.destroyed)re=this.readableEnded?null:new S,this.destroy(re);return new v((ye,Ze)=>V(this,(Ve)=>Ve&&Ve!==re?Ze(Ve):ye(null)))},De.prototype.push=function(re,ye){return We(this,re,ye,!1)},De.prototype.unshift=function(re,ye){return We(this,re,ye,!0)};function We(re,ye,Ze,Ve){W("readableAddChunk",ye);let Dt=re._readableState,mt;if((Dt.state&R)===0){if(typeof ye==="string"){if(Ze=Ze||Dt.defaultEncoding,Dt.encoding!==Ze)if(Ve&&Dt.encoding)ye=j.from(ye,Ze).toString(Dt.encoding);else ye=j.from(ye,Ze),Ze=""}else if(ye instanceof j)Ze="";else if(N._isUint8Array(ye))ye=N._uint8ArrayToBuffer(ye),Ze="";else if(ye!=null)mt=new Te("chunk",["string","Buffer","Uint8Array"],ye)}if(mt)z(re,mt);else if(ye===null)Dt.state&=~ie,ae(re,Dt);else if((Dt.state&R)!==0||ye&&ye.length>0)if(Ve)if((Dt.state&Q)!==0)z(re,new h);else if(Dt.destroyed||Dt.errored)return!1;else Ye(re,Dt,ye,!0);else if(Dt.ended)z(re,new x);else if(Dt.destroyed||Dt.errored)return!1;else if(Dt.state&=~ie,Dt.decoder&&!Ze)if(ye=Dt.decoder.write(ye),Dt.objectMode||ye.length!==0)Ye(re,Dt,ye,!1);else xe(re,Dt);else Ye(re,Dt,ye,!1);else if(!Ve)Dt.state&=~ie,xe(re,Dt);return!Dt.ended&&(Dt.length<Dt.highWaterMark||Dt.length===0)}function Ye(re,ye,Ze,Ve){if(ye.flowing&&ye.length===0&&!ye.sync&&re.listenerCount("data")>0){if((ye.state&Ie)!==0)ye.awaitDrainWriters.clear();else ye.awaitDrainWriters=null;ye.dataEmitted=!0,re.emit("data",Ze)}else{if(ye.length+=ye.objectMode?1:Ze.length,Ve)ye.buffer.unshift(Ze);else ye.buffer.push(Ze);if((ye.state&ke)!==0)_e(re)}xe(re,ye)}De.prototype.isPaused=function(){let re=this._readableState;return re[C]===!0||re.flowing===!1},De.prototype.setEncoding=function(re){let ye=new w(re);this._readableState.decoder=ye,this._readableState.encoding=this._readableState.decoder.encoding;let Ze=this._readableState.buffer,Ve="";for(let Dt of Ze)Ve+=ye.write(Dt);if(Ze.clear(),Ve!=="")Ze.push(Ve);return this._readableState.length=Ve.length,this};var we=1073741824;function Fe(re){if(re>we)throw new p("size","<= 1GiB",re);else re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++;return re}function L(re,ye){if(re<=0||ye.length===0&&ye.ended)return 0;if((ye.state&R)!==0)return 1;if(l(re)){if(ye.flowing&&ye.length)return ye.buffer.first().length;return ye.length}if(re<=ye.length)return re;return ye.ended?ye.length:0}De.prototype.read=function(re){if(W("read",re),re===void 0)re=NaN;else if(!n(re))re=s(re,10);let ye=this._readableState,Ze=re;if(re>ye.highWaterMark)ye.highWaterMark=Fe(re);if(re!==0)ye.state&=~fe;if(re===0&&ye.needReadable&&((ye.highWaterMark!==0?ye.length>=ye.highWaterMark:ye.length>0)||ye.ended)){if(W("read: emitReadable",ye.length,ye.ended),ye.length===0&&ye.ended)ht(this);else _e(this);return null}if(re=L(re,ye),re===0&&ye.ended){if(ye.length===0)ht(this);return null}let Ve=(ye.state&ke)!==0;if(W("need readable",Ve),ye.length===0||ye.length-re<ye.highWaterMark)Ve=!0,W("length less than watermark",Ve);if(ye.ended||ye.reading||ye.destroyed||ye.errored||!ye.constructed)Ve=!1,W("reading, ended or constructing",Ve);else if(Ve){if(W("do read"),ye.state|=ie|Je,ye.length===0)ye.state|=ke;try{this._read(ye.highWaterMark)}catch(mt){z(this,mt)}if(ye.state&=~Je,!ye.reading)re=L(Ze,ye)}let Dt;if(re>0)Dt=qe(re,ye);else Dt=null;if(Dt===null)ye.needReadable=ye.length<=ye.highWaterMark,re=0;else if(ye.length-=re,ye.multiAwaitDrain)ye.awaitDrainWriters.clear();else ye.awaitDrainWriters=null;if(ye.length===0){if(!ye.ended)ye.needReadable=!0;if(Ze!==re&&ye.ended)ht(this)}if(Dt!==null&&!ye.errorEmitted&&!ye.closeEmitted)ye.dataEmitted=!0,this.emit("data",Dt);return Dt};function ae(re,ye){if(W("onEofChunk"),ye.ended)return;if(ye.decoder){let Ze=ye.decoder.end();if(Ze&&Ze.length)ye.buffer.push(Ze),ye.length+=ye.objectMode?1:Ze.length}if(ye.ended=!0,ye.sync)_e(re);else ye.needReadable=!1,ye.emittedReadable=!0,ot(re)}function _e(re){let ye=re._readableState;if(W("emitReadable",ye.needReadable,ye.emittedReadable),ye.needReadable=!1,!ye.emittedReadable)W("emitReadable",ye.flowing),ye.emittedReadable=!0,r.nextTick(ot,re)}function ot(re){let ye=re._readableState;if(W("emitReadable_",ye.destroyed,ye.length,ye.ended),!ye.destroyed&&!ye.errored&&(ye.length||ye.ended))re.emit("readable"),ye.emittedReadable=!1;ye.needReadable=!ye.flowing&&!ye.ended&&ye.length<=ye.highWaterMark,de(re)}function xe(re,ye){if(!ye.readingMore&&ye.constructed)ye.readingMore=!0,r.nextTick(K,re,ye)}function K(re,ye){while(!ye.reading&&!ye.ended&&(ye.length<ye.highWaterMark||ye.flowing&&ye.length===0)){let Ze=ye.length;if(W("maybeReadMore read 0"),re.read(0),Ze===ye.length)break}ye.readingMore=!1}De.prototype._read=function(re){throw new f("_read()")},De.prototype.pipe=function(re,ye){let Ze=this,Ve=this._readableState;if(Ve.pipes.length===1){if(!Ve.multiAwaitDrain)Ve.multiAwaitDrain=!0,Ve.awaitDrainWriters=new g(Ve.awaitDrainWriters?[Ve.awaitDrainWriters]:[])}Ve.pipes.push(re),W("pipe count=%d opts=%j",Ve.pipes.length,ye);let Dt=(!ye||ye.end!==!1)&&re!==r.stdout&&re!==r.stderr?yt:nr;if(Ve.endEmitted)r.nextTick(Dt);else Ze.once("end",Dt);re.on("unpipe",mt);function mt(Lr,Tr){if(W("onunpipe"),Lr===Ze){if(Tr&&Tr.hasUnpiped===!1)Tr.hasUnpiped=!0,xt()}}function yt(){W("onend"),re.end()}let Qr,_t=!1;function xt(){if(W("cleanup"),re.removeListener("close",sn),re.removeListener("finish",ir),Qr)re.removeListener("drain",Qr);if(re.removeListener("error",St),re.removeListener("unpipe",mt),Ze.removeListener("end",yt),Ze.removeListener("end",nr),Ze.removeListener("data",wt),_t=!0,Qr&&Ve.awaitDrainWriters&&(!re._writableState||re._writableState.needDrain))Qr()}function zr(){if(!_t){if(Ve.pipes.length===1&&Ve.pipes[0]===re)W("false write response, pause",0),Ve.awaitDrainWriters=re,Ve.multiAwaitDrain=!1;else if(Ve.pipes.length>1&&Ve.pipes.includes(re))W("false write response, pause",Ve.awaitDrainWriters.size),Ve.awaitDrainWriters.add(re);Ze.pause()}if(!Qr)Qr=Ge(Ze,re),re.on("drain",Qr)}Ze.on("data",wt);function wt(Lr){W("ondata");let Tr=re.write(Lr);if(W("dest.write",Tr),Tr===!1)zr()}function St(Lr){if(W("onerror",Lr),nr(),re.removeListener("error",St),re.listenerCount("error")===0){let Tr=re._writableState||re._readableState;if(Tr&&!Tr.errorEmitted)z(re,Lr);else re.emit("error",Lr)}}P(re,"error",St);function sn(){re.removeListener("finish",ir),nr()}re.once("close",sn);function ir(){W("onfinish"),re.removeListener("close",sn),nr()}re.once("finish",ir);function nr(){W("unpipe"),Ze.unpipe(re)}if(re.emit("pipe",Ze),re.writableNeedDrain===!0)zr();else if(!Ve.flowing)W("pipe resume"),Ze.resume();return re};function Ge(re,ye){return function(){let Ze=re._readableState;if(Ze.awaitDrainWriters===ye)W("pipeOnDrain",1),Ze.awaitDrainWriters=null;else if(Ze.multiAwaitDrain)W("pipeOnDrain",Ze.awaitDrainWriters.size),Ze.awaitDrainWriters.delete(ye);if((!Ze.awaitDrainWriters||Ze.awaitDrainWriters.size===0)&&re.listenerCount("data"))re.resume()}}De.prototype.unpipe=function(re){let ye=this._readableState,Ze={hasUnpiped:!1};if(ye.pipes.length===0)return this;if(!re){let Dt=ye.pipes;ye.pipes=[],this.pause();for(let mt=0;mt<Dt.length;mt++)Dt[mt].emit("unpipe",this,{hasUnpiped:!1});return this}let Ve=a(ye.pipes,re);if(Ve===-1)return this;if(ye.pipes.splice(Ve,1),ye.pipes.length===0)this.pause();return re.emit("unpipe",this,Ze),this},De.prototype.on=function(re,ye){let Ze=N.prototype.on.call(this,re,ye),Ve=this._readableState;if(re==="data"){if(Ve.readableListening=this.listenerCount("readable")>0,Ve.flowing!==!1)this.resume()}else if(re==="readable"){if(!Ve.endEmitted&&!Ve.readableListening){if(Ve.readableListening=Ve.needReadable=!0,Ve.flowing=!1,Ve.emittedReadable=!1,W("on readable",Ve.length,Ve.reading),Ve.length)_e(this);else if(!Ve.reading)r.nextTick(te,this)}}return Ze},De.prototype.addListener=De.prototype.on,De.prototype.removeListener=function(re,ye){let Ze=N.prototype.removeListener.call(this,re,ye);if(re==="readable")r.nextTick(F,this);return Ze},De.prototype.off=De.prototype.removeListener,De.prototype.removeAllListeners=function(re){let ye=N.prototype.removeAllListeners.apply(this,arguments);if(re==="readable"||re===void 0)r.nextTick(F,this);return ye};function F(re){let ye=re._readableState;if(ye.readableListening=re.listenerCount("readable")>0,ye.resumeScheduled&&ye[C]===!1)ye.flowing=!0;else if(re.listenerCount("data")>0)re.resume();else if(!ye.readableListening)ye.flowing=null}function te(re){W("readable nexttick read 0"),re.read(0)}De.prototype.resume=function(){let re=this._readableState;if(!re.flowing)W("resume"),re.flowing=!re.readableListening,Pe(this,re);return re[C]=!1,this};function Pe(re,ye){if(!ye.resumeScheduled)ye.resumeScheduled=!0,r.nextTick(pe,re,ye)}function pe(re,ye){if(W("resume",ye.reading),!ye.reading)re.read(0);if(ye.resumeScheduled=!1,re.emit("resume"),de(re),ye.flowing&&!ye.reading)re.read(0)}De.prototype.pause=function(){if(W("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)W("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[C]=!0,this};function de(re){let ye=re._readableState;W("flow",ye.flowing);while(ye.flowing&&re.read()!==null);}De.prototype.wrap=function(re){let ye=!1;re.on("data",(Ve)=>{if(!this.push(Ve)&&re.pause)ye=!0,re.pause()}),re.on("end",()=>{this.push(null)}),re.on("error",(Ve)=>{z(this,Ve)}),re.on("close",()=>{this.destroy()}),re.on("destroy",()=>{this.destroy()}),this._read=()=>{if(ye&&re.resume)ye=!1,re.resume()};let Ze=b(re);for(let Ve=1;Ve<Ze.length;Ve++){let Dt=Ze[Ve];if(this[Dt]===void 0&&typeof re[Dt]==="function")this[Dt]=re[Dt].bind(re)}return this},De.prototype[A]=function(){return at(this)},De.prototype.iterator=function(re){if(re!==void 0)k(re,"options");return at(this,re)};function at(re,ye){if(typeof re.read!=="function")re=De.wrap(re,{objectMode:!0});let Ze=$e(re,ye);return Ze.stream=re,Ze}async function*$e(re,ye){let Ze=T;function Ve(yt){if(this===re)Ze(),Ze=T;else Ze=yt}re.on("readable",Ve);let Dt,mt=V(re,{writable:!1},(yt)=>{Dt=yt?Y(Dt,yt):null,Ze(),Ze=T});try{while(!0){let yt=re.destroyed?null:re.read();if(yt!==null)yield yt;else if(Dt)throw Dt;else if(Dt===null)return;else await new v(Ve)}}catch(yt){throw Dt=Y(Dt,yt),Dt}finally{if((Dt||(ye===null||ye===void 0?void 0:ye.destroyOnReturn)!==!1)&&(Dt===void 0||re._readableState.autoDestroy))ve.destroyer(re,null);else re.off("readable",Ve),mt()}}d(De.prototype,{readable:{__proto__:null,get(){let re=this._readableState;return!!re&&re.readable!==!1&&!re.destroyed&&!re.errorEmitted&&!re.endEmitted},set(re){if(this._readableState)this._readableState.readable=!!re}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(re){if(this._readableState)this._readableState.flowing=re}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(re){if(!this._readableState)return;this._readableState.destroyed=re}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(gt.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[C]!==!1},set(re){this[C]=!!re}}}),De._fromList=qe;function qe(re,ye){if(ye.length===0)return null;let Ze;if(ye.objectMode)Ze=ye.buffer.shift();else if(!re||re>=ye.length){if(ye.decoder)Ze=ye.buffer.join("");else if(ye.buffer.length===1)Ze=ye.buffer.first();else Ze=ye.buffer.concat(ye.length);ye.buffer.clear()}else Ze=ye.buffer.consume(re,ye.decoder);return Ze}function ht(re){let ye=re._readableState;if(W("endReadable",ye.endEmitted),!ye.endEmitted)ye.ended=!0,r.nextTick(tt,ye,re)}function tt(re,ye){if(W("endReadableNT",re.endEmitted,re.length),!re.errored&&!re.closeEmitted&&!re.endEmitted&&re.length===0){if(re.endEmitted=!0,ye.emit("end"),ye.writable&&ye.allowHalfOpen===!1)r.nextTick(nt,ye);else if(re.autoDestroy){let Ze=ye._writableState;if(!Ze||Ze.autoDestroy&&(Ze.finished||Ze.writable===!1))ye.destroy()}}}function nt(re){if(re.writable&&!re.writableEnded&&!re.destroyed)re.end()}De.from=function(re,ye){return c(De,re,ye)};var Er;function bt(){if(Er===void 0)Er={};return Er}De.fromWeb=function(re,ye){return bt().newStreamReadableFromReadableStream(re,ye)},De.toWeb=function(re,ye){return bt().newReadableStreamFromStreamReadable(re,ye)},De.wrap=function(re,ye){var Ze,Ve;return new De({objectMode:(Ze=(Ve=re.readableObjectMode)!==null&&Ve!==void 0?Ve:re.objectMode)!==null&&Ze!==void 0?Ze:!0,...ye,destroy(Dt,mt){ve.destroyer(re,Dt),mt(Dt)}}).wrap(re)}}),FM=jr((e,t)=>{var r=of(),{ArrayPrototypeSlice:a,Error:n,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:s,ObjectDefineProperties:d,ObjectSetPrototypeOf:b,StringPrototypeToLowerCase:y,Symbol:v,SymbolHasInstance:g}=xn();t.exports=k,k.WritableState=h;var{EventEmitter:_}=(B0(),Cr($0)),A=ZM().Stream,{Buffer:I}=(ci(),Cr(ui)),O=wh(),{addAbortSignal:N}=U2(),{getHighWaterMark:P,getDefaultHighWaterMark:j}=j2(),{ERR_INVALID_ARG_TYPE:Z,ERR_METHOD_NOT_IMPLEMENTED:V,ERR_MULTIPLE_CALLBACK:W,ERR_STREAM_CANNOT_PIPE:J,ERR_STREAM_DESTROYED:ve,ERR_STREAM_ALREADY_FINISHED:ce,ERR_STREAM_NULL_VALUES:Me,ERR_STREAM_WRITE_AFTER_END:Y,ERR_UNKNOWN_ENCODING:Te}=Ji().codes,{errorOrDestroy:f}=O;b(k.prototype,A.prototype),b(k,A);function p(){}var x=v("kOnFinished");function h(oe,se,Ke){if(typeof Ke!=="boolean")Ke=se instanceof ol();if(this.objectMode=!!(oe&&oe.objectMode),Ke)this.objectMode=this.objectMode||!!(oe&&oe.writableObjectMode);this.highWaterMark=oe?P(this,oe,"writableHighWaterMark",Ke):j(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let he=!!(oe&&oe.decodeStrings===!1);this.decodeStrings=!he,this.defaultEncoding=oe&&oe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=z.bind(void 0,se),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,S(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!oe||oe.emitClose!==!1,this.autoDestroy=!oe||oe.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[x]=[]}function S(oe){oe.buffered=[],oe.bufferedIndex=0,oe.allBuffers=!0,oe.allNoop=!0}h.prototype.getBuffer=function(){return a(this.buffered,this.bufferedIndex)},s(h.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function k(oe){let se=this instanceof ol();if(!se&&!l(k,this))return new k(oe);if(this._writableState=new h(oe,this,se),oe){if(typeof oe.write==="function")this._write=oe.write;if(typeof oe.writev==="function")this._writev=oe.writev;if(typeof oe.destroy==="function")this._destroy=oe.destroy;if(typeof oe.final==="function")this._final=oe.final;if(typeof oe.construct==="function")this._construct=oe.construct;if(oe.signal)N(oe.signal,this)}A.call(this,oe),O.construct(this,()=>{let Ke=this._writableState;if(!Ke.writing)ie(this,Ke);fe(this,Ke)})}s(k,g,{__proto__:null,value:function(oe){if(l(this,oe))return!0;if(this!==k)return!1;return oe&&oe._writableState instanceof h}}),k.prototype.pipe=function(){f(this,new J)};function C(oe,se,Ke,he){let Ie=oe._writableState;if(typeof Ke==="function")he=Ke,Ke=Ie.defaultEncoding;else{if(!Ke)Ke=Ie.defaultEncoding;else if(Ke!=="buffer"&&!I.isEncoding(Ke))throw new Te(Ke);if(typeof he!=="function")he=p}if(se===null)throw new Me;else if(!Ie.objectMode)if(typeof se==="string"){if(Ie.decodeStrings!==!1)se=I.from(se,Ke),Ke="buffer"}else if(se instanceof I)Ke="buffer";else if(A._isUint8Array(se))se=A._uint8ArrayToBuffer(se),Ke="buffer";else throw new Z("chunk",["string","Buffer","Uint8Array"],se);let Qe;if(Ie.ending)Qe=new Y;else if(Ie.destroyed)Qe=new ve("write");if(Qe)return r.nextTick(he,Qe),f(oe,Qe,!0),Qe;return Ie.pendingcb++,w(oe,Ie,se,Ke,he)}k.prototype.write=function(oe,se,Ke){return C(this,oe,se,Ke)===!0},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){let oe=this._writableState;if(oe.corked){if(oe.corked--,!oe.writing)ie(this,oe)}},k.prototype.setDefaultEncoding=function(oe){if(typeof oe==="string")oe=y(oe);if(!I.isEncoding(oe))throw new Te(oe);return this._writableState.defaultEncoding=oe,this};function w(oe,se,Ke,he,Ie){let Qe=se.objectMode?1:Ke.length;se.length+=Qe;let le=se.length<se.highWaterMark;if(!le)se.needDrain=!0;if(se.writing||se.corked||se.errored||!se.constructed){if(se.buffered.push({chunk:Ke,encoding:he,callback:Ie}),se.allBuffers&&he!=="buffer")se.allBuffers=!1;if(se.allNoop&&Ie!==p)se.allNoop=!1}else se.writelen=Qe,se.writecb=Ie,se.writing=!0,se.sync=!0,oe._write(Ke,he,se.onwrite),se.sync=!1;return le&&!se.errored&&!se.destroyed}function c(oe,se,Ke,he,Ie,Qe,le){if(se.writelen=he,se.writecb=le,se.writing=!0,se.sync=!0,se.destroyed)se.onwrite(new ve("write"));else if(Ke)oe._writev(Ie,se.onwrite);else oe._write(Ie,Qe,se.onwrite);se.sync=!1}function T(oe,se,Ke,he){--se.pendingcb,he(Ke),Q(se),f(oe,Ke)}function z(oe,se){let Ke=oe._writableState,he=Ke.sync,Ie=Ke.writecb;if(typeof Ie!=="function"){f(oe,new W);return}if(Ke.writing=!1,Ke.writecb=null,Ke.length-=Ke.writelen,Ke.writelen=0,se){if(se.stack,!Ke.errored)Ke.errored=se;if(oe._readableState&&!oe._readableState.errored)oe._readableState.errored=se;if(he)r.nextTick(T,oe,Ke,se,Ie);else T(oe,Ke,se,Ie)}else{if(Ke.buffered.length>Ke.bufferedIndex)ie(oe,Ke);if(he)if(Ke.afterWriteTickInfo!==null&&Ke.afterWriteTickInfo.cb===Ie)Ke.afterWriteTickInfo.count++;else Ke.afterWriteTickInfo={count:1,cb:Ie,stream:oe,state:Ke},r.nextTick(R,Ke.afterWriteTickInfo);else q(oe,Ke,1,Ie)}}function R({stream:oe,state:se,count:Ke,cb:he}){return se.afterWriteTickInfo=null,q(oe,se,Ke,he)}function q(oe,se,Ke,he){if(!se.ending&&!oe.destroyed&&se.length===0&&se.needDrain)se.needDrain=!1,oe.emit("drain");while(Ke-- >0)se.pendingcb--,he();if(se.destroyed)Q(se);fe(oe,se)}function Q(oe){if(oe.writing)return;for(let Ie=oe.bufferedIndex;Ie<oe.buffered.length;++Ie){var se;let{chunk:Qe,callback:le}=oe.buffered[Ie],Ee=oe.objectMode?1:Qe.length;oe.length-=Ee,le((se=oe.errored)!==null&&se!==void 0?se:new ve("write"))}let Ke=oe[x].splice(0);for(let Ie=0;Ie<Ke.length;Ie++){var he;Ke[Ie]((he=oe.errored)!==null&&he!==void 0?he:new ve("end"))}S(oe)}function ie(oe,se){if(se.corked||se.bufferProcessing||se.destroyed||!se.constructed)return;let{buffered:Ke,bufferedIndex:he,objectMode:Ie}=se,Qe=Ke.length-he;if(!Qe)return;let le=he;if(se.bufferProcessing=!0,Qe>1&&oe._writev){se.pendingcb-=Qe-1;let Ee=se.allNoop?p:(De)=>{for(let We=le;We<Ke.length;++We)Ke[We].callback(De)},gt=se.allNoop&&le===0?Ke:a(Ke,le);gt.allBuffers=se.allBuffers,c(oe,se,!0,se.length,gt,"",Ee),S(se)}else{do{let{chunk:Ee,encoding:gt,callback:De}=Ke[le];Ke[le++]=null;let We=Ie?1:Ee.length;c(oe,se,!1,We,Ee,gt,De)}while(le<Ke.length&&!se.writing);if(le===Ke.length)S(se);else if(le>256)Ke.splice(0,le),se.bufferedIndex=0;else se.bufferedIndex=le}se.bufferProcessing=!1}k.prototype._write=function(oe,se,Ke){if(this._writev)this._writev([{chunk:oe,encoding:se}],Ke);else throw new V("_write()")},k.prototype._writev=null,k.prototype.end=function(oe,se,Ke){let he=this._writableState;if(typeof oe==="function")Ke=oe,oe=null,se=null;else if(typeof se==="function")Ke=se,se=null;let Ie;if(oe!==null&&oe!==void 0){let Qe=C(this,oe,se);if(Qe instanceof n)Ie=Qe}if(he.corked)he.corked=1,this.uncork();if(Ie);else if(!he.errored&&!he.ending)he.ending=!0,fe(this,he,!0),he.ended=!0;else if(he.finished)Ie=new ce("end");else if(he.destroyed)Ie=new ve("end");if(typeof Ke==="function")if(Ie||he.finished)r.nextTick(Ke,Ie);else he[x].push(Ke);return this};function me(oe){return oe.ending&&!oe.destroyed&&oe.constructed&&oe.length===0&&!oe.errored&&oe.buffered.length===0&&!oe.finished&&!oe.writing&&!oe.errorEmitted&&!oe.closeEmitted}function Je(oe,se){let Ke=!1;function he(Ie){if(Ke){f(oe,Ie!==null&&Ie!==void 0?Ie:W());return}if(Ke=!0,se.pendingcb--,Ie){let Qe=se[x].splice(0);for(let le=0;le<Qe.length;le++)Qe[le](Ie);f(oe,Ie,se.sync)}else if(me(se))se.prefinished=!0,oe.emit("prefinish"),se.pendingcb++,r.nextTick(be,oe,se)}se.sync=!0,se.pendingcb++;try{oe._final(he)}catch(Ie){he(Ie)}se.sync=!1}function ke(oe,se){if(!se.prefinished&&!se.finalCalled)if(typeof oe._final==="function"&&!se.destroyed)se.finalCalled=!0,Je(oe,se);else se.prefinished=!0,oe.emit("prefinish")}function fe(oe,se,Ke){if(me(se)){if(ke(oe,se),se.pendingcb===0){if(Ke)se.pendingcb++,r.nextTick((he,Ie)=>{if(me(Ie))be(he,Ie);else Ie.pendingcb--},oe,se);else if(me(se))se.pendingcb++,be(oe,se)}}}function be(oe,se){se.pendingcb--,se.finished=!0;let Ke=se[x].splice(0);for(let he=0;he<Ke.length;he++)Ke[he]();if(oe.emit("finish"),se.autoDestroy){let he=oe._readableState;if(!he||he.autoDestroy&&(he.endEmitted||he.readable===!1))oe.destroy()}}d(k.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(oe){if(this._writableState)this._writableState.destroyed=oe}},writable:{__proto__:null,get(){let oe=this._writableState;return!!oe&&oe.writable!==!1&&!oe.destroyed&&!oe.errored&&!oe.ending&&!oe.ended},set(oe){if(this._writableState)this._writableState.writable=!!oe}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let oe=this._writableState;if(!oe)return!1;return!oe.destroyed&&!oe.ending&&oe.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Ae=O.destroy;k.prototype.destroy=function(oe,se){let Ke=this._writableState;if(!Ke.destroyed&&(Ke.bufferedIndex<Ke.buffered.length||Ke[x].length))r.nextTick(Q,Ke);return Ae.call(this,oe,se),this},k.prototype._undestroy=O.undestroy,k.prototype._destroy=function(oe,se){se(oe)},k.prototype[_.captureRejectionSymbol]=function(oe){this.destroy(oe)};var Be;function vt(){if(Be===void 0)Be={};return Be}k.fromWeb=function(oe,se){return vt().newStreamWritableFromWritableStream(oe,se)},k.toWeb=function(oe){return vt().newWritableStreamFromStreamWritable(oe)}}),P0e=jr((e,t)=>{var r=of(),a=(ci(),Cr(ui)),{isReadable:n,isWritable:l,isIterable:s,isNodeStream:d,isReadableNodeStream:b,isWritableNodeStream:y,isDuplexNodeStream:v,isReadableStream:g,isWritableStream:_}=al(),A=Eu(),{AbortError:I,codes:{ERR_INVALID_ARG_TYPE:O,ERR_INVALID_RETURN_VALUE:N}}=Ji(),{destroyer:P}=wh(),j=ol(),Z=H2(),V=FM(),{createDeferredPromise:W}=mo(),J=qV(),ve=globalThis.Blob||a.Blob,ce=typeof ve<"u"?function(x){return x instanceof ve}:function(x){return!1},Me=globalThis.AbortController||U0().AbortController,{FunctionPrototypeCall:Y}=xn();class Te extends j{constructor(x){super(x);if((x===null||x===void 0?void 0:x.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((x===null||x===void 0?void 0:x.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}t.exports=function x(h,S){if(v(h))return h;if(b(h))return p({readable:h});if(y(h))return p({writable:h});if(d(h))return p({writable:!1,readable:!1});if(g(h))return p({readable:Z.fromWeb(h)});if(_(h))return p({writable:V.fromWeb(h)});if(typeof h==="function"){let{value:C,write:w,final:c,destroy:T}=f(h);if(s(C))return J(Te,C,{objectMode:!0,write:w,final:c,destroy:T});let z=C===null||C===void 0?void 0:C.then;if(typeof z==="function"){let R,q=Y(z,C,(Q)=>{if(Q!=null)throw new N("nully","body",Q)},(Q)=>{P(R,Q)});return R=new Te({objectMode:!0,readable:!1,write:w,final(Q){c(async()=>{try{await q,r.nextTick(Q,null)}catch(ie){r.nextTick(Q,ie)}})},destroy:T})}throw new N("Iterable, AsyncIterable or AsyncFunction",S,C)}if(ce(h))return x(h.arrayBuffer());if(s(h))return J(Te,h,{objectMode:!0,writable:!1});if(g(h===null||h===void 0?void 0:h.readable)&&_(h===null||h===void 0?void 0:h.writable))return Te.fromWeb(h);if(typeof(h===null||h===void 0?void 0:h.writable)==="object"||typeof(h===null||h===void 0?void 0:h.readable)==="object"){let C=h!==null&&h!==void 0&&h.readable?b(h===null||h===void 0?void 0:h.readable)?h===null||h===void 0?void 0:h.readable:x(h.readable):void 0,w=h!==null&&h!==void 0&&h.writable?y(h===null||h===void 0?void 0:h.writable)?h===null||h===void 0?void 0:h.writable:x(h.writable):void 0;return p({readable:C,writable:w})}let k=h===null||h===void 0?void 0:h.then;if(typeof k==="function"){let C;return Y(k,h,(w)=>{if(w!=null)C.push(w);C.push(null)},(w)=>{P(C,w)}),C=new Te({objectMode:!0,writable:!1,read(){}})}throw new O(S,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],h)};function f(x){let{promise:h,resolve:S}=W(),k=new Me,C=k.signal;return{value:x(async function*(){while(!0){let w=h;h=null;let{chunk:c,done:T,cb:z}=await w;if(r.nextTick(z),T)return;if(C.aborted)throw new I(void 0,{cause:C.reason});({promise:h,resolve:S}=W()),yield c}}(),{signal:C}),write(w,c,T){let z=S;S=null,z({chunk:w,done:!1,cb:T})},final(w){let c=S;S=null,c({done:!0,cb:w})},destroy(w,c){k.abort(),c(w)}}}function p(x){let h=x.readable&&typeof x.readable.read!=="function"?Z.wrap(x.readable):x.readable,S=x.writable,k=!!n(h),C=!!l(S),w,c,T,z,R;function q(Q){let ie=z;if(z=null,ie)ie(Q);else if(Q)R.destroy(Q)}if(R=new Te({readableObjectMode:!!(h!==null&&h!==void 0&&h.readableObjectMode),writableObjectMode:!!(S!==null&&S!==void 0&&S.writableObjectMode),readable:k,writable:C}),C)A(S,(Q)=>{if(C=!1,Q)P(h,Q);q(Q)}),R._write=function(Q,ie,me){if(S.write(Q,ie))me();else w=me},R._final=function(Q){S.end(),c=Q},S.on("drain",function(){if(w){let Q=w;w=null,Q()}}),S.on("finish",function(){if(c){let Q=c;c=null,Q()}});if(k)A(h,(Q)=>{if(k=!1,Q)P(h,Q);q(Q)}),h.on("readable",function(){if(T){let Q=T;T=null,Q()}}),h.on("end",function(){R.push(null)}),R._read=function(){while(!0){let Q=h.read();if(Q===null){T=R._read;return}if(!R.push(Q))return}};return R._destroy=function(Q,ie){if(!Q&&z!==null)Q=new I;if(T=null,w=null,c=null,z===null)ie(Q);else z=ie,P(S,Q),P(h,Q)},R}}),ol=jr((e,t)=>{var{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:a,ObjectKeys:n,ObjectSetPrototypeOf:l}=xn();t.exports=b;var s=H2(),d=FM();l(b.prototype,s.prototype),l(b,s);{let _=n(d.prototype);for(let A=0;A<_.length;A++){let I=_[A];if(!b.prototype[I])b.prototype[I]=d.prototype[I]}}function b(_){if(!(this instanceof b))return new b(_);if(s.call(this,_),d.call(this,_),_){if(this.allowHalfOpen=_.allowHalfOpen!==!1,_.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(_.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}r(b.prototype,{writable:{__proto__:null,...a(d.prototype,"writable")},writableHighWaterMark:{__proto__:null,...a(d.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...a(d.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...a(d.prototype,"writableBuffer")},writableLength:{__proto__:null,...a(d.prototype,"writableLength")},writableFinished:{__proto__:null,...a(d.prototype,"writableFinished")},writableCorked:{__proto__:null,...a(d.prototype,"writableCorked")},writableEnded:{__proto__:null,...a(d.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...a(d.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(_){if(this._readableState&&this._writableState)this._readableState.destroyed=_,this._writableState.destroyed=_}}});var y;function v(){if(y===void 0)y={};return y}b.fromWeb=function(_,A){return v().newStreamDuplexFromReadableWritablePair(_,A)},b.toWeb=function(_){return v().newReadableWritablePairFromDuplex(_)};var g;b.from=function(_){if(!g)g=P0e();return g(_,"body")}}),GV=jr((e,t)=>{var{ObjectSetPrototypeOf:r,Symbol:a}=xn();t.exports=b;var{ERR_METHOD_NOT_IMPLEMENTED:n}=Ji().codes,l=ol(),{getHighWaterMark:s}=j2();r(b.prototype,l.prototype),r(b,l);var d=a("kCallback");function b(g){if(!(this instanceof b))return new b(g);let _=g?s(this,g,"readableHighWaterMark",!0):null;if(_===0)g={...g,highWaterMark:null,readableHighWaterMark:_,writableHighWaterMark:g.writableHighWaterMark||0};if(l.call(this,g),this._readableState.sync=!1,this[d]=null,g){if(typeof g.transform==="function")this._transform=g.transform;if(typeof g.flush==="function")this._flush=g.flush}this.on("prefinish",v)}function y(g){if(typeof this._flush==="function"&&!this.destroyed)this._flush((_,A)=>{if(_){if(g)g(_);else this.destroy(_);return}if(A!=null)this.push(A);if(this.push(null),g)g()});else if(this.push(null),g)g()}function v(){if(this._final!==y)y.call(this)}b.prototype._final=y,b.prototype._transform=function(g,_,A){throw new n("_transform()")},b.prototype._write=function(g,_,A){let I=this._readableState,O=this._writableState,N=I.length;this._transform(g,_,(P,j)=>{if(P){A(P);return}if(j!=null)this.push(j);if(O.ended||N===I.length||I.length<I.highWaterMark)A();else this[d]=A})},b.prototype._read=function(){if(this[d]){let g=this[d];this[d]=null,g()}}}),VV=jr((e,t)=>{var{ObjectSetPrototypeOf:r}=xn();t.exports=n;var a=GV();r(n.prototype,a.prototype),r(n,a);function n(l){if(!(this instanceof n))return new n(l);a.call(this,l)}n.prototype._transform=function(l,s,d){d(null,l)}}),qM=jr((e,t)=>{var r=of(),{ArrayIsArray:a,Promise:n,SymbolAsyncIterator:l,SymbolDispose:s}=xn(),d=Eu(),{once:b}=mo(),y=wh(),v=ol(),{aggregateTwoErrors:g,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:A,ERR_MISSING_ARGS:I,ERR_STREAM_DESTROYED:O,ERR_STREAM_PREMATURE_CLOSE:N},AbortError:P}=Ji(),{validateFunction:j,validateAbortSignal:Z}=j0(),{isIterable:V,isReadable:W,isReadableNodeStream:J,isNodeStream:ve,isTransformStream:ce,isWebStream:Me,isReadableStream:Y,isReadableFinished:Te}=al(),f=globalThis.AbortController||U0().AbortController,p,x,h;function S(Q,ie,me){let Je=!1;Q.on("close",()=>{Je=!0});let ke=d(Q,{readable:ie,writable:me},(fe)=>{Je=!fe});return{destroy:(fe)=>{if(Je)return;Je=!0,y.destroyer(Q,fe||new O("pipe"))},cleanup:ke}}function k(Q){return j(Q[Q.length-1],"streams[stream.length - 1]"),Q.pop()}function C(Q){if(V(Q))return Q;else if(J(Q))return w(Q);throw new _("val",["Readable","Iterable","AsyncIterable"],Q)}async function*w(Q){if(!x)x=H2();yield*x.prototype[l].call(Q)}async function c(Q,ie,me,{end:Je}){let ke,fe=null,be=(vt)=>{if(vt)ke=vt;if(fe){let oe=fe;fe=null,oe()}},Ae=()=>new n((vt,oe)=>{if(ke)oe(ke);else fe=()=>{if(ke)oe(ke);else vt()}});ie.on("drain",be);let Be=d(ie,{readable:!1},be);try{if(ie.writableNeedDrain)await Ae();for await(let vt of Q)if(!ie.write(vt))await Ae();if(Je)ie.end(),await Ae();me()}catch(vt){me(ke!==vt?g(ke,vt):vt)}finally{Be(),ie.off("drain",be)}}async function T(Q,ie,me,{end:Je}){if(ce(ie))ie=ie.writable;let ke=ie.getWriter();try{for await(let fe of Q)await ke.ready,ke.write(fe).catch(()=>{});if(await ke.ready,Je)await ke.close();me()}catch(fe){try{await ke.abort(fe),me(fe)}catch(be){me(be)}}}function z(...Q){return R(Q,b(k(Q)))}function R(Q,ie,me){if(Q.length===1&&a(Q[0]))Q=Q[0];if(Q.length<2)throw new I("streams");let Je=new f,ke=Je.signal,fe=me===null||me===void 0?void 0:me.signal,be=[];Z(fe,"options.signal");function Ae(){Ie(new P)}h=h||mo().addAbortListener;let Be;if(fe)Be=h(fe,Ae);let vt,oe,se=[],Ke=0;function he(De){Ie(De,--Ke===0)}function Ie(De,We){var Ye;if(De&&(!vt||vt.code==="ERR_STREAM_PREMATURE_CLOSE"))vt=De;if(!vt&&!We)return;while(se.length)se.shift()(vt);if((Ye=Be)===null||Ye===void 0||Ye[s](),Je.abort(),We){if(!vt)be.forEach((we)=>we());r.nextTick(ie,vt,oe)}}let Qe;for(let De=0;De<Q.length;De++){let We=Q[De],Ye=De<Q.length-1,we=De>0,Fe=Ye||(me===null||me===void 0?void 0:me.end)!==!1,L=De===Q.length-1;if(ve(We)){let ae=function(_e){if(_e&&_e.name!=="AbortError"&&_e.code!=="ERR_STREAM_PREMATURE_CLOSE")he(_e)};var le=ae;if(Fe){let{destroy:_e,cleanup:ot}=S(We,Ye,we);if(se.push(_e),W(We)&&L)be.push(ot)}if(We.on("error",ae),W(We)&&L)be.push(()=>{We.removeListener("error",ae)})}if(De===0)if(typeof We==="function"){if(Qe=We({signal:ke}),!V(Qe))throw new A("Iterable, AsyncIterable or Stream","source",Qe)}else if(V(We)||J(We)||ce(We))Qe=We;else Qe=v.from(We);else if(typeof We==="function"){if(ce(Qe)){var Ee;Qe=C((Ee=Qe)===null||Ee===void 0?void 0:Ee.readable)}else Qe=C(Qe);if(Qe=We(Qe,{signal:ke}),Ye){if(!V(Qe,!0))throw new A("AsyncIterable",`transform[${De-1}]`,Qe)}else{var gt;if(!p)p=VV();let ae=new p({objectMode:!0}),_e=(gt=Qe)===null||gt===void 0?void 0:gt.then;if(typeof _e==="function")Ke++,_e.call(Qe,(K)=>{if(oe=K,K!=null)ae.write(K);if(Fe)ae.end();r.nextTick(he)},(K)=>{ae.destroy(K),r.nextTick(he,K)});else if(V(Qe,!0))Ke++,c(Qe,ae,he,{end:Fe});else if(Y(Qe)||ce(Qe)){let K=Qe.readable||Qe;Ke++,c(K,ae,he,{end:Fe})}else throw new A("AsyncIterable or Promise","destination",Qe);Qe=ae;let{destroy:ot,cleanup:xe}=S(Qe,!1,!0);if(se.push(ot),L)be.push(xe)}}else if(ve(We)){if(J(Qe)){Ke+=2;let ae=q(Qe,We,he,{end:Fe});if(W(We)&&L)be.push(ae)}else if(ce(Qe)||Y(Qe)){let ae=Qe.readable||Qe;Ke++,c(ae,We,he,{end:Fe})}else if(V(Qe))Ke++,c(Qe,We,he,{end:Fe});else throw new _("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Qe);Qe=We}else if(Me(We)){if(J(Qe))Ke++,T(C(Qe),We,he,{end:Fe});else if(Y(Qe)||V(Qe))Ke++,T(Qe,We,he,{end:Fe});else if(ce(Qe))Ke++,T(Qe.readable,We,he,{end:Fe});else throw new _("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Qe);Qe=We}else Qe=v.from(We)}if(ke!==null&&ke!==void 0&&ke.aborted||fe!==null&&fe!==void 0&&fe.aborted)r.nextTick(Ae);return Qe}function q(Q,ie,me,{end:Je}){let ke=!1;if(ie.on("close",()=>{if(!ke)me(new N)}),Q.pipe(ie,{end:!1}),Je){let be=function(){ke=!0,ie.end()};var fe=be;if(Te(Q))r.nextTick(be);else Q.once("end",be)}else me();return d(Q,{readable:!0,writable:!1},(be)=>{let Ae=Q._readableState;if(be&&be.code==="ERR_STREAM_PREMATURE_CLOSE"&&Ae&&Ae.ended&&!Ae.errored&&!Ae.errorEmitted)Q.once("end",me).once("error",me);else me(be)}),d(ie,{readable:!1,writable:!0},me)}t.exports={pipelineImpl:R,pipeline:z}}),YV=jr((e,t)=>{var{pipeline:r}=qM(),a=ol(),{destroyer:n}=wh(),{isNodeStream:l,isReadable:s,isWritable:d,isWebStream:b,isTransformStream:y,isWritableStream:v,isReadableStream:g}=al(),{AbortError:_,codes:{ERR_INVALID_ARG_VALUE:A,ERR_MISSING_ARGS:I}}=Ji(),O=Eu();t.exports=function(...N){if(N.length===0)throw new I("streams");if(N.length===1)return a.from(N[0]);let P=[...N];if(typeof N[0]==="function")N[0]=a.from(N[0]);if(typeof N[N.length-1]==="function"){let f=N.length-1;N[f]=a.from(N[f])}for(let f=0;f<N.length;++f){if(!l(N[f])&&!b(N[f]))continue;if(f<N.length-1&&!(s(N[f])||g(N[f])||y(N[f])))throw new A(`streams[${f}]`,P[f],"must be readable");if(f>0&&!(d(N[f])||v(N[f])||y(N[f])))throw new A(`streams[${f}]`,P[f],"must be writable")}let j,Z,V,W,J;function ve(f){let p=W;if(W=null,p)p(f);else if(f)J.destroy(f);else if(!Te&&!Y)J.destroy()}let ce=N[0],Me=r(N,ve),Y=!!(d(ce)||v(ce)||y(ce)),Te=!!(s(Me)||g(Me)||y(Me));if(J=new a({writableObjectMode:!!(ce!==null&&ce!==void 0&&ce.writableObjectMode),readableObjectMode:!!(Me!==null&&Me!==void 0&&Me.readableObjectMode),writable:Y,readable:Te}),Y){if(l(ce))J._write=function(p,x,h){if(ce.write(p,x))h();else j=h},J._final=function(p){ce.end(),Z=p},ce.on("drain",function(){if(j){let p=j;j=null,p()}});else if(b(ce)){let p=(y(ce)?ce.writable:ce).getWriter();J._write=async function(x,h,S){try{await p.ready,p.write(x).catch(()=>{}),S()}catch(k){S(k)}},J._final=async function(x){try{await p.ready,p.close().catch(()=>{}),Z=x}catch(h){x(h)}}}let f=y(Me)?Me.readable:Me;O(f,()=>{if(Z){let p=Z;Z=null,p()}})}if(Te){if(l(Me))Me.on("readable",function(){if(V){let f=V;V=null,f()}}),Me.on("end",function(){J.push(null)}),J._read=function(){while(!0){let f=Me.read();if(f===null){V=J._read;return}if(!J.push(f))return}};else if(b(Me)){let f=(y(Me)?Me.readable:Me).getReader();J._read=async function(){while(!0)try{let{value:p,done:x}=await f.read();if(!J.push(p))return;if(x){J.push(null);return}}catch{return}}}}return J._destroy=function(f,p){if(!f&&W!==null)f=new _;if(V=null,j=null,Z=null,W===null)p(f);else if(W=p,l(Me))n(Me,f)},J}}),$0e=jr((e,t)=>{var r=globalThis.AbortController||U0().AbortController,{codes:{ERR_INVALID_ARG_VALUE:a,ERR_INVALID_ARG_TYPE:n,ERR_MISSING_ARGS:l,ERR_OUT_OF_RANGE:s},AbortError:d}=Ji(),{validateAbortSignal:b,validateInteger:y,validateObject:v}=j0(),g=xn().Symbol("kWeak"),_=xn().Symbol("kResistStopPropagation"),{finished:A}=Eu(),I=YV(),{addAbortSignalNoValidate:O}=U2(),{isWritable:N,isNodeStream:P}=al(),{deprecate:j}=mo(),{ArrayPrototypePush:Z,Boolean:V,MathFloor:W,Number:J,NumberIsNaN:ve,Promise:ce,PromiseReject:Me,PromiseResolve:Y,PromisePrototypeThen:Te,Symbol:f}=xn(),p=f("kEmpty"),x=f("kEof");function h(fe,be){if(be!=null)v(be,"options");if((be===null||be===void 0?void 0:be.signal)!=null)b(be.signal,"options.signal");if(P(fe)&&!N(fe))throw new a("stream",fe,"must be writable");let Ae=I(this,fe);if(be!==null&&be!==void 0&&be.signal)O(be.signal,Ae);return Ae}function S(fe,be){if(typeof fe!=="function")throw new n("fn",["Function","AsyncFunction"],fe);if(be!=null)v(be,"options");if((be===null||be===void 0?void 0:be.signal)!=null)b(be.signal,"options.signal");let Ae=1;if((be===null||be===void 0?void 0:be.concurrency)!=null)Ae=W(be.concurrency);let Be=Ae-1;if((be===null||be===void 0?void 0:be.highWaterMark)!=null)Be=W(be.highWaterMark);return y(Ae,"options.concurrency",1),y(Be,"options.highWaterMark",0),Be+=Ae,async function*(){let vt=mo().AbortSignalAny([be===null||be===void 0?void 0:be.signal].filter(V)),oe=this,se=[],Ke={signal:vt},he,Ie,Qe=!1,le=0;function Ee(){Qe=!0,gt()}function gt(){le-=1,De()}function De(){if(Ie&&!Qe&&le<Ae&&se.length<Be)Ie(),Ie=null}async function We(){try{for await(let Ye of oe){if(Qe)return;if(vt.aborted)throw new d;try{if(Ye=fe(Ye,Ke),Ye===p)continue;Ye=Y(Ye)}catch(we){Ye=Me(we)}if(le+=1,Te(Ye,gt,Ee),se.push(Ye),he)he(),he=null;if(!Qe&&(se.length>=Be||le>=Ae))await new ce((we)=>{Ie=we})}se.push(x)}catch(Ye){let we=Me(Ye);Te(we,gt,Ee),se.push(we)}finally{if(Qe=!0,he)he(),he=null}}We();try{while(!0){while(se.length>0){let Ye=await se[0];if(Ye===x)return;if(vt.aborted)throw new d;if(Ye!==p)yield Ye;se.shift(),De()}await new ce((Ye)=>{he=Ye})}}finally{if(Qe=!0,Ie)Ie(),Ie=null}}.call(this)}function k(fe=void 0){if(fe!=null)v(fe,"options");if((fe===null||fe===void 0?void 0:fe.signal)!=null)b(fe.signal,"options.signal");return async function*(){let be=0;for await(let Be of this){var Ae;if(fe!==null&&fe!==void 0&&(Ae=fe.signal)!==null&&Ae!==void 0&&Ae.aborted)throw new d({cause:fe.signal.reason});yield[be++,Be]}}.call(this)}async function C(fe,be=void 0){for await(let Ae of z.call(this,fe,be))return!0;return!1}async function w(fe,be=void 0){if(typeof fe!=="function")throw new n("fn",["Function","AsyncFunction"],fe);return!await C.call(this,async(...Ae)=>!await fe(...Ae),be)}async function c(fe,be){for await(let Ae of z.call(this,fe,be))return Ae;return}async function T(fe,be){if(typeof fe!=="function")throw new n("fn",["Function","AsyncFunction"],fe);async function Ae(Be,vt){return await fe(Be,vt),p}for await(let Be of S.call(this,Ae,be));}function z(fe,be){if(typeof fe!=="function")throw new n("fn",["Function","AsyncFunction"],fe);async function Ae(Be,vt){if(await fe(Be,vt))return Be;return p}return S.call(this,Ae,be)}class R extends l{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function q(fe,be,Ae){var Be;if(typeof fe!=="function")throw new n("reducer",["Function","AsyncFunction"],fe);if(Ae!=null)v(Ae,"options");if((Ae===null||Ae===void 0?void 0:Ae.signal)!=null)b(Ae.signal,"options.signal");let vt=arguments.length>1;if(Ae!==null&&Ae!==void 0&&(Be=Ae.signal)!==null&&Be!==void 0&&Be.aborted){let Ie=new d(void 0,{cause:Ae.signal.reason});throw this.once("error",()=>{}),await A(this.destroy(Ie)),Ie}let oe=new r,se=oe.signal;if(Ae!==null&&Ae!==void 0&&Ae.signal){let Ie={once:!0,[g]:this,[_]:!0};Ae.signal.addEventListener("abort",()=>oe.abort(),Ie)}let Ke=!1;try{for await(let Ie of this){var he;if(Ke=!0,Ae!==null&&Ae!==void 0&&(he=Ae.signal)!==null&&he!==void 0&&he.aborted)throw new d;if(!vt)be=Ie,vt=!0;else be=await fe(be,Ie,{signal:se})}if(!Ke&&!vt)throw new R}finally{oe.abort()}return be}async function Q(fe){if(fe!=null)v(fe,"options");if((fe===null||fe===void 0?void 0:fe.signal)!=null)b(fe.signal,"options.signal");let be=[];for await(let Be of this){var Ae;if(fe!==null&&fe!==void 0&&(Ae=fe.signal)!==null&&Ae!==void 0&&Ae.aborted)throw new d(void 0,{cause:fe.signal.reason});Z(be,Be)}return be}function ie(fe,be){let Ae=S.call(this,fe,be);return async function*(){for await(let Be of Ae)yield*Be}.call(this)}function me(fe){if(fe=J(fe),ve(fe))return 0;if(fe<0)throw new s("number",">= 0",fe);return fe}function Je(fe,be=void 0){if(be!=null)v(be,"options");if((be===null||be===void 0?void 0:be.signal)!=null)b(be.signal,"options.signal");return fe=me(fe),async function*(){var Ae;if(be!==null&&be!==void 0&&(Ae=be.signal)!==null&&Ae!==void 0&&Ae.aborted)throw new d;for await(let vt of this){var Be;if(be!==null&&be!==void 0&&(Be=be.signal)!==null&&Be!==void 0&&Be.aborted)throw new d;if(fe--<=0)yield vt}}.call(this)}function ke(fe,be=void 0){if(be!=null)v(be,"options");if((be===null||be===void 0?void 0:be.signal)!=null)b(be.signal,"options.signal");return fe=me(fe),async function*(){var Ae;if(be!==null&&be!==void 0&&(Ae=be.signal)!==null&&Ae!==void 0&&Ae.aborted)throw new d;for await(let vt of this){var Be;if(be!==null&&be!==void 0&&(Be=be.signal)!==null&&Be!==void 0&&Be.aborted)throw new d;if(fe-- >0)yield vt;if(fe<=0)return}}.call(this)}t.exports.streamReturningOperators={asIndexedPairs:j(k,"readable.asIndexedPairs will be removed in a future version."),drop:Je,filter:z,flatMap:ie,map:S,take:ke,compose:h},t.exports.promiseReturningOperators={every:w,forEach:T,reduce:q,toArray:Q,some:C,find:c}}),KV=jr((e,t)=>{var{ArrayPrototypePop:r,Promise:a}=xn(),{isIterable:n,isNodeStream:l,isWebStream:s}=al(),{pipelineImpl:d}=qM(),{finished:b}=Eu();WV();function y(...v){return new a((g,_)=>{let A,I,O=v[v.length-1];if(O&&typeof O==="object"&&!l(O)&&!n(O)&&!s(O)){let N=r(v);A=N.signal,I=N.end}d(v,(N,P)=>{if(N)_(N);else g(P)},{signal:A,end:I})})}t.exports={finished:b,pipeline:y}}),WV=jr((e,t)=>{var{Buffer:r}=(ci(),Cr(ui)),{ObjectDefineProperty:a,ObjectKeys:n,ReflectApply:l}=xn(),{promisify:{custom:s}}=mo(),{streamReturningOperators:d,promiseReturningOperators:b}=$0e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:y}}=Ji(),v=YV(),{setDefaultHighWaterMark:g,getDefaultHighWaterMark:_}=j2(),{pipeline:A}=qM(),{destroyer:I}=wh(),O=Eu(),N=KV(),P=al(),j=t.exports=ZM().Stream;j.isDestroyed=P.isDestroyed,j.isDisturbed=P.isDisturbed,j.isErrored=P.isErrored,j.isReadable=P.isReadable,j.isWritable=P.isWritable,j.Readable=H2();for(let V of n(d)){let W=function(...ve){if(new.target)throw y();return j.Readable.from(l(J,this,ve))},J=d[V];a(W,"name",{__proto__:null,value:J.name}),a(W,"length",{__proto__:null,value:J.length}),a(j.Readable.prototype,V,{__proto__:null,value:W,enumerable:!1,configurable:!0,writable:!0})}for(let V of n(b)){let W=function(...ve){if(new.target)throw y();return l(J,this,ve)},J=b[V];a(W,"name",{__proto__:null,value:J.name}),a(W,"length",{__proto__:null,value:J.length}),a(j.Readable.prototype,V,{__proto__:null,value:W,enumerable:!1,configurable:!0,writable:!0})}j.Writable=FM(),j.Duplex=ol(),j.Transform=GV(),j.PassThrough=VV(),j.pipeline=A;var{addAbortSignal:Z}=U2();j.addAbortSignal=Z,j.finished=O,j.destroy=I,j.compose=v,j.setDefaultHighWaterMark=g,j.getDefaultHighWaterMark=_,a(j,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return N}}),a(A,s,{__proto__:null,enumerable:!0,get(){return N.pipeline}}),a(O,s,{__proto__:null,enumerable:!0,get(){return N.finished}}),j.Stream=j,j._isUint8Array=function(V){return V instanceof Uint8Array},j._uint8ArrayToBuffer=function(V){return r.from(V.buffer,V.byteOffset,V.byteLength)}}),B0e=jr((e,t)=>{var r=GM();{let a=WV(),n=KV(),l=a.Readable.destroy;t.exports=a.Readable,t.exports._uint8ArrayToBuffer=a._uint8ArrayToBuffer,t.exports._isUint8Array=a._isUint8Array,t.exports.isDisturbed=a.isDisturbed,t.exports.isErrored=a.isErrored,t.exports.isReadable=a.isReadable,t.exports.Readable=a.Readable,t.exports.Writable=a.Writable,t.exports.Duplex=a.Duplex,t.exports.Transform=a.Transform,t.exports.PassThrough=a.PassThrough,t.exports.addAbortSignal=a.addAbortSignal,t.exports.finished=a.finished,t.exports.destroy=a.destroy,t.exports.destroy=l,t.exports.pipeline=a.pipeline,t.exports.compose=a.compose,Object.defineProperty(a,"promises",{configurable:!0,enumerable:!0,get(){return n}}),t.exports.Stream=a.Stream}t.exports.default=t.exports});XV.exports=B0e()});var Lo={};Vn(Lo,{Cipher:()=>z1e,Cipheriv:()=>P1e,DEFAULT_ENCODING:()=>ube,Decipher:()=>B1e,Decipheriv:()=>j1e,DiffieHellman:()=>K1e,DiffieHellmanGroup:()=>q1e,Hash:()=>C1e,Hmac:()=>R1e,Sign:()=>X1e,Verify:()=>Q1e,constants:()=>lbe,createCipher:()=>L1e,createCipheriv:()=>$1e,createCredentials:()=>sbe,createDecipher:()=>U1e,createDecipheriv:()=>H1e,createDiffieHellman:()=>Y1e,createDiffieHellmanGroup:()=>G1e,createECDH:()=>ebe,createHash:()=>nC,createHmac:()=>I1e,createSign:()=>W1e,createVerify:()=>J1e,default:()=>mbe,getCiphers:()=>Z1e,getCurves:()=>hbe,getDiffieHellman:()=>V1e,getHashes:()=>O1e,getRandomValues:()=>cbe,listCiphers:()=>F1e,pbkdf2:()=>N1e,pbkdf2Sync:()=>D1e,privateDecrypt:()=>ibe,privateEncrypt:()=>rbe,prng:()=>T1e,pseudoRandomBytes:()=>k1e,publicDecrypt:()=>nbe,publicEncrypt:()=>tbe,randomBytes:()=>M1e,randomFill:()=>obe,randomFillSync:()=>abe,randomUUID:()=>fbe,rng:()=>A1e,webcrypto:()=>pbe});function F0e(e){return this[e]}function hbe(){return dbe}var U0e,j0e,JV,H0e,Z0e,q0e,G0e,V0e=(e,t,r)=>{var a=e!=null&&typeof e==="object";if(a){var n=t?q0e??=new WeakMap:G0e??=new WeakMap,l=n.get(e);if(l)return l}r=e!=null?U0e(j0e(e)):{};let s=t||!e||!e.__esModule?JV(r,"default",{value:e,enumerable:!0}):r;for(let d of H0e(e))if(!Z0e.call(s,d))JV(s,d,{get:F0e.bind(e,d),enumerable:!0});if(a)n.set(e,s);return s},ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z2,F2,eY,Y0e,YM,KM,Qi,K0e,Z0,tY,W0e,X0e,J0e,Q0e,rY,ege,tge,rge,nge,ige,oge,age,sge,lge,uge,F0,q2,nY,cge,iY,oY,fge,q0,WM,XM,dge,aY,JM,hge,sY,pge,lY,uY,mge,gge,bge,yge,vge,Sge,xge,_ge,wge,Ege,Tge,kge,Age,Mge,QM,cY,Cge,fY,Rge,Ige,Oge,Nge,sl,Tu,dY,na,hY,G2,Dge,zo,zge,Lge,Pge,pY,bs,G0,mY,$ge,gY,Bge,bY,Uge,jge,Hge,Zge,eC,Fge,tC,qge,Gge,Vge,Yge,Kge,Wge,Xge,Jge,Qge,e1e,t1e,r1e,n1e,i1e,QV,o1e,H0,a1e,yY,vY,s1e,l1e,SY,u1e,c1e,V0,f1e,d1e,h1e,p1e,m1e,g1e,xY,b1e,_Y,wY,EY,rC,TY,y1e,kY,v1e,S1e,VM,x1e,_1e,w1e,E1e,yr,T1e,k1e,A1e,M1e,C1e,nC,R1e,I1e,O1e,N1e,D1e,z1e,L1e,P1e,$1e,B1e,U1e,j1e,H1e,Z1e,F1e,q1e,G1e,V1e,Y1e,K1e,W1e,X1e,J1e,Q1e,ebe,tbe,rbe,nbe,ibe,obe,abe,sbe,lbe,ube="buffer",cbe=(e)=>crypto.getRandomValues(e),fbe=()=>crypto.randomUUID(),dbe,pbe,mbe;var eo=Le(()=>{U0e=Object.create,{getPrototypeOf:j0e,defineProperty:JV,getOwnPropertyNames:H0e}=Object,Z0e=Object.prototype.hasOwnProperty;Z2=ct((e,t)=>{t.exports=(eo(),Cr(Lo)).randomBytes}),F2=ct((e,t)=>{t.exports=(eo(),Cr(Lo)).createHash}),eY=ct((e,t)=>{t.exports=(eo(),Cr(Lo)).createHmac}),Y0e=ct((e,t)=>{t.exports={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"}}}),YM=ct((e,t)=>{var r=isFinite,a=Math.pow(2,30)-1;t.exports=function(n,l){if(typeof n!=="number")throw TypeError("Iterations not a number");if(n<0||!r(n))throw TypeError("Bad iterations");if(typeof l!=="number")throw TypeError("Key length not a number");if(l<0||l>a||l!==l)throw TypeError("Bad key length")}}),KM=ct((e,t)=>{var r;if(globalThis.process&&globalThis.process.browser)r="utf-8";else if(globalThis.process&&globalThis.process.version)a=parseInt(process.version.split(".")[0].slice(1),10),r=a>=6?"utf-8":"binary";else r="utf-8";var a;t.exports=r}),Qi=ct((e,t)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var r=(ci(),Cr(ui)),a=r.Buffer;function n(s,d){for(var b in s)d[b]=s[b]}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow)t.exports=r;else n(r,e),e.Buffer=l;function l(s,d,b){return a(s,d,b)}l.prototype=Object.create(a.prototype),n(a,l),l.from=function(s,d,b){if(typeof s==="number")throw TypeError("Argument must not be a number");return a(s,d,b)},l.alloc=function(s,d,b){if(typeof s!=="number")throw TypeError("Argument must be a number");var y=a(s);if(d!==void 0)if(typeof b==="string")y.fill(d,b);else y.fill(d);else y.fill(0);return y},l.allocUnsafe=function(s){if(typeof s!=="number")throw TypeError("Argument must be a number");return a(s)},l.allocUnsafeSlow=function(s){if(typeof s!=="number")throw TypeError("Argument must be a number");return r.SlowBuffer(s)}}),K0e=ct((e,t)=>{var r={}.toString;t.exports=Array.isArray||function(a){return r.call(a)=="[object Array]"}}),Z0=ct((e,t)=>{t.exports=TypeError}),tY=ct((e,t)=>{t.exports=Object}),W0e=ct((e,t)=>{t.exports=Error}),X0e=ct((e,t)=>{t.exports=EvalError}),J0e=ct((e,t)=>{t.exports=RangeError}),Q0e=ct((e,t)=>{t.exports=ReferenceError}),rY=ct((e,t)=>{t.exports=SyntaxError}),ege=ct((e,t)=>{t.exports=URIError}),tge=ct((e,t)=>{t.exports=Math.abs}),rge=ct((e,t)=>{t.exports=Math.floor}),nge=ct((e,t)=>{t.exports=Math.max}),ige=ct((e,t)=>{t.exports=Math.min}),oge=ct((e,t)=>{t.exports=Math.pow}),age=ct((e,t)=>{t.exports=Math.round}),sge=ct((e,t)=>{t.exports=Number.isNaN||function(r){return r!==r}}),lge=ct((e,t)=>{var r=sge();t.exports=function(a){if(r(a)||a===0)return a;return a<0?-1:1}}),uge=ct((e,t)=>{t.exports=Object.getOwnPropertyDescriptor}),F0=ct((e,t)=>{var r=uge();if(r)try{r([],"length")}catch(a){r=null}t.exports=r}),q2=ct((e,t)=>{var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(a){r=!1}t.exports=r}),nY=ct((e,t)=>{t.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var r={},a=Symbol("test"),n=Object(a);if(typeof a==="string")return!1;if(Object.prototype.toString.call(a)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var l=42;r[a]=l;for(var s in r)return!1;if(typeof Object.keys==="function"&&Object.keys(r).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var d=Object.getOwnPropertySymbols(r);if(d.length!==1||d[0]!==a)return!1;if(!Object.prototype.propertyIsEnumerable.call(r,a))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var b=Object.getOwnPropertyDescriptor(r,a);if(b.value!==l||b.enumerable!==!0)return!1}return!0}}),cge=ct((e,t)=>{var r=typeof Symbol<"u"&&Symbol,a=nY();t.exports=function(){if(typeof r!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof r("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return a()}}),iY=ct((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),oY=ct((e,t)=>{var r=tY();t.exports=r.getPrototypeOf||null}),fge=ct((e,t)=>{var r="Function.prototype.bind called on incompatible ",a=Object.prototype.toString,n=Math.max,l="[object Function]",s=function(y,v){var g=[];for(var _=0;_<y.length;_+=1)g[_]=y[_];for(var A=0;A<v.length;A+=1)g[A+y.length]=v[A];return g},d=function(y,v){var g=[];for(var _=v||0,A=0;_<y.length;_+=1,A+=1)g[A]=y[_];return g},b=function(y,v){var g="";for(var _=0;_<y.length;_+=1)if(g+=y[_],_+1<y.length)g+=v;return g};t.exports=function(y){var v=this;if(typeof v!=="function"||a.apply(v)!==l)throw TypeError(r+v);var g=d(arguments,1),_,A=function(){if(this instanceof _){var j=v.apply(this,s(g,arguments));if(Object(j)===j)return j;return this}return v.apply(y,s(g,arguments))},I=n(0,v.length-g.length),O=[];for(var N=0;N<I;N++)O[N]="$"+N;if(_=Function("binder","return function ("+b(O,",")+"){ return binder.apply(this,arguments); }")(A),v.prototype){var P=function(){};P.prototype=v.prototype,_.prototype=new P,P.prototype=null}return _}}),q0=ct((e,t)=>{var r=fge();t.exports=Function.prototype.bind||r}),WM=ct((e,t)=>{t.exports=Function.prototype.call}),XM=ct((e,t)=>{t.exports=Function.prototype.apply}),dge=ct((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),aY=ct((e,t)=>{var r=q0(),a=XM(),n=WM(),l=dge();t.exports=l||r.call(n,a)}),JM=ct((e,t)=>{var r=q0(),a=Z0(),n=WM(),l=aY();t.exports=function(s){if(s.length<1||typeof s[0]!=="function")throw new a("a function is required");return l(r,n,s)}}),hge=ct((e,t)=>{var r=JM(),a=F0(),n;try{n=[].__proto__===Array.prototype}catch(b){if(!b||typeof b!=="object"||!("code"in b)||b.code!=="ERR_PROTO_ACCESS")throw b}var l=!!n&&a&&a(Object.prototype,"__proto__"),s=Object,d=s.getPrototypeOf;t.exports=l&&typeof l.get==="function"?r([l.get]):typeof d==="function"?function(b){return d(b==null?b:s(b))}:!1}),sY=ct((e,t)=>{var r=iY(),a=oY(),n=hge();t.exports=r?function(l){return r(l)}:a?function(l){if(!l||typeof l!=="object"&&typeof l!=="function")throw TypeError("getProto: not an object");return a(l)}:n?function(l){return n(l)}:null}),pge=ct((e,t)=>{var r=Function.prototype.call,a=Object.prototype.hasOwnProperty,n=q0();t.exports=n.call(r,a)}),lY=ct((e,t)=>{var r,a=tY(),n=W0e(),l=X0e(),s=J0e(),d=Q0e(),b=rY(),y=Z0(),v=ege(),g=tge(),_=rge(),A=nge(),I=ige(),O=oge(),N=age(),P=lge(),j=Function,Z=function(be){try{return j('"use strict"; return ('+be+").constructor;")()}catch(Ae){}},V=F0(),W=q2(),J=function(){throw new y},ve=V?function(){try{return arguments.callee,J}catch(be){try{return V(arguments,"callee").get}catch(Ae){return J}}}():J,ce=cge()(),Me=sY(),Y=oY(),Te=iY(),f=XM(),p=WM(),x={},h=typeof Uint8Array>"u"||!Me?r:Me(Uint8Array),S={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":ce&&Me?Me([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":j,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ce&&Me?Me(Me([][Symbol.iterator]())):r,"%JSON%":typeof JSON==="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ce||!Me?r:Me(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":V,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":s,"%ReferenceError%":d,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ce||!Me?r:Me(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ce&&Me?Me(""[Symbol.iterator]()):r,"%Symbol%":ce?Symbol:r,"%SyntaxError%":b,"%ThrowTypeError%":ve,"%TypedArray%":h,"%TypeError%":y,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":v,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":p,"%Function.prototype.apply%":f,"%Object.defineProperty%":W,"%Object.getPrototypeOf%":Y,"%Math.abs%":g,"%Math.floor%":_,"%Math.max%":A,"%Math.min%":I,"%Math.pow%":O,"%Math.round%":N,"%Math.sign%":P,"%Reflect.getPrototypeOf%":Te};if(Me)try{null.error}catch(be){k=Me(Me(be)),S["%Error.prototype%"]=k}var k,C=function be(Ae){var Be;if(Ae==="%AsyncFunction%")Be=Z("async function () {}");else if(Ae==="%GeneratorFunction%")Be=Z("function* () {}");else if(Ae==="%AsyncGeneratorFunction%")Be=Z("async function* () {}");else if(Ae==="%AsyncGenerator%"){var vt=be("%AsyncGeneratorFunction%");if(vt)Be=vt.prototype}else if(Ae==="%AsyncIteratorPrototype%"){var oe=be("%AsyncGenerator%");if(oe&&Me)Be=Me(oe.prototype)}return S[Ae]=Be,Be},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=q0(),T=pge(),z=c.call(p,Array.prototype.concat),R=c.call(f,Array.prototype.splice),q=c.call(p,String.prototype.replace),Q=c.call(p,String.prototype.slice),ie=c.call(p,RegExp.prototype.exec),me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Je=/\\(\\)?/g,ke=function(be){var Ae=Q(be,0,1),Be=Q(be,-1);if(Ae==="%"&&Be!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");else if(Be==="%"&&Ae!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var vt=[];return q(be,me,function(oe,se,Ke,he){vt[vt.length]=Ke?q(he,Je,"$1"):se||oe}),vt},fe=function(be,Ae){var Be=be,vt;if(T(w,Be))vt=w[Be],Be="%"+vt[0]+"%";if(T(S,Be)){var oe=S[Be];if(oe===x)oe=C(Be);if(typeof oe>"u"&&!Ae)throw new y("intrinsic "+be+" exists, but is not available. Please file an issue!");return{alias:vt,name:Be,value:oe}}throw new b("intrinsic "+be+" does not exist!")};t.exports=function(be,Ae){if(typeof be!=="string"||be.length===0)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ae!=="boolean")throw new y('"allowMissing" argument must be a boolean');if(ie(/^%?[^%]*%?$/,be)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Be=ke(be),vt=Be.length>0?Be[0]:"",oe=fe("%"+vt+"%",Ae),se=oe.name,Ke=oe.value,he=!1,Ie=oe.alias;if(Ie)vt=Ie[0],R(Be,z([0,1],Ie));for(var Qe=1,le=!0;Qe<Be.length;Qe+=1){var Ee=Be[Qe],gt=Q(Ee,0,1),De=Q(Ee,-1);if((gt==='"'||gt==="'"||gt==="`"||(De==='"'||De==="'"||De==="`"))&&gt!==De)throw new b("property names with quotes must have matching quotes");if(Ee==="constructor"||!le)he=!0;if(vt+="."+Ee,se="%"+vt+"%",T(S,se))Ke=S[se];else if(Ke!=null){if(!(Ee in Ke)){if(!Ae)throw new y("base intrinsic for "+be+" exists, but the property is not available.");return}if(V&&Qe+1>=Be.length){var We=V(Ke,Ee);if(le=!!We,le&&"get"in We&&!("originalValue"in We.get))Ke=We.get;else Ke=Ke[Ee]}else le=T(Ke,Ee),Ke=Ke[Ee];if(le&&!he)S[se]=Ke}}return Ke}}),uY=ct((e,t)=>{var r=lY(),a=JM(),n=a([r("%String.prototype.indexOf%")]);t.exports=function(l,s){var d=r(l,!!s);if(typeof d==="function"&&n(l,".prototype.")>-1)return a([d]);return d}}),mge=ct((e,t)=>{var r=Function.prototype.toString,a=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,n,l;if(typeof a==="function"&&typeof Object.defineProperty==="function")try{n=Object.defineProperty({},"length",{get:function(){throw l}}),l={},a(function(){throw 42},null,n)}catch(V){if(V!==l)a=null}else a=null;var s=/^\s*class\b/,d=function(V){try{var W=r.call(V);return s.test(W)}catch(J){return!1}},b=function(V){try{if(d(V))return!1;return r.call(V),!0}catch(W){return!1}},y=Object.prototype.toString,v="[object Object]",g="[object Function]",_="[object GeneratorFunction]",A="[object HTMLAllCollection]",I="[object HTML document.all class]",O="[object HTMLCollection]",N=typeof Symbol==="function"&&!!Symbol.toStringTag,P=!(0 in[,]),j=function(){return!1};if(typeof document==="object"){if(Z=document.all,y.call(Z)===y.call(document.all))j=function(V){if((P||!V)&&(typeof V>"u"||typeof V==="object"))try{var W=y.call(V);return(W===A||W===I||W===O||W===v)&&V("")==null}catch(J){}return!1}}var Z;t.exports=a?function(V){if(j(V))return!0;if(!V)return!1;if(typeof V!=="function"&&typeof V!=="object")return!1;try{a(V,null,n)}catch(W){if(W!==l)return!1}return!d(V)&&b(V)}:function(V){if(j(V))return!0;if(!V)return!1;if(typeof V!=="function"&&typeof V!=="object")return!1;if(N)return b(V);if(d(V))return!1;var W=y.call(V);if(W!==g&&W!==_&&!/^\[object HTML/.test(W))return!1;return b(V)}}),gge=ct((e,t)=>{var r=mge(),a=Object.prototype.toString,n=Object.prototype.hasOwnProperty,l=function(y,v,g){for(var _=0,A=y.length;_<A;_++)if(n.call(y,_))if(g==null)v(y[_],_,y);else v.call(g,y[_],_,y)},s=function(y,v,g){for(var _=0,A=y.length;_<A;_++)if(g==null)v(y.charAt(_),_,y);else v.call(g,y.charAt(_),_,y)},d=function(y,v,g){for(var _ in y)if(n.call(y,_))if(g==null)v(y[_],_,y);else v.call(g,y[_],_,y)};function b(y){return a.call(y)==="[object Array]"}t.exports=function(y,v,g){if(!r(v))throw TypeError("iterator must be a function");var _;if(arguments.length>=3)_=g;if(b(y))l(y,v,_);else if(typeof y==="string")s(y,v,_);else d(y,v,_)}}),bge=ct((e,t)=>{t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),yge=ct((e,t)=>{var r=bge(),a=typeof globalThis>"u"?globalThis:globalThis;t.exports=function(){var n=[];for(var l=0;l<r.length;l++)if(typeof a[r[l]]==="function")n[n.length]=r[l];return n}}),vge=ct((e,t)=>{var r=q2(),a=rY(),n=Z0(),l=F0();t.exports=function(s,d,b){if(!s||typeof s!=="object"&&typeof s!=="function")throw new n("`obj` must be an object or a function`");if(typeof d!=="string"&&typeof d!=="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new n("`loose`, if provided, must be a boolean");var y=arguments.length>3?arguments[3]:null,v=arguments.length>4?arguments[4]:null,g=arguments.length>5?arguments[5]:null,_=arguments.length>6?arguments[6]:!1,A=!!l&&l(s,d);if(r)r(s,d,{configurable:g===null&&A?A.configurable:!g,enumerable:y===null&&A?A.enumerable:!y,value:b,writable:v===null&&A?A.writable:!v});else if(_||!y&&!v&&!g)s[d]=b;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),Sge=ct((e,t)=>{var r=q2(),a=function(){return!!r};a.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch(n){return!0}},t.exports=a}),xge=ct((e,t)=>{var r=lY(),a=vge(),n=Sge()(),l=F0(),s=Z0(),d=r("%Math.floor%");t.exports=function(b,y){if(typeof b!=="function")throw new s("`fn` is not a function");if(typeof y!=="number"||y<0||y>4294967295||d(y)!==y)throw new s("`length` must be a positive 32-bit integer");var v=arguments.length>2&&!!arguments[2],g=!0,_=!0;if("length"in b&&l){var A=l(b,"length");if(A&&!A.configurable)g=!1;if(A&&!A.writable)_=!1}if(g||_||!v)if(n)a(b,"length",y,!0,!0);else a(b,"length",y);return b}}),_ge=ct((e,t)=>{var r=q0(),a=XM(),n=aY();t.exports=function(){return n(r,a,arguments)}}),wge=ct((e,t)=>{var r=xge(),a=q2(),n=JM(),l=_ge();if(t.exports=function(s){var d=n(arguments),b=s.length-(arguments.length-1);return r(d,1+(b>0?b:0),!0)},a)a(t.exports,"apply",{value:l});else t.exports.apply=l}),Ege=ct((e,t)=>{var r=nY();t.exports=function(){return r()&&!!Symbol.toStringTag}}),Tge=ct((e,t)=>{var r=gge(),a=yge(),n=wge(),l=uY(),s=F0(),d=sY(),b=l("Object.prototype.toString"),y=Ege()(),v=typeof globalThis>"u"?globalThis:globalThis,g=a(),_=l("String.prototype.slice"),A=l("Array.prototype.indexOf",!0)||function(P,j){for(var Z=0;Z<P.length;Z+=1)if(P[Z]===j)return Z;return-1},I={__proto__:null};if(y&&s&&d)r(g,function(P){var j=new v[P];if(Symbol.toStringTag in j&&d){var Z=d(j),V=s(Z,Symbol.toStringTag);if(!V&&Z){var W=d(Z);V=s(W,Symbol.toStringTag)}I["$"+P]=n(V.get)}});else r(g,function(P){var j=new v[P],Z=j.slice||j.set;if(Z)I["$"+P]=n(Z)});var O=function(P){var j=!1;return r(I,function(Z,V){if(!j)try{if("$"+Z(P)===V)j=_(V,1)}catch(W){}}),j},N=function(P){var j=!1;return r(I,function(Z,V){if(!j)try{Z(P),j=_(V,1)}catch(W){}}),j};t.exports=function(P){if(!P||typeof P!=="object")return!1;if(!y){var j=_(b(P),8,-1);if(A(g,j)>-1)return j;if(j!=="Object")return!1;return N(P)}if(!s)return null;return O(P)}}),kge=ct((e,t)=>{var r=Tge();t.exports=function(a){return!!r(a)}}),Age=ct((e,t)=>{var r=Z0(),a=uY(),n=a("TypedArray.prototype.buffer",!0),l=kge();t.exports=n||function(s){if(!l(s))throw new r("Not a Typed Array");return s.buffer}}),Mge=ct((e,t)=>{var r=Qi().Buffer,a=K0e(),n=Age(),l=ArrayBuffer.isView||function(y){try{return n(y),!0}catch(v){return!1}},s=typeof Uint8Array<"u",d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",b=d&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);t.exports=function(y,v){if(r.isBuffer(y)){if(y.constructor&&!("isBuffer"in y))return r.from(y);return y}if(typeof y==="string")return r.from(y,v);if(d&&l(y)){if(y.byteLength===0)return r.alloc(0);if(b){var g=r.from(y.buffer,y.byteOffset,y.byteLength);if(g.byteLength===y.byteLength)return g}var _=y instanceof Uint8Array?y:new Uint8Array(y.buffer,y.byteOffset,y.byteLength),A=r.from(_);if(A.length===y.byteLength)return A}if(s&&y instanceof Uint8Array)return r.from(y);var I=a(y);if(I)for(var O=0;O<y.length;O+=1){var N=y[O];if(typeof N!=="number"||N<0||N>255||~~N!==N)throw RangeError("Array items must be numbers in the range 0-255.")}if(I||r.isBuffer(y)&&y.constructor&&typeof y.constructor.isBuffer==="function"&&y.constructor.isBuffer(y))return r.from(y);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),QM=ct((e,t)=>{var r=Qi().Buffer,a=Mge(),n=typeof Uint8Array<"u",l=n&&typeof ArrayBuffer<"u",s=l&&ArrayBuffer.isView;t.exports=function(d,b,y){if(typeof d==="string"||r.isBuffer(d)||n&&d instanceof Uint8Array||s&&s(d))return a(d,b);throw TypeError(y+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),cY=ct((e,t)=>{var r={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},a={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},n=eY(),l=Qi().Buffer,s=YM(),d=KM(),b=QM();function y(v,g,_,A,I){s(_,A),v=b(v,d,"Password"),g=b(g,d,"Salt");var O=(I||"sha1").toLowerCase(),N=a[O]||O,P=r[N];if(typeof P!=="number"||!P)throw TypeError("Digest algorithm not supported: "+I);var j=l.allocUnsafe(A),Z=l.allocUnsafe(g.length+4);g.copy(Z,0,0,g.length);var V=0,W=P,J=Math.ceil(A/W);for(var ve=1;ve<=J;ve++){Z.writeUInt32BE(ve,g.length);var ce=n(N,v).update(Z).digest(),Me=ce;for(var Y=1;Y<_;Y++){Me=n(N,v).update(Me).digest();for(var Te=0;Te<W;Te++)ce[Te]^=Me[Te]}ce.copy(j,V),V+=W}return j}t.exports=y}),Cge=ct((e,t)=>{var r=Qi().Buffer,a=YM(),n=KM(),l=cY(),s=QM(),d,b=globalThis.crypto&&globalThis.crypto.subtle,y={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"},v=[],g;function _(){if(g)return g;if(globalThis.process&&globalThis.process.nextTick)g=globalThis.process.nextTick;else if(globalThis.queueMicrotask)g=globalThis.queueMicrotask;else if(globalThis.setImmediate)g=globalThis.setImmediate;else g=globalThis.setTimeout;return g}function A(N,P,j,Z,V){return b.importKey("raw",N,{name:"PBKDF2"},!1,["deriveBits"]).then(function(W){return b.deriveBits({name:"PBKDF2",salt:P,iterations:j,hash:{name:V}},W,Z<<3)}).then(function(W){return r.from(W)})}function I(N){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!b||!b.importKey||!b.deriveBits)return Promise.resolve(!1);if(v[N]!==void 0)return v[N];d=d||r.alloc(8);var P=A(d,d,10,128,N).then(function(){return!0},function(){return!1});return v[N]=P,P}function O(N,P){N.then(function(j){_()(function(){P(null,j)})},function(j){_()(function(){P(j)})})}t.exports=function(N,P,j,Z,V,W){if(typeof V==="function")W=V,V=void 0;if(a(j,Z),N=s(N,n,"Password"),P=s(P,n,"Salt"),typeof W!=="function")throw Error("No callback provided to pbkdf2");V=V||"sha1";var J=y[V.toLowerCase()];if(!J||typeof globalThis.Promise!=="function"){_()(function(){var ve;try{ve=l(N,P,j,Z,V)}catch(ce){W(ce);return}W(null,ve)});return}O(I(J).then(function(ve){if(ve)return A(N,P,j,Z,J);return l(N,P,j,Z,V)}),W)}}),fY=ct((e)=>{var t=(eo(),Cr(Lo)),r=YM(),a=KM(),n=QM();function l(d,b,y,v,g,_){if(r(y,v),d=n(d,a,"Password"),b=n(b,a,"Salt"),typeof g==="function")_=g,g="sha1";if(typeof _!=="function")throw Error("No callback provided to pbkdf2");return t.pbkdf2(d,b,y,v,g,_)}function s(d,b,y,v,g){return r(y,v),d=n(d,a,"Password"),b=n(b,a,"Salt"),g=g||"sha1",t.pbkdf2Sync(d,b,y,v,g)}if(!t.pbkdf2Sync||t.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)e.pbkdf2Sync=cY(),e.pbkdf2=Cge();else e.pbkdf2Sync=s,e.pbkdf2=l}),Rge=ct((e)=>{var t=(eo(),Cr(Lo));e.createCipher=e.Cipher=t.createCipher,e.createCipheriv=e.Cipheriv=t.createCipheriv,e.createDecipher=e.Decipher=t.createDecipher,e.createDecipheriv=e.Decipheriv=t.createDecipheriv,e.listCiphers=e.getCiphers=t.getCiphers}),Ige=ct((e)=>{var t=(eo(),Cr(Lo));e.DiffieHellmanGroup=t.DiffieHellmanGroup,e.createDiffieHellmanGroup=t.createDiffieHellmanGroup,e.getDiffieHellman=t.getDiffieHellman,e.createDiffieHellman=t.createDiffieHellman,e.DiffieHellman=t.DiffieHellman}),Oge=ct((e)=>{var t=(eo(),Cr(Lo));e.createSign=t.createSign,e.Sign=t.Sign,e.createVerify=t.createVerify,e.Verify=t.Verify}),Nge=ct((e,t)=>{t.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),sl=ct((e,t)=>{(function(r,a){function n(f,p){if(!f)throw Error(p||"Assertion failed")}function l(f,p){f.super_=p;var x=function(){};x.prototype=p.prototype,f.prototype=new x,f.prototype.constructor=f}function s(f,p,x){if(s.isBN(f))return f;if(this.negative=0,this.words=null,this.length=0,this.red=null,f!==null){if(p==="le"||p==="be")x=p,p=10;this._init(f||0,p||10,x||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(f){}s.isBN=function(f){if(f instanceof s)return!0;return f!==null&&typeof f==="object"&&f.constructor.wordSize===s.wordSize&&Array.isArray(f.words)},s.max=function(f,p){if(f.cmp(p)>0)return f;return p},s.min=function(f,p){if(f.cmp(p)<0)return f;return p},s.prototype._init=function(f,p,x){if(typeof f==="number")return this._initNumber(f,p,x);if(typeof f==="object")return this._initArray(f,p,x);if(p==="hex")p=16;n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var h=0;if(f[0]==="-")h++,this.negative=1;if(h<f.length){if(p===16)this._parseHex(f,h,x);else if(this._parseBase(f,p,h),x==="le")this._initArray(this.toArray(),p,x)}},s.prototype._initNumber=function(f,p,x){if(f<0)this.negative=1,f=-f;if(f<67108864)this.words=[f&67108863],this.length=1;else if(f<4503599627370496)this.words=[f&67108863,f/67108864&67108863],this.length=2;else n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3;if(x!=="le")return;this._initArray(this.toArray(),p,x)},s.prototype._initArray=function(f,p,x){if(n(typeof f.length==="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S,k,C=0;if(x==="be"){for(h=f.length-1,S=0;h>=0;h-=3)if(k=f[h]|f[h-1]<<8|f[h-2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}else if(x==="le"){for(h=0,S=0;h<f.length;h+=3)if(k=f[h]|f[h+1]<<8|f[h+2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}return this.strip()};function b(f,p){var x=f.charCodeAt(p);if(x>=65&&x<=70)return x-55;else if(x>=97&&x<=102)return x-87;else return x-48&15}function y(f,p,x){var h=b(f,x);if(x-1>=p)h|=b(f,x-1)<<4;return h}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S=0,k=0,C;if(x==="be")for(h=f.length-1;h>=p;h-=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8;else{var w=f.length-p;for(h=w%2===0?p+1:p;h<f.length;h+=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8}this.strip()};function v(f,p,x,h){var S=0,k=Math.min(f.length,x);for(var C=p;C<k;C++){var w=f.charCodeAt(C)-48;if(S*=h,w>=49)S+=w-49+10;else if(w>=17)S+=w-17+10;else S+=w}return S}s.prototype._parseBase=function(f,p,x){this.words=[0],this.length=1;for(var h=0,S=1;S<=67108863;S*=p)h++;h--,S=S/p|0;var k=f.length-x,C=k%h,w=Math.min(k,k-C)+x,c=0;for(var T=x;T<w;T+=h)if(c=v(f,T,T+h,p),this.imuln(S),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(C!==0){var z=1;c=v(f,T,f.length,p);for(T=0;T<C;T++)z*=p;if(this.imuln(z),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this.strip()},s.prototype.copy=function(f){f.words=Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red},s.prototype.clone=function(){var f=new s(null);return this.copy(f),f},s.prototype._expand=function(f){while(this.length<f)this.words[this.length++]=0;return this},s.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],_=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";var h=0,S=0;for(var k=0;k<this.length;k++){var C=this.words[k],w=((C<<h|S)&16777215).toString(16);if(S=C>>>24-h&16777215,h+=2,h>=26)h-=26,k--;if(S!==0||k!==this.length-1)x=g[6-w.length]+w+x;else x=w+x}if(S!==0)x=S.toString(16)+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}if(f===(f|0)&&f>=2&&f<=36){var c=_[f],T=A[f];x="";var z=this.clone();z.negative=0;while(!z.isZero()){var R=z.modn(T).toString(f);if(z=z.idivn(T),!z.isZero())x=g[c-R.length]+R+x;else x=R+x}if(this.isZero())x="0"+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];if(this.length===2)f+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)f+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(f,p){return n(typeof d<"u"),this.toArrayLike(d,f,p)},s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)},s.prototype.toArrayLike=function(f,p,x){var h=this.byteLength(),S=x||Math.max(1,h);n(h<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var k=p==="le",C=new f(S),w,c,T=this.clone();if(!k){for(c=0;c<S-h;c++)C[c]=0;for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[S-c-1]=w}else{for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[c]=w;for(;c<S;c++)C[c]=0}return C},Math.clz32)s.prototype._countBits=function(f){return 32-Math.clz32(f)};else s.prototype._countBits=function(f){var p=f,x=0;if(p>=4096)x+=13,p>>>=13;if(p>=64)x+=7,p>>>=7;if(p>=8)x+=4,p>>>=4;if(p>=2)x+=2,p>>>=2;return x+p};s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;if((p&8191)===0)x+=13,p>>>=13;if((p&127)===0)x+=7,p>>>=7;if((p&15)===0)x+=4,p>>>=4;if((p&3)===0)x+=2,p>>>=2;if((p&1)===0)x++;return x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(f){var p=Array(f.bitLength());for(var x=0;x<p.length;x++){var h=x/26|0,S=x%26;p[x]=(f.words[h]&1<<S)>>>S}return p}s.prototype.zeroBits=function(){if(this.isZero())return 0;var f=0;for(var p=0;p<this.length;p++){var x=this._zeroBits(this.words[p]);if(f+=x,x!==26)break}return f},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(f){if(this.negative!==0)return this.abs().inotn(f).iaddn(1);return this.clone()},s.prototype.fromTwos=function(f){if(this.testn(f-1))return this.notn(f).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(f){while(this.length<f.length)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this.strip()},s.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},s.prototype.or=function(f){if(this.length>f.length)return this.clone().ior(f);return f.clone().ior(this)},s.prototype.uor=function(f){if(this.length>f.length)return this.clone().iuor(f);return f.clone().iuor(this)},s.prototype.iuand=function(f){var p;if(this.length>f.length)p=f;else p=this;for(var x=0;x<p.length;x++)this.words[x]=this.words[x]&f.words[x];return this.length=p.length,this.strip()},s.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},s.prototype.and=function(f){if(this.length>f.length)return this.clone().iand(f);return f.clone().iand(this)},s.prototype.uand=function(f){if(this.length>f.length)return this.clone().iuand(f);return f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;if(this.length>f.length)p=this,x=f;else p=f,x=this;for(var h=0;h<x.length;h++)this.words[h]=p.words[h]^x.words[h];if(this!==p)for(;h<p.length;h++)this.words[h]=p.words[h];return this.length=p.length,this.strip()},s.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},s.prototype.xor=function(f){if(this.length>f.length)return this.clone().ixor(f);return f.clone().ixor(this)},s.prototype.uxor=function(f){if(this.length>f.length)return this.clone().iuxor(f);return f.clone().iuxor(this)},s.prototype.inotn=function(f){n(typeof f==="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;if(this._expand(p),x>0)p--;for(var h=0;h<p;h++)this.words[h]=~this.words[h]&67108863;if(x>0)this.words[h]=~this.words[h]&67108863>>26-x;return this.strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){n(typeof f==="number"&&f>=0);var x=f/26|0,h=f%26;if(this._expand(x+1),p)this.words[x]=this.words[x]|1<<h;else this.words[x]=this.words[x]&~(1<<h);return this.strip()},s.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();else if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var x,h;if(this.length>f.length)x=this,h=f;else x=f,h=this;var S=0;for(var k=0;k<h.length;k++)p=(x.words[k]|0)+(h.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;for(;S!==0&&k<x.length;k++)p=(x.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;if(this.length=x.length,S!==0)this.words[this.length]=S,this.length++;else if(x!==this)for(;k<x.length;k++)this.words[k]=x.words[k];return this},s.prototype.add=function(f){var p;if(f.negative!==0&&this.negative===0)return f.negative=0,p=this.sub(f),f.negative^=1,p;else if(f.negative===0&&this.negative!==0)return this.negative=0,p=f.sub(this),this.negative=1,p;if(this.length>f.length)return this.clone().iadd(f);return f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,S;if(x>0)h=this,S=f;else h=f,S=this;var k=0;for(var C=0;C<S.length;C++)p=(h.words[C]|0)-(S.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;for(;k!==0&&C<h.length;C++)p=(h.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;if(k===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];if(this.length=Math.max(this.length,C),h!==this)this.negative=1;return this.strip()},s.prototype.sub=function(f){return this.clone().isub(f)};function O(f,p,x){x.negative=p.negative^f.negative;var h=f.length+p.length|0;x.length=h,h=h-1|0;var S=f.words[0]|0,k=p.words[0]|0,C=S*k,w=C&67108863,c=C/67108864|0;x.words[0]=w;for(var T=1;T<h;T++){var z=c>>>26,R=c&67108863,q=Math.min(T,p.length-1);for(var Q=Math.max(0,T-f.length+1);Q<=q;Q++){var ie=T-Q|0;S=f.words[ie]|0,k=p.words[Q]|0,C=S*k+R,z+=C/67108864|0,R=C&67108863}x.words[T]=R|0,c=z|0}if(c!==0)x.words[T]=c|0;else x.length--;return x.strip()}var N=function(f,p,x){var h=f.words,S=p.words,k=x.words,C=0,w,c,T,z=h[0]|0,R=z&8191,q=z>>>13,Q=h[1]|0,ie=Q&8191,me=Q>>>13,Je=h[2]|0,ke=Je&8191,fe=Je>>>13,be=h[3]|0,Ae=be&8191,Be=be>>>13,vt=h[4]|0,oe=vt&8191,se=vt>>>13,Ke=h[5]|0,he=Ke&8191,Ie=Ke>>>13,Qe=h[6]|0,le=Qe&8191,Ee=Qe>>>13,gt=h[7]|0,De=gt&8191,We=gt>>>13,Ye=h[8]|0,we=Ye&8191,Fe=Ye>>>13,L=h[9]|0,ae=L&8191,_e=L>>>13,ot=S[0]|0,xe=ot&8191,K=ot>>>13,Ge=S[1]|0,F=Ge&8191,te=Ge>>>13,Pe=S[2]|0,pe=Pe&8191,de=Pe>>>13,at=S[3]|0,$e=at&8191,qe=at>>>13,ht=S[4]|0,tt=ht&8191,nt=ht>>>13,Er=S[5]|0,bt=Er&8191,re=Er>>>13,ye=S[6]|0,Ze=ye&8191,Ve=ye>>>13,Dt=S[7]|0,mt=Dt&8191,yt=Dt>>>13,Qr=S[8]|0,_t=Qr&8191,xt=Qr>>>13,zr=S[9]|0,wt=zr&8191,St=zr>>>13;x.negative=f.negative^p.negative,x.length=19,w=Math.imul(R,xe),c=Math.imul(R,K),c=c+Math.imul(q,xe)|0,T=Math.imul(q,K);var sn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(ie,xe),c=Math.imul(ie,K),c=c+Math.imul(me,xe)|0,T=Math.imul(me,K),w=w+Math.imul(R,F)|0,c=c+Math.imul(R,te)|0,c=c+Math.imul(q,F)|0,T=T+Math.imul(q,te)|0;var ir=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(ke,xe),c=Math.imul(ke,K),c=c+Math.imul(fe,xe)|0,T=Math.imul(fe,K),w=w+Math.imul(ie,F)|0,c=c+Math.imul(ie,te)|0,c=c+Math.imul(me,F)|0,T=T+Math.imul(me,te)|0,w=w+Math.imul(R,pe)|0,c=c+Math.imul(R,de)|0,c=c+Math.imul(q,pe)|0,T=T+Math.imul(q,de)|0;var nr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ae,xe),c=Math.imul(Ae,K),c=c+Math.imul(Be,xe)|0,T=Math.imul(Be,K),w=w+Math.imul(ke,F)|0,c=c+Math.imul(ke,te)|0,c=c+Math.imul(fe,F)|0,T=T+Math.imul(fe,te)|0,w=w+Math.imul(ie,pe)|0,c=c+Math.imul(ie,de)|0,c=c+Math.imul(me,pe)|0,T=T+Math.imul(me,de)|0,w=w+Math.imul(R,$e)|0,c=c+Math.imul(R,qe)|0,c=c+Math.imul(q,$e)|0,T=T+Math.imul(q,qe)|0;var Lr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,w=Math.imul(oe,xe),c=Math.imul(oe,K),c=c+Math.imul(se,xe)|0,T=Math.imul(se,K),w=w+Math.imul(Ae,F)|0,c=c+Math.imul(Ae,te)|0,c=c+Math.imul(Be,F)|0,T=T+Math.imul(Be,te)|0,w=w+Math.imul(ke,pe)|0,c=c+Math.imul(ke,de)|0,c=c+Math.imul(fe,pe)|0,T=T+Math.imul(fe,de)|0,w=w+Math.imul(ie,$e)|0,c=c+Math.imul(ie,qe)|0,c=c+Math.imul(me,$e)|0,T=T+Math.imul(me,qe)|0,w=w+Math.imul(R,tt)|0,c=c+Math.imul(R,nt)|0,c=c+Math.imul(q,tt)|0,T=T+Math.imul(q,nt)|0;var Tr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(he,xe),c=Math.imul(he,K),c=c+Math.imul(Ie,xe)|0,T=Math.imul(Ie,K),w=w+Math.imul(oe,F)|0,c=c+Math.imul(oe,te)|0,c=c+Math.imul(se,F)|0,T=T+Math.imul(se,te)|0,w=w+Math.imul(Ae,pe)|0,c=c+Math.imul(Ae,de)|0,c=c+Math.imul(Be,pe)|0,T=T+Math.imul(Be,de)|0,w=w+Math.imul(ke,$e)|0,c=c+Math.imul(ke,qe)|0,c=c+Math.imul(fe,$e)|0,T=T+Math.imul(fe,qe)|0,w=w+Math.imul(ie,tt)|0,c=c+Math.imul(ie,nt)|0,c=c+Math.imul(me,tt)|0,T=T+Math.imul(me,nt)|0,w=w+Math.imul(R,bt)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(q,bt)|0,T=T+Math.imul(q,re)|0;var wn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,w=Math.imul(le,xe),c=Math.imul(le,K),c=c+Math.imul(Ee,xe)|0,T=Math.imul(Ee,K),w=w+Math.imul(he,F)|0,c=c+Math.imul(he,te)|0,c=c+Math.imul(Ie,F)|0,T=T+Math.imul(Ie,te)|0,w=w+Math.imul(oe,pe)|0,c=c+Math.imul(oe,de)|0,c=c+Math.imul(se,pe)|0,T=T+Math.imul(se,de)|0,w=w+Math.imul(Ae,$e)|0,c=c+Math.imul(Ae,qe)|0,c=c+Math.imul(Be,$e)|0,T=T+Math.imul(Be,qe)|0,w=w+Math.imul(ke,tt)|0,c=c+Math.imul(ke,nt)|0,c=c+Math.imul(fe,tt)|0,T=T+Math.imul(fe,nt)|0,w=w+Math.imul(ie,bt)|0,c=c+Math.imul(ie,re)|0,c=c+Math.imul(me,bt)|0,T=T+Math.imul(me,re)|0,w=w+Math.imul(R,Ze)|0,c=c+Math.imul(R,Ve)|0,c=c+Math.imul(q,Ze)|0,T=T+Math.imul(q,Ve)|0;var En=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(En>>>26)|0,En&=67108863,w=Math.imul(De,xe),c=Math.imul(De,K),c=c+Math.imul(We,xe)|0,T=Math.imul(We,K),w=w+Math.imul(le,F)|0,c=c+Math.imul(le,te)|0,c=c+Math.imul(Ee,F)|0,T=T+Math.imul(Ee,te)|0,w=w+Math.imul(he,pe)|0,c=c+Math.imul(he,de)|0,c=c+Math.imul(Ie,pe)|0,T=T+Math.imul(Ie,de)|0,w=w+Math.imul(oe,$e)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(se,$e)|0,T=T+Math.imul(se,qe)|0,w=w+Math.imul(Ae,tt)|0,c=c+Math.imul(Ae,nt)|0,c=c+Math.imul(Be,tt)|0,T=T+Math.imul(Be,nt)|0,w=w+Math.imul(ke,bt)|0,c=c+Math.imul(ke,re)|0,c=c+Math.imul(fe,bt)|0,T=T+Math.imul(fe,re)|0,w=w+Math.imul(ie,Ze)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(me,Ze)|0,T=T+Math.imul(me,Ve)|0,w=w+Math.imul(R,mt)|0,c=c+Math.imul(R,yt)|0,c=c+Math.imul(q,mt)|0,T=T+Math.imul(q,yt)|0;var Tn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(we,xe),c=Math.imul(we,K),c=c+Math.imul(Fe,xe)|0,T=Math.imul(Fe,K),w=w+Math.imul(De,F)|0,c=c+Math.imul(De,te)|0,c=c+Math.imul(We,F)|0,T=T+Math.imul(We,te)|0,w=w+Math.imul(le,pe)|0,c=c+Math.imul(le,de)|0,c=c+Math.imul(Ee,pe)|0,T=T+Math.imul(Ee,de)|0,w=w+Math.imul(he,$e)|0,c=c+Math.imul(he,qe)|0,c=c+Math.imul(Ie,$e)|0,T=T+Math.imul(Ie,qe)|0,w=w+Math.imul(oe,tt)|0,c=c+Math.imul(oe,nt)|0,c=c+Math.imul(se,tt)|0,T=T+Math.imul(se,nt)|0,w=w+Math.imul(Ae,bt)|0,c=c+Math.imul(Ae,re)|0,c=c+Math.imul(Be,bt)|0,T=T+Math.imul(Be,re)|0,w=w+Math.imul(ke,Ze)|0,c=c+Math.imul(ke,Ve)|0,c=c+Math.imul(fe,Ze)|0,T=T+Math.imul(fe,Ve)|0,w=w+Math.imul(ie,mt)|0,c=c+Math.imul(ie,yt)|0,c=c+Math.imul(me,mt)|0,T=T+Math.imul(me,yt)|0,w=w+Math.imul(R,_t)|0,c=c+Math.imul(R,xt)|0,c=c+Math.imul(q,_t)|0,T=T+Math.imul(q,xt)|0;var kn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,w=Math.imul(ae,xe),c=Math.imul(ae,K),c=c+Math.imul(_e,xe)|0,T=Math.imul(_e,K),w=w+Math.imul(we,F)|0,c=c+Math.imul(we,te)|0,c=c+Math.imul(Fe,F)|0,T=T+Math.imul(Fe,te)|0,w=w+Math.imul(De,pe)|0,c=c+Math.imul(De,de)|0,c=c+Math.imul(We,pe)|0,T=T+Math.imul(We,de)|0,w=w+Math.imul(le,$e)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(Ee,$e)|0,T=T+Math.imul(Ee,qe)|0,w=w+Math.imul(he,tt)|0,c=c+Math.imul(he,nt)|0,c=c+Math.imul(Ie,tt)|0,T=T+Math.imul(Ie,nt)|0,w=w+Math.imul(oe,bt)|0,c=c+Math.imul(oe,re)|0,c=c+Math.imul(se,bt)|0,T=T+Math.imul(se,re)|0,w=w+Math.imul(Ae,Ze)|0,c=c+Math.imul(Ae,Ve)|0,c=c+Math.imul(Be,Ze)|0,T=T+Math.imul(Be,Ve)|0,w=w+Math.imul(ke,mt)|0,c=c+Math.imul(ke,yt)|0,c=c+Math.imul(fe,mt)|0,T=T+Math.imul(fe,yt)|0,w=w+Math.imul(ie,_t)|0,c=c+Math.imul(ie,xt)|0,c=c+Math.imul(me,_t)|0,T=T+Math.imul(me,xt)|0,w=w+Math.imul(R,wt)|0,c=c+Math.imul(R,St)|0,c=c+Math.imul(q,wt)|0,T=T+Math.imul(q,St)|0;var An=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(ae,F),c=Math.imul(ae,te),c=c+Math.imul(_e,F)|0,T=Math.imul(_e,te),w=w+Math.imul(we,pe)|0,c=c+Math.imul(we,de)|0,c=c+Math.imul(Fe,pe)|0,T=T+Math.imul(Fe,de)|0,w=w+Math.imul(De,$e)|0,c=c+Math.imul(De,qe)|0,c=c+Math.imul(We,$e)|0,T=T+Math.imul(We,qe)|0,w=w+Math.imul(le,tt)|0,c=c+Math.imul(le,nt)|0,c=c+Math.imul(Ee,tt)|0,T=T+Math.imul(Ee,nt)|0,w=w+Math.imul(he,bt)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Ie,bt)|0,T=T+Math.imul(Ie,re)|0,w=w+Math.imul(oe,Ze)|0,c=c+Math.imul(oe,Ve)|0,c=c+Math.imul(se,Ze)|0,T=T+Math.imul(se,Ve)|0,w=w+Math.imul(Ae,mt)|0,c=c+Math.imul(Ae,yt)|0,c=c+Math.imul(Be,mt)|0,T=T+Math.imul(Be,yt)|0,w=w+Math.imul(ke,_t)|0,c=c+Math.imul(ke,xt)|0,c=c+Math.imul(fe,_t)|0,T=T+Math.imul(fe,xt)|0,w=w+Math.imul(ie,wt)|0,c=c+Math.imul(ie,St)|0,c=c+Math.imul(me,wt)|0,T=T+Math.imul(me,St)|0;var Or=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Or>>>26)|0,Or&=67108863,w=Math.imul(ae,pe),c=Math.imul(ae,de),c=c+Math.imul(_e,pe)|0,T=Math.imul(_e,de),w=w+Math.imul(we,$e)|0,c=c+Math.imul(we,qe)|0,c=c+Math.imul(Fe,$e)|0,T=T+Math.imul(Fe,qe)|0,w=w+Math.imul(De,tt)|0,c=c+Math.imul(De,nt)|0,c=c+Math.imul(We,tt)|0,T=T+Math.imul(We,nt)|0,w=w+Math.imul(le,bt)|0,c=c+Math.imul(le,re)|0,c=c+Math.imul(Ee,bt)|0,T=T+Math.imul(Ee,re)|0,w=w+Math.imul(he,Ze)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(Ie,Ze)|0,T=T+Math.imul(Ie,Ve)|0,w=w+Math.imul(oe,mt)|0,c=c+Math.imul(oe,yt)|0,c=c+Math.imul(se,mt)|0,T=T+Math.imul(se,yt)|0,w=w+Math.imul(Ae,_t)|0,c=c+Math.imul(Ae,xt)|0,c=c+Math.imul(Be,_t)|0,T=T+Math.imul(Be,xt)|0,w=w+Math.imul(ke,wt)|0,c=c+Math.imul(ke,St)|0,c=c+Math.imul(fe,wt)|0,T=T+Math.imul(fe,St)|0;var en=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(en>>>26)|0,en&=67108863,w=Math.imul(ae,$e),c=Math.imul(ae,qe),c=c+Math.imul(_e,$e)|0,T=Math.imul(_e,qe),w=w+Math.imul(we,tt)|0,c=c+Math.imul(we,nt)|0,c=c+Math.imul(Fe,tt)|0,T=T+Math.imul(Fe,nt)|0,w=w+Math.imul(De,bt)|0,c=c+Math.imul(De,re)|0,c=c+Math.imul(We,bt)|0,T=T+Math.imul(We,re)|0,w=w+Math.imul(le,Ze)|0,c=c+Math.imul(le,Ve)|0,c=c+Math.imul(Ee,Ze)|0,T=T+Math.imul(Ee,Ve)|0,w=w+Math.imul(he,mt)|0,c=c+Math.imul(he,yt)|0,c=c+Math.imul(Ie,mt)|0,T=T+Math.imul(Ie,yt)|0,w=w+Math.imul(oe,_t)|0,c=c+Math.imul(oe,xt)|0,c=c+Math.imul(se,_t)|0,T=T+Math.imul(se,xt)|0,w=w+Math.imul(Ae,wt)|0,c=c+Math.imul(Ae,St)|0,c=c+Math.imul(Be,wt)|0,T=T+Math.imul(Be,St)|0;var Kr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(ae,tt),c=Math.imul(ae,nt),c=c+Math.imul(_e,tt)|0,T=Math.imul(_e,nt),w=w+Math.imul(we,bt)|0,c=c+Math.imul(we,re)|0,c=c+Math.imul(Fe,bt)|0,T=T+Math.imul(Fe,re)|0,w=w+Math.imul(De,Ze)|0,c=c+Math.imul(De,Ve)|0,c=c+Math.imul(We,Ze)|0,T=T+Math.imul(We,Ve)|0,w=w+Math.imul(le,mt)|0,c=c+Math.imul(le,yt)|0,c=c+Math.imul(Ee,mt)|0,T=T+Math.imul(Ee,yt)|0,w=w+Math.imul(he,_t)|0,c=c+Math.imul(he,xt)|0,c=c+Math.imul(Ie,_t)|0,T=T+Math.imul(Ie,xt)|0,w=w+Math.imul(oe,wt)|0,c=c+Math.imul(oe,St)|0,c=c+Math.imul(se,wt)|0,T=T+Math.imul(se,St)|0;var Mn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,w=Math.imul(ae,bt),c=Math.imul(ae,re),c=c+Math.imul(_e,bt)|0,T=Math.imul(_e,re),w=w+Math.imul(we,Ze)|0,c=c+Math.imul(we,Ve)|0,c=c+Math.imul(Fe,Ze)|0,T=T+Math.imul(Fe,Ve)|0,w=w+Math.imul(De,mt)|0,c=c+Math.imul(De,yt)|0,c=c+Math.imul(We,mt)|0,T=T+Math.imul(We,yt)|0,w=w+Math.imul(le,_t)|0,c=c+Math.imul(le,xt)|0,c=c+Math.imul(Ee,_t)|0,T=T+Math.imul(Ee,xt)|0,w=w+Math.imul(he,wt)|0,c=c+Math.imul(he,St)|0,c=c+Math.imul(Ie,wt)|0,T=T+Math.imul(Ie,St)|0;var ln=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ln>>>26)|0,ln&=67108863,w=Math.imul(ae,Ze),c=Math.imul(ae,Ve),c=c+Math.imul(_e,Ze)|0,T=Math.imul(_e,Ve),w=w+Math.imul(we,mt)|0,c=c+Math.imul(we,yt)|0,c=c+Math.imul(Fe,mt)|0,T=T+Math.imul(Fe,yt)|0,w=w+Math.imul(De,_t)|0,c=c+Math.imul(De,xt)|0,c=c+Math.imul(We,_t)|0,T=T+Math.imul(We,xt)|0,w=w+Math.imul(le,wt)|0,c=c+Math.imul(le,St)|0,c=c+Math.imul(Ee,wt)|0,T=T+Math.imul(Ee,St)|0;var pn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(ae,mt),c=Math.imul(ae,yt),c=c+Math.imul(_e,mt)|0,T=Math.imul(_e,yt),w=w+Math.imul(we,_t)|0,c=c+Math.imul(we,xt)|0,c=c+Math.imul(Fe,_t)|0,T=T+Math.imul(Fe,xt)|0,w=w+Math.imul(De,wt)|0,c=c+Math.imul(De,St)|0,c=c+Math.imul(We,wt)|0,T=T+Math.imul(We,St)|0;var yn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(yn>>>26)|0,yn&=67108863,w=Math.imul(ae,_t),c=Math.imul(ae,xt),c=c+Math.imul(_e,_t)|0,T=Math.imul(_e,xt),w=w+Math.imul(we,wt)|0,c=c+Math.imul(we,St)|0,c=c+Math.imul(Fe,wt)|0,T=T+Math.imul(Fe,St)|0;var un=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(un>>>26)|0,un&=67108863,w=Math.imul(ae,wt),c=Math.imul(ae,St),c=c+Math.imul(_e,wt)|0,T=Math.imul(_e,St);var tn=(C+w|0)+((c&8191)<<13)|0;if(C=(T+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,k[0]=sn,k[1]=ir,k[2]=nr,k[3]=Lr,k[4]=Tr,k[5]=wn,k[6]=En,k[7]=Tn,k[8]=kn,k[9]=An,k[10]=Or,k[11]=en,k[12]=Kr,k[13]=Mn,k[14]=ln,k[15]=pn,k[16]=yn,k[17]=un,k[18]=tn,C!==0)k[19]=C,x.length++;return x};if(!Math.imul)N=O;function P(f,p,x){x.negative=p.negative^f.negative,x.length=f.length+p.length;var h=0,S=0;for(var k=0;k<x.length-1;k++){var C=S;S=0;var w=h&67108863,c=Math.min(k,p.length-1);for(var T=Math.max(0,k-f.length+1);T<=c;T++){var z=k-T,R=f.words[z]|0,q=p.words[T]|0,Q=R*q,ie=Q&67108863;C=C+(Q/67108864|0)|0,ie=ie+w|0,w=ie&67108863,C=C+(ie>>>26)|0,S+=C>>>26,C&=67108863}x.words[k]=w,h=C,C=S}if(h!==0)x.words[k]=h;else x.length--;return x.strip()}function j(f,p,x){var h=new Z;return h.mulp(f,p,x)}s.prototype.mulTo=function(f,p){var x,h=this.length+f.length;if(this.length===10&&f.length===10)x=N(this,f,p);else if(h<63)x=O(this,f,p);else if(h<1024)x=P(this,f,p);else x=j(this,f,p);return x};function Z(f,p){this.x=f,this.y=p}Z.prototype.makeRBT=function(f){var p=Array(f),x=s.prototype._countBits(f)-1;for(var h=0;h<f;h++)p[h]=this.revBin(h,x,f);return p},Z.prototype.revBin=function(f,p,x){if(f===0||f===x-1)return f;var h=0;for(var S=0;S<p;S++)h|=(f&1)<<p-S-1,f>>=1;return h},Z.prototype.permute=function(f,p,x,h,S,k){for(var C=0;C<k;C++)h[C]=p[f[C]],S[C]=x[f[C]]},Z.prototype.transform=function(f,p,x,h,S,k){this.permute(k,f,p,x,h,S);for(var C=1;C<S;C<<=1){var w=C<<1,c=Math.cos(2*Math.PI/w),T=Math.sin(2*Math.PI/w);for(var z=0;z<S;z+=w){var R=c,q=T;for(var Q=0;Q<C;Q++){var ie=x[z+Q],me=h[z+Q],Je=x[z+Q+C],ke=h[z+Q+C],fe=R*Je-q*ke;if(ke=R*ke+q*Je,Je=fe,x[z+Q]=ie+Je,h[z+Q]=me+ke,x[z+Q+C]=ie-Je,h[z+Q+C]=me-ke,Q!==w)fe=c*R-T*q,q=c*q+T*R,R=fe}}}},Z.prototype.guessLen13b=function(f,p){var x=Math.max(p,f)|1,h=x&1,S=0;for(x=x/2|0;x;x=x>>>1)S++;return 1<<S+1+h},Z.prototype.conjugate=function(f,p,x){if(x<=1)return;for(var h=0;h<x/2;h++){var S=f[h];f[h]=f[x-h-1],f[x-h-1]=S,S=p[h],p[h]=-p[x-h-1],p[x-h-1]=-S}},Z.prototype.normalize13b=function(f,p){var x=0;for(var h=0;h<p/2;h++){var S=Math.round(f[2*h+1]/p)*8192+Math.round(f[2*h]/p)+x;if(f[h]=S&67108863,S<67108864)x=0;else x=S/67108864|0}return f},Z.prototype.convert13b=function(f,p,x,h){var S=0;for(var k=0;k<p;k++)S=S+(f[k]|0),x[2*k]=S&8191,S=S>>>13,x[2*k+1]=S&8191,S=S>>>13;for(k=2*p;k<h;++k)x[k]=0;n(S===0),n((S&-8192)===0)},Z.prototype.stub=function(f){var p=Array(f);for(var x=0;x<f;x++)p[x]=0;return p},Z.prototype.mulp=function(f,p,x){var h=2*this.guessLen13b(f.length,p.length),S=this.makeRBT(h),k=this.stub(h),C=Array(h),w=Array(h),c=Array(h),T=Array(h),z=Array(h),R=Array(h),q=x.words;q.length=h,this.convert13b(f.words,f.length,C,h),this.convert13b(p.words,p.length,T,h),this.transform(C,k,w,c,h,S),this.transform(T,k,z,R,h,S);for(var Q=0;Q<h;Q++){var ie=w[Q]*z[Q]-c[Q]*R[Q];c[Q]=w[Q]*R[Q]+c[Q]*z[Q],w[Q]=ie}return this.conjugate(w,c,h),this.transform(w,c,q,k,h,S),this.conjugate(q,k,h),this.normalize13b(q,h),x.negative=f.negative^p.negative,x.length=f.length+p.length,x.strip()},s.prototype.mul=function(f){var p=new s(null);return p.words=Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=Array(this.length+f.length),j(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){n(typeof f==="number"),n(f<67108864);var p=0;for(var x=0;x<this.length;x++){var h=(this.words[x]|0)*f,S=(h&67108863)+(p&67108863);p>>=26,p+=h/67108864|0,p+=S>>>26,this.words[x]=S&67108863}if(p!==0)this.words[x]=p,this.length++;return this.length=f===0?1:this.length,this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=I(f);if(p.length===0)return new s(1);var x=this;for(var h=0;h<p.length;h++,x=x.sqr())if(p[h]!==0)break;if(++h<p.length)for(var S=x.sqr();h<p.length;h++,S=S.sqr()){if(p[h]===0)continue;x=x.mul(S)}return x},s.prototype.iushln=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=67108863>>>26-p<<26-p,S;if(p!==0){var k=0;for(S=0;S<this.length;S++){var C=this.words[S]&h,w=(this.words[S]|0)-C<<p;this.words[S]=w|k,k=C>>>26-p}if(k)this.words[S]=k,this.length++}if(x!==0){for(S=this.length-1;S>=0;S--)this.words[S+x]=this.words[S];for(S=0;S<x;S++)this.words[S]=0;this.length+=x}return this.strip()},s.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},s.prototype.iushrn=function(f,p,x){n(typeof f==="number"&&f>=0);var h;if(p)h=(p-p%26)/26;else h=0;var S=f%26,k=Math.min((f-S)/26,this.length),C=67108863^67108863>>>S<<S,w=x;if(h-=k,h=Math.max(0,h),w){for(var c=0;c<k;c++)w.words[c]=this.words[c];w.length=k}if(k===0);else if(this.length>k){this.length-=k;for(c=0;c<this.length;c++)this.words[c]=this.words[c+k]}else this.words[0]=0,this.length=1;var T=0;for(c=this.length-1;c>=0&&(T!==0||c>=h);c--){var z=this.words[c]|0;this.words[c]=T<<26-S|z>>>S,T=z&C}if(w&&T!==0)w.words[w.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},s.prototype.ishrn=function(f,p,x){return n(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return!1;var S=this.words[x];return!!(S&h)},s.prototype.imaskn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0)x++;if(this.length=Math.min(x,this.length),p!==0){var h=67108863^67108863>>>p<<p;this.words[this.length-1]&=h}return this.strip()},s.prototype.maskn=function(f){return this.clone().imaskn(f)},s.prototype.iaddn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.isubn(-f);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<f)return this.words[0]=f-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(f),this.negative=1,this}return this._iaddn(f)},s.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)if(this.words[p]-=67108864,p===this.length-1)this.words[p+1]=1;else this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(f){return this.clone().iaddn(f)},s.prototype.subn=function(f){return this.clone().isubn(f)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(f,p,x){var h=f.length+x,S;this._expand(h);var k,C=0;for(S=0;S<f.length;S++){k=(this.words[S+x]|0)+C;var w=(f.words[S]|0)*p;k-=w&67108863,C=(k>>26)-(w/67108864|0),this.words[S+x]=k&67108863}for(;S<this.length-x;S++)k=(this.words[S+x]|0)+C,C=k>>26,this.words[S+x]=k&67108863;if(C===0)return this.strip();n(C===-1),C=0;for(S=0;S<this.length;S++)k=-(this.words[S]|0)+C,C=k>>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,h=this.clone(),S=f,k=S.words[S.length-1]|0,C=this._countBits(k);if(x=26-C,x!==0)S=S.ushln(x),h.iushln(x),k=S.words[S.length-1]|0;var w=h.length-S.length,c;if(p!=="mod"){c=new s(null),c.length=w+1,c.words=Array(c.length);for(var T=0;T<c.length;T++)c.words[T]=0}var z=h.clone()._ishlnsubmul(S,1,w);if(z.negative===0){if(h=z,c)c.words[w]=1}for(var R=w-1;R>=0;R--){var q=(h.words[S.length+R]|0)*67108864+(h.words[S.length+R-1]|0);q=Math.min(q/k|0,67108863),h._ishlnsubmul(S,q,R);while(h.negative!==0)if(q--,h.negative=0,h._ishlnsubmul(S,1,R),!h.isZero())h.negative^=1;if(c)c.words[R]=q}if(c)c.strip();if(h.strip(),p!=="div"&&x!==0)h.iushrn(x);return{div:c||null,mod:h}},s.prototype.divmod=function(f,p,x){if(n(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var h,S,k;if(this.negative!==0&&f.negative===0){if(k=this.neg().divmod(f,p),p!=="mod")h=k.div.neg();if(p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.iadd(f)}return{div:h,mod:S}}if(this.negative===0&&f.negative!==0){if(k=this.divmod(f.neg(),p),p!=="mod")h=k.div.neg();return{div:h,mod:k.mod}}if((this.negative&f.negative)!==0){if(k=this.neg().divmod(f.neg(),p),p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.isub(f)}return{div:k.div,mod:S}}if(f.length>this.length||this.cmp(f)<0)return{div:new s(0),mod:this};if(f.length===1){if(p==="div")return{div:this.divn(f.words[0]),mod:null};if(p==="mod")return{div:null,mod:new s(this.modn(f.words[0]))};return{div:this.divn(f.words[0]),mod:new s(this.modn(f.words[0]))}}return this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,h=f.ushrn(1),S=f.andln(1),k=x.cmp(h);if(k<0||S===1&&k===0)return p.div;return p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(f){n(f<=67108863);var p=67108864%f,x=0;for(var h=this.length-1;h>=0;h--)x=(p*x+(this.words[h]|0))%f;return x},s.prototype.idivn=function(f){n(f<=67108863);var p=0;for(var x=this.length-1;x>=0;x--){var h=(this.words[x]|0)+p*67108864;this.words[x]=h/f|0,p=h%f}return this.strip()},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=new s(0),C=new s(1),w=0;while(p.isEven()&&x.isEven())p.iushrn(1),x.iushrn(1),++w;var c=x.clone(),T=p.clone();while(!p.isZero()){for(var z=0,R=1;(p.words[0]&R)===0&&z<26;++z,R<<=1);if(z>0){p.iushrn(z);while(z-- >0){if(h.isOdd()||S.isOdd())h.iadd(c),S.isub(T);h.iushrn(1),S.iushrn(1)}}for(var q=0,Q=1;(x.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0){x.iushrn(q);while(q-- >0){if(k.isOdd()||C.isOdd())k.iadd(c),C.isub(T);k.iushrn(1),C.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(k),S.isub(C);else x.isub(p),k.isub(h),C.isub(S)}return{a:k,b:C,gcd:x.iushln(w)}},s.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=x.clone();while(p.cmpn(1)>0&&x.cmpn(1)>0){for(var C=0,w=1;(p.words[0]&w)===0&&C<26;++C,w<<=1);if(C>0){p.iushrn(C);while(C-- >0){if(h.isOdd())h.iadd(k);h.iushrn(1)}}for(var c=0,T=1;(x.words[0]&T)===0&&c<26;++c,T<<=1);if(c>0){x.iushrn(c);while(c-- >0){if(S.isOdd())S.iadd(k);S.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(S);else x.isub(p),S.isub(h)}var z;if(p.cmpn(1)===0)z=h;else z=S;if(z.cmpn(0)<0)z.iadd(f);return z},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var h=0;p.isEven()&&x.isEven();h++)p.iushrn(1),x.iushrn(1);do{while(p.isEven())p.iushrn(1);while(x.isEven())x.iushrn(1);var S=p.cmp(x);if(S<0){var k=p;p=x,x=k}else if(S===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(h)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){n(typeof f==="number");var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return this._expand(x+1),this.words[x]|=h,this;var S=h;for(var k=x;S!==0&&k<this.length;k++){var C=this.words[k]|0;C+=S,S=C>>>26,C&=67108863,this.words[k]=C}if(S!==0)this.words[k]=S,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var x;if(this.length>1)x=1;else{if(p)f=-f;n(f<=67108863,"Number is too big");var h=this.words[0]|0;x=h===f?0:h<f?-1:1}if(this.negative!==0)return-x|0;return x},s.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);if(this.negative!==0)return-p|0;return p},s.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;var p=0;for(var x=this.length-1;x>=0;x--){var h=this.words[x]|0,S=f.words[x]|0;if(h===S)continue;if(h<S)p=-1;else if(h>S)p=1;break}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new Y(f)},s.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var V={k256:null,p224:null,p192:null,p25519:null};function W(f,p){this.name=f,this.p=new s(p,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}W.prototype._tmp=function(){var f=new s(null);return f.words=Array(Math.ceil(this.n/13)),f},W.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var h=x<this.n?-1:p.ucmp(this.p);if(h===0)p.words[0]=0,p.length=1;else if(h>0)p.isub(this.p);else if(p.strip!==void 0)p.strip();else p._strip();return p},W.prototype.split=function(f,p){f.iushrn(this.n,0,p)},W.prototype.imulK=function(f){return f.imul(this.k)};function J(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(J,W),J.prototype.split=function(f,p){var x=4194303,h=Math.min(f.length,9);for(var S=0;S<h;S++)p.words[S]=f.words[S];if(p.length=h,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];p.words[p.length++]=k&x;for(S=10;S<f.length;S++){var C=f.words[S]|0;f.words[S-10]=(C&x)<<4|k>>>22,k=C}if(k>>>=22,f.words[S-10]=k,k===0&&f.length>10)f.length-=10;else f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;var p=0;for(var x=0;x<f.length;x++){var h=f.words[x]|0;p+=h*977,f.words[x]=p&67108863,p=h*64+(p/67108864|0)}if(f.words[f.length-1]===0){if(f.length--,f.words[f.length-1]===0)f.length--}return f};function ve(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(ve,W);function ce(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(ce,W);function Me(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(Me,W),Me.prototype.imulK=function(f){var p=0;for(var x=0;x<f.length;x++){var h=(f.words[x]|0)*19+p,S=h&67108863;h>>>=26,f.words[x]=S,p=h}if(p!==0)f.words[f.length++]=p;return f},s._prime=function(f){if(V[f])return V[f];var p;if(f==="k256")p=new J;else if(f==="p224")p=new ve;else if(f==="p192")p=new ce;else if(f==="p25519")p=new Me;else throw Error("Unknown prime "+f);return V[f]=p,p};function Y(f){if(typeof f==="string"){var p=s._prime(f);this.m=p.p,this.prime=p}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}Y.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},Y.prototype.imod=function(f){if(this.prime)return this.prime.ireduce(f)._forceRed(this);return f.umod(this.m)._forceRed(this)},Y.prototype.neg=function(f){if(f.isZero())return f.clone();return this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x._forceRed(this)},Y.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x},Y.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x._forceRed(this)},Y.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x},Y.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},Y.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},Y.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}var h=this.m.subn(1),S=0;while(!h.isZero()&&h.andln(1)===0)S++,h.iushrn(1);n(!h.isZero());var k=new s(1).toRed(this),C=k.redNeg(),w=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new s(2*c*c).toRed(this);while(this.pow(c,w).cmp(C)!==0)c.redIAdd(C);var T=this.pow(c,h),z=this.pow(f,h.addn(1).iushrn(1)),R=this.pow(f,h),q=S;while(R.cmp(k)!==0){var Q=R;for(var ie=0;Q.cmp(k)!==0;ie++)Q=Q.redSqr();n(ie<q);var me=this.pow(T,new s(1).iushln(q-ie-1));z=z.redMul(me),T=me.redSqr(),R=R.redMul(T),q=ie}return z},Y.prototype.invm=function(f){var p=f._invmp(this.m);if(p.negative!==0)return p.negative=0,this.imod(p).redNeg();else return this.imod(p)},Y.prototype.pow=function(f,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var x=4,h=Array(1<<x);h[0]=new s(1).toRed(this),h[1]=f;for(var S=2;S<h.length;S++)h[S]=this.mul(h[S-1],f);var k=h[0],C=0,w=0,c=p.bitLength()%26;if(c===0)c=26;for(S=p.length-1;S>=0;S--){var T=p.words[S];for(var z=c-1;z>=0;z--){var R=T>>z&1;if(k!==h[0])k=this.sqr(k);if(R===0&&C===0){w=0;continue}if(C<<=1,C|=R,w++,w!==x&&(S!==0||z!==0))continue;k=this.mul(k,h[C]),w=0,C=0}c=26}return k},Y.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},Y.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new Te(f)};function Te(f){if(Y.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(Te,Y),Te.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Te.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},Te.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof t>"u"||t,e)}),Tu=ct((e,t)=>{t.exports=r;function r(a,n){if(!a)throw Error(n||"Assertion failed")}r.equal=function(a,n,l){if(a!=n)throw Error(l||"Assertion failed: "+a+" != "+n)}}),dY=ct((e)=>{var t=e;function r(l,s){if(Array.isArray(l))return l.slice();if(!l)return[];var d=[];if(typeof l!=="string"){for(var b=0;b<l.length;b++)d[b]=l[b]|0;return d}if(s==="hex"){if(l=l.replace(/[^a-z0-9]+/ig,""),l.length%2!==0)l="0"+l;for(var b=0;b<l.length;b+=2)d.push(parseInt(l[b]+l[b+1],16))}else for(var b=0;b<l.length;b++){var y=l.charCodeAt(b),v=y>>8,g=y&255;if(v)d.push(v,g);else d.push(g)}return d}t.toArray=r;function a(l){if(l.length===1)return"0"+l;else return l}t.zero2=a;function n(l){var s="";for(var d=0;d<l.length;d++)s+=a(l[d].toString(16));return s}t.toHex=n,t.encode=function(l,s){if(s==="hex")return n(l);else return l}}),na=ct((e)=>{var t=e,r=sl(),a=Tu(),n=dY();t.assert=a,t.toArray=n.toArray,t.zero2=n.zero2,t.toHex=n.toHex,t.encode=n.encode;function l(v,g,_){var A=Array(Math.max(v.bitLength(),_)+1),I;for(I=0;I<A.length;I+=1)A[I]=0;var O=1<<g+1,N=v.clone();for(I=0;I<A.length;I++){var P,j=N.andln(O-1);if(N.isOdd()){if(j>(O>>1)-1)P=(O>>1)-j;else P=j;N.isubn(P)}else P=0;A[I]=P,N.iushrn(1)}return A}t.getNAF=l;function s(v,g){var _=[[],[]];v=v.clone(),g=g.clone();var A=0,I=0,O;while(v.cmpn(-A)>0||g.cmpn(-I)>0){var N=v.andln(3)+A&3,P=g.andln(3)+I&3;if(N===3)N=-1;if(P===3)P=-1;var j;if((N&1)===0)j=0;else if(O=v.andln(7)+A&7,(O===3||O===5)&&P===2)j=-N;else j=N;_[0].push(j);var Z;if((P&1)===0)Z=0;else if(O=g.andln(7)+I&7,(O===3||O===5)&&N===2)Z=-P;else Z=P;if(_[1].push(Z),2*A===j+1)A=1-A;if(2*I===Z+1)I=1-I;v.iushrn(1),g.iushrn(1)}return _}t.getJSF=s;function d(v,g,_){var A="_"+g;v.prototype[g]=function(){return this[A]!==void 0?this[A]:this[A]=_.call(this)}}t.cachedProperty=d;function b(v){return typeof v==="string"?t.toArray(v,"hex"):v}t.parseBytes=b;function y(v){return new r(v,"hex","le")}t.intFromLE=y}),hY=ct((e,t)=>{var r;t.exports=function(l){if(!r)r=new a(null);return r.generate(l)};function a(l){this.rand=l}if(t.exports.Rand=a,a.prototype.generate=function(l){return this._rand(l)},a.prototype._rand=function(l){if(this.rand.getBytes)return this.rand.getBytes(l);var s=new Uint8Array(l);for(var d=0;d<s.length;d++)s[d]=this.rand.getByte();return s},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)a.prototype._rand=function(l){var s=new Uint8Array(l);return self.crypto.getRandomValues(s),s};else if(self.msCrypto&&self.msCrypto.getRandomValues)a.prototype._rand=function(l){var s=new Uint8Array(l);return self.msCrypto.getRandomValues(s),s};else if(typeof window==="object")a.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(n=(eo(),Cr(Lo)),typeof n.randomBytes!=="function")throw Error("Not supported");a.prototype._rand=function(l){return n.randomBytes(l)}}catch(l){}var n}),G2=ct((e,t)=>{var r=sl(),a=na(),n=a.getNAF,l=a.getJSF,s=a.assert;function d(y,v){this.type=y,this.p=new r(v.p,16),this.red=v.prime?r.red(v.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=v.n&&new r(v.n,16),this.g=v.g&&this.pointFromJSON(v.g,v.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var g=this.n&&this.p.div(this.n);if(!g||g.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}t.exports=d,d.prototype.point=function(){throw Error("Not implemented")},d.prototype.validate=function(){throw Error("Not implemented")},d.prototype._fixedNafMul=function(y,v){s(y.precomputed);var g=y._getDoubles(),_=n(v,1,this._bitLength),A=(1<<g.step+1)-(g.step%2===0?2:1);A/=3;var I=[],O,N;for(O=0;O<_.length;O+=g.step){N=0;for(var P=O+g.step-1;P>=O;P--)N=(N<<1)+_[P];I.push(N)}var j=this.jpoint(null,null,null),Z=this.jpoint(null,null,null);for(var V=A;V>0;V--){for(O=0;O<I.length;O++)if(N=I[O],N===V)Z=Z.mixedAdd(g.points[O]);else if(N===-V)Z=Z.mixedAdd(g.points[O].neg());j=j.add(Z)}return j.toP()},d.prototype._wnafMul=function(y,v){var g=4,_=y._getNAFPoints(g);g=_.wnd;var A=_.points,I=n(v,g,this._bitLength),O=this.jpoint(null,null,null);for(var N=I.length-1;N>=0;N--){for(var P=0;N>=0&&I[N]===0;N--)P++;if(N>=0)P++;if(O=O.dblp(P),N<0)break;var j=I[N];if(s(j!==0),y.type==="affine")if(j>0)O=O.mixedAdd(A[j-1>>1]);else O=O.mixedAdd(A[-j-1>>1].neg());else if(j>0)O=O.add(A[j-1>>1]);else O=O.add(A[-j-1>>1].neg())}return y.type==="affine"?O.toP():O},d.prototype._wnafMulAdd=function(y,v,g,_,A){var I=this._wnafT1,O=this._wnafT2,N=this._wnafT3,P=0,j,Z,V;for(j=0;j<_;j++){V=v[j];var W=V._getNAFPoints(y);I[j]=W.wnd,O[j]=W.points}for(j=_-1;j>=1;j-=2){var J=j-1,ve=j;if(I[J]!==1||I[ve]!==1){N[J]=n(g[J],I[J],this._bitLength),N[ve]=n(g[ve],I[ve],this._bitLength),P=Math.max(N[J].length,P),P=Math.max(N[ve].length,P);continue}var ce=[v[J],null,null,v[ve]];if(v[J].y.cmp(v[ve].y)===0)ce[1]=v[J].add(v[ve]),ce[2]=v[J].toJ().mixedAdd(v[ve].neg());else if(v[J].y.cmp(v[ve].y.redNeg())===0)ce[1]=v[J].toJ().mixedAdd(v[ve]),ce[2]=v[J].add(v[ve].neg());else ce[1]=v[J].toJ().mixedAdd(v[ve]),ce[2]=v[J].toJ().mixedAdd(v[ve].neg());var Me=[-3,-1,-5,-7,0,7,5,1,3],Y=l(g[J],g[ve]);P=Math.max(Y[0].length,P),N[J]=Array(P),N[ve]=Array(P);for(Z=0;Z<P;Z++){var Te=Y[0][Z]|0,f=Y[1][Z]|0;N[J][Z]=Me[(Te+1)*3+(f+1)],N[ve][Z]=0,O[J]=ce}}var p=this.jpoint(null,null,null),x=this._wnafT4;for(j=P;j>=0;j--){var h=0;while(j>=0){var S=!0;for(Z=0;Z<_;Z++)if(x[Z]=N[Z][j]|0,x[Z]!==0)S=!1;if(!S)break;h++,j--}if(j>=0)h++;if(p=p.dblp(h),j<0)break;for(Z=0;Z<_;Z++){var k=x[Z];if(k===0)continue;else if(k>0)V=O[Z][k-1>>1];else if(k<0)V=O[Z][-k-1>>1].neg();if(V.type==="affine")p=p.mixedAdd(V);else p=p.add(V)}}for(j=0;j<_;j++)O[j]=null;if(A)return p;else return p.toP()};function b(y,v){this.curve=y,this.type=v,this.precomputed=null}d.BasePoint=b,b.prototype.eq=function(){throw Error("Not implemented")},b.prototype.validate=function(){return this.curve.validate(this)},d.prototype.decodePoint=function(y,v){y=a.toArray(y,v);var g=this.p.byteLength();if((y[0]===4||y[0]===6||y[0]===7)&&y.length-1===2*g){if(y[0]===6)s(y[y.length-1]%2===0);else if(y[0]===7)s(y[y.length-1]%2===1);var _=this.point(y.slice(1,1+g),y.slice(1+g,1+2*g));return _}else if((y[0]===2||y[0]===3)&&y.length-1===g)return this.pointFromX(y.slice(1,1+g),y[0]===3);throw Error("Unknown point format")},b.prototype.encodeCompressed=function(y){return this.encode(y,!0)},b.prototype._encode=function(y){var v=this.curve.p.byteLength(),g=this.getX().toArray("be",v);if(y)return[this.getY().isEven()?2:3].concat(g);return[4].concat(g,this.getY().toArray("be",v))},b.prototype.encode=function(y,v){return a.encode(this._encode(v),y)},b.prototype.precompute=function(y){if(this.precomputed)return this;var v={doubles:null,naf:null,beta:null};return v.naf=this._getNAFPoints(8),v.doubles=this._getDoubles(4,y),v.beta=this._getBeta(),this.precomputed=v,this},b.prototype._hasDoubles=function(y){if(!this.precomputed)return!1;var v=this.precomputed.doubles;if(!v)return!1;return v.points.length>=Math.ceil((y.bitLength()+1)/v.step)},b.prototype._getDoubles=function(y,v){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var g=[this],_=this;for(var A=0;A<v;A+=y){for(var I=0;I<y;I++)_=_.dbl();g.push(_)}return{step:y,points:g}},b.prototype._getNAFPoints=function(y){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var v=[this],g=(1<<y)-1,_=g===1?null:this.dbl();for(var A=1;A<g;A++)v[A]=v[A-1].add(_);return{wnd:y,points:v}},b.prototype._getBeta=function(){return null},b.prototype.dblp=function(y){var v=this;for(var g=0;g<y;g++)v=v.dbl();return v}}),Dge=ct((e,t)=>{if(typeof Object.create==="function")t.exports=function(r,a){if(a)r.super_=a,r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})};else t.exports=function(r,a){if(a){r.super_=a;var n=function(){};n.prototype=a.prototype,r.prototype=new n,r.prototype.constructor=r}}}),zo=ct((e,t)=>{try{if(r=(MV(),Cr(AV)),typeof r.inherits!=="function")throw"";t.exports=r.inherits}catch(a){t.exports=Dge()}var r}),zge=ct((e,t)=>{var r=na(),a=sl(),n=zo(),l=G2(),s=r.assert;function d(v){l.call(this,"short",v),this.a=new a(v.a,16).toRed(this.red),this.b=new a(v.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(v),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}n(d,l),t.exports=d,d.prototype._getEndomorphism=function(v){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var g,_;if(v.beta)g=new a(v.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);g=A[0].cmp(A[1])<0?A[0]:A[1],g=g.toRed(this.red)}if(v.lambda)_=new a(v.lambda,16);else{var I=this._getEndoRoots(this.n);if(this.g.mul(I[0]).x.cmp(this.g.x.redMul(g))===0)_=I[0];else _=I[1],s(this.g.mul(_).x.cmp(this.g.x.redMul(g))===0)}var O;if(v.basis)O=v.basis.map(function(N){return{a:new a(N.a,16),b:new a(N.b,16)}});else O=this._getEndoBasis(_);return{beta:g,lambda:_,basis:O}},d.prototype._getEndoRoots=function(v){var g=v===this.p?this.red:a.mont(v),_=new a(2).toRed(g).redInvm(),A=_.redNeg(),I=new a(3).toRed(g).redNeg().redSqrt().redMul(_),O=A.redAdd(I).fromRed(),N=A.redSub(I).fromRed();return[O,N]},d.prototype._getEndoBasis=function(v){var g=this.n.ushrn(Math.floor(this.n.bitLength()/2)),_=v,A=this.n.clone(),I=new a(1),O=new a(0),N=new a(0),P=new a(1),j,Z,V,W,J,ve,ce,Me=0,Y,Te;while(_.cmpn(0)!==0){var f=A.div(_);Y=A.sub(f.mul(_)),Te=N.sub(f.mul(I));var p=P.sub(f.mul(O));if(!V&&Y.cmp(g)<0)j=ce.neg(),Z=I,V=Y.neg(),W=Te;else if(V&&++Me===2)break;ce=Y,A=_,_=Y,N=I,I=Te,P=O,O=p}J=Y.neg(),ve=Te;var x=V.sqr().add(W.sqr()),h=J.sqr().add(ve.sqr());if(h.cmp(x)>=0)J=j,ve=Z;if(V.negative)V=V.neg(),W=W.neg();if(J.negative)J=J.neg(),ve=ve.neg();return[{a:V,b:W},{a:J,b:ve}]},d.prototype._endoSplit=function(v){var g=this.endo.basis,_=g[0],A=g[1],I=A.b.mul(v).divRound(this.n),O=_.b.neg().mul(v).divRound(this.n),N=I.mul(_.a),P=O.mul(A.a),j=I.mul(_.b),Z=O.mul(A.b),V=v.sub(N).sub(P),W=j.add(Z).neg();return{k1:V,k2:W}},d.prototype.pointFromX=function(v,g){if(v=new a(v,16),!v.red)v=v.toRed(this.red);var _=v.redSqr().redMul(v).redIAdd(v.redMul(this.a)).redIAdd(this.b),A=_.redSqrt();if(A.redSqr().redSub(_).cmp(this.zero)!==0)throw Error("invalid point");var I=A.fromRed().isOdd();if(g&&!I||!g&&I)A=A.redNeg();return this.point(v,A)},d.prototype.validate=function(v){if(v.inf)return!0;var{x:g,y:_}=v,A=this.a.redMul(g),I=g.redSqr().redMul(g).redIAdd(A).redIAdd(this.b);return _.redSqr().redISub(I).cmpn(0)===0},d.prototype._endoWnafMulAdd=function(v,g,_){var A=this._endoWnafT1,I=this._endoWnafT2;for(var O=0;O<v.length;O++){var N=this._endoSplit(g[O]),P=v[O],j=P._getBeta();if(N.k1.negative)N.k1.ineg(),P=P.neg(!0);if(N.k2.negative)N.k2.ineg(),j=j.neg(!0);A[O*2]=P,A[O*2+1]=j,I[O*2]=N.k1,I[O*2+1]=N.k2}var Z=this._wnafMulAdd(1,A,I,O*2,_);for(var V=0;V<O*2;V++)A[V]=null,I[V]=null;return Z};function b(v,g,_,A){if(l.BasePoint.call(this,v,"affine"),g===null&&_===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new a(g,16),this.y=new a(_,16),A)this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);this.inf=!1}}n(b,l.BasePoint),d.prototype.point=function(v,g,_){return new b(this,v,g,_)},d.prototype.pointFromJSON=function(v,g){return b.fromJSON(this,v,g)},b.prototype._getBeta=function(){if(!this.curve.endo)return;var v=this.precomputed;if(v&&v.beta)return v.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(v){var _=this.curve,A=function(I){return _.point(I.x.redMul(_.endo.beta),I.y)};v.beta=g,g.precomputed={beta:null,naf:v.naf&&{wnd:v.naf.wnd,points:v.naf.points.map(A)},doubles:v.doubles&&{step:v.doubles.step,points:v.doubles.points.map(A)}}}return g},b.prototype.toJSON=function(){if(!this.precomputed)return[this.x,this.y];return[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]},b.fromJSON=function(v,g,_){if(typeof g==="string")g=JSON.parse(g);var A=v.point(g[0],g[1],_);if(!g[2])return A;function I(N){return v.point(N[0],N[1],_)}var O=g[2];return A.precomputed={beta:null,doubles:O.doubles&&{step:O.doubles.step,points:[A].concat(O.doubles.points.map(I))},naf:O.naf&&{wnd:O.naf.wnd,points:[A].concat(O.naf.points.map(I))}},A},b.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},b.prototype.isInfinity=function(){return this.inf},b.prototype.add=function(v){if(this.inf)return v;if(v.inf)return this;if(this.eq(v))return this.dbl();if(this.neg().eq(v))return this.curve.point(null,null);if(this.x.cmp(v.x)===0)return this.curve.point(null,null);var g=this.y.redSub(v.y);if(g.cmpn(0)!==0)g=g.redMul(this.x.redSub(v.x).redInvm());var _=g.redSqr().redISub(this.x).redISub(v.x),A=g.redMul(this.x.redSub(_)).redISub(this.y);return this.curve.point(_,A)},b.prototype.dbl=function(){if(this.inf)return this;var v=this.y.redAdd(this.y);if(v.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,_=this.x.redSqr(),A=v.redInvm(),I=_.redAdd(_).redIAdd(_).redIAdd(g).redMul(A),O=I.redSqr().redISub(this.x.redAdd(this.x)),N=I.redMul(this.x.redSub(O)).redISub(this.y);return this.curve.point(O,N)},b.prototype.getX=function(){return this.x.fromRed()},b.prototype.getY=function(){return this.y.fromRed()},b.prototype.mul=function(v){if(v=new a(v,16),this.isInfinity())return this;else if(this._hasDoubles(v))return this.curve._fixedNafMul(this,v);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[v]);else return this.curve._wnafMul(this,v)},b.prototype.mulAdd=function(v,g,_){var A=[this,g],I=[v,_];if(this.curve.endo)return this.curve._endoWnafMulAdd(A,I);else return this.curve._wnafMulAdd(1,A,I,2)},b.prototype.jmulAdd=function(v,g,_){var A=[this,g],I=[v,_];if(this.curve.endo)return this.curve._endoWnafMulAdd(A,I,!0);else return this.curve._wnafMulAdd(1,A,I,2,!0)},b.prototype.eq=function(v){return this===v||this.inf===v.inf&&(this.inf||this.x.cmp(v.x)===0&&this.y.cmp(v.y)===0)},b.prototype.neg=function(v){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(v&&this.precomputed){var _=this.precomputed,A=function(I){return I.neg()};g.precomputed={naf:_.naf&&{wnd:_.naf.wnd,points:_.naf.points.map(A)},doubles:_.doubles&&{step:_.doubles.step,points:_.doubles.points.map(A)}}}return g},b.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var v=this.curve.jpoint(this.x,this.y,this.curve.one);return v};function y(v,g,_,A){if(l.BasePoint.call(this,v,"jacobian"),g===null&&_===null&&A===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0);else this.x=new a(g,16),this.y=new a(_,16),this.z=new a(A,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}n(y,l.BasePoint),d.prototype.jpoint=function(v,g,_){return new y(this,v,g,_)},y.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var v=this.z.redInvm(),g=v.redSqr(),_=this.x.redMul(g),A=this.y.redMul(g).redMul(v);return this.curve.point(_,A)},y.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},y.prototype.add=function(v){if(this.isInfinity())return v;if(v.isInfinity())return this;var g=v.z.redSqr(),_=this.z.redSqr(),A=this.x.redMul(g),I=v.x.redMul(_),O=this.y.redMul(g.redMul(v.z)),N=v.y.redMul(_.redMul(this.z)),P=A.redSub(I),j=O.redSub(N);if(P.cmpn(0)===0)if(j.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var Z=P.redSqr(),V=Z.redMul(P),W=A.redMul(Z),J=j.redSqr().redIAdd(V).redISub(W).redISub(W),ve=j.redMul(W.redISub(J)).redISub(O.redMul(V)),ce=this.z.redMul(v.z).redMul(P);return this.curve.jpoint(J,ve,ce)},y.prototype.mixedAdd=function(v){if(this.isInfinity())return v.toJ();if(v.isInfinity())return this;var g=this.z.redSqr(),_=this.x,A=v.x.redMul(g),I=this.y,O=v.y.redMul(g).redMul(this.z),N=_.redSub(A),P=I.redSub(O);if(N.cmpn(0)===0)if(P.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var j=N.redSqr(),Z=j.redMul(N),V=_.redMul(j),W=P.redSqr().redIAdd(Z).redISub(V).redISub(V),J=P.redMul(V.redISub(W)).redISub(I.redMul(Z)),ve=this.z.redMul(N);return this.curve.jpoint(W,J,ve)},y.prototype.dblp=function(v){if(v===0)return this;if(this.isInfinity())return this;if(!v)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var _=this;for(g=0;g<v;g++)_=_.dbl();return _}var A=this.curve.a,I=this.curve.tinv,O=this.x,N=this.y,P=this.z,j=P.redSqr().redSqr(),Z=N.redAdd(N);for(g=0;g<v;g++){var V=O.redSqr(),W=Z.redSqr(),J=W.redSqr(),ve=V.redAdd(V).redIAdd(V).redIAdd(A.redMul(j)),ce=O.redMul(W),Me=ve.redSqr().redISub(ce.redAdd(ce)),Y=ce.redISub(Me),Te=ve.redMul(Y);Te=Te.redIAdd(Te).redISub(J);var f=Z.redMul(P);if(g+1<v)j=j.redMul(J);O=Me,P=f,Z=Te}return this.curve.jpoint(O,Z.redMul(I),P)},y.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()},y.prototype._zeroDbl=function(){var v,g,_;if(this.zOne){var A=this.x.redSqr(),I=this.y.redSqr(),O=I.redSqr(),N=this.x.redAdd(I).redSqr().redISub(A).redISub(O);N=N.redIAdd(N);var P=A.redAdd(A).redIAdd(A),j=P.redSqr().redISub(N).redISub(N),Z=O.redIAdd(O);Z=Z.redIAdd(Z),Z=Z.redIAdd(Z),v=j,g=P.redMul(N.redISub(j)).redISub(Z),_=this.y.redAdd(this.y)}else{var V=this.x.redSqr(),W=this.y.redSqr(),J=W.redSqr(),ve=this.x.redAdd(W).redSqr().redISub(V).redISub(J);ve=ve.redIAdd(ve);var ce=V.redAdd(V).redIAdd(V),Me=ce.redSqr(),Y=J.redIAdd(J);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),v=Me.redISub(ve).redISub(ve),g=ce.redMul(ve.redISub(v)).redISub(Y),_=this.y.redMul(this.z),_=_.redIAdd(_)}return this.curve.jpoint(v,g,_)},y.prototype._threeDbl=function(){var v,g,_;if(this.zOne){var A=this.x.redSqr(),I=this.y.redSqr(),O=I.redSqr(),N=this.x.redAdd(I).redSqr().redISub(A).redISub(O);N=N.redIAdd(N);var P=A.redAdd(A).redIAdd(A).redIAdd(this.curve.a),j=P.redSqr().redISub(N).redISub(N);v=j;var Z=O.redIAdd(O);Z=Z.redIAdd(Z),Z=Z.redIAdd(Z),g=P.redMul(N.redISub(j)).redISub(Z),_=this.y.redAdd(this.y)}else{var V=this.z.redSqr(),W=this.y.redSqr(),J=this.x.redMul(W),ve=this.x.redSub(V).redMul(this.x.redAdd(V));ve=ve.redAdd(ve).redIAdd(ve);var ce=J.redIAdd(J);ce=ce.redIAdd(ce);var Me=ce.redAdd(ce);v=ve.redSqr().redISub(Me),_=this.y.redAdd(this.z).redSqr().redISub(W).redISub(V);var Y=W.redSqr();Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),g=ve.redMul(ce.redISub(v)).redISub(Y)}return this.curve.jpoint(v,g,_)},y.prototype._dbl=function(){var v=this.curve.a,g=this.x,_=this.y,A=this.z,I=A.redSqr().redSqr(),O=g.redSqr(),N=_.redSqr(),P=O.redAdd(O).redIAdd(O).redIAdd(v.redMul(I)),j=g.redAdd(g);j=j.redIAdd(j);var Z=j.redMul(N),V=P.redSqr().redISub(Z.redAdd(Z)),W=Z.redISub(V),J=N.redSqr();J=J.redIAdd(J),J=J.redIAdd(J),J=J.redIAdd(J);var ve=P.redMul(W).redISub(J),ce=_.redAdd(_).redMul(A);return this.curve.jpoint(V,ve,ce)},y.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var v=this.x.redSqr(),g=this.y.redSqr(),_=this.z.redSqr(),A=g.redSqr(),I=v.redAdd(v).redIAdd(v),O=I.redSqr(),N=this.x.redAdd(g).redSqr().redISub(v).redISub(A);N=N.redIAdd(N),N=N.redAdd(N).redIAdd(N),N=N.redISub(O);var P=N.redSqr(),j=A.redIAdd(A);j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j);var Z=I.redIAdd(N).redSqr().redISub(O).redISub(P).redISub(j),V=g.redMul(Z);V=V.redIAdd(V),V=V.redIAdd(V);var W=this.x.redMul(P).redISub(V);W=W.redIAdd(W),W=W.redIAdd(W);var J=this.y.redMul(Z.redMul(j.redISub(Z)).redISub(N.redMul(P)));J=J.redIAdd(J),J=J.redIAdd(J),J=J.redIAdd(J);var ve=this.z.redAdd(N).redSqr().redISub(_).redISub(P);return this.curve.jpoint(W,J,ve)},y.prototype.mul=function(v,g){return v=new a(v,g),this.curve._wnafMul(this,v)},y.prototype.eq=function(v){if(v.type==="affine")return this.eq(v.toJ());if(this===v)return!0;var g=this.z.redSqr(),_=v.z.redSqr();if(this.x.redMul(_).redISub(v.x.redMul(g)).cmpn(0)!==0)return!1;var A=g.redMul(this.z),I=_.redMul(v.z);return this.y.redMul(I).redISub(v.y.redMul(A)).cmpn(0)===0},y.prototype.eqXToP=function(v){var g=this.z.redSqr(),_=v.toRed(this.curve.red).redMul(g);if(this.x.cmp(_)===0)return!0;var A=v.clone(),I=this.curve.redN.redMul(g);for(;;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(_.redIAdd(I),this.x.cmp(_)===0)return!0}},y.prototype.inspect=function(){if(this.isInfinity())return"<EC JPoint Infinity>";return"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},y.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),Lge=ct((e,t)=>{var r=sl(),a=zo(),n=G2(),l=na();function s(b){n.call(this,"mont",b),this.a=new r(b.a,16).toRed(this.red),this.b=new r(b.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}a(s,n),t.exports=s,s.prototype.validate=function(b){var y=b.normalize().x,v=y.redSqr(),g=v.redMul(y).redAdd(v.redMul(this.a)).redAdd(y),_=g.redSqrt();return _.redSqr().cmp(g)===0};function d(b,y,v){if(n.BasePoint.call(this,b,"projective"),y===null&&v===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new r(y,16),this.z=new r(v,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}a(d,n.BasePoint),s.prototype.decodePoint=function(b,y){return this.point(l.toArray(b,y),1)},s.prototype.point=function(b,y){return new d(this,b,y)},s.prototype.pointFromJSON=function(b){return d.fromJSON(this,b)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(b,y){return new d(b,y[0],y[1]||b.one)},d.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.z.cmpn(0)===0},d.prototype.dbl=function(){var b=this.x.redAdd(this.z),y=b.redSqr(),v=this.x.redSub(this.z),g=v.redSqr(),_=y.redSub(g),A=y.redMul(g),I=_.redMul(g.redAdd(this.curve.a24.redMul(_)));return this.curve.point(A,I)},d.prototype.add=function(){throw Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(b,y){var v=this.x.redAdd(this.z),g=this.x.redSub(this.z),_=b.x.redAdd(b.z),A=b.x.redSub(b.z),I=A.redMul(v),O=_.redMul(g),N=y.z.redMul(I.redAdd(O).redSqr()),P=y.x.redMul(I.redISub(O).redSqr());return this.curve.point(N,P)},d.prototype.mul=function(b){var y=b.clone(),v=this,g=this.curve.point(null,null),_=this;for(var A=[];y.cmpn(0)!==0;y.iushrn(1))A.push(y.andln(1));for(var I=A.length-1;I>=0;I--)if(A[I]===0)v=v.diffAdd(g,_),g=g.dbl();else g=v.diffAdd(g,_),v=v.dbl();return g},d.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},d.prototype.eq=function(b){return this.getX().cmp(b.getX())===0},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),Pge=ct((e,t)=>{var r=na(),a=sl(),n=zo(),l=G2(),s=r.assert;function d(y){this.twisted=(y.a|0)!==1,this.mOneA=this.twisted&&(y.a|0)===-1,this.extended=this.mOneA,l.call(this,"edwards",y),this.a=new a(y.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(y.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(y.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(y.c|0)===1}n(d,l),t.exports=d,d.prototype._mulA=function(y){if(this.mOneA)return y.redNeg();else return this.a.redMul(y)},d.prototype._mulC=function(y){if(this.oneC)return y;else return this.c.redMul(y)},d.prototype.jpoint=function(y,v,g,_){return this.point(y,v,g,_)},d.prototype.pointFromX=function(y,v){if(y=new a(y,16),!y.red)y=y.toRed(this.red);var g=y.redSqr(),_=this.c2.redSub(this.a.redMul(g)),A=this.one.redSub(this.c2.redMul(this.d).redMul(g)),I=_.redMul(A.redInvm()),O=I.redSqrt();if(O.redSqr().redSub(I).cmp(this.zero)!==0)throw Error("invalid point");var N=O.fromRed().isOdd();if(v&&!N||!v&&N)O=O.redNeg();return this.point(y,O)},d.prototype.pointFromY=function(y,v){if(y=new a(y,16),!y.red)y=y.toRed(this.red);var g=y.redSqr(),_=g.redSub(this.c2),A=g.redMul(this.d).redMul(this.c2).redSub(this.a),I=_.redMul(A.redInvm());if(I.cmp(this.zero)===0)if(v)throw Error("invalid point");else return this.point(this.zero,y);var O=I.redSqrt();if(O.redSqr().redSub(I).cmp(this.zero)!==0)throw Error("invalid point");if(O.fromRed().isOdd()!==v)O=O.redNeg();return this.point(O,y)},d.prototype.validate=function(y){if(y.isInfinity())return!0;y.normalize();var v=y.x.redSqr(),g=y.y.redSqr(),_=v.redMul(this.a).redAdd(g),A=this.c2.redMul(this.one.redAdd(this.d.redMul(v).redMul(g)));return _.cmp(A)===0};function b(y,v,g,_,A){if(l.BasePoint.call(this,y,"projective"),v===null&&g===null&&_===null)this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0;else{if(this.x=new a(v,16),this.y=new a(g,16),this.z=_?new a(_,16):this.curve.one,this.t=A&&new a(A,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);if(this.t&&!this.t.red)this.t=this.t.toRed(this.curve.red);if(this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t){if(this.t=this.x.redMul(this.y),!this.zOne)this.t=this.t.redMul(this.z.redInvm())}}}n(b,l.BasePoint),d.prototype.pointFromJSON=function(y){return b.fromJSON(this,y)},d.prototype.point=function(y,v,g,_){return new b(this,y,v,g,_)},b.fromJSON=function(y,v){return new b(y,v[0],v[1],v[2])},b.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},b.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},b.prototype._extDbl=function(){var y=this.x.redSqr(),v=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var _=this.curve._mulA(y),A=this.x.redAdd(this.y).redSqr().redISub(y).redISub(v),I=_.redAdd(v),O=I.redSub(g),N=_.redSub(v),P=A.redMul(O),j=I.redMul(N),Z=A.redMul(N),V=O.redMul(I);return this.curve.point(P,j,V,Z)},b.prototype._projDbl=function(){var y=this.x.redAdd(this.y).redSqr(),v=this.x.redSqr(),g=this.y.redSqr(),_,A,I,O,N,P;if(this.curve.twisted){O=this.curve._mulA(v);var j=O.redAdd(g);if(this.zOne)_=y.redSub(v).redSub(g).redMul(j.redSub(this.curve.two)),A=j.redMul(O.redSub(g)),I=j.redSqr().redSub(j).redSub(j);else N=this.z.redSqr(),P=j.redSub(N).redISub(N),_=y.redSub(v).redISub(g).redMul(P),A=j.redMul(O.redSub(g)),I=j.redMul(P)}else O=v.redAdd(g),N=this.curve._mulC(this.z).redSqr(),P=O.redSub(N).redSub(N),_=this.curve._mulC(y.redISub(O)).redMul(P),A=this.curve._mulC(O).redMul(v.redISub(g)),I=O.redMul(P);return this.curve.point(_,A,I)},b.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},b.prototype._extAdd=function(y){var v=this.y.redSub(this.x).redMul(y.y.redSub(y.x)),g=this.y.redAdd(this.x).redMul(y.y.redAdd(y.x)),_=this.t.redMul(this.curve.dd).redMul(y.t),A=this.z.redMul(y.z.redAdd(y.z)),I=g.redSub(v),O=A.redSub(_),N=A.redAdd(_),P=g.redAdd(v),j=I.redMul(O),Z=N.redMul(P),V=I.redMul(P),W=O.redMul(N);return this.curve.point(j,Z,W,V)},b.prototype._projAdd=function(y){var v=this.z.redMul(y.z),g=v.redSqr(),_=this.x.redMul(y.x),A=this.y.redMul(y.y),I=this.curve.d.redMul(_).redMul(A),O=g.redSub(I),N=g.redAdd(I),P=this.x.redAdd(this.y).redMul(y.x.redAdd(y.y)).redISub(_).redISub(A),j=v.redMul(O).redMul(P),Z,V;if(this.curve.twisted)Z=v.redMul(N).redMul(A.redSub(this.curve._mulA(_))),V=O.redMul(N);else Z=v.redMul(N).redMul(A.redSub(_)),V=this.curve._mulC(O).redMul(N);return this.curve.point(j,Z,V)},b.prototype.add=function(y){if(this.isInfinity())return y;if(y.isInfinity())return this;if(this.curve.extended)return this._extAdd(y);else return this._projAdd(y)},b.prototype.mul=function(y){if(this._hasDoubles(y))return this.curve._fixedNafMul(this,y);else return this.curve._wnafMul(this,y)},b.prototype.mulAdd=function(y,v,g){return this.curve._wnafMulAdd(1,[this,v],[y,g],2,!1)},b.prototype.jmulAdd=function(y,v,g){return this.curve._wnafMulAdd(1,[this,v],[y,g],2,!0)},b.prototype.normalize=function(){if(this.zOne)return this;var y=this.z.redInvm();if(this.x=this.x.redMul(y),this.y=this.y.redMul(y),this.t)this.t=this.t.redMul(y);return this.z=this.curve.one,this.zOne=!0,this},b.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},b.prototype.getX=function(){return this.normalize(),this.x.fromRed()},b.prototype.getY=function(){return this.normalize(),this.y.fromRed()},b.prototype.eq=function(y){return this===y||this.getX().cmp(y.getX())===0&&this.getY().cmp(y.getY())===0},b.prototype.eqXToP=function(y){var v=y.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(v)===0)return!0;var g=y.clone(),_=this.curve.redN.redMul(this.z);for(;;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(v.redIAdd(_),this.x.cmp(v)===0)return!0}},b.prototype.toP=b.prototype.normalize,b.prototype.mixedAdd=b.prototype.add}),pY=ct((e)=>{var t=e;t.base=G2(),t.short=zge(),t.mont=Lge(),t.edwards=Pge()}),bs=ct((e)=>{var t=Tu(),r=zo();e.inherits=r;function a(p,x){if((p.charCodeAt(x)&64512)!==55296)return!1;if(x<0||x+1>=p.length)return!1;return(p.charCodeAt(x+1)&64512)===56320}function n(p,x){if(Array.isArray(p))return p.slice();if(!p)return[];var h=[];if(typeof p==="string"){if(!x){var S=0;for(var k=0;k<p.length;k++){var C=p.charCodeAt(k);if(C<128)h[S++]=C;else if(C<2048)h[S++]=C>>6|192,h[S++]=C&63|128;else if(a(p,k))C=65536+((C&1023)<<10)+(p.charCodeAt(++k)&1023),h[S++]=C>>18|240,h[S++]=C>>12&63|128,h[S++]=C>>6&63|128,h[S++]=C&63|128;else h[S++]=C>>12|224,h[S++]=C>>6&63|128,h[S++]=C&63|128}}else if(x==="hex"){if(p=p.replace(/[^a-z0-9]+/ig,""),p.length%2!==0)p="0"+p;for(k=0;k<p.length;k+=2)h.push(parseInt(p[k]+p[k+1],16))}}else for(k=0;k<p.length;k++)h[k]=p[k]|0;return h}e.toArray=n;function l(p){var x="";for(var h=0;h<p.length;h++)x+=b(p[h].toString(16));return x}e.toHex=l;function s(p){var x=p>>>24|p>>>8&65280|p<<8&16711680|(p&255)<<24;return x>>>0}e.htonl=s;function d(p,x){var h="";for(var S=0;S<p.length;S++){var k=p[S];if(x==="little")k=s(k);h+=y(k.toString(16))}return h}e.toHex32=d;function b(p){if(p.length===1)return"0"+p;else return p}e.zero2=b;function y(p){if(p.length===7)return"0"+p;else if(p.length===6)return"00"+p;else if(p.length===5)return"000"+p;else if(p.length===4)return"0000"+p;else if(p.length===3)return"00000"+p;else if(p.length===2)return"000000"+p;else if(p.length===1)return"0000000"+p;else return p}e.zero8=y;function v(p,x,h,S){var k=h-x;t(k%4===0);var C=Array(k/4);for(var w=0,c=x;w<C.length;w++,c+=4){var T;if(S==="big")T=p[c]<<24|p[c+1]<<16|p[c+2]<<8|p[c+3];else T=p[c+3]<<24|p[c+2]<<16|p[c+1]<<8|p[c];C[w]=T>>>0}return C}e.join32=v;function g(p,x){var h=Array(p.length*4);for(var S=0,k=0;S<p.length;S++,k+=4){var C=p[S];if(x==="big")h[k]=C>>>24,h[k+1]=C>>>16&255,h[k+2]=C>>>8&255,h[k+3]=C&255;else h[k+3]=C>>>24,h[k+2]=C>>>16&255,h[k+1]=C>>>8&255,h[k]=C&255}return h}e.split32=g;function _(p,x){return p>>>x|p<<32-x}e.rotr32=_;function A(p,x){return p<<x|p>>>32-x}e.rotl32=A;function I(p,x){return p+x>>>0}e.sum32=I;function O(p,x,h){return p+x+h>>>0}e.sum32_3=O;function N(p,x,h,S){return p+x+h+S>>>0}e.sum32_4=N;function P(p,x,h,S,k){return p+x+h+S+k>>>0}e.sum32_5=P;function j(p,x,h,S){var k=p[x],C=p[x+1],w=S+C>>>0,c=(w<S?1:0)+h+k;p[x]=c>>>0,p[x+1]=w}e.sum64=j;function Z(p,x,h,S){var k=x+S>>>0,C=(k<x?1:0)+p+h;return C>>>0}e.sum64_hi=Z;function V(p,x,h,S){var k=x+S;return k>>>0}e.sum64_lo=V;function W(p,x,h,S,k,C,w,c){var T=0,z=x;z=z+S>>>0,T+=z<x?1:0,z=z+C>>>0,T+=z<C?1:0,z=z+c>>>0,T+=z<c?1:0;var R=p+h+k+w+T;return R>>>0}e.sum64_4_hi=W;function J(p,x,h,S,k,C,w,c){var T=x+S+C+c;return T>>>0}e.sum64_4_lo=J;function ve(p,x,h,S,k,C,w,c,T,z){var R=0,q=x;q=q+S>>>0,R+=q<x?1:0,q=q+C>>>0,R+=q<C?1:0,q=q+c>>>0,R+=q<c?1:0,q=q+z>>>0,R+=q<z?1:0;var Q=p+h+k+w+T+R;return Q>>>0}e.sum64_5_hi=ve;function ce(p,x,h,S,k,C,w,c,T,z){var R=x+S+C+c+z;return R>>>0}e.sum64_5_lo=ce;function Me(p,x,h){var S=x<<32-h|p>>>h;return S>>>0}e.rotr64_hi=Me;function Y(p,x,h){var S=p<<32-h|x>>>h;return S>>>0}e.rotr64_lo=Y;function Te(p,x,h){return p>>>h}e.shr64_hi=Te;function f(p,x,h){var S=p<<32-h|x>>>h;return S>>>0}e.shr64_lo=f}),G0=ct((e)=>{var t=bs(),r=Tu();function a(){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}e.BlockHash=a,a.prototype.update=function(n,l){if(n=t.toArray(n,l),!this.pending)this.pending=n;else this.pending=this.pending.concat(n);if(this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var s=n.length%this._delta8;if(this.pending=n.slice(n.length-s,n.length),this.pending.length===0)this.pending=null;n=t.join32(n,0,n.length-s,this.endian);for(var d=0;d<n.length;d+=this._delta32)this._update(n,d,d+this._delta32)}return this},a.prototype.digest=function(n){return this.update(this._pad()),r(this.pending===null),this._digest(n)},a.prototype._pad=function(){var n=this.pendingTotal,l=this._delta8,s=l-(n+this.padLength)%l,d=Array(s+this.padLength);d[0]=128;for(var b=1;b<s;b++)d[b]=0;if(n<<=3,this.endian==="big"){for(var y=8;y<this.padLength;y++)d[b++]=0;d[b++]=0,d[b++]=0,d[b++]=0,d[b++]=0,d[b++]=n>>>24&255,d[b++]=n>>>16&255,d[b++]=n>>>8&255,d[b++]=n&255}else{d[b++]=n&255,d[b++]=n>>>8&255,d[b++]=n>>>16&255,d[b++]=n>>>24&255,d[b++]=0,d[b++]=0,d[b++]=0,d[b++]=0;for(y=8;y<this.padLength;y++)d[b++]=0}return d}}),mY=ct((e)=>{var t=bs(),r=t.rotr32;function a(g,_,A,I){if(g===0)return n(_,A,I);if(g===1||g===3)return s(_,A,I);if(g===2)return l(_,A,I)}e.ft_1=a;function n(g,_,A){return g&_^~g&A}e.ch32=n;function l(g,_,A){return g&_^g&A^_&A}e.maj32=l;function s(g,_,A){return g^_^A}e.p32=s;function d(g){return r(g,2)^r(g,13)^r(g,22)}e.s0_256=d;function b(g){return r(g,6)^r(g,11)^r(g,25)}e.s1_256=b;function y(g){return r(g,7)^r(g,18)^g>>>3}e.g0_256=y;function v(g){return r(g,17)^r(g,19)^g>>>10}e.g1_256=v}),$ge=ct((e,t)=>{var r=bs(),a=G0(),n=mY(),l=r.rotl32,s=r.sum32,d=r.sum32_5,b=n.ft_1,y=a.BlockHash,v=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}r.inherits(g,y),t.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(_,A){var I=this.W;for(var O=0;O<16;O++)I[O]=_[A+O];for(;O<I.length;O++)I[O]=l(I[O-3]^I[O-8]^I[O-14]^I[O-16],1);var N=this.h[0],P=this.h[1],j=this.h[2],Z=this.h[3],V=this.h[4];for(O=0;O<I.length;O++){var W=~~(O/20),J=d(l(N,5),b(W,P,j,Z),V,I[O],v[W]);V=Z,Z=j,j=l(P,30),P=N,N=J}this.h[0]=s(this.h[0],N),this.h[1]=s(this.h[1],P),this.h[2]=s(this.h[2],j),this.h[3]=s(this.h[3],Z),this.h[4]=s(this.h[4],V)},g.prototype._digest=function(_){if(_==="hex")return r.toHex32(this.h,"big");else return r.split32(this.h,"big")}}),gY=ct((e,t)=>{var r=bs(),a=G0(),n=mY(),l=Tu(),s=r.sum32,d=r.sum32_4,b=r.sum32_5,y=n.ch32,v=n.maj32,g=n.s0_256,_=n.s1_256,A=n.g0_256,I=n.g1_256,O=a.BlockHash,N=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function P(){if(!(this instanceof P))return new P;O.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=N,this.W=Array(64)}r.inherits(P,O),t.exports=P,P.blockSize=512,P.outSize=256,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(j,Z){var V=this.W;for(var W=0;W<16;W++)V[W]=j[Z+W];for(;W<V.length;W++)V[W]=d(I(V[W-2]),V[W-7],A(V[W-15]),V[W-16]);var J=this.h[0],ve=this.h[1],ce=this.h[2],Me=this.h[3],Y=this.h[4],Te=this.h[5],f=this.h[6],p=this.h[7];l(this.k.length===V.length);for(W=0;W<V.length;W++){var x=b(p,_(Y),y(Y,Te,f),this.k[W],V[W]),h=s(g(J),v(J,ve,ce));p=f,f=Te,Te=Y,Y=s(Me,x),Me=ce,ce=ve,ve=J,J=s(x,h)}this.h[0]=s(this.h[0],J),this.h[1]=s(this.h[1],ve),this.h[2]=s(this.h[2],ce),this.h[3]=s(this.h[3],Me),this.h[4]=s(this.h[4],Y),this.h[5]=s(this.h[5],Te),this.h[6]=s(this.h[6],f),this.h[7]=s(this.h[7],p)},P.prototype._digest=function(j){if(j==="hex")return r.toHex32(this.h,"big");else return r.split32(this.h,"big")}}),Bge=ct((e,t)=>{var r=bs(),a=gY();function n(){if(!(this instanceof n))return new n;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(n,a),t.exports=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(l){if(l==="hex")return r.toHex32(this.h.slice(0,7),"big");else return r.split32(this.h.slice(0,7),"big")}}),bY=ct((e,t)=>{var r=bs(),a=G0(),n=Tu(),l=r.rotr64_hi,s=r.rotr64_lo,d=r.shr64_hi,b=r.shr64_lo,y=r.sum64,v=r.sum64_hi,g=r.sum64_lo,_=r.sum64_4_hi,A=r.sum64_4_lo,I=r.sum64_5_hi,O=r.sum64_5_lo,N=a.BlockHash,P=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function j(){if(!(this instanceof j))return new j;N.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=P,this.W=Array(160)}r.inherits(j,N),t.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(h,S){var k=this.W;for(var C=0;C<32;C++)k[C]=h[S+C];for(;C<k.length;C+=2){var w=p(k[C-4],k[C-3]),c=x(k[C-4],k[C-3]),T=k[C-14],z=k[C-13],R=Te(k[C-30],k[C-29]),q=f(k[C-30],k[C-29]),Q=k[C-32],ie=k[C-31];k[C]=_(w,c,T,z,R,q,Q,ie),k[C+1]=A(w,c,T,z,R,q,Q,ie)}},j.prototype._update=function(h,S){this._prepareBlock(h,S);var k=this.W,C=this.h[0],w=this.h[1],c=this.h[2],T=this.h[3],z=this.h[4],R=this.h[5],q=this.h[6],Q=this.h[7],ie=this.h[8],me=this.h[9],Je=this.h[10],ke=this.h[11],fe=this.h[12],be=this.h[13],Ae=this.h[14],Be=this.h[15];n(this.k.length===k.length);for(var vt=0;vt<k.length;vt+=2){var oe=Ae,se=Be,Ke=Me(ie,me),he=Y(ie,me),Ie=Z(ie,me,Je,ke,fe,be),Qe=V(ie,me,Je,ke,fe,be),le=this.k[vt],Ee=this.k[vt+1],gt=k[vt],De=k[vt+1],We=I(oe,se,Ke,he,Ie,Qe,le,Ee,gt,De),Ye=O(oe,se,Ke,he,Ie,Qe,le,Ee,gt,De);oe=ve(C,w),se=ce(C,w),Ke=W(C,w,c,T,z,R),he=J(C,w,c,T,z,R);var we=v(oe,se,Ke,he),Fe=g(oe,se,Ke,he);Ae=fe,Be=be,fe=Je,be=ke,Je=ie,ke=me,ie=v(q,Q,We,Ye),me=g(Q,Q,We,Ye),q=z,Q=R,z=c,R=T,c=C,T=w,C=v(We,Ye,we,Fe),w=g(We,Ye,we,Fe)}y(this.h,0,C,w),y(this.h,2,c,T),y(this.h,4,z,R),y(this.h,6,q,Q),y(this.h,8,ie,me),y(this.h,10,Je,ke),y(this.h,12,fe,be),y(this.h,14,Ae,Be)},j.prototype._digest=function(h){if(h==="hex")return r.toHex32(this.h,"big");else return r.split32(this.h,"big")};function Z(h,S,k,C,w){var c=h&k^~h&w;if(c<0)c+=4294967296;return c}function V(h,S,k,C,w,c){var T=S&C^~S&c;if(T<0)T+=4294967296;return T}function W(h,S,k,C,w){var c=h&k^h&w^k&w;if(c<0)c+=4294967296;return c}function J(h,S,k,C,w,c){var T=S&C^S&c^C&c;if(T<0)T+=4294967296;return T}function ve(h,S){var k=l(h,S,28),C=l(S,h,2),w=l(S,h,7),c=k^C^w;if(c<0)c+=4294967296;return c}function ce(h,S){var k=s(h,S,28),C=s(S,h,2),w=s(S,h,7),c=k^C^w;if(c<0)c+=4294967296;return c}function Me(h,S){var k=l(h,S,14),C=l(h,S,18),w=l(S,h,9),c=k^C^w;if(c<0)c+=4294967296;return c}function Y(h,S){var k=s(h,S,14),C=s(h,S,18),w=s(S,h,9),c=k^C^w;if(c<0)c+=4294967296;return c}function Te(h,S){var k=l(h,S,1),C=l(h,S,8),w=d(h,S,7),c=k^C^w;if(c<0)c+=4294967296;return c}function f(h,S){var k=s(h,S,1),C=s(h,S,8),w=b(h,S,7),c=k^C^w;if(c<0)c+=4294967296;return c}function p(h,S){var k=l(h,S,19),C=l(S,h,29),w=d(h,S,6),c=k^C^w;if(c<0)c+=4294967296;return c}function x(h,S){var k=s(h,S,19),C=s(S,h,29),w=b(h,S,6),c=k^C^w;if(c<0)c+=4294967296;return c}}),Uge=ct((e,t)=>{var r=bs(),a=bY();function n(){if(!(this instanceof n))return new n;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(n,a),t.exports=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(l){if(l==="hex")return r.toHex32(this.h.slice(0,12),"big");else return r.split32(this.h.slice(0,12),"big")}}),jge=ct((e)=>{e.sha1=$ge(),e.sha224=Bge(),e.sha256=gY(),e.sha384=Uge(),e.sha512=bY()}),Hge=ct((e)=>{var t=bs(),r=G0(),a=t.rotl32,n=t.sum32,l=t.sum32_3,s=t.sum32_4,d=r.BlockHash;function b(){if(!(this instanceof b))return new b;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}t.inherits(b,d),e.ripemd160=b,b.blockSize=512,b.outSize=160,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(N,P){var j=this.h[0],Z=this.h[1],V=this.h[2],W=this.h[3],J=this.h[4],ve=j,ce=Z,Me=V,Y=W,Te=J;for(var f=0;f<80;f++){var p=n(a(s(j,y(f,Z,V,W),N[_[f]+P],v(f)),I[f]),J);j=J,J=W,W=a(V,10),V=Z,Z=p,p=n(a(s(ve,y(79-f,ce,Me,Y),N[A[f]+P],g(f)),O[f]),Te),ve=Te,Te=Y,Y=a(Me,10),Me=ce,ce=p}p=l(this.h[1],V,Y),this.h[1]=l(this.h[2],W,Te),this.h[2]=l(this.h[3],J,ve),this.h[3]=l(this.h[4],j,ce),this.h[4]=l(this.h[0],Z,Me),this.h[0]=p},b.prototype._digest=function(N){if(N==="hex")return t.toHex32(this.h,"little");else return t.split32(this.h,"little")};function y(N,P,j,Z){if(N<=15)return P^j^Z;else if(N<=31)return P&j|~P&Z;else if(N<=47)return(P|~j)^Z;else if(N<=63)return P&Z|j&~Z;else return P^(j|~Z)}function v(N){if(N<=15)return 0;else if(N<=31)return 1518500249;else if(N<=47)return 1859775393;else if(N<=63)return 2400959708;else return 2840853838}function g(N){if(N<=15)return 1352829926;else if(N<=31)return 1548603684;else if(N<=47)return 1836072691;else if(N<=63)return 2053994217;else return 0}var _=[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],A=[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],I=[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],O=[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]}),Zge=ct((e,t)=>{var r=bs(),a=Tu();function n(l,s,d){if(!(this instanceof n))return new n(l,s,d);this.Hash=l,this.blockSize=l.blockSize/8,this.outSize=l.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(s,d))}t.exports=n,n.prototype._init=function(l){if(l.length>this.blockSize)l=new this.Hash().update(l).digest();a(l.length<=this.blockSize);for(var s=l.length;s<this.blockSize;s++)l.push(0);for(s=0;s<l.length;s++)l[s]^=54;this.inner=new this.Hash().update(l);for(s=0;s<l.length;s++)l[s]^=106;this.outer=new this.Hash().update(l)},n.prototype.update=function(l,s){return this.inner.update(l,s),this},n.prototype.digest=function(l){return this.outer.update(this.inner.digest()),this.outer.digest(l)}}),eC=ct((e)=>{var t=e;t.utils=bs(),t.common=G0(),t.sha=jge(),t.ripemd=Hge(),t.hmac=Zge(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}),Fge=ct((e,t)=>{t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}),tC=ct((e)=>{var t=e,r=eC(),a=pY(),n=na(),l=n.assert;function s(y){if(y.type==="short")this.curve=new a.short(y);else if(y.type==="edwards")this.curve=new a.edwards(y);else this.curve=new a.mont(y);this.g=this.curve.g,this.n=this.curve.n,this.hash=y.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=s;function d(y,v){Object.defineProperty(t,y,{configurable:!0,enumerable:!0,get:function(){var g=new s(v);return Object.defineProperty(t,y,{configurable:!0,enumerable:!0,value:g}),g}})}d("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:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("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:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("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:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("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:r.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"]}),d("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:r.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"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),d("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:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var b;try{b=Fge()}catch(y){b=void 0}d("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:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",b]})}),qge=ct((e,t)=>{var r=eC(),a=dY(),n=Tu();function l(s){if(!(this instanceof l))return new l(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var d=a.toArray(s.entropy,s.entropyEnc||"hex"),b=a.toArray(s.nonce,s.nonceEnc||"hex"),y=a.toArray(s.pers,s.persEnc||"hex");n(d.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(d,b,y)}t.exports=l,l.prototype._init=function(s,d,b){var y=s.concat(d).concat(b);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var v=0;v<this.V.length;v++)this.K[v]=0,this.V[v]=1;this._update(y),this._reseed=1,this.reseedInterval=281474976710656},l.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},l.prototype._update=function(s){var d=this._hmac().update(this.V).update([0]);if(s)d=d.update(s);if(this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),!s)return;this.K=this._hmac().update(this.V).update([1]).update(s).digest(),this.V=this._hmac().update(this.V).digest()},l.prototype.reseed=function(s,d,b,y){if(typeof d!=="string")y=b,b=d,d=null;s=a.toArray(s,d),b=a.toArray(b,y),n(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(b||[])),this._reseed=1},l.prototype.generate=function(s,d,b,y){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof d!=="string")y=b,b=d,d=null;if(b)b=a.toArray(b,y||"hex"),this._update(b);var v=[];while(v.length<s)this.V=this._hmac().update(this.V).digest(),v=v.concat(this.V);var g=v.slice(0,s);return this._update(b),this._reseed++,a.encode(g,d)}}),Gge=ct((e,t)=>{var r=sl(),a=na(),n=a.assert;function l(s,d){if(this.ec=s,this.priv=null,this.pub=null,d.priv)this._importPrivate(d.priv,d.privEnc);if(d.pub)this._importPublic(d.pub,d.pubEnc)}t.exports=l,l.fromPublic=function(s,d,b){if(d instanceof l)return d;return new l(s,{pub:d,pubEnc:b})},l.fromPrivate=function(s,d,b){if(d instanceof l)return d;return new l(s,{priv:d,privEnc:b})},l.prototype.validate=function(){var s=this.getPublic();if(s.isInfinity())return{result:!1,reason:"Invalid public key"};if(!s.validate())return{result:!1,reason:"Public key is not a point"};if(!s.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},l.prototype.getPublic=function(s,d){if(typeof s==="string")d=s,s=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!d)return this.pub;return this.pub.encode(d,s)},l.prototype.getPrivate=function(s){if(s==="hex")return this.priv.toString(16,2);else return this.priv},l.prototype._importPrivate=function(s,d){this.priv=new r(s,d||16),this.priv=this.priv.umod(this.ec.curve.n)},l.prototype._importPublic=function(s,d){if(s.x||s.y){if(this.ec.curve.type==="mont")n(s.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")n(s.x&&s.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(s.x,s.y);return}this.pub=this.ec.curve.decodePoint(s,d)},l.prototype.derive=function(s){if(!s.validate())n(s.validate(),"public point not validated");return s.mul(this.priv).getX()},l.prototype.sign=function(s,d,b){return this.ec.sign(s,this,d,b)},l.prototype.verify=function(s,d,b){return this.ec.verify(s,d,this,void 0,b)},l.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),Vge=ct((e,t)=>{var r=sl(),a=na(),n=a.assert;function l(v,g){if(v instanceof l)return v;if(this._importDER(v,g))return;if(n(v.r&&v.s,"Signature without r or s"),this.r=new r(v.r,16),this.s=new r(v.s,16),v.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=v.recoveryParam}t.exports=l;function s(){this.place=0}function d(v,g){var _=v[g.place++];if(!(_&128))return _;var A=_&15;if(A===0||A>4)return!1;if(v[g.place]===0)return!1;var I=0;for(var O=0,N=g.place;O<A;O++,N++)I<<=8,I|=v[N],I>>>=0;if(I<=127)return!1;return g.place=N,I}function b(v){var g=0,_=v.length-1;while(!v[g]&&!(v[g+1]&128)&&g<_)g++;if(g===0)return v;return v.slice(g)}l.prototype._importDER=function(v,g){v=a.toArray(v,g);var _=new s;if(v[_.place++]!==48)return!1;var A=d(v,_);if(A===!1)return!1;if(A+_.place!==v.length)return!1;if(v[_.place++]!==2)return!1;var I=d(v,_);if(I===!1)return!1;if((v[_.place]&128)!==0)return!1;var O=v.slice(_.place,I+_.place);if(_.place+=I,v[_.place++]!==2)return!1;var N=d(v,_);if(N===!1)return!1;if(v.length!==N+_.place)return!1;if((v[_.place]&128)!==0)return!1;var P=v.slice(_.place,N+_.place);if(O[0]===0)if(O[1]&128)O=O.slice(1);else return!1;if(P[0]===0)if(P[1]&128)P=P.slice(1);else return!1;return this.r=new r(O),this.s=new r(P),this.recoveryParam=null,!0};function y(v,g){if(g<128){v.push(g);return}var _=1+(Math.log(g)/Math.LN2>>>3);v.push(_|128);while(--_)v.push(g>>>(_<<3)&255);v.push(g)}l.prototype.toDER=function(v){var g=this.r.toArray(),_=this.s.toArray();if(g[0]&128)g=[0].concat(g);if(_[0]&128)_=[0].concat(_);g=b(g),_=b(_);while(!_[0]&&!(_[1]&128))_=_.slice(1);var A=[2];y(A,g.length),A=A.concat(g),A.push(2),y(A,_.length);var I=A.concat(_),O=[48];return y(O,I.length),O=O.concat(I),a.encode(O,v)}}),Yge=ct((e,t)=>{var r=sl(),a=qge(),n=na(),l=tC(),s=hY(),d=n.assert,b=Gge(),y=Vge();function v(g){if(!(this instanceof v))return new v(g);if(typeof g==="string")d(Object.prototype.hasOwnProperty.call(l,g),"Unknown curve "+g),g=l[g];if(g instanceof l.PresetCurve)g={curve:g};this.curve=g.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=g.curve.g,this.g.precompute(g.curve.n.bitLength()+1),this.hash=g.hash||g.curve.hash}t.exports=v,v.prototype.keyPair=function(g){return new b(this,g)},v.prototype.keyFromPrivate=function(g,_){return b.fromPrivate(this,g,_)},v.prototype.keyFromPublic=function(g,_){return b.fromPublic(this,g,_)},v.prototype.genKeyPair=function(g){if(!g)g={};var _=new a({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||s(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),A=this.n.byteLength(),I=this.n.sub(new r(2));for(;;){var O=new r(_.generate(A));if(O.cmp(I)>0)continue;return O.iaddn(1),this.keyFromPrivate(O)}},v.prototype._truncateToN=function(g,_,A){var I;if(r.isBN(g)||typeof g==="number")g=new r(g,16),I=g.byteLength();else if(typeof g==="object")I=g.length,g=new r(g,16);else{var O=g.toString();I=O.length+1>>>1,g=new r(O,16)}if(typeof A!=="number")A=I*8;var N=A-this.n.bitLength();if(N>0)g=g.ushrn(N);if(!_&&g.cmp(this.n)>=0)return g.sub(this.n);else return g},v.prototype.sign=function(g,_,A,I){if(typeof A==="object")I=A,A=null;if(!I)I={};if(typeof g!=="string"&&typeof g!=="number"&&!r.isBN(g)){d(typeof g==="object"&&g&&typeof g.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),d(g.length>>>0===g.length);for(var O=0;O<g.length;O++)d((g[O]&255)===g[O])}_=this.keyFromPrivate(_,A),g=this._truncateToN(g,!1,I.msgBitLength),d(!g.isNeg(),"Can not sign a negative message");var N=this.n.byteLength(),P=_.getPrivate().toArray("be",N),j=g.toArray("be",N);d(new r(j).eq(g),"Can not sign message");var Z=new a({hash:this.hash,entropy:P,nonce:j,pers:I.pers,persEnc:I.persEnc||"utf8"}),V=this.n.sub(new r(1));for(var W=0;;W++){var J=I.k?I.k(W):new r(Z.generate(this.n.byteLength()));if(J=this._truncateToN(J,!0),J.cmpn(1)<=0||J.cmp(V)>=0)continue;var ve=this.g.mul(J);if(ve.isInfinity())continue;var ce=ve.getX(),Me=ce.umod(this.n);if(Me.cmpn(0)===0)continue;var Y=J.invm(this.n).mul(Me.mul(_.getPrivate()).iadd(g));if(Y=Y.umod(this.n),Y.cmpn(0)===0)continue;var Te=(ve.getY().isOdd()?1:0)|(ce.cmp(Me)!==0?2:0);if(I.canonical&&Y.cmp(this.nh)>0)Y=this.n.sub(Y),Te^=1;return new y({r:Me,s:Y,recoveryParam:Te})}},v.prototype.verify=function(g,_,A,I,O){if(!O)O={};g=this._truncateToN(g,!1,O.msgBitLength),A=this.keyFromPublic(A,I),_=new y(_,"hex");var{r:N,s:P}=_;if(N.cmpn(1)<0||N.cmp(this.n)>=0)return!1;if(P.cmpn(1)<0||P.cmp(this.n)>=0)return!1;var j=P.invm(this.n),Z=j.mul(g).umod(this.n),V=j.mul(N).umod(this.n),W;if(!this.curve._maxwellTrick){if(W=this.g.mulAdd(Z,A.getPublic(),V),W.isInfinity())return!1;return W.getX().umod(this.n).cmp(N)===0}if(W=this.g.jmulAdd(Z,A.getPublic(),V),W.isInfinity())return!1;return W.eqXToP(N)},v.prototype.recoverPubKey=function(g,_,A,I){d((3&A)===A,"The recovery param is more than two bits"),_=new y(_,I);var O=this.n,N=new r(g),P=_.r,j=_.s,Z=A&1,V=A>>1;if(P.cmp(this.curve.p.umod(this.curve.n))>=0&&V)throw Error("Unable to find sencond key candinate");if(V)P=this.curve.pointFromX(P.add(this.curve.n),Z);else P=this.curve.pointFromX(P,Z);var W=_.r.invm(O),J=O.sub(N).mul(W).umod(O),ve=j.mul(W).umod(O);return this.g.mulAdd(J,P,ve)},v.prototype.getKeyRecoveryParam=function(g,_,A,I){if(_=new y(_,I),_.recoveryParam!==null)return _.recoveryParam;for(var O=0;O<4;O++){var N;try{N=this.recoverPubKey(g,_,O)}catch(P){continue}if(N.eq(A))return O}throw Error("Unable to find valid recovery factor")}}),Kge=ct((e,t)=>{var r=na(),a=r.assert,n=r.parseBytes,l=r.cachedProperty;function s(d,b){if(this.eddsa=d,this._secret=n(b.secret),d.isPoint(b.pub))this._pub=b.pub;else this._pubBytes=n(b.pub)}s.fromPublic=function(d,b){if(b instanceof s)return b;return new s(d,{pub:b})},s.fromSecret=function(d,b){if(b instanceof s)return b;return new s(d,{secret:b})},s.prototype.secret=function(){return this._secret},l(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),l(s,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),l(s,"privBytes",function(){var d=this.eddsa,b=this.hash(),y=d.encodingLength-1,v=b.slice(0,d.encodingLength);return v[0]&=248,v[y]&=127,v[y]|=64,v}),l(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),l(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),l(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(d){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},s.prototype.verify=function(d,b){return this.eddsa.verify(d,b,this)},s.prototype.getSecret=function(d){return a(this._secret,"KeyPair is public only"),r.encode(this.secret(),d)},s.prototype.getPublic=function(d){return r.encode(this.pubBytes(),d)},t.exports=s}),Wge=ct((e,t)=>{var r=sl(),a=na(),n=a.assert,l=a.cachedProperty,s=a.parseBytes;function d(b,y){if(this.eddsa=b,typeof y!=="object")y=s(y);if(Array.isArray(y))n(y.length===b.encodingLength*2,"Signature has invalid size"),y={R:y.slice(0,b.encodingLength),S:y.slice(b.encodingLength)};if(n(y.R&&y.S,"Signature without R or S"),b.isPoint(y.R))this._R=y.R;if(y.S instanceof r)this._S=y.S;this._Rencoded=Array.isArray(y.R)?y.R:y.Rencoded,this._Sencoded=Array.isArray(y.S)?y.S:y.Sencoded}l(d,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),l(d,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),l(d,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),l(d,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},t.exports=d}),Xge=ct((e,t)=>{var r=eC(),a=tC(),n=na(),l=n.assert,s=n.parseBytes,d=Kge(),b=Wge();function y(v){if(l(v==="ed25519","only tested with ed25519 so far"),!(this instanceof y))return new y(v);v=a[v].curve,this.curve=v,this.g=v.g,this.g.precompute(v.n.bitLength()+1),this.pointClass=v.point().constructor,this.encodingLength=Math.ceil(v.n.bitLength()/8),this.hash=r.sha512}t.exports=y,y.prototype.sign=function(v,g){v=s(v);var _=this.keyFromSecret(g),A=this.hashInt(_.messagePrefix(),v),I=this.g.mul(A),O=this.encodePoint(I),N=this.hashInt(O,_.pubBytes(),v).mul(_.priv()),P=A.add(N).umod(this.curve.n);return this.makeSignature({R:I,S:P,Rencoded:O})},y.prototype.verify=function(v,g,_){if(v=s(v),g=this.makeSignature(g),g.S().gte(g.eddsa.curve.n)||g.S().isNeg())return!1;var A=this.keyFromPublic(_),I=this.hashInt(g.Rencoded(),A.pubBytes(),v),O=this.g.mul(g.S()),N=g.R().add(A.pub().mul(I));return N.eq(O)},y.prototype.hashInt=function(){var v=this.hash();for(var g=0;g<arguments.length;g++)v.update(arguments[g]);return n.intFromLE(v.digest()).umod(this.curve.n)},y.prototype.keyFromPublic=function(v){return d.fromPublic(this,v)},y.prototype.keyFromSecret=function(v){return d.fromSecret(this,v)},y.prototype.makeSignature=function(v){if(v instanceof b)return v;return new b(this,v)},y.prototype.encodePoint=function(v){var g=v.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=v.getX().isOdd()?128:0,g},y.prototype.decodePoint=function(v){v=n.parseBytes(v);var g=v.length-1,_=v.slice(0,g).concat(v[g]&-129),A=(v[g]&128)!==0,I=n.intFromLE(_);return this.curve.pointFromY(I,A)},y.prototype.encodeInt=function(v){return v.toArray("le",this.encodingLength)},y.prototype.decodeInt=function(v){return n.intFromLE(v)},y.prototype.isPoint=function(v){return v instanceof this.pointClass}}),Jge=ct((e)=>{var t=e;t.version=Nge().version,t.utils=na(),t.rand=hY(),t.curve=pY(),t.curves=tC(),t.ec=Yge(),t.eddsa=Xge()}),Qge=ct((e,t)=>{(function(r,a){function n(f,p){if(!f)throw Error(p||"Assertion failed")}function l(f,p){f.super_=p;var x=function(){};x.prototype=p.prototype,f.prototype=new x,f.prototype.constructor=f}function s(f,p,x){if(s.isBN(f))return f;if(this.negative=0,this.words=null,this.length=0,this.red=null,f!==null){if(p==="le"||p==="be")x=p,p=10;this._init(f||0,p||10,x||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(f){}s.isBN=function(f){if(f instanceof s)return!0;return f!==null&&typeof f==="object"&&f.constructor.wordSize===s.wordSize&&Array.isArray(f.words)},s.max=function(f,p){if(f.cmp(p)>0)return f;return p},s.min=function(f,p){if(f.cmp(p)<0)return f;return p},s.prototype._init=function(f,p,x){if(typeof f==="number")return this._initNumber(f,p,x);if(typeof f==="object")return this._initArray(f,p,x);if(p==="hex")p=16;n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var h=0;if(f[0]==="-")h++,this.negative=1;if(h<f.length){if(p===16)this._parseHex(f,h,x);else if(this._parseBase(f,p,h),x==="le")this._initArray(this.toArray(),p,x)}},s.prototype._initNumber=function(f,p,x){if(f<0)this.negative=1,f=-f;if(f<67108864)this.words=[f&67108863],this.length=1;else if(f<4503599627370496)this.words=[f&67108863,f/67108864&67108863],this.length=2;else n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3;if(x!=="le")return;this._initArray(this.toArray(),p,x)},s.prototype._initArray=function(f,p,x){if(n(typeof f.length==="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S,k,C=0;if(x==="be"){for(h=f.length-1,S=0;h>=0;h-=3)if(k=f[h]|f[h-1]<<8|f[h-2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}else if(x==="le"){for(h=0,S=0;h<f.length;h+=3)if(k=f[h]|f[h+1]<<8|f[h+2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}return this.strip()};function b(f,p){var x=f.charCodeAt(p);if(x>=65&&x<=70)return x-55;else if(x>=97&&x<=102)return x-87;else return x-48&15}function y(f,p,x){var h=b(f,x);if(x-1>=p)h|=b(f,x-1)<<4;return h}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S=0,k=0,C;if(x==="be")for(h=f.length-1;h>=p;h-=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8;else{var w=f.length-p;for(h=w%2===0?p+1:p;h<f.length;h+=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8}this.strip()};function v(f,p,x,h){var S=0,k=Math.min(f.length,x);for(var C=p;C<k;C++){var w=f.charCodeAt(C)-48;if(S*=h,w>=49)S+=w-49+10;else if(w>=17)S+=w-17+10;else S+=w}return S}s.prototype._parseBase=function(f,p,x){this.words=[0],this.length=1;for(var h=0,S=1;S<=67108863;S*=p)h++;h--,S=S/p|0;var k=f.length-x,C=k%h,w=Math.min(k,k-C)+x,c=0;for(var T=x;T<w;T+=h)if(c=v(f,T,T+h,p),this.imuln(S),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(C!==0){var z=1;c=v(f,T,f.length,p);for(T=0;T<C;T++)z*=p;if(this.imuln(z),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this.strip()},s.prototype.copy=function(f){f.words=Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red},s.prototype.clone=function(){var f=new s(null);return this.copy(f),f},s.prototype._expand=function(f){while(this.length<f)this.words[this.length++]=0;return this},s.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],_=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";var h=0,S=0;for(var k=0;k<this.length;k++){var C=this.words[k],w=((C<<h|S)&16777215).toString(16);if(S=C>>>24-h&16777215,h+=2,h>=26)h-=26,k--;if(S!==0||k!==this.length-1)x=g[6-w.length]+w+x;else x=w+x}if(S!==0)x=S.toString(16)+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}if(f===(f|0)&&f>=2&&f<=36){var c=_[f],T=A[f];x="";var z=this.clone();z.negative=0;while(!z.isZero()){var R=z.modn(T).toString(f);if(z=z.idivn(T),!z.isZero())x=g[c-R.length]+R+x;else x=R+x}if(this.isZero())x="0"+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];if(this.length===2)f+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)f+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(f,p){return n(typeof d<"u"),this.toArrayLike(d,f,p)},s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)},s.prototype.toArrayLike=function(f,p,x){var h=this.byteLength(),S=x||Math.max(1,h);n(h<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var k=p==="le",C=new f(S),w,c,T=this.clone();if(!k){for(c=0;c<S-h;c++)C[c]=0;for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[S-c-1]=w}else{for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[c]=w;for(;c<S;c++)C[c]=0}return C},Math.clz32)s.prototype._countBits=function(f){return 32-Math.clz32(f)};else s.prototype._countBits=function(f){var p=f,x=0;if(p>=4096)x+=13,p>>>=13;if(p>=64)x+=7,p>>>=7;if(p>=8)x+=4,p>>>=4;if(p>=2)x+=2,p>>>=2;return x+p};s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;if((p&8191)===0)x+=13,p>>>=13;if((p&127)===0)x+=7,p>>>=7;if((p&15)===0)x+=4,p>>>=4;if((p&3)===0)x+=2,p>>>=2;if((p&1)===0)x++;return x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(f){var p=Array(f.bitLength());for(var x=0;x<p.length;x++){var h=x/26|0,S=x%26;p[x]=(f.words[h]&1<<S)>>>S}return p}s.prototype.zeroBits=function(){if(this.isZero())return 0;var f=0;for(var p=0;p<this.length;p++){var x=this._zeroBits(this.words[p]);if(f+=x,x!==26)break}return f},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(f){if(this.negative!==0)return this.abs().inotn(f).iaddn(1);return this.clone()},s.prototype.fromTwos=function(f){if(this.testn(f-1))return this.notn(f).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(f){while(this.length<f.length)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this.strip()},s.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},s.prototype.or=function(f){if(this.length>f.length)return this.clone().ior(f);return f.clone().ior(this)},s.prototype.uor=function(f){if(this.length>f.length)return this.clone().iuor(f);return f.clone().iuor(this)},s.prototype.iuand=function(f){var p;if(this.length>f.length)p=f;else p=this;for(var x=0;x<p.length;x++)this.words[x]=this.words[x]&f.words[x];return this.length=p.length,this.strip()},s.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},s.prototype.and=function(f){if(this.length>f.length)return this.clone().iand(f);return f.clone().iand(this)},s.prototype.uand=function(f){if(this.length>f.length)return this.clone().iuand(f);return f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;if(this.length>f.length)p=this,x=f;else p=f,x=this;for(var h=0;h<x.length;h++)this.words[h]=p.words[h]^x.words[h];if(this!==p)for(;h<p.length;h++)this.words[h]=p.words[h];return this.length=p.length,this.strip()},s.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},s.prototype.xor=function(f){if(this.length>f.length)return this.clone().ixor(f);return f.clone().ixor(this)},s.prototype.uxor=function(f){if(this.length>f.length)return this.clone().iuxor(f);return f.clone().iuxor(this)},s.prototype.inotn=function(f){n(typeof f==="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;if(this._expand(p),x>0)p--;for(var h=0;h<p;h++)this.words[h]=~this.words[h]&67108863;if(x>0)this.words[h]=~this.words[h]&67108863>>26-x;return this.strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){n(typeof f==="number"&&f>=0);var x=f/26|0,h=f%26;if(this._expand(x+1),p)this.words[x]=this.words[x]|1<<h;else this.words[x]=this.words[x]&~(1<<h);return this.strip()},s.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();else if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var x,h;if(this.length>f.length)x=this,h=f;else x=f,h=this;var S=0;for(var k=0;k<h.length;k++)p=(x.words[k]|0)+(h.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;for(;S!==0&&k<x.length;k++)p=(x.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;if(this.length=x.length,S!==0)this.words[this.length]=S,this.length++;else if(x!==this)for(;k<x.length;k++)this.words[k]=x.words[k];return this},s.prototype.add=function(f){var p;if(f.negative!==0&&this.negative===0)return f.negative=0,p=this.sub(f),f.negative^=1,p;else if(f.negative===0&&this.negative!==0)return this.negative=0,p=f.sub(this),this.negative=1,p;if(this.length>f.length)return this.clone().iadd(f);return f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,S;if(x>0)h=this,S=f;else h=f,S=this;var k=0;for(var C=0;C<S.length;C++)p=(h.words[C]|0)-(S.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;for(;k!==0&&C<h.length;C++)p=(h.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;if(k===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];if(this.length=Math.max(this.length,C),h!==this)this.negative=1;return this.strip()},s.prototype.sub=function(f){return this.clone().isub(f)};function O(f,p,x){x.negative=p.negative^f.negative;var h=f.length+p.length|0;x.length=h,h=h-1|0;var S=f.words[0]|0,k=p.words[0]|0,C=S*k,w=C&67108863,c=C/67108864|0;x.words[0]=w;for(var T=1;T<h;T++){var z=c>>>26,R=c&67108863,q=Math.min(T,p.length-1);for(var Q=Math.max(0,T-f.length+1);Q<=q;Q++){var ie=T-Q|0;S=f.words[ie]|0,k=p.words[Q]|0,C=S*k+R,z+=C/67108864|0,R=C&67108863}x.words[T]=R|0,c=z|0}if(c!==0)x.words[T]=c|0;else x.length--;return x.strip()}var N=function(f,p,x){var h=f.words,S=p.words,k=x.words,C=0,w,c,T,z=h[0]|0,R=z&8191,q=z>>>13,Q=h[1]|0,ie=Q&8191,me=Q>>>13,Je=h[2]|0,ke=Je&8191,fe=Je>>>13,be=h[3]|0,Ae=be&8191,Be=be>>>13,vt=h[4]|0,oe=vt&8191,se=vt>>>13,Ke=h[5]|0,he=Ke&8191,Ie=Ke>>>13,Qe=h[6]|0,le=Qe&8191,Ee=Qe>>>13,gt=h[7]|0,De=gt&8191,We=gt>>>13,Ye=h[8]|0,we=Ye&8191,Fe=Ye>>>13,L=h[9]|0,ae=L&8191,_e=L>>>13,ot=S[0]|0,xe=ot&8191,K=ot>>>13,Ge=S[1]|0,F=Ge&8191,te=Ge>>>13,Pe=S[2]|0,pe=Pe&8191,de=Pe>>>13,at=S[3]|0,$e=at&8191,qe=at>>>13,ht=S[4]|0,tt=ht&8191,nt=ht>>>13,Er=S[5]|0,bt=Er&8191,re=Er>>>13,ye=S[6]|0,Ze=ye&8191,Ve=ye>>>13,Dt=S[7]|0,mt=Dt&8191,yt=Dt>>>13,Qr=S[8]|0,_t=Qr&8191,xt=Qr>>>13,zr=S[9]|0,wt=zr&8191,St=zr>>>13;x.negative=f.negative^p.negative,x.length=19,w=Math.imul(R,xe),c=Math.imul(R,K),c=c+Math.imul(q,xe)|0,T=Math.imul(q,K);var sn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(ie,xe),c=Math.imul(ie,K),c=c+Math.imul(me,xe)|0,T=Math.imul(me,K),w=w+Math.imul(R,F)|0,c=c+Math.imul(R,te)|0,c=c+Math.imul(q,F)|0,T=T+Math.imul(q,te)|0;var ir=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(ke,xe),c=Math.imul(ke,K),c=c+Math.imul(fe,xe)|0,T=Math.imul(fe,K),w=w+Math.imul(ie,F)|0,c=c+Math.imul(ie,te)|0,c=c+Math.imul(me,F)|0,T=T+Math.imul(me,te)|0,w=w+Math.imul(R,pe)|0,c=c+Math.imul(R,de)|0,c=c+Math.imul(q,pe)|0,T=T+Math.imul(q,de)|0;var nr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ae,xe),c=Math.imul(Ae,K),c=c+Math.imul(Be,xe)|0,T=Math.imul(Be,K),w=w+Math.imul(ke,F)|0,c=c+Math.imul(ke,te)|0,c=c+Math.imul(fe,F)|0,T=T+Math.imul(fe,te)|0,w=w+Math.imul(ie,pe)|0,c=c+Math.imul(ie,de)|0,c=c+Math.imul(me,pe)|0,T=T+Math.imul(me,de)|0,w=w+Math.imul(R,$e)|0,c=c+Math.imul(R,qe)|0,c=c+Math.imul(q,$e)|0,T=T+Math.imul(q,qe)|0;var Lr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,w=Math.imul(oe,xe),c=Math.imul(oe,K),c=c+Math.imul(se,xe)|0,T=Math.imul(se,K),w=w+Math.imul(Ae,F)|0,c=c+Math.imul(Ae,te)|0,c=c+Math.imul(Be,F)|0,T=T+Math.imul(Be,te)|0,w=w+Math.imul(ke,pe)|0,c=c+Math.imul(ke,de)|0,c=c+Math.imul(fe,pe)|0,T=T+Math.imul(fe,de)|0,w=w+Math.imul(ie,$e)|0,c=c+Math.imul(ie,qe)|0,c=c+Math.imul(me,$e)|0,T=T+Math.imul(me,qe)|0,w=w+Math.imul(R,tt)|0,c=c+Math.imul(R,nt)|0,c=c+Math.imul(q,tt)|0,T=T+Math.imul(q,nt)|0;var Tr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(he,xe),c=Math.imul(he,K),c=c+Math.imul(Ie,xe)|0,T=Math.imul(Ie,K),w=w+Math.imul(oe,F)|0,c=c+Math.imul(oe,te)|0,c=c+Math.imul(se,F)|0,T=T+Math.imul(se,te)|0,w=w+Math.imul(Ae,pe)|0,c=c+Math.imul(Ae,de)|0,c=c+Math.imul(Be,pe)|0,T=T+Math.imul(Be,de)|0,w=w+Math.imul(ke,$e)|0,c=c+Math.imul(ke,qe)|0,c=c+Math.imul(fe,$e)|0,T=T+Math.imul(fe,qe)|0,w=w+Math.imul(ie,tt)|0,c=c+Math.imul(ie,nt)|0,c=c+Math.imul(me,tt)|0,T=T+Math.imul(me,nt)|0,w=w+Math.imul(R,bt)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(q,bt)|0,T=T+Math.imul(q,re)|0;var wn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,w=Math.imul(le,xe),c=Math.imul(le,K),c=c+Math.imul(Ee,xe)|0,T=Math.imul(Ee,K),w=w+Math.imul(he,F)|0,c=c+Math.imul(he,te)|0,c=c+Math.imul(Ie,F)|0,T=T+Math.imul(Ie,te)|0,w=w+Math.imul(oe,pe)|0,c=c+Math.imul(oe,de)|0,c=c+Math.imul(se,pe)|0,T=T+Math.imul(se,de)|0,w=w+Math.imul(Ae,$e)|0,c=c+Math.imul(Ae,qe)|0,c=c+Math.imul(Be,$e)|0,T=T+Math.imul(Be,qe)|0,w=w+Math.imul(ke,tt)|0,c=c+Math.imul(ke,nt)|0,c=c+Math.imul(fe,tt)|0,T=T+Math.imul(fe,nt)|0,w=w+Math.imul(ie,bt)|0,c=c+Math.imul(ie,re)|0,c=c+Math.imul(me,bt)|0,T=T+Math.imul(me,re)|0,w=w+Math.imul(R,Ze)|0,c=c+Math.imul(R,Ve)|0,c=c+Math.imul(q,Ze)|0,T=T+Math.imul(q,Ve)|0;var En=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(En>>>26)|0,En&=67108863,w=Math.imul(De,xe),c=Math.imul(De,K),c=c+Math.imul(We,xe)|0,T=Math.imul(We,K),w=w+Math.imul(le,F)|0,c=c+Math.imul(le,te)|0,c=c+Math.imul(Ee,F)|0,T=T+Math.imul(Ee,te)|0,w=w+Math.imul(he,pe)|0,c=c+Math.imul(he,de)|0,c=c+Math.imul(Ie,pe)|0,T=T+Math.imul(Ie,de)|0,w=w+Math.imul(oe,$e)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(se,$e)|0,T=T+Math.imul(se,qe)|0,w=w+Math.imul(Ae,tt)|0,c=c+Math.imul(Ae,nt)|0,c=c+Math.imul(Be,tt)|0,T=T+Math.imul(Be,nt)|0,w=w+Math.imul(ke,bt)|0,c=c+Math.imul(ke,re)|0,c=c+Math.imul(fe,bt)|0,T=T+Math.imul(fe,re)|0,w=w+Math.imul(ie,Ze)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(me,Ze)|0,T=T+Math.imul(me,Ve)|0,w=w+Math.imul(R,mt)|0,c=c+Math.imul(R,yt)|0,c=c+Math.imul(q,mt)|0,T=T+Math.imul(q,yt)|0;var Tn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(we,xe),c=Math.imul(we,K),c=c+Math.imul(Fe,xe)|0,T=Math.imul(Fe,K),w=w+Math.imul(De,F)|0,c=c+Math.imul(De,te)|0,c=c+Math.imul(We,F)|0,T=T+Math.imul(We,te)|0,w=w+Math.imul(le,pe)|0,c=c+Math.imul(le,de)|0,c=c+Math.imul(Ee,pe)|0,T=T+Math.imul(Ee,de)|0,w=w+Math.imul(he,$e)|0,c=c+Math.imul(he,qe)|0,c=c+Math.imul(Ie,$e)|0,T=T+Math.imul(Ie,qe)|0,w=w+Math.imul(oe,tt)|0,c=c+Math.imul(oe,nt)|0,c=c+Math.imul(se,tt)|0,T=T+Math.imul(se,nt)|0,w=w+Math.imul(Ae,bt)|0,c=c+Math.imul(Ae,re)|0,c=c+Math.imul(Be,bt)|0,T=T+Math.imul(Be,re)|0,w=w+Math.imul(ke,Ze)|0,c=c+Math.imul(ke,Ve)|0,c=c+Math.imul(fe,Ze)|0,T=T+Math.imul(fe,Ve)|0,w=w+Math.imul(ie,mt)|0,c=c+Math.imul(ie,yt)|0,c=c+Math.imul(me,mt)|0,T=T+Math.imul(me,yt)|0,w=w+Math.imul(R,_t)|0,c=c+Math.imul(R,xt)|0,c=c+Math.imul(q,_t)|0,T=T+Math.imul(q,xt)|0;var kn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,w=Math.imul(ae,xe),c=Math.imul(ae,K),c=c+Math.imul(_e,xe)|0,T=Math.imul(_e,K),w=w+Math.imul(we,F)|0,c=c+Math.imul(we,te)|0,c=c+Math.imul(Fe,F)|0,T=T+Math.imul(Fe,te)|0,w=w+Math.imul(De,pe)|0,c=c+Math.imul(De,de)|0,c=c+Math.imul(We,pe)|0,T=T+Math.imul(We,de)|0,w=w+Math.imul(le,$e)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(Ee,$e)|0,T=T+Math.imul(Ee,qe)|0,w=w+Math.imul(he,tt)|0,c=c+Math.imul(he,nt)|0,c=c+Math.imul(Ie,tt)|0,T=T+Math.imul(Ie,nt)|0,w=w+Math.imul(oe,bt)|0,c=c+Math.imul(oe,re)|0,c=c+Math.imul(se,bt)|0,T=T+Math.imul(se,re)|0,w=w+Math.imul(Ae,Ze)|0,c=c+Math.imul(Ae,Ve)|0,c=c+Math.imul(Be,Ze)|0,T=T+Math.imul(Be,Ve)|0,w=w+Math.imul(ke,mt)|0,c=c+Math.imul(ke,yt)|0,c=c+Math.imul(fe,mt)|0,T=T+Math.imul(fe,yt)|0,w=w+Math.imul(ie,_t)|0,c=c+Math.imul(ie,xt)|0,c=c+Math.imul(me,_t)|0,T=T+Math.imul(me,xt)|0,w=w+Math.imul(R,wt)|0,c=c+Math.imul(R,St)|0,c=c+Math.imul(q,wt)|0,T=T+Math.imul(q,St)|0;var An=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(ae,F),c=Math.imul(ae,te),c=c+Math.imul(_e,F)|0,T=Math.imul(_e,te),w=w+Math.imul(we,pe)|0,c=c+Math.imul(we,de)|0,c=c+Math.imul(Fe,pe)|0,T=T+Math.imul(Fe,de)|0,w=w+Math.imul(De,$e)|0,c=c+Math.imul(De,qe)|0,c=c+Math.imul(We,$e)|0,T=T+Math.imul(We,qe)|0,w=w+Math.imul(le,tt)|0,c=c+Math.imul(le,nt)|0,c=c+Math.imul(Ee,tt)|0,T=T+Math.imul(Ee,nt)|0,w=w+Math.imul(he,bt)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Ie,bt)|0,T=T+Math.imul(Ie,re)|0,w=w+Math.imul(oe,Ze)|0,c=c+Math.imul(oe,Ve)|0,c=c+Math.imul(se,Ze)|0,T=T+Math.imul(se,Ve)|0,w=w+Math.imul(Ae,mt)|0,c=c+Math.imul(Ae,yt)|0,c=c+Math.imul(Be,mt)|0,T=T+Math.imul(Be,yt)|0,w=w+Math.imul(ke,_t)|0,c=c+Math.imul(ke,xt)|0,c=c+Math.imul(fe,_t)|0,T=T+Math.imul(fe,xt)|0,w=w+Math.imul(ie,wt)|0,c=c+Math.imul(ie,St)|0,c=c+Math.imul(me,wt)|0,T=T+Math.imul(me,St)|0;var Or=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Or>>>26)|0,Or&=67108863,w=Math.imul(ae,pe),c=Math.imul(ae,de),c=c+Math.imul(_e,pe)|0,T=Math.imul(_e,de),w=w+Math.imul(we,$e)|0,c=c+Math.imul(we,qe)|0,c=c+Math.imul(Fe,$e)|0,T=T+Math.imul(Fe,qe)|0,w=w+Math.imul(De,tt)|0,c=c+Math.imul(De,nt)|0,c=c+Math.imul(We,tt)|0,T=T+Math.imul(We,nt)|0,w=w+Math.imul(le,bt)|0,c=c+Math.imul(le,re)|0,c=c+Math.imul(Ee,bt)|0,T=T+Math.imul(Ee,re)|0,w=w+Math.imul(he,Ze)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(Ie,Ze)|0,T=T+Math.imul(Ie,Ve)|0,w=w+Math.imul(oe,mt)|0,c=c+Math.imul(oe,yt)|0,c=c+Math.imul(se,mt)|0,T=T+Math.imul(se,yt)|0,w=w+Math.imul(Ae,_t)|0,c=c+Math.imul(Ae,xt)|0,c=c+Math.imul(Be,_t)|0,T=T+Math.imul(Be,xt)|0,w=w+Math.imul(ke,wt)|0,c=c+Math.imul(ke,St)|0,c=c+Math.imul(fe,wt)|0,T=T+Math.imul(fe,St)|0;var en=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(en>>>26)|0,en&=67108863,w=Math.imul(ae,$e),c=Math.imul(ae,qe),c=c+Math.imul(_e,$e)|0,T=Math.imul(_e,qe),w=w+Math.imul(we,tt)|0,c=c+Math.imul(we,nt)|0,c=c+Math.imul(Fe,tt)|0,T=T+Math.imul(Fe,nt)|0,w=w+Math.imul(De,bt)|0,c=c+Math.imul(De,re)|0,c=c+Math.imul(We,bt)|0,T=T+Math.imul(We,re)|0,w=w+Math.imul(le,Ze)|0,c=c+Math.imul(le,Ve)|0,c=c+Math.imul(Ee,Ze)|0,T=T+Math.imul(Ee,Ve)|0,w=w+Math.imul(he,mt)|0,c=c+Math.imul(he,yt)|0,c=c+Math.imul(Ie,mt)|0,T=T+Math.imul(Ie,yt)|0,w=w+Math.imul(oe,_t)|0,c=c+Math.imul(oe,xt)|0,c=c+Math.imul(se,_t)|0,T=T+Math.imul(se,xt)|0,w=w+Math.imul(Ae,wt)|0,c=c+Math.imul(Ae,St)|0,c=c+Math.imul(Be,wt)|0,T=T+Math.imul(Be,St)|0;var Kr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(ae,tt),c=Math.imul(ae,nt),c=c+Math.imul(_e,tt)|0,T=Math.imul(_e,nt),w=w+Math.imul(we,bt)|0,c=c+Math.imul(we,re)|0,c=c+Math.imul(Fe,bt)|0,T=T+Math.imul(Fe,re)|0,w=w+Math.imul(De,Ze)|0,c=c+Math.imul(De,Ve)|0,c=c+Math.imul(We,Ze)|0,T=T+Math.imul(We,Ve)|0,w=w+Math.imul(le,mt)|0,c=c+Math.imul(le,yt)|0,c=c+Math.imul(Ee,mt)|0,T=T+Math.imul(Ee,yt)|0,w=w+Math.imul(he,_t)|0,c=c+Math.imul(he,xt)|0,c=c+Math.imul(Ie,_t)|0,T=T+Math.imul(Ie,xt)|0,w=w+Math.imul(oe,wt)|0,c=c+Math.imul(oe,St)|0,c=c+Math.imul(se,wt)|0,T=T+Math.imul(se,St)|0;var Mn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,w=Math.imul(ae,bt),c=Math.imul(ae,re),c=c+Math.imul(_e,bt)|0,T=Math.imul(_e,re),w=w+Math.imul(we,Ze)|0,c=c+Math.imul(we,Ve)|0,c=c+Math.imul(Fe,Ze)|0,T=T+Math.imul(Fe,Ve)|0,w=w+Math.imul(De,mt)|0,c=c+Math.imul(De,yt)|0,c=c+Math.imul(We,mt)|0,T=T+Math.imul(We,yt)|0,w=w+Math.imul(le,_t)|0,c=c+Math.imul(le,xt)|0,c=c+Math.imul(Ee,_t)|0,T=T+Math.imul(Ee,xt)|0,w=w+Math.imul(he,wt)|0,c=c+Math.imul(he,St)|0,c=c+Math.imul(Ie,wt)|0,T=T+Math.imul(Ie,St)|0;var ln=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ln>>>26)|0,ln&=67108863,w=Math.imul(ae,Ze),c=Math.imul(ae,Ve),c=c+Math.imul(_e,Ze)|0,T=Math.imul(_e,Ve),w=w+Math.imul(we,mt)|0,c=c+Math.imul(we,yt)|0,c=c+Math.imul(Fe,mt)|0,T=T+Math.imul(Fe,yt)|0,w=w+Math.imul(De,_t)|0,c=c+Math.imul(De,xt)|0,c=c+Math.imul(We,_t)|0,T=T+Math.imul(We,xt)|0,w=w+Math.imul(le,wt)|0,c=c+Math.imul(le,St)|0,c=c+Math.imul(Ee,wt)|0,T=T+Math.imul(Ee,St)|0;var pn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(ae,mt),c=Math.imul(ae,yt),c=c+Math.imul(_e,mt)|0,T=Math.imul(_e,yt),w=w+Math.imul(we,_t)|0,c=c+Math.imul(we,xt)|0,c=c+Math.imul(Fe,_t)|0,T=T+Math.imul(Fe,xt)|0,w=w+Math.imul(De,wt)|0,c=c+Math.imul(De,St)|0,c=c+Math.imul(We,wt)|0,T=T+Math.imul(We,St)|0;var yn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(yn>>>26)|0,yn&=67108863,w=Math.imul(ae,_t),c=Math.imul(ae,xt),c=c+Math.imul(_e,_t)|0,T=Math.imul(_e,xt),w=w+Math.imul(we,wt)|0,c=c+Math.imul(we,St)|0,c=c+Math.imul(Fe,wt)|0,T=T+Math.imul(Fe,St)|0;var un=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(un>>>26)|0,un&=67108863,w=Math.imul(ae,wt),c=Math.imul(ae,St),c=c+Math.imul(_e,wt)|0,T=Math.imul(_e,St);var tn=(C+w|0)+((c&8191)<<13)|0;if(C=(T+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,k[0]=sn,k[1]=ir,k[2]=nr,k[3]=Lr,k[4]=Tr,k[5]=wn,k[6]=En,k[7]=Tn,k[8]=kn,k[9]=An,k[10]=Or,k[11]=en,k[12]=Kr,k[13]=Mn,k[14]=ln,k[15]=pn,k[16]=yn,k[17]=un,k[18]=tn,C!==0)k[19]=C,x.length++;return x};if(!Math.imul)N=O;function P(f,p,x){x.negative=p.negative^f.negative,x.length=f.length+p.length;var h=0,S=0;for(var k=0;k<x.length-1;k++){var C=S;S=0;var w=h&67108863,c=Math.min(k,p.length-1);for(var T=Math.max(0,k-f.length+1);T<=c;T++){var z=k-T,R=f.words[z]|0,q=p.words[T]|0,Q=R*q,ie=Q&67108863;C=C+(Q/67108864|0)|0,ie=ie+w|0,w=ie&67108863,C=C+(ie>>>26)|0,S+=C>>>26,C&=67108863}x.words[k]=w,h=C,C=S}if(h!==0)x.words[k]=h;else x.length--;return x.strip()}function j(f,p,x){var h=new Z;return h.mulp(f,p,x)}s.prototype.mulTo=function(f,p){var x,h=this.length+f.length;if(this.length===10&&f.length===10)x=N(this,f,p);else if(h<63)x=O(this,f,p);else if(h<1024)x=P(this,f,p);else x=j(this,f,p);return x};function Z(f,p){this.x=f,this.y=p}Z.prototype.makeRBT=function(f){var p=Array(f),x=s.prototype._countBits(f)-1;for(var h=0;h<f;h++)p[h]=this.revBin(h,x,f);return p},Z.prototype.revBin=function(f,p,x){if(f===0||f===x-1)return f;var h=0;for(var S=0;S<p;S++)h|=(f&1)<<p-S-1,f>>=1;return h},Z.prototype.permute=function(f,p,x,h,S,k){for(var C=0;C<k;C++)h[C]=p[f[C]],S[C]=x[f[C]]},Z.prototype.transform=function(f,p,x,h,S,k){this.permute(k,f,p,x,h,S);for(var C=1;C<S;C<<=1){var w=C<<1,c=Math.cos(2*Math.PI/w),T=Math.sin(2*Math.PI/w);for(var z=0;z<S;z+=w){var R=c,q=T;for(var Q=0;Q<C;Q++){var ie=x[z+Q],me=h[z+Q],Je=x[z+Q+C],ke=h[z+Q+C],fe=R*Je-q*ke;if(ke=R*ke+q*Je,Je=fe,x[z+Q]=ie+Je,h[z+Q]=me+ke,x[z+Q+C]=ie-Je,h[z+Q+C]=me-ke,Q!==w)fe=c*R-T*q,q=c*q+T*R,R=fe}}}},Z.prototype.guessLen13b=function(f,p){var x=Math.max(p,f)|1,h=x&1,S=0;for(x=x/2|0;x;x=x>>>1)S++;return 1<<S+1+h},Z.prototype.conjugate=function(f,p,x){if(x<=1)return;for(var h=0;h<x/2;h++){var S=f[h];f[h]=f[x-h-1],f[x-h-1]=S,S=p[h],p[h]=-p[x-h-1],p[x-h-1]=-S}},Z.prototype.normalize13b=function(f,p){var x=0;for(var h=0;h<p/2;h++){var S=Math.round(f[2*h+1]/p)*8192+Math.round(f[2*h]/p)+x;if(f[h]=S&67108863,S<67108864)x=0;else x=S/67108864|0}return f},Z.prototype.convert13b=function(f,p,x,h){var S=0;for(var k=0;k<p;k++)S=S+(f[k]|0),x[2*k]=S&8191,S=S>>>13,x[2*k+1]=S&8191,S=S>>>13;for(k=2*p;k<h;++k)x[k]=0;n(S===0),n((S&-8192)===0)},Z.prototype.stub=function(f){var p=Array(f);for(var x=0;x<f;x++)p[x]=0;return p},Z.prototype.mulp=function(f,p,x){var h=2*this.guessLen13b(f.length,p.length),S=this.makeRBT(h),k=this.stub(h),C=Array(h),w=Array(h),c=Array(h),T=Array(h),z=Array(h),R=Array(h),q=x.words;q.length=h,this.convert13b(f.words,f.length,C,h),this.convert13b(p.words,p.length,T,h),this.transform(C,k,w,c,h,S),this.transform(T,k,z,R,h,S);for(var Q=0;Q<h;Q++){var ie=w[Q]*z[Q]-c[Q]*R[Q];c[Q]=w[Q]*R[Q]+c[Q]*z[Q],w[Q]=ie}return this.conjugate(w,c,h),this.transform(w,c,q,k,h,S),this.conjugate(q,k,h),this.normalize13b(q,h),x.negative=f.negative^p.negative,x.length=f.length+p.length,x.strip()},s.prototype.mul=function(f){var p=new s(null);return p.words=Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=Array(this.length+f.length),j(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){n(typeof f==="number"),n(f<67108864);var p=0;for(var x=0;x<this.length;x++){var h=(this.words[x]|0)*f,S=(h&67108863)+(p&67108863);p>>=26,p+=h/67108864|0,p+=S>>>26,this.words[x]=S&67108863}if(p!==0)this.words[x]=p,this.length++;return this.length=f===0?1:this.length,this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=I(f);if(p.length===0)return new s(1);var x=this;for(var h=0;h<p.length;h++,x=x.sqr())if(p[h]!==0)break;if(++h<p.length)for(var S=x.sqr();h<p.length;h++,S=S.sqr()){if(p[h]===0)continue;x=x.mul(S)}return x},s.prototype.iushln=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=67108863>>>26-p<<26-p,S;if(p!==0){var k=0;for(S=0;S<this.length;S++){var C=this.words[S]&h,w=(this.words[S]|0)-C<<p;this.words[S]=w|k,k=C>>>26-p}if(k)this.words[S]=k,this.length++}if(x!==0){for(S=this.length-1;S>=0;S--)this.words[S+x]=this.words[S];for(S=0;S<x;S++)this.words[S]=0;this.length+=x}return this.strip()},s.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},s.prototype.iushrn=function(f,p,x){n(typeof f==="number"&&f>=0);var h;if(p)h=(p-p%26)/26;else h=0;var S=f%26,k=Math.min((f-S)/26,this.length),C=67108863^67108863>>>S<<S,w=x;if(h-=k,h=Math.max(0,h),w){for(var c=0;c<k;c++)w.words[c]=this.words[c];w.length=k}if(k===0);else if(this.length>k){this.length-=k;for(c=0;c<this.length;c++)this.words[c]=this.words[c+k]}else this.words[0]=0,this.length=1;var T=0;for(c=this.length-1;c>=0&&(T!==0||c>=h);c--){var z=this.words[c]|0;this.words[c]=T<<26-S|z>>>S,T=z&C}if(w&&T!==0)w.words[w.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},s.prototype.ishrn=function(f,p,x){return n(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return!1;var S=this.words[x];return!!(S&h)},s.prototype.imaskn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0)x++;if(this.length=Math.min(x,this.length),p!==0){var h=67108863^67108863>>>p<<p;this.words[this.length-1]&=h}return this.strip()},s.prototype.maskn=function(f){return this.clone().imaskn(f)},s.prototype.iaddn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.isubn(-f);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<f)return this.words[0]=f-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(f),this.negative=1,this}return this._iaddn(f)},s.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)if(this.words[p]-=67108864,p===this.length-1)this.words[p+1]=1;else this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(f){return this.clone().iaddn(f)},s.prototype.subn=function(f){return this.clone().isubn(f)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(f,p,x){var h=f.length+x,S;this._expand(h);var k,C=0;for(S=0;S<f.length;S++){k=(this.words[S+x]|0)+C;var w=(f.words[S]|0)*p;k-=w&67108863,C=(k>>26)-(w/67108864|0),this.words[S+x]=k&67108863}for(;S<this.length-x;S++)k=(this.words[S+x]|0)+C,C=k>>26,this.words[S+x]=k&67108863;if(C===0)return this.strip();n(C===-1),C=0;for(S=0;S<this.length;S++)k=-(this.words[S]|0)+C,C=k>>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,h=this.clone(),S=f,k=S.words[S.length-1]|0,C=this._countBits(k);if(x=26-C,x!==0)S=S.ushln(x),h.iushln(x),k=S.words[S.length-1]|0;var w=h.length-S.length,c;if(p!=="mod"){c=new s(null),c.length=w+1,c.words=Array(c.length);for(var T=0;T<c.length;T++)c.words[T]=0}var z=h.clone()._ishlnsubmul(S,1,w);if(z.negative===0){if(h=z,c)c.words[w]=1}for(var R=w-1;R>=0;R--){var q=(h.words[S.length+R]|0)*67108864+(h.words[S.length+R-1]|0);q=Math.min(q/k|0,67108863),h._ishlnsubmul(S,q,R);while(h.negative!==0)if(q--,h.negative=0,h._ishlnsubmul(S,1,R),!h.isZero())h.negative^=1;if(c)c.words[R]=q}if(c)c.strip();if(h.strip(),p!=="div"&&x!==0)h.iushrn(x);return{div:c||null,mod:h}},s.prototype.divmod=function(f,p,x){if(n(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var h,S,k;if(this.negative!==0&&f.negative===0){if(k=this.neg().divmod(f,p),p!=="mod")h=k.div.neg();if(p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.iadd(f)}return{div:h,mod:S}}if(this.negative===0&&f.negative!==0){if(k=this.divmod(f.neg(),p),p!=="mod")h=k.div.neg();return{div:h,mod:k.mod}}if((this.negative&f.negative)!==0){if(k=this.neg().divmod(f.neg(),p),p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.isub(f)}return{div:k.div,mod:S}}if(f.length>this.length||this.cmp(f)<0)return{div:new s(0),mod:this};if(f.length===1){if(p==="div")return{div:this.divn(f.words[0]),mod:null};if(p==="mod")return{div:null,mod:new s(this.modn(f.words[0]))};return{div:this.divn(f.words[0]),mod:new s(this.modn(f.words[0]))}}return this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,h=f.ushrn(1),S=f.andln(1),k=x.cmp(h);if(k<0||S===1&&k===0)return p.div;return p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(f){n(f<=67108863);var p=67108864%f,x=0;for(var h=this.length-1;h>=0;h--)x=(p*x+(this.words[h]|0))%f;return x},s.prototype.idivn=function(f){n(f<=67108863);var p=0;for(var x=this.length-1;x>=0;x--){var h=(this.words[x]|0)+p*67108864;this.words[x]=h/f|0,p=h%f}return this.strip()},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=new s(0),C=new s(1),w=0;while(p.isEven()&&x.isEven())p.iushrn(1),x.iushrn(1),++w;var c=x.clone(),T=p.clone();while(!p.isZero()){for(var z=0,R=1;(p.words[0]&R)===0&&z<26;++z,R<<=1);if(z>0){p.iushrn(z);while(z-- >0){if(h.isOdd()||S.isOdd())h.iadd(c),S.isub(T);h.iushrn(1),S.iushrn(1)}}for(var q=0,Q=1;(x.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0){x.iushrn(q);while(q-- >0){if(k.isOdd()||C.isOdd())k.iadd(c),C.isub(T);k.iushrn(1),C.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(k),S.isub(C);else x.isub(p),k.isub(h),C.isub(S)}return{a:k,b:C,gcd:x.iushln(w)}},s.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=x.clone();while(p.cmpn(1)>0&&x.cmpn(1)>0){for(var C=0,w=1;(p.words[0]&w)===0&&C<26;++C,w<<=1);if(C>0){p.iushrn(C);while(C-- >0){if(h.isOdd())h.iadd(k);h.iushrn(1)}}for(var c=0,T=1;(x.words[0]&T)===0&&c<26;++c,T<<=1);if(c>0){x.iushrn(c);while(c-- >0){if(S.isOdd())S.iadd(k);S.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(S);else x.isub(p),S.isub(h)}var z;if(p.cmpn(1)===0)z=h;else z=S;if(z.cmpn(0)<0)z.iadd(f);return z},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var h=0;p.isEven()&&x.isEven();h++)p.iushrn(1),x.iushrn(1);do{while(p.isEven())p.iushrn(1);while(x.isEven())x.iushrn(1);var S=p.cmp(x);if(S<0){var k=p;p=x,x=k}else if(S===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(h)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){n(typeof f==="number");var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return this._expand(x+1),this.words[x]|=h,this;var S=h;for(var k=x;S!==0&&k<this.length;k++){var C=this.words[k]|0;C+=S,S=C>>>26,C&=67108863,this.words[k]=C}if(S!==0)this.words[k]=S,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var x;if(this.length>1)x=1;else{if(p)f=-f;n(f<=67108863,"Number is too big");var h=this.words[0]|0;x=h===f?0:h<f?-1:1}if(this.negative!==0)return-x|0;return x},s.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);if(this.negative!==0)return-p|0;return p},s.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;var p=0;for(var x=this.length-1;x>=0;x--){var h=this.words[x]|0,S=f.words[x]|0;if(h===S)continue;if(h<S)p=-1;else if(h>S)p=1;break}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new Y(f)},s.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var V={k256:null,p224:null,p192:null,p25519:null};function W(f,p){this.name=f,this.p=new s(p,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}W.prototype._tmp=function(){var f=new s(null);return f.words=Array(Math.ceil(this.n/13)),f},W.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var h=x<this.n?-1:p.ucmp(this.p);if(h===0)p.words[0]=0,p.length=1;else if(h>0)p.isub(this.p);else if(p.strip!==void 0)p.strip();else p._strip();return p},W.prototype.split=function(f,p){f.iushrn(this.n,0,p)},W.prototype.imulK=function(f){return f.imul(this.k)};function J(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(J,W),J.prototype.split=function(f,p){var x=4194303,h=Math.min(f.length,9);for(var S=0;S<h;S++)p.words[S]=f.words[S];if(p.length=h,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];p.words[p.length++]=k&x;for(S=10;S<f.length;S++){var C=f.words[S]|0;f.words[S-10]=(C&x)<<4|k>>>22,k=C}if(k>>>=22,f.words[S-10]=k,k===0&&f.length>10)f.length-=10;else f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;var p=0;for(var x=0;x<f.length;x++){var h=f.words[x]|0;p+=h*977,f.words[x]=p&67108863,p=h*64+(p/67108864|0)}if(f.words[f.length-1]===0){if(f.length--,f.words[f.length-1]===0)f.length--}return f};function ve(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(ve,W);function ce(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(ce,W);function Me(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(Me,W),Me.prototype.imulK=function(f){var p=0;for(var x=0;x<f.length;x++){var h=(f.words[x]|0)*19+p,S=h&67108863;h>>>=26,f.words[x]=S,p=h}if(p!==0)f.words[f.length++]=p;return f},s._prime=function(f){if(V[f])return V[f];var p;if(f==="k256")p=new J;else if(f==="p224")p=new ve;else if(f==="p192")p=new ce;else if(f==="p25519")p=new Me;else throw Error("Unknown prime "+f);return V[f]=p,p};function Y(f){if(typeof f==="string"){var p=s._prime(f);this.m=p.p,this.prime=p}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}Y.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},Y.prototype.imod=function(f){if(this.prime)return this.prime.ireduce(f)._forceRed(this);return f.umod(this.m)._forceRed(this)},Y.prototype.neg=function(f){if(f.isZero())return f.clone();return this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x._forceRed(this)},Y.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x},Y.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x._forceRed(this)},Y.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x},Y.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},Y.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},Y.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}var h=this.m.subn(1),S=0;while(!h.isZero()&&h.andln(1)===0)S++,h.iushrn(1);n(!h.isZero());var k=new s(1).toRed(this),C=k.redNeg(),w=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new s(2*c*c).toRed(this);while(this.pow(c,w).cmp(C)!==0)c.redIAdd(C);var T=this.pow(c,h),z=this.pow(f,h.addn(1).iushrn(1)),R=this.pow(f,h),q=S;while(R.cmp(k)!==0){var Q=R;for(var ie=0;Q.cmp(k)!==0;ie++)Q=Q.redSqr();n(ie<q);var me=this.pow(T,new s(1).iushln(q-ie-1));z=z.redMul(me),T=me.redSqr(),R=R.redMul(T),q=ie}return z},Y.prototype.invm=function(f){var p=f._invmp(this.m);if(p.negative!==0)return p.negative=0,this.imod(p).redNeg();else return this.imod(p)},Y.prototype.pow=function(f,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var x=4,h=Array(1<<x);h[0]=new s(1).toRed(this),h[1]=f;for(var S=2;S<h.length;S++)h[S]=this.mul(h[S-1],f);var k=h[0],C=0,w=0,c=p.bitLength()%26;if(c===0)c=26;for(S=p.length-1;S>=0;S--){var T=p.words[S];for(var z=c-1;z>=0;z--){var R=T>>z&1;if(k!==h[0])k=this.sqr(k);if(R===0&&C===0){w=0;continue}if(C<<=1,C|=R,w++,w!==x&&(S!==0||z!==0))continue;k=this.mul(k,h[C]),w=0,C=0}c=26}return k},Y.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},Y.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new Te(f)};function Te(f){if(Y.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(Te,Y),Te.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Te.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},Te.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof t>"u"||t,e)}),e1e=ct((e,t)=>{var r=Jge(),a=Qge();t.exports=function(d){return new l(d)};var n={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};n.p224=n.secp224r1,n.p256=n.secp256r1=n.prime256v1,n.p192=n.secp192r1=n.prime192v1,n.p384=n.secp384r1,n.p521=n.secp521r1;function l(d){if(this.curveType=n[d],!this.curveType)this.curveType={name:d};this.curve=new r.ec(this.curveType.name),this.keys=void 0}l.prototype.generateKeys=function(d,b){return this.keys=this.curve.genKeyPair(),this.getPublicKey(d,b)},l.prototype.computeSecret=function(d,b,y){if(b=b||"utf8",!Buffer.isBuffer(d))d=new Buffer(d,b);var v=this.curve.keyFromPublic(d).getPublic(),g=v.mul(this.keys.getPrivate()).getX();return s(g,y,this.curveType.byteLength)},l.prototype.getPublicKey=function(d,b){var y=this.keys.getPublic(b==="compressed",!0);if(b==="hybrid")if(y[y.length-1]%2)y[0]=7;else y[0]=6;return s(y,d)},l.prototype.getPrivateKey=function(d){return s(this.keys.getPrivate(),d)},l.prototype.setPublicKey=function(d,b){if(b=b||"utf8",!Buffer.isBuffer(d))d=new Buffer(d,b);return this.keys._importPublic(d),this},l.prototype.setPrivateKey=function(d,b){if(b=b||"utf8",!Buffer.isBuffer(d))d=new Buffer(d,b);var y=new a(d);return y=y.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(y),this};function s(d,b,y){if(!Array.isArray(d))d=d.toArray();var v=new Buffer(d);if(y&&v.length<y){var g=new Buffer(y-v.length);g.fill(0),v=Buffer.concat([g,v])}if(!b)return v;else return v.toString(b)}}),t1e=ct((e,t)=>{var r=(eo(),Cr(Lo)).createECDH;t.exports=r||e1e()}),r1e=ct((e,t)=>{(function(r,a){function n(f,p){if(!f)throw Error(p||"Assertion failed")}function l(f,p){f.super_=p;var x=function(){};x.prototype=p.prototype,f.prototype=new x,f.prototype.constructor=f}function s(f,p,x){if(s.isBN(f))return f;if(this.negative=0,this.words=null,this.length=0,this.red=null,f!==null){if(p==="le"||p==="be")x=p,p=10;this._init(f||0,p||10,x||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(f){}s.isBN=function(f){if(f instanceof s)return!0;return f!==null&&typeof f==="object"&&f.constructor.wordSize===s.wordSize&&Array.isArray(f.words)},s.max=function(f,p){if(f.cmp(p)>0)return f;return p},s.min=function(f,p){if(f.cmp(p)<0)return f;return p},s.prototype._init=function(f,p,x){if(typeof f==="number")return this._initNumber(f,p,x);if(typeof f==="object")return this._initArray(f,p,x);if(p==="hex")p=16;n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var h=0;if(f[0]==="-")h++,this.negative=1;if(h<f.length){if(p===16)this._parseHex(f,h,x);else if(this._parseBase(f,p,h),x==="le")this._initArray(this.toArray(),p,x)}},s.prototype._initNumber=function(f,p,x){if(f<0)this.negative=1,f=-f;if(f<67108864)this.words=[f&67108863],this.length=1;else if(f<4503599627370496)this.words=[f&67108863,f/67108864&67108863],this.length=2;else n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3;if(x!=="le")return;this._initArray(this.toArray(),p,x)},s.prototype._initArray=function(f,p,x){if(n(typeof f.length==="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S,k,C=0;if(x==="be"){for(h=f.length-1,S=0;h>=0;h-=3)if(k=f[h]|f[h-1]<<8|f[h-2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}else if(x==="le"){for(h=0,S=0;h<f.length;h+=3)if(k=f[h]|f[h+1]<<8|f[h+2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}return this.strip()};function b(f,p){var x=f.charCodeAt(p);if(x>=65&&x<=70)return x-55;else if(x>=97&&x<=102)return x-87;else return x-48&15}function y(f,p,x){var h=b(f,x);if(x-1>=p)h|=b(f,x-1)<<4;return h}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S=0,k=0,C;if(x==="be")for(h=f.length-1;h>=p;h-=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8;else{var w=f.length-p;for(h=w%2===0?p+1:p;h<f.length;h+=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8}this.strip()};function v(f,p,x,h){var S=0,k=Math.min(f.length,x);for(var C=p;C<k;C++){var w=f.charCodeAt(C)-48;if(S*=h,w>=49)S+=w-49+10;else if(w>=17)S+=w-17+10;else S+=w}return S}s.prototype._parseBase=function(f,p,x){this.words=[0],this.length=1;for(var h=0,S=1;S<=67108863;S*=p)h++;h--,S=S/p|0;var k=f.length-x,C=k%h,w=Math.min(k,k-C)+x,c=0;for(var T=x;T<w;T+=h)if(c=v(f,T,T+h,p),this.imuln(S),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(C!==0){var z=1;c=v(f,T,f.length,p);for(T=0;T<C;T++)z*=p;if(this.imuln(z),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this.strip()},s.prototype.copy=function(f){f.words=Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red},s.prototype.clone=function(){var f=new s(null);return this.copy(f),f},s.prototype._expand=function(f){while(this.length<f)this.words[this.length++]=0;return this},s.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],_=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";var h=0,S=0;for(var k=0;k<this.length;k++){var C=this.words[k],w=((C<<h|S)&16777215).toString(16);if(S=C>>>24-h&16777215,h+=2,h>=26)h-=26,k--;if(S!==0||k!==this.length-1)x=g[6-w.length]+w+x;else x=w+x}if(S!==0)x=S.toString(16)+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}if(f===(f|0)&&f>=2&&f<=36){var c=_[f],T=A[f];x="";var z=this.clone();z.negative=0;while(!z.isZero()){var R=z.modn(T).toString(f);if(z=z.idivn(T),!z.isZero())x=g[c-R.length]+R+x;else x=R+x}if(this.isZero())x="0"+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];if(this.length===2)f+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)f+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(f,p){return n(typeof d<"u"),this.toArrayLike(d,f,p)},s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)},s.prototype.toArrayLike=function(f,p,x){var h=this.byteLength(),S=x||Math.max(1,h);n(h<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var k=p==="le",C=new f(S),w,c,T=this.clone();if(!k){for(c=0;c<S-h;c++)C[c]=0;for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[S-c-1]=w}else{for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[c]=w;for(;c<S;c++)C[c]=0}return C},Math.clz32)s.prototype._countBits=function(f){return 32-Math.clz32(f)};else s.prototype._countBits=function(f){var p=f,x=0;if(p>=4096)x+=13,p>>>=13;if(p>=64)x+=7,p>>>=7;if(p>=8)x+=4,p>>>=4;if(p>=2)x+=2,p>>>=2;return x+p};s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;if((p&8191)===0)x+=13,p>>>=13;if((p&127)===0)x+=7,p>>>=7;if((p&15)===0)x+=4,p>>>=4;if((p&3)===0)x+=2,p>>>=2;if((p&1)===0)x++;return x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(f){var p=Array(f.bitLength());for(var x=0;x<p.length;x++){var h=x/26|0,S=x%26;p[x]=(f.words[h]&1<<S)>>>S}return p}s.prototype.zeroBits=function(){if(this.isZero())return 0;var f=0;for(var p=0;p<this.length;p++){var x=this._zeroBits(this.words[p]);if(f+=x,x!==26)break}return f},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(f){if(this.negative!==0)return this.abs().inotn(f).iaddn(1);return this.clone()},s.prototype.fromTwos=function(f){if(this.testn(f-1))return this.notn(f).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(f){while(this.length<f.length)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this.strip()},s.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},s.prototype.or=function(f){if(this.length>f.length)return this.clone().ior(f);return f.clone().ior(this)},s.prototype.uor=function(f){if(this.length>f.length)return this.clone().iuor(f);return f.clone().iuor(this)},s.prototype.iuand=function(f){var p;if(this.length>f.length)p=f;else p=this;for(var x=0;x<p.length;x++)this.words[x]=this.words[x]&f.words[x];return this.length=p.length,this.strip()},s.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},s.prototype.and=function(f){if(this.length>f.length)return this.clone().iand(f);return f.clone().iand(this)},s.prototype.uand=function(f){if(this.length>f.length)return this.clone().iuand(f);return f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;if(this.length>f.length)p=this,x=f;else p=f,x=this;for(var h=0;h<x.length;h++)this.words[h]=p.words[h]^x.words[h];if(this!==p)for(;h<p.length;h++)this.words[h]=p.words[h];return this.length=p.length,this.strip()},s.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},s.prototype.xor=function(f){if(this.length>f.length)return this.clone().ixor(f);return f.clone().ixor(this)},s.prototype.uxor=function(f){if(this.length>f.length)return this.clone().iuxor(f);return f.clone().iuxor(this)},s.prototype.inotn=function(f){n(typeof f==="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;if(this._expand(p),x>0)p--;for(var h=0;h<p;h++)this.words[h]=~this.words[h]&67108863;if(x>0)this.words[h]=~this.words[h]&67108863>>26-x;return this.strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){n(typeof f==="number"&&f>=0);var x=f/26|0,h=f%26;if(this._expand(x+1),p)this.words[x]=this.words[x]|1<<h;else this.words[x]=this.words[x]&~(1<<h);return this.strip()},s.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();else if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var x,h;if(this.length>f.length)x=this,h=f;else x=f,h=this;var S=0;for(var k=0;k<h.length;k++)p=(x.words[k]|0)+(h.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;for(;S!==0&&k<x.length;k++)p=(x.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;if(this.length=x.length,S!==0)this.words[this.length]=S,this.length++;else if(x!==this)for(;k<x.length;k++)this.words[k]=x.words[k];return this},s.prototype.add=function(f){var p;if(f.negative!==0&&this.negative===0)return f.negative=0,p=this.sub(f),f.negative^=1,p;else if(f.negative===0&&this.negative!==0)return this.negative=0,p=f.sub(this),this.negative=1,p;if(this.length>f.length)return this.clone().iadd(f);return f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,S;if(x>0)h=this,S=f;else h=f,S=this;var k=0;for(var C=0;C<S.length;C++)p=(h.words[C]|0)-(S.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;for(;k!==0&&C<h.length;C++)p=(h.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;if(k===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];if(this.length=Math.max(this.length,C),h!==this)this.negative=1;return this.strip()},s.prototype.sub=function(f){return this.clone().isub(f)};function O(f,p,x){x.negative=p.negative^f.negative;var h=f.length+p.length|0;x.length=h,h=h-1|0;var S=f.words[0]|0,k=p.words[0]|0,C=S*k,w=C&67108863,c=C/67108864|0;x.words[0]=w;for(var T=1;T<h;T++){var z=c>>>26,R=c&67108863,q=Math.min(T,p.length-1);for(var Q=Math.max(0,T-f.length+1);Q<=q;Q++){var ie=T-Q|0;S=f.words[ie]|0,k=p.words[Q]|0,C=S*k+R,z+=C/67108864|0,R=C&67108863}x.words[T]=R|0,c=z|0}if(c!==0)x.words[T]=c|0;else x.length--;return x.strip()}var N=function(f,p,x){var h=f.words,S=p.words,k=x.words,C=0,w,c,T,z=h[0]|0,R=z&8191,q=z>>>13,Q=h[1]|0,ie=Q&8191,me=Q>>>13,Je=h[2]|0,ke=Je&8191,fe=Je>>>13,be=h[3]|0,Ae=be&8191,Be=be>>>13,vt=h[4]|0,oe=vt&8191,se=vt>>>13,Ke=h[5]|0,he=Ke&8191,Ie=Ke>>>13,Qe=h[6]|0,le=Qe&8191,Ee=Qe>>>13,gt=h[7]|0,De=gt&8191,We=gt>>>13,Ye=h[8]|0,we=Ye&8191,Fe=Ye>>>13,L=h[9]|0,ae=L&8191,_e=L>>>13,ot=S[0]|0,xe=ot&8191,K=ot>>>13,Ge=S[1]|0,F=Ge&8191,te=Ge>>>13,Pe=S[2]|0,pe=Pe&8191,de=Pe>>>13,at=S[3]|0,$e=at&8191,qe=at>>>13,ht=S[4]|0,tt=ht&8191,nt=ht>>>13,Er=S[5]|0,bt=Er&8191,re=Er>>>13,ye=S[6]|0,Ze=ye&8191,Ve=ye>>>13,Dt=S[7]|0,mt=Dt&8191,yt=Dt>>>13,Qr=S[8]|0,_t=Qr&8191,xt=Qr>>>13,zr=S[9]|0,wt=zr&8191,St=zr>>>13;x.negative=f.negative^p.negative,x.length=19,w=Math.imul(R,xe),c=Math.imul(R,K),c=c+Math.imul(q,xe)|0,T=Math.imul(q,K);var sn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(ie,xe),c=Math.imul(ie,K),c=c+Math.imul(me,xe)|0,T=Math.imul(me,K),w=w+Math.imul(R,F)|0,c=c+Math.imul(R,te)|0,c=c+Math.imul(q,F)|0,T=T+Math.imul(q,te)|0;var ir=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(ke,xe),c=Math.imul(ke,K),c=c+Math.imul(fe,xe)|0,T=Math.imul(fe,K),w=w+Math.imul(ie,F)|0,c=c+Math.imul(ie,te)|0,c=c+Math.imul(me,F)|0,T=T+Math.imul(me,te)|0,w=w+Math.imul(R,pe)|0,c=c+Math.imul(R,de)|0,c=c+Math.imul(q,pe)|0,T=T+Math.imul(q,de)|0;var nr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ae,xe),c=Math.imul(Ae,K),c=c+Math.imul(Be,xe)|0,T=Math.imul(Be,K),w=w+Math.imul(ke,F)|0,c=c+Math.imul(ke,te)|0,c=c+Math.imul(fe,F)|0,T=T+Math.imul(fe,te)|0,w=w+Math.imul(ie,pe)|0,c=c+Math.imul(ie,de)|0,c=c+Math.imul(me,pe)|0,T=T+Math.imul(me,de)|0,w=w+Math.imul(R,$e)|0,c=c+Math.imul(R,qe)|0,c=c+Math.imul(q,$e)|0,T=T+Math.imul(q,qe)|0;var Lr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,w=Math.imul(oe,xe),c=Math.imul(oe,K),c=c+Math.imul(se,xe)|0,T=Math.imul(se,K),w=w+Math.imul(Ae,F)|0,c=c+Math.imul(Ae,te)|0,c=c+Math.imul(Be,F)|0,T=T+Math.imul(Be,te)|0,w=w+Math.imul(ke,pe)|0,c=c+Math.imul(ke,de)|0,c=c+Math.imul(fe,pe)|0,T=T+Math.imul(fe,de)|0,w=w+Math.imul(ie,$e)|0,c=c+Math.imul(ie,qe)|0,c=c+Math.imul(me,$e)|0,T=T+Math.imul(me,qe)|0,w=w+Math.imul(R,tt)|0,c=c+Math.imul(R,nt)|0,c=c+Math.imul(q,tt)|0,T=T+Math.imul(q,nt)|0;var Tr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(he,xe),c=Math.imul(he,K),c=c+Math.imul(Ie,xe)|0,T=Math.imul(Ie,K),w=w+Math.imul(oe,F)|0,c=c+Math.imul(oe,te)|0,c=c+Math.imul(se,F)|0,T=T+Math.imul(se,te)|0,w=w+Math.imul(Ae,pe)|0,c=c+Math.imul(Ae,de)|0,c=c+Math.imul(Be,pe)|0,T=T+Math.imul(Be,de)|0,w=w+Math.imul(ke,$e)|0,c=c+Math.imul(ke,qe)|0,c=c+Math.imul(fe,$e)|0,T=T+Math.imul(fe,qe)|0,w=w+Math.imul(ie,tt)|0,c=c+Math.imul(ie,nt)|0,c=c+Math.imul(me,tt)|0,T=T+Math.imul(me,nt)|0,w=w+Math.imul(R,bt)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(q,bt)|0,T=T+Math.imul(q,re)|0;var wn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,w=Math.imul(le,xe),c=Math.imul(le,K),c=c+Math.imul(Ee,xe)|0,T=Math.imul(Ee,K),w=w+Math.imul(he,F)|0,c=c+Math.imul(he,te)|0,c=c+Math.imul(Ie,F)|0,T=T+Math.imul(Ie,te)|0,w=w+Math.imul(oe,pe)|0,c=c+Math.imul(oe,de)|0,c=c+Math.imul(se,pe)|0,T=T+Math.imul(se,de)|0,w=w+Math.imul(Ae,$e)|0,c=c+Math.imul(Ae,qe)|0,c=c+Math.imul(Be,$e)|0,T=T+Math.imul(Be,qe)|0,w=w+Math.imul(ke,tt)|0,c=c+Math.imul(ke,nt)|0,c=c+Math.imul(fe,tt)|0,T=T+Math.imul(fe,nt)|0,w=w+Math.imul(ie,bt)|0,c=c+Math.imul(ie,re)|0,c=c+Math.imul(me,bt)|0,T=T+Math.imul(me,re)|0,w=w+Math.imul(R,Ze)|0,c=c+Math.imul(R,Ve)|0,c=c+Math.imul(q,Ze)|0,T=T+Math.imul(q,Ve)|0;var En=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(En>>>26)|0,En&=67108863,w=Math.imul(De,xe),c=Math.imul(De,K),c=c+Math.imul(We,xe)|0,T=Math.imul(We,K),w=w+Math.imul(le,F)|0,c=c+Math.imul(le,te)|0,c=c+Math.imul(Ee,F)|0,T=T+Math.imul(Ee,te)|0,w=w+Math.imul(he,pe)|0,c=c+Math.imul(he,de)|0,c=c+Math.imul(Ie,pe)|0,T=T+Math.imul(Ie,de)|0,w=w+Math.imul(oe,$e)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(se,$e)|0,T=T+Math.imul(se,qe)|0,w=w+Math.imul(Ae,tt)|0,c=c+Math.imul(Ae,nt)|0,c=c+Math.imul(Be,tt)|0,T=T+Math.imul(Be,nt)|0,w=w+Math.imul(ke,bt)|0,c=c+Math.imul(ke,re)|0,c=c+Math.imul(fe,bt)|0,T=T+Math.imul(fe,re)|0,w=w+Math.imul(ie,Ze)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(me,Ze)|0,T=T+Math.imul(me,Ve)|0,w=w+Math.imul(R,mt)|0,c=c+Math.imul(R,yt)|0,c=c+Math.imul(q,mt)|0,T=T+Math.imul(q,yt)|0;var Tn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(we,xe),c=Math.imul(we,K),c=c+Math.imul(Fe,xe)|0,T=Math.imul(Fe,K),w=w+Math.imul(De,F)|0,c=c+Math.imul(De,te)|0,c=c+Math.imul(We,F)|0,T=T+Math.imul(We,te)|0,w=w+Math.imul(le,pe)|0,c=c+Math.imul(le,de)|0,c=c+Math.imul(Ee,pe)|0,T=T+Math.imul(Ee,de)|0,w=w+Math.imul(he,$e)|0,c=c+Math.imul(he,qe)|0,c=c+Math.imul(Ie,$e)|0,T=T+Math.imul(Ie,qe)|0,w=w+Math.imul(oe,tt)|0,c=c+Math.imul(oe,nt)|0,c=c+Math.imul(se,tt)|0,T=T+Math.imul(se,nt)|0,w=w+Math.imul(Ae,bt)|0,c=c+Math.imul(Ae,re)|0,c=c+Math.imul(Be,bt)|0,T=T+Math.imul(Be,re)|0,w=w+Math.imul(ke,Ze)|0,c=c+Math.imul(ke,Ve)|0,c=c+Math.imul(fe,Ze)|0,T=T+Math.imul(fe,Ve)|0,w=w+Math.imul(ie,mt)|0,c=c+Math.imul(ie,yt)|0,c=c+Math.imul(me,mt)|0,T=T+Math.imul(me,yt)|0,w=w+Math.imul(R,_t)|0,c=c+Math.imul(R,xt)|0,c=c+Math.imul(q,_t)|0,T=T+Math.imul(q,xt)|0;var kn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,w=Math.imul(ae,xe),c=Math.imul(ae,K),c=c+Math.imul(_e,xe)|0,T=Math.imul(_e,K),w=w+Math.imul(we,F)|0,c=c+Math.imul(we,te)|0,c=c+Math.imul(Fe,F)|0,T=T+Math.imul(Fe,te)|0,w=w+Math.imul(De,pe)|0,c=c+Math.imul(De,de)|0,c=c+Math.imul(We,pe)|0,T=T+Math.imul(We,de)|0,w=w+Math.imul(le,$e)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(Ee,$e)|0,T=T+Math.imul(Ee,qe)|0,w=w+Math.imul(he,tt)|0,c=c+Math.imul(he,nt)|0,c=c+Math.imul(Ie,tt)|0,T=T+Math.imul(Ie,nt)|0,w=w+Math.imul(oe,bt)|0,c=c+Math.imul(oe,re)|0,c=c+Math.imul(se,bt)|0,T=T+Math.imul(se,re)|0,w=w+Math.imul(Ae,Ze)|0,c=c+Math.imul(Ae,Ve)|0,c=c+Math.imul(Be,Ze)|0,T=T+Math.imul(Be,Ve)|0,w=w+Math.imul(ke,mt)|0,c=c+Math.imul(ke,yt)|0,c=c+Math.imul(fe,mt)|0,T=T+Math.imul(fe,yt)|0,w=w+Math.imul(ie,_t)|0,c=c+Math.imul(ie,xt)|0,c=c+Math.imul(me,_t)|0,T=T+Math.imul(me,xt)|0,w=w+Math.imul(R,wt)|0,c=c+Math.imul(R,St)|0,c=c+Math.imul(q,wt)|0,T=T+Math.imul(q,St)|0;var An=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(ae,F),c=Math.imul(ae,te),c=c+Math.imul(_e,F)|0,T=Math.imul(_e,te),w=w+Math.imul(we,pe)|0,c=c+Math.imul(we,de)|0,c=c+Math.imul(Fe,pe)|0,T=T+Math.imul(Fe,de)|0,w=w+Math.imul(De,$e)|0,c=c+Math.imul(De,qe)|0,c=c+Math.imul(We,$e)|0,T=T+Math.imul(We,qe)|0,w=w+Math.imul(le,tt)|0,c=c+Math.imul(le,nt)|0,c=c+Math.imul(Ee,tt)|0,T=T+Math.imul(Ee,nt)|0,w=w+Math.imul(he,bt)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Ie,bt)|0,T=T+Math.imul(Ie,re)|0,w=w+Math.imul(oe,Ze)|0,c=c+Math.imul(oe,Ve)|0,c=c+Math.imul(se,Ze)|0,T=T+Math.imul(se,Ve)|0,w=w+Math.imul(Ae,mt)|0,c=c+Math.imul(Ae,yt)|0,c=c+Math.imul(Be,mt)|0,T=T+Math.imul(Be,yt)|0,w=w+Math.imul(ke,_t)|0,c=c+Math.imul(ke,xt)|0,c=c+Math.imul(fe,_t)|0,T=T+Math.imul(fe,xt)|0,w=w+Math.imul(ie,wt)|0,c=c+Math.imul(ie,St)|0,c=c+Math.imul(me,wt)|0,T=T+Math.imul(me,St)|0;var Or=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Or>>>26)|0,Or&=67108863,w=Math.imul(ae,pe),c=Math.imul(ae,de),c=c+Math.imul(_e,pe)|0,T=Math.imul(_e,de),w=w+Math.imul(we,$e)|0,c=c+Math.imul(we,qe)|0,c=c+Math.imul(Fe,$e)|0,T=T+Math.imul(Fe,qe)|0,w=w+Math.imul(De,tt)|0,c=c+Math.imul(De,nt)|0,c=c+Math.imul(We,tt)|0,T=T+Math.imul(We,nt)|0,w=w+Math.imul(le,bt)|0,c=c+Math.imul(le,re)|0,c=c+Math.imul(Ee,bt)|0,T=T+Math.imul(Ee,re)|0,w=w+Math.imul(he,Ze)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(Ie,Ze)|0,T=T+Math.imul(Ie,Ve)|0,w=w+Math.imul(oe,mt)|0,c=c+Math.imul(oe,yt)|0,c=c+Math.imul(se,mt)|0,T=T+Math.imul(se,yt)|0,w=w+Math.imul(Ae,_t)|0,c=c+Math.imul(Ae,xt)|0,c=c+Math.imul(Be,_t)|0,T=T+Math.imul(Be,xt)|0,w=w+Math.imul(ke,wt)|0,c=c+Math.imul(ke,St)|0,c=c+Math.imul(fe,wt)|0,T=T+Math.imul(fe,St)|0;var en=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(en>>>26)|0,en&=67108863,w=Math.imul(ae,$e),c=Math.imul(ae,qe),c=c+Math.imul(_e,$e)|0,T=Math.imul(_e,qe),w=w+Math.imul(we,tt)|0,c=c+Math.imul(we,nt)|0,c=c+Math.imul(Fe,tt)|0,T=T+Math.imul(Fe,nt)|0,w=w+Math.imul(De,bt)|0,c=c+Math.imul(De,re)|0,c=c+Math.imul(We,bt)|0,T=T+Math.imul(We,re)|0,w=w+Math.imul(le,Ze)|0,c=c+Math.imul(le,Ve)|0,c=c+Math.imul(Ee,Ze)|0,T=T+Math.imul(Ee,Ve)|0,w=w+Math.imul(he,mt)|0,c=c+Math.imul(he,yt)|0,c=c+Math.imul(Ie,mt)|0,T=T+Math.imul(Ie,yt)|0,w=w+Math.imul(oe,_t)|0,c=c+Math.imul(oe,xt)|0,c=c+Math.imul(se,_t)|0,T=T+Math.imul(se,xt)|0,w=w+Math.imul(Ae,wt)|0,c=c+Math.imul(Ae,St)|0,c=c+Math.imul(Be,wt)|0,T=T+Math.imul(Be,St)|0;var Kr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(ae,tt),c=Math.imul(ae,nt),c=c+Math.imul(_e,tt)|0,T=Math.imul(_e,nt),w=w+Math.imul(we,bt)|0,c=c+Math.imul(we,re)|0,c=c+Math.imul(Fe,bt)|0,T=T+Math.imul(Fe,re)|0,w=w+Math.imul(De,Ze)|0,c=c+Math.imul(De,Ve)|0,c=c+Math.imul(We,Ze)|0,T=T+Math.imul(We,Ve)|0,w=w+Math.imul(le,mt)|0,c=c+Math.imul(le,yt)|0,c=c+Math.imul(Ee,mt)|0,T=T+Math.imul(Ee,yt)|0,w=w+Math.imul(he,_t)|0,c=c+Math.imul(he,xt)|0,c=c+Math.imul(Ie,_t)|0,T=T+Math.imul(Ie,xt)|0,w=w+Math.imul(oe,wt)|0,c=c+Math.imul(oe,St)|0,c=c+Math.imul(se,wt)|0,T=T+Math.imul(se,St)|0;var Mn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,w=Math.imul(ae,bt),c=Math.imul(ae,re),c=c+Math.imul(_e,bt)|0,T=Math.imul(_e,re),w=w+Math.imul(we,Ze)|0,c=c+Math.imul(we,Ve)|0,c=c+Math.imul(Fe,Ze)|0,T=T+Math.imul(Fe,Ve)|0,w=w+Math.imul(De,mt)|0,c=c+Math.imul(De,yt)|0,c=c+Math.imul(We,mt)|0,T=T+Math.imul(We,yt)|0,w=w+Math.imul(le,_t)|0,c=c+Math.imul(le,xt)|0,c=c+Math.imul(Ee,_t)|0,T=T+Math.imul(Ee,xt)|0,w=w+Math.imul(he,wt)|0,c=c+Math.imul(he,St)|0,c=c+Math.imul(Ie,wt)|0,T=T+Math.imul(Ie,St)|0;var ln=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ln>>>26)|0,ln&=67108863,w=Math.imul(ae,Ze),c=Math.imul(ae,Ve),c=c+Math.imul(_e,Ze)|0,T=Math.imul(_e,Ve),w=w+Math.imul(we,mt)|0,c=c+Math.imul(we,yt)|0,c=c+Math.imul(Fe,mt)|0,T=T+Math.imul(Fe,yt)|0,w=w+Math.imul(De,_t)|0,c=c+Math.imul(De,xt)|0,c=c+Math.imul(We,_t)|0,T=T+Math.imul(We,xt)|0,w=w+Math.imul(le,wt)|0,c=c+Math.imul(le,St)|0,c=c+Math.imul(Ee,wt)|0,T=T+Math.imul(Ee,St)|0;var pn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(ae,mt),c=Math.imul(ae,yt),c=c+Math.imul(_e,mt)|0,T=Math.imul(_e,yt),w=w+Math.imul(we,_t)|0,c=c+Math.imul(we,xt)|0,c=c+Math.imul(Fe,_t)|0,T=T+Math.imul(Fe,xt)|0,w=w+Math.imul(De,wt)|0,c=c+Math.imul(De,St)|0,c=c+Math.imul(We,wt)|0,T=T+Math.imul(We,St)|0;var yn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(yn>>>26)|0,yn&=67108863,w=Math.imul(ae,_t),c=Math.imul(ae,xt),c=c+Math.imul(_e,_t)|0,T=Math.imul(_e,xt),w=w+Math.imul(we,wt)|0,c=c+Math.imul(we,St)|0,c=c+Math.imul(Fe,wt)|0,T=T+Math.imul(Fe,St)|0;var un=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(un>>>26)|0,un&=67108863,w=Math.imul(ae,wt),c=Math.imul(ae,St),c=c+Math.imul(_e,wt)|0,T=Math.imul(_e,St);var tn=(C+w|0)+((c&8191)<<13)|0;if(C=(T+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,k[0]=sn,k[1]=ir,k[2]=nr,k[3]=Lr,k[4]=Tr,k[5]=wn,k[6]=En,k[7]=Tn,k[8]=kn,k[9]=An,k[10]=Or,k[11]=en,k[12]=Kr,k[13]=Mn,k[14]=ln,k[15]=pn,k[16]=yn,k[17]=un,k[18]=tn,C!==0)k[19]=C,x.length++;return x};if(!Math.imul)N=O;function P(f,p,x){x.negative=p.negative^f.negative,x.length=f.length+p.length;var h=0,S=0;for(var k=0;k<x.length-1;k++){var C=S;S=0;var w=h&67108863,c=Math.min(k,p.length-1);for(var T=Math.max(0,k-f.length+1);T<=c;T++){var z=k-T,R=f.words[z]|0,q=p.words[T]|0,Q=R*q,ie=Q&67108863;C=C+(Q/67108864|0)|0,ie=ie+w|0,w=ie&67108863,C=C+(ie>>>26)|0,S+=C>>>26,C&=67108863}x.words[k]=w,h=C,C=S}if(h!==0)x.words[k]=h;else x.length--;return x.strip()}function j(f,p,x){var h=new Z;return h.mulp(f,p,x)}s.prototype.mulTo=function(f,p){var x,h=this.length+f.length;if(this.length===10&&f.length===10)x=N(this,f,p);else if(h<63)x=O(this,f,p);else if(h<1024)x=P(this,f,p);else x=j(this,f,p);return x};function Z(f,p){this.x=f,this.y=p}Z.prototype.makeRBT=function(f){var p=Array(f),x=s.prototype._countBits(f)-1;for(var h=0;h<f;h++)p[h]=this.revBin(h,x,f);return p},Z.prototype.revBin=function(f,p,x){if(f===0||f===x-1)return f;var h=0;for(var S=0;S<p;S++)h|=(f&1)<<p-S-1,f>>=1;return h},Z.prototype.permute=function(f,p,x,h,S,k){for(var C=0;C<k;C++)h[C]=p[f[C]],S[C]=x[f[C]]},Z.prototype.transform=function(f,p,x,h,S,k){this.permute(k,f,p,x,h,S);for(var C=1;C<S;C<<=1){var w=C<<1,c=Math.cos(2*Math.PI/w),T=Math.sin(2*Math.PI/w);for(var z=0;z<S;z+=w){var R=c,q=T;for(var Q=0;Q<C;Q++){var ie=x[z+Q],me=h[z+Q],Je=x[z+Q+C],ke=h[z+Q+C],fe=R*Je-q*ke;if(ke=R*ke+q*Je,Je=fe,x[z+Q]=ie+Je,h[z+Q]=me+ke,x[z+Q+C]=ie-Je,h[z+Q+C]=me-ke,Q!==w)fe=c*R-T*q,q=c*q+T*R,R=fe}}}},Z.prototype.guessLen13b=function(f,p){var x=Math.max(p,f)|1,h=x&1,S=0;for(x=x/2|0;x;x=x>>>1)S++;return 1<<S+1+h},Z.prototype.conjugate=function(f,p,x){if(x<=1)return;for(var h=0;h<x/2;h++){var S=f[h];f[h]=f[x-h-1],f[x-h-1]=S,S=p[h],p[h]=-p[x-h-1],p[x-h-1]=-S}},Z.prototype.normalize13b=function(f,p){var x=0;for(var h=0;h<p/2;h++){var S=Math.round(f[2*h+1]/p)*8192+Math.round(f[2*h]/p)+x;if(f[h]=S&67108863,S<67108864)x=0;else x=S/67108864|0}return f},Z.prototype.convert13b=function(f,p,x,h){var S=0;for(var k=0;k<p;k++)S=S+(f[k]|0),x[2*k]=S&8191,S=S>>>13,x[2*k+1]=S&8191,S=S>>>13;for(k=2*p;k<h;++k)x[k]=0;n(S===0),n((S&-8192)===0)},Z.prototype.stub=function(f){var p=Array(f);for(var x=0;x<f;x++)p[x]=0;return p},Z.prototype.mulp=function(f,p,x){var h=2*this.guessLen13b(f.length,p.length),S=this.makeRBT(h),k=this.stub(h),C=Array(h),w=Array(h),c=Array(h),T=Array(h),z=Array(h),R=Array(h),q=x.words;q.length=h,this.convert13b(f.words,f.length,C,h),this.convert13b(p.words,p.length,T,h),this.transform(C,k,w,c,h,S),this.transform(T,k,z,R,h,S);for(var Q=0;Q<h;Q++){var ie=w[Q]*z[Q]-c[Q]*R[Q];c[Q]=w[Q]*R[Q]+c[Q]*z[Q],w[Q]=ie}return this.conjugate(w,c,h),this.transform(w,c,q,k,h,S),this.conjugate(q,k,h),this.normalize13b(q,h),x.negative=f.negative^p.negative,x.length=f.length+p.length,x.strip()},s.prototype.mul=function(f){var p=new s(null);return p.words=Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=Array(this.length+f.length),j(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){n(typeof f==="number"),n(f<67108864);var p=0;for(var x=0;x<this.length;x++){var h=(this.words[x]|0)*f,S=(h&67108863)+(p&67108863);p>>=26,p+=h/67108864|0,p+=S>>>26,this.words[x]=S&67108863}if(p!==0)this.words[x]=p,this.length++;return this.length=f===0?1:this.length,this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=I(f);if(p.length===0)return new s(1);var x=this;for(var h=0;h<p.length;h++,x=x.sqr())if(p[h]!==0)break;if(++h<p.length)for(var S=x.sqr();h<p.length;h++,S=S.sqr()){if(p[h]===0)continue;x=x.mul(S)}return x},s.prototype.iushln=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=67108863>>>26-p<<26-p,S;if(p!==0){var k=0;for(S=0;S<this.length;S++){var C=this.words[S]&h,w=(this.words[S]|0)-C<<p;this.words[S]=w|k,k=C>>>26-p}if(k)this.words[S]=k,this.length++}if(x!==0){for(S=this.length-1;S>=0;S--)this.words[S+x]=this.words[S];for(S=0;S<x;S++)this.words[S]=0;this.length+=x}return this.strip()},s.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},s.prototype.iushrn=function(f,p,x){n(typeof f==="number"&&f>=0);var h;if(p)h=(p-p%26)/26;else h=0;var S=f%26,k=Math.min((f-S)/26,this.length),C=67108863^67108863>>>S<<S,w=x;if(h-=k,h=Math.max(0,h),w){for(var c=0;c<k;c++)w.words[c]=this.words[c];w.length=k}if(k===0);else if(this.length>k){this.length-=k;for(c=0;c<this.length;c++)this.words[c]=this.words[c+k]}else this.words[0]=0,this.length=1;var T=0;for(c=this.length-1;c>=0&&(T!==0||c>=h);c--){var z=this.words[c]|0;this.words[c]=T<<26-S|z>>>S,T=z&C}if(w&&T!==0)w.words[w.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},s.prototype.ishrn=function(f,p,x){return n(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return!1;var S=this.words[x];return!!(S&h)},s.prototype.imaskn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0)x++;if(this.length=Math.min(x,this.length),p!==0){var h=67108863^67108863>>>p<<p;this.words[this.length-1]&=h}return this.strip()},s.prototype.maskn=function(f){return this.clone().imaskn(f)},s.prototype.iaddn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.isubn(-f);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<f)return this.words[0]=f-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(f),this.negative=1,this}return this._iaddn(f)},s.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)if(this.words[p]-=67108864,p===this.length-1)this.words[p+1]=1;else this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(f){return this.clone().iaddn(f)},s.prototype.subn=function(f){return this.clone().isubn(f)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(f,p,x){var h=f.length+x,S;this._expand(h);var k,C=0;for(S=0;S<f.length;S++){k=(this.words[S+x]|0)+C;var w=(f.words[S]|0)*p;k-=w&67108863,C=(k>>26)-(w/67108864|0),this.words[S+x]=k&67108863}for(;S<this.length-x;S++)k=(this.words[S+x]|0)+C,C=k>>26,this.words[S+x]=k&67108863;if(C===0)return this.strip();n(C===-1),C=0;for(S=0;S<this.length;S++)k=-(this.words[S]|0)+C,C=k>>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,h=this.clone(),S=f,k=S.words[S.length-1]|0,C=this._countBits(k);if(x=26-C,x!==0)S=S.ushln(x),h.iushln(x),k=S.words[S.length-1]|0;var w=h.length-S.length,c;if(p!=="mod"){c=new s(null),c.length=w+1,c.words=Array(c.length);for(var T=0;T<c.length;T++)c.words[T]=0}var z=h.clone()._ishlnsubmul(S,1,w);if(z.negative===0){if(h=z,c)c.words[w]=1}for(var R=w-1;R>=0;R--){var q=(h.words[S.length+R]|0)*67108864+(h.words[S.length+R-1]|0);q=Math.min(q/k|0,67108863),h._ishlnsubmul(S,q,R);while(h.negative!==0)if(q--,h.negative=0,h._ishlnsubmul(S,1,R),!h.isZero())h.negative^=1;if(c)c.words[R]=q}if(c)c.strip();if(h.strip(),p!=="div"&&x!==0)h.iushrn(x);return{div:c||null,mod:h}},s.prototype.divmod=function(f,p,x){if(n(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var h,S,k;if(this.negative!==0&&f.negative===0){if(k=this.neg().divmod(f,p),p!=="mod")h=k.div.neg();if(p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.iadd(f)}return{div:h,mod:S}}if(this.negative===0&&f.negative!==0){if(k=this.divmod(f.neg(),p),p!=="mod")h=k.div.neg();return{div:h,mod:k.mod}}if((this.negative&f.negative)!==0){if(k=this.neg().divmod(f.neg(),p),p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.isub(f)}return{div:k.div,mod:S}}if(f.length>this.length||this.cmp(f)<0)return{div:new s(0),mod:this};if(f.length===1){if(p==="div")return{div:this.divn(f.words[0]),mod:null};if(p==="mod")return{div:null,mod:new s(this.modn(f.words[0]))};return{div:this.divn(f.words[0]),mod:new s(this.modn(f.words[0]))}}return this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,h=f.ushrn(1),S=f.andln(1),k=x.cmp(h);if(k<0||S===1&&k===0)return p.div;return p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(f){n(f<=67108863);var p=67108864%f,x=0;for(var h=this.length-1;h>=0;h--)x=(p*x+(this.words[h]|0))%f;return x},s.prototype.idivn=function(f){n(f<=67108863);var p=0;for(var x=this.length-1;x>=0;x--){var h=(this.words[x]|0)+p*67108864;this.words[x]=h/f|0,p=h%f}return this.strip()},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=new s(0),C=new s(1),w=0;while(p.isEven()&&x.isEven())p.iushrn(1),x.iushrn(1),++w;var c=x.clone(),T=p.clone();while(!p.isZero()){for(var z=0,R=1;(p.words[0]&R)===0&&z<26;++z,R<<=1);if(z>0){p.iushrn(z);while(z-- >0){if(h.isOdd()||S.isOdd())h.iadd(c),S.isub(T);h.iushrn(1),S.iushrn(1)}}for(var q=0,Q=1;(x.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0){x.iushrn(q);while(q-- >0){if(k.isOdd()||C.isOdd())k.iadd(c),C.isub(T);k.iushrn(1),C.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(k),S.isub(C);else x.isub(p),k.isub(h),C.isub(S)}return{a:k,b:C,gcd:x.iushln(w)}},s.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=x.clone();while(p.cmpn(1)>0&&x.cmpn(1)>0){for(var C=0,w=1;(p.words[0]&w)===0&&C<26;++C,w<<=1);if(C>0){p.iushrn(C);while(C-- >0){if(h.isOdd())h.iadd(k);h.iushrn(1)}}for(var c=0,T=1;(x.words[0]&T)===0&&c<26;++c,T<<=1);if(c>0){x.iushrn(c);while(c-- >0){if(S.isOdd())S.iadd(k);S.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(S);else x.isub(p),S.isub(h)}var z;if(p.cmpn(1)===0)z=h;else z=S;if(z.cmpn(0)<0)z.iadd(f);return z},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var h=0;p.isEven()&&x.isEven();h++)p.iushrn(1),x.iushrn(1);do{while(p.isEven())p.iushrn(1);while(x.isEven())x.iushrn(1);var S=p.cmp(x);if(S<0){var k=p;p=x,x=k}else if(S===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(h)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){n(typeof f==="number");var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return this._expand(x+1),this.words[x]|=h,this;var S=h;for(var k=x;S!==0&&k<this.length;k++){var C=this.words[k]|0;C+=S,S=C>>>26,C&=67108863,this.words[k]=C}if(S!==0)this.words[k]=S,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var x;if(this.length>1)x=1;else{if(p)f=-f;n(f<=67108863,"Number is too big");var h=this.words[0]|0;x=h===f?0:h<f?-1:1}if(this.negative!==0)return-x|0;return x},s.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);if(this.negative!==0)return-p|0;return p},s.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;var p=0;for(var x=this.length-1;x>=0;x--){var h=this.words[x]|0,S=f.words[x]|0;if(h===S)continue;if(h<S)p=-1;else if(h>S)p=1;break}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new Y(f)},s.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var V={k256:null,p224:null,p192:null,p25519:null};function W(f,p){this.name=f,this.p=new s(p,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}W.prototype._tmp=function(){var f=new s(null);return f.words=Array(Math.ceil(this.n/13)),f},W.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var h=x<this.n?-1:p.ucmp(this.p);if(h===0)p.words[0]=0,p.length=1;else if(h>0)p.isub(this.p);else if(p.strip!==void 0)p.strip();else p._strip();return p},W.prototype.split=function(f,p){f.iushrn(this.n,0,p)},W.prototype.imulK=function(f){return f.imul(this.k)};function J(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(J,W),J.prototype.split=function(f,p){var x=4194303,h=Math.min(f.length,9);for(var S=0;S<h;S++)p.words[S]=f.words[S];if(p.length=h,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];p.words[p.length++]=k&x;for(S=10;S<f.length;S++){var C=f.words[S]|0;f.words[S-10]=(C&x)<<4|k>>>22,k=C}if(k>>>=22,f.words[S-10]=k,k===0&&f.length>10)f.length-=10;else f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;var p=0;for(var x=0;x<f.length;x++){var h=f.words[x]|0;p+=h*977,f.words[x]=p&67108863,p=h*64+(p/67108864|0)}if(f.words[f.length-1]===0){if(f.length--,f.words[f.length-1]===0)f.length--}return f};function ve(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(ve,W);function ce(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(ce,W);function Me(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(Me,W),Me.prototype.imulK=function(f){var p=0;for(var x=0;x<f.length;x++){var h=(f.words[x]|0)*19+p,S=h&67108863;h>>>=26,f.words[x]=S,p=h}if(p!==0)f.words[f.length++]=p;return f},s._prime=function(f){if(V[f])return V[f];var p;if(f==="k256")p=new J;else if(f==="p224")p=new ve;else if(f==="p192")p=new ce;else if(f==="p25519")p=new Me;else throw Error("Unknown prime "+f);return V[f]=p,p};function Y(f){if(typeof f==="string"){var p=s._prime(f);this.m=p.p,this.prime=p}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}Y.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},Y.prototype.imod=function(f){if(this.prime)return this.prime.ireduce(f)._forceRed(this);return f.umod(this.m)._forceRed(this)},Y.prototype.neg=function(f){if(f.isZero())return f.clone();return this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x._forceRed(this)},Y.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x},Y.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x._forceRed(this)},Y.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x},Y.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},Y.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},Y.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}var h=this.m.subn(1),S=0;while(!h.isZero()&&h.andln(1)===0)S++,h.iushrn(1);n(!h.isZero());var k=new s(1).toRed(this),C=k.redNeg(),w=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new s(2*c*c).toRed(this);while(this.pow(c,w).cmp(C)!==0)c.redIAdd(C);var T=this.pow(c,h),z=this.pow(f,h.addn(1).iushrn(1)),R=this.pow(f,h),q=S;while(R.cmp(k)!==0){var Q=R;for(var ie=0;Q.cmp(k)!==0;ie++)Q=Q.redSqr();n(ie<q);var me=this.pow(T,new s(1).iushln(q-ie-1));z=z.redMul(me),T=me.redSqr(),R=R.redMul(T),q=ie}return z},Y.prototype.invm=function(f){var p=f._invmp(this.m);if(p.negative!==0)return p.negative=0,this.imod(p).redNeg();else return this.imod(p)},Y.prototype.pow=function(f,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var x=4,h=Array(1<<x);h[0]=new s(1).toRed(this),h[1]=f;for(var S=2;S<h.length;S++)h[S]=this.mul(h[S-1],f);var k=h[0],C=0,w=0,c=p.bitLength()%26;if(c===0)c=26;for(S=p.length-1;S>=0;S--){var T=p.words[S];for(var z=c-1;z>=0;z--){var R=T>>z&1;if(k!==h[0])k=this.sqr(k);if(R===0&&C===0){w=0;continue}if(C<<=1,C|=R,w++,w!==x&&(S!==0||z!==0))continue;k=this.mul(k,h[C]),w=0,C=0}c=26}return k},Y.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},Y.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new Te(f)};function Te(f){if(Y.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(Te,Y),Te.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Te.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},Te.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof t>"u"||t,e)}),n1e=ct((e)=>{var t=V0(),r=zo(),a=e;a.define=function(l,s){return new n(l,s)};function n(l,s){this.name=l,this.body=s,this.decoders={},this.encoders={}}n.prototype._createNamed=function(l){var s;try{s=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
378
378
  this._initNamed(entity);
379
379
  })`)}catch(d){s=function(b){this._initNamed(b)}}return r(s,l),s.prototype._initNamed=function(d){l.call(this,d)},new s(this)},n.prototype._getDecoder=function(l){if(l=l||"der",!this.decoders.hasOwnProperty(l))this.decoders[l]=this._createNamed(t.decoders[l]);return this.decoders[l]},n.prototype.decode=function(l,s,d){return this._getDecoder(s).decode(l,d)},n.prototype._getEncoder=function(l){if(l=l||"der",!this.encoders.hasOwnProperty(l))this.encoders[l]=this._createNamed(t.encoders[l]);return this.encoders[l]},n.prototype.encode=function(l,s,d){return this._getEncoder(s).encode(l,d)}}),i1e=ct((e)=>{var t=zo();function r(n){this._reporterState={obj:null,path:[],options:n||{},errors:[]}}e.Reporter=r,r.prototype.isError=function(n){return n instanceof a},r.prototype.save=function(){var n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},r.prototype.restore=function(n){var l=this._reporterState;l.obj=n.obj,l.path=l.path.slice(0,n.pathLen)},r.prototype.enterKey=function(n){return this._reporterState.path.push(n)},r.prototype.exitKey=function(n){var l=this._reporterState;l.path=l.path.slice(0,n-1)},r.prototype.leaveKey=function(n,l,s){var d=this._reporterState;if(this.exitKey(n),d.obj!==null)d.obj[l]=s},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var n=this._reporterState,l=n.obj;return n.obj={},l},r.prototype.leaveObject=function(n){var l=this._reporterState,s=l.obj;return l.obj=n,s},r.prototype.error=function(n){var l,s=this._reporterState,d=n instanceof a;if(d)l=n;else l=new a(s.path.map(function(b){return"["+JSON.stringify(b)+"]"}).join(""),n.message||n,n.stack);if(!s.options.partial)throw l;if(!d)s.errors.push(l);return l},r.prototype.wrapResult=function(n){var l=this._reporterState;if(!l.options.partial)return n;return{result:this.isError(n)?null:n,errors:l.errors}};function a(n,l){this.path=n,this.rethrow(l)}t(a,Error),a.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace)Error.captureStackTrace(this,a);if(!this.stack)try{throw Error(this.message)}catch(l){this.stack=l.stack}return this}}),QV=ct((e)=>{var t=zo(),r=H0().Reporter,a=(ci(),Cr(ui)).Buffer;function n(s,d){if(r.call(this,d),!a.isBuffer(s)){this.error("Input not Buffer");return}this.base=s,this.offset=0,this.length=s.length}t(n,r),e.DecoderBuffer=n,n.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},n.prototype.restore=function(s){var d=new n(this.base);return d.offset=s.offset,d.length=this.offset,this.offset=s.offset,r.prototype.restore.call(this,s.reporter),d},n.prototype.isEmpty=function(){return this.offset===this.length},n.prototype.readUInt8=function(s){if(this.offset+1<=this.length)return this.base.readUInt8(this.offset++,!0);else return this.error(s||"DecoderBuffer overrun")},n.prototype.skip=function(s,d){if(!(this.offset+s<=this.length))return this.error(d||"DecoderBuffer overrun");var b=new n(this.base);return b._reporterState=this._reporterState,b.offset=this.offset,b.length=this.offset+s,this.offset+=s,b},n.prototype.raw=function(s){return this.base.slice(s?s.offset:this.offset,this.length)};function l(s,d){if(Array.isArray(s))this.length=0,this.value=s.map(function(b){if(!(b instanceof l))b=new l(b,d);return this.length+=b.length,b},this);else if(typeof s==="number"){if(!(0<=s&&s<=255))return d.error("non-byte EncoderBuffer value");this.value=s,this.length=1}else if(typeof s==="string")this.value=s,this.length=a.byteLength(s);else if(a.isBuffer(s))this.value=s,this.length=s.length;else return d.error("Unsupported type: "+typeof s)}e.EncoderBuffer=l,l.prototype.join=function(s,d){if(!s)s=new a(this.length);if(!d)d=0;if(this.length===0)return s;if(Array.isArray(this.value))this.value.forEach(function(b){b.join(s,d),d+=b.length});else{if(typeof this.value==="number")s[d]=this.value;else if(typeof this.value==="string")s.write(this.value,d);else if(a.isBuffer(this.value))this.value.copy(s,d);d+=this.length}return s}}),o1e=ct((e,t)=>{var r=H0().Reporter,a=H0().EncoderBuffer,n=H0().DecoderBuffer,l=Tu(),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),b=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function y(g,_){var A={};if(this._baseState=A,A.enc=g,A.parent=_||null,A.children=null,A.tag=null,A.args=null,A.reverseArgs=null,A.choice=null,A.optional=!1,A.any=!1,A.obj=!1,A.use=null,A.useDecoder=null,A.key=null,A.default=null,A.explicit=null,A.implicit=null,A.contains=null,!A.parent)A.children=[],this._wrap()}t.exports=y;var v=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];y.prototype.clone=function(){var g=this._baseState,_={};v.forEach(function(I){_[I]=g[I]});var A=new this.constructor(_.parent);return A._baseState=_,A},y.prototype._wrap=function(){var g=this._baseState;d.forEach(function(_){this[_]=function(){var A=new this.constructor(this);return g.children.push(A),A[_].apply(A,arguments)}},this)},y.prototype._init=function(g){var _=this._baseState;l(_.parent===null),g.call(this),_.children=_.children.filter(function(A){return A._baseState.parent===this},this),l.equal(_.children.length,1,"Root node can have only one child")},y.prototype._useArgs=function(g){var _=this._baseState,A=g.filter(function(I){return I instanceof this.constructor},this);if(g=g.filter(function(I){return!(I instanceof this.constructor)},this),A.length!==0)l(_.children===null),_.children=A,A.forEach(function(I){I._baseState.parent=this},this);if(g.length!==0)l(_.args===null),_.args=g,_.reverseArgs=g.map(function(I){if(typeof I!=="object"||I.constructor!==Object)return I;var O={};return Object.keys(I).forEach(function(N){if(N==(N|0))N|=0;var P=I[N];O[P]=N}),O})},b.forEach(function(g){y.prototype[g]=function(){var _=this._baseState;throw Error(g+" not implemented for encoding: "+_.enc)}}),s.forEach(function(g){y.prototype[g]=function(){var _=this._baseState,A=Array.prototype.slice.call(arguments);return l(_.tag===null),_.tag=g,this._useArgs(A),this}}),y.prototype.use=function(g){l(g);var _=this._baseState;return l(_.use===null),_.use=g,this},y.prototype.optional=function(){var g=this._baseState;return g.optional=!0,this},y.prototype.def=function(g){var _=this._baseState;return l(_.default===null),_.default=g,_.optional=!0,this},y.prototype.explicit=function(g){var _=this._baseState;return l(_.explicit===null&&_.implicit===null),_.explicit=g,this},y.prototype.implicit=function(g){var _=this._baseState;return l(_.explicit===null&&_.implicit===null),_.implicit=g,this},y.prototype.obj=function(){var g=this._baseState,_=Array.prototype.slice.call(arguments);if(g.obj=!0,_.length!==0)this._useArgs(_);return this},y.prototype.key=function(g){var _=this._baseState;return l(_.key===null),_.key=g,this},y.prototype.any=function(){var g=this._baseState;return g.any=!0,this},y.prototype.choice=function(g){var _=this._baseState;return l(_.choice===null),_.choice=g,this._useArgs(Object.keys(g).map(function(A){return g[A]})),this},y.prototype.contains=function(g){var _=this._baseState;return l(_.use===null),_.contains=g,this},y.prototype._decode=function(g,_){var A=this._baseState;if(A.parent===null)return g.wrapResult(A.children[0]._decode(g,_));var I=A.default,O=!0,N=null;if(A.key!==null)N=g.enterKey(A.key);if(A.optional){var P=null;if(A.explicit!==null)P=A.explicit;else if(A.implicit!==null)P=A.implicit;else if(A.tag!==null)P=A.tag;if(P===null&&!A.any){var j=g.save();try{if(A.choice===null)this._decodeGeneric(A.tag,g,_);else this._decodeChoice(g,_);O=!0}catch(ce){O=!1}g.restore(j)}else if(O=this._peekTag(g,P,A.any),g.isError(O))return O}var Z;if(A.obj&&O)Z=g.enterObject();if(O){if(A.explicit!==null){var V=this._decodeTag(g,A.explicit);if(g.isError(V))return V;g=V}var W=g.offset;if(A.use===null&&A.choice===null){if(A.any)var j=g.save();var J=this._decodeTag(g,A.implicit!==null?A.implicit:A.tag,A.any);if(g.isError(J))return J;if(A.any)I=g.raw(j);else g=J}if(_&&_.track&&A.tag!==null)_.track(g.path(),W,g.length,"tagged");if(_&&_.track&&A.tag!==null)_.track(g.path(),g.offset,g.length,"content");if(A.any)I=I;else if(A.choice===null)I=this._decodeGeneric(A.tag,g,_);else I=this._decodeChoice(g,_);if(g.isError(I))return I;if(!A.any&&A.choice===null&&A.children!==null)A.children.forEach(function(ce){ce._decode(g,_)});if(A.contains&&(A.tag==="octstr"||A.tag==="bitstr")){var ve=new n(I);I=this._getUse(A.contains,g._reporterState.obj)._decode(ve,_)}}if(A.obj&&O)I=g.leaveObject(Z);if(A.key!==null&&(I!==null||O===!0))g.leaveKey(N,A.key,I);else if(N!==null)g.exitKey(N);return I},y.prototype._decodeGeneric=function(g,_,A){var I=this._baseState;if(g==="seq"||g==="set")return null;if(g==="seqof"||g==="setof")return this._decodeList(_,g,I.args[0],A);else if(/str$/.test(g))return this._decodeStr(_,g,A);else if(g==="objid"&&I.args)return this._decodeObjid(_,I.args[0],I.args[1],A);else if(g==="objid")return this._decodeObjid(_,null,null,A);else if(g==="gentime"||g==="utctime")return this._decodeTime(_,g,A);else if(g==="null_")return this._decodeNull(_,A);else if(g==="bool")return this._decodeBool(_,A);else if(g==="objDesc")return this._decodeStr(_,g,A);else if(g==="int"||g==="enum")return this._decodeInt(_,I.args&&I.args[0],A);if(I.use!==null)return this._getUse(I.use,_._reporterState.obj)._decode(_,A);else return _.error("unknown tag: "+g)},y.prototype._getUse=function(g,_){var A=this._baseState;if(A.useDecoder=this._use(g,_),l(A.useDecoder._baseState.parent===null),A.useDecoder=A.useDecoder._baseState.children[0],A.implicit!==A.useDecoder._baseState.implicit)A.useDecoder=A.useDecoder.clone(),A.useDecoder._baseState.implicit=A.implicit;return A.useDecoder},y.prototype._decodeChoice=function(g,_){var A=this._baseState,I=null,O=!1;if(Object.keys(A.choice).some(function(N){var P=g.save(),j=A.choice[N];try{var Z=j._decode(g,_);if(g.isError(Z))return!1;I={type:N,value:Z},O=!0}catch(V){return g.restore(P),!1}return!0},this),!O)return g.error("Choice not matched");return I},y.prototype._createEncoderBuffer=function(g){return new a(g,this.reporter)},y.prototype._encode=function(g,_,A){var I=this._baseState;if(I.default!==null&&I.default===g)return;var O=this._encodeValue(g,_,A);if(O===void 0)return;if(this._skipDefault(O,_,A))return;return O},y.prototype._encodeValue=function(g,_,A){var I=this._baseState;if(I.parent===null)return I.children[0]._encode(g,_||new r);var j=null;if(this.reporter=_,I.optional&&g===void 0)if(I.default!==null)g=I.default;else return;var O=null,N=!1;if(I.any)j=this._createEncoderBuffer(g);else if(I.choice)j=this._encodeChoice(g,_);else if(I.contains)O=this._getUse(I.contains,A)._encode(g,_),N=!0;else if(I.children)O=I.children.map(function(W){if(W._baseState.tag==="null_")return W._encode(null,_,g);if(W._baseState.key===null)return _.error("Child should have a key");var J=_.enterKey(W._baseState.key);if(typeof g!=="object")return _.error("Child expected, but input is not object");var ve=W._encode(g[W._baseState.key],_,g);return _.leaveKey(J),ve},this).filter(function(W){return W}),O=this._createEncoderBuffer(O);else if(I.tag==="seqof"||I.tag==="setof"){if(!(I.args&&I.args.length===1))return _.error("Too many args for : "+I.tag);if(!Array.isArray(g))return _.error("seqof/setof, but data is not Array");var P=this.clone();P._baseState.implicit=null,O=this._createEncoderBuffer(g.map(function(W){var J=this._baseState;return this._getUse(J.args[0],g)._encode(W,_)},P))}else if(I.use!==null)j=this._getUse(I.use,A)._encode(g,_);else O=this._encodePrimitive(I.tag,g),N=!0;var j;if(!I.any&&I.choice===null){var Z=I.implicit!==null?I.implicit:I.tag,V=I.implicit===null?"universal":"context";if(Z===null){if(I.use===null)_.error("Tag could be omitted only for .use()")}else if(I.use===null)j=this._encodeComposite(Z,N,V,O)}if(I.explicit!==null)j=this._encodeComposite(I.explicit,!1,"context",j);return j},y.prototype._encodeChoice=function(g,_){var A=this._baseState,I=A.choice[g.type];if(!I)l(!1,g.type+" not found in "+JSON.stringify(Object.keys(A.choice)));return I._encode(g.value,_)},y.prototype._encodePrimitive=function(g,_){var A=this._baseState;if(/str$/.test(g))return this._encodeStr(_,g);else if(g==="objid"&&A.args)return this._encodeObjid(_,A.reverseArgs[0],A.args[1]);else if(g==="objid")return this._encodeObjid(_,null,null);else if(g==="gentime"||g==="utctime")return this._encodeTime(_,g);else if(g==="null_")return this._encodeNull();else if(g==="int"||g==="enum")return this._encodeInt(_,A.args&&A.reverseArgs[0]);else if(g==="bool")return this._encodeBool(_);else if(g==="objDesc")return this._encodeStr(_,g);else throw Error("Unsupported tag: "+g)},y.prototype._isNumstr=function(g){return/^[0-9 ]*$/.test(g)},y.prototype._isPrintstr=function(g){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(g)}}),H0=ct((e)=>{var t=e;t.Reporter=i1e().Reporter,t.DecoderBuffer=QV().DecoderBuffer,t.EncoderBuffer=QV().EncoderBuffer,t.Node=o1e()}),a1e=ct((e)=>{var t=yY();e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t._reverse(e.tagClass),e.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"},e.tagByName=t._reverse(e.tag)}),yY=ct((e)=>{var t=e;t._reverse=function(r){var a={};return Object.keys(r).forEach(function(n){if((n|0)==n)n=n|0;var l=r[n];a[l]=n}),a},t.der=a1e()}),vY=ct((e,t)=>{var r=zo(),a=V0(),n=a.base,l=a.bignum,s=a.constants.der;function d(g){this.enc="der",this.name=g.name,this.entity=g,this.tree=new b,this.tree._init(g.body)}t.exports=d,d.prototype.decode=function(g,_){if(!(g instanceof n.DecoderBuffer))g=new n.DecoderBuffer(g,_);return this.tree._decode(g,_)};function b(g){n.Node.call(this,"der",g)}r(b,n.Node),b.prototype._peekTag=function(g,_,A){if(g.isEmpty())return!1;var I=g.save(),O=y(g,'Failed to peek tag: "'+_+'"');if(g.isError(O))return O;return g.restore(I),O.tag===_||O.tagStr===_||O.tagStr+"of"===_||A},b.prototype._decodeTag=function(g,_,A){var I=y(g,'Failed to decode tag of "'+_+'"');if(g.isError(I))return I;var O=v(g,I.primitive,'Failed to get length of "'+_+'"');if(g.isError(O))return O;if(!A&&I.tag!==_&&I.tagStr!==_&&I.tagStr+"of"!==_)return g.error('Failed to match tag: "'+_+'"');if(I.primitive||O!==null)return g.skip(O,'Failed to match body of: "'+_+'"');var N=g.save(),P=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');if(g.isError(P))return P;return O=g.offset-N.offset,g.restore(N),g.skip(O,'Failed to match body of: "'+_+'"')},b.prototype._skipUntilEnd=function(g,_){while(!0){var A=y(g,_);if(g.isError(A))return A;var I=v(g,A.primitive,_);if(g.isError(I))return I;var O;if(A.primitive||I!==null)O=g.skip(I);else O=this._skipUntilEnd(g,_);if(g.isError(O))return O;if(A.tagStr==="end")break}},b.prototype._decodeList=function(g,_,A,I){var O=[];while(!g.isEmpty()){var N=this._peekTag(g,"end");if(g.isError(N))return N;var P=A.decode(g,"der",I);if(g.isError(P)&&N)break;O.push(P)}return O},b.prototype._decodeStr=function(g,_){if(_==="bitstr"){var A=g.readUInt8();if(g.isError(A))return A;return{unused:A,data:g.raw()}}else if(_==="bmpstr"){var I=g.raw();if(I.length%2===1)return g.error("Decoding of string type: bmpstr length mismatch");var O="";for(var N=0;N<I.length/2;N++)O+=String.fromCharCode(I.readUInt16BE(N*2));return O}else if(_==="numstr"){var P=g.raw().toString("ascii");if(!this._isNumstr(P))return g.error("Decoding of string type: numstr unsupported characters");return P}else if(_==="octstr")return g.raw();else if(_==="objDesc")return g.raw();else if(_==="printstr"){var j=g.raw().toString("ascii");if(!this._isPrintstr(j))return g.error("Decoding of string type: printstr unsupported characters");return j}else if(/str$/.test(_))return g.raw().toString();else return g.error("Decoding of string type: "+_+" unsupported")},b.prototype._decodeObjid=function(g,_,A){var I,O=[],N=0;while(!g.isEmpty()){var P=g.readUInt8();if(N<<=7,N|=P&127,(P&128)===0)O.push(N),N=0}if(P&128)O.push(N);var j=O[0]/40|0,Z=O[0]%40;if(A)I=O;else I=[j,Z].concat(O.slice(1));if(_){var V=_[I.join(" ")];if(V===void 0)V=_[I.join(".")];if(V!==void 0)I=V}return I},b.prototype._decodeTime=function(g,_){var A=g.raw().toString();if(_==="gentime")var I=A.slice(0,4)|0,O=A.slice(4,6)|0,N=A.slice(6,8)|0,P=A.slice(8,10)|0,j=A.slice(10,12)|0,Z=A.slice(12,14)|0;else if(_==="utctime"){var I=A.slice(0,2)|0,O=A.slice(2,4)|0,N=A.slice(4,6)|0,P=A.slice(6,8)|0,j=A.slice(8,10)|0,Z=A.slice(10,12)|0;if(I<70)I=2000+I;else I=1900+I}else return g.error("Decoding "+_+" time is not supported yet");return Date.UTC(I,O-1,N,P,j,Z,0)},b.prototype._decodeNull=function(g){return null},b.prototype._decodeBool=function(g){var _=g.readUInt8();if(g.isError(_))return _;else return _!==0},b.prototype._decodeInt=function(g,_){var A=g.raw(),I=new l(A);if(_)I=_[I.toString(10)]||I;return I},b.prototype._use=function(g,_){if(typeof g==="function")g=g(_);return g._getDecoder("der").tree};function y(g,_){var A=g.readUInt8(_);if(g.isError(A))return A;var I=s.tagClass[A>>6],O=(A&32)===0;if((A&31)===31){var N=A;A=0;while((N&128)===128){if(N=g.readUInt8(_),g.isError(N))return N;A<<=7,A|=N&127}}else A&=31;var P=s.tag[A];return{cls:I,primitive:O,tag:A,tagStr:P}}function v(g,_,A){var I=g.readUInt8(A);if(g.isError(I))return I;if(!_&&I===128)return null;if((I&128)===0)return I;var O=I&127;if(O>4)return g.error("length octect is too long");I=0;for(var N=0;N<O;N++){I<<=8;var P=g.readUInt8(A);if(g.isError(P))return P;I|=P}return I}}),s1e=ct((e,t)=>{var r=zo(),a=(ci(),Cr(ui)).Buffer,n=vY();function l(s){n.call(this,s),this.enc="pem"}r(l,n),t.exports=l,l.prototype.decode=function(s,d){var b=s.toString().split(/[\r\n]+/g),y=d.label.toUpperCase(),v=/^-----(BEGIN|END) ([^-]+)-----$/,g=-1,_=-1;for(var A=0;A<b.length;A++){var I=b[A].match(v);if(I===null)continue;if(I[2]!==y)continue;if(g===-1){if(I[1]!=="BEGIN")break;g=A}else{if(I[1]!=="END")break;_=A;break}}if(g===-1||_===-1)throw Error("PEM section not found for: "+y);var O=b.slice(g+1,_).join("");O.replace(/[^a-z0-9\+\/=]+/gi,"");var N=new a(O,"base64");return n.prototype.decode.call(this,N,d)}}),l1e=ct((e)=>{var t=e;t.der=vY(),t.pem=s1e()}),SY=ct((e,t)=>{var r=zo(),a=(ci(),Cr(ui)).Buffer,n=V0(),l=n.base,s=n.constants.der;function d(g){this.enc="der",this.name=g.name,this.entity=g,this.tree=new b,this.tree._init(g.body)}t.exports=d,d.prototype.encode=function(g,_){return this.tree._encode(g,_).join()};function b(g){l.Node.call(this,"der",g)}r(b,l.Node),b.prototype._encodeComposite=function(g,_,A,I){var O=v(g,_,A,this.reporter);if(I.length<128){var j=new a(2);return j[0]=O,j[1]=I.length,this._createEncoderBuffer([j,I])}var N=1;for(var P=I.length;P>=256;P>>=8)N++;var j=new a(2+N);j[0]=O,j[1]=128|N;for(var P=1+N,Z=I.length;Z>0;P--,Z>>=8)j[P]=Z&255;return this._createEncoderBuffer([j,I])},b.prototype._encodeStr=function(g,_){if(_==="bitstr")return this._createEncoderBuffer([g.unused|0,g.data]);else if(_==="bmpstr"){var A=new a(g.length*2);for(var I=0;I<g.length;I++)A.writeUInt16BE(g.charCodeAt(I),I*2);return this._createEncoderBuffer(A)}else if(_==="numstr"){if(!this._isNumstr(g))return this.reporter.error("Encoding of string type: numstr supports only digits and space");return this._createEncoderBuffer(g)}else if(_==="printstr"){if(!this._isPrintstr(g))return this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");return this._createEncoderBuffer(g)}else if(/str$/.test(_))return this._createEncoderBuffer(g);else if(_==="objDesc")return this._createEncoderBuffer(g);else return this.reporter.error("Encoding of string type: "+_+" unsupported")},b.prototype._encodeObjid=function(g,_,A){if(typeof g==="string"){if(!_)return this.reporter.error("string objid given, but no values map found");if(!_.hasOwnProperty(g))return this.reporter.error("objid not found in values map");g=_[g].split(/[\s\.]+/g);for(var I=0;I<g.length;I++)g[I]|=0}else if(Array.isArray(g)){g=g.slice();for(var I=0;I<g.length;I++)g[I]|=0}if(!Array.isArray(g))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(g));if(!A){if(g[1]>=40)return this.reporter.error("Second objid identifier OOB");g.splice(0,2,g[0]*40+g[1])}var O=0;for(var I=0;I<g.length;I++){var N=g[I];for(O++;N>=128;N>>=7)O++}var P=new a(O),j=P.length-1;for(var I=g.length-1;I>=0;I--){var N=g[I];P[j--]=N&127;while((N>>=7)>0)P[j--]=128|N&127}return this._createEncoderBuffer(P)};function y(g){if(g<10)return"0"+g;else return g}b.prototype._encodeTime=function(g,_){var A,I=new Date(g);if(_==="gentime")A=[y(I.getFullYear()),y(I.getUTCMonth()+1),y(I.getUTCDate()),y(I.getUTCHours()),y(I.getUTCMinutes()),y(I.getUTCSeconds()),"Z"].join("");else if(_==="utctime")A=[y(I.getFullYear()%100),y(I.getUTCMonth()+1),y(I.getUTCDate()),y(I.getUTCHours()),y(I.getUTCMinutes()),y(I.getUTCSeconds()),"Z"].join("");else this.reporter.error("Encoding "+_+" time is not supported yet");return this._encodeStr(A,"octstr")},b.prototype._encodeNull=function(){return this._createEncoderBuffer("")},b.prototype._encodeInt=function(g,_){if(typeof g==="string"){if(!_)return this.reporter.error("String int or enum given, but no values map");if(!_.hasOwnProperty(g))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(g));g=_[g]}if(typeof g!=="number"&&!a.isBuffer(g)){var A=g.toArray();if(!g.sign&&A[0]&128)A.unshift(0);g=new a(A)}if(a.isBuffer(g)){var I=g.length;if(g.length===0)I++;var N=new a(I);if(g.copy(N),g.length===0)N[0]=0;return this._createEncoderBuffer(N)}if(g<128)return this._createEncoderBuffer(g);if(g<256)return this._createEncoderBuffer([0,g]);var I=1;for(var O=g;O>=256;O>>=8)I++;var N=Array(I);for(var O=N.length-1;O>=0;O--)N[O]=g&255,g>>=8;if(N[0]&128)N.unshift(0);return this._createEncoderBuffer(new a(N))},b.prototype._encodeBool=function(g){return this._createEncoderBuffer(g?255:0)},b.prototype._use=function(g,_){if(typeof g==="function")g=g(_);return g._getEncoder("der").tree},b.prototype._skipDefault=function(g,_,A){var I=this._baseState,O;if(I.default===null)return!1;var N=g.join();if(I.defaultBuffer===void 0)I.defaultBuffer=this._encodeValue(I.default,_,A).join();if(N.length!==I.defaultBuffer.length)return!1;for(O=0;O<N.length;O++)if(N[O]!==I.defaultBuffer[O])return!1;return!0};function v(g,_,A,I){var O;if(g==="seqof")g="seq";else if(g==="setof")g="set";if(s.tagByName.hasOwnProperty(g))O=s.tagByName[g];else if(typeof g==="number"&&(g|0)===g)O=g;else return I.error("Unknown tag: "+g);if(O>=31)return I.error("Multi-octet tag encoding unsupported");if(!_)O|=32;return O|=s.tagClassByName[A||"universal"]<<6,O}}),u1e=ct((e,t)=>{var r=zo(),a=SY();function n(l){a.call(this,l),this.enc="pem"}r(n,a),t.exports=n,n.prototype.encode=function(l,s){var d=a.prototype.encode.call(this,l),b=d.toString("base64"),y=["-----BEGIN "+s.label+"-----"];for(var v=0;v<b.length;v+=64)y.push(b.slice(v,v+64));return y.push("-----END "+s.label+"-----"),y.join(`
380
- `)}}),c1e=ct((e)=>{var t=e;t.der=SY(),t.pem=u1e()}),V0=ct((e)=>{var t=e;t.bignum=r1e(),t.define=n1e().define,t.base=H0(),t.constants=yY(),t.decoders=l1e(),t.encoders=c1e()}),f1e=ct((e,t)=>{var r=V0(),a=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),n=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),l=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(l),this.key("subjectPublicKey").bitstr())}),d=r.define("RelativeDistinguishedName",function(){this.setof(n)}),b=r.define("RDNSequence",function(){this.seqof(d)}),y=r.define("Name",function(){this.choice({rdnSequence:this.use(b)})}),v=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),g=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),_=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(l),this.key("issuer").use(y),this.key("validity").use(v),this.key("subject").use(y),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(g).optional())}),A=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(_),this.key("signatureAlgorithm").use(l),this.key("signatureValue").bitstr())});t.exports=A}),d1e=ct((e)=>{var t=V0();e.certificate=f1e();var r=t.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())});e.RSAPrivateKey=r;var a=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=a;var n=t.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())}),l=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});e.PublicKey=l;var s=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())});e.PrivateKey=s;var d=t.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())});e.EncryptedPrivateKey=d;var b=t.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())});e.DSAPrivateKey=b,e.DSAparam=t.define("DSAparam",function(){this.int()});var y=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),v=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(y),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=v,e.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),h1e=ct((e,t)=>{t.exports={"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"}}),p1e=ct((e,t)=>{var r=Qi().Buffer,a=GM().Transform,n=zo();function l(y){a.call(this),this._block=r.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(l,a),l.prototype._transform=function(y,v,g){var _=null;try{this.update(y,v)}catch(A){_=A}g(_)},l.prototype._flush=function(y){var v=null;try{this.push(this.digest())}catch(g){v=g}y(v)};var s=typeof Uint8Array<"u",d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);function b(y,v){if(y instanceof r)return y;if(typeof y==="string")return r.from(y,v);if(d&&ArrayBuffer.isView(y)){if(y.byteLength===0)return r.alloc(0);var g=r.from(y.buffer,y.byteOffset,y.byteLength);if(g.byteLength===y.byteLength)return g}if(s&&y instanceof Uint8Array)return r.from(y);if(r.isBuffer(y)&&y.constructor&&typeof y.constructor.isBuffer==="function"&&y.constructor.isBuffer(y))return r.from(y);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}l.prototype.update=function(y,v){if(this._finalized)throw Error("Digest already called");y=b(y,v);var g=this._block,_=0;while(this._blockOffset+y.length-_>=this._blockSize){for(var A=this._blockOffset;A<this._blockSize;)g[A++]=y[_++];this._update(),this._blockOffset=0}while(_<y.length)g[this._blockOffset++]=y[_++];for(var I=0,O=y.length*8;O>0;++I)if(this._length[I]+=O,O=this._length[I]/4294967296|0,O>0)this._length[I]-=4294967296*O;return this},l.prototype._update=function(){throw Error("_update is not implemented")},l.prototype.digest=function(y){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var v=this._digest();if(y!==void 0)v=v.toString(y);this._block.fill(0),this._blockOffset=0;for(var g=0;g<4;++g)this._length[g]=0;return v},l.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=l}),m1e=ct((e,t)=>{var r=zo(),a=p1e(),n=Qi().Buffer,l=Array(16);function s(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}r(s,a),s.prototype._update=function(){var _=l;for(var A=0;A<16;++A)_[A]=this._block.readInt32LE(A*4);var I=this._a,O=this._b,N=this._c,P=this._d;I=b(I,O,N,P,_[0],3614090360,7),P=b(P,I,O,N,_[1],3905402710,12),N=b(N,P,I,O,_[2],606105819,17),O=b(O,N,P,I,_[3],3250441966,22),I=b(I,O,N,P,_[4],4118548399,7),P=b(P,I,O,N,_[5],1200080426,12),N=b(N,P,I,O,_[6],2821735955,17),O=b(O,N,P,I,_[7],4249261313,22),I=b(I,O,N,P,_[8],1770035416,7),P=b(P,I,O,N,_[9],2336552879,12),N=b(N,P,I,O,_[10],4294925233,17),O=b(O,N,P,I,_[11],2304563134,22),I=b(I,O,N,P,_[12],1804603682,7),P=b(P,I,O,N,_[13],4254626195,12),N=b(N,P,I,O,_[14],2792965006,17),O=b(O,N,P,I,_[15],1236535329,22),I=y(I,O,N,P,_[1],4129170786,5),P=y(P,I,O,N,_[6],3225465664,9),N=y(N,P,I,O,_[11],643717713,14),O=y(O,N,P,I,_[0],3921069994,20),I=y(I,O,N,P,_[5],3593408605,5),P=y(P,I,O,N,_[10],38016083,9),N=y(N,P,I,O,_[15],3634488961,14),O=y(O,N,P,I,_[4],3889429448,20),I=y(I,O,N,P,_[9],568446438,5),P=y(P,I,O,N,_[14],3275163606,9),N=y(N,P,I,O,_[3],4107603335,14),O=y(O,N,P,I,_[8],1163531501,20),I=y(I,O,N,P,_[13],2850285829,5),P=y(P,I,O,N,_[2],4243563512,9),N=y(N,P,I,O,_[7],1735328473,14),O=y(O,N,P,I,_[12],2368359562,20),I=v(I,O,N,P,_[5],4294588738,4),P=v(P,I,O,N,_[8],2272392833,11),N=v(N,P,I,O,_[11],1839030562,16),O=v(O,N,P,I,_[14],4259657740,23),I=v(I,O,N,P,_[1],2763975236,4),P=v(P,I,O,N,_[4],1272893353,11),N=v(N,P,I,O,_[7],4139469664,16),O=v(O,N,P,I,_[10],3200236656,23),I=v(I,O,N,P,_[13],681279174,4),P=v(P,I,O,N,_[0],3936430074,11),N=v(N,P,I,O,_[3],3572445317,16),O=v(O,N,P,I,_[6],76029189,23),I=v(I,O,N,P,_[9],3654602809,4),P=v(P,I,O,N,_[12],3873151461,11),N=v(N,P,I,O,_[15],530742520,16),O=v(O,N,P,I,_[2],3299628645,23),I=g(I,O,N,P,_[0],4096336452,6),P=g(P,I,O,N,_[7],1126891415,10),N=g(N,P,I,O,_[14],2878612391,15),O=g(O,N,P,I,_[5],4237533241,21),I=g(I,O,N,P,_[12],1700485571,6),P=g(P,I,O,N,_[3],2399980690,10),N=g(N,P,I,O,_[10],4293915773,15),O=g(O,N,P,I,_[1],2240044497,21),I=g(I,O,N,P,_[8],1873313359,6),P=g(P,I,O,N,_[15],4264355552,10),N=g(N,P,I,O,_[6],2734768916,15),O=g(O,N,P,I,_[13],1309151649,21),I=g(I,O,N,P,_[4],4149444226,6),P=g(P,I,O,N,_[11],3174756917,10),N=g(N,P,I,O,_[2],718787259,15),O=g(O,N,P,I,_[9],3951481745,21),this._a=this._a+I|0,this._b=this._b+O|0,this._c=this._c+N|0,this._d=this._d+P|0},s.prototype._digest=function(){if(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 _=n.allocUnsafe(16);return _.writeInt32LE(this._a,0),_.writeInt32LE(this._b,4),_.writeInt32LE(this._c,8),_.writeInt32LE(this._d,12),_};function d(_,A){return _<<A|_>>>32-A}function b(_,A,I,O,N,P,j){return d(_+(A&I|~A&O)+N+P|0,j)+A|0}function y(_,A,I,O,N,P,j){return d(_+(A&O|I&~O)+N+P|0,j)+A|0}function v(_,A,I,O,N,P,j){return d(_+(A^I^O)+N+P|0,j)+A|0}function g(_,A,I,O,N,P,j){return d(_+(I^(A|~O))+N+P|0,j)+A|0}t.exports=s}),g1e=ct((e,t)=>{var r=Qi().Buffer,a=m1e();function n(l,s,d,b){if(!r.isBuffer(l))l=r.from(l,"binary");if(s){if(!r.isBuffer(s))s=r.from(s,"binary");if(s.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var y=d/8,v=r.alloc(y),g=r.alloc(b||0),_=r.alloc(0);while(y>0||b>0){var A=new a;if(A.update(_),A.update(l),s)A.update(s);_=A.digest();var I=0;if(y>0){var O=v.length-y;I=Math.min(y,_.length),_.copy(v,O,0,I),y-=I}if(I<_.length&&b>0){var N=g.length-b,P=Math.min(b,_.length-I);_.copy(g,N,I,I+P),b-=P}}return _.fill(0),{key:v,iv:g}}t.exports=n}),xY=ct((e)=>{var t=(eo(),Cr(Lo));e.createCipher=e.Cipher=t.createCipher,e.createCipheriv=e.Cipheriv=t.createCipheriv,e.createDecipher=e.Decipher=t.createDecipher,e.createDecipheriv=e.Decipheriv=t.createDecipheriv,e.listCiphers=e.getCiphers=t.getCiphers}),b1e=ct((e,t)=>{var r=/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,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,l=g1e(),s=xY(),d=Qi().Buffer;t.exports=function(b,y){var v=b.toString(),g=v.match(r),_;if(!g){var A=v.match(n);_=d.from(A[2].replace(/[\r\n]/g,""),"base64")}else{var I="aes"+g[1],O=d.from(g[2],"hex"),N=d.from(g[3].replace(/[\r\n]/g,""),"base64"),P=l(y,O.slice(0,8),parseInt(g[1],10)).key,j=[],Z=s.createDecipheriv(I,P,O);j.push(Z.update(N)),j.push(Z.final()),_=d.concat(j)}var V=v.match(a)[1];return{tag:V,data:_}}}),_Y=ct((e,t)=>{var r=d1e(),a=h1e(),n=b1e(),l=xY(),s=fY().pbkdf2Sync,d=Qi().Buffer;function b(v,g){var _=v.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(v.algorithm.decrypt.kde.kdeparams.iters.toString(),10),I=a[v.algorithm.decrypt.cipher.algo.join(".")],O=v.algorithm.decrypt.cipher.iv,N=v.subjectPrivateKey,P=parseInt(I.split("-")[1],10)/8,j=s(g,_,A,P,"sha1"),Z=l.createDecipheriv(I,j,O),V=[];return V.push(Z.update(N)),V.push(Z.final()),d.concat(V)}function y(v){var g;if(typeof v==="object"&&!d.isBuffer(v))g=v.passphrase,v=v.key;if(typeof v==="string")v=d.from(v);var _=n(v,g),A=_.tag,I=_.data,O,N;switch(A){case"CERTIFICATE":N=r.certificate.decode(I,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!N)N=r.PublicKey.decode(I,"der");switch(O=N.algorithm.algorithm.join("."),O){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(N.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return N.subjectPrivateKey=N.subjectPublicKey,{type:"ec",data:N};case"1.2.840.10040.4.1":return N.algorithm.params.pub_key=r.DSAparam.decode(N.subjectPublicKey.data,"der"),{type:"dsa",data:N.algorithm.params};default:throw Error("unknown key id "+O)}case"ENCRYPTED PRIVATE KEY":I=r.EncryptedPrivateKey.decode(I,"der"),I=b(I,g);case"PRIVATE KEY":switch(N=r.PrivateKey.decode(I,"der"),O=N.algorithm.algorithm.join("."),O){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(N.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:N.algorithm.curve,privateKey:r.ECPrivateKey.decode(N.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return N.algorithm.params.priv_key=r.DSAparam.decode(N.subjectPrivateKey,"der"),{type:"dsa",params:N.algorithm.params};default:throw Error("unknown key id "+O)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(I,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(I,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(I,"der")};case"EC PRIVATE KEY":return I=r.ECPrivateKey.decode(I,"der"),{curve:I.parameters.value,privateKey:I.privateKey};default:throw Error("unknown key type "+A)}}y.signature=r.signature,t.exports=y}),wY=ct((e,t)=>{var r=F2(),a=Qi().Buffer;t.exports=function(l,s){var d=a.alloc(0),b=0,y;while(d.length<s)y=n(b++),d=a.concat([d,r("sha1").update(l).update(y).digest()]);return d.slice(0,s)};function n(l){var s=a.allocUnsafe(4);return s.writeUInt32BE(l,0),s}}),EY=ct((e,t)=>{t.exports=function(r,a){var n=r.length,l=-1;while(++l<n)r[l]^=a[l];return r}}),rC=ct((e,t)=>{(function(r,a){function n(f,p){if(!f)throw Error(p||"Assertion failed")}function l(f,p){f.super_=p;var x=function(){};x.prototype=p.prototype,f.prototype=new x,f.prototype.constructor=f}function s(f,p,x){if(s.isBN(f))return f;if(this.negative=0,this.words=null,this.length=0,this.red=null,f!==null){if(p==="le"||p==="be")x=p,p=10;this._init(f||0,p||10,x||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(f){}s.isBN=function(f){if(f instanceof s)return!0;return f!==null&&typeof f==="object"&&f.constructor.wordSize===s.wordSize&&Array.isArray(f.words)},s.max=function(f,p){if(f.cmp(p)>0)return f;return p},s.min=function(f,p){if(f.cmp(p)<0)return f;return p},s.prototype._init=function(f,p,x){if(typeof f==="number")return this._initNumber(f,p,x);if(typeof f==="object")return this._initArray(f,p,x);if(p==="hex")p=16;n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var h=0;if(f[0]==="-")h++,this.negative=1;if(h<f.length){if(p===16)this._parseHex(f,h,x);else if(this._parseBase(f,p,h),x==="le")this._initArray(this.toArray(),p,x)}},s.prototype._initNumber=function(f,p,x){if(f<0)this.negative=1,f=-f;if(f<67108864)this.words=[f&67108863],this.length=1;else if(f<4503599627370496)this.words=[f&67108863,f/67108864&67108863],this.length=2;else n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3;if(x!=="le")return;this._initArray(this.toArray(),p,x)},s.prototype._initArray=function(f,p,x){if(n(typeof f.length==="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S,k,C=0;if(x==="be"){for(h=f.length-1,S=0;h>=0;h-=3)if(k=f[h]|f[h-1]<<8|f[h-2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}else if(x==="le"){for(h=0,S=0;h<f.length;h+=3)if(k=f[h]|f[h+1]<<8|f[h+2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}return this.strip()};function b(f,p){var x=f.charCodeAt(p);if(x>=65&&x<=70)return x-55;else if(x>=97&&x<=102)return x-87;else return x-48&15}function y(f,p,x){var h=b(f,x);if(x-1>=p)h|=b(f,x-1)<<4;return h}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S=0,k=0,C;if(x==="be")for(h=f.length-1;h>=p;h-=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8;else{var w=f.length-p;for(h=w%2===0?p+1:p;h<f.length;h+=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8}this.strip()};function v(f,p,x,h){var S=0,k=Math.min(f.length,x);for(var C=p;C<k;C++){var w=f.charCodeAt(C)-48;if(S*=h,w>=49)S+=w-49+10;else if(w>=17)S+=w-17+10;else S+=w}return S}s.prototype._parseBase=function(f,p,x){this.words=[0],this.length=1;for(var h=0,S=1;S<=67108863;S*=p)h++;h--,S=S/p|0;var k=f.length-x,C=k%h,w=Math.min(k,k-C)+x,c=0;for(var T=x;T<w;T+=h)if(c=v(f,T,T+h,p),this.imuln(S),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(C!==0){var z=1;c=v(f,T,f.length,p);for(T=0;T<C;T++)z*=p;if(this.imuln(z),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this.strip()},s.prototype.copy=function(f){f.words=Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red},s.prototype.clone=function(){var f=new s(null);return this.copy(f),f},s.prototype._expand=function(f){while(this.length<f)this.words[this.length++]=0;return this},s.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],_=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";var h=0,S=0;for(var k=0;k<this.length;k++){var C=this.words[k],w=((C<<h|S)&16777215).toString(16);if(S=C>>>24-h&16777215,h+=2,h>=26)h-=26,k--;if(S!==0||k!==this.length-1)x=g[6-w.length]+w+x;else x=w+x}if(S!==0)x=S.toString(16)+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}if(f===(f|0)&&f>=2&&f<=36){var c=_[f],T=A[f];x="";var z=this.clone();z.negative=0;while(!z.isZero()){var R=z.modn(T).toString(f);if(z=z.idivn(T),!z.isZero())x=g[c-R.length]+R+x;else x=R+x}if(this.isZero())x="0"+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];if(this.length===2)f+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)f+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(f,p){return n(typeof d<"u"),this.toArrayLike(d,f,p)},s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)},s.prototype.toArrayLike=function(f,p,x){var h=this.byteLength(),S=x||Math.max(1,h);n(h<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var k=p==="le",C=new f(S),w,c,T=this.clone();if(!k){for(c=0;c<S-h;c++)C[c]=0;for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[S-c-1]=w}else{for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[c]=w;for(;c<S;c++)C[c]=0}return C},Math.clz32)s.prototype._countBits=function(f){return 32-Math.clz32(f)};else s.prototype._countBits=function(f){var p=f,x=0;if(p>=4096)x+=13,p>>>=13;if(p>=64)x+=7,p>>>=7;if(p>=8)x+=4,p>>>=4;if(p>=2)x+=2,p>>>=2;return x+p};s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;if((p&8191)===0)x+=13,p>>>=13;if((p&127)===0)x+=7,p>>>=7;if((p&15)===0)x+=4,p>>>=4;if((p&3)===0)x+=2,p>>>=2;if((p&1)===0)x++;return x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(f){var p=Array(f.bitLength());for(var x=0;x<p.length;x++){var h=x/26|0,S=x%26;p[x]=(f.words[h]&1<<S)>>>S}return p}s.prototype.zeroBits=function(){if(this.isZero())return 0;var f=0;for(var p=0;p<this.length;p++){var x=this._zeroBits(this.words[p]);if(f+=x,x!==26)break}return f},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(f){if(this.negative!==0)return this.abs().inotn(f).iaddn(1);return this.clone()},s.prototype.fromTwos=function(f){if(this.testn(f-1))return this.notn(f).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(f){while(this.length<f.length)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this.strip()},s.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},s.prototype.or=function(f){if(this.length>f.length)return this.clone().ior(f);return f.clone().ior(this)},s.prototype.uor=function(f){if(this.length>f.length)return this.clone().iuor(f);return f.clone().iuor(this)},s.prototype.iuand=function(f){var p;if(this.length>f.length)p=f;else p=this;for(var x=0;x<p.length;x++)this.words[x]=this.words[x]&f.words[x];return this.length=p.length,this.strip()},s.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},s.prototype.and=function(f){if(this.length>f.length)return this.clone().iand(f);return f.clone().iand(this)},s.prototype.uand=function(f){if(this.length>f.length)return this.clone().iuand(f);return f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;if(this.length>f.length)p=this,x=f;else p=f,x=this;for(var h=0;h<x.length;h++)this.words[h]=p.words[h]^x.words[h];if(this!==p)for(;h<p.length;h++)this.words[h]=p.words[h];return this.length=p.length,this.strip()},s.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},s.prototype.xor=function(f){if(this.length>f.length)return this.clone().ixor(f);return f.clone().ixor(this)},s.prototype.uxor=function(f){if(this.length>f.length)return this.clone().iuxor(f);return f.clone().iuxor(this)},s.prototype.inotn=function(f){n(typeof f==="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;if(this._expand(p),x>0)p--;for(var h=0;h<p;h++)this.words[h]=~this.words[h]&67108863;if(x>0)this.words[h]=~this.words[h]&67108863>>26-x;return this.strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){n(typeof f==="number"&&f>=0);var x=f/26|0,h=f%26;if(this._expand(x+1),p)this.words[x]=this.words[x]|1<<h;else this.words[x]=this.words[x]&~(1<<h);return this.strip()},s.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();else if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var x,h;if(this.length>f.length)x=this,h=f;else x=f,h=this;var S=0;for(var k=0;k<h.length;k++)p=(x.words[k]|0)+(h.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;for(;S!==0&&k<x.length;k++)p=(x.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;if(this.length=x.length,S!==0)this.words[this.length]=S,this.length++;else if(x!==this)for(;k<x.length;k++)this.words[k]=x.words[k];return this},s.prototype.add=function(f){var p;if(f.negative!==0&&this.negative===0)return f.negative=0,p=this.sub(f),f.negative^=1,p;else if(f.negative===0&&this.negative!==0)return this.negative=0,p=f.sub(this),this.negative=1,p;if(this.length>f.length)return this.clone().iadd(f);return f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,S;if(x>0)h=this,S=f;else h=f,S=this;var k=0;for(var C=0;C<S.length;C++)p=(h.words[C]|0)-(S.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;for(;k!==0&&C<h.length;C++)p=(h.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;if(k===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];if(this.length=Math.max(this.length,C),h!==this)this.negative=1;return this.strip()},s.prototype.sub=function(f){return this.clone().isub(f)};function O(f,p,x){x.negative=p.negative^f.negative;var h=f.length+p.length|0;x.length=h,h=h-1|0;var S=f.words[0]|0,k=p.words[0]|0,C=S*k,w=C&67108863,c=C/67108864|0;x.words[0]=w;for(var T=1;T<h;T++){var z=c>>>26,R=c&67108863,q=Math.min(T,p.length-1);for(var Q=Math.max(0,T-f.length+1);Q<=q;Q++){var ie=T-Q|0;S=f.words[ie]|0,k=p.words[Q]|0,C=S*k+R,z+=C/67108864|0,R=C&67108863}x.words[T]=R|0,c=z|0}if(c!==0)x.words[T]=c|0;else x.length--;return x.strip()}var N=function(f,p,x){var h=f.words,S=p.words,k=x.words,C=0,w,c,T,z=h[0]|0,R=z&8191,q=z>>>13,Q=h[1]|0,ie=Q&8191,me=Q>>>13,Je=h[2]|0,ke=Je&8191,fe=Je>>>13,be=h[3]|0,Ae=be&8191,Be=be>>>13,vt=h[4]|0,oe=vt&8191,se=vt>>>13,Ke=h[5]|0,he=Ke&8191,Ie=Ke>>>13,Qe=h[6]|0,le=Qe&8191,Ee=Qe>>>13,gt=h[7]|0,De=gt&8191,We=gt>>>13,Ye=h[8]|0,we=Ye&8191,Fe=Ye>>>13,L=h[9]|0,ae=L&8191,_e=L>>>13,ot=S[0]|0,xe=ot&8191,K=ot>>>13,Ge=S[1]|0,F=Ge&8191,te=Ge>>>13,Pe=S[2]|0,pe=Pe&8191,de=Pe>>>13,at=S[3]|0,$e=at&8191,qe=at>>>13,ht=S[4]|0,tt=ht&8191,nt=ht>>>13,Er=S[5]|0,bt=Er&8191,re=Er>>>13,ye=S[6]|0,Ze=ye&8191,Ve=ye>>>13,Dt=S[7]|0,mt=Dt&8191,yt=Dt>>>13,Qr=S[8]|0,_t=Qr&8191,xt=Qr>>>13,zr=S[9]|0,wt=zr&8191,St=zr>>>13;x.negative=f.negative^p.negative,x.length=19,w=Math.imul(R,xe),c=Math.imul(R,K),c=c+Math.imul(q,xe)|0,T=Math.imul(q,K);var sn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(ie,xe),c=Math.imul(ie,K),c=c+Math.imul(me,xe)|0,T=Math.imul(me,K),w=w+Math.imul(R,F)|0,c=c+Math.imul(R,te)|0,c=c+Math.imul(q,F)|0,T=T+Math.imul(q,te)|0;var ir=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(ke,xe),c=Math.imul(ke,K),c=c+Math.imul(fe,xe)|0,T=Math.imul(fe,K),w=w+Math.imul(ie,F)|0,c=c+Math.imul(ie,te)|0,c=c+Math.imul(me,F)|0,T=T+Math.imul(me,te)|0,w=w+Math.imul(R,pe)|0,c=c+Math.imul(R,de)|0,c=c+Math.imul(q,pe)|0,T=T+Math.imul(q,de)|0;var nr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ae,xe),c=Math.imul(Ae,K),c=c+Math.imul(Be,xe)|0,T=Math.imul(Be,K),w=w+Math.imul(ke,F)|0,c=c+Math.imul(ke,te)|0,c=c+Math.imul(fe,F)|0,T=T+Math.imul(fe,te)|0,w=w+Math.imul(ie,pe)|0,c=c+Math.imul(ie,de)|0,c=c+Math.imul(me,pe)|0,T=T+Math.imul(me,de)|0,w=w+Math.imul(R,$e)|0,c=c+Math.imul(R,qe)|0,c=c+Math.imul(q,$e)|0,T=T+Math.imul(q,qe)|0;var Lr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,w=Math.imul(oe,xe),c=Math.imul(oe,K),c=c+Math.imul(se,xe)|0,T=Math.imul(se,K),w=w+Math.imul(Ae,F)|0,c=c+Math.imul(Ae,te)|0,c=c+Math.imul(Be,F)|0,T=T+Math.imul(Be,te)|0,w=w+Math.imul(ke,pe)|0,c=c+Math.imul(ke,de)|0,c=c+Math.imul(fe,pe)|0,T=T+Math.imul(fe,de)|0,w=w+Math.imul(ie,$e)|0,c=c+Math.imul(ie,qe)|0,c=c+Math.imul(me,$e)|0,T=T+Math.imul(me,qe)|0,w=w+Math.imul(R,tt)|0,c=c+Math.imul(R,nt)|0,c=c+Math.imul(q,tt)|0,T=T+Math.imul(q,nt)|0;var Tr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(he,xe),c=Math.imul(he,K),c=c+Math.imul(Ie,xe)|0,T=Math.imul(Ie,K),w=w+Math.imul(oe,F)|0,c=c+Math.imul(oe,te)|0,c=c+Math.imul(se,F)|0,T=T+Math.imul(se,te)|0,w=w+Math.imul(Ae,pe)|0,c=c+Math.imul(Ae,de)|0,c=c+Math.imul(Be,pe)|0,T=T+Math.imul(Be,de)|0,w=w+Math.imul(ke,$e)|0,c=c+Math.imul(ke,qe)|0,c=c+Math.imul(fe,$e)|0,T=T+Math.imul(fe,qe)|0,w=w+Math.imul(ie,tt)|0,c=c+Math.imul(ie,nt)|0,c=c+Math.imul(me,tt)|0,T=T+Math.imul(me,nt)|0,w=w+Math.imul(R,bt)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(q,bt)|0,T=T+Math.imul(q,re)|0;var wn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,w=Math.imul(le,xe),c=Math.imul(le,K),c=c+Math.imul(Ee,xe)|0,T=Math.imul(Ee,K),w=w+Math.imul(he,F)|0,c=c+Math.imul(he,te)|0,c=c+Math.imul(Ie,F)|0,T=T+Math.imul(Ie,te)|0,w=w+Math.imul(oe,pe)|0,c=c+Math.imul(oe,de)|0,c=c+Math.imul(se,pe)|0,T=T+Math.imul(se,de)|0,w=w+Math.imul(Ae,$e)|0,c=c+Math.imul(Ae,qe)|0,c=c+Math.imul(Be,$e)|0,T=T+Math.imul(Be,qe)|0,w=w+Math.imul(ke,tt)|0,c=c+Math.imul(ke,nt)|0,c=c+Math.imul(fe,tt)|0,T=T+Math.imul(fe,nt)|0,w=w+Math.imul(ie,bt)|0,c=c+Math.imul(ie,re)|0,c=c+Math.imul(me,bt)|0,T=T+Math.imul(me,re)|0,w=w+Math.imul(R,Ze)|0,c=c+Math.imul(R,Ve)|0,c=c+Math.imul(q,Ze)|0,T=T+Math.imul(q,Ve)|0;var En=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(En>>>26)|0,En&=67108863,w=Math.imul(De,xe),c=Math.imul(De,K),c=c+Math.imul(We,xe)|0,T=Math.imul(We,K),w=w+Math.imul(le,F)|0,c=c+Math.imul(le,te)|0,c=c+Math.imul(Ee,F)|0,T=T+Math.imul(Ee,te)|0,w=w+Math.imul(he,pe)|0,c=c+Math.imul(he,de)|0,c=c+Math.imul(Ie,pe)|0,T=T+Math.imul(Ie,de)|0,w=w+Math.imul(oe,$e)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(se,$e)|0,T=T+Math.imul(se,qe)|0,w=w+Math.imul(Ae,tt)|0,c=c+Math.imul(Ae,nt)|0,c=c+Math.imul(Be,tt)|0,T=T+Math.imul(Be,nt)|0,w=w+Math.imul(ke,bt)|0,c=c+Math.imul(ke,re)|0,c=c+Math.imul(fe,bt)|0,T=T+Math.imul(fe,re)|0,w=w+Math.imul(ie,Ze)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(me,Ze)|0,T=T+Math.imul(me,Ve)|0,w=w+Math.imul(R,mt)|0,c=c+Math.imul(R,yt)|0,c=c+Math.imul(q,mt)|0,T=T+Math.imul(q,yt)|0;var Tn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(we,xe),c=Math.imul(we,K),c=c+Math.imul(Fe,xe)|0,T=Math.imul(Fe,K),w=w+Math.imul(De,F)|0,c=c+Math.imul(De,te)|0,c=c+Math.imul(We,F)|0,T=T+Math.imul(We,te)|0,w=w+Math.imul(le,pe)|0,c=c+Math.imul(le,de)|0,c=c+Math.imul(Ee,pe)|0,T=T+Math.imul(Ee,de)|0,w=w+Math.imul(he,$e)|0,c=c+Math.imul(he,qe)|0,c=c+Math.imul(Ie,$e)|0,T=T+Math.imul(Ie,qe)|0,w=w+Math.imul(oe,tt)|0,c=c+Math.imul(oe,nt)|0,c=c+Math.imul(se,tt)|0,T=T+Math.imul(se,nt)|0,w=w+Math.imul(Ae,bt)|0,c=c+Math.imul(Ae,re)|0,c=c+Math.imul(Be,bt)|0,T=T+Math.imul(Be,re)|0,w=w+Math.imul(ke,Ze)|0,c=c+Math.imul(ke,Ve)|0,c=c+Math.imul(fe,Ze)|0,T=T+Math.imul(fe,Ve)|0,w=w+Math.imul(ie,mt)|0,c=c+Math.imul(ie,yt)|0,c=c+Math.imul(me,mt)|0,T=T+Math.imul(me,yt)|0,w=w+Math.imul(R,_t)|0,c=c+Math.imul(R,xt)|0,c=c+Math.imul(q,_t)|0,T=T+Math.imul(q,xt)|0;var kn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,w=Math.imul(ae,xe),c=Math.imul(ae,K),c=c+Math.imul(_e,xe)|0,T=Math.imul(_e,K),w=w+Math.imul(we,F)|0,c=c+Math.imul(we,te)|0,c=c+Math.imul(Fe,F)|0,T=T+Math.imul(Fe,te)|0,w=w+Math.imul(De,pe)|0,c=c+Math.imul(De,de)|0,c=c+Math.imul(We,pe)|0,T=T+Math.imul(We,de)|0,w=w+Math.imul(le,$e)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(Ee,$e)|0,T=T+Math.imul(Ee,qe)|0,w=w+Math.imul(he,tt)|0,c=c+Math.imul(he,nt)|0,c=c+Math.imul(Ie,tt)|0,T=T+Math.imul(Ie,nt)|0,w=w+Math.imul(oe,bt)|0,c=c+Math.imul(oe,re)|0,c=c+Math.imul(se,bt)|0,T=T+Math.imul(se,re)|0,w=w+Math.imul(Ae,Ze)|0,c=c+Math.imul(Ae,Ve)|0,c=c+Math.imul(Be,Ze)|0,T=T+Math.imul(Be,Ve)|0,w=w+Math.imul(ke,mt)|0,c=c+Math.imul(ke,yt)|0,c=c+Math.imul(fe,mt)|0,T=T+Math.imul(fe,yt)|0,w=w+Math.imul(ie,_t)|0,c=c+Math.imul(ie,xt)|0,c=c+Math.imul(me,_t)|0,T=T+Math.imul(me,xt)|0,w=w+Math.imul(R,wt)|0,c=c+Math.imul(R,St)|0,c=c+Math.imul(q,wt)|0,T=T+Math.imul(q,St)|0;var An=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(ae,F),c=Math.imul(ae,te),c=c+Math.imul(_e,F)|0,T=Math.imul(_e,te),w=w+Math.imul(we,pe)|0,c=c+Math.imul(we,de)|0,c=c+Math.imul(Fe,pe)|0,T=T+Math.imul(Fe,de)|0,w=w+Math.imul(De,$e)|0,c=c+Math.imul(De,qe)|0,c=c+Math.imul(We,$e)|0,T=T+Math.imul(We,qe)|0,w=w+Math.imul(le,tt)|0,c=c+Math.imul(le,nt)|0,c=c+Math.imul(Ee,tt)|0,T=T+Math.imul(Ee,nt)|0,w=w+Math.imul(he,bt)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Ie,bt)|0,T=T+Math.imul(Ie,re)|0,w=w+Math.imul(oe,Ze)|0,c=c+Math.imul(oe,Ve)|0,c=c+Math.imul(se,Ze)|0,T=T+Math.imul(se,Ve)|0,w=w+Math.imul(Ae,mt)|0,c=c+Math.imul(Ae,yt)|0,c=c+Math.imul(Be,mt)|0,T=T+Math.imul(Be,yt)|0,w=w+Math.imul(ke,_t)|0,c=c+Math.imul(ke,xt)|0,c=c+Math.imul(fe,_t)|0,T=T+Math.imul(fe,xt)|0,w=w+Math.imul(ie,wt)|0,c=c+Math.imul(ie,St)|0,c=c+Math.imul(me,wt)|0,T=T+Math.imul(me,St)|0;var Or=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Or>>>26)|0,Or&=67108863,w=Math.imul(ae,pe),c=Math.imul(ae,de),c=c+Math.imul(_e,pe)|0,T=Math.imul(_e,de),w=w+Math.imul(we,$e)|0,c=c+Math.imul(we,qe)|0,c=c+Math.imul(Fe,$e)|0,T=T+Math.imul(Fe,qe)|0,w=w+Math.imul(De,tt)|0,c=c+Math.imul(De,nt)|0,c=c+Math.imul(We,tt)|0,T=T+Math.imul(We,nt)|0,w=w+Math.imul(le,bt)|0,c=c+Math.imul(le,re)|0,c=c+Math.imul(Ee,bt)|0,T=T+Math.imul(Ee,re)|0,w=w+Math.imul(he,Ze)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(Ie,Ze)|0,T=T+Math.imul(Ie,Ve)|0,w=w+Math.imul(oe,mt)|0,c=c+Math.imul(oe,yt)|0,c=c+Math.imul(se,mt)|0,T=T+Math.imul(se,yt)|0,w=w+Math.imul(Ae,_t)|0,c=c+Math.imul(Ae,xt)|0,c=c+Math.imul(Be,_t)|0,T=T+Math.imul(Be,xt)|0,w=w+Math.imul(ke,wt)|0,c=c+Math.imul(ke,St)|0,c=c+Math.imul(fe,wt)|0,T=T+Math.imul(fe,St)|0;var en=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(en>>>26)|0,en&=67108863,w=Math.imul(ae,$e),c=Math.imul(ae,qe),c=c+Math.imul(_e,$e)|0,T=Math.imul(_e,qe),w=w+Math.imul(we,tt)|0,c=c+Math.imul(we,nt)|0,c=c+Math.imul(Fe,tt)|0,T=T+Math.imul(Fe,nt)|0,w=w+Math.imul(De,bt)|0,c=c+Math.imul(De,re)|0,c=c+Math.imul(We,bt)|0,T=T+Math.imul(We,re)|0,w=w+Math.imul(le,Ze)|0,c=c+Math.imul(le,Ve)|0,c=c+Math.imul(Ee,Ze)|0,T=T+Math.imul(Ee,Ve)|0,w=w+Math.imul(he,mt)|0,c=c+Math.imul(he,yt)|0,c=c+Math.imul(Ie,mt)|0,T=T+Math.imul(Ie,yt)|0,w=w+Math.imul(oe,_t)|0,c=c+Math.imul(oe,xt)|0,c=c+Math.imul(se,_t)|0,T=T+Math.imul(se,xt)|0,w=w+Math.imul(Ae,wt)|0,c=c+Math.imul(Ae,St)|0,c=c+Math.imul(Be,wt)|0,T=T+Math.imul(Be,St)|0;var Kr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(ae,tt),c=Math.imul(ae,nt),c=c+Math.imul(_e,tt)|0,T=Math.imul(_e,nt),w=w+Math.imul(we,bt)|0,c=c+Math.imul(we,re)|0,c=c+Math.imul(Fe,bt)|0,T=T+Math.imul(Fe,re)|0,w=w+Math.imul(De,Ze)|0,c=c+Math.imul(De,Ve)|0,c=c+Math.imul(We,Ze)|0,T=T+Math.imul(We,Ve)|0,w=w+Math.imul(le,mt)|0,c=c+Math.imul(le,yt)|0,c=c+Math.imul(Ee,mt)|0,T=T+Math.imul(Ee,yt)|0,w=w+Math.imul(he,_t)|0,c=c+Math.imul(he,xt)|0,c=c+Math.imul(Ie,_t)|0,T=T+Math.imul(Ie,xt)|0,w=w+Math.imul(oe,wt)|0,c=c+Math.imul(oe,St)|0,c=c+Math.imul(se,wt)|0,T=T+Math.imul(se,St)|0;var Mn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,w=Math.imul(ae,bt),c=Math.imul(ae,re),c=c+Math.imul(_e,bt)|0,T=Math.imul(_e,re),w=w+Math.imul(we,Ze)|0,c=c+Math.imul(we,Ve)|0,c=c+Math.imul(Fe,Ze)|0,T=T+Math.imul(Fe,Ve)|0,w=w+Math.imul(De,mt)|0,c=c+Math.imul(De,yt)|0,c=c+Math.imul(We,mt)|0,T=T+Math.imul(We,yt)|0,w=w+Math.imul(le,_t)|0,c=c+Math.imul(le,xt)|0,c=c+Math.imul(Ee,_t)|0,T=T+Math.imul(Ee,xt)|0,w=w+Math.imul(he,wt)|0,c=c+Math.imul(he,St)|0,c=c+Math.imul(Ie,wt)|0,T=T+Math.imul(Ie,St)|0;var ln=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ln>>>26)|0,ln&=67108863,w=Math.imul(ae,Ze),c=Math.imul(ae,Ve),c=c+Math.imul(_e,Ze)|0,T=Math.imul(_e,Ve),w=w+Math.imul(we,mt)|0,c=c+Math.imul(we,yt)|0,c=c+Math.imul(Fe,mt)|0,T=T+Math.imul(Fe,yt)|0,w=w+Math.imul(De,_t)|0,c=c+Math.imul(De,xt)|0,c=c+Math.imul(We,_t)|0,T=T+Math.imul(We,xt)|0,w=w+Math.imul(le,wt)|0,c=c+Math.imul(le,St)|0,c=c+Math.imul(Ee,wt)|0,T=T+Math.imul(Ee,St)|0;var pn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(ae,mt),c=Math.imul(ae,yt),c=c+Math.imul(_e,mt)|0,T=Math.imul(_e,yt),w=w+Math.imul(we,_t)|0,c=c+Math.imul(we,xt)|0,c=c+Math.imul(Fe,_t)|0,T=T+Math.imul(Fe,xt)|0,w=w+Math.imul(De,wt)|0,c=c+Math.imul(De,St)|0,c=c+Math.imul(We,wt)|0,T=T+Math.imul(We,St)|0;var vn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(vn>>>26)|0,vn&=67108863,w=Math.imul(ae,_t),c=Math.imul(ae,xt),c=c+Math.imul(_e,_t)|0,T=Math.imul(_e,xt),w=w+Math.imul(we,wt)|0,c=c+Math.imul(we,St)|0,c=c+Math.imul(Fe,wt)|0,T=T+Math.imul(Fe,St)|0;var un=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(un>>>26)|0,un&=67108863,w=Math.imul(ae,wt),c=Math.imul(ae,St),c=c+Math.imul(_e,wt)|0,T=Math.imul(_e,St);var tn=(C+w|0)+((c&8191)<<13)|0;if(C=(T+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,k[0]=sn,k[1]=ir,k[2]=nr,k[3]=Lr,k[4]=Tr,k[5]=wn,k[6]=En,k[7]=Tn,k[8]=kn,k[9]=An,k[10]=Or,k[11]=en,k[12]=Kr,k[13]=Mn,k[14]=ln,k[15]=pn,k[16]=vn,k[17]=un,k[18]=tn,C!==0)k[19]=C,x.length++;return x};if(!Math.imul)N=O;function P(f,p,x){x.negative=p.negative^f.negative,x.length=f.length+p.length;var h=0,S=0;for(var k=0;k<x.length-1;k++){var C=S;S=0;var w=h&67108863,c=Math.min(k,p.length-1);for(var T=Math.max(0,k-f.length+1);T<=c;T++){var z=k-T,R=f.words[z]|0,q=p.words[T]|0,Q=R*q,ie=Q&67108863;C=C+(Q/67108864|0)|0,ie=ie+w|0,w=ie&67108863,C=C+(ie>>>26)|0,S+=C>>>26,C&=67108863}x.words[k]=w,h=C,C=S}if(h!==0)x.words[k]=h;else x.length--;return x.strip()}function j(f,p,x){var h=new Z;return h.mulp(f,p,x)}s.prototype.mulTo=function(f,p){var x,h=this.length+f.length;if(this.length===10&&f.length===10)x=N(this,f,p);else if(h<63)x=O(this,f,p);else if(h<1024)x=P(this,f,p);else x=j(this,f,p);return x};function Z(f,p){this.x=f,this.y=p}Z.prototype.makeRBT=function(f){var p=Array(f),x=s.prototype._countBits(f)-1;for(var h=0;h<f;h++)p[h]=this.revBin(h,x,f);return p},Z.prototype.revBin=function(f,p,x){if(f===0||f===x-1)return f;var h=0;for(var S=0;S<p;S++)h|=(f&1)<<p-S-1,f>>=1;return h},Z.prototype.permute=function(f,p,x,h,S,k){for(var C=0;C<k;C++)h[C]=p[f[C]],S[C]=x[f[C]]},Z.prototype.transform=function(f,p,x,h,S,k){this.permute(k,f,p,x,h,S);for(var C=1;C<S;C<<=1){var w=C<<1,c=Math.cos(2*Math.PI/w),T=Math.sin(2*Math.PI/w);for(var z=0;z<S;z+=w){var R=c,q=T;for(var Q=0;Q<C;Q++){var ie=x[z+Q],me=h[z+Q],Je=x[z+Q+C],ke=h[z+Q+C],fe=R*Je-q*ke;if(ke=R*ke+q*Je,Je=fe,x[z+Q]=ie+Je,h[z+Q]=me+ke,x[z+Q+C]=ie-Je,h[z+Q+C]=me-ke,Q!==w)fe=c*R-T*q,q=c*q+T*R,R=fe}}}},Z.prototype.guessLen13b=function(f,p){var x=Math.max(p,f)|1,h=x&1,S=0;for(x=x/2|0;x;x=x>>>1)S++;return 1<<S+1+h},Z.prototype.conjugate=function(f,p,x){if(x<=1)return;for(var h=0;h<x/2;h++){var S=f[h];f[h]=f[x-h-1],f[x-h-1]=S,S=p[h],p[h]=-p[x-h-1],p[x-h-1]=-S}},Z.prototype.normalize13b=function(f,p){var x=0;for(var h=0;h<p/2;h++){var S=Math.round(f[2*h+1]/p)*8192+Math.round(f[2*h]/p)+x;if(f[h]=S&67108863,S<67108864)x=0;else x=S/67108864|0}return f},Z.prototype.convert13b=function(f,p,x,h){var S=0;for(var k=0;k<p;k++)S=S+(f[k]|0),x[2*k]=S&8191,S=S>>>13,x[2*k+1]=S&8191,S=S>>>13;for(k=2*p;k<h;++k)x[k]=0;n(S===0),n((S&-8192)===0)},Z.prototype.stub=function(f){var p=Array(f);for(var x=0;x<f;x++)p[x]=0;return p},Z.prototype.mulp=function(f,p,x){var h=2*this.guessLen13b(f.length,p.length),S=this.makeRBT(h),k=this.stub(h),C=Array(h),w=Array(h),c=Array(h),T=Array(h),z=Array(h),R=Array(h),q=x.words;q.length=h,this.convert13b(f.words,f.length,C,h),this.convert13b(p.words,p.length,T,h),this.transform(C,k,w,c,h,S),this.transform(T,k,z,R,h,S);for(var Q=0;Q<h;Q++){var ie=w[Q]*z[Q]-c[Q]*R[Q];c[Q]=w[Q]*R[Q]+c[Q]*z[Q],w[Q]=ie}return this.conjugate(w,c,h),this.transform(w,c,q,k,h,S),this.conjugate(q,k,h),this.normalize13b(q,h),x.negative=f.negative^p.negative,x.length=f.length+p.length,x.strip()},s.prototype.mul=function(f){var p=new s(null);return p.words=Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=Array(this.length+f.length),j(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){n(typeof f==="number"),n(f<67108864);var p=0;for(var x=0;x<this.length;x++){var h=(this.words[x]|0)*f,S=(h&67108863)+(p&67108863);p>>=26,p+=h/67108864|0,p+=S>>>26,this.words[x]=S&67108863}if(p!==0)this.words[x]=p,this.length++;return this.length=f===0?1:this.length,this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=I(f);if(p.length===0)return new s(1);var x=this;for(var h=0;h<p.length;h++,x=x.sqr())if(p[h]!==0)break;if(++h<p.length)for(var S=x.sqr();h<p.length;h++,S=S.sqr()){if(p[h]===0)continue;x=x.mul(S)}return x},s.prototype.iushln=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=67108863>>>26-p<<26-p,S;if(p!==0){var k=0;for(S=0;S<this.length;S++){var C=this.words[S]&h,w=(this.words[S]|0)-C<<p;this.words[S]=w|k,k=C>>>26-p}if(k)this.words[S]=k,this.length++}if(x!==0){for(S=this.length-1;S>=0;S--)this.words[S+x]=this.words[S];for(S=0;S<x;S++)this.words[S]=0;this.length+=x}return this.strip()},s.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},s.prototype.iushrn=function(f,p,x){n(typeof f==="number"&&f>=0);var h;if(p)h=(p-p%26)/26;else h=0;var S=f%26,k=Math.min((f-S)/26,this.length),C=67108863^67108863>>>S<<S,w=x;if(h-=k,h=Math.max(0,h),w){for(var c=0;c<k;c++)w.words[c]=this.words[c];w.length=k}if(k===0);else if(this.length>k){this.length-=k;for(c=0;c<this.length;c++)this.words[c]=this.words[c+k]}else this.words[0]=0,this.length=1;var T=0;for(c=this.length-1;c>=0&&(T!==0||c>=h);c--){var z=this.words[c]|0;this.words[c]=T<<26-S|z>>>S,T=z&C}if(w&&T!==0)w.words[w.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},s.prototype.ishrn=function(f,p,x){return n(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return!1;var S=this.words[x];return!!(S&h)},s.prototype.imaskn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0)x++;if(this.length=Math.min(x,this.length),p!==0){var h=67108863^67108863>>>p<<p;this.words[this.length-1]&=h}return this.strip()},s.prototype.maskn=function(f){return this.clone().imaskn(f)},s.prototype.iaddn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.isubn(-f);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<f)return this.words[0]=f-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(f),this.negative=1,this}return this._iaddn(f)},s.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)if(this.words[p]-=67108864,p===this.length-1)this.words[p+1]=1;else this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(f){return this.clone().iaddn(f)},s.prototype.subn=function(f){return this.clone().isubn(f)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(f,p,x){var h=f.length+x,S;this._expand(h);var k,C=0;for(S=0;S<f.length;S++){k=(this.words[S+x]|0)+C;var w=(f.words[S]|0)*p;k-=w&67108863,C=(k>>26)-(w/67108864|0),this.words[S+x]=k&67108863}for(;S<this.length-x;S++)k=(this.words[S+x]|0)+C,C=k>>26,this.words[S+x]=k&67108863;if(C===0)return this.strip();n(C===-1),C=0;for(S=0;S<this.length;S++)k=-(this.words[S]|0)+C,C=k>>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,h=this.clone(),S=f,k=S.words[S.length-1]|0,C=this._countBits(k);if(x=26-C,x!==0)S=S.ushln(x),h.iushln(x),k=S.words[S.length-1]|0;var w=h.length-S.length,c;if(p!=="mod"){c=new s(null),c.length=w+1,c.words=Array(c.length);for(var T=0;T<c.length;T++)c.words[T]=0}var z=h.clone()._ishlnsubmul(S,1,w);if(z.negative===0){if(h=z,c)c.words[w]=1}for(var R=w-1;R>=0;R--){var q=(h.words[S.length+R]|0)*67108864+(h.words[S.length+R-1]|0);q=Math.min(q/k|0,67108863),h._ishlnsubmul(S,q,R);while(h.negative!==0)if(q--,h.negative=0,h._ishlnsubmul(S,1,R),!h.isZero())h.negative^=1;if(c)c.words[R]=q}if(c)c.strip();if(h.strip(),p!=="div"&&x!==0)h.iushrn(x);return{div:c||null,mod:h}},s.prototype.divmod=function(f,p,x){if(n(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var h,S,k;if(this.negative!==0&&f.negative===0){if(k=this.neg().divmod(f,p),p!=="mod")h=k.div.neg();if(p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.iadd(f)}return{div:h,mod:S}}if(this.negative===0&&f.negative!==0){if(k=this.divmod(f.neg(),p),p!=="mod")h=k.div.neg();return{div:h,mod:k.mod}}if((this.negative&f.negative)!==0){if(k=this.neg().divmod(f.neg(),p),p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.isub(f)}return{div:k.div,mod:S}}if(f.length>this.length||this.cmp(f)<0)return{div:new s(0),mod:this};if(f.length===1){if(p==="div")return{div:this.divn(f.words[0]),mod:null};if(p==="mod")return{div:null,mod:new s(this.modn(f.words[0]))};return{div:this.divn(f.words[0]),mod:new s(this.modn(f.words[0]))}}return this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,h=f.ushrn(1),S=f.andln(1),k=x.cmp(h);if(k<0||S===1&&k===0)return p.div;return p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(f){n(f<=67108863);var p=67108864%f,x=0;for(var h=this.length-1;h>=0;h--)x=(p*x+(this.words[h]|0))%f;return x},s.prototype.idivn=function(f){n(f<=67108863);var p=0;for(var x=this.length-1;x>=0;x--){var h=(this.words[x]|0)+p*67108864;this.words[x]=h/f|0,p=h%f}return this.strip()},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=new s(0),C=new s(1),w=0;while(p.isEven()&&x.isEven())p.iushrn(1),x.iushrn(1),++w;var c=x.clone(),T=p.clone();while(!p.isZero()){for(var z=0,R=1;(p.words[0]&R)===0&&z<26;++z,R<<=1);if(z>0){p.iushrn(z);while(z-- >0){if(h.isOdd()||S.isOdd())h.iadd(c),S.isub(T);h.iushrn(1),S.iushrn(1)}}for(var q=0,Q=1;(x.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0){x.iushrn(q);while(q-- >0){if(k.isOdd()||C.isOdd())k.iadd(c),C.isub(T);k.iushrn(1),C.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(k),S.isub(C);else x.isub(p),k.isub(h),C.isub(S)}return{a:k,b:C,gcd:x.iushln(w)}},s.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=x.clone();while(p.cmpn(1)>0&&x.cmpn(1)>0){for(var C=0,w=1;(p.words[0]&w)===0&&C<26;++C,w<<=1);if(C>0){p.iushrn(C);while(C-- >0){if(h.isOdd())h.iadd(k);h.iushrn(1)}}for(var c=0,T=1;(x.words[0]&T)===0&&c<26;++c,T<<=1);if(c>0){x.iushrn(c);while(c-- >0){if(S.isOdd())S.iadd(k);S.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(S);else x.isub(p),S.isub(h)}var z;if(p.cmpn(1)===0)z=h;else z=S;if(z.cmpn(0)<0)z.iadd(f);return z},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var h=0;p.isEven()&&x.isEven();h++)p.iushrn(1),x.iushrn(1);do{while(p.isEven())p.iushrn(1);while(x.isEven())x.iushrn(1);var S=p.cmp(x);if(S<0){var k=p;p=x,x=k}else if(S===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(h)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){n(typeof f==="number");var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return this._expand(x+1),this.words[x]|=h,this;var S=h;for(var k=x;S!==0&&k<this.length;k++){var C=this.words[k]|0;C+=S,S=C>>>26,C&=67108863,this.words[k]=C}if(S!==0)this.words[k]=S,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var x;if(this.length>1)x=1;else{if(p)f=-f;n(f<=67108863,"Number is too big");var h=this.words[0]|0;x=h===f?0:h<f?-1:1}if(this.negative!==0)return-x|0;return x},s.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);if(this.negative!==0)return-p|0;return p},s.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;var p=0;for(var x=this.length-1;x>=0;x--){var h=this.words[x]|0,S=f.words[x]|0;if(h===S)continue;if(h<S)p=-1;else if(h>S)p=1;break}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new Y(f)},s.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var V={k256:null,p224:null,p192:null,p25519:null};function W(f,p){this.name=f,this.p=new s(p,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}W.prototype._tmp=function(){var f=new s(null);return f.words=Array(Math.ceil(this.n/13)),f},W.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var h=x<this.n?-1:p.ucmp(this.p);if(h===0)p.words[0]=0,p.length=1;else if(h>0)p.isub(this.p);else if(p.strip!==void 0)p.strip();else p._strip();return p},W.prototype.split=function(f,p){f.iushrn(this.n,0,p)},W.prototype.imulK=function(f){return f.imul(this.k)};function J(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(J,W),J.prototype.split=function(f,p){var x=4194303,h=Math.min(f.length,9);for(var S=0;S<h;S++)p.words[S]=f.words[S];if(p.length=h,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];p.words[p.length++]=k&x;for(S=10;S<f.length;S++){var C=f.words[S]|0;f.words[S-10]=(C&x)<<4|k>>>22,k=C}if(k>>>=22,f.words[S-10]=k,k===0&&f.length>10)f.length-=10;else f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;var p=0;for(var x=0;x<f.length;x++){var h=f.words[x]|0;p+=h*977,f.words[x]=p&67108863,p=h*64+(p/67108864|0)}if(f.words[f.length-1]===0){if(f.length--,f.words[f.length-1]===0)f.length--}return f};function ve(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(ve,W);function ce(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(ce,W);function Me(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(Me,W),Me.prototype.imulK=function(f){var p=0;for(var x=0;x<f.length;x++){var h=(f.words[x]|0)*19+p,S=h&67108863;h>>>=26,f.words[x]=S,p=h}if(p!==0)f.words[f.length++]=p;return f},s._prime=function(f){if(V[f])return V[f];var p;if(f==="k256")p=new J;else if(f==="p224")p=new ve;else if(f==="p192")p=new ce;else if(f==="p25519")p=new Me;else throw Error("Unknown prime "+f);return V[f]=p,p};function Y(f){if(typeof f==="string"){var p=s._prime(f);this.m=p.p,this.prime=p}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}Y.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},Y.prototype.imod=function(f){if(this.prime)return this.prime.ireduce(f)._forceRed(this);return f.umod(this.m)._forceRed(this)},Y.prototype.neg=function(f){if(f.isZero())return f.clone();return this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x._forceRed(this)},Y.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x},Y.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x._forceRed(this)},Y.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x},Y.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},Y.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},Y.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}var h=this.m.subn(1),S=0;while(!h.isZero()&&h.andln(1)===0)S++,h.iushrn(1);n(!h.isZero());var k=new s(1).toRed(this),C=k.redNeg(),w=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new s(2*c*c).toRed(this);while(this.pow(c,w).cmp(C)!==0)c.redIAdd(C);var T=this.pow(c,h),z=this.pow(f,h.addn(1).iushrn(1)),R=this.pow(f,h),q=S;while(R.cmp(k)!==0){var Q=R;for(var ie=0;Q.cmp(k)!==0;ie++)Q=Q.redSqr();n(ie<q);var me=this.pow(T,new s(1).iushln(q-ie-1));z=z.redMul(me),T=me.redSqr(),R=R.redMul(T),q=ie}return z},Y.prototype.invm=function(f){var p=f._invmp(this.m);if(p.negative!==0)return p.negative=0,this.imod(p).redNeg();else return this.imod(p)},Y.prototype.pow=function(f,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var x=4,h=Array(1<<x);h[0]=new s(1).toRed(this),h[1]=f;for(var S=2;S<h.length;S++)h[S]=this.mul(h[S-1],f);var k=h[0],C=0,w=0,c=p.bitLength()%26;if(c===0)c=26;for(S=p.length-1;S>=0;S--){var T=p.words[S];for(var z=c-1;z>=0;z--){var R=T>>z&1;if(k!==h[0])k=this.sqr(k);if(R===0&&C===0){w=0;continue}if(C<<=1,C|=R,w++,w!==x&&(S!==0||z!==0))continue;k=this.mul(k,h[C]),w=0,C=0}c=26}return k},Y.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},Y.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new Te(f)};function Te(f){if(Y.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(Te,Y),Te.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Te.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},Te.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof t>"u"||t,e)}),TY=ct((e,t)=>{var r=rC(),a=Qi().Buffer;function n(l,s){return a.from(l.toRed(r.mont(s.modulus)).redPow(new r(s.publicExponent)).fromRed().toArray())}t.exports=n}),y1e=ct((e,t)=>{(function(r,a){function n(h,S){if(!h)throw Error(S||"Assertion failed")}function l(h,S){h.super_=S;var k=function(){};k.prototype=S.prototype,h.prototype=new k,h.prototype.constructor=h}function s(h,S,k){if(s.isBN(h))return h;if(this.negative=0,this.words=null,this.length=0,this.red=null,h!==null){if(S==="le"||S==="be")k=S,S=10;this._init(h||0,S||10,k||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(h){}s.isBN=function(h){if(h instanceof s)return!0;return h!==null&&typeof h==="object"&&h.constructor.wordSize===s.wordSize&&Array.isArray(h.words)},s.max=function(h,S){if(h.cmp(S)>0)return h;return S},s.min=function(h,S){if(h.cmp(S)<0)return h;return S},s.prototype._init=function(h,S,k){if(typeof h==="number")return this._initNumber(h,S,k);if(typeof h==="object")return this._initArray(h,S,k);if(S==="hex")S=16;n(S===(S|0)&&S>=2&&S<=36),h=h.toString().replace(/\s+/g,"");var C=0;if(h[0]==="-")C++,this.negative=1;if(C<h.length){if(S===16)this._parseHex(h,C,k);else if(this._parseBase(h,S,C),k==="le")this._initArray(this.toArray(),S,k)}},s.prototype._initNumber=function(h,S,k){if(h<0)this.negative=1,h=-h;if(h<67108864)this.words=[h&67108863],this.length=1;else if(h<4503599627370496)this.words=[h&67108863,h/67108864&67108863],this.length=2;else n(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3;if(k!=="le")return;this._initArray(this.toArray(),S,k)},s.prototype._initArray=function(h,S,k){if(n(typeof h.length==="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=Array(this.length);for(var C=0;C<this.length;C++)this.words[C]=0;var w,c,T=0;if(k==="be"){for(C=h.length-1,w=0;C>=0;C-=3)if(c=h[C]|h[C-1]<<8|h[C-2]<<16,this.words[w]|=c<<T&67108863,this.words[w+1]=c>>>26-T&67108863,T+=24,T>=26)T-=26,w++}else if(k==="le"){for(C=0,w=0;C<h.length;C+=3)if(c=h[C]|h[C+1]<<8|h[C+2]<<16,this.words[w]|=c<<T&67108863,this.words[w+1]=c>>>26-T&67108863,T+=24,T>=26)T-=26,w++}return this._strip()};function b(h,S){var k=h.charCodeAt(S);if(k>=48&&k<=57)return k-48;else if(k>=65&&k<=70)return k-55;else if(k>=97&&k<=102)return k-87;else n(!1,"Invalid character in "+h)}function y(h,S,k){var C=b(h,k);if(k-1>=S)C|=b(h,k-1)<<4;return C}s.prototype._parseHex=function(h,S,k){this.length=Math.ceil((h.length-S)/6),this.words=Array(this.length);for(var C=0;C<this.length;C++)this.words[C]=0;var w=0,c=0,T;if(k==="be")for(C=h.length-1;C>=S;C-=2)if(T=y(h,S,C)<<w,this.words[c]|=T&67108863,w>=18)w-=18,c+=1,this.words[c]|=T>>>26;else w+=8;else{var z=h.length-S;for(C=z%2===0?S+1:S;C<h.length;C+=2)if(T=y(h,S,C)<<w,this.words[c]|=T&67108863,w>=18)w-=18,c+=1,this.words[c]|=T>>>26;else w+=8}this._strip()};function v(h,S,k,C){var w=0,c=0,T=Math.min(h.length,k);for(var z=S;z<T;z++){var R=h.charCodeAt(z)-48;if(w*=C,R>=49)c=R-49+10;else if(R>=17)c=R-17+10;else c=R;n(R>=0&&c<C,"Invalid character"),w+=c}return w}s.prototype._parseBase=function(h,S,k){this.words=[0],this.length=1;for(var C=0,w=1;w<=67108863;w*=S)C++;C--,w=w/S|0;var c=h.length-k,T=c%C,z=Math.min(c,c-T)+k,R=0;for(var q=k;q<z;q+=C)if(R=v(h,q,q+C,S),this.imuln(w),this.words[0]+R<67108864)this.words[0]+=R;else this._iaddn(R);if(T!==0){var Q=1;R=v(h,q,h.length,S);for(q=0;q<T;q++)Q*=S;if(this.imuln(Q),this.words[0]+R<67108864)this.words[0]+=R;else this._iaddn(R)}this._strip()},s.prototype.copy=function(h){h.words=Array(this.length);for(var S=0;S<this.length;S++)h.words[S]=this.words[S];h.length=this.length,h.negative=this.negative,h.red=this.red};function g(h,S){h.words=S.words,h.length=S.length,h.negative=S.negative,h.red=S.red}if(s.prototype._move=function(h){g(h,this)},s.prototype.clone=function(){var h=new s(null);return this.copy(h),h},s.prototype._expand=function(h){while(this.length<h)this.words[this.length++]=0;return this},s.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=_}catch(h){s.prototype.inspect=_}else s.prototype.inspect=_;function _(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var A=["","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"],I=[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],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(h,S){h=h||10,S=S|0||1;var k;if(h===16||h==="hex"){k="";var C=0,w=0;for(var c=0;c<this.length;c++){var T=this.words[c],z=((T<<C|w)&16777215).toString(16);if(w=T>>>24-C&16777215,C+=2,C>=26)C-=26,c--;if(w!==0||c!==this.length-1)k=A[6-z.length]+z+k;else k=z+k}if(w!==0)k=w.toString(16)+k;while(k.length%S!==0)k="0"+k;if(this.negative!==0)k="-"+k;return k}if(h===(h|0)&&h>=2&&h<=36){var R=I[h],q=O[h];k="";var Q=this.clone();Q.negative=0;while(!Q.isZero()){var ie=Q.modrn(q).toString(h);if(Q=Q.idivn(q),!Q.isZero())k=A[R-ie.length]+ie+k;else k=ie+k}if(this.isZero())k="0"+k;while(k.length%S!==0)k="0"+k;if(this.negative!==0)k="-"+k;return k}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var h=this.words[0];if(this.length===2)h+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)h+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-h:h},s.prototype.toJSON=function(){return this.toString(16,2)},d)s.prototype.toBuffer=function(h,S){return this.toArrayLike(d,h,S)};s.prototype.toArray=function(h,S){return this.toArrayLike(Array,h,S)};var N=function(h,S){if(h.allocUnsafe)return h.allocUnsafe(S);return new h(S)};if(s.prototype.toArrayLike=function(h,S,k){this._strip();var C=this.byteLength(),w=k||Math.max(1,C);n(C<=w,"byte array longer than desired length"),n(w>0,"Requested array length <= 0");var c=N(h,w),T=S==="le"?"LE":"BE";return this["_toArrayLike"+T](c,C),c},s.prototype._toArrayLikeLE=function(h,S){var k=0,C=0;for(var w=0,c=0;w<this.length;w++){var T=this.words[w]<<c|C;if(h[k++]=T&255,k<h.length)h[k++]=T>>8&255;if(k<h.length)h[k++]=T>>16&255;if(c===6){if(k<h.length)h[k++]=T>>24&255;C=0,c=0}else C=T>>>24,c+=2}if(k<h.length){h[k++]=C;while(k<h.length)h[k++]=0}},s.prototype._toArrayLikeBE=function(h,S){var k=h.length-1,C=0;for(var w=0,c=0;w<this.length;w++){var T=this.words[w]<<c|C;if(h[k--]=T&255,k>=0)h[k--]=T>>8&255;if(k>=0)h[k--]=T>>16&255;if(c===6){if(k>=0)h[k--]=T>>24&255;C=0,c=0}else C=T>>>24,c+=2}if(k>=0){h[k--]=C;while(k>=0)h[k--]=0}},Math.clz32)s.prototype._countBits=function(h){return 32-Math.clz32(h)};else s.prototype._countBits=function(h){var S=h,k=0;if(S>=4096)k+=13,S>>>=13;if(S>=64)k+=7,S>>>=7;if(S>=8)k+=4,S>>>=4;if(S>=2)k+=2,S>>>=2;return k+S};s.prototype._zeroBits=function(h){if(h===0)return 26;var S=h,k=0;if((S&8191)===0)k+=13,S>>>=13;if((S&127)===0)k+=7,S>>>=7;if((S&15)===0)k+=4,S>>>=4;if((S&3)===0)k+=2,S>>>=2;if((S&1)===0)k++;return k},s.prototype.bitLength=function(){var h=this.words[this.length-1],S=this._countBits(h);return(this.length-1)*26+S};function P(h){var S=Array(h.bitLength());for(var k=0;k<S.length;k++){var C=k/26|0,w=k%26;S[k]=h.words[C]>>>w&1}return S}s.prototype.zeroBits=function(){if(this.isZero())return 0;var h=0;for(var S=0;S<this.length;S++){var k=this._zeroBits(this.words[S]);if(h+=k,k!==26)break}return h},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(h){if(this.negative!==0)return this.abs().inotn(h).iaddn(1);return this.clone()},s.prototype.fromTwos=function(h){if(this.testn(h-1))return this.notn(h).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(h){while(this.length<h.length)this.words[this.length++]=0;for(var S=0;S<h.length;S++)this.words[S]=this.words[S]|h.words[S];return this._strip()},s.prototype.ior=function(h){return n((this.negative|h.negative)===0),this.iuor(h)},s.prototype.or=function(h){if(this.length>h.length)return this.clone().ior(h);return h.clone().ior(this)},s.prototype.uor=function(h){if(this.length>h.length)return this.clone().iuor(h);return h.clone().iuor(this)},s.prototype.iuand=function(h){var S;if(this.length>h.length)S=h;else S=this;for(var k=0;k<S.length;k++)this.words[k]=this.words[k]&h.words[k];return this.length=S.length,this._strip()},s.prototype.iand=function(h){return n((this.negative|h.negative)===0),this.iuand(h)},s.prototype.and=function(h){if(this.length>h.length)return this.clone().iand(h);return h.clone().iand(this)},s.prototype.uand=function(h){if(this.length>h.length)return this.clone().iuand(h);return h.clone().iuand(this)},s.prototype.iuxor=function(h){var S,k;if(this.length>h.length)S=this,k=h;else S=h,k=this;for(var C=0;C<k.length;C++)this.words[C]=S.words[C]^k.words[C];if(this!==S)for(;C<S.length;C++)this.words[C]=S.words[C];return this.length=S.length,this._strip()},s.prototype.ixor=function(h){return n((this.negative|h.negative)===0),this.iuxor(h)},s.prototype.xor=function(h){if(this.length>h.length)return this.clone().ixor(h);return h.clone().ixor(this)},s.prototype.uxor=function(h){if(this.length>h.length)return this.clone().iuxor(h);return h.clone().iuxor(this)},s.prototype.inotn=function(h){n(typeof h==="number"&&h>=0);var S=Math.ceil(h/26)|0,k=h%26;if(this._expand(S),k>0)S--;for(var C=0;C<S;C++)this.words[C]=~this.words[C]&67108863;if(k>0)this.words[C]=~this.words[C]&67108863>>26-k;return this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,S){n(typeof h==="number"&&h>=0);var k=h/26|0,C=h%26;if(this._expand(k+1),S)this.words[k]=this.words[k]|1<<C;else this.words[k]=this.words[k]&~(1<<C);return this._strip()},s.prototype.iadd=function(h){var S;if(this.negative!==0&&h.negative===0)return this.negative=0,S=this.isub(h),this.negative^=1,this._normSign();else if(this.negative===0&&h.negative!==0)return h.negative=0,S=this.isub(h),h.negative=1,S._normSign();var k,C;if(this.length>h.length)k=this,C=h;else k=h,C=this;var w=0;for(var c=0;c<C.length;c++)S=(k.words[c]|0)+(C.words[c]|0)+w,this.words[c]=S&67108863,w=S>>>26;for(;w!==0&&c<k.length;c++)S=(k.words[c]|0)+w,this.words[c]=S&67108863,w=S>>>26;if(this.length=k.length,w!==0)this.words[this.length]=w,this.length++;else if(k!==this)for(;c<k.length;c++)this.words[c]=k.words[c];return this},s.prototype.add=function(h){var S;if(h.negative!==0&&this.negative===0)return h.negative=0,S=this.sub(h),h.negative^=1,S;else if(h.negative===0&&this.negative!==0)return this.negative=0,S=h.sub(this),this.negative=1,S;if(this.length>h.length)return this.clone().iadd(h);return h.clone().iadd(this)},s.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var S=this.iadd(h);return h.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var k=this.cmp(h);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var C,w;if(k>0)C=this,w=h;else C=h,w=this;var c=0;for(var T=0;T<w.length;T++)S=(C.words[T]|0)-(w.words[T]|0)+c,c=S>>26,this.words[T]=S&67108863;for(;c!==0&&T<C.length;T++)S=(C.words[T]|0)+c,c=S>>26,this.words[T]=S&67108863;if(c===0&&T<C.length&&C!==this)for(;T<C.length;T++)this.words[T]=C.words[T];if(this.length=Math.max(this.length,T),C!==this)this.negative=1;return this._strip()},s.prototype.sub=function(h){return this.clone().isub(h)};function j(h,S,k){k.negative=S.negative^h.negative;var C=h.length+S.length|0;k.length=C,C=C-1|0;var w=h.words[0]|0,c=S.words[0]|0,T=w*c,z=T&67108863,R=T/67108864|0;k.words[0]=z;for(var q=1;q<C;q++){var Q=R>>>26,ie=R&67108863,me=Math.min(q,S.length-1);for(var Je=Math.max(0,q-h.length+1);Je<=me;Je++){var ke=q-Je|0;w=h.words[ke]|0,c=S.words[Je]|0,T=w*c+ie,Q+=T/67108864|0,ie=T&67108863}k.words[q]=ie|0,R=Q|0}if(R!==0)k.words[q]=R|0;else k.length--;return k._strip()}var Z=function(h,S,k){var C=h.words,w=S.words,c=k.words,T=0,z,R,q,Q=C[0]|0,ie=Q&8191,me=Q>>>13,Je=C[1]|0,ke=Je&8191,fe=Je>>>13,be=C[2]|0,Ae=be&8191,Be=be>>>13,vt=C[3]|0,oe=vt&8191,se=vt>>>13,Ke=C[4]|0,he=Ke&8191,Ie=Ke>>>13,Qe=C[5]|0,le=Qe&8191,Ee=Qe>>>13,gt=C[6]|0,De=gt&8191,We=gt>>>13,Ye=C[7]|0,we=Ye&8191,Fe=Ye>>>13,L=C[8]|0,ae=L&8191,_e=L>>>13,ot=C[9]|0,xe=ot&8191,K=ot>>>13,Ge=w[0]|0,F=Ge&8191,te=Ge>>>13,Pe=w[1]|0,pe=Pe&8191,de=Pe>>>13,at=w[2]|0,$e=at&8191,qe=at>>>13,ht=w[3]|0,tt=ht&8191,nt=ht>>>13,Er=w[4]|0,bt=Er&8191,re=Er>>>13,ye=w[5]|0,Ze=ye&8191,Ve=ye>>>13,Dt=w[6]|0,mt=Dt&8191,yt=Dt>>>13,Qr=w[7]|0,_t=Qr&8191,xt=Qr>>>13,zr=w[8]|0,wt=zr&8191,St=zr>>>13,sn=w[9]|0,ir=sn&8191,nr=sn>>>13;k.negative=h.negative^S.negative,k.length=19,z=Math.imul(ie,F),R=Math.imul(ie,te),R=R+Math.imul(me,F)|0,q=Math.imul(me,te);var Lr=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,z=Math.imul(ke,F),R=Math.imul(ke,te),R=R+Math.imul(fe,F)|0,q=Math.imul(fe,te),z=z+Math.imul(ie,pe)|0,R=R+Math.imul(ie,de)|0,R=R+Math.imul(me,pe)|0,q=q+Math.imul(me,de)|0;var Tr=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,z=Math.imul(Ae,F),R=Math.imul(Ae,te),R=R+Math.imul(Be,F)|0,q=Math.imul(Be,te),z=z+Math.imul(ke,pe)|0,R=R+Math.imul(ke,de)|0,R=R+Math.imul(fe,pe)|0,q=q+Math.imul(fe,de)|0,z=z+Math.imul(ie,$e)|0,R=R+Math.imul(ie,qe)|0,R=R+Math.imul(me,$e)|0,q=q+Math.imul(me,qe)|0;var wn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(wn>>>26)|0,wn&=67108863,z=Math.imul(oe,F),R=Math.imul(oe,te),R=R+Math.imul(se,F)|0,q=Math.imul(se,te),z=z+Math.imul(Ae,pe)|0,R=R+Math.imul(Ae,de)|0,R=R+Math.imul(Be,pe)|0,q=q+Math.imul(Be,de)|0,z=z+Math.imul(ke,$e)|0,R=R+Math.imul(ke,qe)|0,R=R+Math.imul(fe,$e)|0,q=q+Math.imul(fe,qe)|0,z=z+Math.imul(ie,tt)|0,R=R+Math.imul(ie,nt)|0,R=R+Math.imul(me,tt)|0,q=q+Math.imul(me,nt)|0;var En=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(En>>>26)|0,En&=67108863,z=Math.imul(he,F),R=Math.imul(he,te),R=R+Math.imul(Ie,F)|0,q=Math.imul(Ie,te),z=z+Math.imul(oe,pe)|0,R=R+Math.imul(oe,de)|0,R=R+Math.imul(se,pe)|0,q=q+Math.imul(se,de)|0,z=z+Math.imul(Ae,$e)|0,R=R+Math.imul(Ae,qe)|0,R=R+Math.imul(Be,$e)|0,q=q+Math.imul(Be,qe)|0,z=z+Math.imul(ke,tt)|0,R=R+Math.imul(ke,nt)|0,R=R+Math.imul(fe,tt)|0,q=q+Math.imul(fe,nt)|0,z=z+Math.imul(ie,bt)|0,R=R+Math.imul(ie,re)|0,R=R+Math.imul(me,bt)|0,q=q+Math.imul(me,re)|0;var Tn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,z=Math.imul(le,F),R=Math.imul(le,te),R=R+Math.imul(Ee,F)|0,q=Math.imul(Ee,te),z=z+Math.imul(he,pe)|0,R=R+Math.imul(he,de)|0,R=R+Math.imul(Ie,pe)|0,q=q+Math.imul(Ie,de)|0,z=z+Math.imul(oe,$e)|0,R=R+Math.imul(oe,qe)|0,R=R+Math.imul(se,$e)|0,q=q+Math.imul(se,qe)|0,z=z+Math.imul(Ae,tt)|0,R=R+Math.imul(Ae,nt)|0,R=R+Math.imul(Be,tt)|0,q=q+Math.imul(Be,nt)|0,z=z+Math.imul(ke,bt)|0,R=R+Math.imul(ke,re)|0,R=R+Math.imul(fe,bt)|0,q=q+Math.imul(fe,re)|0,z=z+Math.imul(ie,Ze)|0,R=R+Math.imul(ie,Ve)|0,R=R+Math.imul(me,Ze)|0,q=q+Math.imul(me,Ve)|0;var kn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(kn>>>26)|0,kn&=67108863,z=Math.imul(De,F),R=Math.imul(De,te),R=R+Math.imul(We,F)|0,q=Math.imul(We,te),z=z+Math.imul(le,pe)|0,R=R+Math.imul(le,de)|0,R=R+Math.imul(Ee,pe)|0,q=q+Math.imul(Ee,de)|0,z=z+Math.imul(he,$e)|0,R=R+Math.imul(he,qe)|0,R=R+Math.imul(Ie,$e)|0,q=q+Math.imul(Ie,qe)|0,z=z+Math.imul(oe,tt)|0,R=R+Math.imul(oe,nt)|0,R=R+Math.imul(se,tt)|0,q=q+Math.imul(se,nt)|0,z=z+Math.imul(Ae,bt)|0,R=R+Math.imul(Ae,re)|0,R=R+Math.imul(Be,bt)|0,q=q+Math.imul(Be,re)|0,z=z+Math.imul(ke,Ze)|0,R=R+Math.imul(ke,Ve)|0,R=R+Math.imul(fe,Ze)|0,q=q+Math.imul(fe,Ve)|0,z=z+Math.imul(ie,mt)|0,R=R+Math.imul(ie,yt)|0,R=R+Math.imul(me,mt)|0,q=q+Math.imul(me,yt)|0;var An=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(An>>>26)|0,An&=67108863,z=Math.imul(we,F),R=Math.imul(we,te),R=R+Math.imul(Fe,F)|0,q=Math.imul(Fe,te),z=z+Math.imul(De,pe)|0,R=R+Math.imul(De,de)|0,R=R+Math.imul(We,pe)|0,q=q+Math.imul(We,de)|0,z=z+Math.imul(le,$e)|0,R=R+Math.imul(le,qe)|0,R=R+Math.imul(Ee,$e)|0,q=q+Math.imul(Ee,qe)|0,z=z+Math.imul(he,tt)|0,R=R+Math.imul(he,nt)|0,R=R+Math.imul(Ie,tt)|0,q=q+Math.imul(Ie,nt)|0,z=z+Math.imul(oe,bt)|0,R=R+Math.imul(oe,re)|0,R=R+Math.imul(se,bt)|0,q=q+Math.imul(se,re)|0,z=z+Math.imul(Ae,Ze)|0,R=R+Math.imul(Ae,Ve)|0,R=R+Math.imul(Be,Ze)|0,q=q+Math.imul(Be,Ve)|0,z=z+Math.imul(ke,mt)|0,R=R+Math.imul(ke,yt)|0,R=R+Math.imul(fe,mt)|0,q=q+Math.imul(fe,yt)|0,z=z+Math.imul(ie,_t)|0,R=R+Math.imul(ie,xt)|0,R=R+Math.imul(me,_t)|0,q=q+Math.imul(me,xt)|0;var Or=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Or>>>26)|0,Or&=67108863,z=Math.imul(ae,F),R=Math.imul(ae,te),R=R+Math.imul(_e,F)|0,q=Math.imul(_e,te),z=z+Math.imul(we,pe)|0,R=R+Math.imul(we,de)|0,R=R+Math.imul(Fe,pe)|0,q=q+Math.imul(Fe,de)|0,z=z+Math.imul(De,$e)|0,R=R+Math.imul(De,qe)|0,R=R+Math.imul(We,$e)|0,q=q+Math.imul(We,qe)|0,z=z+Math.imul(le,tt)|0,R=R+Math.imul(le,nt)|0,R=R+Math.imul(Ee,tt)|0,q=q+Math.imul(Ee,nt)|0,z=z+Math.imul(he,bt)|0,R=R+Math.imul(he,re)|0,R=R+Math.imul(Ie,bt)|0,q=q+Math.imul(Ie,re)|0,z=z+Math.imul(oe,Ze)|0,R=R+Math.imul(oe,Ve)|0,R=R+Math.imul(se,Ze)|0,q=q+Math.imul(se,Ve)|0,z=z+Math.imul(Ae,mt)|0,R=R+Math.imul(Ae,yt)|0,R=R+Math.imul(Be,mt)|0,q=q+Math.imul(Be,yt)|0,z=z+Math.imul(ke,_t)|0,R=R+Math.imul(ke,xt)|0,R=R+Math.imul(fe,_t)|0,q=q+Math.imul(fe,xt)|0,z=z+Math.imul(ie,wt)|0,R=R+Math.imul(ie,St)|0,R=R+Math.imul(me,wt)|0,q=q+Math.imul(me,St)|0;var en=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(en>>>26)|0,en&=67108863,z=Math.imul(xe,F),R=Math.imul(xe,te),R=R+Math.imul(K,F)|0,q=Math.imul(K,te),z=z+Math.imul(ae,pe)|0,R=R+Math.imul(ae,de)|0,R=R+Math.imul(_e,pe)|0,q=q+Math.imul(_e,de)|0,z=z+Math.imul(we,$e)|0,R=R+Math.imul(we,qe)|0,R=R+Math.imul(Fe,$e)|0,q=q+Math.imul(Fe,qe)|0,z=z+Math.imul(De,tt)|0,R=R+Math.imul(De,nt)|0,R=R+Math.imul(We,tt)|0,q=q+Math.imul(We,nt)|0,z=z+Math.imul(le,bt)|0,R=R+Math.imul(le,re)|0,R=R+Math.imul(Ee,bt)|0,q=q+Math.imul(Ee,re)|0,z=z+Math.imul(he,Ze)|0,R=R+Math.imul(he,Ve)|0,R=R+Math.imul(Ie,Ze)|0,q=q+Math.imul(Ie,Ve)|0,z=z+Math.imul(oe,mt)|0,R=R+Math.imul(oe,yt)|0,R=R+Math.imul(se,mt)|0,q=q+Math.imul(se,yt)|0,z=z+Math.imul(Ae,_t)|0,R=R+Math.imul(Ae,xt)|0,R=R+Math.imul(Be,_t)|0,q=q+Math.imul(Be,xt)|0,z=z+Math.imul(ke,wt)|0,R=R+Math.imul(ke,St)|0,R=R+Math.imul(fe,wt)|0,q=q+Math.imul(fe,St)|0,z=z+Math.imul(ie,ir)|0,R=R+Math.imul(ie,nr)|0,R=R+Math.imul(me,ir)|0,q=q+Math.imul(me,nr)|0;var Kr=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,z=Math.imul(xe,pe),R=Math.imul(xe,de),R=R+Math.imul(K,pe)|0,q=Math.imul(K,de),z=z+Math.imul(ae,$e)|0,R=R+Math.imul(ae,qe)|0,R=R+Math.imul(_e,$e)|0,q=q+Math.imul(_e,qe)|0,z=z+Math.imul(we,tt)|0,R=R+Math.imul(we,nt)|0,R=R+Math.imul(Fe,tt)|0,q=q+Math.imul(Fe,nt)|0,z=z+Math.imul(De,bt)|0,R=R+Math.imul(De,re)|0,R=R+Math.imul(We,bt)|0,q=q+Math.imul(We,re)|0,z=z+Math.imul(le,Ze)|0,R=R+Math.imul(le,Ve)|0,R=R+Math.imul(Ee,Ze)|0,q=q+Math.imul(Ee,Ve)|0,z=z+Math.imul(he,mt)|0,R=R+Math.imul(he,yt)|0,R=R+Math.imul(Ie,mt)|0,q=q+Math.imul(Ie,yt)|0,z=z+Math.imul(oe,_t)|0,R=R+Math.imul(oe,xt)|0,R=R+Math.imul(se,_t)|0,q=q+Math.imul(se,xt)|0,z=z+Math.imul(Ae,wt)|0,R=R+Math.imul(Ae,St)|0,R=R+Math.imul(Be,wt)|0,q=q+Math.imul(Be,St)|0,z=z+Math.imul(ke,ir)|0,R=R+Math.imul(ke,nr)|0,R=R+Math.imul(fe,ir)|0,q=q+Math.imul(fe,nr)|0;var Mn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,z=Math.imul(xe,$e),R=Math.imul(xe,qe),R=R+Math.imul(K,$e)|0,q=Math.imul(K,qe),z=z+Math.imul(ae,tt)|0,R=R+Math.imul(ae,nt)|0,R=R+Math.imul(_e,tt)|0,q=q+Math.imul(_e,nt)|0,z=z+Math.imul(we,bt)|0,R=R+Math.imul(we,re)|0,R=R+Math.imul(Fe,bt)|0,q=q+Math.imul(Fe,re)|0,z=z+Math.imul(De,Ze)|0,R=R+Math.imul(De,Ve)|0,R=R+Math.imul(We,Ze)|0,q=q+Math.imul(We,Ve)|0,z=z+Math.imul(le,mt)|0,R=R+Math.imul(le,yt)|0,R=R+Math.imul(Ee,mt)|0,q=q+Math.imul(Ee,yt)|0,z=z+Math.imul(he,_t)|0,R=R+Math.imul(he,xt)|0,R=R+Math.imul(Ie,_t)|0,q=q+Math.imul(Ie,xt)|0,z=z+Math.imul(oe,wt)|0,R=R+Math.imul(oe,St)|0,R=R+Math.imul(se,wt)|0,q=q+Math.imul(se,St)|0,z=z+Math.imul(Ae,ir)|0,R=R+Math.imul(Ae,nr)|0,R=R+Math.imul(Be,ir)|0,q=q+Math.imul(Be,nr)|0;var ln=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(ln>>>26)|0,ln&=67108863,z=Math.imul(xe,tt),R=Math.imul(xe,nt),R=R+Math.imul(K,tt)|0,q=Math.imul(K,nt),z=z+Math.imul(ae,bt)|0,R=R+Math.imul(ae,re)|0,R=R+Math.imul(_e,bt)|0,q=q+Math.imul(_e,re)|0,z=z+Math.imul(we,Ze)|0,R=R+Math.imul(we,Ve)|0,R=R+Math.imul(Fe,Ze)|0,q=q+Math.imul(Fe,Ve)|0,z=z+Math.imul(De,mt)|0,R=R+Math.imul(De,yt)|0,R=R+Math.imul(We,mt)|0,q=q+Math.imul(We,yt)|0,z=z+Math.imul(le,_t)|0,R=R+Math.imul(le,xt)|0,R=R+Math.imul(Ee,_t)|0,q=q+Math.imul(Ee,xt)|0,z=z+Math.imul(he,wt)|0,R=R+Math.imul(he,St)|0,R=R+Math.imul(Ie,wt)|0,q=q+Math.imul(Ie,St)|0,z=z+Math.imul(oe,ir)|0,R=R+Math.imul(oe,nr)|0,R=R+Math.imul(se,ir)|0,q=q+Math.imul(se,nr)|0;var pn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(pn>>>26)|0,pn&=67108863,z=Math.imul(xe,bt),R=Math.imul(xe,re),R=R+Math.imul(K,bt)|0,q=Math.imul(K,re),z=z+Math.imul(ae,Ze)|0,R=R+Math.imul(ae,Ve)|0,R=R+Math.imul(_e,Ze)|0,q=q+Math.imul(_e,Ve)|0,z=z+Math.imul(we,mt)|0,R=R+Math.imul(we,yt)|0,R=R+Math.imul(Fe,mt)|0,q=q+Math.imul(Fe,yt)|0,z=z+Math.imul(De,_t)|0,R=R+Math.imul(De,xt)|0,R=R+Math.imul(We,_t)|0,q=q+Math.imul(We,xt)|0,z=z+Math.imul(le,wt)|0,R=R+Math.imul(le,St)|0,R=R+Math.imul(Ee,wt)|0,q=q+Math.imul(Ee,St)|0,z=z+Math.imul(he,ir)|0,R=R+Math.imul(he,nr)|0,R=R+Math.imul(Ie,ir)|0,q=q+Math.imul(Ie,nr)|0;var vn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(vn>>>26)|0,vn&=67108863,z=Math.imul(xe,Ze),R=Math.imul(xe,Ve),R=R+Math.imul(K,Ze)|0,q=Math.imul(K,Ve),z=z+Math.imul(ae,mt)|0,R=R+Math.imul(ae,yt)|0,R=R+Math.imul(_e,mt)|0,q=q+Math.imul(_e,yt)|0,z=z+Math.imul(we,_t)|0,R=R+Math.imul(we,xt)|0,R=R+Math.imul(Fe,_t)|0,q=q+Math.imul(Fe,xt)|0,z=z+Math.imul(De,wt)|0,R=R+Math.imul(De,St)|0,R=R+Math.imul(We,wt)|0,q=q+Math.imul(We,St)|0,z=z+Math.imul(le,ir)|0,R=R+Math.imul(le,nr)|0,R=R+Math.imul(Ee,ir)|0,q=q+Math.imul(Ee,nr)|0;var un=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(un>>>26)|0,un&=67108863,z=Math.imul(xe,mt),R=Math.imul(xe,yt),R=R+Math.imul(K,mt)|0,q=Math.imul(K,yt),z=z+Math.imul(ae,_t)|0,R=R+Math.imul(ae,xt)|0,R=R+Math.imul(_e,_t)|0,q=q+Math.imul(_e,xt)|0,z=z+Math.imul(we,wt)|0,R=R+Math.imul(we,St)|0,R=R+Math.imul(Fe,wt)|0,q=q+Math.imul(Fe,St)|0,z=z+Math.imul(De,ir)|0,R=R+Math.imul(De,nr)|0,R=R+Math.imul(We,ir)|0,q=q+Math.imul(We,nr)|0;var tn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(tn>>>26)|0,tn&=67108863,z=Math.imul(xe,_t),R=Math.imul(xe,xt),R=R+Math.imul(K,_t)|0,q=Math.imul(K,xt),z=z+Math.imul(ae,wt)|0,R=R+Math.imul(ae,St)|0,R=R+Math.imul(_e,wt)|0,q=q+Math.imul(_e,St)|0,z=z+Math.imul(we,ir)|0,R=R+Math.imul(we,nr)|0,R=R+Math.imul(Fe,ir)|0,q=q+Math.imul(Fe,nr)|0;var Cu=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Cu>>>26)|0,Cu&=67108863,z=Math.imul(xe,wt),R=Math.imul(xe,St),R=R+Math.imul(K,wt)|0,q=Math.imul(K,St),z=z+Math.imul(ae,ir)|0,R=R+Math.imul(ae,nr)|0,R=R+Math.imul(_e,ir)|0,q=q+Math.imul(_e,nr)|0;var kh=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(kh>>>26)|0,kh&=67108863,z=Math.imul(xe,ir),R=Math.imul(xe,nr),R=R+Math.imul(K,ir)|0,q=Math.imul(K,nr);var Ah=(T+z|0)+((R&8191)<<13)|0;if(T=(q+(R>>>13)|0)+(Ah>>>26)|0,Ah&=67108863,c[0]=Lr,c[1]=Tr,c[2]=wn,c[3]=En,c[4]=Tn,c[5]=kn,c[6]=An,c[7]=Or,c[8]=en,c[9]=Kr,c[10]=Mn,c[11]=ln,c[12]=pn,c[13]=vn,c[14]=un,c[15]=tn,c[16]=Cu,c[17]=kh,c[18]=Ah,T!==0)c[19]=T,k.length++;return k};if(!Math.imul)Z=j;function V(h,S,k){k.negative=S.negative^h.negative,k.length=h.length+S.length;var C=0,w=0;for(var c=0;c<k.length-1;c++){var T=w;w=0;var z=C&67108863,R=Math.min(c,S.length-1);for(var q=Math.max(0,c-h.length+1);q<=R;q++){var Q=c-q,ie=h.words[Q]|0,me=S.words[q]|0,Je=ie*me,ke=Je&67108863;T=T+(Je/67108864|0)|0,ke=ke+z|0,z=ke&67108863,T=T+(ke>>>26)|0,w+=T>>>26,T&=67108863}k.words[c]=z,C=T,T=w}if(C!==0)k.words[c]=C;else k.length--;return k._strip()}function W(h,S,k){return V(h,S,k)}s.prototype.mulTo=function(h,S){var k,C=this.length+h.length;if(this.length===10&&h.length===10)k=Z(this,h,S);else if(C<63)k=j(this,h,S);else if(C<1024)k=V(this,h,S);else k=W(this,h,S);return k};function J(h,S){this.x=h,this.y=S}J.prototype.makeRBT=function(h){var S=Array(h),k=s.prototype._countBits(h)-1;for(var C=0;C<h;C++)S[C]=this.revBin(C,k,h);return S},J.prototype.revBin=function(h,S,k){if(h===0||h===k-1)return h;var C=0;for(var w=0;w<S;w++)C|=(h&1)<<S-w-1,h>>=1;return C},J.prototype.permute=function(h,S,k,C,w,c){for(var T=0;T<c;T++)C[T]=S[h[T]],w[T]=k[h[T]]},J.prototype.transform=function(h,S,k,C,w,c){this.permute(c,h,S,k,C,w);for(var T=1;T<w;T<<=1){var z=T<<1,R=Math.cos(2*Math.PI/z),q=Math.sin(2*Math.PI/z);for(var Q=0;Q<w;Q+=z){var ie=R,me=q;for(var Je=0;Je<T;Je++){var ke=k[Q+Je],fe=C[Q+Je],be=k[Q+Je+T],Ae=C[Q+Je+T],Be=ie*be-me*Ae;if(Ae=ie*Ae+me*be,be=Be,k[Q+Je]=ke+be,C[Q+Je]=fe+Ae,k[Q+Je+T]=ke-be,C[Q+Je+T]=fe-Ae,Je!==z)Be=R*ie-q*me,me=R*me+q*ie,ie=Be}}}},J.prototype.guessLen13b=function(h,S){var k=Math.max(S,h)|1,C=k&1,w=0;for(k=k/2|0;k;k=k>>>1)w++;return 1<<w+1+C},J.prototype.conjugate=function(h,S,k){if(k<=1)return;for(var C=0;C<k/2;C++){var w=h[C];h[C]=h[k-C-1],h[k-C-1]=w,w=S[C],S[C]=-S[k-C-1],S[k-C-1]=-w}},J.prototype.normalize13b=function(h,S){var k=0;for(var C=0;C<S/2;C++){var w=Math.round(h[2*C+1]/S)*8192+Math.round(h[2*C]/S)+k;if(h[C]=w&67108863,w<67108864)k=0;else k=w/67108864|0}return h},J.prototype.convert13b=function(h,S,k,C){var w=0;for(var c=0;c<S;c++)w=w+(h[c]|0),k[2*c]=w&8191,w=w>>>13,k[2*c+1]=w&8191,w=w>>>13;for(c=2*S;c<C;++c)k[c]=0;n(w===0),n((w&-8192)===0)},J.prototype.stub=function(h){var S=Array(h);for(var k=0;k<h;k++)S[k]=0;return S},J.prototype.mulp=function(h,S,k){var C=2*this.guessLen13b(h.length,S.length),w=this.makeRBT(C),c=this.stub(C),T=Array(C),z=Array(C),R=Array(C),q=Array(C),Q=Array(C),ie=Array(C),me=k.words;me.length=C,this.convert13b(h.words,h.length,T,C),this.convert13b(S.words,S.length,q,C),this.transform(T,c,z,R,C,w),this.transform(q,c,Q,ie,C,w);for(var Je=0;Je<C;Je++){var ke=z[Je]*Q[Je]-R[Je]*ie[Je];R[Je]=z[Je]*ie[Je]+R[Je]*Q[Je],z[Je]=ke}return this.conjugate(z,R,C),this.transform(z,R,me,c,C,w),this.conjugate(me,c,C),this.normalize13b(me,C),k.negative=h.negative^S.negative,k.length=h.length+S.length,k._strip()},s.prototype.mul=function(h){var S=new s(null);return S.words=Array(this.length+h.length),this.mulTo(h,S)},s.prototype.mulf=function(h){var S=new s(null);return S.words=Array(this.length+h.length),W(this,h,S)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var S=h<0;if(S)h=-h;n(typeof h==="number"),n(h<67108864);var k=0;for(var C=0;C<this.length;C++){var w=(this.words[C]|0)*h,c=(w&67108863)+(k&67108863);k>>=26,k+=w/67108864|0,k+=c>>>26,this.words[C]=c&67108863}if(k!==0)this.words[C]=k,this.length++;return this.length=h===0?1:this.length,S?this.ineg():this},s.prototype.muln=function(h){return this.clone().imuln(h)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(h){var S=P(h);if(S.length===0)return new s(1);var k=this;for(var C=0;C<S.length;C++,k=k.sqr())if(S[C]!==0)break;if(++C<S.length)for(var w=k.sqr();C<S.length;C++,w=w.sqr()){if(S[C]===0)continue;k=k.mul(w)}return k},s.prototype.iushln=function(h){n(typeof h==="number"&&h>=0);var S=h%26,k=(h-S)/26,C=67108863>>>26-S<<26-S,w;if(S!==0){var c=0;for(w=0;w<this.length;w++){var T=this.words[w]&C,z=(this.words[w]|0)-T<<S;this.words[w]=z|c,c=T>>>26-S}if(c)this.words[w]=c,this.length++}if(k!==0){for(w=this.length-1;w>=0;w--)this.words[w+k]=this.words[w];for(w=0;w<k;w++)this.words[w]=0;this.length+=k}return this._strip()},s.prototype.ishln=function(h){return n(this.negative===0),this.iushln(h)},s.prototype.iushrn=function(h,S,k){n(typeof h==="number"&&h>=0);var C;if(S)C=(S-S%26)/26;else C=0;var w=h%26,c=Math.min((h-w)/26,this.length),T=67108863^67108863>>>w<<w,z=k;if(C-=c,C=Math.max(0,C),z){for(var R=0;R<c;R++)z.words[R]=this.words[R];z.length=c}if(c===0);else if(this.length>c){this.length-=c;for(R=0;R<this.length;R++)this.words[R]=this.words[R+c]}else this.words[0]=0,this.length=1;var q=0;for(R=this.length-1;R>=0&&(q!==0||R>=C);R--){var Q=this.words[R]|0;this.words[R]=q<<26-w|Q>>>w,q=Q&T}if(z&&q!==0)z.words[z.length++]=q;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},s.prototype.ishrn=function(h,S,k){return n(this.negative===0),this.iushrn(h,S,k)},s.prototype.shln=function(h){return this.clone().ishln(h)},s.prototype.ushln=function(h){return this.clone().iushln(h)},s.prototype.shrn=function(h){return this.clone().ishrn(h)},s.prototype.ushrn=function(h){return this.clone().iushrn(h)},s.prototype.testn=function(h){n(typeof h==="number"&&h>=0);var S=h%26,k=(h-S)/26,C=1<<S;if(this.length<=k)return!1;var w=this.words[k];return!!(w&C)},s.prototype.imaskn=function(h){n(typeof h==="number"&&h>=0);var S=h%26,k=(h-S)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(S!==0)k++;if(this.length=Math.min(k,this.length),S!==0){var C=67108863^67108863>>>S<<S;this.words[this.length-1]&=C}return this._strip()},s.prototype.maskn=function(h){return this.clone().imaskn(h)},s.prototype.iaddn=function(h){if(n(typeof h==="number"),n(h<67108864),h<0)return this.isubn(-h);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=h)return this.words[0]=h-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(h),this.negative=1,this}return this._iaddn(h)},s.prototype._iaddn=function(h){this.words[0]+=h;for(var S=0;S<this.length&&this.words[S]>=67108864;S++)if(this.words[S]-=67108864,S===this.length-1)this.words[S+1]=1;else this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},s.prototype.isubn=function(h){if(n(typeof h==="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S<this.length&&this.words[S]<0;S++)this.words[S]+=67108864,this.words[S+1]-=1;return this._strip()},s.prototype.addn=function(h){return this.clone().iaddn(h)},s.prototype.subn=function(h){return this.clone().isubn(h)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(h,S,k){var C=h.length+k,w;this._expand(C);var c,T=0;for(w=0;w<h.length;w++){c=(this.words[w+k]|0)+T;var z=(h.words[w]|0)*S;c-=z&67108863,T=(c>>26)-(z/67108864|0),this.words[w+k]=c&67108863}for(;w<this.length-k;w++)c=(this.words[w+k]|0)+T,T=c>>26,this.words[w+k]=c&67108863;if(T===0)return this._strip();n(T===-1),T=0;for(w=0;w<this.length;w++)c=-(this.words[w]|0)+T,T=c>>26,this.words[w]=c&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,S){var k=this.length-h.length,C=this.clone(),w=h,c=w.words[w.length-1]|0,T=this._countBits(c);if(k=26-T,k!==0)w=w.ushln(k),C.iushln(k),c=w.words[w.length-1]|0;var z=C.length-w.length,R;if(S!=="mod"){R=new s(null),R.length=z+1,R.words=Array(R.length);for(var q=0;q<R.length;q++)R.words[q]=0}var Q=C.clone()._ishlnsubmul(w,1,z);if(Q.negative===0){if(C=Q,R)R.words[z]=1}for(var ie=z-1;ie>=0;ie--){var me=(C.words[w.length+ie]|0)*67108864+(C.words[w.length+ie-1]|0);me=Math.min(me/c|0,67108863),C._ishlnsubmul(w,me,ie);while(C.negative!==0)if(me--,C.negative=0,C._ishlnsubmul(w,1,ie),!C.isZero())C.negative^=1;if(R)R.words[ie]=me}if(R)R._strip();if(C._strip(),S!=="div"&&k!==0)C.iushrn(k);return{div:R||null,mod:C}},s.prototype.divmod=function(h,S,k){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var C,w,c;if(this.negative!==0&&h.negative===0){if(c=this.neg().divmod(h,S),S!=="mod")C=c.div.neg();if(S!=="div"){if(w=c.mod.neg(),k&&w.negative!==0)w.iadd(h)}return{div:C,mod:w}}if(this.negative===0&&h.negative!==0){if(c=this.divmod(h.neg(),S),S!=="mod")C=c.div.neg();return{div:C,mod:c.mod}}if((this.negative&h.negative)!==0){if(c=this.neg().divmod(h.neg(),S),S!=="div"){if(w=c.mod.neg(),k&&w.negative!==0)w.isub(h)}return{div:c.div,mod:w}}if(h.length>this.length||this.cmp(h)<0)return{div:new s(0),mod:this};if(h.length===1){if(S==="div")return{div:this.divn(h.words[0]),mod:null};if(S==="mod")return{div:null,mod:new s(this.modrn(h.words[0]))};return{div:this.divn(h.words[0]),mod:new s(this.modrn(h.words[0]))}}return this._wordDiv(h,S)},s.prototype.div=function(h){return this.divmod(h,"div",!1).div},s.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},s.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},s.prototype.divRound=function(h){var S=this.divmod(h);if(S.mod.isZero())return S.div;var k=S.div.negative!==0?S.mod.isub(h):S.mod,C=h.ushrn(1),w=h.andln(1),c=k.cmp(C);if(c<0||w===1&&c===0)return S.div;return S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},s.prototype.modrn=function(h){var S=h<0;if(S)h=-h;n(h<=67108863);var k=67108864%h,C=0;for(var w=this.length-1;w>=0;w--)C=(k*C+(this.words[w]|0))%h;return S?-C:C},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var S=h<0;if(S)h=-h;n(h<=67108863);var k=0;for(var C=this.length-1;C>=0;C--){var w=(this.words[C]|0)+k*67108864;this.words[C]=w/h|0,k=w%h}return this._strip(),S?this.ineg():this},s.prototype.divn=function(h){return this.clone().idivn(h)},s.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();if(S.negative!==0)S=S.umod(h);else S=S.clone();var C=new s(1),w=new s(0),c=new s(0),T=new s(1),z=0;while(S.isEven()&&k.isEven())S.iushrn(1),k.iushrn(1),++z;var R=k.clone(),q=S.clone();while(!S.isZero()){for(var Q=0,ie=1;(S.words[0]&ie)===0&&Q<26;++Q,ie<<=1);if(Q>0){S.iushrn(Q);while(Q-- >0){if(C.isOdd()||w.isOdd())C.iadd(R),w.isub(q);C.iushrn(1),w.iushrn(1)}}for(var me=0,Je=1;(k.words[0]&Je)===0&&me<26;++me,Je<<=1);if(me>0){k.iushrn(me);while(me-- >0){if(c.isOdd()||T.isOdd())c.iadd(R),T.isub(q);c.iushrn(1),T.iushrn(1)}}if(S.cmp(k)>=0)S.isub(k),C.isub(c),w.isub(T);else k.isub(S),c.isub(C),T.isub(w)}return{a:c,b:T,gcd:k.iushln(z)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();if(S.negative!==0)S=S.umod(h);else S=S.clone();var C=new s(1),w=new s(0),c=k.clone();while(S.cmpn(1)>0&&k.cmpn(1)>0){for(var T=0,z=1;(S.words[0]&z)===0&&T<26;++T,z<<=1);if(T>0){S.iushrn(T);while(T-- >0){if(C.isOdd())C.iadd(c);C.iushrn(1)}}for(var R=0,q=1;(k.words[0]&q)===0&&R<26;++R,q<<=1);if(R>0){k.iushrn(R);while(R-- >0){if(w.isOdd())w.iadd(c);w.iushrn(1)}}if(S.cmp(k)>=0)S.isub(k),C.isub(w);else k.isub(S),w.isub(C)}var Q;if(S.cmpn(1)===0)Q=C;else Q=w;if(Q.cmpn(0)<0)Q.iadd(h);return Q},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var S=this.clone(),k=h.clone();S.negative=0,k.negative=0;for(var C=0;S.isEven()&&k.isEven();C++)S.iushrn(1),k.iushrn(1);do{while(S.isEven())S.iushrn(1);while(k.isEven())k.iushrn(1);var w=S.cmp(k);if(w<0){var c=S;S=k,k=c}else if(w===0||k.cmpn(1)===0)break;S.isub(k)}while(!0);return k.iushln(C)},s.prototype.invm=function(h){return this.egcd(h).a.umod(h)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(h){return this.words[0]&h},s.prototype.bincn=function(h){n(typeof h==="number");var S=h%26,k=(h-S)/26,C=1<<S;if(this.length<=k)return this._expand(k+1),this.words[k]|=C,this;var w=C;for(var c=k;w!==0&&c<this.length;c++){var T=this.words[c]|0;T+=w,w=T>>>26,T&=67108863,this.words[c]=T}if(w!==0)this.words[c]=w,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(h){var S=h<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var k;if(this.length>1)k=1;else{if(S)h=-h;n(h<=67108863,"Number is too big");var C=this.words[0]|0;k=C===h?0:C<h?-1:1}if(this.negative!==0)return-k|0;return k},s.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var S=this.ucmp(h);if(this.negative!==0)return-S|0;return S},s.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;var S=0;for(var k=this.length-1;k>=0;k--){var C=this.words[k]|0,w=h.words[k]|0;if(C===w)continue;if(C<w)S=-1;else if(C>w)S=1;break}return S},s.prototype.gtn=function(h){return this.cmpn(h)===1},s.prototype.gt=function(h){return this.cmp(h)===1},s.prototype.gten=function(h){return this.cmpn(h)>=0},s.prototype.gte=function(h){return this.cmp(h)>=0},s.prototype.ltn=function(h){return this.cmpn(h)===-1},s.prototype.lt=function(h){return this.cmp(h)===-1},s.prototype.lten=function(h){return this.cmpn(h)<=0},s.prototype.lte=function(h){return this.cmp(h)<=0},s.prototype.eqn=function(h){return this.cmpn(h)===0},s.prototype.eq=function(h){return this.cmp(h)===0},s.red=function(h){return new p(h)},s.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(h){return this.red=h,this},s.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},s.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},s.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},s.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},s.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},s.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},s.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},s.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var ve={k256:null,p224:null,p192:null,p25519:null};function ce(h,S){this.name=h,this.p=new s(S,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ce.prototype._tmp=function(){var h=new s(null);return h.words=Array(Math.ceil(this.n/13)),h},ce.prototype.ireduce=function(h){var S=h,k;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),k=S.bitLength();while(k>this.n);var C=k<this.n?-1:S.ucmp(this.p);if(C===0)S.words[0]=0,S.length=1;else if(C>0)S.isub(this.p);else if(S.strip!==void 0)S.strip();else S._strip();return S},ce.prototype.split=function(h,S){h.iushrn(this.n,0,S)},ce.prototype.imulK=function(h){return h.imul(this.k)};function Me(){ce.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Me,ce),Me.prototype.split=function(h,S){var k=4194303,C=Math.min(h.length,9);for(var w=0;w<C;w++)S.words[w]=h.words[w];if(S.length=C,h.length<=9){h.words[0]=0,h.length=1;return}var c=h.words[9];S.words[S.length++]=c&k;for(w=10;w<h.length;w++){var T=h.words[w]|0;h.words[w-10]=(T&k)<<4|c>>>22,c=T}if(c>>>=22,h.words[w-10]=c,c===0&&h.length>10)h.length-=10;else h.length-=9},Me.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;var S=0;for(var k=0;k<h.length;k++){var C=h.words[k]|0;S+=C*977,h.words[k]=S&67108863,S=C*64+(S/67108864|0)}if(h.words[h.length-1]===0){if(h.length--,h.words[h.length-1]===0)h.length--}return h};function Y(){ce.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(Y,ce);function Te(){ce.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(Te,ce);function f(){ce.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(f,ce),f.prototype.imulK=function(h){var S=0;for(var k=0;k<h.length;k++){var C=(h.words[k]|0)*19+S,w=C&67108863;C>>>=26,h.words[k]=w,S=C}if(S!==0)h.words[h.length++]=S;return h},s._prime=function(h){if(ve[h])return ve[h];var S;if(h==="k256")S=new Me;else if(h==="p224")S=new Y;else if(h==="p192")S=new Te;else if(h==="p25519")S=new f;else throw Error("Unknown prime "+h);return ve[h]=S,S};function p(h){if(typeof h==="string"){var S=s._prime(h);this.m=S.p,this.prime=S}else n(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}p.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},p.prototype._verify2=function(h,S){n((h.negative|S.negative)===0,"red works only with positives"),n(h.red&&h.red===S.red,"red works only with red numbers")},p.prototype.imod=function(h){if(this.prime)return this.prime.ireduce(h)._forceRed(this);return g(h,h.umod(this.m)._forceRed(this)),h},p.prototype.neg=function(h){if(h.isZero())return h.clone();return this.m.sub(h)._forceRed(this)},p.prototype.add=function(h,S){this._verify2(h,S);var k=h.add(S);if(k.cmp(this.m)>=0)k.isub(this.m);return k._forceRed(this)},p.prototype.iadd=function(h,S){this._verify2(h,S);var k=h.iadd(S);if(k.cmp(this.m)>=0)k.isub(this.m);return k},p.prototype.sub=function(h,S){this._verify2(h,S);var k=h.sub(S);if(k.cmpn(0)<0)k.iadd(this.m);return k._forceRed(this)},p.prototype.isub=function(h,S){this._verify2(h,S);var k=h.isub(S);if(k.cmpn(0)<0)k.iadd(this.m);return k},p.prototype.shl=function(h,S){return this._verify1(h),this.imod(h.ushln(S))},p.prototype.imul=function(h,S){return this._verify2(h,S),this.imod(h.imul(S))},p.prototype.mul=function(h,S){return this._verify2(h,S),this.imod(h.mul(S))},p.prototype.isqr=function(h){return this.imul(h,h.clone())},p.prototype.sqr=function(h){return this.mul(h,h)},p.prototype.sqrt=function(h){if(h.isZero())return h.clone();var S=this.m.andln(3);if(n(S%2===1),S===3){var k=this.m.add(new s(1)).iushrn(2);return this.pow(h,k)}var C=this.m.subn(1),w=0;while(!C.isZero()&&C.andln(1)===0)w++,C.iushrn(1);n(!C.isZero());var c=new s(1).toRed(this),T=c.redNeg(),z=this.m.subn(1).iushrn(1),R=this.m.bitLength();R=new s(2*R*R).toRed(this);while(this.pow(R,z).cmp(T)!==0)R.redIAdd(T);var q=this.pow(R,C),Q=this.pow(h,C.addn(1).iushrn(1)),ie=this.pow(h,C),me=w;while(ie.cmp(c)!==0){var Je=ie;for(var ke=0;Je.cmp(c)!==0;ke++)Je=Je.redSqr();n(ke<me);var fe=this.pow(q,new s(1).iushln(me-ke-1));Q=Q.redMul(fe),q=fe.redSqr(),ie=ie.redMul(q),me=ke}return Q},p.prototype.invm=function(h){var S=h._invmp(this.m);if(S.negative!==0)return S.negative=0,this.imod(S).redNeg();else return this.imod(S)},p.prototype.pow=function(h,S){if(S.isZero())return new s(1).toRed(this);if(S.cmpn(1)===0)return h.clone();var k=4,C=Array(1<<k);C[0]=new s(1).toRed(this),C[1]=h;for(var w=2;w<C.length;w++)C[w]=this.mul(C[w-1],h);var c=C[0],T=0,z=0,R=S.bitLength()%26;if(R===0)R=26;for(w=S.length-1;w>=0;w--){var q=S.words[w];for(var Q=R-1;Q>=0;Q--){var ie=q>>Q&1;if(c!==C[0])c=this.sqr(c);if(ie===0&&T===0){z=0;continue}if(T<<=1,T|=ie,z++,z!==k&&(w!==0||Q!==0))continue;c=this.mul(c,C[T]),z=0,T=0}R=26}return c},p.prototype.convertTo=function(h){var S=h.umod(this.m);return S===h?S.clone():S},p.prototype.convertFrom=function(h){var S=h.clone();return S.red=null,S},s.mont=function(h){return new x(h)};function x(h){if(p.call(this,h),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(x,p),x.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},x.prototype.convertFrom=function(h){var S=this.imod(h.mul(this.rinv));return S.red=null,S},x.prototype.imul=function(h,S){if(h.isZero()||S.isZero())return h.words[0]=0,h.length=1,h;var k=h.imul(S),C=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(C).iushrn(this.shift),c=w;if(w.cmp(this.m)>=0)c=w.isub(this.m);else if(w.cmpn(0)<0)c=w.iadd(this.m);return c._forceRed(this)},x.prototype.mul=function(h,S){if(h.isZero()||S.isZero())return new s(0)._forceRed(this);var k=h.mul(S),C=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(C).iushrn(this.shift),c=w;if(w.cmp(this.m)>=0)c=w.isub(this.m);else if(w.cmpn(0)<0)c=w.iadd(this.m);return c._forceRed(this)},x.prototype.invm=function(h){var S=this.imod(h._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(typeof t>"u"||t,e)}),kY=ct((e,t)=>{var r=y1e(),a=Z2(),n=Qi().Buffer;function l(b){var y=b.modulus.byteLength(),v;do v=new r(a(y));while(v.cmp(b.modulus)>=0||!v.umod(b.prime1)||!v.umod(b.prime2));return v}function s(b){var y=l(b),v=y.toRed(r.mont(b.modulus)).redPow(new r(b.publicExponent)).fromRed();return{blinder:v,unblinder:y.invm(b.modulus)}}function d(b,y){var v=s(y),g=y.modulus.byteLength(),_=new r(b).mul(v.blinder).umod(y.modulus),A=_.toRed(r.mont(y.prime1)),I=_.toRed(r.mont(y.prime2)),O=y.coefficient,N=y.prime1,P=y.prime2,j=A.redPow(y.exponent1).fromRed(),Z=I.redPow(y.exponent2).fromRed(),V=j.isub(Z).imul(O).umod(N).imul(P);return Z.iadd(V).imul(v.unblinder).umod(y.modulus).toArrayLike(n,"be",g)}d.getr=l,t.exports=d}),v1e=ct((e,t)=>{var r=_Y(),a=Z2(),n=F2(),l=wY(),s=EY(),d=rC(),b=TY(),y=kY(),v=Qi().Buffer;t.exports=function(I,O,N){var P;if(I.padding)P=I.padding;else if(N)P=1;else P=4;var j=r(I),Z;if(P===4)Z=g(j,O);else if(P===1)Z=_(j,O,N);else if(P===3){if(Z=new d(O),Z.cmp(j.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(N)return y(Z,j);else return b(Z,j)};function g(I,O){var N=I.modulus.byteLength(),P=O.length,j=n("sha1").update(v.alloc(0)).digest(),Z=j.length,V=2*Z;if(P>N-V-2)throw Error("message too long");var W=v.alloc(N-P-V-2),J=N-Z-1,ve=a(Z),ce=s(v.concat([j,W,v.alloc(1,1),O],J),l(ve,J)),Me=s(ve,l(ce,Z));return new d(v.concat([v.alloc(1),Me,ce],N))}function _(I,O,N){var P=O.length,j=I.modulus.byteLength();if(P>j-11)throw Error("message too long");var Z;if(N)Z=v.alloc(j-P-3,255);else Z=A(j-P-3);return new d(v.concat([v.from([0,N?1:2]),Z,v.alloc(1),O],j))}function A(I){var O=v.allocUnsafe(I),N=0,P=a(I*2),j=0,Z;while(N<I){if(j===P.length)P=a(I*2),j=0;if(Z=P[j++],Z)O[N++]=Z}return O}}),S1e=ct((e,t)=>{var r=_Y(),a=wY(),n=EY(),l=rC(),s=kY(),d=F2(),b=TY(),y=Qi().Buffer;t.exports=function(A,I,O){var N;if(A.padding)N=A.padding;else if(O)N=1;else N=4;var P=r(A),j=P.modulus.byteLength();if(I.length>j||new l(I).cmp(P.modulus)>=0)throw Error("decryption error");var Z;if(O)Z=b(new l(I),P);else Z=s(I,P);var V=y.alloc(j-Z.length);if(Z=y.concat([V,Z],j),N===4)return v(P,Z);else if(N===1)return g(P,Z,O);else if(N===3)return Z;else throw Error("unknown padding")};function v(A,I){var O=A.modulus.byteLength(),N=d("sha1").update(y.alloc(0)).digest(),P=N.length;if(I[0]!==0)throw Error("decryption error");var j=I.slice(1,P+1),Z=I.slice(P+1),V=n(j,a(Z,P)),W=n(Z,a(V,O-P-1));if(_(N,W.slice(0,P)))throw Error("decryption error");var J=P;while(W[J]===0)J++;if(W[J++]!==1)throw Error("decryption error");return W.slice(J)}function g(A,I,O){var N=I.slice(0,2),P=2,j=0;while(I[P++]!==0)if(P>=I.length){j++;break}var Z=I.slice(2,P-1);if(N.toString("hex")!=="0002"&&!O||N.toString("hex")!=="0001"&&O)j++;if(Z.length<8)j++;if(j)throw Error("decryption error");return I.slice(P)}function _(A,I){A=y.from(A),I=y.from(I);var O=0,N=A.length;if(A.length!==I.length)O++,N=Math.min(A.length,I.length);var P=-1;while(++P<N)O+=A[P]^I[P];return O}}),VM=ct((e)=>{e.publicEncrypt=v1e(),e.privateDecrypt=S1e(),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}}),x1e=ct((e)=>{var t=(eo(),Cr(Lo));if(typeof t.publicEncrypt!=="function")t=VM();if(e.publicEncrypt=t.publicEncrypt,e.privateDecrypt=t.privateDecrypt,typeof t.privateEncrypt!=="function")e.privateEncrypt=VM().privateEncrypt;else e.privateEncrypt=t.privateEncrypt;if(typeof t.publicDecrypt!=="function")e.publicDecrypt=VM().publicDecrypt;else e.publicDecrypt=t.publicDecrypt}),_1e=ct((e)=>{var t=Qi(),r=Z2(),a=t.Buffer,n=t.kMaxLength,l=globalThis.crypto||globalThis.msCrypto,s=Math.pow(2,32)-1;function d(_,A){if(typeof _!=="number"||_!==_)throw TypeError("offset must be a number");if(_>s||_<0)throw TypeError("offset must be a uint32");if(_>n||_>A)throw RangeError("offset out of range")}function b(_,A,I){if(typeof _!=="number"||_!==_)throw TypeError("size must be a number");if(_>s||_<0)throw TypeError("size must be a uint32");if(_+A>I||_>n)throw RangeError("buffer too small")}l&&l.getRandomValues,e.randomFill=y,e.randomFillSync=g;function y(_,A,I,O){if(!a.isBuffer(_)&&!(_ instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof A==="function")O=A,A=0,I=_.length;else if(typeof I==="function")O=I,I=_.length-A;else if(typeof O!=="function")throw TypeError('"cb" argument must be a function');return d(A,_.length),b(I,A,_.length),v(_,A,I,O)}function v(_,A,I,O){if(!1)var N,P;if(O){r(I,function(Z,V){if(Z)return O(Z);V.copy(_,A),O(null,_)});return}var j=r(I);return j.copy(_,A),_}function g(_,A,I){if(typeof A>"u")A=0;if(!a.isBuffer(_)&&!(_ instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(d(A,_.length),I===void 0)I=_.length-A;return b(I,A,_.length),v(_,A,I)}}),w1e=ct((e,t)=>{var r=(eo(),Cr(Lo));if(typeof r.randomFill==="function"&&typeof r.randomFillSync==="function")e.randomFill=r.randomFill,e.randomFillSync=r.randomFillSync;else t.exports=_1e()}),E1e=ct((e)=>{e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=Z2(),e.createHash=e.Hash=F2(),e.createHmac=e.Hmac=eY();var t=Y0e(),r=Object.keys(t),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return a};var n=fY();e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync;var l=Rge();e.Cipher=l.Cipher,e.createCipher=l.createCipher,e.Cipheriv=l.Cipheriv,e.createCipheriv=l.createCipheriv,e.Decipher=l.Decipher,e.createDecipher=l.createDecipher,e.Decipheriv=l.Decipheriv,e.createDecipheriv=l.createDecipheriv,e.getCiphers=l.getCiphers,e.listCiphers=l.listCiphers;var s=Ige();e.DiffieHellmanGroup=s.DiffieHellmanGroup,e.createDiffieHellmanGroup=s.createDiffieHellmanGroup,e.getDiffieHellman=s.getDiffieHellman,e.createDiffieHellman=s.createDiffieHellman,e.DiffieHellman=s.DiffieHellman;var d=Oge();e.createSign=d.createSign,e.Sign=d.Sign,e.createVerify=d.createVerify,e.Verify=d.Verify,e.createECDH=t1e();var b=x1e();e.publicEncrypt=b.publicEncrypt,e.privateEncrypt=b.privateEncrypt,e.publicDecrypt=b.publicDecrypt,e.privateDecrypt=b.privateDecrypt;var y=w1e();e.randomFill=y.randomFill,e.randomFillSync=y.randomFillSync,e.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
380
+ `)}}),c1e=ct((e)=>{var t=e;t.der=SY(),t.pem=u1e()}),V0=ct((e)=>{var t=e;t.bignum=r1e(),t.define=n1e().define,t.base=H0(),t.constants=yY(),t.decoders=l1e(),t.encoders=c1e()}),f1e=ct((e,t)=>{var r=V0(),a=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),n=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),l=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(l),this.key("subjectPublicKey").bitstr())}),d=r.define("RelativeDistinguishedName",function(){this.setof(n)}),b=r.define("RDNSequence",function(){this.seqof(d)}),y=r.define("Name",function(){this.choice({rdnSequence:this.use(b)})}),v=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),g=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),_=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(l),this.key("issuer").use(y),this.key("validity").use(v),this.key("subject").use(y),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(g).optional())}),A=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(_),this.key("signatureAlgorithm").use(l),this.key("signatureValue").bitstr())});t.exports=A}),d1e=ct((e)=>{var t=V0();e.certificate=f1e();var r=t.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())});e.RSAPrivateKey=r;var a=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=a;var n=t.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())}),l=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});e.PublicKey=l;var s=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())});e.PrivateKey=s;var d=t.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())});e.EncryptedPrivateKey=d;var b=t.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())});e.DSAPrivateKey=b,e.DSAparam=t.define("DSAparam",function(){this.int()});var y=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),v=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(y),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=v,e.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),h1e=ct((e,t)=>{t.exports={"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"}}),p1e=ct((e,t)=>{var r=Qi().Buffer,a=GM().Transform,n=zo();function l(y){a.call(this),this._block=r.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(l,a),l.prototype._transform=function(y,v,g){var _=null;try{this.update(y,v)}catch(A){_=A}g(_)},l.prototype._flush=function(y){var v=null;try{this.push(this.digest())}catch(g){v=g}y(v)};var s=typeof Uint8Array<"u",d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);function b(y,v){if(y instanceof r)return y;if(typeof y==="string")return r.from(y,v);if(d&&ArrayBuffer.isView(y)){if(y.byteLength===0)return r.alloc(0);var g=r.from(y.buffer,y.byteOffset,y.byteLength);if(g.byteLength===y.byteLength)return g}if(s&&y instanceof Uint8Array)return r.from(y);if(r.isBuffer(y)&&y.constructor&&typeof y.constructor.isBuffer==="function"&&y.constructor.isBuffer(y))return r.from(y);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}l.prototype.update=function(y,v){if(this._finalized)throw Error("Digest already called");y=b(y,v);var g=this._block,_=0;while(this._blockOffset+y.length-_>=this._blockSize){for(var A=this._blockOffset;A<this._blockSize;)g[A++]=y[_++];this._update(),this._blockOffset=0}while(_<y.length)g[this._blockOffset++]=y[_++];for(var I=0,O=y.length*8;O>0;++I)if(this._length[I]+=O,O=this._length[I]/4294967296|0,O>0)this._length[I]-=4294967296*O;return this},l.prototype._update=function(){throw Error("_update is not implemented")},l.prototype.digest=function(y){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var v=this._digest();if(y!==void 0)v=v.toString(y);this._block.fill(0),this._blockOffset=0;for(var g=0;g<4;++g)this._length[g]=0;return v},l.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=l}),m1e=ct((e,t)=>{var r=zo(),a=p1e(),n=Qi().Buffer,l=Array(16);function s(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}r(s,a),s.prototype._update=function(){var _=l;for(var A=0;A<16;++A)_[A]=this._block.readInt32LE(A*4);var I=this._a,O=this._b,N=this._c,P=this._d;I=b(I,O,N,P,_[0],3614090360,7),P=b(P,I,O,N,_[1],3905402710,12),N=b(N,P,I,O,_[2],606105819,17),O=b(O,N,P,I,_[3],3250441966,22),I=b(I,O,N,P,_[4],4118548399,7),P=b(P,I,O,N,_[5],1200080426,12),N=b(N,P,I,O,_[6],2821735955,17),O=b(O,N,P,I,_[7],4249261313,22),I=b(I,O,N,P,_[8],1770035416,7),P=b(P,I,O,N,_[9],2336552879,12),N=b(N,P,I,O,_[10],4294925233,17),O=b(O,N,P,I,_[11],2304563134,22),I=b(I,O,N,P,_[12],1804603682,7),P=b(P,I,O,N,_[13],4254626195,12),N=b(N,P,I,O,_[14],2792965006,17),O=b(O,N,P,I,_[15],1236535329,22),I=y(I,O,N,P,_[1],4129170786,5),P=y(P,I,O,N,_[6],3225465664,9),N=y(N,P,I,O,_[11],643717713,14),O=y(O,N,P,I,_[0],3921069994,20),I=y(I,O,N,P,_[5],3593408605,5),P=y(P,I,O,N,_[10],38016083,9),N=y(N,P,I,O,_[15],3634488961,14),O=y(O,N,P,I,_[4],3889429448,20),I=y(I,O,N,P,_[9],568446438,5),P=y(P,I,O,N,_[14],3275163606,9),N=y(N,P,I,O,_[3],4107603335,14),O=y(O,N,P,I,_[8],1163531501,20),I=y(I,O,N,P,_[13],2850285829,5),P=y(P,I,O,N,_[2],4243563512,9),N=y(N,P,I,O,_[7],1735328473,14),O=y(O,N,P,I,_[12],2368359562,20),I=v(I,O,N,P,_[5],4294588738,4),P=v(P,I,O,N,_[8],2272392833,11),N=v(N,P,I,O,_[11],1839030562,16),O=v(O,N,P,I,_[14],4259657740,23),I=v(I,O,N,P,_[1],2763975236,4),P=v(P,I,O,N,_[4],1272893353,11),N=v(N,P,I,O,_[7],4139469664,16),O=v(O,N,P,I,_[10],3200236656,23),I=v(I,O,N,P,_[13],681279174,4),P=v(P,I,O,N,_[0],3936430074,11),N=v(N,P,I,O,_[3],3572445317,16),O=v(O,N,P,I,_[6],76029189,23),I=v(I,O,N,P,_[9],3654602809,4),P=v(P,I,O,N,_[12],3873151461,11),N=v(N,P,I,O,_[15],530742520,16),O=v(O,N,P,I,_[2],3299628645,23),I=g(I,O,N,P,_[0],4096336452,6),P=g(P,I,O,N,_[7],1126891415,10),N=g(N,P,I,O,_[14],2878612391,15),O=g(O,N,P,I,_[5],4237533241,21),I=g(I,O,N,P,_[12],1700485571,6),P=g(P,I,O,N,_[3],2399980690,10),N=g(N,P,I,O,_[10],4293915773,15),O=g(O,N,P,I,_[1],2240044497,21),I=g(I,O,N,P,_[8],1873313359,6),P=g(P,I,O,N,_[15],4264355552,10),N=g(N,P,I,O,_[6],2734768916,15),O=g(O,N,P,I,_[13],1309151649,21),I=g(I,O,N,P,_[4],4149444226,6),P=g(P,I,O,N,_[11],3174756917,10),N=g(N,P,I,O,_[2],718787259,15),O=g(O,N,P,I,_[9],3951481745,21),this._a=this._a+I|0,this._b=this._b+O|0,this._c=this._c+N|0,this._d=this._d+P|0},s.prototype._digest=function(){if(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 _=n.allocUnsafe(16);return _.writeInt32LE(this._a,0),_.writeInt32LE(this._b,4),_.writeInt32LE(this._c,8),_.writeInt32LE(this._d,12),_};function d(_,A){return _<<A|_>>>32-A}function b(_,A,I,O,N,P,j){return d(_+(A&I|~A&O)+N+P|0,j)+A|0}function y(_,A,I,O,N,P,j){return d(_+(A&O|I&~O)+N+P|0,j)+A|0}function v(_,A,I,O,N,P,j){return d(_+(A^I^O)+N+P|0,j)+A|0}function g(_,A,I,O,N,P,j){return d(_+(I^(A|~O))+N+P|0,j)+A|0}t.exports=s}),g1e=ct((e,t)=>{var r=Qi().Buffer,a=m1e();function n(l,s,d,b){if(!r.isBuffer(l))l=r.from(l,"binary");if(s){if(!r.isBuffer(s))s=r.from(s,"binary");if(s.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var y=d/8,v=r.alloc(y),g=r.alloc(b||0),_=r.alloc(0);while(y>0||b>0){var A=new a;if(A.update(_),A.update(l),s)A.update(s);_=A.digest();var I=0;if(y>0){var O=v.length-y;I=Math.min(y,_.length),_.copy(v,O,0,I),y-=I}if(I<_.length&&b>0){var N=g.length-b,P=Math.min(b,_.length-I);_.copy(g,N,I,I+P),b-=P}}return _.fill(0),{key:v,iv:g}}t.exports=n}),xY=ct((e)=>{var t=(eo(),Cr(Lo));e.createCipher=e.Cipher=t.createCipher,e.createCipheriv=e.Cipheriv=t.createCipheriv,e.createDecipher=e.Decipher=t.createDecipher,e.createDecipheriv=e.Decipheriv=t.createDecipheriv,e.listCiphers=e.getCiphers=t.getCiphers}),b1e=ct((e,t)=>{var r=/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,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,l=g1e(),s=xY(),d=Qi().Buffer;t.exports=function(b,y){var v=b.toString(),g=v.match(r),_;if(!g){var A=v.match(n);_=d.from(A[2].replace(/[\r\n]/g,""),"base64")}else{var I="aes"+g[1],O=d.from(g[2],"hex"),N=d.from(g[3].replace(/[\r\n]/g,""),"base64"),P=l(y,O.slice(0,8),parseInt(g[1],10)).key,j=[],Z=s.createDecipheriv(I,P,O);j.push(Z.update(N)),j.push(Z.final()),_=d.concat(j)}var V=v.match(a)[1];return{tag:V,data:_}}}),_Y=ct((e,t)=>{var r=d1e(),a=h1e(),n=b1e(),l=xY(),s=fY().pbkdf2Sync,d=Qi().Buffer;function b(v,g){var _=v.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(v.algorithm.decrypt.kde.kdeparams.iters.toString(),10),I=a[v.algorithm.decrypt.cipher.algo.join(".")],O=v.algorithm.decrypt.cipher.iv,N=v.subjectPrivateKey,P=parseInt(I.split("-")[1],10)/8,j=s(g,_,A,P,"sha1"),Z=l.createDecipheriv(I,j,O),V=[];return V.push(Z.update(N)),V.push(Z.final()),d.concat(V)}function y(v){var g;if(typeof v==="object"&&!d.isBuffer(v))g=v.passphrase,v=v.key;if(typeof v==="string")v=d.from(v);var _=n(v,g),A=_.tag,I=_.data,O,N;switch(A){case"CERTIFICATE":N=r.certificate.decode(I,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!N)N=r.PublicKey.decode(I,"der");switch(O=N.algorithm.algorithm.join("."),O){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(N.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return N.subjectPrivateKey=N.subjectPublicKey,{type:"ec",data:N};case"1.2.840.10040.4.1":return N.algorithm.params.pub_key=r.DSAparam.decode(N.subjectPublicKey.data,"der"),{type:"dsa",data:N.algorithm.params};default:throw Error("unknown key id "+O)}case"ENCRYPTED PRIVATE KEY":I=r.EncryptedPrivateKey.decode(I,"der"),I=b(I,g);case"PRIVATE KEY":switch(N=r.PrivateKey.decode(I,"der"),O=N.algorithm.algorithm.join("."),O){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(N.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:N.algorithm.curve,privateKey:r.ECPrivateKey.decode(N.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return N.algorithm.params.priv_key=r.DSAparam.decode(N.subjectPrivateKey,"der"),{type:"dsa",params:N.algorithm.params};default:throw Error("unknown key id "+O)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(I,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(I,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(I,"der")};case"EC PRIVATE KEY":return I=r.ECPrivateKey.decode(I,"der"),{curve:I.parameters.value,privateKey:I.privateKey};default:throw Error("unknown key type "+A)}}y.signature=r.signature,t.exports=y}),wY=ct((e,t)=>{var r=F2(),a=Qi().Buffer;t.exports=function(l,s){var d=a.alloc(0),b=0,y;while(d.length<s)y=n(b++),d=a.concat([d,r("sha1").update(l).update(y).digest()]);return d.slice(0,s)};function n(l){var s=a.allocUnsafe(4);return s.writeUInt32BE(l,0),s}}),EY=ct((e,t)=>{t.exports=function(r,a){var n=r.length,l=-1;while(++l<n)r[l]^=a[l];return r}}),rC=ct((e,t)=>{(function(r,a){function n(f,p){if(!f)throw Error(p||"Assertion failed")}function l(f,p){f.super_=p;var x=function(){};x.prototype=p.prototype,f.prototype=new x,f.prototype.constructor=f}function s(f,p,x){if(s.isBN(f))return f;if(this.negative=0,this.words=null,this.length=0,this.red=null,f!==null){if(p==="le"||p==="be")x=p,p=10;this._init(f||0,p||10,x||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(f){}s.isBN=function(f){if(f instanceof s)return!0;return f!==null&&typeof f==="object"&&f.constructor.wordSize===s.wordSize&&Array.isArray(f.words)},s.max=function(f,p){if(f.cmp(p)>0)return f;return p},s.min=function(f,p){if(f.cmp(p)<0)return f;return p},s.prototype._init=function(f,p,x){if(typeof f==="number")return this._initNumber(f,p,x);if(typeof f==="object")return this._initArray(f,p,x);if(p==="hex")p=16;n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var h=0;if(f[0]==="-")h++,this.negative=1;if(h<f.length){if(p===16)this._parseHex(f,h,x);else if(this._parseBase(f,p,h),x==="le")this._initArray(this.toArray(),p,x)}},s.prototype._initNumber=function(f,p,x){if(f<0)this.negative=1,f=-f;if(f<67108864)this.words=[f&67108863],this.length=1;else if(f<4503599627370496)this.words=[f&67108863,f/67108864&67108863],this.length=2;else n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3;if(x!=="le")return;this._initArray(this.toArray(),p,x)},s.prototype._initArray=function(f,p,x){if(n(typeof f.length==="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S,k,C=0;if(x==="be"){for(h=f.length-1,S=0;h>=0;h-=3)if(k=f[h]|f[h-1]<<8|f[h-2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}else if(x==="le"){for(h=0,S=0;h<f.length;h+=3)if(k=f[h]|f[h+1]<<8|f[h+2]<<16,this.words[S]|=k<<C&67108863,this.words[S+1]=k>>>26-C&67108863,C+=24,C>=26)C-=26,S++}return this.strip()};function b(f,p){var x=f.charCodeAt(p);if(x>=65&&x<=70)return x-55;else if(x>=97&&x<=102)return x-87;else return x-48&15}function y(f,p,x){var h=b(f,x);if(x-1>=p)h|=b(f,x-1)<<4;return h}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var S=0,k=0,C;if(x==="be")for(h=f.length-1;h>=p;h-=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8;else{var w=f.length-p;for(h=w%2===0?p+1:p;h<f.length;h+=2)if(C=y(f,p,h)<<S,this.words[k]|=C&67108863,S>=18)S-=18,k+=1,this.words[k]|=C>>>26;else S+=8}this.strip()};function v(f,p,x,h){var S=0,k=Math.min(f.length,x);for(var C=p;C<k;C++){var w=f.charCodeAt(C)-48;if(S*=h,w>=49)S+=w-49+10;else if(w>=17)S+=w-17+10;else S+=w}return S}s.prototype._parseBase=function(f,p,x){this.words=[0],this.length=1;for(var h=0,S=1;S<=67108863;S*=p)h++;h--,S=S/p|0;var k=f.length-x,C=k%h,w=Math.min(k,k-C)+x,c=0;for(var T=x;T<w;T+=h)if(c=v(f,T,T+h,p),this.imuln(S),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(C!==0){var z=1;c=v(f,T,f.length,p);for(T=0;T<C;T++)z*=p;if(this.imuln(z),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this.strip()},s.prototype.copy=function(f){f.words=Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red},s.prototype.clone=function(){var f=new s(null);return this.copy(f),f},s.prototype._expand=function(f){while(this.length<f)this.words[this.length++]=0;return this},s.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],_=[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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";var h=0,S=0;for(var k=0;k<this.length;k++){var C=this.words[k],w=((C<<h|S)&16777215).toString(16);if(S=C>>>24-h&16777215,h+=2,h>=26)h-=26,k--;if(S!==0||k!==this.length-1)x=g[6-w.length]+w+x;else x=w+x}if(S!==0)x=S.toString(16)+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}if(f===(f|0)&&f>=2&&f<=36){var c=_[f],T=A[f];x="";var z=this.clone();z.negative=0;while(!z.isZero()){var R=z.modn(T).toString(f);if(z=z.idivn(T),!z.isZero())x=g[c-R.length]+R+x;else x=R+x}if(this.isZero())x="0"+x;while(x.length%p!==0)x="0"+x;if(this.negative!==0)x="-"+x;return x}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];if(this.length===2)f+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)f+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(f,p){return n(typeof d<"u"),this.toArrayLike(d,f,p)},s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)},s.prototype.toArrayLike=function(f,p,x){var h=this.byteLength(),S=x||Math.max(1,h);n(h<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0"),this.strip();var k=p==="le",C=new f(S),w,c,T=this.clone();if(!k){for(c=0;c<S-h;c++)C[c]=0;for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[S-c-1]=w}else{for(c=0;!T.isZero();c++)w=T.andln(255),T.iushrn(8),C[c]=w;for(;c<S;c++)C[c]=0}return C},Math.clz32)s.prototype._countBits=function(f){return 32-Math.clz32(f)};else s.prototype._countBits=function(f){var p=f,x=0;if(p>=4096)x+=13,p>>>=13;if(p>=64)x+=7,p>>>=7;if(p>=8)x+=4,p>>>=4;if(p>=2)x+=2,p>>>=2;return x+p};s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;if((p&8191)===0)x+=13,p>>>=13;if((p&127)===0)x+=7,p>>>=7;if((p&15)===0)x+=4,p>>>=4;if((p&3)===0)x+=2,p>>>=2;if((p&1)===0)x++;return x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(f){var p=Array(f.bitLength());for(var x=0;x<p.length;x++){var h=x/26|0,S=x%26;p[x]=(f.words[h]&1<<S)>>>S}return p}s.prototype.zeroBits=function(){if(this.isZero())return 0;var f=0;for(var p=0;p<this.length;p++){var x=this._zeroBits(this.words[p]);if(f+=x,x!==26)break}return f},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(f){if(this.negative!==0)return this.abs().inotn(f).iaddn(1);return this.clone()},s.prototype.fromTwos=function(f){if(this.testn(f-1))return this.notn(f).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(f){while(this.length<f.length)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this.strip()},s.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},s.prototype.or=function(f){if(this.length>f.length)return this.clone().ior(f);return f.clone().ior(this)},s.prototype.uor=function(f){if(this.length>f.length)return this.clone().iuor(f);return f.clone().iuor(this)},s.prototype.iuand=function(f){var p;if(this.length>f.length)p=f;else p=this;for(var x=0;x<p.length;x++)this.words[x]=this.words[x]&f.words[x];return this.length=p.length,this.strip()},s.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},s.prototype.and=function(f){if(this.length>f.length)return this.clone().iand(f);return f.clone().iand(this)},s.prototype.uand=function(f){if(this.length>f.length)return this.clone().iuand(f);return f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;if(this.length>f.length)p=this,x=f;else p=f,x=this;for(var h=0;h<x.length;h++)this.words[h]=p.words[h]^x.words[h];if(this!==p)for(;h<p.length;h++)this.words[h]=p.words[h];return this.length=p.length,this.strip()},s.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},s.prototype.xor=function(f){if(this.length>f.length)return this.clone().ixor(f);return f.clone().ixor(this)},s.prototype.uxor=function(f){if(this.length>f.length)return this.clone().iuxor(f);return f.clone().iuxor(this)},s.prototype.inotn=function(f){n(typeof f==="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;if(this._expand(p),x>0)p--;for(var h=0;h<p;h++)this.words[h]=~this.words[h]&67108863;if(x>0)this.words[h]=~this.words[h]&67108863>>26-x;return this.strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){n(typeof f==="number"&&f>=0);var x=f/26|0,h=f%26;if(this._expand(x+1),p)this.words[x]=this.words[x]|1<<h;else this.words[x]=this.words[x]&~(1<<h);return this.strip()},s.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();else if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var x,h;if(this.length>f.length)x=this,h=f;else x=f,h=this;var S=0;for(var k=0;k<h.length;k++)p=(x.words[k]|0)+(h.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;for(;S!==0&&k<x.length;k++)p=(x.words[k]|0)+S,this.words[k]=p&67108863,S=p>>>26;if(this.length=x.length,S!==0)this.words[this.length]=S,this.length++;else if(x!==this)for(;k<x.length;k++)this.words[k]=x.words[k];return this},s.prototype.add=function(f){var p;if(f.negative!==0&&this.negative===0)return f.negative=0,p=this.sub(f),f.negative^=1,p;else if(f.negative===0&&this.negative!==0)return this.negative=0,p=f.sub(this),this.negative=1,p;if(this.length>f.length)return this.clone().iadd(f);return f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,S;if(x>0)h=this,S=f;else h=f,S=this;var k=0;for(var C=0;C<S.length;C++)p=(h.words[C]|0)-(S.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;for(;k!==0&&C<h.length;C++)p=(h.words[C]|0)+k,k=p>>26,this.words[C]=p&67108863;if(k===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];if(this.length=Math.max(this.length,C),h!==this)this.negative=1;return this.strip()},s.prototype.sub=function(f){return this.clone().isub(f)};function O(f,p,x){x.negative=p.negative^f.negative;var h=f.length+p.length|0;x.length=h,h=h-1|0;var S=f.words[0]|0,k=p.words[0]|0,C=S*k,w=C&67108863,c=C/67108864|0;x.words[0]=w;for(var T=1;T<h;T++){var z=c>>>26,R=c&67108863,q=Math.min(T,p.length-1);for(var Q=Math.max(0,T-f.length+1);Q<=q;Q++){var ie=T-Q|0;S=f.words[ie]|0,k=p.words[Q]|0,C=S*k+R,z+=C/67108864|0,R=C&67108863}x.words[T]=R|0,c=z|0}if(c!==0)x.words[T]=c|0;else x.length--;return x.strip()}var N=function(f,p,x){var h=f.words,S=p.words,k=x.words,C=0,w,c,T,z=h[0]|0,R=z&8191,q=z>>>13,Q=h[1]|0,ie=Q&8191,me=Q>>>13,Je=h[2]|0,ke=Je&8191,fe=Je>>>13,be=h[3]|0,Ae=be&8191,Be=be>>>13,vt=h[4]|0,oe=vt&8191,se=vt>>>13,Ke=h[5]|0,he=Ke&8191,Ie=Ke>>>13,Qe=h[6]|0,le=Qe&8191,Ee=Qe>>>13,gt=h[7]|0,De=gt&8191,We=gt>>>13,Ye=h[8]|0,we=Ye&8191,Fe=Ye>>>13,L=h[9]|0,ae=L&8191,_e=L>>>13,ot=S[0]|0,xe=ot&8191,K=ot>>>13,Ge=S[1]|0,F=Ge&8191,te=Ge>>>13,Pe=S[2]|0,pe=Pe&8191,de=Pe>>>13,at=S[3]|0,$e=at&8191,qe=at>>>13,ht=S[4]|0,tt=ht&8191,nt=ht>>>13,Er=S[5]|0,bt=Er&8191,re=Er>>>13,ye=S[6]|0,Ze=ye&8191,Ve=ye>>>13,Dt=S[7]|0,mt=Dt&8191,yt=Dt>>>13,Qr=S[8]|0,_t=Qr&8191,xt=Qr>>>13,zr=S[9]|0,wt=zr&8191,St=zr>>>13;x.negative=f.negative^p.negative,x.length=19,w=Math.imul(R,xe),c=Math.imul(R,K),c=c+Math.imul(q,xe)|0,T=Math.imul(q,K);var sn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(sn>>>26)|0,sn&=67108863,w=Math.imul(ie,xe),c=Math.imul(ie,K),c=c+Math.imul(me,xe)|0,T=Math.imul(me,K),w=w+Math.imul(R,F)|0,c=c+Math.imul(R,te)|0,c=c+Math.imul(q,F)|0,T=T+Math.imul(q,te)|0;var ir=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(ke,xe),c=Math.imul(ke,K),c=c+Math.imul(fe,xe)|0,T=Math.imul(fe,K),w=w+Math.imul(ie,F)|0,c=c+Math.imul(ie,te)|0,c=c+Math.imul(me,F)|0,T=T+Math.imul(me,te)|0,w=w+Math.imul(R,pe)|0,c=c+Math.imul(R,de)|0,c=c+Math.imul(q,pe)|0,T=T+Math.imul(q,de)|0;var nr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ae,xe),c=Math.imul(Ae,K),c=c+Math.imul(Be,xe)|0,T=Math.imul(Be,K),w=w+Math.imul(ke,F)|0,c=c+Math.imul(ke,te)|0,c=c+Math.imul(fe,F)|0,T=T+Math.imul(fe,te)|0,w=w+Math.imul(ie,pe)|0,c=c+Math.imul(ie,de)|0,c=c+Math.imul(me,pe)|0,T=T+Math.imul(me,de)|0,w=w+Math.imul(R,$e)|0,c=c+Math.imul(R,qe)|0,c=c+Math.imul(q,$e)|0,T=T+Math.imul(q,qe)|0;var Lr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,w=Math.imul(oe,xe),c=Math.imul(oe,K),c=c+Math.imul(se,xe)|0,T=Math.imul(se,K),w=w+Math.imul(Ae,F)|0,c=c+Math.imul(Ae,te)|0,c=c+Math.imul(Be,F)|0,T=T+Math.imul(Be,te)|0,w=w+Math.imul(ke,pe)|0,c=c+Math.imul(ke,de)|0,c=c+Math.imul(fe,pe)|0,T=T+Math.imul(fe,de)|0,w=w+Math.imul(ie,$e)|0,c=c+Math.imul(ie,qe)|0,c=c+Math.imul(me,$e)|0,T=T+Math.imul(me,qe)|0,w=w+Math.imul(R,tt)|0,c=c+Math.imul(R,nt)|0,c=c+Math.imul(q,tt)|0,T=T+Math.imul(q,nt)|0;var Tr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,w=Math.imul(he,xe),c=Math.imul(he,K),c=c+Math.imul(Ie,xe)|0,T=Math.imul(Ie,K),w=w+Math.imul(oe,F)|0,c=c+Math.imul(oe,te)|0,c=c+Math.imul(se,F)|0,T=T+Math.imul(se,te)|0,w=w+Math.imul(Ae,pe)|0,c=c+Math.imul(Ae,de)|0,c=c+Math.imul(Be,pe)|0,T=T+Math.imul(Be,de)|0,w=w+Math.imul(ke,$e)|0,c=c+Math.imul(ke,qe)|0,c=c+Math.imul(fe,$e)|0,T=T+Math.imul(fe,qe)|0,w=w+Math.imul(ie,tt)|0,c=c+Math.imul(ie,nt)|0,c=c+Math.imul(me,tt)|0,T=T+Math.imul(me,nt)|0,w=w+Math.imul(R,bt)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(q,bt)|0,T=T+Math.imul(q,re)|0;var wn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,w=Math.imul(le,xe),c=Math.imul(le,K),c=c+Math.imul(Ee,xe)|0,T=Math.imul(Ee,K),w=w+Math.imul(he,F)|0,c=c+Math.imul(he,te)|0,c=c+Math.imul(Ie,F)|0,T=T+Math.imul(Ie,te)|0,w=w+Math.imul(oe,pe)|0,c=c+Math.imul(oe,de)|0,c=c+Math.imul(se,pe)|0,T=T+Math.imul(se,de)|0,w=w+Math.imul(Ae,$e)|0,c=c+Math.imul(Ae,qe)|0,c=c+Math.imul(Be,$e)|0,T=T+Math.imul(Be,qe)|0,w=w+Math.imul(ke,tt)|0,c=c+Math.imul(ke,nt)|0,c=c+Math.imul(fe,tt)|0,T=T+Math.imul(fe,nt)|0,w=w+Math.imul(ie,bt)|0,c=c+Math.imul(ie,re)|0,c=c+Math.imul(me,bt)|0,T=T+Math.imul(me,re)|0,w=w+Math.imul(R,Ze)|0,c=c+Math.imul(R,Ve)|0,c=c+Math.imul(q,Ze)|0,T=T+Math.imul(q,Ve)|0;var En=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(En>>>26)|0,En&=67108863,w=Math.imul(De,xe),c=Math.imul(De,K),c=c+Math.imul(We,xe)|0,T=Math.imul(We,K),w=w+Math.imul(le,F)|0,c=c+Math.imul(le,te)|0,c=c+Math.imul(Ee,F)|0,T=T+Math.imul(Ee,te)|0,w=w+Math.imul(he,pe)|0,c=c+Math.imul(he,de)|0,c=c+Math.imul(Ie,pe)|0,T=T+Math.imul(Ie,de)|0,w=w+Math.imul(oe,$e)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(se,$e)|0,T=T+Math.imul(se,qe)|0,w=w+Math.imul(Ae,tt)|0,c=c+Math.imul(Ae,nt)|0,c=c+Math.imul(Be,tt)|0,T=T+Math.imul(Be,nt)|0,w=w+Math.imul(ke,bt)|0,c=c+Math.imul(ke,re)|0,c=c+Math.imul(fe,bt)|0,T=T+Math.imul(fe,re)|0,w=w+Math.imul(ie,Ze)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(me,Ze)|0,T=T+Math.imul(me,Ve)|0,w=w+Math.imul(R,mt)|0,c=c+Math.imul(R,yt)|0,c=c+Math.imul(q,mt)|0,T=T+Math.imul(q,yt)|0;var Tn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(we,xe),c=Math.imul(we,K),c=c+Math.imul(Fe,xe)|0,T=Math.imul(Fe,K),w=w+Math.imul(De,F)|0,c=c+Math.imul(De,te)|0,c=c+Math.imul(We,F)|0,T=T+Math.imul(We,te)|0,w=w+Math.imul(le,pe)|0,c=c+Math.imul(le,de)|0,c=c+Math.imul(Ee,pe)|0,T=T+Math.imul(Ee,de)|0,w=w+Math.imul(he,$e)|0,c=c+Math.imul(he,qe)|0,c=c+Math.imul(Ie,$e)|0,T=T+Math.imul(Ie,qe)|0,w=w+Math.imul(oe,tt)|0,c=c+Math.imul(oe,nt)|0,c=c+Math.imul(se,tt)|0,T=T+Math.imul(se,nt)|0,w=w+Math.imul(Ae,bt)|0,c=c+Math.imul(Ae,re)|0,c=c+Math.imul(Be,bt)|0,T=T+Math.imul(Be,re)|0,w=w+Math.imul(ke,Ze)|0,c=c+Math.imul(ke,Ve)|0,c=c+Math.imul(fe,Ze)|0,T=T+Math.imul(fe,Ve)|0,w=w+Math.imul(ie,mt)|0,c=c+Math.imul(ie,yt)|0,c=c+Math.imul(me,mt)|0,T=T+Math.imul(me,yt)|0,w=w+Math.imul(R,_t)|0,c=c+Math.imul(R,xt)|0,c=c+Math.imul(q,_t)|0,T=T+Math.imul(q,xt)|0;var kn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,w=Math.imul(ae,xe),c=Math.imul(ae,K),c=c+Math.imul(_e,xe)|0,T=Math.imul(_e,K),w=w+Math.imul(we,F)|0,c=c+Math.imul(we,te)|0,c=c+Math.imul(Fe,F)|0,T=T+Math.imul(Fe,te)|0,w=w+Math.imul(De,pe)|0,c=c+Math.imul(De,de)|0,c=c+Math.imul(We,pe)|0,T=T+Math.imul(We,de)|0,w=w+Math.imul(le,$e)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(Ee,$e)|0,T=T+Math.imul(Ee,qe)|0,w=w+Math.imul(he,tt)|0,c=c+Math.imul(he,nt)|0,c=c+Math.imul(Ie,tt)|0,T=T+Math.imul(Ie,nt)|0,w=w+Math.imul(oe,bt)|0,c=c+Math.imul(oe,re)|0,c=c+Math.imul(se,bt)|0,T=T+Math.imul(se,re)|0,w=w+Math.imul(Ae,Ze)|0,c=c+Math.imul(Ae,Ve)|0,c=c+Math.imul(Be,Ze)|0,T=T+Math.imul(Be,Ve)|0,w=w+Math.imul(ke,mt)|0,c=c+Math.imul(ke,yt)|0,c=c+Math.imul(fe,mt)|0,T=T+Math.imul(fe,yt)|0,w=w+Math.imul(ie,_t)|0,c=c+Math.imul(ie,xt)|0,c=c+Math.imul(me,_t)|0,T=T+Math.imul(me,xt)|0,w=w+Math.imul(R,wt)|0,c=c+Math.imul(R,St)|0,c=c+Math.imul(q,wt)|0,T=T+Math.imul(q,St)|0;var An=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(ae,F),c=Math.imul(ae,te),c=c+Math.imul(_e,F)|0,T=Math.imul(_e,te),w=w+Math.imul(we,pe)|0,c=c+Math.imul(we,de)|0,c=c+Math.imul(Fe,pe)|0,T=T+Math.imul(Fe,de)|0,w=w+Math.imul(De,$e)|0,c=c+Math.imul(De,qe)|0,c=c+Math.imul(We,$e)|0,T=T+Math.imul(We,qe)|0,w=w+Math.imul(le,tt)|0,c=c+Math.imul(le,nt)|0,c=c+Math.imul(Ee,tt)|0,T=T+Math.imul(Ee,nt)|0,w=w+Math.imul(he,bt)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Ie,bt)|0,T=T+Math.imul(Ie,re)|0,w=w+Math.imul(oe,Ze)|0,c=c+Math.imul(oe,Ve)|0,c=c+Math.imul(se,Ze)|0,T=T+Math.imul(se,Ve)|0,w=w+Math.imul(Ae,mt)|0,c=c+Math.imul(Ae,yt)|0,c=c+Math.imul(Be,mt)|0,T=T+Math.imul(Be,yt)|0,w=w+Math.imul(ke,_t)|0,c=c+Math.imul(ke,xt)|0,c=c+Math.imul(fe,_t)|0,T=T+Math.imul(fe,xt)|0,w=w+Math.imul(ie,wt)|0,c=c+Math.imul(ie,St)|0,c=c+Math.imul(me,wt)|0,T=T+Math.imul(me,St)|0;var Or=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Or>>>26)|0,Or&=67108863,w=Math.imul(ae,pe),c=Math.imul(ae,de),c=c+Math.imul(_e,pe)|0,T=Math.imul(_e,de),w=w+Math.imul(we,$e)|0,c=c+Math.imul(we,qe)|0,c=c+Math.imul(Fe,$e)|0,T=T+Math.imul(Fe,qe)|0,w=w+Math.imul(De,tt)|0,c=c+Math.imul(De,nt)|0,c=c+Math.imul(We,tt)|0,T=T+Math.imul(We,nt)|0,w=w+Math.imul(le,bt)|0,c=c+Math.imul(le,re)|0,c=c+Math.imul(Ee,bt)|0,T=T+Math.imul(Ee,re)|0,w=w+Math.imul(he,Ze)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(Ie,Ze)|0,T=T+Math.imul(Ie,Ve)|0,w=w+Math.imul(oe,mt)|0,c=c+Math.imul(oe,yt)|0,c=c+Math.imul(se,mt)|0,T=T+Math.imul(se,yt)|0,w=w+Math.imul(Ae,_t)|0,c=c+Math.imul(Ae,xt)|0,c=c+Math.imul(Be,_t)|0,T=T+Math.imul(Be,xt)|0,w=w+Math.imul(ke,wt)|0,c=c+Math.imul(ke,St)|0,c=c+Math.imul(fe,wt)|0,T=T+Math.imul(fe,St)|0;var en=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(en>>>26)|0,en&=67108863,w=Math.imul(ae,$e),c=Math.imul(ae,qe),c=c+Math.imul(_e,$e)|0,T=Math.imul(_e,qe),w=w+Math.imul(we,tt)|0,c=c+Math.imul(we,nt)|0,c=c+Math.imul(Fe,tt)|0,T=T+Math.imul(Fe,nt)|0,w=w+Math.imul(De,bt)|0,c=c+Math.imul(De,re)|0,c=c+Math.imul(We,bt)|0,T=T+Math.imul(We,re)|0,w=w+Math.imul(le,Ze)|0,c=c+Math.imul(le,Ve)|0,c=c+Math.imul(Ee,Ze)|0,T=T+Math.imul(Ee,Ve)|0,w=w+Math.imul(he,mt)|0,c=c+Math.imul(he,yt)|0,c=c+Math.imul(Ie,mt)|0,T=T+Math.imul(Ie,yt)|0,w=w+Math.imul(oe,_t)|0,c=c+Math.imul(oe,xt)|0,c=c+Math.imul(se,_t)|0,T=T+Math.imul(se,xt)|0,w=w+Math.imul(Ae,wt)|0,c=c+Math.imul(Ae,St)|0,c=c+Math.imul(Be,wt)|0,T=T+Math.imul(Be,St)|0;var Kr=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(ae,tt),c=Math.imul(ae,nt),c=c+Math.imul(_e,tt)|0,T=Math.imul(_e,nt),w=w+Math.imul(we,bt)|0,c=c+Math.imul(we,re)|0,c=c+Math.imul(Fe,bt)|0,T=T+Math.imul(Fe,re)|0,w=w+Math.imul(De,Ze)|0,c=c+Math.imul(De,Ve)|0,c=c+Math.imul(We,Ze)|0,T=T+Math.imul(We,Ve)|0,w=w+Math.imul(le,mt)|0,c=c+Math.imul(le,yt)|0,c=c+Math.imul(Ee,mt)|0,T=T+Math.imul(Ee,yt)|0,w=w+Math.imul(he,_t)|0,c=c+Math.imul(he,xt)|0,c=c+Math.imul(Ie,_t)|0,T=T+Math.imul(Ie,xt)|0,w=w+Math.imul(oe,wt)|0,c=c+Math.imul(oe,St)|0,c=c+Math.imul(se,wt)|0,T=T+Math.imul(se,St)|0;var Mn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,w=Math.imul(ae,bt),c=Math.imul(ae,re),c=c+Math.imul(_e,bt)|0,T=Math.imul(_e,re),w=w+Math.imul(we,Ze)|0,c=c+Math.imul(we,Ve)|0,c=c+Math.imul(Fe,Ze)|0,T=T+Math.imul(Fe,Ve)|0,w=w+Math.imul(De,mt)|0,c=c+Math.imul(De,yt)|0,c=c+Math.imul(We,mt)|0,T=T+Math.imul(We,yt)|0,w=w+Math.imul(le,_t)|0,c=c+Math.imul(le,xt)|0,c=c+Math.imul(Ee,_t)|0,T=T+Math.imul(Ee,xt)|0,w=w+Math.imul(he,wt)|0,c=c+Math.imul(he,St)|0,c=c+Math.imul(Ie,wt)|0,T=T+Math.imul(Ie,St)|0;var ln=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(ln>>>26)|0,ln&=67108863,w=Math.imul(ae,Ze),c=Math.imul(ae,Ve),c=c+Math.imul(_e,Ze)|0,T=Math.imul(_e,Ve),w=w+Math.imul(we,mt)|0,c=c+Math.imul(we,yt)|0,c=c+Math.imul(Fe,mt)|0,T=T+Math.imul(Fe,yt)|0,w=w+Math.imul(De,_t)|0,c=c+Math.imul(De,xt)|0,c=c+Math.imul(We,_t)|0,T=T+Math.imul(We,xt)|0,w=w+Math.imul(le,wt)|0,c=c+Math.imul(le,St)|0,c=c+Math.imul(Ee,wt)|0,T=T+Math.imul(Ee,St)|0;var pn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(ae,mt),c=Math.imul(ae,yt),c=c+Math.imul(_e,mt)|0,T=Math.imul(_e,yt),w=w+Math.imul(we,_t)|0,c=c+Math.imul(we,xt)|0,c=c+Math.imul(Fe,_t)|0,T=T+Math.imul(Fe,xt)|0,w=w+Math.imul(De,wt)|0,c=c+Math.imul(De,St)|0,c=c+Math.imul(We,wt)|0,T=T+Math.imul(We,St)|0;var yn=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(yn>>>26)|0,yn&=67108863,w=Math.imul(ae,_t),c=Math.imul(ae,xt),c=c+Math.imul(_e,_t)|0,T=Math.imul(_e,xt),w=w+Math.imul(we,wt)|0,c=c+Math.imul(we,St)|0,c=c+Math.imul(Fe,wt)|0,T=T+Math.imul(Fe,St)|0;var un=(C+w|0)+((c&8191)<<13)|0;C=(T+(c>>>13)|0)+(un>>>26)|0,un&=67108863,w=Math.imul(ae,wt),c=Math.imul(ae,St),c=c+Math.imul(_e,wt)|0,T=Math.imul(_e,St);var tn=(C+w|0)+((c&8191)<<13)|0;if(C=(T+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,k[0]=sn,k[1]=ir,k[2]=nr,k[3]=Lr,k[4]=Tr,k[5]=wn,k[6]=En,k[7]=Tn,k[8]=kn,k[9]=An,k[10]=Or,k[11]=en,k[12]=Kr,k[13]=Mn,k[14]=ln,k[15]=pn,k[16]=yn,k[17]=un,k[18]=tn,C!==0)k[19]=C,x.length++;return x};if(!Math.imul)N=O;function P(f,p,x){x.negative=p.negative^f.negative,x.length=f.length+p.length;var h=0,S=0;for(var k=0;k<x.length-1;k++){var C=S;S=0;var w=h&67108863,c=Math.min(k,p.length-1);for(var T=Math.max(0,k-f.length+1);T<=c;T++){var z=k-T,R=f.words[z]|0,q=p.words[T]|0,Q=R*q,ie=Q&67108863;C=C+(Q/67108864|0)|0,ie=ie+w|0,w=ie&67108863,C=C+(ie>>>26)|0,S+=C>>>26,C&=67108863}x.words[k]=w,h=C,C=S}if(h!==0)x.words[k]=h;else x.length--;return x.strip()}function j(f,p,x){var h=new Z;return h.mulp(f,p,x)}s.prototype.mulTo=function(f,p){var x,h=this.length+f.length;if(this.length===10&&f.length===10)x=N(this,f,p);else if(h<63)x=O(this,f,p);else if(h<1024)x=P(this,f,p);else x=j(this,f,p);return x};function Z(f,p){this.x=f,this.y=p}Z.prototype.makeRBT=function(f){var p=Array(f),x=s.prototype._countBits(f)-1;for(var h=0;h<f;h++)p[h]=this.revBin(h,x,f);return p},Z.prototype.revBin=function(f,p,x){if(f===0||f===x-1)return f;var h=0;for(var S=0;S<p;S++)h|=(f&1)<<p-S-1,f>>=1;return h},Z.prototype.permute=function(f,p,x,h,S,k){for(var C=0;C<k;C++)h[C]=p[f[C]],S[C]=x[f[C]]},Z.prototype.transform=function(f,p,x,h,S,k){this.permute(k,f,p,x,h,S);for(var C=1;C<S;C<<=1){var w=C<<1,c=Math.cos(2*Math.PI/w),T=Math.sin(2*Math.PI/w);for(var z=0;z<S;z+=w){var R=c,q=T;for(var Q=0;Q<C;Q++){var ie=x[z+Q],me=h[z+Q],Je=x[z+Q+C],ke=h[z+Q+C],fe=R*Je-q*ke;if(ke=R*ke+q*Je,Je=fe,x[z+Q]=ie+Je,h[z+Q]=me+ke,x[z+Q+C]=ie-Je,h[z+Q+C]=me-ke,Q!==w)fe=c*R-T*q,q=c*q+T*R,R=fe}}}},Z.prototype.guessLen13b=function(f,p){var x=Math.max(p,f)|1,h=x&1,S=0;for(x=x/2|0;x;x=x>>>1)S++;return 1<<S+1+h},Z.prototype.conjugate=function(f,p,x){if(x<=1)return;for(var h=0;h<x/2;h++){var S=f[h];f[h]=f[x-h-1],f[x-h-1]=S,S=p[h],p[h]=-p[x-h-1],p[x-h-1]=-S}},Z.prototype.normalize13b=function(f,p){var x=0;for(var h=0;h<p/2;h++){var S=Math.round(f[2*h+1]/p)*8192+Math.round(f[2*h]/p)+x;if(f[h]=S&67108863,S<67108864)x=0;else x=S/67108864|0}return f},Z.prototype.convert13b=function(f,p,x,h){var S=0;for(var k=0;k<p;k++)S=S+(f[k]|0),x[2*k]=S&8191,S=S>>>13,x[2*k+1]=S&8191,S=S>>>13;for(k=2*p;k<h;++k)x[k]=0;n(S===0),n((S&-8192)===0)},Z.prototype.stub=function(f){var p=Array(f);for(var x=0;x<f;x++)p[x]=0;return p},Z.prototype.mulp=function(f,p,x){var h=2*this.guessLen13b(f.length,p.length),S=this.makeRBT(h),k=this.stub(h),C=Array(h),w=Array(h),c=Array(h),T=Array(h),z=Array(h),R=Array(h),q=x.words;q.length=h,this.convert13b(f.words,f.length,C,h),this.convert13b(p.words,p.length,T,h),this.transform(C,k,w,c,h,S),this.transform(T,k,z,R,h,S);for(var Q=0;Q<h;Q++){var ie=w[Q]*z[Q]-c[Q]*R[Q];c[Q]=w[Q]*R[Q]+c[Q]*z[Q],w[Q]=ie}return this.conjugate(w,c,h),this.transform(w,c,q,k,h,S),this.conjugate(q,k,h),this.normalize13b(q,h),x.negative=f.negative^p.negative,x.length=f.length+p.length,x.strip()},s.prototype.mul=function(f){var p=new s(null);return p.words=Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=Array(this.length+f.length),j(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){n(typeof f==="number"),n(f<67108864);var p=0;for(var x=0;x<this.length;x++){var h=(this.words[x]|0)*f,S=(h&67108863)+(p&67108863);p>>=26,p+=h/67108864|0,p+=S>>>26,this.words[x]=S&67108863}if(p!==0)this.words[x]=p,this.length++;return this.length=f===0?1:this.length,this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=I(f);if(p.length===0)return new s(1);var x=this;for(var h=0;h<p.length;h++,x=x.sqr())if(p[h]!==0)break;if(++h<p.length)for(var S=x.sqr();h<p.length;h++,S=S.sqr()){if(p[h]===0)continue;x=x.mul(S)}return x},s.prototype.iushln=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=67108863>>>26-p<<26-p,S;if(p!==0){var k=0;for(S=0;S<this.length;S++){var C=this.words[S]&h,w=(this.words[S]|0)-C<<p;this.words[S]=w|k,k=C>>>26-p}if(k)this.words[S]=k,this.length++}if(x!==0){for(S=this.length-1;S>=0;S--)this.words[S+x]=this.words[S];for(S=0;S<x;S++)this.words[S]=0;this.length+=x}return this.strip()},s.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},s.prototype.iushrn=function(f,p,x){n(typeof f==="number"&&f>=0);var h;if(p)h=(p-p%26)/26;else h=0;var S=f%26,k=Math.min((f-S)/26,this.length),C=67108863^67108863>>>S<<S,w=x;if(h-=k,h=Math.max(0,h),w){for(var c=0;c<k;c++)w.words[c]=this.words[c];w.length=k}if(k===0);else if(this.length>k){this.length-=k;for(c=0;c<this.length;c++)this.words[c]=this.words[c+k]}else this.words[0]=0,this.length=1;var T=0;for(c=this.length-1;c>=0&&(T!==0||c>=h);c--){var z=this.words[c]|0;this.words[c]=T<<26-S|z>>>S,T=z&C}if(w&&T!==0)w.words[w.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},s.prototype.ishrn=function(f,p,x){return n(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return!1;var S=this.words[x];return!!(S&h)},s.prototype.imaskn=function(f){n(typeof f==="number"&&f>=0);var p=f%26,x=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0)x++;if(this.length=Math.min(x,this.length),p!==0){var h=67108863^67108863>>>p<<p;this.words[this.length-1]&=h}return this.strip()},s.prototype.maskn=function(f){return this.clone().imaskn(f)},s.prototype.iaddn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.isubn(-f);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<f)return this.words[0]=f-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(f),this.negative=1,this}return this._iaddn(f)},s.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)if(this.words[p]-=67108864,p===this.length-1)this.words[p+1]=1;else this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(n(typeof f==="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(f){return this.clone().iaddn(f)},s.prototype.subn=function(f){return this.clone().isubn(f)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(f,p,x){var h=f.length+x,S;this._expand(h);var k,C=0;for(S=0;S<f.length;S++){k=(this.words[S+x]|0)+C;var w=(f.words[S]|0)*p;k-=w&67108863,C=(k>>26)-(w/67108864|0),this.words[S+x]=k&67108863}for(;S<this.length-x;S++)k=(this.words[S+x]|0)+C,C=k>>26,this.words[S+x]=k&67108863;if(C===0)return this.strip();n(C===-1),C=0;for(S=0;S<this.length;S++)k=-(this.words[S]|0)+C,C=k>>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,h=this.clone(),S=f,k=S.words[S.length-1]|0,C=this._countBits(k);if(x=26-C,x!==0)S=S.ushln(x),h.iushln(x),k=S.words[S.length-1]|0;var w=h.length-S.length,c;if(p!=="mod"){c=new s(null),c.length=w+1,c.words=Array(c.length);for(var T=0;T<c.length;T++)c.words[T]=0}var z=h.clone()._ishlnsubmul(S,1,w);if(z.negative===0){if(h=z,c)c.words[w]=1}for(var R=w-1;R>=0;R--){var q=(h.words[S.length+R]|0)*67108864+(h.words[S.length+R-1]|0);q=Math.min(q/k|0,67108863),h._ishlnsubmul(S,q,R);while(h.negative!==0)if(q--,h.negative=0,h._ishlnsubmul(S,1,R),!h.isZero())h.negative^=1;if(c)c.words[R]=q}if(c)c.strip();if(h.strip(),p!=="div"&&x!==0)h.iushrn(x);return{div:c||null,mod:h}},s.prototype.divmod=function(f,p,x){if(n(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var h,S,k;if(this.negative!==0&&f.negative===0){if(k=this.neg().divmod(f,p),p!=="mod")h=k.div.neg();if(p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.iadd(f)}return{div:h,mod:S}}if(this.negative===0&&f.negative!==0){if(k=this.divmod(f.neg(),p),p!=="mod")h=k.div.neg();return{div:h,mod:k.mod}}if((this.negative&f.negative)!==0){if(k=this.neg().divmod(f.neg(),p),p!=="div"){if(S=k.mod.neg(),x&&S.negative!==0)S.isub(f)}return{div:k.div,mod:S}}if(f.length>this.length||this.cmp(f)<0)return{div:new s(0),mod:this};if(f.length===1){if(p==="div")return{div:this.divn(f.words[0]),mod:null};if(p==="mod")return{div:null,mod:new s(this.modn(f.words[0]))};return{div:this.divn(f.words[0]),mod:new s(this.modn(f.words[0]))}}return this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,h=f.ushrn(1),S=f.andln(1),k=x.cmp(h);if(k<0||S===1&&k===0)return p.div;return p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(f){n(f<=67108863);var p=67108864%f,x=0;for(var h=this.length-1;h>=0;h--)x=(p*x+(this.words[h]|0))%f;return x},s.prototype.idivn=function(f){n(f<=67108863);var p=0;for(var x=this.length-1;x>=0;x--){var h=(this.words[x]|0)+p*67108864;this.words[x]=h/f|0,p=h%f}return this.strip()},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=new s(0),C=new s(1),w=0;while(p.isEven()&&x.isEven())p.iushrn(1),x.iushrn(1),++w;var c=x.clone(),T=p.clone();while(!p.isZero()){for(var z=0,R=1;(p.words[0]&R)===0&&z<26;++z,R<<=1);if(z>0){p.iushrn(z);while(z-- >0){if(h.isOdd()||S.isOdd())h.iadd(c),S.isub(T);h.iushrn(1),S.iushrn(1)}}for(var q=0,Q=1;(x.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0){x.iushrn(q);while(q-- >0){if(k.isOdd()||C.isOdd())k.iadd(c),C.isub(T);k.iushrn(1),C.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(k),S.isub(C);else x.isub(p),k.isub(h),C.isub(S)}return{a:k,b:C,gcd:x.iushln(w)}},s.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,x=f.clone();if(p.negative!==0)p=p.umod(f);else p=p.clone();var h=new s(1),S=new s(0),k=x.clone();while(p.cmpn(1)>0&&x.cmpn(1)>0){for(var C=0,w=1;(p.words[0]&w)===0&&C<26;++C,w<<=1);if(C>0){p.iushrn(C);while(C-- >0){if(h.isOdd())h.iadd(k);h.iushrn(1)}}for(var c=0,T=1;(x.words[0]&T)===0&&c<26;++c,T<<=1);if(c>0){x.iushrn(c);while(c-- >0){if(S.isOdd())S.iadd(k);S.iushrn(1)}}if(p.cmp(x)>=0)p.isub(x),h.isub(S);else x.isub(p),S.isub(h)}var z;if(p.cmpn(1)===0)z=h;else z=S;if(z.cmpn(0)<0)z.iadd(f);return z},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var h=0;p.isEven()&&x.isEven();h++)p.iushrn(1),x.iushrn(1);do{while(p.isEven())p.iushrn(1);while(x.isEven())x.iushrn(1);var S=p.cmp(x);if(S<0){var k=p;p=x,x=k}else if(S===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(h)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){n(typeof f==="number");var p=f%26,x=(f-p)/26,h=1<<p;if(this.length<=x)return this._expand(x+1),this.words[x]|=h,this;var S=h;for(var k=x;S!==0&&k<this.length;k++){var C=this.words[k]|0;C+=S,S=C>>>26,C&=67108863,this.words[k]=C}if(S!==0)this.words[k]=S,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var x;if(this.length>1)x=1;else{if(p)f=-f;n(f<=67108863,"Number is too big");var h=this.words[0]|0;x=h===f?0:h<f?-1:1}if(this.negative!==0)return-x|0;return x},s.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);if(this.negative!==0)return-p|0;return p},s.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;var p=0;for(var x=this.length-1;x>=0;x--){var h=this.words[x]|0,S=f.words[x]|0;if(h===S)continue;if(h<S)p=-1;else if(h>S)p=1;break}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new Y(f)},s.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var V={k256:null,p224:null,p192:null,p25519:null};function W(f,p){this.name=f,this.p=new s(p,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}W.prototype._tmp=function(){var f=new s(null);return f.words=Array(Math.ceil(this.n/13)),f},W.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var h=x<this.n?-1:p.ucmp(this.p);if(h===0)p.words[0]=0,p.length=1;else if(h>0)p.isub(this.p);else if(p.strip!==void 0)p.strip();else p._strip();return p},W.prototype.split=function(f,p){f.iushrn(this.n,0,p)},W.prototype.imulK=function(f){return f.imul(this.k)};function J(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(J,W),J.prototype.split=function(f,p){var x=4194303,h=Math.min(f.length,9);for(var S=0;S<h;S++)p.words[S]=f.words[S];if(p.length=h,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];p.words[p.length++]=k&x;for(S=10;S<f.length;S++){var C=f.words[S]|0;f.words[S-10]=(C&x)<<4|k>>>22,k=C}if(k>>>=22,f.words[S-10]=k,k===0&&f.length>10)f.length-=10;else f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;var p=0;for(var x=0;x<f.length;x++){var h=f.words[x]|0;p+=h*977,f.words[x]=p&67108863,p=h*64+(p/67108864|0)}if(f.words[f.length-1]===0){if(f.length--,f.words[f.length-1]===0)f.length--}return f};function ve(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(ve,W);function ce(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(ce,W);function Me(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(Me,W),Me.prototype.imulK=function(f){var p=0;for(var x=0;x<f.length;x++){var h=(f.words[x]|0)*19+p,S=h&67108863;h>>>=26,f.words[x]=S,p=h}if(p!==0)f.words[f.length++]=p;return f},s._prime=function(f){if(V[f])return V[f];var p;if(f==="k256")p=new J;else if(f==="p224")p=new ve;else if(f==="p192")p=new ce;else if(f==="p25519")p=new Me;else throw Error("Unknown prime "+f);return V[f]=p,p};function Y(f){if(typeof f==="string"){var p=s._prime(f);this.m=p.p,this.prime=p}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}Y.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},Y.prototype.imod=function(f){if(this.prime)return this.prime.ireduce(f)._forceRed(this);return f.umod(this.m)._forceRed(this)},Y.prototype.neg=function(f){if(f.isZero())return f.clone();return this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x._forceRed(this)},Y.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);if(x.cmp(this.m)>=0)x.isub(this.m);return x},Y.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x._forceRed(this)},Y.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);if(x.cmpn(0)<0)x.iadd(this.m);return x},Y.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},Y.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},Y.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}var h=this.m.subn(1),S=0;while(!h.isZero()&&h.andln(1)===0)S++,h.iushrn(1);n(!h.isZero());var k=new s(1).toRed(this),C=k.redNeg(),w=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new s(2*c*c).toRed(this);while(this.pow(c,w).cmp(C)!==0)c.redIAdd(C);var T=this.pow(c,h),z=this.pow(f,h.addn(1).iushrn(1)),R=this.pow(f,h),q=S;while(R.cmp(k)!==0){var Q=R;for(var ie=0;Q.cmp(k)!==0;ie++)Q=Q.redSqr();n(ie<q);var me=this.pow(T,new s(1).iushln(q-ie-1));z=z.redMul(me),T=me.redSqr(),R=R.redMul(T),q=ie}return z},Y.prototype.invm=function(f){var p=f._invmp(this.m);if(p.negative!==0)return p.negative=0,this.imod(p).redNeg();else return this.imod(p)},Y.prototype.pow=function(f,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var x=4,h=Array(1<<x);h[0]=new s(1).toRed(this),h[1]=f;for(var S=2;S<h.length;S++)h[S]=this.mul(h[S-1],f);var k=h[0],C=0,w=0,c=p.bitLength()%26;if(c===0)c=26;for(S=p.length-1;S>=0;S--){var T=p.words[S];for(var z=c-1;z>=0;z--){var R=T>>z&1;if(k!==h[0])k=this.sqr(k);if(R===0&&C===0){w=0;continue}if(C<<=1,C|=R,w++,w!==x&&(S!==0||z!==0))continue;k=this.mul(k,h[C]),w=0,C=0}c=26}return k},Y.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},Y.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new Te(f)};function Te(f){if(Y.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(Te,Y),Te.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Te.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},Te.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),h=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=x.isub(h).iushrn(this.shift),k=S;if(S.cmp(this.m)>=0)k=S.isub(this.m);else if(S.cmpn(0)<0)k=S.iadd(this.m);return k._forceRed(this)},Te.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof t>"u"||t,e)}),TY=ct((e,t)=>{var r=rC(),a=Qi().Buffer;function n(l,s){return a.from(l.toRed(r.mont(s.modulus)).redPow(new r(s.publicExponent)).fromRed().toArray())}t.exports=n}),y1e=ct((e,t)=>{(function(r,a){function n(h,S){if(!h)throw Error(S||"Assertion failed")}function l(h,S){h.super_=S;var k=function(){};k.prototype=S.prototype,h.prototype=new k,h.prototype.constructor=h}function s(h,S,k){if(s.isBN(h))return h;if(this.negative=0,this.words=null,this.length=0,this.red=null,h!==null){if(S==="le"||S==="be")k=S,S=10;this._init(h||0,S||10,k||"be")}}if(typeof r==="object")r.exports=s;else a.BN=s;s.BN=s,s.wordSize=26;var d;try{if(typeof window<"u"&&typeof window.Buffer<"u")d=window.Buffer;else d=(ci(),Cr(ui)).Buffer}catch(h){}s.isBN=function(h){if(h instanceof s)return!0;return h!==null&&typeof h==="object"&&h.constructor.wordSize===s.wordSize&&Array.isArray(h.words)},s.max=function(h,S){if(h.cmp(S)>0)return h;return S},s.min=function(h,S){if(h.cmp(S)<0)return h;return S},s.prototype._init=function(h,S,k){if(typeof h==="number")return this._initNumber(h,S,k);if(typeof h==="object")return this._initArray(h,S,k);if(S==="hex")S=16;n(S===(S|0)&&S>=2&&S<=36),h=h.toString().replace(/\s+/g,"");var C=0;if(h[0]==="-")C++,this.negative=1;if(C<h.length){if(S===16)this._parseHex(h,C,k);else if(this._parseBase(h,S,C),k==="le")this._initArray(this.toArray(),S,k)}},s.prototype._initNumber=function(h,S,k){if(h<0)this.negative=1,h=-h;if(h<67108864)this.words=[h&67108863],this.length=1;else if(h<4503599627370496)this.words=[h&67108863,h/67108864&67108863],this.length=2;else n(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3;if(k!=="le")return;this._initArray(this.toArray(),S,k)},s.prototype._initArray=function(h,S,k){if(n(typeof h.length==="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=Array(this.length);for(var C=0;C<this.length;C++)this.words[C]=0;var w,c,T=0;if(k==="be"){for(C=h.length-1,w=0;C>=0;C-=3)if(c=h[C]|h[C-1]<<8|h[C-2]<<16,this.words[w]|=c<<T&67108863,this.words[w+1]=c>>>26-T&67108863,T+=24,T>=26)T-=26,w++}else if(k==="le"){for(C=0,w=0;C<h.length;C+=3)if(c=h[C]|h[C+1]<<8|h[C+2]<<16,this.words[w]|=c<<T&67108863,this.words[w+1]=c>>>26-T&67108863,T+=24,T>=26)T-=26,w++}return this._strip()};function b(h,S){var k=h.charCodeAt(S);if(k>=48&&k<=57)return k-48;else if(k>=65&&k<=70)return k-55;else if(k>=97&&k<=102)return k-87;else n(!1,"Invalid character in "+h)}function y(h,S,k){var C=b(h,k);if(k-1>=S)C|=b(h,k-1)<<4;return C}s.prototype._parseHex=function(h,S,k){this.length=Math.ceil((h.length-S)/6),this.words=Array(this.length);for(var C=0;C<this.length;C++)this.words[C]=0;var w=0,c=0,T;if(k==="be")for(C=h.length-1;C>=S;C-=2)if(T=y(h,S,C)<<w,this.words[c]|=T&67108863,w>=18)w-=18,c+=1,this.words[c]|=T>>>26;else w+=8;else{var z=h.length-S;for(C=z%2===0?S+1:S;C<h.length;C+=2)if(T=y(h,S,C)<<w,this.words[c]|=T&67108863,w>=18)w-=18,c+=1,this.words[c]|=T>>>26;else w+=8}this._strip()};function v(h,S,k,C){var w=0,c=0,T=Math.min(h.length,k);for(var z=S;z<T;z++){var R=h.charCodeAt(z)-48;if(w*=C,R>=49)c=R-49+10;else if(R>=17)c=R-17+10;else c=R;n(R>=0&&c<C,"Invalid character"),w+=c}return w}s.prototype._parseBase=function(h,S,k){this.words=[0],this.length=1;for(var C=0,w=1;w<=67108863;w*=S)C++;C--,w=w/S|0;var c=h.length-k,T=c%C,z=Math.min(c,c-T)+k,R=0;for(var q=k;q<z;q+=C)if(R=v(h,q,q+C,S),this.imuln(w),this.words[0]+R<67108864)this.words[0]+=R;else this._iaddn(R);if(T!==0){var Q=1;R=v(h,q,h.length,S);for(q=0;q<T;q++)Q*=S;if(this.imuln(Q),this.words[0]+R<67108864)this.words[0]+=R;else this._iaddn(R)}this._strip()},s.prototype.copy=function(h){h.words=Array(this.length);for(var S=0;S<this.length;S++)h.words[S]=this.words[S];h.length=this.length,h.negative=this.negative,h.red=this.red};function g(h,S){h.words=S.words,h.length=S.length,h.negative=S.negative,h.red=S.red}if(s.prototype._move=function(h){g(h,this)},s.prototype.clone=function(){var h=new s(null);return this.copy(h),h},s.prototype._expand=function(h){while(this.length<h)this.words[this.length++]=0;return this},s.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},s.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=_}catch(h){s.prototype.inspect=_}else s.prototype.inspect=_;function _(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var A=["","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"],I=[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],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(s.prototype.toString=function(h,S){h=h||10,S=S|0||1;var k;if(h===16||h==="hex"){k="";var C=0,w=0;for(var c=0;c<this.length;c++){var T=this.words[c],z=((T<<C|w)&16777215).toString(16);if(w=T>>>24-C&16777215,C+=2,C>=26)C-=26,c--;if(w!==0||c!==this.length-1)k=A[6-z.length]+z+k;else k=z+k}if(w!==0)k=w.toString(16)+k;while(k.length%S!==0)k="0"+k;if(this.negative!==0)k="-"+k;return k}if(h===(h|0)&&h>=2&&h<=36){var R=I[h],q=O[h];k="";var Q=this.clone();Q.negative=0;while(!Q.isZero()){var ie=Q.modrn(q).toString(h);if(Q=Q.idivn(q),!Q.isZero())k=A[R-ie.length]+ie+k;else k=ie+k}if(this.isZero())k="0"+k;while(k.length%S!==0)k="0"+k;if(this.negative!==0)k="-"+k;return k}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var h=this.words[0];if(this.length===2)h+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)h+=4503599627370496+this.words[1]*67108864;else if(this.length>2)n(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-h:h},s.prototype.toJSON=function(){return this.toString(16,2)},d)s.prototype.toBuffer=function(h,S){return this.toArrayLike(d,h,S)};s.prototype.toArray=function(h,S){return this.toArrayLike(Array,h,S)};var N=function(h,S){if(h.allocUnsafe)return h.allocUnsafe(S);return new h(S)};if(s.prototype.toArrayLike=function(h,S,k){this._strip();var C=this.byteLength(),w=k||Math.max(1,C);n(C<=w,"byte array longer than desired length"),n(w>0,"Requested array length <= 0");var c=N(h,w),T=S==="le"?"LE":"BE";return this["_toArrayLike"+T](c,C),c},s.prototype._toArrayLikeLE=function(h,S){var k=0,C=0;for(var w=0,c=0;w<this.length;w++){var T=this.words[w]<<c|C;if(h[k++]=T&255,k<h.length)h[k++]=T>>8&255;if(k<h.length)h[k++]=T>>16&255;if(c===6){if(k<h.length)h[k++]=T>>24&255;C=0,c=0}else C=T>>>24,c+=2}if(k<h.length){h[k++]=C;while(k<h.length)h[k++]=0}},s.prototype._toArrayLikeBE=function(h,S){var k=h.length-1,C=0;for(var w=0,c=0;w<this.length;w++){var T=this.words[w]<<c|C;if(h[k--]=T&255,k>=0)h[k--]=T>>8&255;if(k>=0)h[k--]=T>>16&255;if(c===6){if(k>=0)h[k--]=T>>24&255;C=0,c=0}else C=T>>>24,c+=2}if(k>=0){h[k--]=C;while(k>=0)h[k--]=0}},Math.clz32)s.prototype._countBits=function(h){return 32-Math.clz32(h)};else s.prototype._countBits=function(h){var S=h,k=0;if(S>=4096)k+=13,S>>>=13;if(S>=64)k+=7,S>>>=7;if(S>=8)k+=4,S>>>=4;if(S>=2)k+=2,S>>>=2;return k+S};s.prototype._zeroBits=function(h){if(h===0)return 26;var S=h,k=0;if((S&8191)===0)k+=13,S>>>=13;if((S&127)===0)k+=7,S>>>=7;if((S&15)===0)k+=4,S>>>=4;if((S&3)===0)k+=2,S>>>=2;if((S&1)===0)k++;return k},s.prototype.bitLength=function(){var h=this.words[this.length-1],S=this._countBits(h);return(this.length-1)*26+S};function P(h){var S=Array(h.bitLength());for(var k=0;k<S.length;k++){var C=k/26|0,w=k%26;S[k]=h.words[C]>>>w&1}return S}s.prototype.zeroBits=function(){if(this.isZero())return 0;var h=0;for(var S=0;S<this.length;S++){var k=this._zeroBits(this.words[S]);if(h+=k,k!==26)break}return h},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(h){if(this.negative!==0)return this.abs().inotn(h).iaddn(1);return this.clone()},s.prototype.fromTwos=function(h){if(this.testn(h-1))return this.notn(h).iaddn(1).ineg();return this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},s.prototype.iuor=function(h){while(this.length<h.length)this.words[this.length++]=0;for(var S=0;S<h.length;S++)this.words[S]=this.words[S]|h.words[S];return this._strip()},s.prototype.ior=function(h){return n((this.negative|h.negative)===0),this.iuor(h)},s.prototype.or=function(h){if(this.length>h.length)return this.clone().ior(h);return h.clone().ior(this)},s.prototype.uor=function(h){if(this.length>h.length)return this.clone().iuor(h);return h.clone().iuor(this)},s.prototype.iuand=function(h){var S;if(this.length>h.length)S=h;else S=this;for(var k=0;k<S.length;k++)this.words[k]=this.words[k]&h.words[k];return this.length=S.length,this._strip()},s.prototype.iand=function(h){return n((this.negative|h.negative)===0),this.iuand(h)},s.prototype.and=function(h){if(this.length>h.length)return this.clone().iand(h);return h.clone().iand(this)},s.prototype.uand=function(h){if(this.length>h.length)return this.clone().iuand(h);return h.clone().iuand(this)},s.prototype.iuxor=function(h){var S,k;if(this.length>h.length)S=this,k=h;else S=h,k=this;for(var C=0;C<k.length;C++)this.words[C]=S.words[C]^k.words[C];if(this!==S)for(;C<S.length;C++)this.words[C]=S.words[C];return this.length=S.length,this._strip()},s.prototype.ixor=function(h){return n((this.negative|h.negative)===0),this.iuxor(h)},s.prototype.xor=function(h){if(this.length>h.length)return this.clone().ixor(h);return h.clone().ixor(this)},s.prototype.uxor=function(h){if(this.length>h.length)return this.clone().iuxor(h);return h.clone().iuxor(this)},s.prototype.inotn=function(h){n(typeof h==="number"&&h>=0);var S=Math.ceil(h/26)|0,k=h%26;if(this._expand(S),k>0)S--;for(var C=0;C<S;C++)this.words[C]=~this.words[C]&67108863;if(k>0)this.words[C]=~this.words[C]&67108863>>26-k;return this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,S){n(typeof h==="number"&&h>=0);var k=h/26|0,C=h%26;if(this._expand(k+1),S)this.words[k]=this.words[k]|1<<C;else this.words[k]=this.words[k]&~(1<<C);return this._strip()},s.prototype.iadd=function(h){var S;if(this.negative!==0&&h.negative===0)return this.negative=0,S=this.isub(h),this.negative^=1,this._normSign();else if(this.negative===0&&h.negative!==0)return h.negative=0,S=this.isub(h),h.negative=1,S._normSign();var k,C;if(this.length>h.length)k=this,C=h;else k=h,C=this;var w=0;for(var c=0;c<C.length;c++)S=(k.words[c]|0)+(C.words[c]|0)+w,this.words[c]=S&67108863,w=S>>>26;for(;w!==0&&c<k.length;c++)S=(k.words[c]|0)+w,this.words[c]=S&67108863,w=S>>>26;if(this.length=k.length,w!==0)this.words[this.length]=w,this.length++;else if(k!==this)for(;c<k.length;c++)this.words[c]=k.words[c];return this},s.prototype.add=function(h){var S;if(h.negative!==0&&this.negative===0)return h.negative=0,S=this.sub(h),h.negative^=1,S;else if(h.negative===0&&this.negative!==0)return this.negative=0,S=h.sub(this),this.negative=1,S;if(this.length>h.length)return this.clone().iadd(h);return h.clone().iadd(this)},s.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var S=this.iadd(h);return h.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var k=this.cmp(h);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var C,w;if(k>0)C=this,w=h;else C=h,w=this;var c=0;for(var T=0;T<w.length;T++)S=(C.words[T]|0)-(w.words[T]|0)+c,c=S>>26,this.words[T]=S&67108863;for(;c!==0&&T<C.length;T++)S=(C.words[T]|0)+c,c=S>>26,this.words[T]=S&67108863;if(c===0&&T<C.length&&C!==this)for(;T<C.length;T++)this.words[T]=C.words[T];if(this.length=Math.max(this.length,T),C!==this)this.negative=1;return this._strip()},s.prototype.sub=function(h){return this.clone().isub(h)};function j(h,S,k){k.negative=S.negative^h.negative;var C=h.length+S.length|0;k.length=C,C=C-1|0;var w=h.words[0]|0,c=S.words[0]|0,T=w*c,z=T&67108863,R=T/67108864|0;k.words[0]=z;for(var q=1;q<C;q++){var Q=R>>>26,ie=R&67108863,me=Math.min(q,S.length-1);for(var Je=Math.max(0,q-h.length+1);Je<=me;Je++){var ke=q-Je|0;w=h.words[ke]|0,c=S.words[Je]|0,T=w*c+ie,Q+=T/67108864|0,ie=T&67108863}k.words[q]=ie|0,R=Q|0}if(R!==0)k.words[q]=R|0;else k.length--;return k._strip()}var Z=function(h,S,k){var C=h.words,w=S.words,c=k.words,T=0,z,R,q,Q=C[0]|0,ie=Q&8191,me=Q>>>13,Je=C[1]|0,ke=Je&8191,fe=Je>>>13,be=C[2]|0,Ae=be&8191,Be=be>>>13,vt=C[3]|0,oe=vt&8191,se=vt>>>13,Ke=C[4]|0,he=Ke&8191,Ie=Ke>>>13,Qe=C[5]|0,le=Qe&8191,Ee=Qe>>>13,gt=C[6]|0,De=gt&8191,We=gt>>>13,Ye=C[7]|0,we=Ye&8191,Fe=Ye>>>13,L=C[8]|0,ae=L&8191,_e=L>>>13,ot=C[9]|0,xe=ot&8191,K=ot>>>13,Ge=w[0]|0,F=Ge&8191,te=Ge>>>13,Pe=w[1]|0,pe=Pe&8191,de=Pe>>>13,at=w[2]|0,$e=at&8191,qe=at>>>13,ht=w[3]|0,tt=ht&8191,nt=ht>>>13,Er=w[4]|0,bt=Er&8191,re=Er>>>13,ye=w[5]|0,Ze=ye&8191,Ve=ye>>>13,Dt=w[6]|0,mt=Dt&8191,yt=Dt>>>13,Qr=w[7]|0,_t=Qr&8191,xt=Qr>>>13,zr=w[8]|0,wt=zr&8191,St=zr>>>13,sn=w[9]|0,ir=sn&8191,nr=sn>>>13;k.negative=h.negative^S.negative,k.length=19,z=Math.imul(ie,F),R=Math.imul(ie,te),R=R+Math.imul(me,F)|0,q=Math.imul(me,te);var Lr=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,z=Math.imul(ke,F),R=Math.imul(ke,te),R=R+Math.imul(fe,F)|0,q=Math.imul(fe,te),z=z+Math.imul(ie,pe)|0,R=R+Math.imul(ie,de)|0,R=R+Math.imul(me,pe)|0,q=q+Math.imul(me,de)|0;var Tr=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,z=Math.imul(Ae,F),R=Math.imul(Ae,te),R=R+Math.imul(Be,F)|0,q=Math.imul(Be,te),z=z+Math.imul(ke,pe)|0,R=R+Math.imul(ke,de)|0,R=R+Math.imul(fe,pe)|0,q=q+Math.imul(fe,de)|0,z=z+Math.imul(ie,$e)|0,R=R+Math.imul(ie,qe)|0,R=R+Math.imul(me,$e)|0,q=q+Math.imul(me,qe)|0;var wn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(wn>>>26)|0,wn&=67108863,z=Math.imul(oe,F),R=Math.imul(oe,te),R=R+Math.imul(se,F)|0,q=Math.imul(se,te),z=z+Math.imul(Ae,pe)|0,R=R+Math.imul(Ae,de)|0,R=R+Math.imul(Be,pe)|0,q=q+Math.imul(Be,de)|0,z=z+Math.imul(ke,$e)|0,R=R+Math.imul(ke,qe)|0,R=R+Math.imul(fe,$e)|0,q=q+Math.imul(fe,qe)|0,z=z+Math.imul(ie,tt)|0,R=R+Math.imul(ie,nt)|0,R=R+Math.imul(me,tt)|0,q=q+Math.imul(me,nt)|0;var En=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(En>>>26)|0,En&=67108863,z=Math.imul(he,F),R=Math.imul(he,te),R=R+Math.imul(Ie,F)|0,q=Math.imul(Ie,te),z=z+Math.imul(oe,pe)|0,R=R+Math.imul(oe,de)|0,R=R+Math.imul(se,pe)|0,q=q+Math.imul(se,de)|0,z=z+Math.imul(Ae,$e)|0,R=R+Math.imul(Ae,qe)|0,R=R+Math.imul(Be,$e)|0,q=q+Math.imul(Be,qe)|0,z=z+Math.imul(ke,tt)|0,R=R+Math.imul(ke,nt)|0,R=R+Math.imul(fe,tt)|0,q=q+Math.imul(fe,nt)|0,z=z+Math.imul(ie,bt)|0,R=R+Math.imul(ie,re)|0,R=R+Math.imul(me,bt)|0,q=q+Math.imul(me,re)|0;var Tn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,z=Math.imul(le,F),R=Math.imul(le,te),R=R+Math.imul(Ee,F)|0,q=Math.imul(Ee,te),z=z+Math.imul(he,pe)|0,R=R+Math.imul(he,de)|0,R=R+Math.imul(Ie,pe)|0,q=q+Math.imul(Ie,de)|0,z=z+Math.imul(oe,$e)|0,R=R+Math.imul(oe,qe)|0,R=R+Math.imul(se,$e)|0,q=q+Math.imul(se,qe)|0,z=z+Math.imul(Ae,tt)|0,R=R+Math.imul(Ae,nt)|0,R=R+Math.imul(Be,tt)|0,q=q+Math.imul(Be,nt)|0,z=z+Math.imul(ke,bt)|0,R=R+Math.imul(ke,re)|0,R=R+Math.imul(fe,bt)|0,q=q+Math.imul(fe,re)|0,z=z+Math.imul(ie,Ze)|0,R=R+Math.imul(ie,Ve)|0,R=R+Math.imul(me,Ze)|0,q=q+Math.imul(me,Ve)|0;var kn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(kn>>>26)|0,kn&=67108863,z=Math.imul(De,F),R=Math.imul(De,te),R=R+Math.imul(We,F)|0,q=Math.imul(We,te),z=z+Math.imul(le,pe)|0,R=R+Math.imul(le,de)|0,R=R+Math.imul(Ee,pe)|0,q=q+Math.imul(Ee,de)|0,z=z+Math.imul(he,$e)|0,R=R+Math.imul(he,qe)|0,R=R+Math.imul(Ie,$e)|0,q=q+Math.imul(Ie,qe)|0,z=z+Math.imul(oe,tt)|0,R=R+Math.imul(oe,nt)|0,R=R+Math.imul(se,tt)|0,q=q+Math.imul(se,nt)|0,z=z+Math.imul(Ae,bt)|0,R=R+Math.imul(Ae,re)|0,R=R+Math.imul(Be,bt)|0,q=q+Math.imul(Be,re)|0,z=z+Math.imul(ke,Ze)|0,R=R+Math.imul(ke,Ve)|0,R=R+Math.imul(fe,Ze)|0,q=q+Math.imul(fe,Ve)|0,z=z+Math.imul(ie,mt)|0,R=R+Math.imul(ie,yt)|0,R=R+Math.imul(me,mt)|0,q=q+Math.imul(me,yt)|0;var An=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(An>>>26)|0,An&=67108863,z=Math.imul(we,F),R=Math.imul(we,te),R=R+Math.imul(Fe,F)|0,q=Math.imul(Fe,te),z=z+Math.imul(De,pe)|0,R=R+Math.imul(De,de)|0,R=R+Math.imul(We,pe)|0,q=q+Math.imul(We,de)|0,z=z+Math.imul(le,$e)|0,R=R+Math.imul(le,qe)|0,R=R+Math.imul(Ee,$e)|0,q=q+Math.imul(Ee,qe)|0,z=z+Math.imul(he,tt)|0,R=R+Math.imul(he,nt)|0,R=R+Math.imul(Ie,tt)|0,q=q+Math.imul(Ie,nt)|0,z=z+Math.imul(oe,bt)|0,R=R+Math.imul(oe,re)|0,R=R+Math.imul(se,bt)|0,q=q+Math.imul(se,re)|0,z=z+Math.imul(Ae,Ze)|0,R=R+Math.imul(Ae,Ve)|0,R=R+Math.imul(Be,Ze)|0,q=q+Math.imul(Be,Ve)|0,z=z+Math.imul(ke,mt)|0,R=R+Math.imul(ke,yt)|0,R=R+Math.imul(fe,mt)|0,q=q+Math.imul(fe,yt)|0,z=z+Math.imul(ie,_t)|0,R=R+Math.imul(ie,xt)|0,R=R+Math.imul(me,_t)|0,q=q+Math.imul(me,xt)|0;var Or=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Or>>>26)|0,Or&=67108863,z=Math.imul(ae,F),R=Math.imul(ae,te),R=R+Math.imul(_e,F)|0,q=Math.imul(_e,te),z=z+Math.imul(we,pe)|0,R=R+Math.imul(we,de)|0,R=R+Math.imul(Fe,pe)|0,q=q+Math.imul(Fe,de)|0,z=z+Math.imul(De,$e)|0,R=R+Math.imul(De,qe)|0,R=R+Math.imul(We,$e)|0,q=q+Math.imul(We,qe)|0,z=z+Math.imul(le,tt)|0,R=R+Math.imul(le,nt)|0,R=R+Math.imul(Ee,tt)|0,q=q+Math.imul(Ee,nt)|0,z=z+Math.imul(he,bt)|0,R=R+Math.imul(he,re)|0,R=R+Math.imul(Ie,bt)|0,q=q+Math.imul(Ie,re)|0,z=z+Math.imul(oe,Ze)|0,R=R+Math.imul(oe,Ve)|0,R=R+Math.imul(se,Ze)|0,q=q+Math.imul(se,Ve)|0,z=z+Math.imul(Ae,mt)|0,R=R+Math.imul(Ae,yt)|0,R=R+Math.imul(Be,mt)|0,q=q+Math.imul(Be,yt)|0,z=z+Math.imul(ke,_t)|0,R=R+Math.imul(ke,xt)|0,R=R+Math.imul(fe,_t)|0,q=q+Math.imul(fe,xt)|0,z=z+Math.imul(ie,wt)|0,R=R+Math.imul(ie,St)|0,R=R+Math.imul(me,wt)|0,q=q+Math.imul(me,St)|0;var en=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(en>>>26)|0,en&=67108863,z=Math.imul(xe,F),R=Math.imul(xe,te),R=R+Math.imul(K,F)|0,q=Math.imul(K,te),z=z+Math.imul(ae,pe)|0,R=R+Math.imul(ae,de)|0,R=R+Math.imul(_e,pe)|0,q=q+Math.imul(_e,de)|0,z=z+Math.imul(we,$e)|0,R=R+Math.imul(we,qe)|0,R=R+Math.imul(Fe,$e)|0,q=q+Math.imul(Fe,qe)|0,z=z+Math.imul(De,tt)|0,R=R+Math.imul(De,nt)|0,R=R+Math.imul(We,tt)|0,q=q+Math.imul(We,nt)|0,z=z+Math.imul(le,bt)|0,R=R+Math.imul(le,re)|0,R=R+Math.imul(Ee,bt)|0,q=q+Math.imul(Ee,re)|0,z=z+Math.imul(he,Ze)|0,R=R+Math.imul(he,Ve)|0,R=R+Math.imul(Ie,Ze)|0,q=q+Math.imul(Ie,Ve)|0,z=z+Math.imul(oe,mt)|0,R=R+Math.imul(oe,yt)|0,R=R+Math.imul(se,mt)|0,q=q+Math.imul(se,yt)|0,z=z+Math.imul(Ae,_t)|0,R=R+Math.imul(Ae,xt)|0,R=R+Math.imul(Be,_t)|0,q=q+Math.imul(Be,xt)|0,z=z+Math.imul(ke,wt)|0,R=R+Math.imul(ke,St)|0,R=R+Math.imul(fe,wt)|0,q=q+Math.imul(fe,St)|0,z=z+Math.imul(ie,ir)|0,R=R+Math.imul(ie,nr)|0,R=R+Math.imul(me,ir)|0,q=q+Math.imul(me,nr)|0;var Kr=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,z=Math.imul(xe,pe),R=Math.imul(xe,de),R=R+Math.imul(K,pe)|0,q=Math.imul(K,de),z=z+Math.imul(ae,$e)|0,R=R+Math.imul(ae,qe)|0,R=R+Math.imul(_e,$e)|0,q=q+Math.imul(_e,qe)|0,z=z+Math.imul(we,tt)|0,R=R+Math.imul(we,nt)|0,R=R+Math.imul(Fe,tt)|0,q=q+Math.imul(Fe,nt)|0,z=z+Math.imul(De,bt)|0,R=R+Math.imul(De,re)|0,R=R+Math.imul(We,bt)|0,q=q+Math.imul(We,re)|0,z=z+Math.imul(le,Ze)|0,R=R+Math.imul(le,Ve)|0,R=R+Math.imul(Ee,Ze)|0,q=q+Math.imul(Ee,Ve)|0,z=z+Math.imul(he,mt)|0,R=R+Math.imul(he,yt)|0,R=R+Math.imul(Ie,mt)|0,q=q+Math.imul(Ie,yt)|0,z=z+Math.imul(oe,_t)|0,R=R+Math.imul(oe,xt)|0,R=R+Math.imul(se,_t)|0,q=q+Math.imul(se,xt)|0,z=z+Math.imul(Ae,wt)|0,R=R+Math.imul(Ae,St)|0,R=R+Math.imul(Be,wt)|0,q=q+Math.imul(Be,St)|0,z=z+Math.imul(ke,ir)|0,R=R+Math.imul(ke,nr)|0,R=R+Math.imul(fe,ir)|0,q=q+Math.imul(fe,nr)|0;var Mn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,z=Math.imul(xe,$e),R=Math.imul(xe,qe),R=R+Math.imul(K,$e)|0,q=Math.imul(K,qe),z=z+Math.imul(ae,tt)|0,R=R+Math.imul(ae,nt)|0,R=R+Math.imul(_e,tt)|0,q=q+Math.imul(_e,nt)|0,z=z+Math.imul(we,bt)|0,R=R+Math.imul(we,re)|0,R=R+Math.imul(Fe,bt)|0,q=q+Math.imul(Fe,re)|0,z=z+Math.imul(De,Ze)|0,R=R+Math.imul(De,Ve)|0,R=R+Math.imul(We,Ze)|0,q=q+Math.imul(We,Ve)|0,z=z+Math.imul(le,mt)|0,R=R+Math.imul(le,yt)|0,R=R+Math.imul(Ee,mt)|0,q=q+Math.imul(Ee,yt)|0,z=z+Math.imul(he,_t)|0,R=R+Math.imul(he,xt)|0,R=R+Math.imul(Ie,_t)|0,q=q+Math.imul(Ie,xt)|0,z=z+Math.imul(oe,wt)|0,R=R+Math.imul(oe,St)|0,R=R+Math.imul(se,wt)|0,q=q+Math.imul(se,St)|0,z=z+Math.imul(Ae,ir)|0,R=R+Math.imul(Ae,nr)|0,R=R+Math.imul(Be,ir)|0,q=q+Math.imul(Be,nr)|0;var ln=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(ln>>>26)|0,ln&=67108863,z=Math.imul(xe,tt),R=Math.imul(xe,nt),R=R+Math.imul(K,tt)|0,q=Math.imul(K,nt),z=z+Math.imul(ae,bt)|0,R=R+Math.imul(ae,re)|0,R=R+Math.imul(_e,bt)|0,q=q+Math.imul(_e,re)|0,z=z+Math.imul(we,Ze)|0,R=R+Math.imul(we,Ve)|0,R=R+Math.imul(Fe,Ze)|0,q=q+Math.imul(Fe,Ve)|0,z=z+Math.imul(De,mt)|0,R=R+Math.imul(De,yt)|0,R=R+Math.imul(We,mt)|0,q=q+Math.imul(We,yt)|0,z=z+Math.imul(le,_t)|0,R=R+Math.imul(le,xt)|0,R=R+Math.imul(Ee,_t)|0,q=q+Math.imul(Ee,xt)|0,z=z+Math.imul(he,wt)|0,R=R+Math.imul(he,St)|0,R=R+Math.imul(Ie,wt)|0,q=q+Math.imul(Ie,St)|0,z=z+Math.imul(oe,ir)|0,R=R+Math.imul(oe,nr)|0,R=R+Math.imul(se,ir)|0,q=q+Math.imul(se,nr)|0;var pn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(pn>>>26)|0,pn&=67108863,z=Math.imul(xe,bt),R=Math.imul(xe,re),R=R+Math.imul(K,bt)|0,q=Math.imul(K,re),z=z+Math.imul(ae,Ze)|0,R=R+Math.imul(ae,Ve)|0,R=R+Math.imul(_e,Ze)|0,q=q+Math.imul(_e,Ve)|0,z=z+Math.imul(we,mt)|0,R=R+Math.imul(we,yt)|0,R=R+Math.imul(Fe,mt)|0,q=q+Math.imul(Fe,yt)|0,z=z+Math.imul(De,_t)|0,R=R+Math.imul(De,xt)|0,R=R+Math.imul(We,_t)|0,q=q+Math.imul(We,xt)|0,z=z+Math.imul(le,wt)|0,R=R+Math.imul(le,St)|0,R=R+Math.imul(Ee,wt)|0,q=q+Math.imul(Ee,St)|0,z=z+Math.imul(he,ir)|0,R=R+Math.imul(he,nr)|0,R=R+Math.imul(Ie,ir)|0,q=q+Math.imul(Ie,nr)|0;var yn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(yn>>>26)|0,yn&=67108863,z=Math.imul(xe,Ze),R=Math.imul(xe,Ve),R=R+Math.imul(K,Ze)|0,q=Math.imul(K,Ve),z=z+Math.imul(ae,mt)|0,R=R+Math.imul(ae,yt)|0,R=R+Math.imul(_e,mt)|0,q=q+Math.imul(_e,yt)|0,z=z+Math.imul(we,_t)|0,R=R+Math.imul(we,xt)|0,R=R+Math.imul(Fe,_t)|0,q=q+Math.imul(Fe,xt)|0,z=z+Math.imul(De,wt)|0,R=R+Math.imul(De,St)|0,R=R+Math.imul(We,wt)|0,q=q+Math.imul(We,St)|0,z=z+Math.imul(le,ir)|0,R=R+Math.imul(le,nr)|0,R=R+Math.imul(Ee,ir)|0,q=q+Math.imul(Ee,nr)|0;var un=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(un>>>26)|0,un&=67108863,z=Math.imul(xe,mt),R=Math.imul(xe,yt),R=R+Math.imul(K,mt)|0,q=Math.imul(K,yt),z=z+Math.imul(ae,_t)|0,R=R+Math.imul(ae,xt)|0,R=R+Math.imul(_e,_t)|0,q=q+Math.imul(_e,xt)|0,z=z+Math.imul(we,wt)|0,R=R+Math.imul(we,St)|0,R=R+Math.imul(Fe,wt)|0,q=q+Math.imul(Fe,St)|0,z=z+Math.imul(De,ir)|0,R=R+Math.imul(De,nr)|0,R=R+Math.imul(We,ir)|0,q=q+Math.imul(We,nr)|0;var tn=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(tn>>>26)|0,tn&=67108863,z=Math.imul(xe,_t),R=Math.imul(xe,xt),R=R+Math.imul(K,_t)|0,q=Math.imul(K,xt),z=z+Math.imul(ae,wt)|0,R=R+Math.imul(ae,St)|0,R=R+Math.imul(_e,wt)|0,q=q+Math.imul(_e,St)|0,z=z+Math.imul(we,ir)|0,R=R+Math.imul(we,nr)|0,R=R+Math.imul(Fe,ir)|0,q=q+Math.imul(Fe,nr)|0;var Cu=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(Cu>>>26)|0,Cu&=67108863,z=Math.imul(xe,wt),R=Math.imul(xe,St),R=R+Math.imul(K,wt)|0,q=Math.imul(K,St),z=z+Math.imul(ae,ir)|0,R=R+Math.imul(ae,nr)|0,R=R+Math.imul(_e,ir)|0,q=q+Math.imul(_e,nr)|0;var kh=(T+z|0)+((R&8191)<<13)|0;T=(q+(R>>>13)|0)+(kh>>>26)|0,kh&=67108863,z=Math.imul(xe,ir),R=Math.imul(xe,nr),R=R+Math.imul(K,ir)|0,q=Math.imul(K,nr);var Ah=(T+z|0)+((R&8191)<<13)|0;if(T=(q+(R>>>13)|0)+(Ah>>>26)|0,Ah&=67108863,c[0]=Lr,c[1]=Tr,c[2]=wn,c[3]=En,c[4]=Tn,c[5]=kn,c[6]=An,c[7]=Or,c[8]=en,c[9]=Kr,c[10]=Mn,c[11]=ln,c[12]=pn,c[13]=yn,c[14]=un,c[15]=tn,c[16]=Cu,c[17]=kh,c[18]=Ah,T!==0)c[19]=T,k.length++;return k};if(!Math.imul)Z=j;function V(h,S,k){k.negative=S.negative^h.negative,k.length=h.length+S.length;var C=0,w=0;for(var c=0;c<k.length-1;c++){var T=w;w=0;var z=C&67108863,R=Math.min(c,S.length-1);for(var q=Math.max(0,c-h.length+1);q<=R;q++){var Q=c-q,ie=h.words[Q]|0,me=S.words[q]|0,Je=ie*me,ke=Je&67108863;T=T+(Je/67108864|0)|0,ke=ke+z|0,z=ke&67108863,T=T+(ke>>>26)|0,w+=T>>>26,T&=67108863}k.words[c]=z,C=T,T=w}if(C!==0)k.words[c]=C;else k.length--;return k._strip()}function W(h,S,k){return V(h,S,k)}s.prototype.mulTo=function(h,S){var k,C=this.length+h.length;if(this.length===10&&h.length===10)k=Z(this,h,S);else if(C<63)k=j(this,h,S);else if(C<1024)k=V(this,h,S);else k=W(this,h,S);return k};function J(h,S){this.x=h,this.y=S}J.prototype.makeRBT=function(h){var S=Array(h),k=s.prototype._countBits(h)-1;for(var C=0;C<h;C++)S[C]=this.revBin(C,k,h);return S},J.prototype.revBin=function(h,S,k){if(h===0||h===k-1)return h;var C=0;for(var w=0;w<S;w++)C|=(h&1)<<S-w-1,h>>=1;return C},J.prototype.permute=function(h,S,k,C,w,c){for(var T=0;T<c;T++)C[T]=S[h[T]],w[T]=k[h[T]]},J.prototype.transform=function(h,S,k,C,w,c){this.permute(c,h,S,k,C,w);for(var T=1;T<w;T<<=1){var z=T<<1,R=Math.cos(2*Math.PI/z),q=Math.sin(2*Math.PI/z);for(var Q=0;Q<w;Q+=z){var ie=R,me=q;for(var Je=0;Je<T;Je++){var ke=k[Q+Je],fe=C[Q+Je],be=k[Q+Je+T],Ae=C[Q+Je+T],Be=ie*be-me*Ae;if(Ae=ie*Ae+me*be,be=Be,k[Q+Je]=ke+be,C[Q+Je]=fe+Ae,k[Q+Je+T]=ke-be,C[Q+Je+T]=fe-Ae,Je!==z)Be=R*ie-q*me,me=R*me+q*ie,ie=Be}}}},J.prototype.guessLen13b=function(h,S){var k=Math.max(S,h)|1,C=k&1,w=0;for(k=k/2|0;k;k=k>>>1)w++;return 1<<w+1+C},J.prototype.conjugate=function(h,S,k){if(k<=1)return;for(var C=0;C<k/2;C++){var w=h[C];h[C]=h[k-C-1],h[k-C-1]=w,w=S[C],S[C]=-S[k-C-1],S[k-C-1]=-w}},J.prototype.normalize13b=function(h,S){var k=0;for(var C=0;C<S/2;C++){var w=Math.round(h[2*C+1]/S)*8192+Math.round(h[2*C]/S)+k;if(h[C]=w&67108863,w<67108864)k=0;else k=w/67108864|0}return h},J.prototype.convert13b=function(h,S,k,C){var w=0;for(var c=0;c<S;c++)w=w+(h[c]|0),k[2*c]=w&8191,w=w>>>13,k[2*c+1]=w&8191,w=w>>>13;for(c=2*S;c<C;++c)k[c]=0;n(w===0),n((w&-8192)===0)},J.prototype.stub=function(h){var S=Array(h);for(var k=0;k<h;k++)S[k]=0;return S},J.prototype.mulp=function(h,S,k){var C=2*this.guessLen13b(h.length,S.length),w=this.makeRBT(C),c=this.stub(C),T=Array(C),z=Array(C),R=Array(C),q=Array(C),Q=Array(C),ie=Array(C),me=k.words;me.length=C,this.convert13b(h.words,h.length,T,C),this.convert13b(S.words,S.length,q,C),this.transform(T,c,z,R,C,w),this.transform(q,c,Q,ie,C,w);for(var Je=0;Je<C;Je++){var ke=z[Je]*Q[Je]-R[Je]*ie[Je];R[Je]=z[Je]*ie[Je]+R[Je]*Q[Je],z[Je]=ke}return this.conjugate(z,R,C),this.transform(z,R,me,c,C,w),this.conjugate(me,c,C),this.normalize13b(me,C),k.negative=h.negative^S.negative,k.length=h.length+S.length,k._strip()},s.prototype.mul=function(h){var S=new s(null);return S.words=Array(this.length+h.length),this.mulTo(h,S)},s.prototype.mulf=function(h){var S=new s(null);return S.words=Array(this.length+h.length),W(this,h,S)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var S=h<0;if(S)h=-h;n(typeof h==="number"),n(h<67108864);var k=0;for(var C=0;C<this.length;C++){var w=(this.words[C]|0)*h,c=(w&67108863)+(k&67108863);k>>=26,k+=w/67108864|0,k+=c>>>26,this.words[C]=c&67108863}if(k!==0)this.words[C]=k,this.length++;return this.length=h===0?1:this.length,S?this.ineg():this},s.prototype.muln=function(h){return this.clone().imuln(h)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(h){var S=P(h);if(S.length===0)return new s(1);var k=this;for(var C=0;C<S.length;C++,k=k.sqr())if(S[C]!==0)break;if(++C<S.length)for(var w=k.sqr();C<S.length;C++,w=w.sqr()){if(S[C]===0)continue;k=k.mul(w)}return k},s.prototype.iushln=function(h){n(typeof h==="number"&&h>=0);var S=h%26,k=(h-S)/26,C=67108863>>>26-S<<26-S,w;if(S!==0){var c=0;for(w=0;w<this.length;w++){var T=this.words[w]&C,z=(this.words[w]|0)-T<<S;this.words[w]=z|c,c=T>>>26-S}if(c)this.words[w]=c,this.length++}if(k!==0){for(w=this.length-1;w>=0;w--)this.words[w+k]=this.words[w];for(w=0;w<k;w++)this.words[w]=0;this.length+=k}return this._strip()},s.prototype.ishln=function(h){return n(this.negative===0),this.iushln(h)},s.prototype.iushrn=function(h,S,k){n(typeof h==="number"&&h>=0);var C;if(S)C=(S-S%26)/26;else C=0;var w=h%26,c=Math.min((h-w)/26,this.length),T=67108863^67108863>>>w<<w,z=k;if(C-=c,C=Math.max(0,C),z){for(var R=0;R<c;R++)z.words[R]=this.words[R];z.length=c}if(c===0);else if(this.length>c){this.length-=c;for(R=0;R<this.length;R++)this.words[R]=this.words[R+c]}else this.words[0]=0,this.length=1;var q=0;for(R=this.length-1;R>=0&&(q!==0||R>=C);R--){var Q=this.words[R]|0;this.words[R]=q<<26-w|Q>>>w,q=Q&T}if(z&&q!==0)z.words[z.length++]=q;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},s.prototype.ishrn=function(h,S,k){return n(this.negative===0),this.iushrn(h,S,k)},s.prototype.shln=function(h){return this.clone().ishln(h)},s.prototype.ushln=function(h){return this.clone().iushln(h)},s.prototype.shrn=function(h){return this.clone().ishrn(h)},s.prototype.ushrn=function(h){return this.clone().iushrn(h)},s.prototype.testn=function(h){n(typeof h==="number"&&h>=0);var S=h%26,k=(h-S)/26,C=1<<S;if(this.length<=k)return!1;var w=this.words[k];return!!(w&C)},s.prototype.imaskn=function(h){n(typeof h==="number"&&h>=0);var S=h%26,k=(h-S)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(S!==0)k++;if(this.length=Math.min(k,this.length),S!==0){var C=67108863^67108863>>>S<<S;this.words[this.length-1]&=C}return this._strip()},s.prototype.maskn=function(h){return this.clone().imaskn(h)},s.prototype.iaddn=function(h){if(n(typeof h==="number"),n(h<67108864),h<0)return this.isubn(-h);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=h)return this.words[0]=h-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(h),this.negative=1,this}return this._iaddn(h)},s.prototype._iaddn=function(h){this.words[0]+=h;for(var S=0;S<this.length&&this.words[S]>=67108864;S++)if(this.words[S]-=67108864,S===this.length-1)this.words[S+1]=1;else this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},s.prototype.isubn=function(h){if(n(typeof h==="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S<this.length&&this.words[S]<0;S++)this.words[S]+=67108864,this.words[S+1]-=1;return this._strip()},s.prototype.addn=function(h){return this.clone().iaddn(h)},s.prototype.subn=function(h){return this.clone().isubn(h)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(h,S,k){var C=h.length+k,w;this._expand(C);var c,T=0;for(w=0;w<h.length;w++){c=(this.words[w+k]|0)+T;var z=(h.words[w]|0)*S;c-=z&67108863,T=(c>>26)-(z/67108864|0),this.words[w+k]=c&67108863}for(;w<this.length-k;w++)c=(this.words[w+k]|0)+T,T=c>>26,this.words[w+k]=c&67108863;if(T===0)return this._strip();n(T===-1),T=0;for(w=0;w<this.length;w++)c=-(this.words[w]|0)+T,T=c>>26,this.words[w]=c&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,S){var k=this.length-h.length,C=this.clone(),w=h,c=w.words[w.length-1]|0,T=this._countBits(c);if(k=26-T,k!==0)w=w.ushln(k),C.iushln(k),c=w.words[w.length-1]|0;var z=C.length-w.length,R;if(S!=="mod"){R=new s(null),R.length=z+1,R.words=Array(R.length);for(var q=0;q<R.length;q++)R.words[q]=0}var Q=C.clone()._ishlnsubmul(w,1,z);if(Q.negative===0){if(C=Q,R)R.words[z]=1}for(var ie=z-1;ie>=0;ie--){var me=(C.words[w.length+ie]|0)*67108864+(C.words[w.length+ie-1]|0);me=Math.min(me/c|0,67108863),C._ishlnsubmul(w,me,ie);while(C.negative!==0)if(me--,C.negative=0,C._ishlnsubmul(w,1,ie),!C.isZero())C.negative^=1;if(R)R.words[ie]=me}if(R)R._strip();if(C._strip(),S!=="div"&&k!==0)C.iushrn(k);return{div:R||null,mod:C}},s.prototype.divmod=function(h,S,k){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var C,w,c;if(this.negative!==0&&h.negative===0){if(c=this.neg().divmod(h,S),S!=="mod")C=c.div.neg();if(S!=="div"){if(w=c.mod.neg(),k&&w.negative!==0)w.iadd(h)}return{div:C,mod:w}}if(this.negative===0&&h.negative!==0){if(c=this.divmod(h.neg(),S),S!=="mod")C=c.div.neg();return{div:C,mod:c.mod}}if((this.negative&h.negative)!==0){if(c=this.neg().divmod(h.neg(),S),S!=="div"){if(w=c.mod.neg(),k&&w.negative!==0)w.isub(h)}return{div:c.div,mod:w}}if(h.length>this.length||this.cmp(h)<0)return{div:new s(0),mod:this};if(h.length===1){if(S==="div")return{div:this.divn(h.words[0]),mod:null};if(S==="mod")return{div:null,mod:new s(this.modrn(h.words[0]))};return{div:this.divn(h.words[0]),mod:new s(this.modrn(h.words[0]))}}return this._wordDiv(h,S)},s.prototype.div=function(h){return this.divmod(h,"div",!1).div},s.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},s.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},s.prototype.divRound=function(h){var S=this.divmod(h);if(S.mod.isZero())return S.div;var k=S.div.negative!==0?S.mod.isub(h):S.mod,C=h.ushrn(1),w=h.andln(1),c=k.cmp(C);if(c<0||w===1&&c===0)return S.div;return S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},s.prototype.modrn=function(h){var S=h<0;if(S)h=-h;n(h<=67108863);var k=67108864%h,C=0;for(var w=this.length-1;w>=0;w--)C=(k*C+(this.words[w]|0))%h;return S?-C:C},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var S=h<0;if(S)h=-h;n(h<=67108863);var k=0;for(var C=this.length-1;C>=0;C--){var w=(this.words[C]|0)+k*67108864;this.words[C]=w/h|0,k=w%h}return this._strip(),S?this.ineg():this},s.prototype.divn=function(h){return this.clone().idivn(h)},s.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();if(S.negative!==0)S=S.umod(h);else S=S.clone();var C=new s(1),w=new s(0),c=new s(0),T=new s(1),z=0;while(S.isEven()&&k.isEven())S.iushrn(1),k.iushrn(1),++z;var R=k.clone(),q=S.clone();while(!S.isZero()){for(var Q=0,ie=1;(S.words[0]&ie)===0&&Q<26;++Q,ie<<=1);if(Q>0){S.iushrn(Q);while(Q-- >0){if(C.isOdd()||w.isOdd())C.iadd(R),w.isub(q);C.iushrn(1),w.iushrn(1)}}for(var me=0,Je=1;(k.words[0]&Je)===0&&me<26;++me,Je<<=1);if(me>0){k.iushrn(me);while(me-- >0){if(c.isOdd()||T.isOdd())c.iadd(R),T.isub(q);c.iushrn(1),T.iushrn(1)}}if(S.cmp(k)>=0)S.isub(k),C.isub(c),w.isub(T);else k.isub(S),c.isub(C),T.isub(w)}return{a:c,b:T,gcd:k.iushln(z)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();if(S.negative!==0)S=S.umod(h);else S=S.clone();var C=new s(1),w=new s(0),c=k.clone();while(S.cmpn(1)>0&&k.cmpn(1)>0){for(var T=0,z=1;(S.words[0]&z)===0&&T<26;++T,z<<=1);if(T>0){S.iushrn(T);while(T-- >0){if(C.isOdd())C.iadd(c);C.iushrn(1)}}for(var R=0,q=1;(k.words[0]&q)===0&&R<26;++R,q<<=1);if(R>0){k.iushrn(R);while(R-- >0){if(w.isOdd())w.iadd(c);w.iushrn(1)}}if(S.cmp(k)>=0)S.isub(k),C.isub(w);else k.isub(S),w.isub(C)}var Q;if(S.cmpn(1)===0)Q=C;else Q=w;if(Q.cmpn(0)<0)Q.iadd(h);return Q},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var S=this.clone(),k=h.clone();S.negative=0,k.negative=0;for(var C=0;S.isEven()&&k.isEven();C++)S.iushrn(1),k.iushrn(1);do{while(S.isEven())S.iushrn(1);while(k.isEven())k.iushrn(1);var w=S.cmp(k);if(w<0){var c=S;S=k,k=c}else if(w===0||k.cmpn(1)===0)break;S.isub(k)}while(!0);return k.iushln(C)},s.prototype.invm=function(h){return this.egcd(h).a.umod(h)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(h){return this.words[0]&h},s.prototype.bincn=function(h){n(typeof h==="number");var S=h%26,k=(h-S)/26,C=1<<S;if(this.length<=k)return this._expand(k+1),this.words[k]|=C,this;var w=C;for(var c=k;w!==0&&c<this.length;c++){var T=this.words[c]|0;T+=w,w=T>>>26,T&=67108863,this.words[c]=T}if(w!==0)this.words[c]=w,this.length++;return this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(h){var S=h<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var k;if(this.length>1)k=1;else{if(S)h=-h;n(h<=67108863,"Number is too big");var C=this.words[0]|0;k=C===h?0:C<h?-1:1}if(this.negative!==0)return-k|0;return k},s.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var S=this.ucmp(h);if(this.negative!==0)return-S|0;return S},s.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;var S=0;for(var k=this.length-1;k>=0;k--){var C=this.words[k]|0,w=h.words[k]|0;if(C===w)continue;if(C<w)S=-1;else if(C>w)S=1;break}return S},s.prototype.gtn=function(h){return this.cmpn(h)===1},s.prototype.gt=function(h){return this.cmp(h)===1},s.prototype.gten=function(h){return this.cmpn(h)>=0},s.prototype.gte=function(h){return this.cmp(h)>=0},s.prototype.ltn=function(h){return this.cmpn(h)===-1},s.prototype.lt=function(h){return this.cmp(h)===-1},s.prototype.lten=function(h){return this.cmpn(h)<=0},s.prototype.lte=function(h){return this.cmp(h)<=0},s.prototype.eqn=function(h){return this.cmpn(h)===0},s.prototype.eq=function(h){return this.cmp(h)===0},s.red=function(h){return new p(h)},s.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(h){return this.red=h,this},s.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},s.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},s.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},s.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},s.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},s.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},s.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},s.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var ve={k256:null,p224:null,p192:null,p25519:null};function ce(h,S){this.name=h,this.p=new s(S,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ce.prototype._tmp=function(){var h=new s(null);return h.words=Array(Math.ceil(this.n/13)),h},ce.prototype.ireduce=function(h){var S=h,k;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),k=S.bitLength();while(k>this.n);var C=k<this.n?-1:S.ucmp(this.p);if(C===0)S.words[0]=0,S.length=1;else if(C>0)S.isub(this.p);else if(S.strip!==void 0)S.strip();else S._strip();return S},ce.prototype.split=function(h,S){h.iushrn(this.n,0,S)},ce.prototype.imulK=function(h){return h.imul(this.k)};function Me(){ce.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Me,ce),Me.prototype.split=function(h,S){var k=4194303,C=Math.min(h.length,9);for(var w=0;w<C;w++)S.words[w]=h.words[w];if(S.length=C,h.length<=9){h.words[0]=0,h.length=1;return}var c=h.words[9];S.words[S.length++]=c&k;for(w=10;w<h.length;w++){var T=h.words[w]|0;h.words[w-10]=(T&k)<<4|c>>>22,c=T}if(c>>>=22,h.words[w-10]=c,c===0&&h.length>10)h.length-=10;else h.length-=9},Me.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;var S=0;for(var k=0;k<h.length;k++){var C=h.words[k]|0;S+=C*977,h.words[k]=S&67108863,S=C*64+(S/67108864|0)}if(h.words[h.length-1]===0){if(h.length--,h.words[h.length-1]===0)h.length--}return h};function Y(){ce.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}l(Y,ce);function Te(){ce.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}l(Te,ce);function f(){ce.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}l(f,ce),f.prototype.imulK=function(h){var S=0;for(var k=0;k<h.length;k++){var C=(h.words[k]|0)*19+S,w=C&67108863;C>>>=26,h.words[k]=w,S=C}if(S!==0)h.words[h.length++]=S;return h},s._prime=function(h){if(ve[h])return ve[h];var S;if(h==="k256")S=new Me;else if(h==="p224")S=new Y;else if(h==="p192")S=new Te;else if(h==="p25519")S=new f;else throw Error("Unknown prime "+h);return ve[h]=S,S};function p(h){if(typeof h==="string"){var S=s._prime(h);this.m=S.p,this.prime=S}else n(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}p.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},p.prototype._verify2=function(h,S){n((h.negative|S.negative)===0,"red works only with positives"),n(h.red&&h.red===S.red,"red works only with red numbers")},p.prototype.imod=function(h){if(this.prime)return this.prime.ireduce(h)._forceRed(this);return g(h,h.umod(this.m)._forceRed(this)),h},p.prototype.neg=function(h){if(h.isZero())return h.clone();return this.m.sub(h)._forceRed(this)},p.prototype.add=function(h,S){this._verify2(h,S);var k=h.add(S);if(k.cmp(this.m)>=0)k.isub(this.m);return k._forceRed(this)},p.prototype.iadd=function(h,S){this._verify2(h,S);var k=h.iadd(S);if(k.cmp(this.m)>=0)k.isub(this.m);return k},p.prototype.sub=function(h,S){this._verify2(h,S);var k=h.sub(S);if(k.cmpn(0)<0)k.iadd(this.m);return k._forceRed(this)},p.prototype.isub=function(h,S){this._verify2(h,S);var k=h.isub(S);if(k.cmpn(0)<0)k.iadd(this.m);return k},p.prototype.shl=function(h,S){return this._verify1(h),this.imod(h.ushln(S))},p.prototype.imul=function(h,S){return this._verify2(h,S),this.imod(h.imul(S))},p.prototype.mul=function(h,S){return this._verify2(h,S),this.imod(h.mul(S))},p.prototype.isqr=function(h){return this.imul(h,h.clone())},p.prototype.sqr=function(h){return this.mul(h,h)},p.prototype.sqrt=function(h){if(h.isZero())return h.clone();var S=this.m.andln(3);if(n(S%2===1),S===3){var k=this.m.add(new s(1)).iushrn(2);return this.pow(h,k)}var C=this.m.subn(1),w=0;while(!C.isZero()&&C.andln(1)===0)w++,C.iushrn(1);n(!C.isZero());var c=new s(1).toRed(this),T=c.redNeg(),z=this.m.subn(1).iushrn(1),R=this.m.bitLength();R=new s(2*R*R).toRed(this);while(this.pow(R,z).cmp(T)!==0)R.redIAdd(T);var q=this.pow(R,C),Q=this.pow(h,C.addn(1).iushrn(1)),ie=this.pow(h,C),me=w;while(ie.cmp(c)!==0){var Je=ie;for(var ke=0;Je.cmp(c)!==0;ke++)Je=Je.redSqr();n(ke<me);var fe=this.pow(q,new s(1).iushln(me-ke-1));Q=Q.redMul(fe),q=fe.redSqr(),ie=ie.redMul(q),me=ke}return Q},p.prototype.invm=function(h){var S=h._invmp(this.m);if(S.negative!==0)return S.negative=0,this.imod(S).redNeg();else return this.imod(S)},p.prototype.pow=function(h,S){if(S.isZero())return new s(1).toRed(this);if(S.cmpn(1)===0)return h.clone();var k=4,C=Array(1<<k);C[0]=new s(1).toRed(this),C[1]=h;for(var w=2;w<C.length;w++)C[w]=this.mul(C[w-1],h);var c=C[0],T=0,z=0,R=S.bitLength()%26;if(R===0)R=26;for(w=S.length-1;w>=0;w--){var q=S.words[w];for(var Q=R-1;Q>=0;Q--){var ie=q>>Q&1;if(c!==C[0])c=this.sqr(c);if(ie===0&&T===0){z=0;continue}if(T<<=1,T|=ie,z++,z!==k&&(w!==0||Q!==0))continue;c=this.mul(c,C[T]),z=0,T=0}R=26}return c},p.prototype.convertTo=function(h){var S=h.umod(this.m);return S===h?S.clone():S},p.prototype.convertFrom=function(h){var S=h.clone();return S.red=null,S},s.mont=function(h){return new x(h)};function x(h){if(p.call(this,h),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new s(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)}l(x,p),x.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},x.prototype.convertFrom=function(h){var S=this.imod(h.mul(this.rinv));return S.red=null,S},x.prototype.imul=function(h,S){if(h.isZero()||S.isZero())return h.words[0]=0,h.length=1,h;var k=h.imul(S),C=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(C).iushrn(this.shift),c=w;if(w.cmp(this.m)>=0)c=w.isub(this.m);else if(w.cmpn(0)<0)c=w.iadd(this.m);return c._forceRed(this)},x.prototype.mul=function(h,S){if(h.isZero()||S.isZero())return new s(0)._forceRed(this);var k=h.mul(S),C=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(C).iushrn(this.shift),c=w;if(w.cmp(this.m)>=0)c=w.isub(this.m);else if(w.cmpn(0)<0)c=w.iadd(this.m);return c._forceRed(this)},x.prototype.invm=function(h){var S=this.imod(h._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(typeof t>"u"||t,e)}),kY=ct((e,t)=>{var r=y1e(),a=Z2(),n=Qi().Buffer;function l(b){var y=b.modulus.byteLength(),v;do v=new r(a(y));while(v.cmp(b.modulus)>=0||!v.umod(b.prime1)||!v.umod(b.prime2));return v}function s(b){var y=l(b),v=y.toRed(r.mont(b.modulus)).redPow(new r(b.publicExponent)).fromRed();return{blinder:v,unblinder:y.invm(b.modulus)}}function d(b,y){var v=s(y),g=y.modulus.byteLength(),_=new r(b).mul(v.blinder).umod(y.modulus),A=_.toRed(r.mont(y.prime1)),I=_.toRed(r.mont(y.prime2)),O=y.coefficient,N=y.prime1,P=y.prime2,j=A.redPow(y.exponent1).fromRed(),Z=I.redPow(y.exponent2).fromRed(),V=j.isub(Z).imul(O).umod(N).imul(P);return Z.iadd(V).imul(v.unblinder).umod(y.modulus).toArrayLike(n,"be",g)}d.getr=l,t.exports=d}),v1e=ct((e,t)=>{var r=_Y(),a=Z2(),n=F2(),l=wY(),s=EY(),d=rC(),b=TY(),y=kY(),v=Qi().Buffer;t.exports=function(I,O,N){var P;if(I.padding)P=I.padding;else if(N)P=1;else P=4;var j=r(I),Z;if(P===4)Z=g(j,O);else if(P===1)Z=_(j,O,N);else if(P===3){if(Z=new d(O),Z.cmp(j.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(N)return y(Z,j);else return b(Z,j)};function g(I,O){var N=I.modulus.byteLength(),P=O.length,j=n("sha1").update(v.alloc(0)).digest(),Z=j.length,V=2*Z;if(P>N-V-2)throw Error("message too long");var W=v.alloc(N-P-V-2),J=N-Z-1,ve=a(Z),ce=s(v.concat([j,W,v.alloc(1,1),O],J),l(ve,J)),Me=s(ve,l(ce,Z));return new d(v.concat([v.alloc(1),Me,ce],N))}function _(I,O,N){var P=O.length,j=I.modulus.byteLength();if(P>j-11)throw Error("message too long");var Z;if(N)Z=v.alloc(j-P-3,255);else Z=A(j-P-3);return new d(v.concat([v.from([0,N?1:2]),Z,v.alloc(1),O],j))}function A(I){var O=v.allocUnsafe(I),N=0,P=a(I*2),j=0,Z;while(N<I){if(j===P.length)P=a(I*2),j=0;if(Z=P[j++],Z)O[N++]=Z}return O}}),S1e=ct((e,t)=>{var r=_Y(),a=wY(),n=EY(),l=rC(),s=kY(),d=F2(),b=TY(),y=Qi().Buffer;t.exports=function(A,I,O){var N;if(A.padding)N=A.padding;else if(O)N=1;else N=4;var P=r(A),j=P.modulus.byteLength();if(I.length>j||new l(I).cmp(P.modulus)>=0)throw Error("decryption error");var Z;if(O)Z=b(new l(I),P);else Z=s(I,P);var V=y.alloc(j-Z.length);if(Z=y.concat([V,Z],j),N===4)return v(P,Z);else if(N===1)return g(P,Z,O);else if(N===3)return Z;else throw Error("unknown padding")};function v(A,I){var O=A.modulus.byteLength(),N=d("sha1").update(y.alloc(0)).digest(),P=N.length;if(I[0]!==0)throw Error("decryption error");var j=I.slice(1,P+1),Z=I.slice(P+1),V=n(j,a(Z,P)),W=n(Z,a(V,O-P-1));if(_(N,W.slice(0,P)))throw Error("decryption error");var J=P;while(W[J]===0)J++;if(W[J++]!==1)throw Error("decryption error");return W.slice(J)}function g(A,I,O){var N=I.slice(0,2),P=2,j=0;while(I[P++]!==0)if(P>=I.length){j++;break}var Z=I.slice(2,P-1);if(N.toString("hex")!=="0002"&&!O||N.toString("hex")!=="0001"&&O)j++;if(Z.length<8)j++;if(j)throw Error("decryption error");return I.slice(P)}function _(A,I){A=y.from(A),I=y.from(I);var O=0,N=A.length;if(A.length!==I.length)O++,N=Math.min(A.length,I.length);var P=-1;while(++P<N)O+=A[P]^I[P];return O}}),VM=ct((e)=>{e.publicEncrypt=v1e(),e.privateDecrypt=S1e(),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}}),x1e=ct((e)=>{var t=(eo(),Cr(Lo));if(typeof t.publicEncrypt!=="function")t=VM();if(e.publicEncrypt=t.publicEncrypt,e.privateDecrypt=t.privateDecrypt,typeof t.privateEncrypt!=="function")e.privateEncrypt=VM().privateEncrypt;else e.privateEncrypt=t.privateEncrypt;if(typeof t.publicDecrypt!=="function")e.publicDecrypt=VM().publicDecrypt;else e.publicDecrypt=t.publicDecrypt}),_1e=ct((e)=>{var t=Qi(),r=Z2(),a=t.Buffer,n=t.kMaxLength,l=globalThis.crypto||globalThis.msCrypto,s=Math.pow(2,32)-1;function d(_,A){if(typeof _!=="number"||_!==_)throw TypeError("offset must be a number");if(_>s||_<0)throw TypeError("offset must be a uint32");if(_>n||_>A)throw RangeError("offset out of range")}function b(_,A,I){if(typeof _!=="number"||_!==_)throw TypeError("size must be a number");if(_>s||_<0)throw TypeError("size must be a uint32");if(_+A>I||_>n)throw RangeError("buffer too small")}l&&l.getRandomValues,e.randomFill=y,e.randomFillSync=g;function y(_,A,I,O){if(!a.isBuffer(_)&&!(_ instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof A==="function")O=A,A=0,I=_.length;else if(typeof I==="function")O=I,I=_.length-A;else if(typeof O!=="function")throw TypeError('"cb" argument must be a function');return d(A,_.length),b(I,A,_.length),v(_,A,I,O)}function v(_,A,I,O){if(!1)var N,P;if(O){r(I,function(Z,V){if(Z)return O(Z);V.copy(_,A),O(null,_)});return}var j=r(I);return j.copy(_,A),_}function g(_,A,I){if(typeof A>"u")A=0;if(!a.isBuffer(_)&&!(_ instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(d(A,_.length),I===void 0)I=_.length-A;return b(I,A,_.length),v(_,A,I)}}),w1e=ct((e,t)=>{var r=(eo(),Cr(Lo));if(typeof r.randomFill==="function"&&typeof r.randomFillSync==="function")e.randomFill=r.randomFill,e.randomFillSync=r.randomFillSync;else t.exports=_1e()}),E1e=ct((e)=>{e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=Z2(),e.createHash=e.Hash=F2(),e.createHmac=e.Hmac=eY();var t=Y0e(),r=Object.keys(t),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return a};var n=fY();e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync;var l=Rge();e.Cipher=l.Cipher,e.createCipher=l.createCipher,e.Cipheriv=l.Cipheriv,e.createCipheriv=l.createCipheriv,e.Decipher=l.Decipher,e.createDecipher=l.createDecipher,e.Decipheriv=l.Decipheriv,e.createDecipheriv=l.createDecipheriv,e.getCiphers=l.getCiphers,e.listCiphers=l.listCiphers;var s=Ige();e.DiffieHellmanGroup=s.DiffieHellmanGroup,e.createDiffieHellmanGroup=s.createDiffieHellmanGroup,e.getDiffieHellman=s.getDiffieHellman,e.createDiffieHellman=s.createDiffieHellman,e.DiffieHellman=s.DiffieHellman;var d=Oge();e.createSign=d.createSign,e.Sign=d.Sign,e.createVerify=d.createVerify,e.Verify=d.Verify,e.createECDH=t1e();var b=x1e();e.publicEncrypt=b.publicEncrypt,e.privateEncrypt=b.privateEncrypt,e.publicDecrypt=b.publicDecrypt,e.privateDecrypt=b.privateDecrypt;var y=w1e();e.randomFill=y.randomFill,e.randomFillSync=y.randomFillSync,e.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
381
381
  we accept pull requests
382
382
  https://github.com/browserify/crypto-browserify`)},e.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}}),yr=V0e(E1e(),1),T1e=yr.prng,k1e=yr.pseudoRandomBytes,A1e=yr.rng,M1e=yr.randomBytes,C1e=yr.Hash,nC=yr.createHash,R1e=yr.Hmac,I1e=yr.createHmac,O1e=yr.getHashes,N1e=yr.pbkdf2,D1e=yr.pbkdf2Sync,z1e=yr.Cipher,L1e=yr.createCipher,P1e=yr.Cipheriv,$1e=yr.createCipheriv,B1e=yr.Decipher,U1e=yr.createDecipher,j1e=yr.Decipheriv,H1e=yr.createDecipheriv,Z1e=yr.getCiphers,F1e=yr.listCiphers,q1e=yr.DiffieHellmanGroup,G1e=yr.createDiffieHellmanGroup,V1e=yr.getDiffieHellman,Y1e=yr.createDiffieHellman,K1e=yr.DiffieHellman,W1e=yr.createSign,X1e=yr.Sign,J1e=yr.createVerify,Q1e=yr.Verify,ebe=yr.createECDH,tbe=yr.publicEncrypt,rbe=yr.privateEncrypt,nbe=yr.publicDecrypt,ibe=yr.privateDecrypt,obe=yr.randomFill,abe=yr.randomFillSync,sbe=yr.createCredentials,lbe=yr.constants,dbe=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];pbe=crypto,mbe=crypto});var dK=Zt(GN(),1);var U={};Vn(U,{$brand:()=>I_,$input:()=>G3,$output:()=>q3,NEVER:()=>R_,TimePrecision:()=>X3,ZodAny:()=>jk,ZodArray:()=>qk,ZodBase64:()=>Oy,ZodBase64URL:()=>Ny,ZodBigInt:()=>zd,ZodBigIntFormat:()=>Ly,ZodBoolean:()=>Dd,ZodCIDRv4:()=>Ry,ZodCIDRv6:()=>Iy,ZodCUID:()=>wy,ZodCUID2:()=>Ey,ZodCatch:()=>h4,ZodCodec:()=>Pm,ZodCustom:()=>$m,ZodCustomStringFormat:()=>Od,ZodDate:()=>Om,ZodDefault:()=>s4,ZodDiscriminatedUnion:()=>Vk,ZodE164:()=>Dy,ZodEmail:()=>Sy,ZodEmoji:()=>xy,ZodEnum:()=>Rd,ZodError:()=>ND,ZodExactOptional:()=>i4,ZodFile:()=>r4,ZodFirstPartyTypeKind:()=>k4,ZodFunction:()=>w4,ZodGUID:()=>Am,ZodIPv4:()=>My,ZodIPv6:()=>Cy,ZodISODate:()=>py,ZodISODateTime:()=>hy,ZodISODuration:()=>gy,ZodISOTime:()=>my,ZodIntersection:()=>Yk,ZodIssueCode:()=>Pte,ZodJWT:()=>zy,ZodKSUID:()=>Ay,ZodLazy:()=>S4,ZodLiteral:()=>t4,ZodMAC:()=>Dk,ZodMap:()=>Qk,ZodNaN:()=>m4,ZodNanoID:()=>_y,ZodNever:()=>Zk,ZodNonOptional:()=>Hy,ZodNull:()=>Bk,ZodNullable:()=>a4,ZodNumber:()=>Nd,ZodNumberFormat:()=>wc,ZodObject:()=>Dm,ZodOptional:()=>jy,ZodPipe:()=>Lm,ZodPrefault:()=>u4,ZodPreprocess:()=>g4,ZodPromise:()=>_4,ZodReadonly:()=>b4,ZodRealError:()=>co,ZodRecord:()=>Cd,ZodSet:()=>e4,ZodString:()=>Id,ZodStringFormat:()=>Vr,ZodSuccess:()=>d4,ZodSymbol:()=>Pk,ZodTemplateLiteral:()=>v4,ZodTransform:()=>n4,ZodTuple:()=>Wk,ZodType:()=>cr,ZodULID:()=>Ty,ZodURL:()=>Im,ZodUUID:()=>as,ZodUndefined:()=>$k,ZodUnion:()=>zm,ZodUnknown:()=>Hk,ZodVoid:()=>Fk,ZodXID:()=>ky,ZodXor:()=>Gk,_ZodString:()=>vy,_default:()=>l4,_function:()=>jz,any:()=>yz,array:()=>Nm,base64:()=>tz,base64url:()=>rz,bigint:()=>hz,boolean:()=>Lk,catch:()=>p4,check:()=>Hz,cidrv4:()=>QD,cidrv6:()=>ez,clone:()=>Ui,codec:()=>Pz,coerce:()=>A4,config:()=>In,core:()=>Gs,cuid:()=>qD,cuid2:()=>GD,custom:()=>Zz,date:()=>Sz,decode:()=>Ak,decodeAsync:()=>Ck,describe:()=>Fz,discriminatedUnion:()=>kz,e164:()=>nz,email:()=>zD,emoji:()=>ZD,encode:()=>kk,encodeAsync:()=>Mk,endsWith:()=>vd,enum:()=>By,exactOptional:()=>o4,file:()=>Nz,flattenError:()=>cm,float32:()=>uz,float64:()=>cz,formatError:()=>fm,fromJSONSchema:()=>Xz,function:()=>jz,getErrorMap:()=>Bte,globalRegistry:()=>bi,gt:()=>is,gte:()=>Hi,guid:()=>LD,hash:()=>lz,hex:()=>sz,hostname:()=>az,httpUrl:()=>HD,includes:()=>bd,instanceof:()=>Gz,int:()=>by,int32:()=>fz,int64:()=>pz,intersection:()=>Kk,invertCodec:()=>$z,ipv4:()=>WD,ipv6:()=>JD,iso:()=>Md,json:()=>Yz,jwt:()=>iz,keyof:()=>xz,ksuid:()=>KD,lazy:()=>x4,length:()=>xc,literal:()=>Oz,locales:()=>_m,looseObject:()=>Ez,looseRecord:()=>Mz,lowercase:()=>md,lt:()=>ns,lte:()=>No,mac:()=>XD,map:()=>Cz,maxLength:()=>Sc,maxSize:()=>eu,meta:()=>qz,mime:()=>Sd,minLength:()=>qs,minSize:()=>os,multipleOf:()=>Ql,nan:()=>Lz,nanoid:()=>FD,nativeEnum:()=>Iz,negative:()=>iy,never:()=>Py,nonnegative:()=>ay,nonoptional:()=>f4,nonpositive:()=>oy,normalize:()=>xd,null:()=>Uk,nullable:()=>Cm,nullish:()=>Dz,number:()=>zk,object:()=>_z,optional:()=>Mm,overwrite:()=>ga,parse:()=>_k,parseAsync:()=>wk,partialRecord:()=>Az,pipe:()=>yy,positive:()=>ny,prefault:()=>c4,preprocess:()=>Kz,prettifyError:()=>Z_,promise:()=>Uz,property:()=>sy,readonly:()=>y4,record:()=>Jk,refine:()=>E4,regex:()=>pd,regexes:()=>Oo,registry:()=>Lb,safeDecode:()=>Ik,safeDecodeAsync:()=>Nk,safeEncode:()=>Rk,safeEncodeAsync:()=>Ok,safeParse:()=>Ek,safeParseAsync:()=>Tk,set:()=>Rz,setErrorMap:()=>$te,size:()=>vc,slugify:()=>Td,startsWith:()=>yd,strictObject:()=>wz,string:()=>km,stringFormat:()=>oz,stringbool:()=>Vz,success:()=>zz,superRefine:()=>T4,symbol:()=>gz,templateLiteral:()=>Bz,toJSONSchema:()=>fy,toLowerCase:()=>wd,toUpperCase:()=>Ed,transform:()=>Uy,treeifyError:()=>H_,trim:()=>_d,tuple:()=>Xk,uint32:()=>dz,uint64:()=>mz,ulid:()=>VD,undefined:()=>bz,union:()=>$y,unknown:()=>_c,uppercase:()=>gd,url:()=>jD,util:()=>Rt,uuid:()=>PD,uuidv4:()=>$D,uuidv6:()=>BD,uuidv7:()=>UD,void:()=>vz,xid:()=>YD,xor:()=>Tz});var Gs={};Vn(Gs,{$ZodAny:()=>yE,$ZodArray:()=>wE,$ZodAsyncError:()=>rs,$ZodBase64:()=>lE,$ZodBase64URL:()=>uE,$ZodBigInt:()=>Ob,$ZodBigIntFormat:()=>pE,$ZodBoolean:()=>mm,$ZodCIDRv4:()=>oE,$ZodCIDRv6:()=>aE,$ZodCUID:()=>Vw,$ZodCUID2:()=>Yw,$ZodCatch:()=>jE,$ZodCheck:()=>Jr,$ZodCheckBigIntFormat:()=>ww,$ZodCheckEndsWith:()=>zw,$ZodCheckGreaterThan:()=>Tb,$ZodCheckIncludes:()=>Nw,$ZodCheckLengthEquals:()=>Cw,$ZodCheckLessThan:()=>Eb,$ZodCheckLowerCase:()=>Iw,$ZodCheckMaxLength:()=>Aw,$ZodCheckMaxSize:()=>Ew,$ZodCheckMimeType:()=>Pw,$ZodCheckMinLength:()=>Mw,$ZodCheckMinSize:()=>Tw,$ZodCheckMultipleOf:()=>xw,$ZodCheckNumberFormat:()=>_w,$ZodCheckOverwrite:()=>$w,$ZodCheckProperty:()=>Lw,$ZodCheckRegex:()=>Rw,$ZodCheckSizeEquals:()=>kw,$ZodCheckStartsWith:()=>Dw,$ZodCheckStringFormat:()=>dd,$ZodCheckUpperCase:()=>Ow,$ZodCodec:()=>bm,$ZodCustom:()=>KE,$ZodCustomStringFormat:()=>dE,$ZodDate:()=>_E,$ZodDefault:()=>PE,$ZodDiscriminatedUnion:()=>kE,$ZodE164:()=>cE,$ZodEmail:()=>Zw,$ZodEmoji:()=>qw,$ZodEncodeError:()=>mc,$ZodEnum:()=>IE,$ZodError:()=>um,$ZodExactOptional:()=>zE,$ZodFile:()=>NE,$ZodFunction:()=>GE,$ZodGUID:()=>jw,$ZodIPv4:()=>rE,$ZodIPv6:()=>nE,$ZodISODate:()=>Qw,$ZodISODateTime:()=>Jw,$ZodISODuration:()=>tE,$ZodISOTime:()=>eE,$ZodIntersection:()=>AE,$ZodJWT:()=>fE,$ZodKSUID:()=>Xw,$ZodLazy:()=>YE,$ZodLiteral:()=>OE,$ZodMAC:()=>iE,$ZodMap:()=>CE,$ZodNaN:()=>HE,$ZodNanoID:()=>Gw,$ZodNever:()=>SE,$ZodNonOptional:()=>BE,$ZodNull:()=>bE,$ZodNullable:()=>LE,$ZodNumber:()=>Ib,$ZodNumberFormat:()=>hE,$ZodObject:()=>ED,$ZodObjectJIT:()=>EE,$ZodOptional:()=>Db,$ZodPipe:()=>zb,$ZodPrefault:()=>$E,$ZodPreprocess:()=>ZE,$ZodPromise:()=>VE,$ZodReadonly:()=>FE,$ZodRealError:()=>uo,$ZodRecord:()=>ME,$ZodRegistry:()=>V3,$ZodSet:()=>RE,$ZodString:()=>yc,$ZodStringFormat:()=>Gr,$ZodSuccess:()=>UE,$ZodSymbol:()=>mE,$ZodTemplateLiteral:()=>qE,$ZodTransform:()=>DE,$ZodTuple:()=>Nb,$ZodType:()=>rr,$ZodULID:()=>Kw,$ZodURL:()=>Fw,$ZodUUID:()=>Hw,$ZodUndefined:()=>gE,$ZodUnion:()=>gm,$ZodUnknown:()=>vE,$ZodVoid:()=>xE,$ZodXID:()=>Ww,$ZodXor:()=>TE,$brand:()=>I_,$constructor:()=>Xe,$input:()=>G3,$output:()=>q3,Doc:()=>kb,JSONSchema:()=>ID,JSONSchemaGenerator:()=>bk,NEVER:()=>R_,TimePrecision:()=>X3,_any:()=>yT,_array:()=>TT,_base64:()=>Qb,_base64url:()=>ey,_bigint:()=>fT,_boolean:()=>uT,_catch:()=>Mte,_check:()=>RD,_cidrv4:()=>Xb,_cidrv6:()=>Jb,_coercedBigint:()=>dT,_coercedBoolean:()=>cT,_coercedDate:()=>wT,_coercedNumber:()=>nT,_coercedString:()=>K3,_cuid:()=>Fb,_cuid2:()=>qb,_custom:()=>AT,_date:()=>_T,_decode:()=>gb,_decodeAsync:()=>yb,_default:()=>Tte,_discriminatedUnion:()=>hte,_e164:()=>ty,_email:()=>Pb,_emoji:()=>Hb,_encode:()=>mb,_encodeAsync:()=>bb,_endsWith:()=>vd,_enum:()=>vte,_file:()=>kT,_float32:()=>oT,_float64:()=>aT,_gt:()=>is,_gte:()=>Hi,_guid:()=>wm,_includes:()=>bd,_int:()=>iT,_int32:()=>sT,_int64:()=>hT,_intersection:()=>pte,_ipv4:()=>Kb,_ipv6:()=>Wb,_isoDate:()=>Q3,_isoDateTime:()=>J3,_isoDuration:()=>tT,_isoTime:()=>eT,_jwt:()=>ry,_ksuid:()=>Yb,_lazy:()=>Ote,_length:()=>xc,_literal:()=>xte,_lowercase:()=>md,_lt:()=>ns,_lte:()=>No,_mac:()=>W3,_map:()=>bte,_max:()=>No,_maxLength:()=>Sc,_maxSize:()=>eu,_mime:()=>Sd,_min:()=>Hi,_minLength:()=>qs,_minSize:()=>os,_multipleOf:()=>Ql,_nan:()=>ET,_nanoid:()=>Zb,_nativeEnum:()=>Ste,_negative:()=>iy,_never:()=>ST,_nonnegative:()=>ay,_nonoptional:()=>kte,_nonpositive:()=>oy,_normalize:()=>xd,_null:()=>bT,_nullable:()=>Ete,_number:()=>rT,_optional:()=>wte,_overwrite:()=>ga,_parse:()=>ld,_parseAsync:()=>ud,_pipe:()=>Cte,_positive:()=>ny,_promise:()=>Nte,_property:()=>sy,_readonly:()=>Rte,_record:()=>gte,_refine:()=>MT,_regex:()=>pd,_safeDecode:()=>Sb,_safeDecodeAsync:()=>_b,_safeEncode:()=>vb,_safeEncodeAsync:()=>xb,_safeParse:()=>cd,_safeParseAsync:()=>fd,_set:()=>yte,_size:()=>vc,_slugify:()=>Td,_startsWith:()=>yd,_string:()=>Y3,_stringFormat:()=>kd,_stringbool:()=>OT,_success:()=>Ate,_superRefine:()=>CT,_symbol:()=>mT,_templateLiteral:()=>Ite,_toLowerCase:()=>wd,_toUpperCase:()=>Ed,_transform:()=>_te,_trim:()=>_d,_tuple:()=>mte,_uint32:()=>lT,_uint64:()=>pT,_ulid:()=>Gb,_undefined:()=>gT,_union:()=>fte,_unknown:()=>vT,_uppercase:()=>gd,_url:()=>Em,_uuid:()=>$b,_uuidv4:()=>Bb,_uuidv6:()=>Ub,_uuidv7:()=>jb,_void:()=>xT,_xid:()=>Vb,_xor:()=>dte,clone:()=>Ui,config:()=>In,createStandardJSONSchemaMethod:()=>Ad,createToJSONSchemaMethod:()=>NT,decode:()=>NQ,decodeAsync:()=>zQ,describe:()=>RT,encode:()=>OQ,encodeAsync:()=>DQ,extractDefs:()=>ru,finalize:()=>nu,flattenError:()=>cm,formatError:()=>fm,globalConfig:()=>pc,globalRegistry:()=>bi,initializeContext:()=>tu,isValidBase64:()=>sE,isValidBase64URL:()=>SD,isValidJWT:()=>xD,locales:()=>_m,meta:()=>IT,parse:()=>hb,parseAsync:()=>pb,prettifyError:()=>Z_,process:()=>Br,regexes:()=>Oo,registry:()=>Lb,safeDecode:()=>PQ,safeDecodeAsync:()=>BQ,safeEncode:()=>LQ,safeEncodeAsync:()=>$Q,safeParse:()=>F_,safeParseAsync:()=>q_,toDotPath:()=>QN,toJSONSchema:()=>fy,treeifyError:()=>H_,util:()=>Rt,version:()=>Bw});var VN,R_=Object.freeze({status:"aborted"});function Xe(e,t,r){function a(d,b){if(!d._zod)Object.defineProperty(d,"_zod",{value:{def:b,constr:s,traits:new Set},enumerable:!1});if(d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,b);let y=s.prototype,v=Object.keys(y);for(let g=0;g<v.length;g++){let _=v[g];if(!(_ in d))d[_]=y[_].bind(d)}}let n=r?.Parent??Object;class l extends n{}Object.defineProperty(l,"name",{value:e});function s(d){var b;let y=r?.Parent?new l:this;a(y,d),(b=y._zod).deferred??(b.deferred=[]);for(let v of y._zod.deferred)v();return y}return Object.defineProperty(s,"init",{value:a}),Object.defineProperty(s,Symbol.hasInstance,{value:(d)=>{if(r?.Parent&&d instanceof r.Parent)return!0;return d?._zod?.traits?.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}var I_=Symbol("zod_brand");class rs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class mc extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(VN=globalThis).__zod_globalConfig??(VN.__zod_globalConfig={});var pc=globalThis.__zod_globalConfig;function In(e){if(e)Object.assign(pc,e);return pc}var Rt={};Vn(Rt,{BIGINT_FORMAT_RANGES:()=>U_,Class:()=>XN,NUMBER_FORMAT_RANGES:()=>B_,aborted:()=>Jl,allowsEval:()=>z_,assert:()=>cQ,assertEqual:()=>aQ,assertIs:()=>lQ,assertNever:()=>uQ,assertNotEqual:()=>sQ,assignProp:()=>Wl,base64ToUint8Array:()=>KN,base64urlToUint8Array:()=>AQ,cached:()=>ad,captureStackTrace:()=>db,cleanEnum:()=>kQ,cleanRegex:()=>om,clone:()=>Ui,cloneDef:()=>dQ,createTransparentProxy:()=>yQ,defineLazy:()=>gr,esc:()=>fb,escapeRegex:()=>Xo,explicitlyAborted:()=>j_,extend:()=>xQ,finalizeIssue:()=>ji,floatSafeRemainder:()=>N_,getElementAtPath:()=>hQ,getEnumValues:()=>im,getLengthableOrigin:()=>lm,getParsedType:()=>bQ,getSizableOrigin:()=>sm,hexToUint8Array:()=>CQ,isObject:()=>gc,isPlainObject:()=>Xl,issue:()=>sd,joinValues:()=>st,jsonStringifyReplacer:()=>od,merge:()=>wQ,mergeDefs:()=>Fs,normalizeParams:()=>Nt,nullish:()=>Kl,numKeys:()=>gQ,objectClone:()=>fQ,omit:()=>SQ,optionalKeys:()=>$_,parsedType:()=>Mt,partial:()=>EQ,pick:()=>vQ,prefixIssues:()=>lo,primitiveTypes:()=>P_,promiseAllObject:()=>pQ,propertyKeyTypes:()=>am,randomString:()=>mQ,required:()=>TQ,safeExtend:()=>_Q,shallowClone:()=>L_,slugify:()=>D_,stringifyPrimitive:()=>At,uint8ArrayToBase64:()=>WN,uint8ArrayToBase64url:()=>MQ,uint8ArrayToHex:()=>RQ,unwrapMessage:()=>nm});function aQ(e){return e}function sQ(e){return e}function lQ(e){}function uQ(e){throw Error("Unexpected value in exhaustive check")}function cQ(e){}function im(e){let t=Object.values(e).filter((a)=>typeof a==="number");return Object.entries(e).filter(([a,n])=>t.indexOf(+a)===-1).map(([a,n])=>n)}function st(e,t="|"){return e.map((r)=>At(r)).join(t)}function od(e,t){if(typeof t==="bigint")return t.toString();return t}function ad(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw Error("cached value already set")}}}function Kl(e){return e===null||e===void 0}function om(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function N_(e,t){let r=e/t,a=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);if(Math.abs(r-a)<n)return 0;return r-a}var YN=Symbol("evaluating");function gr(e,t,r){let a=void 0;Object.defineProperty(e,t,{get(){if(a===YN)return;if(a===void 0)a=YN,a=r();return a},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function fQ(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Wl(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Fs(...e){let t={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function dQ(e){return Fs(e._zod.def)}function hQ(e,t){if(!t)return e;return t.reduce((r,a)=>r?.[a],e)}function pQ(e){let t=Object.keys(e),r=t.map((a)=>e[a]);return Promise.all(r).then((a)=>{let n={};for(let l=0;l<t.length;l++)n[t[l]]=a[l];return n})}function mQ(e=10){let r="";for(let a=0;a<e;a++)r+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return r}function fb(e){return JSON.stringify(e)}function D_(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var db="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gc(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var z_=ad(()=>{if(pc.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function Xl(e){if(gc(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;if(typeof t!=="function")return!0;let r=t.prototype;if(gc(r)===!1)return!1;if(Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)return!1;return!0}function L_(e){if(Xl(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}function gQ(e){let t=0;for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r))t++;return t}var bQ=(e)=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(e===null)return"null";if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return"promise";if(typeof Map<"u"&&e instanceof Map)return"map";if(typeof Set<"u"&&e instanceof Set)return"set";if(typeof Date<"u"&&e instanceof Date)return"date";if(typeof File<"u"&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},am=new Set(["string","number","symbol"]),P_=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Xo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ui(e,t,r){let a=new e._zod.constr(t??e._zod.def);if(!t||r?.parent)a._zod.parent=e;return a}function Nt(e){let t=e;if(!t)return{};if(typeof t==="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}if(delete t.message,typeof t.error==="string")return{...t,error:()=>t.error};return t}function yQ(e){let t;return new Proxy({},{get(r,a,n){return t??(t=e()),Reflect.get(t,a,n)},set(r,a,n,l){return t??(t=e()),Reflect.set(t,a,n,l)},has(r,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(r,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(r,a,n){return t??(t=e()),Reflect.defineProperty(t,a,n)}})}function At(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function $_(e){return Object.keys(e).filter((t)=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var B_={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},U_={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function vQ(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let l=Fs(e._zod.def,{get shape(){let s={};for(let d in t){if(!(d in r.shape))throw Error(`Unrecognized key: "${d}"`);if(!t[d])continue;s[d]=r.shape[d]}return Wl(this,"shape",s),s},checks:[]});return Ui(e,l)}function SQ(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let l=Fs(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let d in t){if(!(d in r.shape))throw Error(`Unrecognized key: "${d}"`);if(!t[d])continue;delete s[d]}return Wl(this,"shape",s),s},checks:[]});return Ui(e,l)}function xQ(e,t){if(!Xl(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let l=e._zod.def.shape;for(let s in t)if(Object.getOwnPropertyDescriptor(l,s)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Fs(e._zod.def,{get shape(){let l={...e._zod.def.shape,...t};return Wl(this,"shape",l),l}});return Ui(e,n)}function _Q(e,t){if(!Xl(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=Fs(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return Wl(this,"shape",a),a}});return Ui(e,r)}function wQ(e,t){if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Fs(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return Wl(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Ui(e,r)}function EQ(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let s=Fs(t._zod.def,{get shape(){let d=t._zod.def.shape,b={...d};if(r)for(let y in r){if(!(y in d))throw Error(`Unrecognized key: "${y}"`);if(!r[y])continue;b[y]=e?new e({type:"optional",innerType:d[y]}):d[y]}else for(let y in d)b[y]=e?new e({type:"optional",innerType:d[y]}):d[y];return Wl(this,"shape",b),b},checks:[]});return Ui(t,s)}function TQ(e,t,r){let a=Fs(t._zod.def,{get shape(){let n=t._zod.def.shape,l={...n};if(r)for(let s in r){if(!(s in l))throw Error(`Unrecognized key: "${s}"`);if(!r[s])continue;l[s]=new e({type:"nonoptional",innerType:n[s]})}else for(let s in n)l[s]=new e({type:"nonoptional",innerType:n[s]});return Wl(this,"shape",l),l}});return Ui(t,a)}function Jl(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function j_(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function lo(e,t){return t.map((r)=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function nm(e){return typeof e==="string"?e:e?.message}function ji(e,t,r){let a=e.message?e.message:nm(e.inst?._zod.def?.error?.(e))??nm(t?.error?.(e))??nm(r.customError?.(e))??nm(r.localeError?.(e))??"Invalid input",{inst:n,continue:l,input:s,...d}=e;if(d.path??(d.path=[]),d.message=a,t?.reportInput)d.input=s;return d}function sm(e){if(e instanceof Set)return"set";if(e instanceof Map)return"map";if(e instanceof File)return"file";return"unknown"}function lm(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function Mt(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function sd(...e){let[t,r,a]=e;if(typeof t==="string")return{message:t,code:"custom",input:r,inst:a};return{...t}}function kQ(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map((t)=>t[1])}function KN(e){let t=atob(e),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a);return r}function WN(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function AQ(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return KN(t+r)}function MQ(e){return WN(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function CQ(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let a=0;a<t.length;a+=2)r[a/2]=Number.parseInt(t.slice(a,a+2),16);return r}function RQ(e){return Array.from(e).map((t)=>t.toString(16).padStart(2,"0")).join("")}class XN{constructor(...e){}}var JN=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,od,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},um=Xe("$ZodError",JN),uo=Xe("$ZodError",JN,{Parent:Error});function cm(e,t=(r)=>r.message){let r={},a=[];for(let n of e.issues)if(n.path.length>0)r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n));else a.push(t(n));return{formErrors:a,fieldErrors:r}}function fm(e,t=(r)=>r.message){let r={_errors:[]},a=(n,l=[])=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map((d)=>a({issues:d},[...l,...s.path]));else if(s.code==="invalid_key")a({issues:s.issues},[...l,...s.path]);else if(s.code==="invalid_element")a({issues:s.issues},[...l,...s.path]);else{let d=[...l,...s.path];if(d.length===0)r._errors.push(t(s));else{let b=r,y=0;while(y<d.length){let v=d[y];if(y!==d.length-1)b[v]=b[v]||{_errors:[]};else b[v]=b[v]||{_errors:[]},b[v]._errors.push(t(s));b=b[v],y++}}}};return a(e),r}function H_(e,t=(r)=>r.message){let r={errors:[]},a=(n,l=[])=>{var s,d;for(let b of n.issues)if(b.code==="invalid_union"&&b.errors.length)b.errors.map((y)=>a({issues:y},[...l,...b.path]));else if(b.code==="invalid_key")a({issues:b.issues},[...l,...b.path]);else if(b.code==="invalid_element")a({issues:b.issues},[...l,...b.path]);else{let y=[...l,...b.path];if(y.length===0){r.errors.push(t(b));continue}let v=r,g=0;while(g<y.length){let _=y[g],A=g===y.length-1;if(typeof _==="string")v.properties??(v.properties={}),(s=v.properties)[_]??(s[_]={errors:[]}),v=v.properties[_];else v.items??(v.items=[]),(d=v.items)[_]??(d[_]={errors:[]}),v=v.items[_];if(A)v.errors.push(t(b));g++}}};return a(e),r}function QN(e){let t=[],r=e.map((a)=>typeof a==="object"?a.key:a);for(let a of r)if(typeof a==="number")t.push(`[${a}]`);else if(typeof a==="symbol")t.push(`[${JSON.stringify(String(a))}]`);else if(/[^\w$]/.test(a))t.push(`[${JSON.stringify(a)}]`);else{if(t.length)t.push(".");t.push(a)}return t.join("")}function Z_(e){let t=[],r=[...e.issues].sort((a,n)=>(a.path??[]).length-(n.path??[]).length);for(let a of r)if(t.push(`✖ ${a.message}`),a.path?.length)t.push(` → at ${QN(a.path)}`);return t.join(`
383
383
  `)}var ld=(e)=>(t,r,a,n)=>{let l=a?{...a,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},l);if(s instanceof Promise)throw new rs;if(s.issues.length){let d=new(n?.Err??e)(s.issues.map((b)=>ji(b,l,In())));throw db(d,n?.callee),d}return s.value},hb=ld(uo),ud=(e)=>async(t,r,a,n)=>{let l=a?{...a,async:!0}:{async:!0},s=t._zod.run({value:r,issues:[]},l);if(s instanceof Promise)s=await s;if(s.issues.length){let d=new(n?.Err??e)(s.issues.map((b)=>ji(b,l,In())));throw db(d,n?.callee),d}return s.value},pb=ud(uo),cd=(e)=>(t,r,a)=>{let n=a?{...a,async:!1}:{async:!1},l=t._zod.run({value:r,issues:[]},n);if(l instanceof Promise)throw new rs;return l.issues.length?{success:!1,error:new(e??um)(l.issues.map((s)=>ji(s,n,In())))}:{success:!0,data:l.value}},F_=cd(uo),fd=(e)=>async(t,r,a)=>{let n=a?{...a,async:!0}:{async:!0},l=t._zod.run({value:r,issues:[]},n);if(l instanceof Promise)l=await l;return l.issues.length?{success:!1,error:new e(l.issues.map((s)=>ji(s,n,In())))}:{success:!0,data:l.value}},q_=fd(uo),mb=(e)=>(t,r,a)=>{let n=a?{...a,direction:"backward"}:{direction:"backward"};return ld(e)(t,r,n)},OQ=mb(uo),gb=(e)=>(t,r,a)=>ld(e)(t,r,a),NQ=gb(uo),bb=(e)=>async(t,r,a)=>{let n=a?{...a,direction:"backward"}:{direction:"backward"};return ud(e)(t,r,n)},DQ=bb(uo),yb=(e)=>async(t,r,a)=>ud(e)(t,r,a),zQ=yb(uo),vb=(e)=>(t,r,a)=>{let n=a?{...a,direction:"backward"}:{direction:"backward"};return cd(e)(t,r,n)},LQ=vb(uo),Sb=(e)=>(t,r,a)=>cd(e)(t,r,a),PQ=Sb(uo),xb=(e)=>async(t,r,a)=>{let n=a?{...a,direction:"backward"}:{direction:"backward"};return fd(e)(t,r,n)},$Q=xb(uo),_b=(e)=>async(t,r,a)=>fd(e)(t,r,a),BQ=_b(uo);var Oo={};Vn(Oo,{base64:()=>sw,base64url:()=>wb,bigint:()=>pw,boolean:()=>gw,browserEmail:()=>VQ,cidrv4:()=>ow,cidrv6:()=>aw,cuid:()=>G_,cuid2:()=>V_,date:()=>cw,datetime:()=>dw,domain:()=>WQ,duration:()=>J_,e164:()=>uw,email:()=>ew,emoji:()=>tw,extendedDuration:()=>UQ,guid:()=>Q_,hex:()=>XQ,hostname:()=>KQ,html5Email:()=>FQ,httpProtocol:()=>lw,idnEmail:()=>GQ,integer:()=>mw,ipv4:()=>rw,ipv6:()=>nw,ksuid:()=>W_,lowercase:()=>vw,mac:()=>iw,md5_base64:()=>QQ,md5_base64url:()=>eee,md5_hex:()=>JQ,nanoid:()=>X_,null:()=>bw,number:()=>dm,rfc5322Email:()=>qQ,sha1_base64:()=>ree,sha1_base64url:()=>nee,sha1_hex:()=>tee,sha256_base64:()=>oee,sha256_base64url:()=>aee,sha256_hex:()=>iee,sha384_base64:()=>lee,sha384_base64url:()=>uee,sha384_hex:()=>see,sha512_base64:()=>fee,sha512_base64url:()=>dee,sha512_hex:()=>cee,string:()=>hw,time:()=>fw,ulid:()=>Y_,undefined:()=>yw,unicodeEmail:()=>eD,uppercase:()=>Sw,uuid:()=>bc,uuid4:()=>jQ,uuid6:()=>HQ,uuid7:()=>ZQ,xid:()=>K_});var G_=/^[cC][0-9a-z]{6,}$/,V_=/^[0-9a-z]+$/,Y_=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,K_=/^[0-9a-vA-V]{20}$/,W_=/^[A-Za-z0-9]{27}$/,X_=/^[a-zA-Z0-9_-]{21}$/,J_=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,UQ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Q_=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,bc=(e)=>{if(!e)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},jQ=bc(4),HQ=bc(6),ZQ=bc(7),ew=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,FQ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,qQ=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,eD=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,GQ=eD,VQ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,YQ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function tw(){return new RegExp(YQ,"u")}var rw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,iw=(e)=>{let t=Xo(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},ow=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,aw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sw=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wb=/^[A-Za-z0-9_-]*$/,KQ=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,WQ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,lw=/^https?$/,uw=/^\+[1-9]\d{6,14}$/,tD="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",cw=new RegExp(`^${tD}$`);function rD(e){return typeof e.precision==="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function fw(e){return new RegExp(`^${rD(e)}$`)}function dw(e){let t=rD({precision:e.precision}),r=["Z"];if(e.local)r.push("");if(e.offset)r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${r.join("|")})`;return new RegExp(`^${tD}T(?:${a})$`)}var hw=(e)=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},pw=/^-?\d+n?$/,mw=/^-?\d+$/,dm=/^-?\d+(?:\.\d+)?$/,gw=/^(?:true|false)$/i,bw=/^null$/i;var yw=/^undefined$/i;var vw=/^[^A-Z]*$/,Sw=/^[^a-z]*$/,XQ=/^[0-9a-fA-F]*$/;function hm(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function pm(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var JQ=/^[0-9a-fA-F]{32}$/,QQ=hm(22,"=="),eee=pm(22),tee=/^[0-9a-fA-F]{40}$/,ree=hm(27,"="),nee=pm(27),iee=/^[0-9a-fA-F]{64}$/,oee=hm(43,"="),aee=pm(43),see=/^[0-9a-fA-F]{96}$/,lee=hm(64,""),uee=pm(64),cee=/^[0-9a-fA-F]{128}$/,fee=hm(86,"=="),dee=pm(86);var Jr=Xe("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),iD={number:"number",bigint:"bigint",object:"date"},Eb=Xe("$ZodCheckLessThan",(e,t)=>{Jr.init(e,t);let r=iD[typeof t.value];e._zod.onattach.push((a)=>{let n=a._zod.bag,l=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(t.value<l)if(t.inclusive)n.maximum=t.value;else n.exclusiveMaximum=t.value}),e._zod.check=(a)=>{if(t.inclusive?a.value<=t.value:a.value<t.value)return;a.issues.push({origin:r,code:"too_big",maximum:typeof t.value==="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tb=Xe("$ZodCheckGreaterThan",(e,t)=>{Jr.init(e,t);let r=iD[typeof t.value];e._zod.onattach.push((a)=>{let n=a._zod.bag,l=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(t.value>l)if(t.inclusive)n.minimum=t.value;else n.exclusiveMinimum=t.value}),e._zod.check=(a)=>{if(t.inclusive?a.value>=t.value:a.value>t.value)return;a.issues.push({origin:r,code:"too_small",minimum:typeof t.value==="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),xw=Xe("$ZodCheckMultipleOf",(e,t)=>{Jr.init(e,t),e._zod.onattach.push((r)=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=(r)=>{if(typeof r.value!==typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof r.value==="bigint"?r.value%t.value===BigInt(0):N_(r.value,t.value)===0)return;r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),_w=Xe("$ZodCheckNumberFormat",(e,t)=>{Jr.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),a=r?"int":"number",[n,l]=B_[t.format];e._zod.onattach.push((s)=>{let d=s._zod.bag;if(d.format=t.format,d.minimum=n,d.maximum=l,r)d.pattern=mw}),e._zod.check=(s)=>{let d=s.value;if(r){if(!Number.isInteger(d)){s.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){if(d>0)s.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});else s.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}if(d<n)s.issues.push({origin:"number",input:d,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort});if(d>l)s.issues.push({origin:"number",input:d,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),ww=Xe("$ZodCheckBigIntFormat",(e,t)=>{Jr.init(e,t);let[r,a]=U_[t.format];e._zod.onattach.push((n)=>{let l=n._zod.bag;l.format=t.format,l.minimum=r,l.maximum=a}),e._zod.check=(n)=>{let l=n.value;if(l<r)n.issues.push({origin:"bigint",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort});if(l>a)n.issues.push({origin:"bigint",input:l,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Ew=Xe("$ZodCheckMaxSize",(e,t)=>{var r;Jr.init(e,t),(r=e._zod.def).when??(r.when=(a)=>{let n=a.value;return!Kl(n)&&n.size!==void 0}),e._zod.onattach.push((a)=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;if(t.maximum<n)a._zod.bag.maximum=t.maximum}),e._zod.check=(a)=>{let n=a.value;if(n.size<=t.maximum)return;a.issues.push({origin:sm(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Tw=Xe("$ZodCheckMinSize",(e,t)=>{var r;Jr.init(e,t),(r=e._zod.def).when??(r.when=(a)=>{let n=a.value;return!Kl(n)&&n.size!==void 0}),e._zod.onattach.push((a)=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(t.minimum>n)a._zod.bag.minimum=t.minimum}),e._zod.check=(a)=>{let n=a.value;if(n.size>=t.minimum)return;a.issues.push({origin:sm(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),kw=Xe("$ZodCheckSizeEquals",(e,t)=>{var r;Jr.init(e,t),(r=e._zod.def).when??(r.when=(a)=>{let n=a.value;return!Kl(n)&&n.size!==void 0}),e._zod.onattach.push((a)=>{let n=a._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=(a)=>{let n=a.value,l=n.size;if(l===t.size)return;let s=l>t.size;a.issues.push({origin:sm(n),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Aw=Xe("$ZodCheckMaxLength",(e,t)=>{var r;Jr.init(e,t),(r=e._zod.def).when??(r.when=(a)=>{let n=a.value;return!Kl(n)&&n.length!==void 0}),e._zod.onattach.push((a)=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;if(t.maximum<n)a._zod.bag.maximum=t.maximum}),e._zod.check=(a)=>{let n=a.value;if(n.length<=t.maximum)return;let s=lm(n);a.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Mw=Xe("$ZodCheckMinLength",(e,t)=>{var r;Jr.init(e,t),(r=e._zod.def).when??(r.when=(a)=>{let n=a.value;return!Kl(n)&&n.length!==void 0}),e._zod.onattach.push((a)=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(t.minimum>n)a._zod.bag.minimum=t.minimum}),e._zod.check=(a)=>{let n=a.value;if(n.length>=t.minimum)return;let s=lm(n);a.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Cw=Xe("$ZodCheckLengthEquals",(e,t)=>{var r;Jr.init(e,t),(r=e._zod.def).when??(r.when=(a)=>{let n=a.value;return!Kl(n)&&n.length!==void 0}),e._zod.onattach.push((a)=>{let n=a._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=(a)=>{let n=a.value,l=n.length;if(l===t.length)return;let s=lm(n),d=l>t.length;a.issues.push({origin:s,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),dd=Xe("$ZodCheckStringFormat",(e,t)=>{var r,a;if(Jr.init(e,t),e._zod.onattach.push((n)=>{let l=n._zod.bag;if(l.format=t.format,t.pattern)l.patterns??(l.patterns=new Set),l.patterns.add(t.pattern)}),t.pattern)(r=e._zod).check??(r.check=(n)=>{if(t.pattern.lastIndex=0,t.pattern.test(n.value))return;n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})});else(a=e._zod).check??(a.check=()=>{})}),Rw=Xe("$ZodCheckRegex",(e,t)=>{dd.init(e,t),e._zod.check=(r)=>{if(t.pattern.lastIndex=0,t.pattern.test(r.value))return;r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Iw=Xe("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=vw),dd.init(e,t)}),Ow=Xe("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Sw),dd.init(e,t)}),Nw=Xe("$ZodCheckIncludes",(e,t)=>{Jr.init(e,t);let r=Xo(t.includes),a=new RegExp(typeof t.position==="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push((n)=>{let l=n._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(a)}),e._zod.check=(n)=>{if(n.value.includes(t.includes,t.position))return;n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Dw=Xe("$ZodCheckStartsWith",(e,t)=>{Jr.init(e,t);let r=new RegExp(`^${Xo(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push((a)=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=(a)=>{if(a.value.startsWith(t.prefix))return;a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),zw=Xe("$ZodCheckEndsWith",(e,t)=>{Jr.init(e,t);let r=new RegExp(`.*${Xo(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push((a)=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=(a)=>{if(a.value.endsWith(t.suffix))return;a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function nD(e,t,r){if(e.issues.length)t.issues.push(...lo(r,e.issues))}var Lw=Xe("$ZodCheckProperty",(e,t)=>{Jr.init(e,t),e._zod.check=(r)=>{let a=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then((n)=>nD(n,r,t.property));nD(a,r,t.property);return}}),Pw=Xe("$ZodCheckMimeType",(e,t)=>{Jr.init(e,t);let r=new Set(t.mime);e._zod.onattach.push((a)=>{a._zod.bag.mime=t.mime}),e._zod.check=(a)=>{if(r.has(a.value.type))return;a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),$w=Xe("$ZodCheckOverwrite",(e,t)=>{Jr.init(e,t),e._zod.check=(r)=>{r.value=t.tx(r.value)}});class kb{constructor(e=[]){if(this.content=[],this.indent=0,this)this.args=e}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e==="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let r=e.split(`
@@ -475,6 +475,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
475
475
  `+K.slice(Pe,pe),Pe=pe+1;de=at}if($e+=`
476
476
  `,K.length-Pe>Ge&&de>Pe)$e+=K.slice(Pe,de)+`
477
477
  `+K.slice(de+1);else $e+=K.slice(Pe);return $e.slice(1)}function De(K){let Ge="",F=0;for(let te=0;te<K.length;F>=65536?te+=2:te++){F=be(K,te);let Pe=x[F];if(!Pe&&ie(F)){if(Ge+=K[te],F>=65536)Ge+=K[te+1]}else Ge+=Pe||C(F)}return Ge}function We(K,Ge,F){let te="",Pe=K.tag;for(let pe=0,de=F.length;pe<de;pe+=1){let at=F[pe];if(K.replacer)at=K.replacer.call(F,String(pe),at);if(ae(K,Ge,at,!1,!1)||typeof at>"u"&&ae(K,Ge,null,!1,!1)){if(te!=="")te+=","+(!K.condenseFlow?" ":"");te+=K.dump}}K.tag=Pe,K.dump="["+te+"]"}function Ye(K,Ge,F,te){let Pe="",pe=K.tag;for(let de=0,at=F.length;de<at;de+=1){let $e=F[de];if(K.replacer)$e=K.replacer.call(F,String(de),$e);if(ae(K,Ge+1,$e,!0,!0,!1,!0)||typeof $e>"u"&&ae(K,Ge+1,null,!0,!0,!1,!0)){if(!te||Pe!=="")Pe+=R(K,Ge);if(K.dump&&d===K.dump.charCodeAt(0))Pe+="-";else Pe+="- ";Pe+=K.dump}}K.tag=pe,K.dump=Pe||"[]"}function we(K,Ge,F){let te="",Pe=K.tag,pe=Object.keys(F);for(let de=0,at=pe.length;de<at;de+=1){let $e="";if(te!=="")$e+=", ";if(K.condenseFlow)$e+='"';let qe=pe[de],ht=F[qe];if(K.replacer)ht=K.replacer.call(F,qe,ht);if(!ae(K,Ge,qe,!1,!1))continue;if(K.dump.length>1024)$e+="? ";if($e+=K.dump+(K.condenseFlow?'"':"")+":"+(K.condenseFlow?"":" "),!ae(K,Ge,ht,!1,!1))continue;$e+=K.dump,te+=$e}K.tag=Pe,K.dump="{"+te+"}"}function Fe(K,Ge,F,te){let Pe="",pe=K.tag,de=Object.keys(F);if(K.sortKeys===!0)de.sort();else if(typeof K.sortKeys==="function")de.sort(K.sortKeys);else if(K.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let at=0,$e=de.length;at<$e;at+=1){let qe="";if(!te||Pe!=="")qe+=R(K,Ge);let ht=de[at],tt=F[ht];if(K.replacer)tt=K.replacer.call(F,ht,tt);if(!ae(K,Ge+1,ht,!0,!0,!0))continue;let nt=K.tag!==null&&K.tag!=="?"||K.dump&&K.dump.length>1024;if(nt)if(K.dump&&d===K.dump.charCodeAt(0))qe+="?";else qe+="? ";if(qe+=K.dump,nt)qe+=R(K,Ge);if(!ae(K,Ge+1,tt,!0,nt))continue;if(K.dump&&d===K.dump.charCodeAt(0))qe+=":";else qe+=": ";qe+=K.dump,Pe+=qe}K.tag=pe,K.dump=Pe||"{}"}function L(K,Ge,F){let te=F?K.explicitTypes:K.implicitTypes;for(let Pe=0,pe=te.length;Pe<pe;Pe+=1){let de=te[Pe];if((de.instanceOf||de.predicate)&&(!de.instanceOf||typeof Ge==="object"&&Ge instanceof de.instanceOf)&&(!de.predicate||de.predicate(Ge))){if(F)if(de.multi&&de.representName)K.tag=de.representName(Ge);else K.tag=de.tag;else K.tag="?";if(de.represent){let at=K.styleMap[de.tag]||de.defaultStyle,$e;if(a.call(de.represent)==="[object Function]")$e=de.represent(Ge,at);else if(n.call(de.represent,at))$e=de.represent[at](Ge,at);else throw new t("!<"+de.tag+'> tag resolver accepts not "'+at+'" style');K.dump=$e}return!0}}return!1}function ae(K,Ge,F,te,Pe,pe,de){if(K.tag=null,K.dump=F,!L(K,F,!1))L(K,F,!0);let at=a.call(K.dump),$e=te;if(te)te=K.flowLevel<0||K.flowLevel>Ge;let qe=at==="[object Object]"||at==="[object Array]",ht,tt;if(qe)ht=K.duplicates.indexOf(F),tt=ht!==-1;if(K.tag!==null&&K.tag!=="?"||tt||K.indent!==2&&Ge>0)Pe=!1;if(tt&&K.usedDuplicates[ht])K.dump="*ref_"+ht;else{if(qe&&tt&&!K.usedDuplicates[ht])K.usedDuplicates[ht]=!0;if(at==="[object Object]"){if(te&&Object.keys(K.dump).length!==0){if(Fe(K,Ge,K.dump,Pe),tt)K.dump="&ref_"+ht+K.dump}else if(we(K,Ge,K.dump),tt)K.dump="&ref_"+ht+" "+K.dump}else if(at==="[object Array]"){if(te&&K.dump.length!==0){if(K.noArrayIndent&&!de&&Ge>0)Ye(K,Ge-1,K.dump,Pe);else Ye(K,Ge,K.dump,Pe);if(tt)K.dump="&ref_"+ht+K.dump}else if(We(K,Ge,K.dump),tt)K.dump="&ref_"+ht+" "+K.dump}else if(at==="[object String]"){if(K.tag!=="?")Ie(K,K.dump,Ge,pe,$e)}else if(at==="[object Undefined]")return!1;else{if(K.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+at)}if(K.tag!==null&&K.tag!=="?"){let nt=encodeURI(K.tag[0]==="!"?K.tag.slice(1):K.tag).replace(/!/g,"%21");if(K.tag[0]==="!")nt="!"+nt;else if(nt.slice(0,18)==="tag:yaml.org,2002:")nt="!!"+nt.slice(18);else nt="!<"+nt+">";K.dump=nt+" "+K.dump}}return!0}function _e(K,Ge){let F=[],te=[];ot(K,F,te);let Pe=te.length;for(let pe=0;pe<Pe;pe+=1)Ge.duplicates.push(F[te[pe]]);Ge.usedDuplicates=Array(Pe)}function ot(K,Ge,F){if(K!==null&&typeof K==="object"){let te=Ge.indexOf(K);if(te!==-1){if(F.indexOf(te)===-1)F.push(te)}else if(Ge.push(K),Array.isArray(K))for(let Pe=0,pe=K.length;Pe<pe;Pe+=1)ot(K[Pe],Ge,F);else{let Pe=Object.keys(K);for(let pe=0,de=Pe.length;pe<de;pe+=1)ot(K[Pe[pe]],Ge,F)}}}function xe(K,Ge){Ge=Ge||{};let F=new T(Ge);if(!F.noRefs)_e(K,F);let te=K;if(F.replacer)te=F.replacer.call({"":te},"",te);if(ae(F,0,te,!0,!0))return F.dump+`
478
- `;return""}return yM.dump=xe,yM}var EG;function Wpe(){if(EG)return Ri;EG=1;let e=Ype(),t=Kpe();function r(a,n){return function(){throw Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}return Ri.Type=Xi(),Ri.Schema=TG(),Ri.FAILSAFE_SCHEMA=CG(),Ri.JSON_SCHEMA=DG(),Ri.CORE_SCHEMA=zG(),Ri.DEFAULT_SCHEMA=vM(),Ri.load=e.load,Ri.loadAll=e.loadAll,Ri.dump=t.dump,Ri.YAMLException=D0(),Ri.types={binary:$G(),float:NG(),map:MG(),null:RG(),pairs:UG(),set:jG(),timestamp:LG(),bool:IG(),int:OG(),merge:PG(),omap:BG(),seq:AG(),str:kG()},Ri.safeLoad=r("safeLoad","load"),Ri.safeLoadAll=r("safeLoadAll","loadAll"),Ri.safeDump=r("safeDump","dump"),Ri}var Xpe=Wpe(),HG=Gpe(Xpe),{Type:yh,Schema:Jpe,FAILSAFE_SCHEMA:Qpe,JSON_SCHEMA:eme,CORE_SCHEMA:tme,DEFAULT_SCHEMA:SM,load:ZG,loadAll:rme,dump:FG,YAMLException:nme,types:ime,safeLoad:ome,safeLoadAll:ame,safeDump:sme}=HG;function qG(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var lme=/^[+-]?(?:0|0b[01_]*[01]|0x[\da-fA-F_]*[\da-fA-F]|0[0-7_]*[0-7]|[1-9](?:[\d_]*\d)?|[1-9][\d_]*(?::[0-5]?\d)+)$/,ume=/^(?:[-+]?(?:0|[1-9][\d_]*)(?:\.[\d_]*)?(?:[eE][-+]?\d+)?|\.[\d_]+(?:[eE][-+]?\d+)?|[-+]?\d[\d_]*(?::[0-5]?\d)+\.[\d_]*|[-+]?\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN))$/;function VG(e){let t=Reflect.get(R2,"types"),r=qG(t)?t[e]:void 0;if(!(r instanceof yh))throw Error(`Required YAML type is unavailable: ${e}`);return r}function cme(e,t){let r=0,a=1;for(let n of e.split(":").reverse())r+=(t?Number.parseFloat(n):Number.parseInt(n,10))*a,a*=60;return r}function GG(e){let t=VG(e);return new yh(`tag:yaml.org,2002:${e}`,{kind:"scalar",resolve:(r)=>typeof r==="string"&&(e==="int"?lme:ume).test(r)&&!r.endsWith("_"),construct:(r)=>{let a=r.replace(/_/g,""),n=a.startsWith("-")?-1:1,l=a.replace(/^[+-]/,"");if(l.includes(":"))return n*cme(l,e==="float");if(e==="int"&&l==="0")return 0;if(e==="int"&&/^0[0-7]+$/.test(l))return n*Number.parseInt(l,8);return t.construct(a)},predicate:t.predicate??void 0,represent:t.represent??void 0,defaultStyle:t.defaultStyle??void 0})}var xM=VG("binary"),fme=new yh("tag:yaml.org,2002:binary",{kind:"scalar",resolve:(e)=>xM.resolve(e),construct:(e)=>{let t=xM.construct(e);if(!(t instanceof Uint8Array))throw Error("Invalid YAML binary result");return typeof Buffer>"u"?Array.from(t):Buffer.from(t)},predicate:(e)=>typeof Buffer<"u"&&Buffer.isBuffer(e),represent:xM.represent??void 0}),dme=new yh("tag:yaml.org,2002:str",{kind:"scalar",resolve:(e)=>typeof e==="string"&&e.includes(":"),construct:(e)=>e}),hme=SM.extend({implicit:[GG("int"),GG("float"),dme],explicit:[fme]});var mme=U.object({question:U.string().trim().min(1)}),YG=U.object({faqId:U.string().min(1),faqQuestion:U.string().min(1),answer:U.string().trim().min(1),sources:U.array(Wy).default([])}),gme=U.object({hit:YG.optional()});var KG=U.enum(["admin","trusted","public"]),bme=U.object({conversationId:U.string().min(1),message:U.string(),interfaceType:U.string().min(1),channelId:U.string().optional(),channelName:U.string().optional(),userPermissionLevel:KG}),WG=U.object({id:U.string().min(1),source:U.string().min(1),title:U.string().optional(),content:U.string().min(1),provenance:U.record(U.string(),U.unknown()).optional()}),yme=U.object({items:U.array(WG).default([])});var vme=U.strictObject({entityType:U.string().min(1),entityId:U.string().min(1)}),Sme=U.strictObject({startedAt:U.string().datetime(),retrieved:U.array(vme).max(50)});eo();var iC=U.discriminatedUnion("kind",[U.object({kind:U.literal("user"),userId:U.string().min(1),canonicalId:U.string().min(1).optional()}),U.object({kind:U.literal("external"),externalActorId:U.string().min(1)}),U.object({kind:U.literal("agent"),agentId:U.string().min(1)}),U.object({kind:U.literal("service"),serviceId:U.string().min(1)})]);var gbe=U.object({actor:iC}),AY=U.object({userId:U.string().min(1),personId:U.string().min(1),canonicalId:U.string().min(1).optional(),displayName:U.string().min(1),permissionLevel:U.enum(["admin","trusted","public"])}),bbe=U.object({principal:AY.nullable()});var oC=U.strictObject({name:U.string().min(1).optional(),address:U.email()}),ybe=U.strictObject({personId:U.string().min(1).max(200),displayName:U.string().trim().min(1).max(200),permissionLevel:U.enum(["admin","trusted","public"])}),vbe=U.strictObject({messageId:U.string().min(1),sourceRef:U.string().min(1),threadId:U.string().min(1).optional(),from:oC,replyTo:oC.optional(),to:U.array(oC),subject:U.string(),receivedAt:U.iso.datetime(),text:U.string(),html:U.string().min(1).optional(),headers:U.strictObject({listUnsubscribe:U.string().min(1).optional(),autoSubmitted:U.string().min(1).optional(),precedence:U.string().min(1).optional(),inReplyTo:U.string().min(1).optional(),references:U.array(U.string().min(1)).optional()}),sender:ybe.optional()});var Sbe=U.strictObject({permissionLevel:U.enum(["admin","trusted","public"])}),xbe=U.custom((e)=>typeof AbortSignal<"u"&&e instanceof AbortSignal),_be=U.strictObject({sourceRef:U.string().regex(/^imap:[a-f0-9]{64}$/),actor:Sbe,signal:xbe.optional()}),aC=U.strictObject({name:U.string().trim().min(1).max(300).optional(),address:U.email().max(320)}),wbe=U.strictObject({messageId:U.string().trim().min(1).max(2000),from:aC,replyTo:aC.optional(),to:U.array(aC).max(100),subject:U.string().max(1000),receivedAt:U.iso.datetime(),text:U.string().max(1e5),inReplyTo:U.string().trim().min(1).max(2000).optional(),references:U.array(U.string().trim().min(1).max(2000)).max(100),truncated:U.boolean()}),Ebe=U.discriminatedUnion("kind",[U.strictObject({kind:U.literal("available"),message:wbe}),U.strictObject({kind:U.literal("unavailable")})]);eo();var Tbe=U.object({url:U.string(),authToken:U.string().optional()});var kbe=U.object({success:U.boolean(),entityId:U.string().optional(),error:U.string().optional()});var V2=U.lazy(()=>U.union([U.null(),U.boolean(),U.number().finite().refine((e)=>!Number.isInteger(e)||Number.isSafeInteger(e),{message:"integer exceeds the JSON-safe range"}),U.string(),U.array(V2),U.record(U.string(),V2)])),Mbe=U.record(U.string(),V2);var Cbe=U.enum(["user","assistant"]);var MY=U.object({entityType:U.string().min(1),entityId:U.string().min(1),contentHash:U.string().min(1).optional()}),Rbe=U.object({rootJobId:U.string().min(1),causationId:U.string().min(1),projectionId:U.string().min(1).optional(),projectionLineage:U.array(U.string().min(1)),sourceEntity:MY.optional(),derivationDepth:U.number().int().nonnegative()}).superRefine((e,t)=>{if(e.derivationDepth!==e.projectionLineage.length)t.addIssue({code:"custom",path:["derivationDepth"],message:"Derivation depth must equal projection lineage length"});let r=e.projectionLineage.at(-1);if(e.projectionId!==r)t.addIssue({code:"custom",path:["projectionId"],message:"Current projection must equal the final projection lineage entry"})});var Ibe=U.object({entityType:U.string().min(1),entityId:U.string(),metadata:U.record(U.string(),U.unknown()).default({}),content:U.string().default("")}),Obe=U.object({relativePath:U.string(),leaf:U.object({start:U.number().int().nonnegative(),end:U.number().int().nonnegative()}).nullable(),owner:U.object({entityType:U.string(),id:U.string()}).optional(),writable:U.boolean().optional()});var Nbe=U.strictObject({waveId:U.string().trim().min(1),sourceTypes:U.array(U.string().trim().min(1)),changedTargetTypes:U.array(U.string().trim().min(1))});var CY=U.object({audiences:U.array(U.string()).optional(),positioning:U.string().optional()}),RY=U.object({summary:U.string().optional(),traits:U.array(U.string()).optional(),principles:U.array(U.string()).optional(),preferredTerms:U.array(U.string()).optional(),avoid:U.array(U.string()).optional()}),IY=U.object({artDirection:U.string().optional(),palette:U.array(U.string()).optional(),composition:U.string().optional(),mood:U.string().optional(),preferred:U.array(U.string()).optional(),avoid:U.array(U.string()).optional()}),Dbe=U.object({name:U.string().describe("Style guide name"),messaging:CY.optional(),voice:RY.optional(),visual:IY.optional()});var zbe=U.object({id:U.string().min(1),trigger:U.string().min(1),playbookId:U.string().min(1),once:U.boolean().default(!0),starterText:U.string().min(1),description:U.string().min(1).optional(),starterPrompt:U.string().min(1)}).strict();var Lbe=U.object({message:U.string().describe("Natural language response to the query"),summary:U.string().optional().describe("Brief summary if applicable"),topics:U.array(U.string()).optional().describe("Related topics mentioned"),sources:U.array(U.object({id:U.string(),type:U.string(),excerpt:U.string().optional(),relevance:U.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:U.record(U.string(),U.unknown()).optional()}).describe("defaultQueryResponse"),Pbe=U.object({message:U.string()}).describe("simpleTextResponse"),$be=U.object({success:U.boolean(),entityId:U.string().optional(),message:U.string()}).describe("createEntityResponse"),Bbe=U.object({success:U.boolean(),entityId:U.string(),changes:U.array(U.string()).optional(),message:U.string()}).describe("updateEntityResponse");var OY={recipientMissing:"Notification recipient missing",transportMissing:"Notification transport missing",deliveryFailed:"Notification delivery failed"},hNe=new RegExp(`^${OY.deliveryFailed}: ([a-z0-9_:.-]{1,80})$`);var NY=U.discriminatedUnion("type",[U.strictObject({type:U.literal("email"),address:U.email()})]),Ube=U.strictObject({recipient:NY.optional(),title:U.string().min(1),body:U.string().min(1),html:U.string().min(1).optional(),sensitivity:U.enum(["normal","secret"]).default("normal"),idempotencyKey:U.string().trim().min(1).max(200).optional()}),jbe=U.discriminatedUnion("status",[U.strictObject({status:U.literal("sent"),deliveryId:U.string().optional()}),U.strictObject({status:U.literal("failed")})]);var Hbe=U.strictObject({titles:U.array(U.string().trim().min(1).max(500)).max(20)});var Zbe=U.strictObject({types:U.array(U.string().trim().min(1))});var Fbe=U.strictObject({id:U.string().regex(/^[a-z0-9][a-z0-9-]{0,79}$/),title:U.string().trim().min(1).max(200),body:U.string().trim().min(1).max(20000)}),qbe=U.strictObject({noteId:U.string(),created:U.boolean()});var Gbe=U.object({id:U.string().min(1),title:U.string().min(1),sub:U.string().optional(),href:U.string().min(1),primary:U.boolean().optional(),keywords:U.array(U.string()).optional()});var DY=Zt(Hr(),1);var Ybe=Zt(Hr(),1);function Vbe(){if(typeof document>"u")return Jy;return document.querySelector("[data-web-chat-root]")?.getAttribute("data-chat-api-path")??Jy}function sC(e={}){return Qy({...e,apiPath:Vbe()})}var Bze=U.record(U.string(),U.unknown());var Hze=U.record(U.string(),U.unknown());var Kbe=Zt(Hr(),1);var yn=Zt(Pn(),1);var lLe=U.record(U.string(),U.unknown());var Wbe=U.object({id:U.string().min(1),title:U.string().min(1).optional(),source:U.string().min(1),url:U.string().min(1).optional(),entityType:U.string().min(1).optional(),entityId:U.string().min(1).optional(),excerpt:U.string().min(1).optional(),provenance:U.record(U.string(),U.unknown()).optional()}),Xbe=U.object({kind:U.literal("sources"),id:U.string().min(1),title:U.string().min(1).optional(),sources:U.array(Wbe).min(1)});function Jbe(e){return e.title??e.entityId??e.id}function Qbe(e){let t=[e.entityType??e.source];if(e.entityId)t.push(e.entityId);return t.join(" · ")}function eye(e){let t=U.looseObject({score:U.number().finite()}).safeParse(e.provenance);return t.success?t.data.score:void 0}function zY({data:e,openInNewTab:t=!1}){let r=Xbe.safeParse(e);if(!r.success)return yn.jsxDEV(tye,{type:"data-sources",data:e},void 0,!1,void 0,this);let a=r.data,n=a.sources.length;return yn.jsxDEV("details",{className:"web-chat-sources-card","aria-label":"Retrieved sources",children:[yn.jsxDEV("summary",{className:"web-chat-sources-summary",children:[yn.jsxDEV("span",{className:"web-chat-sources-kicker",children:"sources"},void 0,!1,void 0,this),yn.jsxDEV("span",{className:"web-chat-sources-count",children:`${n} retrieved`},void 0,!1,void 0,this),yn.jsxDEV("span",{className:"web-chat-data-part-chevron","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yn.jsxDEV("div",{className:"web-chat-sources-body",children:[yn.jsxDEV("header",{className:"web-chat-sources-header",children:yn.jsxDEV("h4",{children:a.title??"Retrieved sources"},void 0,!1,void 0,this)},void 0,!1,void 0,this),yn.jsxDEV("ol",{className:"web-chat-sources-list",children:a.sources.map((l)=>{let s=Jbe(l),d=eye(l),b=l.url?yn.jsxDEV("a",{href:l.url,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,children:s},void 0,!1,void 0,this):yn.jsxDEV("span",{children:s},void 0,!1,void 0,this);return yn.jsxDEV("li",{className:"web-chat-source-item",...{[$d]:l.id},children:[yn.jsxDEV("div",{className:"web-chat-source-title",children:b},void 0,!1,void 0,this),yn.jsxDEV("div",{className:"web-chat-source-meta",children:[yn.jsxDEV("span",{children:Qbe(l)},void 0,!1,void 0,this),d!==void 0?yn.jsxDEV("span",{children:`score ${d.toFixed(2)}`},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),l.excerpt?yn.jsxDEV("p",{className:"web-chat-source-excerpt",children:l.excerpt},void 0,!1,void 0,this):null]},l.id,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function tye({data:e,type:t}){return yn.jsxDEV("details",{className:"web-chat-data-part",children:[yn.jsxDEV("summary",{className:"web-chat-data-part-header",children:[t,yn.jsxDEV("span",{className:"web-chat-data-part-chevron","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yn.jsxDEV("div",{className:"web-chat-data-part-body",children:yn.jsxDEV("pre",{children:JSON.stringify(e,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var fi=Zt(Pn(),1);function Y0({children:e}){return fi.jsxDEV(M2,{className:"web-chat-markdown-response",mode:"static",controls:!1,skipHtml:!0,plugins:{},allowedElements:["p","a","strong","em","ul","ol","li","blockquote","pre","code","h1","h2","h3","h4","hr","br"],components:{a:({href:t,children:r})=>fi.jsxDEV("a",{href:t&&/^(https?:\/\/|\/[^/])/i.test(t)?t:void 0,rel:"noopener noreferrer",target:"_blank",children:r},void 0,!1,void 0,this)},children:e},void 0,!1,void 0,this)}function rye({card:e,owner:t}){let r=e.sources.flatMap((a)=>a.brain?[a.brain.name]:[]);return fi.jsxDEV("ul",{className:"brain-box-sources","aria-label":r.length?`Sources, ${Zy(t,r)}`:"Sources",children:[r.length>0&&fi.jsxDEV("li",{className:"brain-box-answered-by",children:Zy(t,r)},void 0,!1,void 0,this),e.sources.map((a)=>fi.jsxDEV("li",{...{[$d]:a.id},...a.brain?{"data-ask-brain":a.brain.name}:{},children:[fi.jsxDEV("span",{className:"brain-box-source-mark","aria-hidden":"true"},void 0,!1,void 0,this),a.brain&&fi.jsxDEV("b",{className:"brain-box-source-brain",children:a.brain.name},void 0,!1,void 0,this),a.url?fi.jsxDEV("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:a.title},void 0,!1,void 0,this):fi.jsxDEV("span",{children:a.title},void 0,!1,void 0,this)]},a.id,!0,void 0,this))]},void 0,!0,void 0,this)}function K0({messages:e,assistantLabel:t="Brain",sourceLinks:r=!1}){return fi.jsxDEV("section",{className:"guest-messages","aria-label":"Conversation",children:e.map((a)=>fi.jsxDEV("article",{className:`guest-message guest-${a.role}`,children:[fi.jsxDEV("h2",{children:a.role==="user"?"You":t},void 0,!1,void 0,this),a.role==="user"?fi.jsxDEV("p",{children:a.content},void 0,!1,void 0,this):fi.jsxDEV(Y0,{children:a.content},void 0,!1,void 0,this),a.role==="assistant"&&a.askedBefore&&fi.jsxDEV("p",{className:"brain-box-asked-before",children:"Asked before"},void 0,!1,void 0,this),a.role==="assistant"&&Fd(a.cards).map((n)=>r?fi.jsxDEV(rye,{card:n,owner:t},n.id,!1,void 0,this):fi.jsxDEV(zY,{data:n,openInNewTab:!0},n.id,!1,void 0,this))]},a.id,!0,void 0,this))},void 0,!1,void 0,this)}var qt=Zt(Pn(),1);function LY(e){let{session:t,messages:r,draft:a,busy:n,pending:l,expired:s,id:d}=e,b=jm({resetKey:r.length===0,contentKey:r});return qt.jsxDEV("div",{className:"guest-ask",children:qt.jsxDEV("section",{"aria-label":"Public Ask",children:[qt.jsxDEV("div",{className:"guest-introduction",children:qt.jsxDEV("div",{children:[qt.jsxDEV("p",{className:"guest-eyebrow",children:"Public knowledge · Your questions"},void 0,!1,void 0,this),qt.jsxDEV("h1",{children:["Ask ",e.name,"."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),qt.jsxDEV("section",{className:"guest-card","aria-label":"Public conversation",children:[qt.jsxDEV("header",{className:"guest-card-header",children:[qt.jsxDEV("span",{className:"guest-brain-name",children:e.siteLabel},void 0,!1,void 0,this),qt.jsxDEV("span",{className:"guest-scope",children:"Public knowledge"},void 0,!1,void 0,this),t&&qt.jsxDEV("details",{className:"guest-conversation-menu",ref:e.conversationMenuRef,children:[qt.jsxDEV("summary",{"aria-label":"Conversation actions",children:"···"},void 0,!1,void 0,this),qt.jsxDEV("nav",{className:"guest-tools","aria-label":"Conversation controls",children:[qt.jsxDEV("label",{children:["Conversations in this tab"," ",qt.jsxDEV("select",{"aria-label":"Previous conversation",value:d??"",disabled:n,onChange:(y)=>e.onRestore(y.target.value),children:[qt.jsxDEV("option",{value:"",children:"Choose conversation"},void 0,!1,void 0,this),e.conversations.map((y,v)=>qt.jsxDEV("option",{value:y,children:["Conversation ",v+1]},y,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV("button",{disabled:n,onClick:e.onNewConversation,children:"New conversation"},void 0,!1,void 0,this),qt.jsxDEV("button",{disabled:!d||n,onClick:e.onAskDelete,children:"Delete conversation"},void 0,!1,void 0,this),qt.jsxDEV("button",{disabled:!d||n,onClick:e.onReloadHistory,children:"Reload history"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV("div",{className:"guest-transcript-scroll",ref:b.ref,role:"region","aria-label":"Conversation transcript",tabIndex:0,onScroll:b.onScroll,children:[e.deleting&&qt.jsxDEV("div",{className:"guest-delete",role:"alert",children:[qt.jsxDEV("p",{children:"Delete this conversation from the Brain? This does not erase provider records or cancel remote work."},void 0,!1,void 0,this),qt.jsxDEV("button",{disabled:n,onClick:e.onConfirmDelete,children:"Confirm deletion"},void 0,!1,void 0,this),qt.jsxDEV("button",{disabled:n,onClick:e.onCancelDelete,children:"Keep conversation"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!r.length&&t?.canSend&&!l&&!!(t.presentation?.title??t.presentation?.introduction??t.presentation?.topics?.length)&&qt.jsxDEV("div",{className:"guest-empty",children:[t.presentation.title&&qt.jsxDEV("h2",{children:t.presentation.title},void 0,!1,void 0,this),t.presentation.introduction&&qt.jsxDEV(Y0,{children:t.presentation.introduction},void 0,!1,void 0,this),qt.jsxDEV("div",{className:"guest-topics",children:(t.presentation.topics??[]).map((y,v)=>qt.jsxDEV("button",{className:"guest-topic",type:"button",onClick:()=>e.onTopic(y),children:[qt.jsxDEV("span",{"aria-hidden":"true",children:["0",v+1]},void 0,!0,void 0,this),y,qt.jsxDEV("span",{"aria-hidden":"true",children:"↗"},void 0,!1,void 0,this)]},y,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!r.length&&!t?.canSend&&!n&&!l&&qt.jsxDEV("div",{className:"guest-empty guest-unavailable",children:[qt.jsxDEV("p",{className:"guest-eyebrow",children:"Public knowledge"},void 0,!1,void 0,this),qt.jsxDEV("h2",{children:"Asking is unavailable right now."},void 0,!1,void 0,this),qt.jsxDEV("p",{children:"No new question has been sent. This page does not renew an expired or exhausted allowance."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV(K0,{messages:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV("p",{className:"guest-status",role:"status","aria-live":"polite",children:e.status},void 0,!1,void 0,this),t?.canSend&&qt.jsxDEV("form",{className:"guest-composer",onSubmit:(y)=>{y.preventDefault(),b.follow(),e.onSubmit()},children:[qt.jsxDEV("label",{className:"guest-sr",htmlFor:"guest-question",children:"Your question"},void 0,!1,void 0,this),qt.jsxDEV("textarea",{ref:e.textareaRef,id:"guest-question",value:a,onInput:(y)=>e.onDraftChange(y.currentTarget.value),maxLength:t.messageCharacters,disabled:n||!!l||s,placeholder:r.length?"Follow that thought…":"Start with a question…",rows:2},void 0,!1,void 0,this),qt.jsxDEV("div",{className:"guest-compose-actions",children:[qt.jsxDEV("small",{children:[a.length," / ",t.messageCharacters]},void 0,!0,void 0,this),n?qt.jsxDEV("button",{type:"button",onClick:e.onStopWaiting,children:"Stop waiting"},void 0,!1,void 0,this):l?qt.jsxDEV("button",{type:"button",disabled:!l.id,onClick:e.onRetry,children:l.id?"Check / retry same request":"Recovery unavailable"},void 0,!1,void 0,this):qt.jsxDEV("button",{className:"guest-send",type:"submit",disabled:!a.trim()||s,children:[qt.jsxDEV("span",{className:"guest-sr",children:"Ask the Brain"},void 0,!1,void 0,this),qt.jsxDEV("span",{"aria-hidden":"true",children:"↑"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV("div",{className:"guest-below",children:t&&qt.jsxDEV("details",{className:"guest-disclosure",children:[qt.jsxDEV("summary",{children:"Privacy and limits"},void 0,!1,void 0,this),qt.jsxDEV("p",{children:t.notice},void 0,!1,void 0,this),qt.jsxDEV("p",{children:["Provider: ",t.provider]},void 0,!0,void 0,this),qt.jsxDEV("p",{children:["Visitor access expires"," ",new Date(t.expiresAt).toLocaleString(),". Conversation retention: idle limit ",t.retention.idleSeconds/3600," ","hours; maximum age ",t.retention.maxAgeSeconds/3600," ","hours."]},void 0,!0,void 0,this),qt.jsxDEV("p",{children:t.deletionLimitations},void 0,!1,void 0,this),qt.jsxDEV("p",{children:"Your messages are not automatically added to the Brain’s knowledge. This chat cannot edit, publish or administer the Brain."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Au=Zt(Hr(),1),QY=Zt(cb(),1);var PY=Zt(Hr(),1),Eh=Zt(Pn(),1);function $Y(e){let{draft:t,over:r,welcome:a,busy:n,copy:l}=e;return PY.useLayoutEffect(()=>{let s=e.inputRef.current;if(!s)return;s.style.height="40px",s.style.height=`${Math.min(s.scrollHeight||40,window.innerWidth<=650?72:112)}px`},[t]),Eh.jsxDEV("form",{onSubmit:(s)=>{s.preventDefault(),e.onSubmit()},children:[Eh.jsxDEV("div",{className:"prompt-row",children:[Eh.jsxDEV("textarea",{ref:e.inputRef,rows:1,value:t,"aria-label":a?l.title||"Your question":"Your follow-up",...r>0?{"aria-describedby":"brain-chat-notice"}:{},"aria-invalid":r>0,placeholder:a?l.inputHint:"Ask a follow-up…",onInput:(s)=>e.setDraft(s.currentTarget.value),onFocus:e.onFocus,onTouchStart:e.onLand,onMouseDown:e.onLand,onKeyDown:(s)=>{if(s.key==="Enter"&&!s.shiftKey&&!s.nativeEvent.isComposing)s.preventDefault(),e.onSubmit()}},void 0,!1,void 0,this),Eh.jsxDEV("button",{className:"send",type:"submit","aria-label":"Send question",disabled:!e.canSend||n||r>0||!t.trim(),children:"↑"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r>0&&Eh.jsxDEV("p",{id:"brain-chat-notice",className:"brain-box-hint invalid",children:[r," characters over the limit."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Y2=Zt(Hr(),1),go=Zt(Pn(),1),nye={incomplete:{title:"The connection dropped.",body:"Your answer may still be finishing. Checking won’t repeat your question.",fresh:!0},uncertain:{title:"Connection lost.",body:"We can’t confirm whether your question was received. It’s still here, and we won’t send it again.",fresh:!0},limit:{title:"No more questions can be sent right now.",body:"A chat limit was reached, or another question is still running. Your visible text stays here."},unavailable:{title:"Chat isn’t available right now.",body:"You can keep writing. Checking availability won’t send your question.",availability:!0},expired:{title:"This conversation is unavailable.",body:"You can still read what’s visible here. Starting separately won’t restore or repeat the previous question.",fresh:!0},ended:{title:"The previous request ended without a complete answer.",body:"Your visible text is preserved. You can write a new question."}};function BY(e){let t=nye[e.state];if(!t)return null;return go.jsxDEV("section",{className:"brain-box-notice",role:"status","aria-live":"polite",children:[go.jsxDEV("h3",{children:t.title},void 0,!1,void 0,this),go.jsxDEV("p",{children:t.body},void 0,!1,void 0,this),go.jsxDEV("div",{className:"brain-box-actions",children:[e.canCheck&&go.jsxDEV("button",{type:"button",className:"brain-box-action",disabled:e.busy,onClick:e.onCheck,children:"Check answer"},void 0,!1,void 0,this),t.fresh&&go.jsxDEV("button",{ref:e.freshButtonRef,type:"button",className:"brain-box-action",disabled:e.busy,onClick:e.onFresh,children:"New question"},void 0,!1,void 0,this),t.availability&&go.jsxDEV("button",{type:"button",className:"brain-box-action",disabled:e.busy,onClick:e.onAvailability,children:"Check availability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function UY(e){let t=Y2.useRef(null);return Y2.useLayoutEffect(()=>{t.current?.focus({preventScroll:!0});let r=e.regionRef.current;if(r)r.scrollTop=r.scrollHeight},[]),go.jsxDEV("section",{className:"brain-box-notice",children:[go.jsxDEV("h3",{children:"Start a separate question?"},void 0,!1,void 0,this),go.jsxDEV("p",{children:"The earlier one may still finish. We’ll check availability first. This won’t cancel, delete or repeat it, or reset any limit."},void 0,!1,void 0,this),go.jsxDEV("div",{className:"brain-box-actions",children:[go.jsxDEV("button",{ref:t,type:"button",className:"brain-box-action",disabled:e.busy,onClick:e.onContinue,children:"Continue"},void 0,!1,void 0,this),go.jsxDEV("button",{className:"brain-box-quiet",disabled:e.busy,type:"button",onClick:e.onBack,children:"Go back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ku=Zt(Pn(),1);function jY(e){return ku.jsxDEV("section",{className:"guest-message guest-assistant brain-box-pending","aria-hidden":"true",children:[ku.jsxDEV("h2",{children:e.owner??"Brain"},void 0,!1,void 0,this),ku.jsxDEV("p",{className:"brain-box-waiting",children:[ku.jsxDEV("span",{className:"brain-box-dots",children:[ku.jsxDEV("i",{},void 0,!1,void 0,this),ku.jsxDEV("i",{},void 0,!1,void 0,this),ku.jsxDEV("i",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),"Looking through the published work"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Aa=Zt(Pn(),1);function HY(e){let{copy:t,welcome:r}=e;return Aa.jsxDEV(Aa.Fragment,{children:[r&&(t.title||t.notice||t.topics.length>0)&&Aa.jsxDEV("div",{className:"brain-box-welcome",children:[t.title&&Aa.jsxDEV("h2",{id:"brain-chat-heading",className:"display",children:t.title},void 0,!1,void 0,this),t.notice&&Aa.jsxDEV("div",{className:"chat-notice",children:Aa.jsxDEV(Y0,{children:t.notice},void 0,!1,void 0,this)},void 0,!1,void 0,this),Aa.jsxDEV("div",{className:"hints","aria-label":t.topicsLabel,children:t.topics.map((a,n)=>Aa.jsxDEV("button",{type:"button",onClick:()=>e.onTopic(a),children:a},`${n}:${a}`,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(!r||!t.title)&&Aa.jsxDEV("h2",{id:"brain-chat-heading",className:"brain-box-sr-only",children:t.title||"Ask"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K2=Zt(Hr(),1);function ZY(e,t){let r=K2.useRef(t.at(-1)?.role);K2.useLayoutEffect(()=>{let a=r.current;if(r.current=t.at(-1)?.role,a!=="user"||t.at(-1)?.role!=="assistant")return;let n=e.ref.current;if(!n||n.scrollHeight<=n.clientHeight)return;let l=[...n.querySelectorAll(".guest-user")].at(-1);if(l)e.showFrom(l)},[t])}var Th=Zt(Hr(),1);function FY(e){let[t,r]=Th.useState(),[a,n]=Th.useState(),[l,s]=Th.useState(null);return Th.useEffect(()=>{let d=e.current?.closest(`[${Ld}]`),b=(y)=>{let v=d?.getAttribute(y)?.trim();if(!v)return;return v};r(b(qy)),n(b(Gy)),s(e.current?.closest(".talk")?.querySelector(".ui-bar")??null)},[]),{owner:t,placeholder:a,header:l}}var qY=Zt(Hr(),1);function GY(e,t){qY.useEffect(()=>{let r=window.visualViewport,a=()=>{if(e.current?.closest(".talk")?.style.setProperty("--chat-viewport-height",`${r?.height??window.innerHeight}px`),document.activeElement===t.current&&window.innerWidth<=650&&!e.current?.closest(`[${ba}]`))e.current?.scrollIntoView({block:"end"})};return a(),r?.addEventListener("resize",a),window.addEventListener("resize",a),()=>{r?.removeEventListener("resize",a),window.removeEventListener("resize",a)}},[])}var vi=Zt(Hr(),1);var iye=["position","top","left","right"];function lC(e=null){let t=document.documentElement;if(t.hasAttribute(iu))return;let r=Math.round(e??window.scrollY);t.setAttribute(iu,String(r));let a=document.body.style;a.position="fixed",a.top=`${-r}px`,a.left="0",a.right="0"}function VY(){let e=document.documentElement,t=e.getAttribute(iu);if(t===null)return;e.removeAttribute(iu);for(let r of iye)document.body.style.removeProperty(r);window.scrollTo(0,Number(t)||0)}function YY(){let e=document.documentElement.getAttribute(iu);return e===null?Math.round(window.scrollY):Number(e)||0}function KY(e){if(document.body.style.visibility="hidden",e.style.visibility="visible",document.querySelector(`style[${jd}]`))return;let t=document.createElement("style");t.setAttribute(jd,""),t.textContent=Yy,document.head.append(t)}function uC(e){document.body.style.removeProperty("visibility"),e.style.removeProperty("visibility"),document.querySelector(`style[${jd}]`)?.remove()}var oye=0.8;function WY(e,t){let[r,a]=vi.useState(()=>window.matchMedia(Bd).matches),[n,l]=vi.useState(!1),[s,d]=vi.useState(!1),b=vi.useRef(!1),y=vi.useRef(null),v=vi.useCallback(()=>{y.current=window.scrollY},[]),g=()=>e.current?.closest(`[${Ld}]`)??null;vi.useLayoutEffect(()=>{let I=window.matchMedia(Bd),O=()=>a(I.matches);if(I.addEventListener("change",O),I.matches&&g()?.hasAttribute(ba))l(!0);return()=>I.removeEventListener("change",O)},[]),vi.useEffect(()=>{if(!r)l(!1)},[r]);let _=vi.useCallback(()=>{if(!window.matchMedia(Bd).matches)return;lC(y.current),y.current=null,d(!1),l(!0)},[]),A=vi.useCallback(()=>{if(d(!0),b.current)b.current=!1,window.history.back()},[]);return vi.useLayoutEffect(()=>{let I=g();if(!s)return;let O=()=>{d(!1),l(!1)};if(!I)return O();I.setAttribute(Ud,""),uC(I);let N=window.getComputedStyle(I).animationName;if(!N||N==="none")return O();return I.addEventListener("animationend",O,{once:!0}),()=>{I.removeEventListener("animationend",O),I.removeAttribute(Ud)}},[s]),vi.useLayoutEffect(()=>{let I=g();if(!I)return;if(!n){I.removeAttribute(ba),I.removeAttribute(Ec);return}I.setAttribute(ba,""),lC();let O=!0,N=()=>{if(O)KY(I)},P="getAnimations"in I?I.getAnimations():[];if(P.length===0)N();else Promise.all(P.map((J)=>J.finished)).then(N,N);if(!b.current)b.current=!0,window.history.pushState({[Vy]:{y:YY()}},"");let j=window.visualViewport,Z=()=>{if(document.activeElement!==t.current){I.style.removeProperty("--ask-viewport-height"),I.style.removeProperty("--ask-viewport-top"),I.removeAttribute(Ec);return}let J=j?.height??window.innerHeight;I.style.setProperty("--ask-viewport-height",`${J}px`),I.style.setProperty("--ask-viewport-top",`${j?.offsetTop??0}px`),I.toggleAttribute(Ec,J<window.innerHeight*oye)},V=()=>{b.current=!1,d(!0)},W=(J)=>{if(J.key==="Escape")A()};return Z(),j?.addEventListener("resize",Z),j?.addEventListener("scroll",Z),window.addEventListener("resize",Z),document.addEventListener("focusin",Z),document.addEventListener("focusout",Z),window.addEventListener("popstate",V),document.addEventListener("keydown",W),()=>{j?.removeEventListener("resize",Z),j?.removeEventListener("scroll",Z),window.removeEventListener("resize",Z),document.removeEventListener("focusin",Z),document.removeEventListener("focusout",Z),window.removeEventListener("popstate",V),document.removeEventListener("keydown",W),O=!1,uC(I),VY(),I.removeAttribute(ba),I.removeAttribute(Ud),I.style.removeProperty("--ask-viewport-height"),I.style.removeProperty("--ask-viewport-top"),I.removeAttribute(Ec)}},[n,A]),{narrow:r,open:n,show:_,close:A,land:v}}var W0=Zt(Hr(),1);function XY(e,t){let{busy:r,canSend:a,onSend:n,compact:l}=t,s=W0.useRef(t.submitOnReady),d=W0.useRef(!0);W0.useEffect(()=>{if(r)return;if(d.current){if(d.current=!1,document.activeElement===document.body&&!l)e.current?.focus({preventScroll:!0})}if(!s.current)return;if(s.current=!1,a)n()},[r,a,n])}var W2=Zt(Hr(),1),aye=20000;function JY(e,t=aye){let[r,a]=W2.useState(!1);return W2.useEffect(()=>{if(a(!1),!e)return;let n=window.setTimeout(()=>a(!0),t);return()=>window.clearTimeout(n)},[e,t]),e&&r}var hn=Zt(Pn(),1);function sye(e,t){if(!e)return"";if(t==="sending")return"Sending your question…";if(t==="working")return"Working on your question…";return"Connecting to chat…"}function eK(e){let{copy:t,state:r,messages:a,earlier:n,draft:l,busy:s,session:d}=e,b=Au.useRef(null),y=Au.useRef(null),v=Au.useRef(null),[g,_]=Au.useState(!1),A=Au.useMemo(()=>({}),[a,n,r,s,g,e.actionNotice]),I=jm({resetKey:null,contentKey:A}),O=s&&(r==="sending"||r==="working"),N=JY(O,e.stopWaitingAfterMs);GY(b,y);let P=WY(b,y),j=P.narrow&&!P.open,{owner:Z,placeholder:V,header:W}=FY(b);XY(y,{submitOnReady:e.submitOnReady===!0,busy:s,canSend:e.canSend,onSend:e.onSend,compact:j}),ZY(I,a);let J=d?.messageCharacters??4000,ve=l.length-J,ce=a.length===0&&n.length===0&&(r==="ready"||r==="connecting");function Me(){if(!e.canSend||s||ve>0||!l.trim())return;if(I.follow(),e.onSend(),P.open)y.current?.blur();else y.current?.focus({preventScroll:!0})}let Y=e.canContinue&&!P.open&&hn.jsxDEV("div",{className:"brain-box-header-actions",children:hn.jsxDEV("a",{href:"/ask",onClick:e.onContinue,children:"Full chat ↗"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Te=()=>{if(P.open)return hn.jsxDEV("div",{className:"brain-box-sheet-head",children:[hn.jsxDEV("span",{className:"brain-box-sheet-title brain-box-sr-only",children:Z?`Ask ${Z}`:"Conversation"},void 0,!1,void 0,this),hn.jsxDEV("button",{className:"brain-box-close",type:"button","aria-label":"Close conversation",onClick:P.close,children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!Y)return null;return W?QY.createPortal(Y,W):Y};return hn.jsxDEV("div",{className:`brain-guest-box${P.open?" is-sheet":""}${j?" is-compact":""}`,ref:b,children:[Te(),hn.jsxDEV("div",{ref:I.ref,className:`brain-box-scroll${ce?" is-welcome":""}`,role:"region","aria-label":"Conversation and chat information",tabIndex:0,onScroll:I.onScroll,children:[hn.jsxDEV("div",{className:"brain-box-dock",...{[Ky]:""}},void 0,!1,void 0,this),hn.jsxDEV(HY,{copy:t,welcome:ce,onTopic:(f)=>{e.setDraft(f),y.current?.focus()}},void 0,!1,void 0,this),n.length>0&&hn.jsxDEV("details",{className:"brain-box-earlier",children:[hn.jsxDEV("summary",{children:"Earlier text · not resent"},void 0,!1,void 0,this),hn.jsxDEV(K0,{messages:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this),hn.jsxDEV(K0,{messages:a,sourceLinks:!0,...Z?{assistantLabel:Z}:{}},void 0,!1,void 0,this),O&&a.at(-1)?.role==="user"&&hn.jsxDEV(jY,{owner:Z},void 0,!1,void 0,this),hn.jsxDEV("p",{className:`brain-box-activity${O||s&&r==="connecting"?" brain-box-sr-only":""}${r==="complete"&&!s?" is-complete":""}`,role:"status","aria-live":"polite",children:sye(s,r)},void 0,!1,void 0,this),hn.jsxDEV(BY,{state:r,busy:s,canCheck:e.canCheck,freshButtonRef:v,onCheck:()=>{e.onCheck()},onAvailability:()=>{e.onAvailability()},onFresh:()=>_(!0)},void 0,!1,void 0,this),N&&hn.jsxDEV("button",{className:"brain-box-quiet",type:"button",onClick:e.onStopWaiting,children:"Stop waiting"},void 0,!1,void 0,this),g&&hn.jsxDEV(UY,{busy:s,regionRef:I.ref,onContinue:()=>{e.onFresh().then((f)=>{if(f)_(!1),y.current?.focus()})},onBack:()=>{_(!1),v.current?.focus()}},void 0,!1,void 0,this),e.actionNotice&&hn.jsxDEV("p",{className:"brain-box-notice",role:"status",children:e.actionNotice},void 0,!1,void 0,this)]},void 0,!0,void 0,this),hn.jsxDEV("div",{className:"brain-box-bottom",children:[j&&a.length>0&&hn.jsxDEV("button",{className:"brain-box-resume",type:"button",onClick:P.show,children:[hn.jsxDEV("span",{className:"brain-box-resume-dot","aria-hidden":"true"},void 0,!1,void 0,this),"Continue conversation"]},void 0,!0,void 0,this),hn.jsxDEV($Y,{copy:V?{...t,inputHint:V}:t,inputRef:y,onFocus:P.show,onLand:P.land,draft:l,setDraft:e.setDraft,over:ve,welcome:ce,busy:s,canSend:e.canSend,onSubmit:Me},void 0,!1,void 0,this),I.awayFromLatest&&!j&&hn.jsxDEV("button",{className:"brain-box-latest",type:"button",onClick:I.jumpToLatest,children:"↓ Rest of the answer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}async function tK(e,t){let r=navigator;if(!r.locks)throw Error("Browser session coordination unavailable");return r.locks.request("brain-ask-visitor-session",{signal:t},()=>(t.throwIfAborted(),e.openGuestSession()))}var Po=Zt(Hr(),1);function rK(){let[e,t]=Po.useState(!0),[r,a]=Po.useState("Connecting…"),[n,l]=Po.useState("connecting"),[s,d]=Po.useState(),b=Po.useRef(!0),y=Po.useRef(!0),v=Po.useCallback(()=>{if(b.current=!1,y.current)t(!1)},[]),g=Po.useCallback(async(I,O)=>{try{await I()}catch(N){O?.(N)}finally{v()}},[v]),_=Po.useCallback(async(I,O)=>{if(b.current)return;b.current=!0,t(!0),await g(I,O)},[g]),A=Po.useCallback(()=>b.current,[]);return{busy:e,status:r,boxState:n,boxNotice:s,setStatus:a,setBoxState:l,setBoxNotice:d,mounted:y,locked:A,run:_,runBoot:g}}var ys=Zt(Hr(),1),J2="brain-ask-conversation",nK=`${J2}-list`,lye=/^guest-[a-f0-9]{64}$/;function X2(e,t){try{let r=JSON.parse(sessionStorage.getItem(nK)??"[]"),a=Array.isArray(r)?r.filter((n)=>typeof n==="string"&&lye.test(n)&&n!==t):[];if(e&&!a.includes(e))a.push(e);return sessionStorage.setItem(nK,JSON.stringify(a)),a}catch{return e?[e]:[]}}function X0(e){try{if(e!==void 0)if(e)sessionStorage.setItem(J2,e);else sessionStorage.removeItem(J2);return sessionStorage.getItem(J2)??void 0}catch{return}}function iK(){let[e,t]=ys.useState(),[r,a]=ys.useState([]),n=ys.useCallback(()=>{a(X2());let v=X0();if(v)t(v);return v},[]),l=ys.useCallback((v)=>{t(v),X0(v),a(X2(v))},[]),s=ys.useCallback((v)=>{a(X2(v))},[]),d=ys.useCallback(()=>{X0(""),t(void 0)},[]),b=ys.useCallback((v)=>{X0(""),a(X2(void 0,v)),t(void 0)},[]),y=ys.useCallback((v)=>X0()===v,[]);return{id:e,conversations:r,adopt:n,remember:l,note:s,clear:d,forget:b,isSaved:y}}var Mu=Zt(Hr(),1);function oK(e){let{open:t}=e,[r,a]=Mu.useState(),[n,l]=Mu.useState(!1),s=Mu.useCallback(async(v)=>{let g=await t(v);return a(g),g},[t]),d=Mu.useCallback(()=>r!==void 0&&Date.now()>=r.expiresAt,[r]),b=Mu.useCallback(()=>l(!0),[]),y=Mu.useCallback(()=>l(!1),[]);return{session:r,expired:n,canSend:!!r?.canSend&&!n,open:s,hasElapsed:d,markExpired:b,clearExpired:y}}var ll=Zt(Hr(),1);function aK(){let[e,t]=ll.useState([]),[r,a]=ll.useState([]),n=ll.useRef(void 0),l=ll.useCallback((b)=>{t(b)},[]),s=ll.useCallback(()=>{a((b)=>[...b,...e]),t([]),n.current=void 0},[e]),d=ll.useCallback(()=>{t([])},[]);return{messages:e,earlier:r,setMessages:t,show:l,setAside:s,clear:d,restoredQuestion:n}}var J0=Zt(Hr(),1);function sK(e){let{client:t,gate:r,session:a,canSend:n,hasElapsed:l,markExpired:s,conversationId:d,remember:b,setMessages:y,showHistory:v,draft:g,setDraft:_,onStart:A,controller:I,onAnswered:O}=e,[N,P]=J0.useState(),{setBoxState:j,setBoxNotice:Z,setStatus:V}=r,W=J0.useCallback(async(ve)=>{if(r.locked()||!n||!a)return;if(ve&&!ve.id)return;if(l()){s(),j("expired"),V("Your visitor session has expired. Reload to begin a new session.");return}let ce=g.trim();if(!ve&&(!ce||g.length>a.messageCharacters))return;let Me=ve??{...d?{id:d}:{},messages:[{id:crypto.randomUUID(),role:"user",parts:[{type:"text",text:ce}]}]};await r.run(async()=>{if(j("sending"),Z(void 0),A(),P(Me),V("Thinking with public knowledge…"),!ve)y((k)=>[...k,{id:Me.messages[0]?.id??crypto.randomUUID(),role:"user",content:ce}]),_("");let Y=new AbortController;I.current=Y;let Te=crypto.randomUUID(),f=!1,p=!1,x="",h=[],S;try{let k=await t.streamMessages(Me,{signal:Y.signal});Y.signal.throwIfAborted();let C=k.headers.get(_L);if(!C)throw Error("Missing conversation locator");b(C),p=!0,j("working"),P({...Me,id:C});for await(let w of DL(k)){if(Y.signal.aborted)throw Error("Stopped waiting");if(w.type==="error"||w.type==="abort")throw Error("Response unavailable");if(w.type==="text-delta")x+=w.delta;if(w.type==="data-sources")h=Fd([...h,w.data]);if(w.type==="data-asked-before")S={faqId:w.data.faqId};if(w.type==="text-delta"||w.type==="data-sources"||w.type==="data-asked-before")y((c)=>[...c.filter((T)=>T.id!==Te),{id:Te,role:"assistant",content:x,cards:h,...S?{askedBefore:S}:{}}]);if(w.type==="finish")f=w.finishReason==="stop"}if(!f||!x.trim())throw Error("Incomplete response");P(void 0),j("complete"),O?.(h),V("Answer received. Check important claims against the original sources.")}catch(k){if(k instanceof Jo&&k.guestSubmission){let C=k.guestSubmission;j("incomplete"),b(C.conversationId),P({...Me,id:C.conversationId}),V(C.state==="completed"?"This request already completed. Restoring history…":"This request was already received. It will not be sent again automatically.");try{let w=await t.getMessages(C.conversationId);if(C.state==="completed")v(w),P(void 0),j("complete"),V("Conversation restored.");if(C.state==="failed"||C.state==="interrupted")P(void 0),j("ended"),V("The previous request ended without a complete answer. You may submit a new question.")}catch{V("The request was received, but its conversation is unavailable or expired.")}}else if(k instanceof Jo&&k.status===429)j("limit"),V("A guest limit has been reached, or another request is still running. Nothing will be retried automatically.");else if(!Me.id&&!p)j("uncertain"),V("No conversation locator was received. This tab cannot safely retry or confirm whether the request ran. Your visible question is preserved; nothing will be resent automatically.");else j("incomplete"),V(Y.signal.aborted?"Stopped waiting. Remote work may still be running; this is not a cancellation guarantee.":"The answer is unavailable or incomplete. Your visible text is preserved. Retry checks the same submission, not a new question.")}finally{I.current=void 0}})},[t,r,a,n,l,s,d,b,y,v,g,_,A,I,O,j,Z,V]),J=J0.useCallback(()=>{I.current?.abort()},[I]);return{pending:N,setPending:P,send:W,stopWaiting:J}}var lK=Zt(Hr(),1);function uK(e){let{client:t,gate:r,conversationId:a,pending:n,clearPending:l,showHistory:s,restoredQuestion:d}=e,{setBoxState:b,setBoxNotice:y,mounted:v}=r;return{check:lK.useCallback(async()=>{if(!a)return;y(void 0),await r.run(async()=>{let _=n?.messages[0]?.id,A=_?await t.getGuestHistory(a,_):void 0,I=A?.messages??await t.getMessages(a);if(!v.current)return;let O=I.findIndex((P)=>P.id===d.current&&P.role==="user"),N=A?A.submission?.conversationId===a&&A.submission.state==="completed":O>=0&&I[O+1]?.role==="assistant";if(N&&I.some((P)=>P.role==="assistant"&&P.content.trim()))if(s(I),l(),I.at(-1)?.role==="user")d.current=I.at(-1)?.id,b("incomplete");else b("complete");else if(A?.submission?.conversationId===a&&["failed","interrupted"].includes(A.submission.state))l(),b("ended");else y(N?"The request completed, but its answer is not available in history. Your visible text is preserved.":"No complete answer is confirmed yet. Your question has not been sent again.")},()=>{if(v.current)y("We couldn’t check the answer. Your visible text is unchanged; nothing was sent again.")})},[t,r,a,n,l,s,d,b,y,v])}}var cC=Zt(Pn(),1),cK="History loaded. The previous answer may still be running or incomplete. Nothing has been replayed; you can reload history later.";function fK({client:e,box:t,initialDraft:r="",initialSubmit:a=!1,name:n="the Brain",siteLabel:l="Brain",onAnswered:s}){let[d]=ia.useState(()=>e??sC()),{session:b,expired:y,canSend:v,open:g,hasElapsed:_,markExpired:A,clearExpired:I}=oK({open:(Qe)=>tK(d,Qe)}),{id:O,conversations:N,adopt:P,remember:j,note:Z,clear:V,forget:W,isSaved:J}=iK(),{messages:ve,earlier:ce,setMessages:Me,show:Y,setAside:Te,clear:f,restoredQuestion:p}=aK(),[x,h]=ia.useState(r),S=rK(),{busy:k,status:C,boxState:w,boxNotice:c,setStatus:T,setBoxState:z,setBoxNotice:R,mounted:q}=S,Q=ia.useRef(void 0),{pending:ie,setPending:me,send:Je,stopWaiting:ke}=sK({client:d,gate:S,session:b,canSend:v,hasElapsed:_,markExpired:A,conversationId:O,remember:j,setMessages:Me,showHistory:Y,draft:x,setDraft:h,...s?{onAnswered:s}:{},onStart:()=>{se.current=!0,be(!1)},controller:Q}),[fe,be]=ia.useState(!1),Ae=ia.useRef(null),Be=ia.useRef(null);function vt(){if(Be.current)Be.current.open=!1}let{check:oe}=uK({client:d,gate:S,conversationId:O,pending:ie,clearPending:()=>me(void 0),showHistory:Y,restoredQuestion:p}),se=ia.useRef(!!t);ia.useEffect(()=>{if(k||!se.current)return;se.current=!1;let Qe=document.activeElement,le=Ae.current;if(!Qe||Qe===document.body||le?.form?.contains(Qe))le?.focus({preventScroll:!0})},[k,t]),ia.useEffect(()=>{q.current=!0;let Qe=new AbortController;return S.runBoot(async()=>{try{let le=await g(Qe.signal);Qe.signal.throwIfAborted(),z(le.canSend?"ready":"unavailable");let Ee=t?void 0:P();if(Ee){let gt=await d.getMessages(Ee);if(Qe.signal.throwIfAborted(),Y(gt),p.current=gt.filter((De)=>De.role==="user").at(-1)?.id,Z(Ee),gt.at(-1)?.role==="user"){z("incomplete"),T(cK);return}}T(le.canSend?"Ready. Only public Brain knowledge is available.":"Asking is currently unavailable. You can still read or delete this conversation.")}catch{if(!Qe.signal.aborted)z("unavailable"),T("Guest access or saved history is unavailable. No new question has been sent.")}}),()=>{q.current=!1,Qe.abort(),Q.current?.abort()}},[d,t]);async function Ke(Qe){if(!Qe)return;await S.run(async()=>{let le=await d.getMessages(Qe);j(Qe),Y(le),me(void 0),be(!1),T(le.at(-1)?.role==="user"?cK:"Conversation restored.")},()=>{T("That conversation is unavailable or expired. Your current view is unchanged.")})}async function he(){if(!O)return;await S.run(async()=>{if(!(await d.deleteSession(O)).deleted)throw Error("Deletion not acknowledged");W(O),f(),me(void 0),be(!1),T("Conversation deleted from this Brain. Provider and backup limitations still apply.")},()=>{T("Deletion could not be confirmed. Your visible conversation is preserved.")})}async function Ie(Qe){if(S.locked())return!1;R(void 0);let le=new AbortController;Q.current=le;let Ee=!1;return await S.run(async()=>{try{let gt=await g(le.signal);if(le.signal.throwIfAborted(),!q.current)return;if(!gt.canSend){R("Chat is still unavailable. Your question has not been sent.");return}if(Qe)Te(),me(void 0),V(),I();z(ie&&!Qe?ie.id?"incomplete":"uncertain":O&&!Qe?ve.at(-1)?.role==="assistant"?"complete":"incomplete":"ready"),Ee=!0}catch{if(q.current)R("Chat is unavailable. Your text stays here; nothing was sent.")}finally{Q.current=void 0}}),Ee}if(t)return cC.jsxDEV(eK,{copy:{title:b?.presentation?.title??"",notice:b?.presentation?.introduction??"",topics:b?.presentation?.topics??[],inputHint:"Start with a question…",topicsLabel:"Suggested topics"},session:b,state:w,busy:k,messages:ve,earlier:ce,draft:x,setDraft:h,actionNotice:c,submitOnReady:a,canSend:v&&!ie&&["ready","complete","ended"].includes(w),canCheck:!!O&&["incomplete","limit"].includes(w),canContinue:!k&&!!O&&J(O)&&w!=="expired",onSend:()=>{Je()},onCheck:oe,onAvailability:async()=>{await Ie(!1)},onFresh:()=>Ie(!0),onContinue:()=>{if(O)j(O)},onStopWaiting:ke},void 0,!1,void 0,this);return cC.jsxDEV(LY,{name:n,siteLabel:l,session:b,messages:ve,status:C,draft:x,conversations:N,id:O,busy:k,pending:ie,deleting:fe,expired:y,textareaRef:Ae,conversationMenuRef:Be,onRestore:(Qe)=>{vt(),Ke(Qe)},onNewConversation:()=>{vt(),V(),f(),me(void 0),be(!1),T("New conversation. Previous conversations are not deleted, and running work is not cancelled.")},onAskDelete:()=>{vt(),be(!0)},onCancelDelete:()=>be(!1),onConfirmDelete:()=>{he()},onReloadHistory:()=>{if(vt(),O)Ke(O)},onDraftChange:h,onTopic:(Qe)=>{h(Qe),Ae.current?.focus()},onSubmit:()=>{Je(ie)},onStopWaiting:ke,onRetry:()=>{Je(ie)}},void 0,!1,void 0,this)}var pK=Zt(Pn(),1);function hK(e,t=!1){let r=e.querySelector("textarea"),a=Qy({apiPath:"/api/chat/guest"});dK.createRoot(e).render(pK.jsxDEV(fK,{client:a,box:!0,initialDraft:r?.value??"",initialSubmit:t,onAnswered:(n)=>{e.dispatchEvent(new CustomEvent(Fy,{bubbles:!0,detail:zL(n)}))}},void 0,!1,void 0,this))}var fC=document.querySelector("[data-guest-dashboard]"),Q2=document.getElementById("dashboard-tab-ask");if(fC&&Q2){let r=function(){if(!fC||!Q2||e||Q2.getAttribute("aria-selected")!=="true")return;e=!0,t.disconnect(),hK(fC)},e=!1,t=new MutationObserver(r);t.observe(Q2,{attributes:!0,attributeFilter:["aria-selected"]}),r()}
478
+ `;return""}return yM.dump=xe,yM}var EG;function Wpe(){if(EG)return Ri;EG=1;let e=Ype(),t=Kpe();function r(a,n){return function(){throw Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}return Ri.Type=Xi(),Ri.Schema=TG(),Ri.FAILSAFE_SCHEMA=CG(),Ri.JSON_SCHEMA=DG(),Ri.CORE_SCHEMA=zG(),Ri.DEFAULT_SCHEMA=vM(),Ri.load=e.load,Ri.loadAll=e.loadAll,Ri.dump=t.dump,Ri.YAMLException=D0(),Ri.types={binary:$G(),float:NG(),map:MG(),null:RG(),pairs:UG(),set:jG(),timestamp:LG(),bool:IG(),int:OG(),merge:PG(),omap:BG(),seq:AG(),str:kG()},Ri.safeLoad=r("safeLoad","load"),Ri.safeLoadAll=r("safeLoadAll","loadAll"),Ri.safeDump=r("safeDump","dump"),Ri}var Xpe=Wpe(),HG=Gpe(Xpe),{Type:yh,Schema:Jpe,FAILSAFE_SCHEMA:Qpe,JSON_SCHEMA:eme,CORE_SCHEMA:tme,DEFAULT_SCHEMA:SM,load:ZG,loadAll:rme,dump:FG,YAMLException:nme,types:ime,safeLoad:ome,safeLoadAll:ame,safeDump:sme}=HG;function qG(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var lme=/^[+-]?(?:0|0b[01_]*[01]|0x[\da-fA-F_]*[\da-fA-F]|0[0-7_]*[0-7]|[1-9](?:[\d_]*\d)?|[1-9][\d_]*(?::[0-5]?\d)+)$/,ume=/^(?:[-+]?(?:0|[1-9][\d_]*)(?:\.[\d_]*)?(?:[eE][-+]?\d+)?|\.[\d_]+(?:[eE][-+]?\d+)?|[-+]?\d[\d_]*(?::[0-5]?\d)+\.[\d_]*|[-+]?\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN))$/;function VG(e){let t=Reflect.get(R2,"types"),r=qG(t)?t[e]:void 0;if(!(r instanceof yh))throw Error(`Required YAML type is unavailable: ${e}`);return r}function cme(e,t){let r=0,a=1;for(let n of e.split(":").reverse())r+=(t?Number.parseFloat(n):Number.parseInt(n,10))*a,a*=60;return r}function GG(e){let t=VG(e);return new yh(`tag:yaml.org,2002:${e}`,{kind:"scalar",resolve:(r)=>typeof r==="string"&&(e==="int"?lme:ume).test(r)&&!r.endsWith("_"),construct:(r)=>{let a=r.replace(/_/g,""),n=a.startsWith("-")?-1:1,l=a.replace(/^[+-]/,"");if(l.includes(":"))return n*cme(l,e==="float");if(e==="int"&&l==="0")return 0;if(e==="int"&&/^0[0-7]+$/.test(l))return n*Number.parseInt(l,8);return t.construct(a)},predicate:t.predicate??void 0,represent:t.represent??void 0,defaultStyle:t.defaultStyle??void 0})}var xM=VG("binary"),fme=new yh("tag:yaml.org,2002:binary",{kind:"scalar",resolve:(e)=>xM.resolve(e),construct:(e)=>{let t=xM.construct(e);if(!(t instanceof Uint8Array))throw Error("Invalid YAML binary result");return typeof Buffer>"u"?Array.from(t):Buffer.from(t)},predicate:(e)=>typeof Buffer<"u"&&Buffer.isBuffer(e),represent:xM.represent??void 0}),dme=new yh("tag:yaml.org,2002:str",{kind:"scalar",resolve:(e)=>typeof e==="string"&&e.includes(":"),construct:(e)=>e}),hme=SM.extend({implicit:[GG("int"),GG("float"),dme],explicit:[fme]});var mme=U.object({question:U.string().trim().min(1)}),YG=U.object({faqId:U.string().min(1),faqQuestion:U.string().min(1),answer:U.string().trim().min(1),sources:U.array(Wy).default([])}),gme=U.object({hit:YG.optional()});var KG=U.enum(["admin","trusted","public"]),bme=U.object({conversationId:U.string().min(1),message:U.string(),interfaceType:U.string().min(1),channelId:U.string().optional(),channelName:U.string().optional(),userPermissionLevel:KG}),WG=U.object({id:U.string().min(1),source:U.string().min(1),title:U.string().optional(),content:U.string().min(1),provenance:U.record(U.string(),U.unknown()).optional()}),yme=U.object({items:U.array(WG).default([])});var vme=U.strictObject({entityType:U.string().min(1),entityId:U.string().min(1)}),Sme=U.strictObject({startedAt:U.string().datetime(),retrieved:U.array(vme).max(50)});eo();var iC=U.discriminatedUnion("kind",[U.object({kind:U.literal("user"),userId:U.string().min(1),canonicalId:U.string().min(1).optional()}),U.object({kind:U.literal("external"),externalActorId:U.string().min(1)}),U.object({kind:U.literal("agent"),agentId:U.string().min(1)}),U.object({kind:U.literal("service"),serviceId:U.string().min(1)})]);var gbe=U.object({actor:iC}),AY=U.object({userId:U.string().min(1),personId:U.string().min(1),canonicalId:U.string().min(1).optional(),displayName:U.string().min(1),permissionLevel:U.enum(["admin","trusted","public"])}),bbe=U.object({principal:AY.nullable()});var oC=U.strictObject({name:U.string().min(1).optional(),address:U.email()}),ybe=U.strictObject({personId:U.string().min(1).max(200),displayName:U.string().trim().min(1).max(200),permissionLevel:U.enum(["admin","trusted","public"])}),vbe=U.strictObject({messageId:U.string().min(1),sourceRef:U.string().min(1),threadId:U.string().min(1).optional(),from:oC,replyTo:oC.optional(),to:U.array(oC),subject:U.string(),receivedAt:U.iso.datetime(),text:U.string(),html:U.string().min(1).optional(),headers:U.strictObject({listUnsubscribe:U.string().min(1).optional(),autoSubmitted:U.string().min(1).optional(),precedence:U.string().min(1).optional(),inReplyTo:U.string().min(1).optional(),references:U.array(U.string().min(1)).optional()}),sender:ybe.optional()});var Sbe=U.strictObject({permissionLevel:U.enum(["admin","trusted","public"])}),xbe=U.custom((e)=>typeof AbortSignal<"u"&&e instanceof AbortSignal),_be=U.strictObject({sourceRef:U.string().regex(/^imap:[a-f0-9]{64}$/),actor:Sbe,signal:xbe.optional()}),aC=U.strictObject({name:U.string().trim().min(1).max(300).optional(),address:U.email().max(320)}),wbe=U.strictObject({messageId:U.string().trim().min(1).max(2000),from:aC,replyTo:aC.optional(),to:U.array(aC).max(100),subject:U.string().max(1000),receivedAt:U.iso.datetime(),text:U.string().max(1e5),inReplyTo:U.string().trim().min(1).max(2000).optional(),references:U.array(U.string().trim().min(1).max(2000)).max(100),truncated:U.boolean()}),Ebe=U.discriminatedUnion("kind",[U.strictObject({kind:U.literal("available"),message:wbe}),U.strictObject({kind:U.literal("unavailable")})]);eo();var Tbe=U.object({url:U.string(),authToken:U.string().optional()});var kbe=U.object({success:U.boolean(),entityId:U.string().optional(),error:U.string().optional()});var V2=U.lazy(()=>U.union([U.null(),U.boolean(),U.number().finite().refine((e)=>!Number.isInteger(e)||Number.isSafeInteger(e),{message:"integer exceeds the JSON-safe range"}),U.string(),U.array(V2),U.record(U.string(),V2)])),Mbe=U.record(U.string(),V2);var Cbe=U.enum(["user","assistant"]);var MY=U.object({entityType:U.string().min(1),entityId:U.string().min(1),contentHash:U.string().min(1).optional()}),Rbe=U.object({rootJobId:U.string().min(1),causationId:U.string().min(1),projectionId:U.string().min(1).optional(),projectionLineage:U.array(U.string().min(1)),sourceEntity:MY.optional(),derivationDepth:U.number().int().nonnegative()}).superRefine((e,t)=>{if(e.derivationDepth!==e.projectionLineage.length)t.addIssue({code:"custom",path:["derivationDepth"],message:"Derivation depth must equal projection lineage length"});let r=e.projectionLineage.at(-1);if(e.projectionId!==r)t.addIssue({code:"custom",path:["projectionId"],message:"Current projection must equal the final projection lineage entry"})});var Ibe=U.object({entityType:U.string().min(1),entityId:U.string(),metadata:U.record(U.string(),U.unknown()).default({}),content:U.string().default("")}),Obe=U.object({relativePath:U.string(),leaf:U.object({start:U.number().int().nonnegative(),end:U.number().int().nonnegative()}).nullable(),owner:U.object({entityType:U.string(),id:U.string()}).optional(),writable:U.boolean().optional()});var Nbe=U.strictObject({waveId:U.string().trim().min(1),sourceTypes:U.array(U.string().trim().min(1)),changedTargetTypes:U.array(U.string().trim().min(1))});var CY=U.object({audiences:U.array(U.string()).optional(),positioning:U.string().optional()}),RY=U.object({summary:U.string().optional(),traits:U.array(U.string()).optional(),principles:U.array(U.string()).optional(),preferredTerms:U.array(U.string()).optional(),avoid:U.array(U.string()).optional()}),IY=U.object({artDirection:U.string().optional(),palette:U.array(U.string()).optional(),composition:U.string().optional(),mood:U.string().optional(),preferred:U.array(U.string()).optional(),avoid:U.array(U.string()).optional()}),Dbe=U.object({name:U.string().describe("Style guide name"),messaging:CY.optional(),voice:RY.optional(),visual:IY.optional()});var zbe=U.object({id:U.string().min(1),trigger:U.string().min(1),playbookId:U.string().min(1),once:U.boolean().default(!0),starterText:U.string().min(1),description:U.string().min(1).optional(),starterPrompt:U.string().min(1)}).strict();var Lbe=U.object({message:U.string().describe("Natural language response to the query"),summary:U.string().optional().describe("Brief summary if applicable"),topics:U.array(U.string()).optional().describe("Related topics mentioned"),sources:U.array(U.object({id:U.string(),type:U.string(),excerpt:U.string().optional(),relevance:U.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:U.record(U.string(),U.unknown()).optional()}).describe("defaultQueryResponse"),Pbe=U.object({message:U.string()}).describe("simpleTextResponse"),$be=U.object({success:U.boolean(),entityId:U.string().optional(),message:U.string()}).describe("createEntityResponse"),Bbe=U.object({success:U.boolean(),entityId:U.string(),changes:U.array(U.string()).optional(),message:U.string()}).describe("updateEntityResponse");var OY={recipientMissing:"Notification recipient missing",transportMissing:"Notification transport missing",deliveryFailed:"Notification delivery failed"},hNe=new RegExp(`^${OY.deliveryFailed}: ([a-z0-9_:.-]{1,80})$`);var NY=U.discriminatedUnion("type",[U.strictObject({type:U.literal("email"),address:U.email()})]),Ube=U.strictObject({recipient:NY.optional(),title:U.string().min(1),body:U.string().min(1),html:U.string().min(1).optional(),sensitivity:U.enum(["normal","secret"]).default("normal"),idempotencyKey:U.string().trim().min(1).max(200).optional()}),jbe=U.discriminatedUnion("status",[U.strictObject({status:U.literal("sent"),deliveryId:U.string().optional()}),U.strictObject({status:U.literal("failed")})]);var Hbe=U.strictObject({titles:U.array(U.string().trim().min(1).max(500)).max(20)});var Zbe=U.strictObject({types:U.array(U.string().trim().min(1))});var Fbe=U.strictObject({id:U.string().regex(/^[a-z0-9][a-z0-9-]{0,79}$/),title:U.string().trim().min(1).max(200),body:U.string().trim().min(1).max(20000)}),qbe=U.strictObject({noteId:U.string(),created:U.boolean()});var Gbe=U.object({id:U.string().min(1),title:U.string().min(1),sub:U.string().optional(),href:U.string().min(1),primary:U.boolean().optional(),keywords:U.array(U.string()).optional()});var DY=Zt(Hr(),1);var Ybe=Zt(Hr(),1);function Vbe(){if(typeof document>"u")return Jy;return document.querySelector("[data-web-chat-root]")?.getAttribute("data-chat-api-path")??Jy}function sC(e={}){return Qy({...e,apiPath:Vbe()})}var Bze=U.record(U.string(),U.unknown());var Hze=U.record(U.string(),U.unknown());var Kbe=Zt(Hr(),1);var _n=Zt(Pn(),1);var lLe=U.record(U.string(),U.unknown());var Wbe=U.object({id:U.string().min(1),title:U.string().min(1).optional(),source:U.string().min(1),url:U.string().min(1).optional(),entityType:U.string().min(1).optional(),entityId:U.string().min(1).optional(),excerpt:U.string().min(1).optional(),provenance:U.record(U.string(),U.unknown()).optional()}),Xbe=U.object({kind:U.literal("sources"),id:U.string().min(1),title:U.string().min(1).optional(),sources:U.array(Wbe).min(1)});function Jbe(e){return e.title??e.entityId??e.id}function Qbe(e){let t=[e.entityType??e.source];if(e.entityId)t.push(e.entityId);return t.join(" · ")}function eye(e){let t=U.looseObject({score:U.number().finite()}).safeParse(e.provenance);return t.success?t.data.score:void 0}function zY({data:e,openInNewTab:t=!1}){let r=Xbe.safeParse(e);if(!r.success)return _n.jsxDEV(tye,{type:"data-sources",data:e},void 0,!1,void 0,this);let a=r.data,n=a.sources.length;return _n.jsxDEV("details",{className:"web-chat-sources-card","aria-label":"Retrieved sources",children:[_n.jsxDEV("summary",{className:"web-chat-sources-summary",children:[_n.jsxDEV("span",{className:"web-chat-sources-kicker",children:"sources"},void 0,!1,void 0,this),_n.jsxDEV("span",{className:"web-chat-sources-count",children:`${n} retrieved`},void 0,!1,void 0,this),_n.jsxDEV("span",{className:"web-chat-data-part-chevron","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_n.jsxDEV("div",{className:"web-chat-sources-body",children:[_n.jsxDEV("header",{className:"web-chat-sources-header",children:_n.jsxDEV("h4",{children:a.title??"Retrieved sources"},void 0,!1,void 0,this)},void 0,!1,void 0,this),_n.jsxDEV("ol",{className:"web-chat-sources-list",children:a.sources.map((l)=>{let s=Jbe(l),d=eye(l),b=l.url?_n.jsxDEV("a",{href:l.url,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,children:s},void 0,!1,void 0,this):_n.jsxDEV("span",{children:s},void 0,!1,void 0,this);return _n.jsxDEV("li",{className:"web-chat-source-item",...{[$d]:l.id},children:[_n.jsxDEV("div",{className:"web-chat-source-title",children:b},void 0,!1,void 0,this),_n.jsxDEV("div",{className:"web-chat-source-meta",children:[_n.jsxDEV("span",{children:Qbe(l)},void 0,!1,void 0,this),d!==void 0?_n.jsxDEV("span",{children:`score ${d.toFixed(2)}`},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},l.id,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function tye({data:e,type:t}){return _n.jsxDEV("details",{className:"web-chat-data-part",children:[_n.jsxDEV("summary",{className:"web-chat-data-part-header",children:[t,_n.jsxDEV("span",{className:"web-chat-data-part-chevron","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_n.jsxDEV("div",{className:"web-chat-data-part-body",children:_n.jsxDEV("pre",{children:JSON.stringify(e,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var fi=Zt(Pn(),1);function Y0({children:e}){return fi.jsxDEV(M2,{className:"web-chat-markdown-response",mode:"static",controls:!1,skipHtml:!0,plugins:{},allowedElements:["p","a","strong","em","ul","ol","li","blockquote","pre","code","h1","h2","h3","h4","hr","br"],components:{a:({href:t,children:r})=>fi.jsxDEV("a",{href:t&&/^(https?:\/\/|\/[^/])/i.test(t)?t:void 0,rel:"noopener noreferrer",target:"_blank",children:r},void 0,!1,void 0,this)},children:e},void 0,!1,void 0,this)}function rye({card:e,owner:t}){let r=e.sources.flatMap((a)=>a.brain?[a.brain.name]:[]);return fi.jsxDEV("ul",{className:"brain-box-sources","aria-label":r.length?`Sources, ${Zy(t,r)}`:"Sources",children:[r.length>0&&fi.jsxDEV("li",{className:"brain-box-answered-by",children:Zy(t,r)},void 0,!1,void 0,this),e.sources.map((a)=>fi.jsxDEV("li",{...{[$d]:a.id},...a.brain?{"data-ask-brain":a.brain.name}:{},children:[fi.jsxDEV("span",{className:"brain-box-source-mark","aria-hidden":"true"},void 0,!1,void 0,this),a.brain&&fi.jsxDEV("b",{className:"brain-box-source-brain",children:a.brain.name},void 0,!1,void 0,this),a.url?fi.jsxDEV("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:a.title},void 0,!1,void 0,this):fi.jsxDEV("span",{children:a.title},void 0,!1,void 0,this)]},a.id,!0,void 0,this))]},void 0,!0,void 0,this)}function K0({messages:e,assistantLabel:t="Brain",sourceLinks:r=!1}){return fi.jsxDEV("section",{className:"guest-messages","aria-label":"Conversation",children:e.map((a)=>fi.jsxDEV("article",{className:`guest-message guest-${a.role}`,children:[fi.jsxDEV("h2",{children:a.role==="user"?"You":t},void 0,!1,void 0,this),a.role==="user"?fi.jsxDEV("p",{children:a.content},void 0,!1,void 0,this):fi.jsxDEV(Y0,{children:a.content},void 0,!1,void 0,this),a.role==="assistant"&&a.askedBefore&&fi.jsxDEV("p",{className:"brain-box-asked-before",children:"Asked before"},void 0,!1,void 0,this),a.role==="assistant"&&Fd(a.cards).map((n)=>r?fi.jsxDEV(rye,{card:n,owner:t},n.id,!1,void 0,this):fi.jsxDEV(zY,{data:n,openInNewTab:!0},n.id,!1,void 0,this))]},a.id,!0,void 0,this))},void 0,!1,void 0,this)}var qt=Zt(Pn(),1);function LY(e){let{session:t,messages:r,draft:a,busy:n,pending:l,expired:s,id:d}=e,b=jm({resetKey:r.length===0,contentKey:r});return qt.jsxDEV("div",{className:"guest-ask",children:qt.jsxDEV("section",{"aria-label":"Public Ask",children:[qt.jsxDEV("div",{className:"guest-introduction",children:qt.jsxDEV("div",{children:[qt.jsxDEV("p",{className:"guest-eyebrow",children:"Public knowledge · Your questions"},void 0,!1,void 0,this),qt.jsxDEV("h1",{children:["Ask ",e.name,"."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),qt.jsxDEV("section",{className:"guest-card","aria-label":"Public conversation",children:[qt.jsxDEV("header",{className:"guest-card-header",children:[qt.jsxDEV("span",{className:"guest-brain-name",children:e.siteLabel},void 0,!1,void 0,this),qt.jsxDEV("span",{className:"guest-scope",children:"Public knowledge"},void 0,!1,void 0,this),t&&qt.jsxDEV("details",{className:"guest-conversation-menu",ref:e.conversationMenuRef,children:[qt.jsxDEV("summary",{"aria-label":"Conversation actions",children:"···"},void 0,!1,void 0,this),qt.jsxDEV("nav",{className:"guest-tools","aria-label":"Conversation controls",children:[qt.jsxDEV("label",{children:["Conversations in this tab"," ",qt.jsxDEV("select",{"aria-label":"Previous conversation",value:d??"",disabled:n,onChange:(y)=>e.onRestore(y.target.value),children:[qt.jsxDEV("option",{value:"",children:"Choose conversation"},void 0,!1,void 0,this),e.conversations.map((y,v)=>qt.jsxDEV("option",{value:y,children:["Conversation ",v+1]},y,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV("button",{disabled:n,onClick:e.onNewConversation,children:"New conversation"},void 0,!1,void 0,this),qt.jsxDEV("button",{disabled:!d||n,onClick:e.onAskDelete,children:"Delete conversation"},void 0,!1,void 0,this),qt.jsxDEV("button",{disabled:!d||n,onClick:e.onReloadHistory,children:"Reload history"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV("div",{className:"guest-transcript-scroll",ref:b.ref,role:"region","aria-label":"Conversation transcript",tabIndex:0,onScroll:b.onScroll,children:[e.deleting&&qt.jsxDEV("div",{className:"guest-delete",role:"alert",children:[qt.jsxDEV("p",{children:"Delete this conversation from the Brain? This does not erase provider records or cancel remote work."},void 0,!1,void 0,this),qt.jsxDEV("button",{disabled:n,onClick:e.onConfirmDelete,children:"Confirm deletion"},void 0,!1,void 0,this),qt.jsxDEV("button",{disabled:n,onClick:e.onCancelDelete,children:"Keep conversation"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!r.length&&t?.canSend&&!l&&!!(t.presentation?.title??t.presentation?.introduction??t.presentation?.topics?.length)&&qt.jsxDEV("div",{className:"guest-empty",children:[t.presentation.title&&qt.jsxDEV("h2",{children:t.presentation.title},void 0,!1,void 0,this),t.presentation.introduction&&qt.jsxDEV(Y0,{children:t.presentation.introduction},void 0,!1,void 0,this),qt.jsxDEV("div",{className:"guest-topics",children:(t.presentation.topics??[]).map((y,v)=>qt.jsxDEV("button",{className:"guest-topic",type:"button",onClick:()=>e.onTopic(y),children:[qt.jsxDEV("span",{"aria-hidden":"true",children:["0",v+1]},void 0,!0,void 0,this),y,qt.jsxDEV("span",{"aria-hidden":"true",children:"↗"},void 0,!1,void 0,this)]},y,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!r.length&&!t?.canSend&&!n&&!l&&qt.jsxDEV("div",{className:"guest-empty guest-unavailable",children:[qt.jsxDEV("p",{className:"guest-eyebrow",children:"Public knowledge"},void 0,!1,void 0,this),qt.jsxDEV("h2",{children:"Asking is unavailable right now."},void 0,!1,void 0,this),qt.jsxDEV("p",{children:"No new question has been sent. This page does not renew an expired or exhausted allowance."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV(K0,{messages:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV("p",{className:"guest-status",role:"status","aria-live":"polite",children:e.status},void 0,!1,void 0,this),t?.canSend&&qt.jsxDEV("form",{className:"guest-composer",onSubmit:(y)=>{y.preventDefault(),b.follow(),e.onSubmit()},children:[qt.jsxDEV("label",{className:"guest-sr",htmlFor:"guest-question",children:"Your question"},void 0,!1,void 0,this),qt.jsxDEV("textarea",{ref:e.textareaRef,id:"guest-question",value:a,onInput:(y)=>e.onDraftChange(y.currentTarget.value),maxLength:t.messageCharacters,disabled:n||!!l||s,placeholder:r.length?"Follow that thought…":"Start with a question…",rows:2},void 0,!1,void 0,this),qt.jsxDEV("div",{className:"guest-compose-actions",children:[qt.jsxDEV("small",{children:[a.length," / ",t.messageCharacters]},void 0,!0,void 0,this),n?qt.jsxDEV("button",{type:"button",onClick:e.onStopWaiting,children:"Stop waiting"},void 0,!1,void 0,this):l?qt.jsxDEV("button",{type:"button",disabled:!l.id,onClick:e.onRetry,children:l.id?"Check / retry same request":"Recovery unavailable"},void 0,!1,void 0,this):qt.jsxDEV("button",{className:"guest-send",type:"submit",disabled:!a.trim()||s,children:[qt.jsxDEV("span",{className:"guest-sr",children:"Ask the Brain"},void 0,!1,void 0,this),qt.jsxDEV("span",{"aria-hidden":"true",children:"↑"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qt.jsxDEV("div",{className:"guest-below",children:t&&qt.jsxDEV("details",{className:"guest-disclosure",children:[qt.jsxDEV("summary",{children:"Privacy and limits"},void 0,!1,void 0,this),qt.jsxDEV("p",{children:t.notice},void 0,!1,void 0,this),qt.jsxDEV("p",{children:["Provider: ",t.provider]},void 0,!0,void 0,this),qt.jsxDEV("p",{children:["Visitor access expires"," ",new Date(t.expiresAt).toLocaleString(),". Conversation retention: idle limit ",t.retention.idleSeconds/3600," ","hours; maximum age ",t.retention.maxAgeSeconds/3600," ","hours."]},void 0,!0,void 0,this),qt.jsxDEV("p",{children:t.deletionLimitations},void 0,!1,void 0,this),qt.jsxDEV("p",{children:"Your messages are not automatically added to the Brain’s knowledge. This chat cannot edit, publish or administer the Brain."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Au=Zt(Hr(),1),QY=Zt(cb(),1);var PY=Zt(Hr(),1),Eh=Zt(Pn(),1);function $Y(e){let{draft:t,over:r,welcome:a,busy:n,copy:l}=e;return PY.useLayoutEffect(()=>{let s=e.inputRef.current;if(!s)return;s.style.height="40px",s.style.height=`${Math.min(s.scrollHeight||40,window.innerWidth<=650?72:112)}px`},[t]),Eh.jsxDEV("form",{onSubmit:(s)=>{s.preventDefault(),e.onSubmit()},children:[Eh.jsxDEV("div",{className:"prompt-row",children:[Eh.jsxDEV("textarea",{ref:e.inputRef,rows:1,value:t,"aria-label":a?l.title||"Your question":"Your follow-up",...r>0?{"aria-describedby":"brain-chat-notice"}:{},"aria-invalid":r>0,placeholder:a?l.inputHint:"Ask a follow-up…",onInput:(s)=>e.setDraft(s.currentTarget.value),onFocus:e.onFocus,onTouchStart:e.onLand,onMouseDown:e.onLand,onKeyDown:(s)=>{if(s.key==="Enter"&&!s.shiftKey&&!s.nativeEvent.isComposing)s.preventDefault(),e.onSubmit()}},void 0,!1,void 0,this),Eh.jsxDEV("button",{className:"send",type:"submit","aria-label":"Send question",disabled:!e.canSend||n||r>0||!t.trim(),children:"↑"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r>0&&Eh.jsxDEV("p",{id:"brain-chat-notice",className:"brain-box-hint invalid",children:[r," characters over the limit."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Y2=Zt(Hr(),1),go=Zt(Pn(),1),nye={incomplete:{title:"The connection dropped.",body:"Your answer may still be finishing. Checking won’t repeat your question.",fresh:!0},uncertain:{title:"Connection lost.",body:"We can’t confirm whether your question was received. It’s still here, and we won’t send it again.",fresh:!0},limit:{title:"No more questions can be sent right now.",body:"A chat limit was reached, or another question is still running. Your visible text stays here."},unavailable:{title:"Chat isn’t available right now.",body:"You can keep writing. Checking availability won’t send your question.",availability:!0},expired:{title:"This conversation is unavailable.",body:"You can still read what’s visible here. Starting separately won’t restore or repeat the previous question.",fresh:!0},ended:{title:"The previous request ended without a complete answer.",body:"Your visible text is preserved. You can write a new question."}};function BY(e){let t=nye[e.state];if(!t)return null;return go.jsxDEV("section",{className:"brain-box-notice",role:"status","aria-live":"polite",children:[go.jsxDEV("h3",{children:t.title},void 0,!1,void 0,this),go.jsxDEV("p",{children:t.body},void 0,!1,void 0,this),go.jsxDEV("div",{className:"brain-box-actions",children:[e.canCheck&&go.jsxDEV("button",{type:"button",className:"brain-box-action",disabled:e.busy,onClick:e.onCheck,children:"Check answer"},void 0,!1,void 0,this),t.fresh&&go.jsxDEV("button",{ref:e.freshButtonRef,type:"button",className:"brain-box-action",disabled:e.busy,onClick:e.onFresh,children:"New question"},void 0,!1,void 0,this),t.availability&&go.jsxDEV("button",{type:"button",className:"brain-box-action",disabled:e.busy,onClick:e.onAvailability,children:"Check availability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function UY(e){let t=Y2.useRef(null);return Y2.useLayoutEffect(()=>{t.current?.focus({preventScroll:!0});let r=e.regionRef.current;if(r)r.scrollTop=r.scrollHeight},[]),go.jsxDEV("section",{className:"brain-box-notice",children:[go.jsxDEV("h3",{children:"Start a separate question?"},void 0,!1,void 0,this),go.jsxDEV("p",{children:"The earlier one may still finish. We’ll check availability first. This won’t cancel, delete or repeat it, or reset any limit."},void 0,!1,void 0,this),go.jsxDEV("div",{className:"brain-box-actions",children:[go.jsxDEV("button",{ref:t,type:"button",className:"brain-box-action",disabled:e.busy,onClick:e.onContinue,children:"Continue"},void 0,!1,void 0,this),go.jsxDEV("button",{className:"brain-box-quiet",disabled:e.busy,type:"button",onClick:e.onBack,children:"Go back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ku=Zt(Pn(),1);function jY(e){return ku.jsxDEV("section",{className:"guest-message guest-assistant brain-box-pending","aria-hidden":"true",children:[ku.jsxDEV("h2",{children:e.owner??"Brain"},void 0,!1,void 0,this),ku.jsxDEV("p",{className:"brain-box-waiting",children:[ku.jsxDEV("span",{className:"brain-box-dots",children:[ku.jsxDEV("i",{},void 0,!1,void 0,this),ku.jsxDEV("i",{},void 0,!1,void 0,this),ku.jsxDEV("i",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),"Looking through the published work"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Aa=Zt(Pn(),1);function HY(e){let{copy:t,welcome:r}=e;return Aa.jsxDEV(Aa.Fragment,{children:[r&&(t.title||t.notice||t.topics.length>0)&&Aa.jsxDEV("div",{className:"brain-box-welcome",children:[t.title&&Aa.jsxDEV("h2",{id:"brain-chat-heading",className:"display",children:t.title},void 0,!1,void 0,this),t.notice&&Aa.jsxDEV("div",{className:"chat-notice",children:Aa.jsxDEV(Y0,{children:t.notice},void 0,!1,void 0,this)},void 0,!1,void 0,this),Aa.jsxDEV("div",{className:"hints","aria-label":t.topicsLabel,children:t.topics.map((a,n)=>Aa.jsxDEV("button",{type:"button",onClick:()=>e.onTopic(a),children:a},`${n}:${a}`,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(!r||!t.title)&&Aa.jsxDEV("h2",{id:"brain-chat-heading",className:"brain-box-sr-only",children:t.title||"Ask"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K2=Zt(Hr(),1);function ZY(e,t){let r=K2.useRef(t.at(-1)?.role);K2.useLayoutEffect(()=>{let a=r.current;if(r.current=t.at(-1)?.role,a!=="user"||t.at(-1)?.role!=="assistant")return;let n=e.ref.current;if(!n||n.scrollHeight<=n.clientHeight)return;let l=[...n.querySelectorAll(".guest-user")].at(-1);if(l)e.showFrom(l)},[t])}var Th=Zt(Hr(),1);function FY(e){let[t,r]=Th.useState(),[a,n]=Th.useState(),[l,s]=Th.useState(null);return Th.useEffect(()=>{let d=e.current?.closest(`[${Ld}]`),b=(y)=>{let v=d?.getAttribute(y)?.trim();if(!v)return;return v};r(b(qy)),n(b(Gy)),s(e.current?.closest(".talk")?.querySelector(".ui-bar")??null)},[]),{owner:t,placeholder:a,header:l}}var qY=Zt(Hr(),1);function GY(e,t){qY.useEffect(()=>{let r=window.visualViewport,a=()=>{if(e.current?.closest(".talk")?.style.setProperty("--chat-viewport-height",`${r?.height??window.innerHeight}px`),document.activeElement===t.current&&window.innerWidth<=650&&!e.current?.closest(`[${ba}]`))e.current?.scrollIntoView({block:"end"})};return a(),r?.addEventListener("resize",a),window.addEventListener("resize",a),()=>{r?.removeEventListener("resize",a),window.removeEventListener("resize",a)}},[])}var vi=Zt(Hr(),1);var iye=["position","top","left","right"];function lC(e=null){let t=document.documentElement;if(t.hasAttribute(iu))return;let r=Math.round(e??window.scrollY);t.setAttribute(iu,String(r));let a=document.body.style;a.position="fixed",a.top=`${-r}px`,a.left="0",a.right="0"}function VY(){let e=document.documentElement,t=e.getAttribute(iu);if(t===null)return;e.removeAttribute(iu);for(let r of iye)document.body.style.removeProperty(r);window.scrollTo(0,Number(t)||0)}function YY(){let e=document.documentElement.getAttribute(iu);return e===null?Math.round(window.scrollY):Number(e)||0}function KY(e){if(document.body.style.visibility="hidden",e.style.visibility="visible",document.querySelector(`style[${jd}]`))return;let t=document.createElement("style");t.setAttribute(jd,""),t.textContent=Yy,document.head.append(t)}function uC(e){document.body.style.removeProperty("visibility"),e.style.removeProperty("visibility"),document.querySelector(`style[${jd}]`)?.remove()}var oye=0.8;function WY(e,t){let[r,a]=vi.useState(()=>window.matchMedia(Bd).matches),[n,l]=vi.useState(!1),[s,d]=vi.useState(!1),b=vi.useRef(!1),y=vi.useRef(null),v=vi.useCallback(()=>{y.current=window.scrollY},[]),g=()=>e.current?.closest(`[${Ld}]`)??null;vi.useLayoutEffect(()=>{let I=window.matchMedia(Bd),O=()=>a(I.matches);if(I.addEventListener("change",O),I.matches&&g()?.hasAttribute(ba))l(!0);return()=>I.removeEventListener("change",O)},[]),vi.useEffect(()=>{if(!r)l(!1)},[r]);let _=vi.useCallback(()=>{if(!window.matchMedia(Bd).matches)return;lC(y.current),y.current=null,d(!1),l(!0)},[]),A=vi.useCallback(()=>{if(d(!0),b.current)b.current=!1,window.history.back()},[]);return vi.useLayoutEffect(()=>{let I=g();if(!s)return;let O=()=>{d(!1),l(!1)};if(!I)return O();I.setAttribute(Ud,""),uC(I);let N=window.getComputedStyle(I).animationName;if(!N||N==="none")return O();return I.addEventListener("animationend",O,{once:!0}),()=>{I.removeEventListener("animationend",O),I.removeAttribute(Ud)}},[s]),vi.useLayoutEffect(()=>{let I=g();if(!I)return;if(!n){I.removeAttribute(ba),I.removeAttribute(Ec);return}I.setAttribute(ba,""),lC();let O=!0,N=()=>{if(O)KY(I)},P="getAnimations"in I?I.getAnimations():[];if(P.length===0)N();else Promise.all(P.map((J)=>J.finished)).then(N,N);if(!b.current)b.current=!0,window.history.pushState({[Vy]:{y:YY()}},"");let j=window.visualViewport,Z=()=>{if(document.activeElement!==t.current){I.style.removeProperty("--ask-viewport-height"),I.style.removeProperty("--ask-viewport-top"),I.removeAttribute(Ec);return}let J=j?.height??window.innerHeight;I.style.setProperty("--ask-viewport-height",`${J}px`),I.style.setProperty("--ask-viewport-top",`${j?.offsetTop??0}px`),I.toggleAttribute(Ec,J<window.innerHeight*oye)},V=()=>{b.current=!1,d(!0)},W=(J)=>{if(J.key==="Escape")A()};return Z(),j?.addEventListener("resize",Z),j?.addEventListener("scroll",Z),window.addEventListener("resize",Z),document.addEventListener("focusin",Z),document.addEventListener("focusout",Z),window.addEventListener("popstate",V),document.addEventListener("keydown",W),()=>{j?.removeEventListener("resize",Z),j?.removeEventListener("scroll",Z),window.removeEventListener("resize",Z),document.removeEventListener("focusin",Z),document.removeEventListener("focusout",Z),window.removeEventListener("popstate",V),document.removeEventListener("keydown",W),O=!1,uC(I),VY(),I.removeAttribute(ba),I.removeAttribute(Ud),I.style.removeProperty("--ask-viewport-height"),I.style.removeProperty("--ask-viewport-top"),I.removeAttribute(Ec)}},[n,A]),{narrow:r,open:n,show:_,close:A,land:v}}var W0=Zt(Hr(),1);function XY(e,t){let{busy:r,canSend:a,onSend:n,compact:l}=t,s=W0.useRef(t.submitOnReady),d=W0.useRef(!0);W0.useEffect(()=>{if(r)return;if(d.current){if(d.current=!1,document.activeElement===document.body&&!l)e.current?.focus({preventScroll:!0})}if(!s.current)return;if(s.current=!1,a)n()},[r,a,n])}var W2=Zt(Hr(),1),aye=20000;function JY(e,t=aye){let[r,a]=W2.useState(!1);return W2.useEffect(()=>{if(a(!1),!e)return;let n=window.setTimeout(()=>a(!0),t);return()=>window.clearTimeout(n)},[e,t]),e&&r}var hn=Zt(Pn(),1);function sye(e,t){if(!e)return"";if(t==="sending")return"Sending your question…";if(t==="working")return"Working on your question…";return"Connecting to chat…"}function eK(e){let{copy:t,state:r,messages:a,earlier:n,draft:l,busy:s,session:d}=e,b=Au.useRef(null),y=Au.useRef(null),v=Au.useRef(null),[g,_]=Au.useState(!1),A=Au.useMemo(()=>({}),[a,n,r,s,g,e.actionNotice]),I=jm({resetKey:null,contentKey:A}),O=s&&(r==="sending"||r==="working"),N=JY(O,e.stopWaitingAfterMs);GY(b,y);let P=WY(b,y),j=P.narrow&&!P.open,{owner:Z,placeholder:V,header:W}=FY(b);XY(y,{submitOnReady:e.submitOnReady===!0,busy:s,canSend:e.canSend,onSend:e.onSend,compact:j}),ZY(I,a);let J=d?.messageCharacters??4000,ve=l.length-J,ce=a.length===0&&n.length===0&&(r==="ready"||r==="connecting");function Me(){if(!e.canSend||s||ve>0||!l.trim())return;if(I.follow(),e.onSend(),P.open)y.current?.blur();else y.current?.focus({preventScroll:!0})}let Y=e.canContinue&&!P.open&&hn.jsxDEV("div",{className:"brain-box-header-actions",children:hn.jsxDEV("a",{href:"/ask",onClick:e.onContinue,children:"Full chat ↗"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Te=()=>{if(P.open)return hn.jsxDEV("div",{className:"brain-box-sheet-head",children:[hn.jsxDEV("span",{className:"brain-box-sheet-title brain-box-sr-only",children:Z?`Ask ${Z}`:"Conversation"},void 0,!1,void 0,this),hn.jsxDEV("button",{className:"brain-box-close",type:"button","aria-label":"Close conversation",onClick:P.close,children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!Y)return null;return W?QY.createPortal(Y,W):Y};return hn.jsxDEV("div",{className:`brain-guest-box${P.open?" is-sheet":""}${j?" is-compact":""}`,ref:b,children:[Te(),hn.jsxDEV("div",{ref:I.ref,className:`brain-box-scroll${ce?" is-welcome":""}`,role:"region","aria-label":"Conversation and chat information",tabIndex:0,onScroll:I.onScroll,children:[hn.jsxDEV("div",{className:"brain-box-dock",...{[Ky]:""}},void 0,!1,void 0,this),hn.jsxDEV(HY,{copy:t,welcome:ce,onTopic:(f)=>{e.setDraft(f),y.current?.focus()}},void 0,!1,void 0,this),n.length>0&&hn.jsxDEV("details",{className:"brain-box-earlier",children:[hn.jsxDEV("summary",{children:"Earlier text · not resent"},void 0,!1,void 0,this),hn.jsxDEV(K0,{messages:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this),hn.jsxDEV(K0,{messages:a,sourceLinks:!0,...Z?{assistantLabel:Z}:{}},void 0,!1,void 0,this),O&&a.at(-1)?.role==="user"&&hn.jsxDEV(jY,{owner:Z},void 0,!1,void 0,this),hn.jsxDEV("p",{className:`brain-box-activity${O||s&&r==="connecting"?" brain-box-sr-only":""}${r==="complete"&&!s?" is-complete":""}`,role:"status","aria-live":"polite",children:sye(s,r)},void 0,!1,void 0,this),hn.jsxDEV(BY,{state:r,busy:s,canCheck:e.canCheck,freshButtonRef:v,onCheck:()=>{e.onCheck()},onAvailability:()=>{e.onAvailability()},onFresh:()=>_(!0)},void 0,!1,void 0,this),N&&hn.jsxDEV("button",{className:"brain-box-quiet",type:"button",onClick:e.onStopWaiting,children:"Stop waiting"},void 0,!1,void 0,this),g&&hn.jsxDEV(UY,{busy:s,regionRef:I.ref,onContinue:()=>{e.onFresh().then((f)=>{if(f)_(!1),y.current?.focus()})},onBack:()=>{_(!1),v.current?.focus()}},void 0,!1,void 0,this),e.actionNotice&&hn.jsxDEV("p",{className:"brain-box-notice",role:"status",children:e.actionNotice},void 0,!1,void 0,this)]},void 0,!0,void 0,this),hn.jsxDEV("div",{className:"brain-box-bottom",children:[j&&a.length>0&&hn.jsxDEV("button",{className:"brain-box-resume",type:"button",onClick:P.show,children:[hn.jsxDEV("span",{className:"brain-box-resume-dot","aria-hidden":"true"},void 0,!1,void 0,this),"Continue conversation"]},void 0,!0,void 0,this),hn.jsxDEV($Y,{copy:V?{...t,inputHint:V}:t,inputRef:y,onFocus:P.show,onLand:P.land,draft:l,setDraft:e.setDraft,over:ve,welcome:ce,busy:s,canSend:e.canSend,onSubmit:Me},void 0,!1,void 0,this),I.awayFromLatest&&!j&&hn.jsxDEV("button",{className:"brain-box-latest",type:"button",onClick:I.jumpToLatest,children:"↓ Rest of the answer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}async function tK(e,t){let r=navigator;if(!r.locks)throw Error("Browser session coordination unavailable");return r.locks.request("brain-ask-visitor-session",{signal:t},()=>(t.throwIfAborted(),e.openGuestSession()))}var Po=Zt(Hr(),1);function rK(){let[e,t]=Po.useState(!0),[r,a]=Po.useState("Connecting…"),[n,l]=Po.useState("connecting"),[s,d]=Po.useState(),b=Po.useRef(!0),y=Po.useRef(!0),v=Po.useCallback(()=>{if(b.current=!1,y.current)t(!1)},[]),g=Po.useCallback(async(I,O)=>{try{await I()}catch(N){O?.(N)}finally{v()}},[v]),_=Po.useCallback(async(I,O)=>{if(b.current)return;b.current=!0,t(!0),await g(I,O)},[g]),A=Po.useCallback(()=>b.current,[]);return{busy:e,status:r,boxState:n,boxNotice:s,setStatus:a,setBoxState:l,setBoxNotice:d,mounted:y,locked:A,run:_,runBoot:g}}var ys=Zt(Hr(),1),J2="brain-ask-conversation",nK=`${J2}-list`,lye=/^guest-[a-f0-9]{64}$/;function X2(e,t){try{let r=JSON.parse(sessionStorage.getItem(nK)??"[]"),a=Array.isArray(r)?r.filter((n)=>typeof n==="string"&&lye.test(n)&&n!==t):[];if(e&&!a.includes(e))a.push(e);return sessionStorage.setItem(nK,JSON.stringify(a)),a}catch{return e?[e]:[]}}function X0(e){try{if(e!==void 0)if(e)sessionStorage.setItem(J2,e);else sessionStorage.removeItem(J2);return sessionStorage.getItem(J2)??void 0}catch{return}}function iK(){let[e,t]=ys.useState(),[r,a]=ys.useState([]),n=ys.useCallback(()=>{a(X2());let v=X0();if(v)t(v);return v},[]),l=ys.useCallback((v)=>{t(v),X0(v),a(X2(v))},[]),s=ys.useCallback((v)=>{a(X2(v))},[]),d=ys.useCallback(()=>{X0(""),t(void 0)},[]),b=ys.useCallback((v)=>{X0(""),a(X2(void 0,v)),t(void 0)},[]),y=ys.useCallback((v)=>X0()===v,[]);return{id:e,conversations:r,adopt:n,remember:l,note:s,clear:d,forget:b,isSaved:y}}var Mu=Zt(Hr(),1);function oK(e){let{open:t}=e,[r,a]=Mu.useState(),[n,l]=Mu.useState(!1),s=Mu.useCallback(async(v)=>{let g=await t(v);return a(g),g},[t]),d=Mu.useCallback(()=>r!==void 0&&Date.now()>=r.expiresAt,[r]),b=Mu.useCallback(()=>l(!0),[]),y=Mu.useCallback(()=>l(!1),[]);return{session:r,expired:n,canSend:!!r?.canSend&&!n,open:s,hasElapsed:d,markExpired:b,clearExpired:y}}var ll=Zt(Hr(),1);function aK(){let[e,t]=ll.useState([]),[r,a]=ll.useState([]),n=ll.useRef(void 0),l=ll.useCallback((b)=>{t(b)},[]),s=ll.useCallback(()=>{a((b)=>[...b,...e]),t([]),n.current=void 0},[e]),d=ll.useCallback(()=>{t([])},[]);return{messages:e,earlier:r,setMessages:t,show:l,setAside:s,clear:d,restoredQuestion:n}}var J0=Zt(Hr(),1);function sK(e){let{client:t,gate:r,session:a,canSend:n,hasElapsed:l,markExpired:s,conversationId:d,remember:b,setMessages:y,showHistory:v,draft:g,setDraft:_,onStart:A,controller:I,onAnswered:O}=e,[N,P]=J0.useState(),{setBoxState:j,setBoxNotice:Z,setStatus:V}=r,W=J0.useCallback(async(ve)=>{if(r.locked()||!n||!a)return;if(ve&&!ve.id)return;if(l()){s(),j("expired"),V("Your visitor session has expired. Reload to begin a new session.");return}let ce=g.trim();if(!ve&&(!ce||g.length>a.messageCharacters))return;let Me=ve??{...d?{id:d}:{},messages:[{id:crypto.randomUUID(),role:"user",parts:[{type:"text",text:ce}]}]};await r.run(async()=>{if(j("sending"),Z(void 0),A(),P(Me),V("Thinking with public knowledge…"),!ve)y((k)=>[...k,{id:Me.messages[0]?.id??crypto.randomUUID(),role:"user",content:ce}]),_("");let Y=new AbortController;I.current=Y;let Te=crypto.randomUUID(),f=!1,p=!1,x="",h=[],S;try{let k=await t.streamMessages(Me,{signal:Y.signal});Y.signal.throwIfAborted();let C=k.headers.get(_L);if(!C)throw Error("Missing conversation locator");b(C),p=!0,j("working"),P({...Me,id:C});for await(let w of DL(k)){if(Y.signal.aborted)throw Error("Stopped waiting");if(w.type==="error"||w.type==="abort")throw Error("Response unavailable");if(w.type==="text-delta")x+=w.delta;if(w.type==="data-sources")h=Fd([...h,w.data]);if(w.type==="data-asked-before")S={faqId:w.data.faqId};if(w.type==="text-delta"||w.type==="data-sources"||w.type==="data-asked-before")y((c)=>[...c.filter((T)=>T.id!==Te),{id:Te,role:"assistant",content:x,cards:h,...S?{askedBefore:S}:{}}]);if(w.type==="finish")f=w.finishReason==="stop"}if(!f||!x.trim())throw Error("Incomplete response");P(void 0),j("complete"),O?.(h),V("Answer received. Check important claims against the original sources.")}catch(k){if(k instanceof Jo&&k.guestSubmission){let C=k.guestSubmission;j("incomplete"),b(C.conversationId),P({...Me,id:C.conversationId}),V(C.state==="completed"?"This request already completed. Restoring history…":"This request was already received. It will not be sent again automatically.");try{let w=await t.getMessages(C.conversationId);if(C.state==="completed")v(w),P(void 0),j("complete"),V("Conversation restored.");if(C.state==="failed"||C.state==="interrupted")P(void 0),j("ended"),V("The previous request ended without a complete answer. You may submit a new question.")}catch{V("The request was received, but its conversation is unavailable or expired.")}}else if(k instanceof Jo&&k.status===429)j("limit"),V("A guest limit has been reached, or another request is still running. Nothing will be retried automatically.");else if(!Me.id&&!p)j("uncertain"),V("No conversation locator was received. This tab cannot safely retry or confirm whether the request ran. Your visible question is preserved; nothing will be resent automatically.");else j("incomplete"),V(Y.signal.aborted?"Stopped waiting. Remote work may still be running; this is not a cancellation guarantee.":"The answer is unavailable or incomplete. Your visible text is preserved. Retry checks the same submission, not a new question.")}finally{I.current=void 0}})},[t,r,a,n,l,s,d,b,y,v,g,_,A,I,O,j,Z,V]),J=J0.useCallback(()=>{I.current?.abort()},[I]);return{pending:N,setPending:P,send:W,stopWaiting:J}}var lK=Zt(Hr(),1);function uK(e){let{client:t,gate:r,conversationId:a,pending:n,clearPending:l,showHistory:s,restoredQuestion:d}=e,{setBoxState:b,setBoxNotice:y,mounted:v}=r;return{check:lK.useCallback(async()=>{if(!a)return;y(void 0),await r.run(async()=>{let _=n?.messages[0]?.id,A=_?await t.getGuestHistory(a,_):void 0,I=A?.messages??await t.getMessages(a);if(!v.current)return;let O=I.findIndex((P)=>P.id===d.current&&P.role==="user"),N=A?A.submission?.conversationId===a&&A.submission.state==="completed":O>=0&&I[O+1]?.role==="assistant";if(N&&I.some((P)=>P.role==="assistant"&&P.content.trim()))if(s(I),l(),I.at(-1)?.role==="user")d.current=I.at(-1)?.id,b("incomplete");else b("complete");else if(A?.submission?.conversationId===a&&["failed","interrupted"].includes(A.submission.state))l(),b("ended");else y(N?"The request completed, but its answer is not available in history. Your visible text is preserved.":"No complete answer is confirmed yet. Your question has not been sent again.")},()=>{if(v.current)y("We couldn’t check the answer. Your visible text is unchanged; nothing was sent again.")})},[t,r,a,n,l,s,d,b,y,v])}}var cC=Zt(Pn(),1),cK="History loaded. The previous answer may still be running or incomplete. Nothing has been replayed; you can reload history later.";function fK({client:e,box:t,initialDraft:r="",initialSubmit:a=!1,name:n="the Brain",siteLabel:l="Brain",onAnswered:s}){let[d]=ia.useState(()=>e??sC()),{session:b,expired:y,canSend:v,open:g,hasElapsed:_,markExpired:A,clearExpired:I}=oK({open:(Qe)=>tK(d,Qe)}),{id:O,conversations:N,adopt:P,remember:j,note:Z,clear:V,forget:W,isSaved:J}=iK(),{messages:ve,earlier:ce,setMessages:Me,show:Y,setAside:Te,clear:f,restoredQuestion:p}=aK(),[x,h]=ia.useState(r),S=rK(),{busy:k,status:C,boxState:w,boxNotice:c,setStatus:T,setBoxState:z,setBoxNotice:R,mounted:q}=S,Q=ia.useRef(void 0),{pending:ie,setPending:me,send:Je,stopWaiting:ke}=sK({client:d,gate:S,session:b,canSend:v,hasElapsed:_,markExpired:A,conversationId:O,remember:j,setMessages:Me,showHistory:Y,draft:x,setDraft:h,...s?{onAnswered:s}:{},onStart:()=>{se.current=!0,be(!1)},controller:Q}),[fe,be]=ia.useState(!1),Ae=ia.useRef(null),Be=ia.useRef(null);function vt(){if(Be.current)Be.current.open=!1}let{check:oe}=uK({client:d,gate:S,conversationId:O,pending:ie,clearPending:()=>me(void 0),showHistory:Y,restoredQuestion:p}),se=ia.useRef(!!t);ia.useEffect(()=>{if(k||!se.current)return;se.current=!1;let Qe=document.activeElement,le=Ae.current;if(!Qe||Qe===document.body||le?.form?.contains(Qe))le?.focus({preventScroll:!0})},[k,t]),ia.useEffect(()=>{q.current=!0;let Qe=new AbortController;return S.runBoot(async()=>{try{let le=await g(Qe.signal);Qe.signal.throwIfAborted(),z(le.canSend?"ready":"unavailable");let Ee=t?void 0:P();if(Ee){let gt=await d.getMessages(Ee);if(Qe.signal.throwIfAborted(),Y(gt),p.current=gt.filter((De)=>De.role==="user").at(-1)?.id,Z(Ee),gt.at(-1)?.role==="user"){z("incomplete"),T(cK);return}}T(le.canSend?"Ready. Only public Brain knowledge is available.":"Asking is currently unavailable. You can still read or delete this conversation.")}catch{if(!Qe.signal.aborted)z("unavailable"),T("Guest access or saved history is unavailable. No new question has been sent.")}}),()=>{q.current=!1,Qe.abort(),Q.current?.abort()}},[d,t]);async function Ke(Qe){if(!Qe)return;await S.run(async()=>{let le=await d.getMessages(Qe);j(Qe),Y(le),me(void 0),be(!1),T(le.at(-1)?.role==="user"?cK:"Conversation restored.")},()=>{T("That conversation is unavailable or expired. Your current view is unchanged.")})}async function he(){if(!O)return;await S.run(async()=>{if(!(await d.deleteSession(O)).deleted)throw Error("Deletion not acknowledged");W(O),f(),me(void 0),be(!1),T("Conversation deleted from this Brain. Provider and backup limitations still apply.")},()=>{T("Deletion could not be confirmed. Your visible conversation is preserved.")})}async function Ie(Qe){if(S.locked())return!1;R(void 0);let le=new AbortController;Q.current=le;let Ee=!1;return await S.run(async()=>{try{let gt=await g(le.signal);if(le.signal.throwIfAborted(),!q.current)return;if(!gt.canSend){R("Chat is still unavailable. Your question has not been sent.");return}if(Qe)Te(),me(void 0),V(),I();z(ie&&!Qe?ie.id?"incomplete":"uncertain":O&&!Qe?ve.at(-1)?.role==="assistant"?"complete":"incomplete":"ready"),Ee=!0}catch{if(q.current)R("Chat is unavailable. Your text stays here; nothing was sent.")}finally{Q.current=void 0}}),Ee}if(t)return cC.jsxDEV(eK,{copy:{title:b?.presentation?.title??"",notice:b?.presentation?.introduction??"",topics:b?.presentation?.topics??[],inputHint:"Start with a question…",topicsLabel:"Suggested topics"},session:b,state:w,busy:k,messages:ve,earlier:ce,draft:x,setDraft:h,actionNotice:c,submitOnReady:a,canSend:v&&!ie&&["ready","complete","ended"].includes(w),canCheck:!!O&&["incomplete","limit"].includes(w),canContinue:!k&&!!O&&J(O)&&w!=="expired",onSend:()=>{Je()},onCheck:oe,onAvailability:async()=>{await Ie(!1)},onFresh:()=>Ie(!0),onContinue:()=>{if(O)j(O)},onStopWaiting:ke},void 0,!1,void 0,this);return cC.jsxDEV(LY,{name:n,siteLabel:l,session:b,messages:ve,status:C,draft:x,conversations:N,id:O,busy:k,pending:ie,deleting:fe,expired:y,textareaRef:Ae,conversationMenuRef:Be,onRestore:(Qe)=>{vt(),Ke(Qe)},onNewConversation:()=>{vt(),V(),f(),me(void 0),be(!1),T("New conversation. Previous conversations are not deleted, and running work is not cancelled.")},onAskDelete:()=>{vt(),be(!0)},onCancelDelete:()=>be(!1),onConfirmDelete:()=>{he()},onReloadHistory:()=>{if(vt(),O)Ke(O)},onDraftChange:h,onTopic:(Qe)=>{h(Qe),Ae.current?.focus()},onSubmit:()=>{Je(ie)},onStopWaiting:ke,onRetry:()=>{Je(ie)}},void 0,!1,void 0,this)}var pK=Zt(Pn(),1);function hK(e,t=!1){let r=e.querySelector("textarea"),a=Qy({apiPath:"/api/chat/guest"});dK.createRoot(e).render(pK.jsxDEV(fK,{client:a,box:!0,initialDraft:r?.value??"",initialSubmit:t,onAnswered:(n)=>{e.dispatchEvent(new CustomEvent(Fy,{bubbles:!0,detail:zL(n)}))}},void 0,!1,void 0,this))}var fC=document.querySelector("[data-guest-dashboard]"),Q2=document.getElementById("dashboard-tab-ask");if(fC&&Q2){let r=function(){if(!fC||!Q2||e||Q2.getAttribute("aria-selected")!=="true")return;e=!0,t.disconnect(),hK(fC)},e=!1,t=new MutationObserver(r);t.observe(Q2,{attributes:!0,attributeFilter:["aria-selected"]}),r()}
479
479
 
480
- //# debugId=B5F882D81C8A76E064756E2164756E21
480
+ //# debugId=B3F88413746C9E1064756E2164756E21