@volter/twin-x 0.1.0
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.
- package/LICENSE +202 -0
- package/README.md +138 -0
- package/dist/client/x-mirror.bundle.js +321 -0
- package/dist/client/x-mirror.d.ts +45 -0
- package/dist/client/x-mirror.js +417 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +29 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.js +68 -0
- package/dist/src/x-budget.d.ts +54 -0
- package/dist/src/x-budget.js +123 -0
- package/dist/src/x-capabilities.d.ts +3 -0
- package/dist/src/x-capabilities.js +1106 -0
- package/dist/src/x-conformance.d.ts +8 -0
- package/dist/src/x-conformance.js +91 -0
- package/dist/src/x-connector.d.ts +125 -0
- package/dist/src/x-connector.js +546 -0
- package/dist/src/x-media.d.ts +87 -0
- package/dist/src/x-media.js +275 -0
- package/dist/src/x-mirror-ui.d.ts +61 -0
- package/dist/src/x-mirror-ui.js +253 -0
- package/dist/src/x-problems.d.ts +38 -0
- package/dist/src/x-problems.js +130 -0
- package/dist/src/x-scopes.d.ts +7 -0
- package/dist/src/x-scopes.js +62 -0
- package/dist/src/x-server.d.ts +14 -0
- package/dist/src/x-server.js +127 -0
- package/dist/src/x-twin.d.ts +21 -0
- package/dist/src/x-twin.js +1534 -0
- package/package.json +58 -0
- package/src/cli.ts +27 -0
- package/src/index.ts +132 -0
- package/src/x-budget.ts +150 -0
- package/src/x-capabilities.ts +1161 -0
- package/src/x-conformance.ts +113 -0
- package/src/x-connector.ts +546 -0
- package/src/x-media.ts +295 -0
- package/src/x-mirror-ui.ts +263 -0
- package/src/x-problems.ts +143 -0
- package/src/x-scopes.ts +67 -0
- package/src/x-server.ts +126 -0
- package/src/x-twin.ts +1545 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
var ag=Object.create;var{getPrototypeOf:sg,defineProperty:iG,getOwnPropertyNames:mq,getOwnPropertyDescriptor:eg}=Object,lq=Object.prototype.hasOwnProperty;function nq(J){return this[J]}var $x,Ux,t1=(J,I,Y)=>{var W=J!=null&&typeof J==="object";if(W){var X=I?$x??=new WeakMap:Ux??=new WeakMap,K=X.get(J);if(K)return K}Y=J!=null?ag(sg(J)):{};let Z=I||!J||!J.__esModule?iG(Y,"default",{value:J,enumerable:!0}):Y;for(let L of mq(J))if(!lq.call(Z,L))iG(Z,L,{get:nq.bind(J,L),enumerable:!0});if(W)X.set(J,Z);return Z},E$=(J)=>{var I=(pq??=new WeakMap).get(J),Y;if(I)return I;if(I=iG({},"__esModule",{value:!0}),J&&typeof J==="object"||typeof J==="function"){for(var W of mq(J))if(!lq.call(I,W))iG(I,W,{get:nq.bind(J,W),enumerable:!(Y=eg(J,W))||Y.enumerable})}return pq.set(J,I),I},pq,UX=(J,I)=>()=>(I||J((I={exports:{}}).exports,I),I.exports);var Jx=(J)=>J;function Xx(J,I){this[J]=Jx.bind(null,I)}var w6=(J,I)=>{for(var Y in I)iG(J,Y,{get:I[Y],enumerable:!0,configurable:!0,set:Xx.bind(I,Y)})};var CQ=(J,I)=>()=>(J&&(I=J(J=0)),I);var Ix=((J)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(J,{get:(I,Y)=>(typeof require<"u"?require:I)[Y]}):J)(function(J){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+J+'" is not supported')});var dq=UX((Qx)=>{(function(){function J(){if(p=!1,M0){var O=Qx.unstable_now();R0=O;var F=!0;try{$:{g=!1,b&&(b=!1,a(S0),S0=-1),u=!0;var R=w;try{U:{K(O);for(f=Y(q);f!==null&&!(f.expirationTime>O&&L());){var j=f.callback;if(typeof j==="function"){f.callback=null,w=f.priorityLevel;var C=j(f.expirationTime<=O);if(O=Qx.unstable_now(),typeof C==="function"){f.callback=C,K(O),F=!0;break U}f===Y(q)&&W(q),K(O)}else W(q);f=Y(q)}if(f!==null)F=!0;else{var z=Y(B);z!==null&&E(Z,z.startTime-O),F=!1}}break $}finally{f=null,w=R,u=!1}F=void 0}}finally{F?G():M0=!1}}}function I(O,F){var R=O.length;O.push(F);$:for(;0<R;){var j=R-1>>>1,C=O[j];if(0<X(C,F))O[j]=F,O[R]=C,R=j;else break $}}function Y(O){return O.length===0?null:O[0]}function W(O){if(O.length===0)return null;var F=O[0],R=O.pop();if(R!==F){O[0]=R;$:for(var j=0,C=O.length,z=C>>>1;j<z;){var T=2*(j+1)-1,x=O[T],v=T+1,h=O[v];if(0>X(x,R))v<C&&0>X(h,x)?(O[j]=h,O[v]=R,j=v):(O[j]=x,O[T]=R,j=T);else if(v<C&&0>X(h,R))O[j]=h,O[v]=R,j=v;else break $}}return F}function X(O,F){var R=O.sortIndex-F.sortIndex;return R!==0?R:O.id-F.id}function K(O){for(var F=Y(B);F!==null;){if(F.callback===null)W(B);else if(F.startTime<=O)W(B),F.sortIndex=F.expirationTime,I(q,F);else break;F=Y(B)}}function Z(O){if(b=!1,K(O),!g)if(Y(q)!==null)g=!0,M0||(M0=!0,G());else{var F=Y(B);F!==null&&E(Z,F.startTime-O)}}function L(){return p?!0:Qx.unstable_now()-R0<t?!1:!0}function E(O,F){S0=n(function(){O(Qx.unstable_now())},F)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Qx.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var _=performance;Qx.unstable_now=function(){return _.now()}}else{var S=Date,A=S.now();Qx.unstable_now=function(){return S.now()-A}}var q=[],B=[],N=1,f=null,w=3,u=!1,g=!1,b=!1,p=!1,n=typeof setTimeout==="function"?setTimeout:null,a=typeof clearTimeout==="function"?clearTimeout:null,D0=typeof setImmediate<"u"?setImmediate:null,M0=!1,S0=-1,t=5,R0=-1;if(typeof D0==="function")var G=function(){D0(J)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,D=V.port2;V.port1.onmessage=J,G=function(){D.postMessage(null)}}else G=function(){n(J,0)};Qx.unstable_IdlePriority=5,Qx.unstable_ImmediatePriority=1,Qx.unstable_LowPriority=4,Qx.unstable_NormalPriority=3,Qx.unstable_Profiling=null,Qx.unstable_UserBlockingPriority=2,Qx.unstable_cancelCallback=function(O){O.callback=null},Qx.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):t=0<O?Math.floor(1000/O):5},Qx.unstable_getCurrentPriorityLevel=function(){return w},Qx.unstable_next=function(O){switch(w){case 1:case 2:case 3:var F=3;break;default:F=w}var R=w;w=F;try{return O()}finally{w=R}},Qx.unstable_requestPaint=function(){p=!0},Qx.unstable_runWithPriority=function(O,F){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var R=w;w=O;try{return F()}finally{w=R}},Qx.unstable_scheduleCallback=function(O,F,R){var j=Qx.unstable_now();switch(typeof R==="object"&&R!==null?(R=R.delay,R=typeof R==="number"&&0<R?j+R:j):R=j,O){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5000}return C=R+C,O={id:N++,callback:F,priorityLevel:O,startTime:R,expirationTime:C,sortIndex:-1},R>j?(O.sortIndex=R,I(B,O),Y(q)===null&&O===Y(B)&&(b?(a(S0),S0=-1):b=!0,E(Z,R-j))):(O.sortIndex=C,I(q,O),g||u||(g=!0,M0||(M0=!0,G()))),O},Qx.unstable_shouldYield=L,Qx.unstable_wrapCallback=function(O){var F=w;return function(){var R=w;w=F;try{return O.apply(this,arguments)}finally{w=R}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rG=UX((Yx,z8)=>{(function(){function J(m,X0){Object.defineProperty(W.prototype,m,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",X0[0],X0[1])}})}function I(m){if(m===null||typeof m!=="object")return null;return m=e&&m[e]||m["@@iterator"],typeof m==="function"?m:null}function Y(m,X0){m=(m=m.constructor)&&(m.displayName||m.name)||"ReactClass";var e0=m+"."+X0;I0[e0]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",X0,m),I0[e0]=!0)}function W(m,X0,e0){this.props=m,this.context=X0,this.refs=$0,this.updater=e0||Z0}function X(){}function K(m,X0,e0){this.props=m,this.context=X0,this.refs=$0,this.updater=e0||Z0}function Z(){}function L(m){return""+m}function E(m){try{L(m);var X0=!1}catch(N0){X0=!0}if(X0){X0=console;var e0=X0.error,E0=typeof Symbol==="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return e0.call(X0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E0),L(m)}}function _(m){if(m==null)return null;if(typeof m==="function")return m.$$typeof===L0?null:m.displayName||m.name||null;if(typeof m==="string")return m;switch(m){case C:return"Fragment";case T:return"Profiler";case z:return"StrictMode";case r:return"Suspense";case U0:return"SuspenseList";case s:return"Activity"}if(typeof m==="object")switch(typeof m.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case j:return"Portal";case v:return m.displayName||"Context";case x:return(m._context.displayName||"Context")+".Consumer";case h:var X0=m.render;return m=m.displayName,m||(m=X0.displayName||X0.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case K0:return X0=m.displayName||null,X0!==null?X0:_(m.type)||"Memo";case Q0:X0=m._payload,m=m._init;try{return _(m(X0))}catch(e0){}}return null}function S(m){if(m===C)return"<>";if(typeof m==="object"&&m!==null&&m.$$typeof===Q0)return"<...>";try{var X0=_(m);return X0?"<"+X0+">":"<...>"}catch(e0){return"<...>"}}function A(){var m=Y0.A;return m===null?null:m.getOwner()}function q(){return Error("react-stack-top-frame")}function B(m){if(V0.call(m,"key")){var X0=Object.getOwnPropertyDescriptor(m,"key").get;if(X0&&X0.isReactWarning)return!1}return m.key!==void 0}function N(m,X0){function e0(){J0||(J0=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",X0))}e0.isReactWarning=!0,Object.defineProperty(m,"key",{get:e0,configurable:!0})}function f(){var m=_(this.type);return J$[m]||(J$[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function w(m,X0,e0,E0,N0,D$){var x0=e0.ref;return m={$$typeof:R,type:m,key:X0,props:e0,_owner:E0},(x0!==void 0?x0:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:f}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N0}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D$}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function u(m,X0){return X0=w(m.type,X0,m.props,m._owner,m._debugStack,m._debugTask),m._store&&(X0._store.validated=m._store.validated),X0}function g(m){b(m)?m._store&&(m._store.validated=1):typeof m==="object"&&m!==null&&m.$$typeof===Q0&&(m._payload.status==="fulfilled"?b(m._payload.value)&&m._payload.value._store&&(m._payload.value._store.validated=1):m._store&&(m._store.validated=1))}function b(m){return typeof m==="object"&&m!==null&&m.$$typeof===R}function p(m){var X0={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(e0){return X0[e0]})}function n(m,X0){return typeof m==="object"&&m!==null&&m.key!=null?(E(m.key),p(""+m.key)):X0.toString(36)}function a(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status==="string"?m.then(Z,Z):(m.status="pending",m.then(function(X0){m.status==="pending"&&(m.status="fulfilled",m.value=X0)},function(X0){m.status==="pending"&&(m.status="rejected",m.reason=X0)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function D0(m,X0,e0,E0,N0){var D$=typeof m;if(D$==="undefined"||D$==="boolean")m=null;var x0=!1;if(m===null)x0=!0;else switch(D$){case"bigint":case"string":case"number":x0=!0;break;case"object":switch(m.$$typeof){case R:case j:x0=!0;break;case Q0:return x0=m._init,D0(x0(m._payload),X0,e0,E0,N0)}}if(x0){x0=m,N0=N0(x0);var y0=E0===""?"."+n(x0,0):E0;return d(N0)?(e0="",y0!=null&&(e0=y0.replace(m0,"$&/")+"/"),D0(N0,X0,e0,"",function(o0){return o0})):N0!=null&&(b(N0)&&(N0.key!=null&&(x0&&x0.key===N0.key||E(N0.key)),e0=u(N0,e0+(N0.key==null||x0&&x0.key===N0.key?"":(""+N0.key).replace(m0,"$&/")+"/")+y0),E0!==""&&x0!=null&&b(x0)&&x0.key==null&&x0._store&&!x0._store.validated&&(e0._store.validated=2),N0=e0),X0.push(N0)),1}if(x0=0,y0=E0===""?".":E0+":",d(m))for(var V$=0;V$<m.length;V$++)E0=m[V$],D$=y0+n(E0,V$),x0+=D0(E0,X0,e0,D$,N0);else if(V$=I(m),typeof V$==="function")for(V$===m.entries&&(M$||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),M$=!0),m=V$.call(m),V$=0;!(E0=m.next()).done;)E0=E0.value,D$=y0+n(E0,V$++),x0+=D0(E0,X0,e0,D$,N0);else if(D$==="object"){if(typeof m.then==="function")return D0(a(m),X0,e0,E0,N0);throw X0=String(m),Error("Objects are not valid as a React child (found: "+(X0==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":X0)+"). If you meant to render a collection of children, use an array instead.")}return x0}function M0(m,X0,e0){if(m==null)return m;var E0=[],N0=0;return D0(m,E0,"","",function(D$){return X0.call(e0,D$,N0++)}),E0}function S0(m){if(m._status===-1){var X0=m._ioInfo;X0!=null&&(X0.start=X0.end=performance.now()),X0=m._result;var e0=X0();if(e0.then(function(N0){if(m._status===0||m._status===-1){m._status=1,m._result=N0;var D$=m._ioInfo;D$!=null&&(D$.end=performance.now()),e0.status===void 0&&(e0.status="fulfilled",e0.value=N0)}},function(N0){if(m._status===0||m._status===-1){m._status=2,m._result=N0;var D$=m._ioInfo;D$!=null&&(D$.end=performance.now()),e0.status===void 0&&(e0.status="rejected",e0.reason=N0)}}),X0=m._ioInfo,X0!=null){X0.value=e0;var E0=e0.displayName;typeof E0==="string"&&(X0.name=E0)}m._status===-1&&(m._status=0,m._result=e0)}if(m._status===1)return X0=m._result,X0===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
+
|
|
3
|
+
Your code should look like:
|
|
4
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
+
|
|
6
|
+
Did you accidentally put curly braces around the import?`,X0),"default"in X0||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
+
|
|
8
|
+
Your code should look like:
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,X0),X0.default;throw m._result}function t(){var m=Y0.H;return m===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
+
2. You might be breaking the Rules of Hooks
|
|
12
|
+
3. You might have more than one copy of React in the same app
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}function R0(){Y0.asyncTransitions--}function G(m){if(h0===null)try{var X0=("require"+Math.random()).slice(0,7);h0=(z8&&z8[X0]).call(z8,"timers").setImmediate}catch(e0){h0=function(E0){r$===!1&&(r$=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var N0=new MessageChannel;N0.port1.onmessage=E0,N0.port2.postMessage(void 0)}}return h0(m)}function V(m){return 1<m.length&&typeof AggregateError==="function"?AggregateError(m):m[0]}function D(m,X0){X0!==c0-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),c0=X0}function O(m,X0,e0){var E0=Y0.actQueue;if(E0!==null)if(E0.length!==0)try{F(E0),G(function(){return O(m,X0,e0)});return}catch(N0){Y0.thrownErrors.push(N0)}else Y0.actQueue=null;0<Y0.thrownErrors.length?(E0=V(Y0.thrownErrors),Y0.thrownErrors.length=0,e0(E0)):X0(m)}function F(m){if(!t0){t0=!0;var X0=0;try{for(;X0<m.length;X0++){var e0=m[X0];do{Y0.didUsePromise=!1;var E0=e0(!1);if(E0!==null){if(Y0.didUsePromise){m[X0]=e0,m.splice(0,X0);return}e0=E0}else break}while(1)}m.length=0}catch(N0){m.splice(0,X0+1),Y0.thrownErrors.push(N0)}finally{t0=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var R=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),v=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),r=Symbol.for("react.suspense"),U0=Symbol.for("react.suspense_list"),K0=Symbol.for("react.memo"),Q0=Symbol.for("react.lazy"),s=Symbol.for("react.activity"),e=Symbol.iterator,I0={},Z0={isMounted:function(){return!1},enqueueForceUpdate:function(m){Y(m,"forceUpdate")},enqueueReplaceState:function(m){Y(m,"replaceState")},enqueueSetState:function(m){Y(m,"setState")}},C0=Object.assign,$0={};Object.freeze($0),W.prototype.isReactComponent={},W.prototype.setState=function(m,X0){if(typeof m!=="object"&&typeof m!=="function"&&m!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,m,X0,"setState")},W.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};var c={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(PU in c)c.hasOwnProperty(PU)&&J(PU,c[PU]);X.prototype=W.prototype,c=K.prototype=new X,c.constructor=K,C0(c,W.prototype),c.isPureReactComponent=!0;var d=Array.isArray,L0=Symbol.for("react.client.reference"),Y0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},V0=Object.prototype.hasOwnProperty,k0=console.createTask?console.createTask:function(){return null};c={react_stack_bottom_frame:function(m){return m()}};var J0,O0,J$={},A0=c.react_stack_bottom_frame.bind(c,q)(),v0=k0(S(q)),M$=!1,m0=/\/+/g,p0=typeof reportError==="function"?reportError:function(m){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var X0=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(X0))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",m);return}console.error(m)},r$=!1,h0=null,c0=0,YU=!1,t0=!1,i0=typeof queueMicrotask==="function"?function(m){queueMicrotask(function(){return queueMicrotask(m)})}:G;c=Object.freeze({__proto__:null,c:function(m){return t().useMemoCache(m)}});var PU={map:M0,forEach:function(m,X0,e0){M0(m,function(){X0.apply(this,arguments)},e0)},count:function(m){var X0=0;return M0(m,function(){X0++}),X0},toArray:function(m){return M0(m,function(X0){return X0})||[]},only:function(m){if(!b(m))throw Error("React.Children.only expected to receive a single React element child.");return m}};Yx.Activity=s,Yx.Children=PU,Yx.Component=W,Yx.Fragment=C,Yx.Profiler=T,Yx.PureComponent=K,Yx.StrictMode=z,Yx.Suspense=r,Yx.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y0,Yx.__COMPILER_RUNTIME=c,Yx.act=function(m){var X0=Y0.actQueue,e0=c0;c0++;var E0=Y0.actQueue=X0!==null?X0:[],N0=!1;try{var D$=m()}catch(V$){Y0.thrownErrors.push(V$)}if(0<Y0.thrownErrors.length)throw D(X0,e0),m=V(Y0.thrownErrors),Y0.thrownErrors.length=0,m;if(D$!==null&&typeof D$==="object"&&typeof D$.then==="function"){var x0=D$;return i0(function(){N0||YU||(YU=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(V$,o0){N0=!0,x0.then(function(r0){if(D(X0,e0),e0===0){try{F(E0),G(function(){return O(r0,V$,o0)})}catch(s0){Y0.thrownErrors.push(s0)}if(0<Y0.thrownErrors.length){var OU=V(Y0.thrownErrors);Y0.thrownErrors.length=0,o0(OU)}}else V$(r0)},function(r0){D(X0,e0),0<Y0.thrownErrors.length?(r0=V(Y0.thrownErrors),Y0.thrownErrors.length=0,o0(r0)):o0(r0)})}}}var y0=D$;if(D(X0,e0),e0===0&&(F(E0),E0.length!==0&&i0(function(){N0||YU||(YU=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Y0.actQueue=null),0<Y0.thrownErrors.length)throw m=V(Y0.thrownErrors),Y0.thrownErrors.length=0,m;return{then:function(V$,o0){N0=!0,e0===0?(Y0.actQueue=E0,G(function(){return O(y0,V$,o0)})):V$(y0)}}},Yx.cache=function(m){return function(){return m.apply(null,arguments)}},Yx.cacheSignal=function(){return null},Yx.captureOwnerStack=function(){var m=Y0.getCurrentStack;return m===null?null:m()},Yx.cloneElement=function(m,X0,e0){if(m===null||m===void 0)throw Error("The argument must be a React element, but you passed "+m+".");var E0=C0({},m.props),N0=m.key,D$=m._owner;if(X0!=null){var x0;$:{if(V0.call(X0,"ref")&&(x0=Object.getOwnPropertyDescriptor(X0,"ref").get)&&x0.isReactWarning){x0=!1;break $}x0=X0.ref!==void 0}x0&&(D$=A()),B(X0)&&(E(X0.key),N0=""+X0.key);for(y0 in X0)!V0.call(X0,y0)||y0==="key"||y0==="__self"||y0==="__source"||y0==="ref"&&X0.ref===void 0||(E0[y0]=X0[y0])}var y0=arguments.length-2;if(y0===1)E0.children=e0;else if(1<y0){x0=Array(y0);for(var V$=0;V$<y0;V$++)x0[V$]=arguments[V$+2];E0.children=x0}E0=w(m.type,N0,E0,D$,m._debugStack,m._debugTask);for(N0=2;N0<arguments.length;N0++)g(arguments[N0]);return E0},Yx.createContext=function(m){return m={$$typeof:v,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:x,_context:m},m._currentRenderer=null,m._currentRenderer2=null,m},Yx.createElement=function(m,X0,e0){for(var E0=2;E0<arguments.length;E0++)g(arguments[E0]);E0={};var N0=null;if(X0!=null)for(V$ in O0||!("__self"in X0)||"key"in X0||(O0=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),B(X0)&&(E(X0.key),N0=""+X0.key),X0)V0.call(X0,V$)&&V$!=="key"&&V$!=="__self"&&V$!=="__source"&&(E0[V$]=X0[V$]);var D$=arguments.length-2;if(D$===1)E0.children=e0;else if(1<D$){for(var x0=Array(D$),y0=0;y0<D$;y0++)x0[y0]=arguments[y0+2];Object.freeze&&Object.freeze(x0),E0.children=x0}if(m&&m.defaultProps)for(V$ in D$=m.defaultProps,D$)E0[V$]===void 0&&(E0[V$]=D$[V$]);N0&&N(E0,typeof m==="function"?m.displayName||m.name||"Unknown":m);var V$=1e4>Y0.recentlyCreatedOwnerStacks++;return w(m,N0,E0,A(),V$?Error("react-stack-top-frame"):A0,V$?k0(S(m)):v0)},Yx.createRef=function(){var m={current:null};return Object.seal(m),m},Yx.forwardRef=function(m){m!=null&&m.$$typeof===K0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof m!=="function"?console.error("forwardRef requires a render function but was given %s.",m===null?"null":typeof m):m.length!==0&&m.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",m.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),m!=null&&m.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var X0={$$typeof:h,render:m},e0;return Object.defineProperty(X0,"displayName",{enumerable:!1,configurable:!0,get:function(){return e0},set:function(E0){e0=E0,m.name||m.displayName||(Object.defineProperty(m,"name",{value:E0}),m.displayName=E0)}}),X0},Yx.isValidElement=b,Yx.lazy=function(m){m={_status:-1,_result:m};var X0={$$typeof:Q0,_payload:m,_init:S0},e0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return m._ioInfo=e0,X0._debugInfo=[{awaited:e0}],X0},Yx.memo=function(m,X0){m==null&&console.error("memo: The first argument must be a component. Instead received: %s",m===null?"null":typeof m),X0={$$typeof:K0,type:m,compare:X0===void 0?null:X0};var e0;return Object.defineProperty(X0,"displayName",{enumerable:!1,configurable:!0,get:function(){return e0},set:function(E0){e0=E0,m.name||m.displayName||(Object.defineProperty(m,"name",{value:E0}),m.displayName=E0)}}),X0},Yx.startTransition=function(m){var X0=Y0.T,e0={};e0._updatedFibers=new Set,Y0.T=e0;try{var E0=m(),N0=Y0.S;N0!==null&&N0(e0,E0),typeof E0==="object"&&E0!==null&&typeof E0.then==="function"&&(Y0.asyncTransitions++,E0.then(R0,R0),E0.then(Z,p0))}catch(D$){p0(D$)}finally{X0===null&&e0._updatedFibers&&(m=e0._updatedFibers.size,e0._updatedFibers.clear(),10<m&&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.")),X0!==null&&e0.types!==null&&(X0.types!==null&&X0.types!==e0.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."),X0.types=e0.types),Y0.T=X0}},Yx.unstable_useCacheRefresh=function(){return t().useCacheRefresh()},Yx.use=function(m){return t().use(m)},Yx.useActionState=function(m,X0,e0){return t().useActionState(m,X0,e0)},Yx.useCallback=function(m,X0){return t().useCallback(m,X0)},Yx.useContext=function(m){var X0=t();return m.$$typeof===x&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),X0.useContext(m)},Yx.useDebugValue=function(m,X0){return t().useDebugValue(m,X0)},Yx.useDeferredValue=function(m,X0){return t().useDeferredValue(m,X0)},Yx.useEffect=function(m,X0){return m==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useEffect(m,X0)},Yx.useEffectEvent=function(m){return t().useEffectEvent(m)},Yx.useId=function(){return t().useId()},Yx.useImperativeHandle=function(m,X0,e0){return t().useImperativeHandle(m,X0,e0)},Yx.useInsertionEffect=function(m,X0){return m==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useInsertionEffect(m,X0)},Yx.useLayoutEffect=function(m,X0){return m==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useLayoutEffect(m,X0)},Yx.useMemo=function(m,X0){return t().useMemo(m,X0)},Yx.useOptimistic=function(m,X0){return t().useOptimistic(m,X0)},Yx.useReducer=function(m,X0,e0){return t().useReducer(m,X0,e0)},Yx.useRef=function(m){return t().useRef(m)},Yx.useState=function(m){return t().useState(m)},Yx.useSyncExternalStore=function(m,X0,e0){return t().useSyncExternalStore(m,X0,e0)},Yx.useTransition=function(){return t().useTransition()},Yx.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var oq=UX((Gx)=>{var pV=t1(rG());(function(){function J(){}function I(S){return""+S}function Y(S,A,q){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{I(B);var N=!1}catch(f){N=!0}return N&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&B[Symbol.toStringTag]||B.constructor.name||"Object"),I(B)),{$$typeof:E,key:B==null?null:""+B,children:S,containerInfo:A,implementation:q}}function W(S,A){if(S==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function X(S){return S===null?"`null`":S===void 0?"`undefined`":S===""?"an empty string":'something with type "'+typeof S+'"'}function K(S){return S===null?"`null`":S===void 0?"`undefined`":S===""?"an empty string":typeof S==="string"?JSON.stringify(S):typeof S==="number"?"`"+S+"`":'something with type "'+typeof S+'"'}function Z(){var S=_.H;return S===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
|
+
2. You might be breaking the Rules of Hooks
|
|
16
|
+
3. You might have more than one copy of React in the same app
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var L={d:{f:J,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:J,C:J,L:J,m:J,X:J,S:J,M:J},p:0,findDOMNode:null},E=Symbol.for("react.portal"),_=pV.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;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://reactjs.org/link/react-polyfills"),Gx.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Gx.createPortal=function(S,A){var q=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(S,A,null,q)},Gx.flushSync=function(S){var A=_.T,q=L.p;try{if(_.T=null,L.p=2,S)return S()}finally{_.T=A,L.p=q,L.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Gx.preconnect=function(S,A){typeof S==="string"&&S?A!=null&&typeof A!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",K(A)):A!=null&&typeof A.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",X(A.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(S)),typeof S==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,L.d.C(S,A))},Gx.prefetchDNS=function(S){if(typeof S!=="string"||!S)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(S));else if(1<arguments.length){var A=arguments[1];typeof A==="object"&&A.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(A)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(A))}typeof S==="string"&&L.d.D(S)},Gx.preinit=function(S,A){if(typeof S==="string"&&S?A==null||typeof A!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",K(A)):A.as!=="style"&&A.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',K(A.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(S)),typeof S==="string"&&A&&typeof A.as==="string"){var q=A.as,B=W(q,A.crossOrigin),N=typeof A.integrity==="string"?A.integrity:void 0,f=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;q==="style"?L.d.S(S,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:B,integrity:N,fetchPriority:f}):q==="script"&&L.d.X(S,{crossOrigin:B,integrity:N,fetchPriority:f,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},Gx.preinitModule=function(S,A){var q="";if(typeof S==="string"&&S||(q+=" The `href` argument encountered was "+X(S)+"."),A!==void 0&&typeof A!=="object"?q+=" The `options` argument encountered was "+X(A)+".":A&&("as"in A)&&A.as!=="script"&&(q+=" The `as` option encountered was "+K(A.as)+"."),q)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",q);else switch(q=A&&typeof A.as==="string"?A.as:"script",q){case"script":break;default:q=K(q),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',q,S)}if(typeof S==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")q=W(A.as,A.crossOrigin),L.d.M(S,{crossOrigin:q,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&L.d.M(S)},Gx.preload=function(S,A){var q="";if(typeof S==="string"&&S||(q+=" The `href` argument encountered was "+X(S)+"."),A==null||typeof A!=="object"?q+=" The `options` argument encountered was "+X(A)+".":typeof A.as==="string"&&A.as||(q+=" The `as` option encountered was "+X(A.as)+"."),q&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',q),typeof S==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){q=A.as;var B=W(q,A.crossOrigin);L.d.L(S,q,{crossOrigin:B,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},Gx.preloadModule=function(S,A){var q="";typeof S==="string"&&S||(q+=" The `href` argument encountered was "+X(S)+"."),A!==void 0&&typeof A!=="object"?q+=" The `options` argument encountered was "+X(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(q+=" The `as` option encountered was "+X(A.as)+"."),q&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',q),typeof S==="string"&&(A?(q=W(A.as,A.crossOrigin),L.d.m(S,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:q,integrity:typeof A.integrity==="string"?A.integrity:void 0})):L.d.m(S))},Gx.requestFormReset=function(S){L.d.r(S)},Gx.unstable_batchedUpdates=function(S,A){return S(A)},Gx.useFormState=function(S,A,q){return Z().useFormState(S,A,q)},Gx.useFormStatus=function(){return Z().useHostTransitionStatus()},Gx.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rq=UX((_n,iq)=>{var Zx=t1(oq());iq.exports=Zx});var tq=UX((zx)=>{var o$=t1(dq()),TQ=t1(rG()),mV=t1(rq());(function(){function J($,U){for($=$.memoizedState;$!==null&&0<U;)$=$.next,U--;return $}function I($,U,Q,H){if(Q>=U.length)return H;var M=U[Q],P=G6($)?$.slice():y$({},$);return P[M]=I($[M],U,Q+1,H),P}function Y($,U,Q){if(U.length!==Q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var H=0;H<Q.length-1;H++)if(U[H]!==Q[H]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return W($,U,Q,0)}}function W($,U,Q,H){var M=U[H],P=G6($)?$.slice():y$({},$);return H+1===U.length?(P[Q[H]]=P[M],G6(P)?P.splice(M,1):delete P[M]):P[M]=W($[M],U,Q,H+1),P}function X($,U,Q){var H=U[Q],M=G6($)?$.slice():y$({},$);if(Q+1===U.length)return G6(M)?M.splice(H,1):delete M[H],M;return M[H]=X($[H],U,Q+1),M}function K(){return!1}function Z(){return null}function L(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function E(){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().")}function _(){}function S(){}function A($){var U=[];return $.forEach(function(Q){U.push(Q)}),U.sort().join(", ")}function q($,U,Q,H){return new hN($,U,Q,H)}function B($,U){$.context===xJ&&(Z9($.current,2,U,$,null,null),NI())}function N($,U){if(S1!==null){var Q=U.staleFamilies;U=U.updatedFamilies,mY(),iA($.current,U,Q),NI()}}function f($){S1=$}function w($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function u($){var U=$,Q=$;if($.alternate)for(;U.return;)U=U.return;else{$=U;do U=$,(U.flags&4098)!==0&&(Q=U.return),$=U.return;while($)}return U.tag===3?Q:null}function g($){if($.tag===13){var U=$.memoizedState;if(U===null&&($=$.alternate,$!==null&&(U=$.memoizedState)),U!==null)return U.dehydrated}return null}function b($){if($.tag===31){var U=$.memoizedState;if(U===null&&($=$.alternate,$!==null&&(U=$.memoizedState)),U!==null)return U.dehydrated}return null}function p($){if(u($)!==$)throw Error("Unable to find node on an unmounted component.")}function n($){var U=$.alternate;if(!U){if(U=u($),U===null)throw Error("Unable to find node on an unmounted component.");return U!==$?null:$}for(var Q=$,H=U;;){var M=Q.return;if(M===null)break;var P=M.alternate;if(P===null){if(H=M.return,H!==null){Q=H;continue}break}if(M.child===P.child){for(P=M.child;P;){if(P===Q)return p(M),$;if(P===H)return p(M),U;P=P.sibling}throw Error("Unable to find node on an unmounted component.")}if(Q.return!==H.return)Q=M,H=P;else{for(var k=!1,y=M.child;y;){if(y===Q){k=!0,Q=M,H=P;break}if(y===H){k=!0,H=M,Q=P;break}y=y.sibling}if(!k){for(y=P.child;y;){if(y===Q){k=!0,Q=P,H=M;break}if(y===H){k=!0,H=P,Q=M;break}y=y.sibling}if(!k)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(Q.alternate!==H)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(Q.tag!==3)throw Error("Unable to find node on an unmounted component.");return Q.stateNode.current===Q?$:U}function a($){var U=$.tag;if(U===5||U===26||U===27||U===6)return $;for($=$.child;$!==null;){if(U=a($),U!==null)return U;$=$.sibling}return null}function D0($){if($===null||typeof $!=="object")return null;return $=UP&&$[UP]||$["@@iterator"],typeof $==="function"?$:null}function M0($){if($==null)return null;if(typeof $==="function")return $.$$typeof===Gk?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case bI:return"Fragment";case H9:return"Profiler";case Xz:return"StrictMode";case D9:return"Suspense";case L9:return"SuspenseList";case M9:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case yI:return"Portal";case D4:return $.displayName||"Context";case F9:return($._context.displayName||"Context")+".Consumer";case eY:var U=$.render;return $=$.displayName,$||($=U.displayName||U.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case Iz:return U=$.displayName||null,U!==null?U:M0($.type)||"Memo";case z1:U=$._payload,$=$._init;try{return M0($(U))}catch(Q){}}return null}function S0($){return typeof $.tag==="number"?t($):typeof $.name==="string"?$.name:null}function t($){var U=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(U._context.displayName||"Context")+".Consumer";case 10:return U.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=U.render,$=$.displayName||$.name||"",U.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return U;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return M0(U);case 8:return U===Xz?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof U==="function")return U.displayName||U.name||null;if(typeof U==="string")return U;break;case 29:if(U=$._debugInfo,U!=null){for(var Q=U.length-1;0<=Q;Q--)if(typeof U[Q].name==="string")return U[Q].name}if($.return!==null)return t($.return)}return null}function R0($){return{current:$}}function G($,U){0>l4?console.error("Unexpected pop."):(U!==C9[l4]&&console.error("Unexpected Fiber popped."),$.current=A9[l4],A9[l4]=null,C9[l4]=null,l4--)}function V($,U,Q){l4++,A9[l4]=$.current,C9[l4]=Q,$.current=U}function D($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function O($,U){V(EJ,U,$),V($G,$,$),V(jJ,null,$);var Q=U.nodeType;switch(Q){case 9:case 11:Q=Q===9?"#document":"#fragment",U=(U=U.documentElement)?(U=U.namespaceURI)?qR(U):IJ:IJ;break;default:if(Q=U.tagName,U=U.namespaceURI)U=qR(U),U=SR(U,Q);else switch(Q){case"svg":U=MQ;break;case"math":U=J8;break;default:U=IJ}}Q=Q.toLowerCase(),Q=AA(null,Q),Q={context:U,ancestorInfo:Q},G(jJ,$),V(jJ,Q,$)}function F($){G(jJ,$),G($G,$),G(EJ,$)}function R(){return D(jJ.current)}function j($){$.memoizedState!==null&&V(Qz,$,$);var U=D(jJ.current),Q=$.type,H=SR(U.context,Q);Q=AA(U.ancestorInfo,Q),H={context:H,ancestorInfo:Q},U!==H&&(V($G,$,$),V(jJ,H,$))}function C($){$G.current===$&&(G(jJ,$),G($G,$)),Qz.current===$&&(G(Qz,$),nG._currentValue=sX)}function z(){}function T(){if(UG===0){JP=console.log,XP=console.info,IP=console.warn,QP=console.error,YP=console.group,GP=console.groupCollapsed,ZP=console.groupEnd;var $={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}UG++}function x(){if(UG--,UG===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:y$({},$,{value:JP}),info:y$({},$,{value:XP}),warn:y$({},$,{value:IP}),error:y$({},$,{value:QP}),group:y$({},$,{value:YP}),groupCollapsed:y$({},$,{value:GP}),groupEnd:y$({},$,{value:ZP})})}0>UG&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function v($){var U=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=U,$.startsWith(`Error: react-stack-top-frame
|
|
18
|
+
`)&&($=$.slice(29)),U=$.indexOf(`
|
|
19
|
+
`),U!==-1&&($=$.slice(U+1)),U=$.indexOf("react_stack_bottom_frame"),U!==-1&&(U=$.lastIndexOf(`
|
|
20
|
+
`,U)),U!==-1)$=$.slice(0,U);else return"";return $}function h($){if(T9===void 0)try{throw Error()}catch(Q){var U=Q.stack.trim().match(/\n( *(at )?)/);T9=U&&U[1]||"",zP=-1<Q.stack.indexOf(`
|
|
21
|
+
at`)?" (<anonymous>)":-1<Q.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
+
`+T9+$+zP}function r($,U){if(!$||R9)return"";var Q=P9.get($);if(Q!==void 0)return Q;R9=!0,Q=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var H=null;H=b0.H,b0.H=null,T();try{var M={DetermineComponentFrameRoot:function(){try{if(U){var H0=function(){throw Error()};if(Object.defineProperty(H0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(H0,[])}catch(W$){var g0=W$}Reflect.construct($,[],H0)}else{try{H0.call()}catch(W$){g0=W$}$.call(H0.prototype)}}else{try{throw Error()}catch(W$){g0=W$}(H0=$())&&typeof H0.catch==="function"&&H0.catch(function(){})}}catch(W$){if(W$&&g0&&typeof W$.stack==="string")return[W$.stack,g0.stack]}return[null,null]}};M.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var P=Object.getOwnPropertyDescriptor(M.DetermineComponentFrameRoot,"name");P&&P.configurable&&Object.defineProperty(M.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var k=M.DetermineComponentFrameRoot(),y=k[0],l=k[1];if(y&&l){var o=y.split(`
|
|
23
|
+
`),P0=l.split(`
|
|
24
|
+
`);for(k=P=0;P<o.length&&!o[P].includes("DetermineComponentFrameRoot");)P++;for(;k<P0.length&&!P0[k].includes("DetermineComponentFrameRoot");)k++;if(P===o.length||k===P0.length)for(P=o.length-1,k=P0.length-1;1<=P&&0<=k&&o[P]!==P0[k];)k--;for(;1<=P&&0<=k;P--,k--)if(o[P]!==P0[k]){if(P!==1||k!==1)do if(P--,k--,0>k||o[P]!==P0[k]){var _0=`
|
|
25
|
+
`+o[P].replace(" at new "," at ");return $.displayName&&_0.includes("<anonymous>")&&(_0=_0.replace("<anonymous>",$.displayName)),typeof $==="function"&&P9.set($,_0),_0}while(1<=P&&0<=k);break}}}finally{R9=!1,b0.H=H,x(),Error.prepareStackTrace=Q}return o=(o=$?$.displayName||$.name:"")?h(o):"",typeof $==="function"&&P9.set($,o),o}function U0($,U){switch($.tag){case 26:case 27:case 5:return h($.type);case 16:return h("Lazy");case 13:return $.child!==U&&U!==null?h("Suspense Fallback"):h("Suspense");case 19:return h("SuspenseList");case 0:case 15:return r($.type,!1);case 11:return r($.type.render,!1);case 1:return r($.type,!0);case 31:return h("Activity");default:return""}}function K0($){try{var U="",Q=null;do{U+=U0($,Q);var H=$._debugInfo;if(H)for(var M=H.length-1;0<=M;M--){var P=H[M];if(typeof P.name==="string"){var k=U;$:{var{name:y,env:l,debugLocation:o}=P;if(o!=null){var P0=v(o),_0=P0.lastIndexOf(`
|
|
26
|
+
`),H0=_0===-1?P0:P0.slice(_0+1);if(H0.indexOf(y)!==-1){var g0=`
|
|
27
|
+
`+H0;break $}}g0=h(y+(l?" ["+l+"]":""))}U=k+g0}}Q=$,$=$.return}while($);return U}catch(W$){return`
|
|
28
|
+
Error generating stack: `+W$.message+`
|
|
29
|
+
`+W$.stack}}function Q0($){return($=$?$.displayName||$.name:"")?h($):""}function s(){if(K1===null)return null;var $=K1._debugOwner;return $!=null?S0($):null}function e(){if(K1===null)return"";var $=K1;try{var U="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:U+=h($.type);break;case 13:U+=h("Suspense");break;case 19:U+=h("SuspenseList");break;case 31:U+=h("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||U!==""||(U+=Q0($.type));break;case 11:$._debugOwner||U!==""||(U+=Q0($.type.render))}for(;$;)if(typeof $.tag==="number"){var Q=$;$=Q._debugOwner;var H=Q._debugStack;if($&&H){var M=v(H);M!==""&&(U+=`
|
|
30
|
+
`+M)}}else if($.debugStack!=null){var P=$.debugStack;($=$.owner)&&P&&(U+=`
|
|
31
|
+
`+v(P))}else break;var k=U}catch(y){k=`
|
|
32
|
+
Error generating stack: `+y.message+`
|
|
33
|
+
`+y.stack}return k}function I0($,U,Q,H,M,P,k){var y=K1;Z0($);try{return $!==null&&$._debugTask?$._debugTask.run(U.bind(null,Q,H,M,P,k)):U(Q,H,M,P,k)}finally{Z0(y)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Z0($){b0.getCurrentStack=$===null?null:e,L4=!1,K1=$}function C0($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function $0($){try{return c($),!1}catch(U){return!0}}function c($){return""+$}function d($,U){if($0($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",U,C0($)),c($)}function L0($,U){if($0($))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",U,C0($)),c($)}function Y0($){if($0($))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",C0($)),c($)}function V0($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var U=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(U.isDisabled)return!0;if(!U.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{hI=U.inject($),P6=U}catch(Q){console.error("React instrumentation encountered an error: %o.",Q)}return U.checkDCE?!0:!1}function k0($){if(typeof Hk==="function"&&Fk($),P6&&typeof P6.setStrictMode==="function")try{P6.setStrictMode(hI,$)}catch(U){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",U))}}function J0($){return $>>>=0,$===0?32:31-(Dk($)/Lk|0)|0}function O0($){var U=$&42;if(U!==0)return U;switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function J$($,U,Q){var H=$.pendingLanes;if(H===0)return 0;var M=0,P=$.suspendedLanes,k=$.pingedLanes;$=$.warmLanes;var y=H&134217727;return y!==0?(H=y&~P,H!==0?M=O0(H):(k&=y,k!==0?M=O0(k):Q||(Q=y&~$,Q!==0&&(M=O0(Q))))):(y=H&~P,y!==0?M=O0(y):k!==0?M=O0(k):Q||(Q=H&~$,Q!==0&&(M=O0(Q)))),M===0?0:U!==0&&U!==M&&(U&P)===0&&(P=M&-M,Q=U&-U,P>=Q||P===32&&(Q&4194048)!==0)?U:M}function A0($,U){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&U)===0}function v0($,U){switch($){case 1:case 2:case 4:case 8:case 64:return U+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return U+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function M$(){var $=Zz;return Zz<<=1,(Zz&62914560)===0&&(Zz=4194304),$}function m0($){for(var U=[],Q=0;31>Q;Q++)U.push($);return U}function p0($,U){$.pendingLanes|=U,U!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function r$($,U,Q,H,M,P){var k=$.pendingLanes;$.pendingLanes=Q,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=Q,$.entangledLanes&=Q,$.errorRecoveryDisabledLanes&=Q,$.shellSuspendCounter=0;var{entanglements:y,expirationTimes:l,hiddenUpdates:o}=$;for(Q=k&~Q;0<Q;){var P0=31-j6(Q),_0=1<<P0;y[P0]=0,l[P0]=-1;var H0=o[P0];if(H0!==null)for(o[P0]=null,P0=0;P0<H0.length;P0++){var g0=H0[P0];g0!==null&&(g0.lane&=-536870913)}Q&=~_0}H!==0&&h0($,H,0),P!==0&&M===0&&$.tag!==0&&($.suspendedLanes|=P&~(k&~U))}function h0($,U,Q){$.pendingLanes|=U,$.suspendedLanes&=~U;var H=31-j6(U);$.entangledLanes|=U,$.entanglements[H]=$.entanglements[H]|1073741824|Q&261930}function c0($,U){var Q=$.entangledLanes|=U;for($=$.entanglements;Q;){var H=31-j6(Q),M=1<<H;M&U|$[H]&U&&($[H]|=U),Q&=~M}}function YU($,U){var Q=U&-U;return Q=(Q&42)!==0?1:t0(Q),(Q&($.suspendedLanes|U))!==0?0:Q}function t0($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function i0($,U,Q){if(A4)for($=$.pendingUpdatersLaneMap;0<Q;){var H=31-j6(Q),M=1<<H;$[H].add(U),Q&=~M}}function PU($,U){if(A4)for(var{pendingUpdatersLaneMap:Q,memoizedUpdaters:H}=$;0<U;){var M=31-j6(U);$=1<<M,M=Q[M],0<M.size&&(M.forEach(function(P){var k=P.alternate;k!==null&&H.has(k)||H.add(P)}),M.clear()),U&=~$}}function m($){return $&=-$,W1!==0&&W1<$?m1!==0&&m1<$?($&134217727)!==0?C4:zz:m1:W1}function X0(){var $=e$.p;if($!==0)return $;return $=window.event,$===void 0?C4:iR($.type)}function e0($,U){var Q=e$.p;try{return e$.p=$,U()}finally{e$.p=Q}}function E0($){delete $[A6],delete $[E6],delete $[E9],delete $[Mk],delete $[Ak]}function N0($){var U=$[A6];if(U)return U;for(var Q=$.parentNode;Q;){if(U=Q[vJ]||Q[A6]){if(Q=U.alternate,U.child!==null||Q!==null&&Q.child!==null)for($=xR($);$!==null;){if(Q=$[A6])return Q;$=xR($)}return U}$=Q,Q=$.parentNode}return null}function D$($){if($=$[A6]||$[vJ]){var U=$.tag;if(U===5||U===6||U===13||U===31||U===26||U===27||U===3)return $}return null}function x0($){var U=$.tag;if(U===5||U===26||U===27||U===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function y0($){var U=$[KP];return U||(U=$[KP]={hoistableStyles:new Map,hoistableScripts:new Map}),U}function V$($){$[JG]=!0}function o0($,U){r0($,U),r0($+"Capture",U)}function r0($,U){vX[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),vX[$]=U;var Q=$.toLowerCase();B9[Q]=$,$==="onDoubleClick"&&(B9.ondblclick=$);for($=0;$<U.length;$++)WP.add(U[$])}function OU($,U){Ck[U.type]||U.onChange||U.onInput||U.readOnly||U.disabled||U.value==null||($==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),U.onChange||U.readOnly||U.disabled||U.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function s0($){if(p1.call(VP,$))return!0;if(p1.call(OP,$))return!1;if(Tk.test($))return VP[$]=!0;return OP[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function i($,U,Q){if(s0(U)){if(!$.hasAttribute(U)){switch(typeof Q){case"symbol":case"object":return Q;case"function":return Q;case"boolean":if(Q===!1)return Q}return Q===void 0?void 0:null}if($=$.getAttribute(U),$===""&&Q===!0)return!0;return d(Q,U),$===""+Q?Q:$}}function G0($,U,Q){if(s0(U))if(Q===null)$.removeAttribute(U);else{switch(typeof Q){case"undefined":case"function":case"symbol":$.removeAttribute(U);return;case"boolean":var H=U.toLowerCase().slice(0,5);if(H!=="data-"&&H!=="aria-"){$.removeAttribute(U);return}}d(Q,U),$.setAttribute(U,""+Q)}}function q0($,U,Q){if(Q===null)$.removeAttribute(U);else{switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(U);return}d(Q,U),$.setAttribute(U,""+Q)}}function j0($,U,Q,H){if(H===null)$.removeAttribute(Q);else{switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Q);return}d(H,Q),$.setAttributeNS(U,Q,""+H)}}function K$($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return Y0($),$;default:return""}}function d0($){var U=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(U==="checkbox"||U==="radio")}function a0($,U,Q){var H=Object.getOwnPropertyDescriptor($.constructor.prototype,U);if(!$.hasOwnProperty(U)&&typeof H<"u"&&typeof H.get==="function"&&typeof H.set==="function"){var{get:M,set:P}=H;return Object.defineProperty($,U,{configurable:!0,get:function(){return M.call(this)},set:function(k){Y0(k),Q=""+k,P.call(this,k)}}),Object.defineProperty($,U,{enumerable:H.enumerable}),{getValue:function(){return Q},setValue:function(k){Y0(k),Q=""+k},stopTracking:function(){$._valueTracker=null,delete $[U]}}}}function LU($){if(!$._valueTracker){var U=d0($)?"checked":"value";$._valueTracker=a0($,U,""+$[U])}}function X$($){if(!$)return!1;var U=$._valueTracker;if(!U)return!0;var Q=U.getValue(),H="";return $&&(H=d0($)?$.checked?"true":"false":$.value),$=H,$!==Q?(U.setValue($),!0):!1}function U$($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(U){return $.body}}function $U($){return $.replace(Rk,function(U){return"\\"+U.charCodeAt(0).toString(16)+" "})}function I$($,U){U.checked===void 0||U.defaultChecked===void 0||FP||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",s()||"A component",U.type),FP=!0),U.value===void 0||U.defaultValue===void 0||HP||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",s()||"A component",U.type),HP=!0)}function $$($,U,Q,H,M,P,k,y){if($.name="",k!=null&&typeof k!=="function"&&typeof k!=="symbol"&&typeof k!=="boolean"?(d(k,"type"),$.type=k):$.removeAttribute("type"),U!=null)if(k==="number"){if(U===0&&$.value===""||$.value!=U)$.value=""+K$(U)}else $.value!==""+K$(U)&&($.value=""+K$(U));else k!=="submit"&&k!=="reset"||$.removeAttribute("value");U!=null?B$($,k,K$(U)):Q!=null?B$($,k,K$(Q)):H!=null&&$.removeAttribute("value"),M==null&&P!=null&&($.defaultChecked=!!P),M!=null&&($.checked=M&&typeof M!=="function"&&typeof M!=="symbol"),y!=null&&typeof y!=="function"&&typeof y!=="symbol"&&typeof y!=="boolean"?(d(y,"name"),$.name=""+K$(y)):$.removeAttribute("name")}function _U($,U,Q,H,M,P,k,y){if(P!=null&&typeof P!=="function"&&typeof P!=="symbol"&&typeof P!=="boolean"&&(d(P,"type"),$.type=P),U!=null||Q!=null){if(!(P!=="submit"&&P!=="reset"||U!==void 0&&U!==null)){LU($);return}Q=Q!=null?""+K$(Q):"",U=U!=null?""+K$(U):Q,y||U===$.value||($.value=U),$.defaultValue=U}H=H!=null?H:M,H=typeof H!=="function"&&typeof H!=="symbol"&&!!H,$.checked=y?$.checked:!!H,$.defaultChecked=!!H,k!=null&&typeof k!=="function"&&typeof k!=="symbol"&&typeof k!=="boolean"&&(d(k,"name"),$.name=k),LU($)}function B$($,U,Q){U==="number"&&U$($.ownerDocument)===$||$.defaultValue===""+Q||($.defaultValue=""+Q)}function j$($,U){U.value==null&&(typeof U.children==="object"&&U.children!==null?TQ.Children.forEach(U.children,function(Q){Q==null||typeof Q==="string"||typeof Q==="number"||typeof Q==="bigint"||LP||(LP=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):U.dangerouslySetInnerHTML==null||MP||(MP=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),U.selected==null||DP||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),DP=!0)}function UU(){var $=s();return $?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+$+"`.":""}function n$($,U,Q,H){if($=$.options,U){U={};for(var M=0;M<Q.length;M++)U["$"+Q[M]]=!0;for(Q=0;Q<$.length;Q++)M=U.hasOwnProperty("$"+$[Q].value),$[Q].selected!==M&&($[Q].selected=M),M&&H&&($[Q].defaultSelected=!0)}else{Q=""+K$(Q),U=null;for(M=0;M<$.length;M++){if($[M].value===Q){$[M].selected=!0,H&&($[M].defaultSelected=!0);return}U!==null||$[M].disabled||(U=$[M])}U!==null&&(U.selected=!0)}}function uU($,U){for($=0;$<CP.length;$++){var Q=CP[$];if(U[Q]!=null){var H=G6(U[Q]);U.multiple&&!H?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Q,UU()):!U.multiple&&H&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Q,UU())}}U.value===void 0||U.defaultValue===void 0||AP||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),AP=!0)}function hU($,U){U.value===void 0||U.defaultValue===void 0||TP||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",s()||"A component"),TP=!0),U.children!=null&&U.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function cU($,U,Q){if(U!=null&&(U=""+K$(U),U!==$.value&&($.value=U),Q==null)){$.defaultValue!==U&&($.defaultValue=U);return}$.defaultValue=Q!=null?""+K$(Q):""}function pU($,U,Q,H){if(U==null){if(H!=null){if(Q!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(G6(H)){if(1<H.length)throw Error("<textarea> can only have at most one child.");H=H[0]}Q=H}Q==null&&(Q=""),U=Q}Q=K$(U),$.defaultValue=Q,H=$.textContent,H===Q&&H!==""&&H!==null&&($.value=H),LU($)}function mU($,U){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-U?mU($.children[0],U):$}function t$($){return" "+" ".repeat($)}function MU($){return"+ "+" ".repeat($)}function VU($){return"- "+" ".repeat($)}function lU($){switch($.tag){case 26:case 27:case 5:return $.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return $=$.type,$.displayName||$.name||null;case 11:return $=$.type.render,$.displayName||$.name||null;case 1:return $=$.type,$.displayName||$.name||null;default:return null}}function qU($,U){return RP.test($)?($=JSON.stringify($),$.length>U-2?8>U?'{"..."}':"{"+$.slice(0,U-7)+'..."}':"{"+$+"}"):$.length>U?5>U?'{"..."}':$.slice(0,U-3)+"...":$}function NU($,U,Q){var H=120-2*Q;if(U===null)return MU(Q)+qU($,H)+`
|
|
36
|
+
`;if(typeof U==="string"){for(var M=0;M<U.length&&M<$.length&&U.charCodeAt(M)===$.charCodeAt(M);M++);return M>H-8&&10<M&&($="..."+$.slice(M-8),U="..."+U.slice(M-8)),MU(Q)+qU($,H)+`
|
|
37
|
+
`+VU(Q)+qU(U,H)+`
|
|
38
|
+
`}return t$(Q)+qU($,H)+`
|
|
39
|
+
`}function xU($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(U,Q){return Q})}function SU($,U){switch(typeof $){case"string":return $=JSON.stringify($),$.length>U?5>U?'"..."':$.slice(0,U-4)+'..."':$;case"object":if($===null)return"null";if(G6($))return"[...]";if($.$$typeof===F4)return(U=M0($.type))?"<"+U+">":"<...>";var Q=xU($);if(Q==="Object"){Q="",U-=2;for(var H in $)if($.hasOwnProperty(H)){var M=JSON.stringify(H);if(M!=='"'+H+'"'&&(H=M),U-=H.length-2,M=SU($[H],15>U?U:15),U-=M.length,0>U){Q+=Q===""?"...":", ...";break}Q+=(Q===""?"":",")+H+":"+M}return"{"+Q+"}"}return Q;case"function":return(U=$.displayName||$.name)?"function "+U:"function";default:return String($)}}function AU($,U){return typeof $!=="string"||RP.test($)?"{"+SU($,U-2)+"}":$.length>U-2?5>U?'"..."':'"'+$.slice(0,U-5)+'..."':'"'+$+'"'}function FX($,U,Q){var H=120-Q.length-$.length,M=[],P;for(P in U)if(U.hasOwnProperty(P)&&P!=="children"){var k=AU(U[P],120-Q.length-P.length-1);H-=P.length+k.length+2,M.push(P+"="+k)}return M.length===0?Q+"<"+$+`>
|
|
40
|
+
`:0<H?Q+"<"+$+" "+M.join(" ")+`>
|
|
41
|
+
`:Q+"<"+$+`
|
|
42
|
+
`+Q+" "+M.join(`
|
|
43
|
+
`+Q+" ")+`
|
|
44
|
+
`+Q+`>
|
|
45
|
+
`}function MY($,U,Q){var H="",M=y$({},U),P;for(P in $)if($.hasOwnProperty(P)){delete M[P];var k=120-2*Q-P.length-2,y=SU($[P],k);U.hasOwnProperty(P)?(k=SU(U[P],k),H+=MU(Q)+P+": "+y+`
|
|
46
|
+
`,H+=VU(Q)+P+": "+k+`
|
|
47
|
+
`):H+=MU(Q)+P+": "+y+`
|
|
48
|
+
`}for(var l in M)M.hasOwnProperty(l)&&($=SU(M[l],120-2*Q-l.length-2),H+=VU(Q)+l+": "+$+`
|
|
49
|
+
`);return H}function AY($,U,Q,H){var M="",P=new Map;for(o in Q)Q.hasOwnProperty(o)&&P.set(o.toLowerCase(),o);if(P.size===1&&P.has("children"))M+=FX($,U,t$(H));else{for(var k in U)if(U.hasOwnProperty(k)&&k!=="children"){var y=120-2*(H+1)-k.length-1,l=P.get(k.toLowerCase());if(l!==void 0){P.delete(k.toLowerCase());var o=U[k];l=Q[l];var P0=AU(o,y);y=AU(l,y),typeof o==="object"&&o!==null&&typeof l==="object"&&l!==null&&xU(o)==="Object"&&xU(l)==="Object"&&(2<Object.keys(o).length||2<Object.keys(l).length||-1<P0.indexOf("...")||-1<y.indexOf("..."))?M+=t$(H+1)+k+`={{
|
|
50
|
+
`+MY(o,l,H+2)+t$(H+1)+`}}
|
|
51
|
+
`:(M+=MU(H+1)+k+"="+P0+`
|
|
52
|
+
`,M+=VU(H+1)+k+"="+y+`
|
|
53
|
+
`)}else M+=t$(H+1)+k+"="+AU(U[k],y)+`
|
|
54
|
+
`}P.forEach(function(_0){if(_0!=="children"){var H0=120-2*(H+1)-_0.length-1;M+=VU(H+1)+_0+"="+AU(Q[_0],H0)+`
|
|
55
|
+
`}}),M=M===""?t$(H)+"<"+$+`>
|
|
56
|
+
`:t$(H)+"<"+$+`
|
|
57
|
+
`+M+t$(H)+`>
|
|
58
|
+
`}if($=Q.children,U=U.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(P="",typeof U==="string"||typeof U==="number"||typeof U==="bigint")P=""+U;M+=NU(P,""+$,H+1)}else if(typeof U==="string"||typeof U==="number"||typeof U==="bigint")M=$==null?M+NU(""+U,null,H+1):M+NU(""+U,void 0,H+1);return M}function LA($,U){var Q=lU($);if(Q===null){Q="";for($=$.child;$;)Q+=LA($,U),$=$.sibling;return Q}return t$(U)+"<"+Q+`>
|
|
59
|
+
`}function HW($,U){var Q=mU($,U);if(Q!==$&&($.children.length!==1||$.children[0]!==Q))return t$(U)+`...
|
|
60
|
+
`+HW(Q,U+1);Q="";var H=$.fiber._debugInfo;if(H)for(var M=0;M<H.length;M++){var P=H[M].name;typeof P==="string"&&(Q+=t$(U)+"<"+P+`>
|
|
61
|
+
`,U++)}if(H="",M=$.fiber.pendingProps,$.fiber.tag===6)H=NU(M,$.serverProps,U),U++;else if(P=lU($.fiber),P!==null)if($.serverProps===void 0){H=U;var k=120-2*H-P.length-2,y="";for(o in M)if(M.hasOwnProperty(o)&&o!=="children"){var l=AU(M[o],15);if(k-=o.length+l.length+2,0>k){y+=" ...";break}y+=" "+o+"="+l}H=t$(H)+"<"+P+y+`>
|
|
62
|
+
`,U++}else $.serverProps===null?(H=FX(P,M,MU(U)),U++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(H=AY(P,M,$.serverProps,U),U++);var o="";M=$.fiber.child;for(P=0;M&&P<$.children.length;)k=$.children[P],k.fiber===M?(o+=HW(k,U),P++):o+=LA(M,U),M=M.sibling;M&&0<$.children.length&&(o+=t$(U)+`...
|
|
63
|
+
`),M=$.serverTail,$.serverProps===null&&U--;for($=0;$<M.length;$++)P=M[$],o=typeof P==="string"?o+(VU(U)+qU(P,120-2*U)+`
|
|
64
|
+
`):o+FX(P.type,P.props,VU(U));return Q+H+o}function FW($){try{return`
|
|
65
|
+
|
|
66
|
+
`+HW($,0)}catch(U){return""}}function MA($,U,Q){for(var H=U,M=null,P=0;H;)H===$&&(P=0),M={fiber:H,children:M!==null?[M]:[],serverProps:H===U?Q:H===$?null:void 0,serverTail:[],distanceFromLeaf:P},P++,H=H.return;return M!==null?FW(M).replaceAll(/^[+-]/gm,">"):""}function AA($,U){var Q=y$({},$||_P),H={tag:U};if(PP.indexOf(U)!==-1&&(Q.aTagInScope=null,Q.buttonTagInScope=null,Q.nobrTagInScope=null),_k.indexOf(U)!==-1&&(Q.pTagInButtonScope=null),Pk.indexOf(U)!==-1&&U!=="address"&&U!=="div"&&U!=="p"&&(Q.listItemTagAutoclosing=null,Q.dlItemTagAutoclosing=null),Q.current=H,U==="form"&&(Q.formTag=H),U==="a"&&(Q.aTagInScope=H),U==="button"&&(Q.buttonTagInScope=H),U==="nobr"&&(Q.nobrTagInScope=H),U==="p"&&(Q.pTagInButtonScope=H),U==="li"&&(Q.listItemTagAutoclosing=H),U==="dd"||U==="dt")Q.dlItemTagAutoclosing=H;return U==="#document"||U==="html"?Q.containerTagInScope=null:Q.containerTagInScope||(Q.containerTagInScope=H),$!==null||U!=="#document"&&U!=="html"&&U!=="body"?Q.implicitRootScope===!0&&(Q.implicitRootScope=!1):Q.implicitRootScope=!0,Q}function CA($,U,Q){switch(U){case"select":return $==="hr"||$==="option"||$==="optgroup"||$==="script"||$==="template"||$==="#text";case"optgroup":return $==="option"||$==="#text";case"option":return $==="#text";case"tr":return $==="th"||$==="td"||$==="style"||$==="script"||$==="template";case"tbody":case"thead":case"tfoot":return $==="tr"||$==="style"||$==="script"||$==="template";case"colgroup":return $==="col"||$==="template";case"table":return $==="caption"||$==="colgroup"||$==="tbody"||$==="tfoot"||$==="thead"||$==="style"||$==="script"||$==="template";case"head":return $==="base"||$==="basefont"||$==="bgsound"||$==="link"||$==="meta"||$==="title"||$==="noscript"||$==="noframes"||$==="style"||$==="script"||$==="template";case"html":if(Q)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!Q)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return U!=="h1"&&U!=="h2"&&U!=="h3"&&U!=="h4"&&U!=="h5"&&U!=="h6";case"rp":case"rt":return qk.indexOf(U)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return U==null;case"head":return Q||U===null;case"html":return Q&&U==="#document"||U===null;case"body":return Q&&(U==="#document"||U==="html")||U===null}return!0}function CN($,U){switch($){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return U.pTagInButtonScope;case"form":return U.formTag||U.pTagInButtonScope;case"li":return U.listItemTagAutoclosing;case"dd":case"dt":return U.dlItemTagAutoclosing;case"button":return U.buttonTagInScope;case"a":return U.aTagInScope;case"nobr":return U.nobrTagInScope}return null}function TA($,U){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===U)return $}$=$.return}return null}function DW($,U){U=U||_P;var Q=U.current;if(U=(Q=CA($,Q&&Q.tag,U.implicitRootScope)?null:Q)?null:CN($,U),U=Q||U,!U)return!0;var H=U.tag;if(U=String(!!Q)+"|"+$+"|"+H,Kz[U])return!1;Kz[U]=!0;var M=(U=K1)?TA(U.return,H):null,P=U!==null&&M!==null?MA(M,U,null):"",k="<"+$+">";return Q?(Q="",H==="table"&&$==="tr"&&(Q+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
|
+
This will cause a hydration error.%s`,k,H,Q,P)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,k,H,P),U&&($=U.return,M===null||$===null||M===$&&$._debugOwner===U._debugOwner||I0(M,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,H,k)})),!1}function e2($,U,Q){if(Q||CA("#text",U,!1))return!0;if(Q="#text|"+U,Kz[Q])return!1;Kz[Q]=!0;var H=(Q=K1)?TA(Q,U):null;return Q=Q!==null&&H!==null?MA(H,Q,Q.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
+
This will cause a hydration error.%s`,U,Q):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`,U,Q),!1}function CY($,U){if(U){var Q=$.firstChild;if(Q&&Q===$.lastChild&&Q.nodeType===3){Q.nodeValue=U;return}}$.textContent=U}function TN($){return $.replace(Ek,function(U,Q){return Q.toUpperCase()})}function RA($,U,Q){var H=U.indexOf("--")===0;H||(-1<U.indexOf("-")?cI.hasOwnProperty(U)&&cI[U]||(cI[U]=!0,console.error("Unsupported style property %s. Did you mean %s?",U,TN(U.replace(jk,"ms-")))):Sk.test(U)?cI.hasOwnProperty(U)&&cI[U]||(cI[U]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",U,U.charAt(0).toUpperCase()+U.slice(1))):!jP.test(Q)||N9.hasOwnProperty(Q)&&N9[Q]||(N9[Q]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,U,Q.replace(jP,""))),typeof Q==="number"&&(isNaN(Q)?EP||(EP=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",U)):isFinite(Q)||BP||(BP=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",U)))),Q==null||typeof Q==="boolean"||Q===""?H?$.setProperty(U,""):U==="float"?$.cssFloat="":$[U]="":H?$.setProperty(U,Q):typeof Q!=="number"||Q===0||vP.has(U)?U==="float"?$.cssFloat=Q:(L0(Q,U),$[U]=(""+Q).trim()):$[U]=Q+"px"}function PA($,U,Q){if(U!=null&&typeof U!=="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(U&&Object.freeze(U),$=$.style,Q!=null){if(U){var H={};if(Q){for(var M in Q)if(Q.hasOwnProperty(M)&&!U.hasOwnProperty(M))for(var P=v9[M]||[M],k=0;k<P.length;k++)H[P[k]]=M}for(var y in U)if(U.hasOwnProperty(y)&&(!Q||Q[y]!==U[y]))for(M=v9[y]||[y],P=0;P<M.length;P++)H[M[P]]=y;y={};for(var l in U)for(M=v9[l]||[l],P=0;P<M.length;P++)y[M[P]]=l;l={};for(var o in H)if(M=H[o],(P=y[o])&&M!==P&&(k=M+","+P,!l[k])){l[k]=!0,k=console;var P0=U[M];k.error.call(k,"%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.",P0==null||typeof P0==="boolean"||P0===""?"Removing":"Updating",M,P)}}for(var _0 in Q)!Q.hasOwnProperty(_0)||U!=null&&U.hasOwnProperty(_0)||(_0.indexOf("--")===0?$.setProperty(_0,""):_0==="float"?$.cssFloat="":$[_0]="");for(var H0 in U)o=U[H0],U.hasOwnProperty(H0)&&Q[H0]!==o&&RA($,H0,o)}else for(H in U)U.hasOwnProperty(H)&&RA($,H,U[H])}function TY($){if($.indexOf("-")===-1)return!1;switch($){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 _A($){return Bk.get($)||$}function RN($,U){if(p1.call(mI,U)&&mI[U])return!0;if(Nk.test(U)){if($="aria-"+U.slice(4).toLowerCase(),$=NP.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",U),mI[U]=!0;if(U!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",U,$),mI[U]=!0}if(vk.test(U)){if($=U.toLowerCase(),$=NP.hasOwnProperty($)?$:null,$==null)return mI[U]=!0,!1;U!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",U,$),mI[U]=!0)}return!0}function PN($,U){var Q=[],H;for(H in U)RN($,H)||Q.push(H);U=Q.map(function(M){return"`"+M+"`"}).join(", "),Q.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",U,$):1<Q.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",U,$)}function _N($,U,Q,H){if(p1.call(B6,U)&&B6[U])return!0;var M=U.toLowerCase();if(M==="onfocusin"||M==="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."),B6[U]=!0;if(typeof Q==="function"&&($==="form"&&U==="action"||$==="input"&&U==="formAction"||$==="button"&&U==="formAction"))return!0;if(H!=null){if($=H.possibleRegistrationNames,H.registrationNameDependencies.hasOwnProperty(U))return!0;if(H=$.hasOwnProperty(M)?$[M]:null,H!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",U,H),B6[U]=!0;if(gP.test(U))return console.error("Unknown event handler property `%s`. It will be ignored.",U),B6[U]=!0}else if(gP.test(U))return kk.test(U)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",U),B6[U]=!0;if(gk.test(U)||xk.test(U))return!0;if(M==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),B6[U]=!0;if(M==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),B6[U]=!0;if(M==="is"&&Q!==null&&Q!==void 0&&typeof Q!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Q),B6[U]=!0;if(typeof Q==="number"&&isNaN(Q))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",U),B6[U]=!0;if(Oz.hasOwnProperty(M)){if(M=Oz[M],M!==U)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",U,M),B6[U]=!0}else if(U!==M)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.",U,M),B6[U]=!0;switch(U){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 Q){case"boolean":switch(U){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(M=U.toLowerCase().slice(0,5),M==="data-"||M==="aria-")return!0;return Q?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()}.',Q,U,U,Q,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()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',Q,U,U,Q,U,U,U),B6[U]=!0}case"function":case"symbol":return B6[U]=!0,!1;case"string":if(Q==="false"||Q==="true"){switch(U){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}?",Q,U,Q==="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".',U,Q),B6[U]=!0}}return!0}function qN($,U,Q){var H=[],M;for(M in U)_N($,M,U[M],Q)||H.push(M);U=H.map(function(P){return"`"+P+"`"}).join(", "),H.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 ",U,$):1<H.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 ",U,$)}function RY($){return wk.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function f4(){}function LW($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function qA($){var U=D$($);if(U&&($=U.stateNode)){var Q=$[E6]||null;$:switch($=U.stateNode,U.type){case"input":if($$($,Q.value,Q.defaultValue,Q.defaultValue,Q.checked,Q.defaultChecked,Q.type,Q.name),U=Q.name,Q.type==="radio"&&U!=null){for(Q=$;Q.parentNode;)Q=Q.parentNode;d(U,"name"),Q=Q.querySelectorAll('input[name="'+$U(""+U)+'"][type="radio"]');for(U=0;U<Q.length;U++){var H=Q[U];if(H!==$&&H.form===$.form){var M=H[E6]||null;if(!M)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");$$(H,M.value,M.defaultValue,M.defaultValue,M.checked,M.defaultChecked,M.type,M.name)}}for(U=0;U<Q.length;U++)H=Q[U],H.form===$.form&&X$(H)}break $;case"textarea":cU($,Q.value,Q.defaultValue);break $;case"select":U=Q.value,U!=null&&n$($,!!Q.multiple,U,!1)}}}function SA($,U,Q){if(k9)return $(U,Q);k9=!0;try{var H=$(U);return H}finally{if(k9=!1,lI!==null||nI!==null){if(NI(),lI&&(U=lI,$=nI,nI=lI=null,qA(U),$))for(U=0;U<$.length;U++)qA($[U])}}}function PY($,U){var Q=$.stateNode;if(Q===null)return null;var H=Q[E6]||null;if(H===null)return null;Q=H[U];$:switch(U){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(H=!H.disabled)||($=$.type,H=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!H;break $;default:$=!1}if($)return null;if(Q&&typeof Q!=="function")throw Error("Expected `"+U+"` listener to be a function, instead got a value of `"+typeof Q+"` type.");return Q}function jA(){if(Vz)return Vz;var $,U=x9,Q=U.length,H,M="value"in NJ?NJ.value:NJ.textContent,P=M.length;for($=0;$<Q&&U[$]===M[$];$++);var k=Q-$;for(H=1;H<=k&&U[Q-H]===M[P-H];H++);return Vz=M.slice($,1<H?1-H:void 0)}function $Z($){var U=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&U===13&&($=13)):$=U,$===10&&($=13),32<=$||$===13?$:0}function UZ(){return!0}function EA(){return!1}function m6($){function U(Q,H,M,P,k){this._reactName=Q,this._targetInst=M,this.type=H,this.nativeEvent=P,this.target=k,this.currentTarget=null;for(var y in $)$.hasOwnProperty(y)&&(Q=$[y],this[y]=Q?Q(P):P[y]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?UZ:EA,this.isPropagationStopped=EA,this}return y$(U.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Q=this.nativeEvent;Q&&(Q.preventDefault?Q.preventDefault():typeof Q.returnValue!=="unknown"&&(Q.returnValue=!1),this.isDefaultPrevented=UZ)},stopPropagation:function(){var Q=this.nativeEvent;Q&&(Q.stopPropagation?Q.stopPropagation():typeof Q.cancelBubble!=="unknown"&&(Q.cancelBubble=!0),this.isPropagationStopped=UZ)},persist:function(){},isPersistent:UZ}),U}function SN($){var U=this.nativeEvent;return U.getModifierState?U.getModifierState($):($=ik[$])?!!U[$]:!1}function MW(){return SN}function BA($,U){switch($){case"keyup":return Yg.indexOf(U.keyCode)!==-1;case"keydown":return U.keyCode!==yP;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vA($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function jN($,U){switch($){case"compositionend":return vA(U);case"keypress":if(U.which!==uP)return null;return cP=!0,hP;case"textInput":return $=U.data,$===hP&&cP?null:$;default:return null}}function EN($,U){if(dI)return $==="compositionend"||!b9&&BA($,U)?($=jA(),Vz=x9=NJ=null,dI=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(U.ctrlKey||U.altKey||U.metaKey)||U.ctrlKey&&U.altKey){if(U.char&&1<U.char.length)return U.char;if(U.which)return String.fromCharCode(U.which)}return null;case"compositionend":return bP&&U.locale!=="ko"?null:U.data;default:return null}}function NA($){var U=$&&$.nodeName&&$.nodeName.toLowerCase();return U==="input"?!!Zg[$.type]:U==="textarea"?!0:!1}function BN($){if(!T4)return!1;$="on"+$;var U=$ in document;return U||(U=document.createElement("div"),U.setAttribute($,"return;"),U=typeof U[$]==="function"),U}function kA($,U,Q,H){lI?nI?nI.push(H):nI=[H]:lI=H,U=oZ(U,"onChange"),0<U.length&&(Q=new Hz("onChange","change",null,Q,H),$.push({event:Q,listeners:U}))}function vN($){HR($,0)}function JZ($){var U=x0($);if(X$(U))return $}function gA($,U){if($==="change")return U}function xA(){ZG&&(ZG.detachEvent("onpropertychange",wA),zG=ZG=null)}function wA($){if($.propertyName==="value"&&JZ(zG)){var U=[];kA(U,zG,$,LW($)),SA(vN,U)}}function NN($,U,Q){$==="focusin"?(xA(),ZG=U,zG=Q,ZG.attachEvent("onpropertychange",wA)):$==="focusout"&&xA()}function kN($){if($==="selectionchange"||$==="keyup"||$==="keydown")return JZ(zG)}function gN($,U){if($==="click")return JZ(U)}function xN($,U){if($==="input"||$==="change")return JZ(U)}function wN($,U){return $===U&&($!==0||1/$===1/U)||$!==$&&U!==U}function _Y($,U){if(v6($,U))return!0;if(typeof $!=="object"||$===null||typeof U!=="object"||U===null)return!1;var Q=Object.keys($),H=Object.keys(U);if(Q.length!==H.length)return!1;for(H=0;H<Q.length;H++){var M=Q[H];if(!p1.call(U,M)||!v6($[M],U[M]))return!1}return!0}function fA($){for(;$&&$.firstChild;)$=$.firstChild;return $}function yA($,U){var Q=fA($);$=0;for(var H;Q;){if(Q.nodeType===3){if(H=$+Q.textContent.length,$<=U&&H>=U)return{node:Q,offset:U-$};$=H}$:{for(;Q;){if(Q.nextSibling){Q=Q.nextSibling;break $}Q=Q.parentNode}Q=void 0}Q=fA(Q)}}function bA($,U){return $&&U?$===U?!0:$&&$.nodeType===3?!1:U&&U.nodeType===3?bA($,U.parentNode):("contains"in $)?$.contains(U):$.compareDocumentPosition?!!($.compareDocumentPosition(U)&16):!1:!1}function uA($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var U=U$($.document);U instanceof $.HTMLIFrameElement;){try{var Q=typeof U.contentWindow.location.href==="string"}catch(H){Q=!1}if(Q)$=U.contentWindow;else break;U=U$($.document)}return U}function AW($){var U=$&&$.nodeName&&$.nodeName.toLowerCase();return U&&(U==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||U==="textarea"||$.contentEditable==="true")}function hA($,U,Q){var H=Q.window===Q?Q.document:Q.nodeType===9?Q:Q.ownerDocument;h9||oI==null||oI!==U$(H)||(H=oI,("selectionStart"in H)&&AW(H)?H={start:H.selectionStart,end:H.selectionEnd}:(H=(H.ownerDocument&&H.ownerDocument.defaultView||window).getSelection(),H={anchorNode:H.anchorNode,anchorOffset:H.anchorOffset,focusNode:H.focusNode,focusOffset:H.focusOffset}),KG&&_Y(KG,H)||(KG=H,H=oZ(u9,"onSelect"),0<H.length&&(U=new Hz("onSelect","select",null,U,Q),$.push({event:U,listeners:H}),U.target=oI)))}function DX($,U){var Q={};return Q[$.toLowerCase()]=U.toLowerCase(),Q["Webkit"+$]="webkit"+U,Q["Moz"+$]="moz"+U,Q}function LX($){if(c9[$])return c9[$];if(!iI[$])return $;var U=iI[$],Q;for(Q in U)if(U.hasOwnProperty(Q)&&Q in mP)return c9[$]=U[Q];return $}function u1($,U){iP.set($,U),o0(U,[$])}function fN($){for(var U=Dz,Q=0;Q<$.length;Q++){var H=$[Q];if(typeof H==="object"&&H!==null)if(G6(H)&&H.length===2&&typeof H[0]==="string"){if(U!==Dz&&U!==d9)return l9;U=d9}else return l9;else{if(typeof H==="function"||typeof H==="string"&&50<H.length||U!==Dz&&U!==n9)return l9;U=n9}}return U}function CW($,U,Q,H){for(var M in $)p1.call($,M)&&M[0]!=="_"&&e1(M,$[M],U,Q,H)}function e1($,U,Q,H,M){switch(typeof U){case"object":if(U===null){U="null";break}else{if(U.$$typeof===F4){var P=M0(U.type)||"…",k=U.key;U=U.props;var y=Object.keys(U),l=y.length;if(k==null&&l===0){U="<"+P+" />";break}if(3>H||l===1&&y[0]==="children"&&k==null){U="<"+P+" … />";break}Q.push([M+" ".repeat(H)+$,"<"+P]),k!==null&&e1("key",k,Q,H+1,M),$=!1;for(var o in U)o==="children"?U.children!=null&&(!G6(U.children)||0<U.children.length)&&($=!0):p1.call(U,o)&&o[0]!=="_"&&e1(o,U[o],Q,H+1,M);Q.push(["",$?">…</"+P+">":"/>"]);return}if(P=Object.prototype.toString.call(U),P=P.slice(8,P.length-1),P==="Array"){if(o=fN(U),o===n9||o===Dz){U=JSON.stringify(U);break}else if(o===d9){Q.push([M+" ".repeat(H)+$,""]);for($=0;$<U.length;$++)P=U[$],e1(P[0],P[1],Q,H+1,M);return}}if(P==="Promise"){if(U.status==="fulfilled"){if(P=Q.length,e1($,U.value,Q,H,M),Q.length>P){Q=Q[P],Q[1]="Promise<"+(Q[1]||"Object")+">";return}}else if(U.status==="rejected"&&(P=Q.length,e1($,U.reason,Q,H,M),Q.length>P)){Q=Q[P],Q[1]="Rejected Promise<"+Q[1]+">";return}Q.push([" ".repeat(H)+$,"Promise"]);return}P==="Object"&&(o=Object.getPrototypeOf(U))&&typeof o.constructor==="function"&&(P=o.constructor.name),Q.push([M+" ".repeat(H)+$,P==="Object"?3>H?"":"…":P]),3>H&&CW(U,Q,H+1,M);return}case"function":U=U.name===""?"() => {}":U.name+"() {}";break;case"string":U=U===Fg?"…":JSON.stringify(U);break;case"undefined":U="undefined";break;case"boolean":U=U?"true":"false";break;default:U=String(U)}Q.push([M+" ".repeat(H)+$,U])}function cA($,U,Q,H){var M=!0;for(k in $)k in U||(Q.push([Lz+" ".repeat(H)+k,"…"]),M=!1);for(var P in U)if(P in $){var k=$[P],y=U[P];if(k!==y){if(H===0&&P==="children")M=" ".repeat(H)+P,Q.push([Lz+M,"…"],[Mz+M,"…"]);else{if(!(3<=H)){if(typeof k==="object"&&typeof y==="object"&&k!==null&&y!==null&&k.$$typeof===y.$$typeof)if(y.$$typeof===F4){if(k.type===y.type&&k.key===y.key){k=M0(y.type)||"…",M=" ".repeat(H)+P,k="<"+k+" … />",Q.push([Lz+M,k],[Mz+M,k]),M=!1;continue}}else{var l=Object.prototype.toString.call(k),o=Object.prototype.toString.call(y);if(l===o&&(o==="[object Object]"||o==="[object Array]")){l=[aP+" ".repeat(H)+P,o==="[object Array]"?"Array":""],Q.push(l),o=Q.length,cA(k,y,Q,H+1)?o===Q.length&&(l[1]="Referentially unequal but deeply equal objects. Consider memoization."):M=!1;continue}}else if(typeof k==="function"&&typeof y==="function"&&k.name===y.name&&k.length===y.length&&(l=Function.prototype.toString.call(k),o=Function.prototype.toString.call(y),l===o)){k=y.name===""?"() => {}":y.name+"() {}",Q.push([aP+" ".repeat(H)+P,k+" Referentially unequal function closure. Consider memoization."]);continue}}e1(P,k,Q,H,Lz),e1(P,y,Q,H,Mz)}M=!1}}else Q.push([Mz+" ".repeat(H)+P,"…"]),M=!1;return M}function J1($){u$=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function $4($,U,Q,H){CU&&(gJ.start=U,gJ.end=Q,n4.color="warning",n4.tooltipText=H,n4.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,H,gJ)):performance.measure(H,gJ))}function XZ($,U,Q){$4($,U,Q,"Reconnect")}function IZ($,U,Q,H,M){var P=t($);if(P!==null&&CU){var{alternate:k,actualDuration:y}=$;if(k===null||k.child!==$.child)for(var l=$.child;l!==null;l=l.sibling)y-=l.actualDuration;H=0.5>y?H?"tertiary-light":"primary-light":10>y?H?"tertiary":"primary":100>y?H?"tertiary-dark":"primary-dark":"error";var o=$.memoizedProps;y=$._debugTask,o!==null&&k!==null&&k.memoizedProps!==o?(l=[Dg],o=cA(k.memoizedProps,o,l,0),1<l.length&&(o&&!kJ&&(k.lanes&M)===0&&100<$.actualDuration?(kJ=!0,l[0]=Lg,n4.color="warning",n4.tooltipText=sP):(n4.color=H,n4.tooltipText=P),n4.properties=l,gJ.start=U,gJ.end=Q,y!=null?y.run(performance.measure.bind(performance,""+P,gJ)):performance.measure(""+P,gJ))):y!=null?y.run(console.timeStamp.bind(console,P,U,Q,_1,void 0,H)):console.timeStamp(P,U,Q,_1,void 0,H)}}function TW($,U,Q,H){if(CU){var M=t($);if(M!==null){for(var P=null,k=[],y=0;y<H.length;y++){var l=H[y];P==null&&l.source!==null&&(P=l.source._debugTask),l=l.value,k.push(["Error",typeof l==="object"&&l!==null&&typeof l.message==="string"?String(l.message):String(l)])}$.key!==null&&e1("key",$.key,k,0,""),$.memoizedProps!==null&&CW($.memoizedProps,k,0,""),P==null&&(P=$._debugTask),$={start:U,end:Q,detail:{devtools:{color:"error",track:_1,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:k}}},P?P.run(performance.measure.bind(performance,""+M,$)):performance.measure(""+M,$)}}}function U4($,U,Q,H,M){if(M!==null){if(CU){var P=t($);if(P!==null){H=[];for(var k=0;k<M.length;k++){var y=M[k].value;H.push(["Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}$.key!==null&&e1("key",$.key,H,0,""),$.memoizedProps!==null&&CW($.memoizedProps,H,0,""),U={start:U,end:Q,detail:{devtools:{color:"error",track:_1,tooltipText:"A lifecycle or effect errored",properties:H}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+P,U)):performance.measure(""+P,U)}}}else P=t($),P!==null&&CU&&(M=1>H?"secondary-light":100>H?"secondary":500>H?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,P,U,Q,_1,void 0,M)):console.timeStamp(P,U,Q,_1,void 0,M))}function yN($,U,Q,H){if(CU&&!(U<=$)){var M=(Q&738197653)===Q?"tertiary-dark":"primary-dark";Q=(Q&536870912)===Q?"Prepared":(Q&201326741)===Q?"Hydrated":"Render",H?H.run(console.timeStamp.bind(console,Q,$,U,u$,b$,M)):console.timeStamp(Q,$,U,u$,b$,M)}}function pA($,U,Q,H){!CU||U<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",H?H.run(console.timeStamp.bind(console,"Prewarm",$,U,u$,b$,Q)):console.timeStamp("Prewarm",$,U,u$,b$,Q))}function mA($,U,Q,H){!CU||U<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",H?H.run(console.timeStamp.bind(console,"Suspended",$,U,u$,b$,Q)):console.timeStamp("Suspended",$,U,u$,b$,Q))}function bN($,U,Q,H,M,P){if(CU&&!(U<=$)){Q=[];for(var k=0;k<H.length;k++){var y=H[k].value;Q.push(["Recoverable Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}$={start:$,end:U,detail:{devtools:{color:"primary-dark",track:u$,trackGroup:b$,tooltipText:M?"Hydration Failed":"Recovered after Error",properties:Q}}},P?P.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function RW($,U,Q,H){!CU||U<=$||(H?H.run(console.timeStamp.bind(console,"Errored",$,U,u$,b$,"error")):console.timeStamp("Errored",$,U,u$,b$,"error"))}function uN($,U,Q,H){!CU||U<=$||(H?H.run(console.timeStamp.bind(console,Q,$,U,u$,b$,"secondary-light")):console.timeStamp(Q,$,U,u$,b$,"secondary-light"))}function lA($,U,Q,H,M){if(CU&&!(U<=$)){for(var P=[],k=0;k<Q.length;k++){var y=Q[k].value;P.push(["Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}$={start:$,end:U,detail:{devtools:{color:"error",track:u$,trackGroup:b$,tooltipText:H?"Remaining Effects Errored":"Commit Errored",properties:P}}},M?M.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function qY($,U,Q){!CU||U<=$||(Q?Q.run(console.timeStamp.bind(console,"Animating",$,U,u$,b$,"secondary-dark")):console.timeStamp("Animating",$,U,u$,b$,"secondary-dark"))}function QZ(){for(var $=rI,U=o9=rI=0;U<$;){var Q=q1[U];q1[U++]=null;var H=q1[U];q1[U++]=null;var M=q1[U];q1[U++]=null;var P=q1[U];if(q1[U++]=null,H!==null&&M!==null){var k=H.pending;k===null?M.next=M:(M.next=k.next,k.next=M),H.pending=M}P!==0&&nA(Q,M,P)}}function YZ($,U,Q,H){q1[rI++]=$,q1[rI++]=U,q1[rI++]=Q,q1[rI++]=H,o9|=H,$.lanes|=H,$=$.alternate,$!==null&&($.lanes|=H)}function PW($,U,Q,H){return YZ($,U,Q,H),GZ($)}function R6($,U){return YZ($,null,null,U),GZ($)}function nA($,U,Q){$.lanes|=Q;var H=$.alternate;H!==null&&(H.lanes|=Q);for(var M=!1,P=$.return;P!==null;)P.childLanes|=Q,H=P.alternate,H!==null&&(H.childLanes|=Q),P.tag===22&&($=P.stateNode,$===null||$._visibility&WG||(M=!0)),$=P,P=P.return;return $.tag===3?(P=$.stateNode,M&&U!==null&&(M=31-j6(Q),$=P.hiddenUpdates,H=$[M],H===null?$[M]=[U]:H.push(U),U.lane=Q|536870912),P):null}function GZ($){if(bG>kg)throw dX=bG=0,uG=SV=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.");dX>gg&&(dX=0,uG=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.")),$.alternate===null&&($.flags&4098)!==0&&GR($);for(var U=$,Q=U.return;Q!==null;)U.alternate===null&&(U.flags&4098)!==0&&GR($),U=Q,Q=U.return;return U.tag===3?U.stateNode:null}function MX($){if(S1===null)return $;var U=S1($);return U===void 0?$:U.current}function _W($){if(S1===null)return $;var U=S1($);return U===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(U=MX($.render),$.render!==U)?(U={$$typeof:eY,render:U},$.displayName!==void 0&&(U.displayName=$.displayName),U):$:U.current}function dA($,U){if(S1===null)return!1;var Q=$.elementType;U=U.type;var H=!1,M=typeof U==="object"&&U!==null?U.$$typeof:null;switch($.tag){case 1:typeof U==="function"&&(H=!0);break;case 0:typeof U==="function"?H=!0:M===z1&&(H=!0);break;case 11:M===eY?H=!0:M===z1&&(H=!0);break;case 14:case 15:M===Iz?H=!0:M===z1&&(H=!0);break;default:return!1}return H&&($=S1(Q),$!==void 0&&$===S1(U))?!0:!1}function oA($){S1!==null&&typeof WeakSet==="function"&&(tI===null&&(tI=new WeakSet),tI.add($))}function iA($,U,Q){do{var H=$,M=H.alternate,P=H.child,k=H.sibling,y=H.tag;H=H.type;var l=null;switch(y){case 0:case 15:case 1:l=H;break;case 11:l=H.render}if(S1===null)throw Error("Expected resolveFamily to be set during hot reload.");var o=!1;if(H=!1,l!==null&&(l=S1(l),l!==void 0&&(Q.has(l)?H=!0:U.has(l)&&(y===1?H=!0:o=!0))),tI!==null&&(tI.has($)||M!==null&&tI.has(M))&&(H=!0),H&&($._debugNeedsRemount=!0),H||o)M=R6($,2),M!==null&&wU(M,$,2);if(P===null||H||iA(P,U,Q),k===null)break;$=k}while(1)}function hN($,U,Q,H){this.tag=$,this.key=Q,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=U,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=H,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,eP||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function qW($){return $=$.prototype,!(!$||!$.isReactComponent)}function y4($,U){var Q=$.alternate;switch(Q===null?(Q=q($.tag,U,$.key,$.mode),Q.elementType=$.elementType,Q.type=$.type,Q.stateNode=$.stateNode,Q._debugOwner=$._debugOwner,Q._debugStack=$._debugStack,Q._debugTask=$._debugTask,Q._debugHookTypes=$._debugHookTypes,Q.alternate=$,$.alternate=Q):(Q.pendingProps=U,Q.type=$.type,Q.flags=0,Q.subtreeFlags=0,Q.deletions=null,Q.actualDuration=-0,Q.actualStartTime=-1.1),Q.flags=$.flags&65011712,Q.childLanes=$.childLanes,Q.lanes=$.lanes,Q.child=$.child,Q.memoizedProps=$.memoizedProps,Q.memoizedState=$.memoizedState,Q.updateQueue=$.updateQueue,U=$.dependencies,Q.dependencies=U===null?null:{lanes:U.lanes,firstContext:U.firstContext,_debugThenableState:U._debugThenableState},Q.sibling=$.sibling,Q.index=$.index,Q.ref=$.ref,Q.refCleanup=$.refCleanup,Q.selfBaseDuration=$.selfBaseDuration,Q.treeBaseDuration=$.treeBaseDuration,Q._debugInfo=$._debugInfo,Q._debugNeedsRemount=$._debugNeedsRemount,Q.tag){case 0:case 15:Q.type=MX($.type);break;case 1:Q.type=MX($.type);break;case 11:Q.type=_W($.type)}return Q}function rA($,U){$.flags&=65011714;var Q=$.alternate;return Q===null?($.childLanes=0,$.lanes=U,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=Q.childLanes,$.lanes=Q.lanes,$.child=Q.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=Q.memoizedProps,$.memoizedState=Q.memoizedState,$.updateQueue=Q.updateQueue,$.type=Q.type,U=Q.dependencies,$.dependencies=U===null?null:{lanes:U.lanes,firstContext:U.firstContext,_debugThenableState:U._debugThenableState},$.selfBaseDuration=Q.selfBaseDuration,$.treeBaseDuration=Q.treeBaseDuration),$}function SW($,U,Q,H,M,P){var k=0,y=$;if(typeof $==="function")qW($)&&(k=1),y=MX(y);else if(typeof $==="string")k=R(),k=r3($,Q,k)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case M9:return U=q(31,Q,U,M),U.elementType=M9,U.lanes=P,U;case bI:return AX(Q.children,M,P,U);case Xz:k=8,M|=_6,M|=l1;break;case H9:return $=Q,H=M,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),U=q(12,$,U,H|N$),U.elementType=H9,U.lanes=P,U.stateNode={effectDuration:0,passiveEffectDuration:0},U;case D9:return U=q(13,Q,U,M),U.elementType=D9,U.lanes=P,U;case L9:return U=q(19,Q,U,M),U.elementType=L9,U.lanes=P,U;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case D4:k=10;break $;case F9:k=9;break $;case eY:k=11,y=_W(y);break $;case Iz:k=14;break $;case z1:k=16,y=null;break $}if(y="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?Q="null":G6($)?Q="array":$!==void 0&&$.$$typeof===F4?(Q="<"+(M0($.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof $,(k=H?S0(H):null)&&(y+=`
|
|
72
|
+
|
|
73
|
+
Check the render method of \``+k+"`."),k=29,Q=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(Q+"."+y)),y=null}return U=q(k,Q,U,M),U.elementType=$,U.type=y,U.lanes=P,U._debugOwner=H,U}function ZZ($,U,Q){return U=SW($.type,$.key,$.props,$._owner,U,Q),U._debugOwner=$._owner,U._debugStack=$._debugStack,U._debugTask=$._debugTask,U}function AX($,U,Q,H){return $=q(7,$,H,U),$.lanes=Q,$}function jW($,U,Q){return $=q(6,$,null,U),$.lanes=Q,$}function tA($){var U=q(18,null,null,R$);return U.stateNode=$,U}function EW($,U,Q){return U=q(4,$.children!==null?$.children:[],$.key,U),U.lanes=Q,U.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},U}function X1($,U){if(typeof $==="object"&&$!==null){var Q=i9.get($);if(Q!==void 0)return Q;return U={value:$,source:U,stack:K0(U)},i9.set($,U),U}return{value:$,source:U,stack:K0(U)}}function b4($,U){FJ(),aI[sI++]=OG,aI[sI++]=Az,Az=$,OG=U}function aA($,U,Q){FJ(),j1[E1++]=o4,j1[E1++]=i4,j1[E1++]=kX,kX=$;var H=o4;$=i4;var M=32-j6(H)-1;H&=~(1<<M),Q+=1;var P=32-j6(U)+M;if(30<P){var k=M-M%5;P=(H&(1<<k)-1).toString(32),H>>=k,M-=k,o4=1<<32-j6(U)+M|Q<<M|H,i4=P+$}else o4=1<<P|Q<<M|H,i4=$}function BW($){FJ(),$.return!==null&&(b4($,1),aA($,1,0))}function vW($){for(;$===Az;)Az=aI[--sI],aI[sI]=null,OG=aI[--sI],aI[sI]=null;for(;$===kX;)kX=j1[--E1],j1[E1]=null,i4=j1[--E1],j1[E1]=null,o4=j1[--E1],j1[E1]=null}function sA(){return FJ(),kX!==null?{id:o4,overflow:i4}:null}function eA($,U){FJ(),j1[E1++]=o4,j1[E1++]=i4,j1[E1++]=kX,o4=U.id,i4=U.overflow,kX=$}function FJ(){p$||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function CX($,U){if($.return===null){if(O1===null)O1={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:U};else{if(O1.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");O1.distanceFromLeaf>U&&(O1.distanceFromLeaf=U)}return O1}var Q=CX($.return,U+1).children;if(0<Q.length&&Q[Q.length-1].fiber===$)return Q=Q[Q.length-1],Q.distanceFromLeaf>U&&(Q.distanceFromLeaf=U),Q;return U={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:U},Q.push(U),U}function $C(){p$&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function zZ($,U){R4||($=CX($,0),$.serverProps=null,U!==null&&(U=kR(U),$.serverTail.push(U)))}function DJ($){var U=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,Q="",H=O1;throw H!==null&&(O1=null,Q=FW(H)),SY(X1(Error("Hydration failed because the server rendered "+(U?"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
|
+
|
|
75
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
77
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
78
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
79
|
+
- Invalid HTML tag nesting.
|
|
80
|
+
|
|
81
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
|
+
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+Q),$)),r9}function UC($){var{stateNode:U,type:Q,memoizedProps:H}=$;switch(U[A6]=$,U[E6]=H,tO(Q,H),Q){case"dialog":m$("cancel",U),m$("close",U);break;case"iframe":case"object":case"embed":m$("load",U);break;case"video":case"audio":for(Q=0;Q<hG.length;Q++)m$(hG[Q],U);break;case"source":m$("error",U);break;case"img":case"image":case"link":m$("error",U),m$("load",U);break;case"details":m$("toggle",U);break;case"input":OU("input",H),m$("invalid",U),I$(U,H),_U(U,H.value,H.defaultValue,H.checked,H.defaultChecked,H.type,H.name,!0);break;case"option":j$(U,H);break;case"select":OU("select",H),m$("invalid",U),uU(U,H);break;case"textarea":OU("textarea",H),m$("invalid",U),hU(U,H),pU(U,H.value,H.defaultValue,H.children)}Q=H.children,typeof Q!=="string"&&typeof Q!=="number"&&typeof Q!=="bigint"||U.textContent===""+Q||H.suppressHydrationWarning===!0||MR(U.textContent,Q)?(H.popover!=null&&(m$("beforetoggle",U),m$("toggle",U)),H.onScroll!=null&&m$("scroll",U),H.onScrollEnd!=null&&m$("scrollend",U),H.onClick!=null&&(U.onclick=f4),U=!0):U=!1,U||DJ($,!0)}function JC($){for(C6=$.return;C6;)switch(C6.tag){case 5:case 31:case 13:B1=!1;return;case 27:case 3:B1=!0;return;default:C6=C6.return}}function RI($){if($!==C6)return!1;if(!p$)return JC($),p$=!0,!1;var U=$.tag,Q;if(Q=U!==3&&U!==27){if(Q=U===5)Q=$.type,Q=!(Q!=="form"&&Q!=="button")||U9($.type,$.memoizedProps);Q=!Q}if(Q&&TU){for(Q=TU;Q;){var H=CX($,0),M=kR(Q);H.serverTail.push(M),Q=M.type==="Suspense"?Q9(Q):Z1(Q.nextSibling)}DJ($)}if(JC($),U===13){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");TU=Q9($)}else if(U===31){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");TU=Q9($)}else U===27?(U=TU,SJ($.type)?($=bV,bV=null,TU=$):TU=U):TU=C6?Z1($.stateNode.nextSibling):null;return!0}function TX(){TU=C6=null,R4=p$=!1}function NW(){var $=wJ;return $!==null&&(x6===null?x6=$:x6.push.apply(x6,$),wJ=null),$}function SY($){wJ===null?wJ=[$]:wJ.push($)}function kW(){var $=O1;if($!==null){O1=null;for(var U=FW($);0<$.children.length;)$=$.children[0];I0($.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
84
|
+
|
|
85
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
87
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
88
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
89
|
+
- Invalid HTML tag nesting.
|
|
90
|
+
|
|
91
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
|
+
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",U)})}}function KZ(){eI=Cz=null,$Q=!1}function LJ($,U,Q){V(t9,U._currentValue,$),U._currentValue=Q,V(a9,U._currentRenderer,$),U._currentRenderer!==void 0&&U._currentRenderer!==null&&U._currentRenderer!==U_&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),U._currentRenderer=U_}function u4($,U){$._currentValue=t9.current;var Q=a9.current;G(a9,U),$._currentRenderer=Q,G(t9,U)}function gW($,U,Q){for(;$!==null;){var H=$.alternate;if(($.childLanes&U)!==U?($.childLanes|=U,H!==null&&(H.childLanes|=U)):H!==null&&(H.childLanes&U)!==U&&(H.childLanes|=U),$===Q)break;$=$.return}$!==Q&&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 xW($,U,Q,H){var M=$.child;M!==null&&(M.return=$);for(;M!==null;){var P=M.dependencies;if(P!==null){var k=M.child;P=P.firstContext;$:for(;P!==null;){var y=P;P=M;for(var l=0;l<U.length;l++)if(y.context===U[l]){P.lanes|=Q,y=P.alternate,y!==null&&(y.lanes|=Q),gW(P.return,Q,$),H||(k=null);break $}P=y.next}}else if(M.tag===18){if(k=M.return,k===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");k.lanes|=Q,P=k.alternate,P!==null&&(P.lanes|=Q),gW(k,Q,$),k=null}else k=M.child;if(k!==null)k.return=M;else for(k=M;k!==null;){if(k===$){k=null;break}if(M=k.sibling,M!==null){M.return=k.return,k=M;break}k=k.return}M=k}}function PI($,U,Q,H){$=null;for(var M=U,P=!1;M!==null;){if(!P){if((M.flags&524288)!==0)P=!0;else if((M.flags&262144)!==0)break}if(M.tag===10){var k=M.alternate;if(k===null)throw Error("Should have a current fiber. This is a bug in React.");if(k=k.memoizedProps,k!==null){var y=M.type;v6(M.pendingProps.value,k.value)||($!==null?$.push(y):$=[y])}}else if(M===Qz.current){if(k=M.alternate,k===null)throw Error("Should have a current fiber. This is a bug in React.");k.memoizedState.memoizedState!==M.memoizedState.memoizedState&&($!==null?$.push(nG):$=[nG])}M=M.return}$!==null&&xW(U,$,Q,H),U.flags|=262144}function WZ($){for($=$.firstContext;$!==null;){if(!v6($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function RX($){Cz=$,eI=null,$=$.dependencies,$!==null&&($.firstContext=null)}function jU($){return $Q&&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()."),XC(Cz,$)}function OZ($,U){return Cz===null&&RX($),XC($,U)}function XC($,U){var Q=U._currentValue;if(U={context:U,memoizedValue:Q,next:null},eI===null){if($===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().");eI=U,$.dependencies={lanes:0,firstContext:U,_debugThenableState:null},$.flags|=524288}else eI=eI.next=U;return Q}function wW(){return{controller:new Cg,data:new Map,refCount:0}}function PX($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function jY($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&Tg(Rg,function(){$.controller.abort()})}function J4($,U,Q){if(($&127)!==0)0>P4&&(P4=$6(),HG=Tz(U),s9=U,Q!=null&&(e9=t(Q)),(d$&(z6|F1))!==H6&&(fU=!0,bJ=VG),$=iY(),U=oY(),$!==UQ||U!==FG?UQ=-1.1:U!==null&&(bJ=VG),xX=$,FG=U);else if(($&4194048)!==0&&0>v1&&(v1=$6(),DG=Tz(U),J_=U,Q!=null&&(X_=t(Q)),0>a4)){if($=iY(),U=oY(),$!==hJ||U!==wX)hJ=-1.1;uJ=$,wX=U}}function cN($){if(0>P4){P4=$6(),HG=$._debugTask!=null?$._debugTask:null,(d$&(z6|F1))!==H6&&(bJ=VG);var U=iY(),Q=oY();U!==UQ||Q!==FG?UQ=-1.1:Q!==null&&(bJ=VG),xX=U,FG=Q}if(0>v1&&(v1=$6(),DG=$._debugTask!=null?$._debugTask:null,0>a4)){if($=iY(),U=oY(),$!==hJ||U!==wX)hJ=-1.1;uJ=$,wX=U}}function h4(){var $=gX;return gX=0,$}function VZ($){var U=gX;return gX=$,U}function EY($){var U=gX;return gX+=$,U}function HZ(){T$=C$=-1.1}function I1(){var $=C$;return C$=-1.1,$}function Q1($){0<=$&&(C$=$)}function X4(){var $=kU;return kU=-0,$}function I4($){0<=$&&(kU=$)}function Q4(){var $=EU;return EU=null,$}function Y4(){var $=fU;return fU=!1,$}function fW($){N6=$6(),0>$.actualStartTime&&($.actualStartTime=N6)}function yW($){if(0<=N6){var U=$6()-N6;$.actualDuration+=U,$.selfBaseDuration=U,N6=-1}}function IC($){if(0<=N6){var U=$6()-N6;$.actualDuration+=U,N6=-1}}function G4(){if(0<=N6){var $=$6(),U=$-N6;N6=-1,gX+=U,kU+=U,T$=$}}function QC($){EU===null&&(EU=[]),EU.push($),t4===null&&(t4=[]),t4.push($)}function Z4(){N6=$6(),0>C$&&(C$=N6)}function BY($){for(var U=$.child;U;)$.actualDuration+=U.actualDuration,U=U.sibling}function pN($,U){if(MG===null){var Q=MG=[];UV=0,fX=dO(),JQ={status:"pending",value:void 0,then:function(H){Q.push(H)}}}return UV++,U.then(YC,YC),U}function YC(){if(--UV===0&&(-1<v1||(a4=-1.1),MG!==null)){JQ!==null&&(JQ.status="fulfilled");var $=MG;MG=null,fX=0,JQ=null;for(var U=0;U<$.length;U++)(0,$[U])()}}function mN($,U){var Q=[],H={status:"pending",value:null,reason:null,then:function(M){Q.push(M)}};return $.then(function(){H.status="fulfilled",H.value=U;for(var M=0;M<Q.length;M++)(0,Q[M])(U)},function(M){H.status="rejected",H.reason=M;for(M=0;M<Q.length;M++)(0,Q[M])(void 0)}),H}function bW(){var $=yX.current;return $!==null?$:zU.pooledCache}function FZ($,U){U===null?V(yX,yX.current,$):V(yX,U.pool,$)}function GC(){var $=bW();return $===null?null:{parent:eU._currentValue,pool:$}}function ZC(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function zC($){return $=$.status,$==="fulfilled"||$==="rejected"}function KC($,U,Q){b0.actQueue!==null&&(b0.didUsePromise=!0);var H=$.thenables;if(Q=H[Q],Q===void 0?H.push(U):Q!==U&&($.didWarnAboutUncachedPromise||($.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.")),U.then(f4,f4),U=Q),U._debugInfo===void 0){$=performance.now(),H=U.displayName;var M={name:typeof H==="string"?H:"Promise",start:$,end:$,value:U};U._debugInfo=[{awaited:M}],U.status!=="fulfilled"&&U.status!=="rejected"&&($=function(){M.end=performance.now()},U.then($,$))}switch(U.status){case"fulfilled":return U.value;case"rejected":throw $=U.reason,OC($),$;default:if(typeof U.status==="string")U.then(f4,f4);else{if($=zU,$!==null&&100<$.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.");$=U,$.status="pending",$.then(function(P){if(U.status==="pending"){var k=U;k.status="fulfilled",k.value=P}},function(P){if(U.status==="pending"){var k=U;k.status="rejected",k.reason=P}})}switch(U.status){case"fulfilled":return U.value;case"rejected":throw $=U.reason,OC($),$}throw uX=U,qG=!0,XQ}}function MJ($){try{return Sg($)}catch(U){if(U!==null&&typeof U==="object"&&typeof U.then==="function")throw uX=U,qG=!0,XQ;throw U}}function WC(){if(uX===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=uX;return uX=null,qG=!1,$}function OC($){if($===XQ||$===Bz)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 D6($){var U=k$;return $!=null&&(k$=U===null?$:U.concat($)),U}function uW(){var $=k$;if($!=null){for(var U=$.length-1;0<=U;U--)if($[U].name!=null){var Q=$[U].debugTask;if(Q!=null)return Q}}return null}function DZ($,U,Q){for(var H=Object.keys($.props),M=0;M<H.length;M++){var P=H[M];if(P!=="children"&&P!=="key"){U===null&&(U=ZZ($,Q.mode,0),U._debugInfo=k$,U.return=Q),I0(U,function(k){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k)},P);break}}}function LZ($){var U=SG;return SG+=1,IQ===null&&(IQ=ZC()),KC(IQ,$,U)}function vY($,U){U=U.props.ref,$.ref=U!==void 0?U:null}function VC($,U){if(U.$$typeof===Qk)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
|
+
- Multiple copies of the "react" package is used.
|
|
95
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(U),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function MZ($,U){var Q=uW();Q!==null?Q.run(VC.bind(null,$,U)):VC($,U)}function HC($,U){var Q=t($)||"Component";P_[Q]||(P_[Q]=!0,U=U.displayName||U.name||"Component",$.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.
|
|
97
|
+
root.render(%s)`,U,U,U):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.
|
|
98
|
+
<%s>{%s}</%s>`,U,U,Q,U,Q))}function AZ($,U){var Q=uW();Q!==null?Q.run(HC.bind(null,$,U)):HC($,U)}function FC($,U){var Q=t($)||"Component";__[Q]||(__[Q]=!0,U=String(U),$.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
|
+
root.render(%s)`,U):console.error(`Symbols are not valid as a React child.
|
|
100
|
+
<%s>%s</%s>`,Q,U,Q))}function CZ($,U){var Q=uW();Q!==null?Q.run(FC.bind(null,$,U)):FC($,U)}function DC($){function U(z0,F0){if($){var T0=z0.deletions;T0===null?(z0.deletions=[F0],z0.flags|=16):T0.push(F0)}}function Q(z0,F0){if(!$)return null;for(;F0!==null;)U(z0,F0),F0=F0.sibling;return null}function H(z0){for(var F0=new Map;z0!==null;)z0.key!==null?F0.set(z0.key,z0):F0.set(z0.index,z0),z0=z0.sibling;return F0}function M(z0,F0){return z0=y4(z0,F0),z0.index=0,z0.sibling=null,z0}function P(z0,F0,T0){if(z0.index=T0,!$)return z0.flags|=1048576,F0;if(T0=z0.alternate,T0!==null)return T0=T0.index,T0<F0?(z0.flags|=67108866,F0):T0;return z0.flags|=67108866,F0}function k(z0){return $&&z0.alternate===null&&(z0.flags|=67108866),z0}function y(z0,F0,T0,l0){if(F0===null||F0.tag!==6)return F0=jW(T0,z0.mode,l0),F0.return=z0,F0._debugOwner=z0,F0._debugTask=z0._debugTask,F0._debugInfo=k$,F0;return F0=M(F0,T0),F0.return=z0,F0._debugInfo=k$,F0}function l(z0,F0,T0,l0){var O$=T0.type;if(O$===bI)return F0=P0(z0,F0,T0.props.children,l0,T0.key),DZ(T0,F0,z0),F0;if(F0!==null&&(F0.elementType===O$||dA(F0,T0)||typeof O$==="object"&&O$!==null&&O$.$$typeof===z1&&MJ(O$)===F0.type))return F0=M(F0,T0.props),vY(F0,T0),F0.return=z0,F0._debugOwner=T0._owner,F0._debugInfo=k$,F0;return F0=ZZ(T0,z0.mode,l0),vY(F0,T0),F0.return=z0,F0._debugInfo=k$,F0}function o(z0,F0,T0,l0){if(F0===null||F0.tag!==4||F0.stateNode.containerInfo!==T0.containerInfo||F0.stateNode.implementation!==T0.implementation)return F0=EW(T0,z0.mode,l0),F0.return=z0,F0._debugInfo=k$,F0;return F0=M(F0,T0.children||[]),F0.return=z0,F0._debugInfo=k$,F0}function P0(z0,F0,T0,l0,O$){if(F0===null||F0.tag!==7)return F0=AX(T0,z0.mode,l0,O$),F0.return=z0,F0._debugOwner=z0,F0._debugTask=z0._debugTask,F0._debugInfo=k$,F0;return F0=M(F0,T0),F0.return=z0,F0._debugInfo=k$,F0}function _0(z0,F0,T0){if(typeof F0==="string"&&F0!==""||typeof F0==="number"||typeof F0==="bigint")return F0=jW(""+F0,z0.mode,T0),F0.return=z0,F0._debugOwner=z0,F0._debugTask=z0._debugTask,F0._debugInfo=k$,F0;if(typeof F0==="object"&&F0!==null){switch(F0.$$typeof){case F4:return T0=ZZ(F0,z0.mode,T0),vY(T0,F0),T0.return=z0,z0=D6(F0._debugInfo),T0._debugInfo=k$,k$=z0,T0;case yI:return F0=EW(F0,z0.mode,T0),F0.return=z0,F0._debugInfo=k$,F0;case z1:var l0=D6(F0._debugInfo);return F0=MJ(F0),z0=_0(z0,F0,T0),k$=l0,z0}if(G6(F0)||D0(F0))return T0=AX(F0,z0.mode,T0,null),T0.return=z0,T0._debugOwner=z0,T0._debugTask=z0._debugTask,z0=D6(F0._debugInfo),T0._debugInfo=k$,k$=z0,T0;if(typeof F0.then==="function")return l0=D6(F0._debugInfo),z0=_0(z0,LZ(F0),T0),k$=l0,z0;if(F0.$$typeof===D4)return _0(z0,OZ(z0,F0),T0);MZ(z0,F0)}return typeof F0==="function"&&AZ(z0,F0),typeof F0==="symbol"&&CZ(z0,F0),null}function H0(z0,F0,T0,l0){var O$=F0!==null?F0.key:null;if(typeof T0==="string"&&T0!==""||typeof T0==="number"||typeof T0==="bigint")return O$!==null?null:y(z0,F0,""+T0,l0);if(typeof T0==="object"&&T0!==null){switch(T0.$$typeof){case F4:return T0.key===O$?(O$=D6(T0._debugInfo),z0=l(z0,F0,T0,l0),k$=O$,z0):null;case yI:return T0.key===O$?o(z0,F0,T0,l0):null;case z1:return O$=D6(T0._debugInfo),T0=MJ(T0),z0=H0(z0,F0,T0,l0),k$=O$,z0}if(G6(T0)||D0(T0)){if(O$!==null)return null;return O$=D6(T0._debugInfo),z0=P0(z0,F0,T0,l0,null),k$=O$,z0}if(typeof T0.then==="function")return O$=D6(T0._debugInfo),z0=H0(z0,F0,LZ(T0),l0),k$=O$,z0;if(T0.$$typeof===D4)return H0(z0,F0,OZ(z0,T0),l0);MZ(z0,T0)}return typeof T0==="function"&&AZ(z0,T0),typeof T0==="symbol"&&CZ(z0,T0),null}function g0(z0,F0,T0,l0,O$){if(typeof l0==="string"&&l0!==""||typeof l0==="number"||typeof l0==="bigint")return z0=z0.get(T0)||null,y(F0,z0,""+l0,O$);if(typeof l0==="object"&&l0!==null){switch(l0.$$typeof){case F4:return T0=z0.get(l0.key===null?T0:l0.key)||null,z0=D6(l0._debugInfo),F0=l(F0,T0,l0,O$),k$=z0,F0;case yI:return z0=z0.get(l0.key===null?T0:l0.key)||null,o(F0,z0,l0,O$);case z1:var _$=D6(l0._debugInfo);return l0=MJ(l0),F0=g0(z0,F0,T0,l0,O$),k$=_$,F0}if(G6(l0)||D0(l0))return T0=z0.get(T0)||null,z0=D6(l0._debugInfo),F0=P0(F0,T0,l0,O$,null),k$=z0,F0;if(typeof l0.then==="function")return _$=D6(l0._debugInfo),F0=g0(z0,F0,T0,LZ(l0),O$),k$=_$,F0;if(l0.$$typeof===D4)return g0(z0,F0,T0,OZ(F0,l0),O$);MZ(F0,l0)}return typeof l0==="function"&&AZ(F0,l0),typeof l0==="symbol"&&CZ(F0,l0),null}function W$(z0,F0,T0,l0){if(typeof T0!=="object"||T0===null)return l0;switch(T0.$$typeof){case F4:case yI:S(z0,F0,T0);var O$=T0.key;if(typeof O$!=="string")break;if(l0===null){l0=new Set,l0.add(O$);break}if(!l0.has(O$)){l0.add(O$);break}I0(F0,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",O$)});break;case z1:T0=MJ(T0),W$(z0,F0,T0,l0)}return l0}function F$(z0,F0,T0,l0){for(var O$=null,_$=null,A$=null,L$=F0,v$=F0=0,RU=null;L$!==null&&v$<T0.length;v$++){L$.index>v$?(RU=L$,L$=null):RU=L$.sibling;var sU=H0(z0,L$,T0[v$],l0);if(sU===null){L$===null&&(L$=RU);break}O$=W$(z0,sU,T0[v$],O$),$&&L$&&sU.alternate===null&&U(z0,L$),F0=P(sU,F0,v$),A$===null?_$=sU:A$.sibling=sU,A$=sU,L$=RU}if(v$===T0.length)return Q(z0,L$),p$&&b4(z0,v$),_$;if(L$===null){for(;v$<T0.length;v$++)L$=_0(z0,T0[v$],l0),L$!==null&&(O$=W$(z0,L$,T0[v$],O$),F0=P(L$,F0,v$),A$===null?_$=L$:A$.sibling=L$,A$=L$);return p$&&b4(z0,v$),_$}for(L$=H(L$);v$<T0.length;v$++)RU=g0(L$,z0,v$,T0[v$],l0),RU!==null&&(O$=W$(z0,RU,T0[v$],O$),$&&RU.alternate!==null&&L$.delete(RU.key===null?v$:RU.key),F0=P(RU,F0,v$),A$===null?_$=RU:A$.sibling=RU,A$=RU);return $&&L$.forEach(function(YJ){return U(z0,YJ)}),p$&&b4(z0,v$),_$}function FU(z0,F0,T0,l0){if(T0==null)throw Error("An iterable object provided no iterator.");for(var O$=null,_$=null,A$=F0,L$=F0=0,v$=null,RU=null,sU=T0.next();A$!==null&&!sU.done;L$++,sU=T0.next()){A$.index>L$?(v$=A$,A$=null):v$=A$.sibling;var YJ=H0(z0,A$,sU.value,l0);if(YJ===null){A$===null&&(A$=v$);break}RU=W$(z0,YJ,sU.value,RU),$&&A$&&YJ.alternate===null&&U(z0,A$),F0=P(YJ,F0,L$),_$===null?O$=YJ:_$.sibling=YJ,_$=YJ,A$=v$}if(sU.done)return Q(z0,A$),p$&&b4(z0,L$),O$;if(A$===null){for(;!sU.done;L$++,sU=T0.next())A$=_0(z0,sU.value,l0),A$!==null&&(RU=W$(z0,A$,sU.value,RU),F0=P(A$,F0,L$),_$===null?O$=A$:_$.sibling=A$,_$=A$);return p$&&b4(z0,L$),O$}for(A$=H(A$);!sU.done;L$++,sU=T0.next())v$=g0(A$,z0,L$,sU.value,l0),v$!==null&&(RU=W$(z0,v$,sU.value,RU),$&&v$.alternate!==null&&A$.delete(v$.key===null?L$:v$.key),F0=P(v$,F0,L$),_$===null?O$=v$:_$.sibling=v$,_$=v$);return $&&A$.forEach(function(tg){return U(z0,tg)}),p$&&b4(z0,L$),O$}function l$(z0,F0,T0,l0){if(typeof T0==="object"&&T0!==null&&T0.type===bI&&T0.key===null&&(DZ(T0,null,z0),T0=T0.props.children),typeof T0==="object"&&T0!==null){switch(T0.$$typeof){case F4:var O$=D6(T0._debugInfo);$:{for(var _$=T0.key;F0!==null;){if(F0.key===_$){if(_$=T0.type,_$===bI){if(F0.tag===7){Q(z0,F0.sibling),l0=M(F0,T0.props.children),l0.return=z0,l0._debugOwner=T0._owner,l0._debugInfo=k$,DZ(T0,l0,z0),z0=l0;break $}}else if(F0.elementType===_$||dA(F0,T0)||typeof _$==="object"&&_$!==null&&_$.$$typeof===z1&&MJ(_$)===F0.type){Q(z0,F0.sibling),l0=M(F0,T0.props),vY(l0,T0),l0.return=z0,l0._debugOwner=T0._owner,l0._debugInfo=k$,z0=l0;break $}Q(z0,F0);break}else U(z0,F0);F0=F0.sibling}T0.type===bI?(l0=AX(T0.props.children,z0.mode,l0,T0.key),l0.return=z0,l0._debugOwner=z0,l0._debugTask=z0._debugTask,l0._debugInfo=k$,DZ(T0,l0,z0),z0=l0):(l0=ZZ(T0,z0.mode,l0),vY(l0,T0),l0.return=z0,l0._debugInfo=k$,z0=l0)}return z0=k(z0),k$=O$,z0;case yI:$:{O$=T0;for(T0=O$.key;F0!==null;){if(F0.key===T0)if(F0.tag===4&&F0.stateNode.containerInfo===O$.containerInfo&&F0.stateNode.implementation===O$.implementation){Q(z0,F0.sibling),l0=M(F0,O$.children||[]),l0.return=z0,z0=l0;break $}else{Q(z0,F0);break}else U(z0,F0);F0=F0.sibling}l0=EW(O$,z0.mode,l0),l0.return=z0,z0=l0}return k(z0);case z1:return O$=D6(T0._debugInfo),T0=MJ(T0),z0=l$(z0,F0,T0,l0),k$=O$,z0}if(G6(T0))return O$=D6(T0._debugInfo),z0=F$(z0,F0,T0,l0),k$=O$,z0;if(D0(T0)){if(O$=D6(T0._debugInfo),_$=D0(T0),typeof _$!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var A$=_$.call(T0);if(A$===T0){if(z0.tag!==0||Object.prototype.toString.call(z0.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(A$)!=="[object Generator]")T_||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),T_=!0}else T0.entries!==_$||QV||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),QV=!0);return z0=FU(z0,F0,A$,l0),k$=O$,z0}if(typeof T0.then==="function")return O$=D6(T0._debugInfo),z0=l$(z0,F0,LZ(T0),l0),k$=O$,z0;if(T0.$$typeof===D4)return l$(z0,F0,OZ(z0,T0),l0);MZ(z0,T0)}if(typeof T0==="string"&&T0!==""||typeof T0==="number"||typeof T0==="bigint")return O$=""+T0,F0!==null&&F0.tag===6?(Q(z0,F0.sibling),l0=M(F0,O$),l0.return=z0,z0=l0):(Q(z0,F0),l0=jW(O$,z0.mode,l0),l0.return=z0,l0._debugOwner=z0,l0._debugTask=z0._debugTask,l0._debugInfo=k$,z0=l0),k(z0);return typeof T0==="function"&&AZ(z0,T0),typeof T0==="symbol"&&CZ(z0,T0),Q(z0,F0)}return function(z0,F0,T0,l0){var O$=k$;k$=null;try{SG=0;var _$=l$(z0,F0,T0,l0);return IQ=null,_$}catch(RU){if(RU===XQ||RU===Bz)throw RU;var A$=q(29,RU,null,z0.mode);A$.lanes=l0,A$.return=z0;var L$=A$._debugInfo=k$;if(A$._debugOwner=z0._debugOwner,A$._debugTask=z0._debugTask,L$!=null){for(var v$=L$.length-1;0<=v$;v$--)if(typeof L$[v$].stack==="string"){A$._debugOwner=L$[v$],A$._debugTask=L$[v$].debugTask;break}}return A$}finally{k$=O$}}}function LC($,U){var Q=G6($);return $=!Q&&typeof D0($)==="function",Q||$?(Q=Q?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",Q,U,Q),!1):!0}function hW($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cW($,U){$=$.updateQueue,U.updateQueue===$&&(U.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function AJ($){return{lane:$,tag:S_,payload:null,callback:null,next:null}}function CJ($,U,Q){var H=$.updateQueue;if(H===null)return null;if(H=H.shared,GV===H&&!B_){var M=t($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
101
|
+
|
|
102
|
+
Please update the following component: %s`,M),B_=!0}if((d$&z6)!==H6)return M=H.pending,M===null?U.next=U:(U.next=M.next,M.next=U),H.pending=U,U=GZ($),nA($,null,Q),U;return YZ($,H,U,Q),GZ($)}function NY($,U,Q){if(U=U.updateQueue,U!==null&&(U=U.shared,(Q&4194048)!==0)){var H=U.lanes;H&=$.pendingLanes,Q|=H,U.lanes=Q,c0($,Q)}}function TZ($,U){var{updateQueue:Q,alternate:H}=$;if(H!==null&&(H=H.updateQueue,Q===H)){var M=null,P=null;if(Q=Q.firstBaseUpdate,Q!==null){do{var k={lane:Q.lane,tag:Q.tag,payload:Q.payload,callback:null,next:null};P===null?M=P=k:P=P.next=k,Q=Q.next}while(Q!==null);P===null?M=P=U:P=P.next=U}else M=P=U;Q={baseState:H.baseState,firstBaseUpdate:M,lastBaseUpdate:P,shared:H.shared,callbacks:H.callbacks},$.updateQueue=Q;return}$=Q.lastBaseUpdate,$===null?Q.firstBaseUpdate=U:$.next=U,Q.lastBaseUpdate=U}function kY(){if(ZV){var $=JQ;if($!==null)throw $}}function gY($,U,Q,H){ZV=!1;var M=$.updateQueue;cJ=!1,GV=M.shared;var{firstBaseUpdate:P,lastBaseUpdate:k}=M,y=M.shared.pending;if(y!==null){M.shared.pending=null;var l=y,o=l.next;l.next=null,k===null?P=o:k.next=o,k=l;var P0=$.alternate;P0!==null&&(P0=P0.updateQueue,y=P0.lastBaseUpdate,y!==k&&(y===null?P0.firstBaseUpdate=o:y.next=o,P0.lastBaseUpdate=l))}if(P!==null){var _0=M.baseState;k=0,P0=o=l=null,y=P;do{var H0=y.lane&-536870913,g0=H0!==y.lane;if(g0?(g$&H0)===H0:(H&H0)===H0){H0!==0&&H0===fX&&(ZV=!0),P0!==null&&(P0=P0.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});$:{H0=$;var W$=y,F$=U,FU=Q;switch(W$.tag){case j_:if(W$=W$.payload,typeof W$==="function"){$Q=!0;var l$=W$.call(FU,_0,F$);if(H0.mode&_6){k0(!0);try{W$.call(FU,_0,F$)}finally{k0(!1)}}$Q=!1,_0=l$;break $}_0=W$;break $;case YV:H0.flags=H0.flags&-65537|128;case S_:if(l$=W$.payload,typeof l$==="function"){if($Q=!0,W$=l$.call(FU,_0,F$),H0.mode&_6){k0(!0);try{l$.call(FU,_0,F$)}finally{k0(!1)}}$Q=!1}else W$=l$;if(W$===null||W$===void 0)break $;_0=y$({},_0,W$);break $;case E_:cJ=!0}}H0=y.callback,H0!==null&&($.flags|=64,g0&&($.flags|=8192),g0=M.callbacks,g0===null?M.callbacks=[H0]:g0.push(H0))}else g0={lane:H0,tag:y.tag,payload:y.payload,callback:y.callback,next:null},P0===null?(o=P0=g0,l=_0):P0=P0.next=g0,k|=H0;if(y=y.next,y===null)if(y=M.shared.pending,y===null)break;else g0=y,y=g0.next,g0.next=null,M.lastBaseUpdate=g0,M.shared.pending=null}while(1);P0===null&&(l=_0),M.baseState=l,M.firstBaseUpdate=o,M.lastBaseUpdate=P0,P===null&&(M.shared.lanes=0),lJ|=k,$.lanes=k,$.memoizedState=_0}GV=null}function MC($,U){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(U)}function lN($,U){var Q=$.shared.hiddenCallbacks;if(Q!==null)for($.shared.hiddenCallbacks=null,$=0;$<Q.length;$++)MC(Q[$],U)}function AC($,U){var Q=$.callbacks;if(Q!==null)for($.callbacks=null,$=0;$<Q.length;$++)MC(Q[$],U)}function CC($,U){var Q=S4;V(Nz,Q,$),V(QQ,U,$),S4=Q|U.baseLanes}function pW($){V(Nz,S4,$),V(QQ,QQ.current,$)}function mW($){S4=Nz.current,G(QQ,$),G(Nz,$)}function TJ($){var U=$.alternate;V(aU,aU.current&YQ,$),V(V1,$,$),N1===null&&(U===null||QQ.current!==null?N1=$:U.memoizedState!==null&&(N1=$))}function lW($){V(aU,aU.current,$),V(V1,$,$),N1===null&&(N1=$)}function TC($){$.tag===22?(V(aU,aU.current,$),V(V1,$,$),N1===null&&(N1=$)):RJ($)}function RJ($){V(aU,aU.current,$),V(V1,V1.current,$)}function Y1($){G(V1,$),N1===$&&(N1=null),G(aU,$)}function RZ($){for(var U=$;U!==null;){if(U.tag===13){var Q=U.memoizedState;if(Q!==null&&(Q=Q.dehydrated,Q===null||X9(Q)||I9(Q)))return U}else if(U.tag===19&&(U.memoizedProps.revealOrder==="forwards"||U.memoizedProps.revealOrder==="backwards"||U.memoizedProps.revealOrder==="unstable_legacy-backwards"||U.memoizedProps.revealOrder==="together")){if((U.flags&128)!==0)return U}else if(U.child!==null){U.child.return=U,U=U.child;continue}if(U===$)break;for(;U.sibling===null;){if(U.return===null||U.return===$)return null;U=U.return}U.sibling.return=U.return,U=U.sibling}return null}function f$(){var $=f0;g1===null?g1=[$]:g1.push($)}function G$(){var $=f0;if(g1!==null&&(UJ++,g1[UJ]!==$)){var U=t(P$);if(!v_.has(U)&&(v_.add(U),g1!==null)){for(var Q="",H=0;H<=UJ;H++){var M=g1[H],P=H===UJ?$:M;for(M=H+1+". "+M;30>M.length;)M+=" ";M+=P+`
|
|
103
|
+
`,Q+=M}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
|
+
|
|
105
|
+
Previous render Next render
|
|
106
|
+
------------------------------------------------------
|
|
107
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
+
`,U,Q)}}}function _I($){$===void 0||$===null||G6($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",f0,typeof $)}function PZ(){var $=t(P$);k_.has($)||(k_.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function nU(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
109
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
|
+
2. You might be breaking the Rules of Hooks
|
|
111
|
+
3. You might have more than one copy of React in the same app
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function nW($,U){if(BG)return!1;if(U===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.",f0),!1;$.length!==U.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
113
|
+
|
|
114
|
+
Previous: %s
|
|
115
|
+
Incoming: %s`,f0,"["+U.join(", ")+"]","["+$.join(", ")+"]");for(var Q=0;Q<U.length&&Q<$.length;Q++)if(!v6($[Q],U[Q]))return!1;return!0}function dW($,U,Q,H,M,P){if(e4=P,P$=U,g1=$!==null?$._debugHookTypes:null,UJ=-1,BG=$!==null&&$.type!==U.type,Object.prototype.toString.call(Q)==="[object AsyncFunction]"||Object.prototype.toString.call(Q)==="[object AsyncGeneratorFunction]")P=t(P$),zV.has(P)||(zV.add(P),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.",P===null?"An unknown Component":"<"+P+">"));U.memoizedState=null,U.updateQueue=null,U.lanes=0,b0.H=$!==null&&$.memoizedState!==null?WV:g1!==null?g_:KV,cX=P=(U.mode&_6)!==R$;var k=JV(Q,H,M);if(cX=!1,ZQ&&(k=oW(U,Q,H,M)),P){k0(!0);try{k=oW(U,Q,H,M)}finally{k0(!1)}}return RC($,U),k}function RC($,U){U._debugHookTypes=g1,U.dependencies===null?$J!==null&&(U.dependencies={lanes:0,firstContext:null,_debugThenableState:$J}):U.dependencies._debugThenableState=$J,b0.H=vG;var Q=ZU!==null&&ZU.next!==null;if(e4=0,g1=f0=U6=ZU=P$=null,UJ=-1,$!==null&&($.flags&65011712)!==(U.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),gz=!1,EG=0,$J=null,Q)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||J6||($=$.dependencies,$!==null&&WZ($)&&(J6=!0)),qG?(qG=!1,$=!0):$=!1,$&&(U=t(U)||"Unknown",N_.has(U)||zV.has(U)||(N_.add(U),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 oW($,U,Q,H){P$=$;var M=0;do{if(ZQ&&($J=null),EG=0,ZQ=!1,M>=Eg)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(M+=1,BG=!1,U6=ZU=null,$.updateQueue!=null){var P=$.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}UJ=-1,b0.H=x_,P=JV(U,Q,H)}while(ZQ);return P}function nN(){var $=b0.H,U=$.useState()[0];return U=typeof U.then==="function"?xY(U):U,$=$.useState()[0],(ZU!==null?ZU.memoizedState:null)!==$&&(P$.flags|=1024),U}function iW(){var $=xz!==0;return xz=0,$}function rW($,U,Q){U.updateQueue=$.updateQueue,U.flags=(U.mode&l1)!==R$?U.flags&-402655237:U.flags&-2053,$.lanes&=~Q}function tW($){if(gz){for($=$.memoizedState;$!==null;){var U=$.queue;U!==null&&(U.pending=null),$=$.next}gz=!1}e4=0,g1=U6=ZU=P$=null,UJ=-1,f0=null,ZQ=!1,EG=xz=0,$J=null}function S6(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return U6===null?P$.memoizedState=U6=$:U6=U6.next=$,U6}function JU(){if(ZU===null){var $=P$.alternate;$=$!==null?$.memoizedState:null}else $=ZU.next;var U=U6===null?P$.memoizedState:U6.next;if(U!==null)U6=U,ZU=$;else{if($===null){if(P$.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.")}ZU=$,$={memoizedState:ZU.memoizedState,baseState:ZU.baseState,baseQueue:ZU.baseQueue,queue:ZU.queue,next:null},U6===null?P$.memoizedState=U6=$:U6=U6.next=$}return U6}function _Z(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xY($){var U=EG;return EG+=1,$J===null&&($J=ZC()),$=KC($J,$,U),U=P$,(U6===null?U.memoizedState:U6.next)===null&&(U=U.alternate,b0.H=U!==null&&U.memoizedState!==null?WV:KV),$}function PJ($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return xY($);if($.$$typeof===D4)return jU($)}throw Error("An unsupported type was passed to use(): "+String($))}function _X($){var U=null,Q=P$.updateQueue;if(Q!==null&&(U=Q.memoCache),U==null){var H=P$.alternate;H!==null&&(H=H.updateQueue,H!==null&&(H=H.memoCache,H!=null&&(U={data:H.data.map(function(M){return M.slice()}),index:0})))}if(U==null&&(U={data:[],index:0}),Q===null&&(Q=_Z(),P$.updateQueue=Q),Q.memoCache=U,Q=U.data[U.index],Q===void 0||BG)for(Q=U.data[U.index]=Array($),H=0;H<$;H++)Q[H]=Yk;else Q.length!==$&&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.",Q.length,$);return U.index++,Q}function h1($,U){return typeof U==="function"?U($):U}function aW($,U,Q){var H=S6();if(Q!==void 0){var M=Q(U);if(cX){k0(!0);try{Q(U)}finally{k0(!1)}}}else M=U;return H.memoizedState=H.baseState=M,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:M},H.queue=$,$=$.dispatch=tN.bind(null,P$,$),[H.memoizedState,$]}function qI($){var U=JU();return sW(U,ZU,$)}function sW($,U,Q){var H=$.queue;if(H===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");H.lastRenderedReducer=Q;var M=$.baseQueue,P=H.pending;if(P!==null){if(M!==null){var k=M.next;M.next=P.next,P.next=k}U.baseQueue!==M&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),U.baseQueue=M=P,H.pending=null}if(P=$.baseState,M===null)$.memoizedState=P;else{U=M.next;var y=k=null,l=null,o=U,P0=!1;do{var _0=o.lane&-536870913;if(_0!==o.lane?(g$&_0)===_0:(e4&_0)===_0){var H0=o.revertLane;if(H0===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:o.action,hasEagerState:o.hasEagerState,eagerState:o.eagerState,next:null}),_0===fX&&(P0=!0);else if((e4&H0)===H0){o=o.next,H0===fX&&(P0=!0);continue}else _0={lane:0,revertLane:o.revertLane,gesture:null,action:o.action,hasEagerState:o.hasEagerState,eagerState:o.eagerState,next:null},l===null?(y=l=_0,k=P):l=l.next=_0,P$.lanes|=H0,lJ|=H0;_0=o.action,cX&&Q(P,_0),P=o.hasEagerState?o.eagerState:Q(P,_0)}else H0={lane:_0,revertLane:o.revertLane,gesture:o.gesture,action:o.action,hasEagerState:o.hasEagerState,eagerState:o.eagerState,next:null},l===null?(y=l=H0,k=P):l=l.next=H0,P$.lanes|=_0,lJ|=_0;o=o.next}while(o!==null&&o!==U);if(l===null?k=P:l.next=y,!v6(P,$.memoizedState)&&(J6=!0,P0&&(Q=JQ,Q!==null)))throw Q;$.memoizedState=P,$.baseState=k,$.baseQueue=l,H.lastRenderedState=P}return M===null&&(H.lanes=0),[$.memoizedState,H.dispatch]}function wY($){var U=JU(),Q=U.queue;if(Q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Q.lastRenderedReducer=$;var{dispatch:H,pending:M}=Q,P=U.memoizedState;if(M!==null){Q.pending=null;var k=M=M.next;do P=$(P,k.action),k=k.next;while(k!==M);v6(P,U.memoizedState)||(J6=!0),U.memoizedState=P,U.baseQueue===null&&(U.baseState=P),Q.lastRenderedState=P}return[P,H]}function eW($,U,Q){var H=P$,M=S6();if(p$){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var P=Q();GQ||P===Q()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),GQ=!0)}else{if(P=U(),GQ||(Q=U(),v6(P,Q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),GQ=!0)),zU===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(g$&127)!==0||PC(H,U,P)}return M.memoizedState=P,Q={value:P,getSnapshot:U},M.queue=Q,EZ(qC.bind(null,H,Q,$),[$]),H.flags|=2048,jI(k1|g6,{destroy:void 0},_C.bind(null,H,Q,P,U),null),P}function qZ($,U,Q){var H=P$,M=JU(),P=p$;if(P){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");Q=Q()}else if(Q=U(),!GQ){var k=U();v6(Q,k)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),GQ=!0)}if(k=!v6((ZU||M).memoizedState,Q))M.memoizedState=Q,J6=!0;M=M.queue;var y=qC.bind(null,H,M,$);if(l6(2048,g6,y,[$]),M.getSnapshot!==U||k||U6!==null&&U6.memoizedState.tag&k1){if(H.flags|=2048,jI(k1|g6,{destroy:void 0},_C.bind(null,H,M,Q,U),null),zU===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");P||(e4&127)!==0||PC(H,U,Q)}return Q}function PC($,U,Q){$.flags|=16384,$={getSnapshot:U,value:Q},U=P$.updateQueue,U===null?(U=_Z(),P$.updateQueue=U,U.stores=[$]):(Q=U.stores,Q===null?U.stores=[$]:Q.push($))}function _C($,U,Q,H){U.value=Q,U.getSnapshot=H,SC(U)&&jC($)}function qC($,U,Q){return Q(function(){SC(U)&&(J4(2,"updateSyncExternalStore()",$),jC($))})}function SC($){var U=$.getSnapshot;$=$.value;try{var Q=U();return!v6($,Q)}catch(H){return!0}}function jC($){var U=R6($,2);U!==null&&wU(U,$,2)}function $O($){var U=S6();if(typeof $==="function"){var Q=$;if($=Q(),cX){k0(!0);try{Q()}finally{k0(!1)}}}return U.memoizedState=U.baseState=$,U.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h1,lastRenderedState:$},U}function UO($){$=$O($);var U=$.queue,Q=dC.bind(null,P$,U);return U.dispatch=Q,[$.memoizedState,Q]}function JO($){var U=S6();U.memoizedState=U.baseState=$;var Q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return U.queue=Q,U=DO.bind(null,P$,!0,Q),Q.dispatch=U,[$,U]}function EC($,U){var Q=JU();return BC(Q,ZU,$,U)}function BC($,U,Q,H){return $.baseState=Q,sW($,ZU,typeof H==="function"?H:h1)}function vC($,U){var Q=JU();if(ZU!==null)return BC(Q,ZU,$,U);return Q.baseState=$,[$,Q.queue.dispatch]}function dN($,U,Q,H,M){if(xZ($))throw Error("Cannot update form state while rendering.");if($=U.action,$!==null){var P={payload:M,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){P.listeners.push(k)}};b0.T!==null?Q(!0):P.isTransition=!1,H(P),Q=U.pending,Q===null?(P.next=U.pending=P,NC(U,P)):(P.next=Q.next,U.pending=Q.next=P)}}function NC($,U){var{action:Q,payload:H}=U,M=$.state;if(U.isTransition){var P=b0.T,k={};k._updatedFibers=new Set,b0.T=k;try{var y=Q(M,H),l=b0.S;l!==null&&l(k,y),kC($,U,y)}catch(o){XO($,U,o)}finally{P!==null&&k.types!==null&&(P.types!==null&&P.types!==k.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."),P.types=k.types),b0.T=P,P===null&&k._updatedFibers&&($=k._updatedFibers.size,k._updatedFibers.clear(),10<$&&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{k=Q(M,H),kC($,U,k)}catch(o){XO($,U,o)}}function kC($,U,Q){Q!==null&&typeof Q==="object"&&typeof Q.then==="function"?(b0.asyncTransitions++,Q.then(gZ,gZ),Q.then(function(H){gC($,U,H)},function(H){return XO($,U,H)}),U.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.")):gC($,U,Q)}function gC($,U,Q){U.status="fulfilled",U.value=Q,xC(U),$.state=Q,U=$.pending,U!==null&&(Q=U.next,Q===U?$.pending=null:(Q=Q.next,U.next=Q,NC($,Q)))}function XO($,U,Q){var H=$.pending;if($.pending=null,H!==null){H=H.next;do U.status="rejected",U.reason=Q,xC(U),U=U.next;while(U!==H)}$.action=null}function xC($){$=$.listeners;for(var U=0;U<$.length;U++)(0,$[U])()}function wC($,U){return U}function SI($,U){if(p$){var Q=zU.formState;if(Q!==null){$:{var H=P$;if(p$){if(TU){U:{var M=TU;for(var P=B1;M.nodeType!==8;){if(!P){M=null;break U}if(M=Z1(M.nextSibling),M===null){M=null;break U}}P=M.data,M=P===xV||P===Aq?M:null}if(M){TU=Z1(M.nextSibling),H=M.data===xV;break $}}DJ(H)}H=!1}H&&(U=Q[0])}}return Q=S6(),Q.memoizedState=Q.baseState=U,H={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wC,lastRenderedState:U},Q.queue=H,Q=dC.bind(null,P$,H),H.dispatch=Q,H=$O(!1),P=DO.bind(null,P$,!1,H.queue),H=S6(),M={state:U,dispatch:null,action:$,pending:null},H.queue=M,Q=dN.bind(null,P$,M,P,Q),M.dispatch=Q,H.memoizedState=$,[U,Q,!1]}function SZ($){var U=JU();return fC(U,ZU,$)}function fC($,U,Q){if(U=sW($,U,wC)[0],$=qI(h1)[0],typeof U==="object"&&U!==null&&typeof U.then==="function")try{var H=xY(U)}catch(k){if(k===XQ)throw Bz;throw k}else H=U;U=JU();var M=U.queue,P=M.dispatch;return Q!==U.memoizedState&&(P$.flags|=2048,jI(k1|g6,{destroy:void 0},oN.bind(null,M,Q),null)),[H,P,$]}function oN($,U){$.action=U}function jZ($){var U=JU(),Q=ZU;if(Q!==null)return fC(U,Q,$);JU(),U=U.memoizedState,Q=JU();var H=Q.queue.dispatch;return Q.memoizedState=$,[U,H,!1]}function jI($,U,Q,H){return $={tag:$,create:Q,deps:H,inst:U,next:null},U=P$.updateQueue,U===null&&(U=_Z(),P$.updateQueue=U),Q=U.lastEffect,Q===null?U.lastEffect=$.next=$:(H=Q.next,Q.next=$,$.next=H,U.lastEffect=$),$}function IO($){var U=S6();return $={current:$},U.memoizedState=$}function qX($,U,Q,H){var M=S6();P$.flags|=$,M.memoizedState=jI(k1|U,{destroy:void 0},Q,H===void 0?null:H)}function l6($,U,Q,H){var M=JU();H=H===void 0?null:H;var P=M.memoizedState.inst;ZU!==null&&H!==null&&nW(H,ZU.memoizedState.deps)?M.memoizedState=jI(U,P,Q,H):(P$.flags|=$,M.memoizedState=jI(k1|U,P,Q,H))}function EZ($,U){(P$.mode&l1)!==R$?qX(276826112,g6,$,U):qX(8390656,g6,$,U)}function iN($){P$.flags|=4;var U=P$.updateQueue;if(U===null)U=_Z(),P$.updateQueue=U,U.events=[$];else{var Q=U.events;Q===null?U.events=[$]:Q.push($)}}function QO($){var U=S6(),Q={impl:$};return U.memoizedState=Q,function(){if((d$&z6)!==H6)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Q.impl.apply(void 0,arguments)}}function BZ($){var U=JU().memoizedState;return iN({ref:U,nextImpl:$}),function(){if((d$&z6)!==H6)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return U.impl.apply(void 0,arguments)}}function YO($,U){var Q=4194308;return(P$.mode&l1)!==R$&&(Q|=134217728),qX(Q,H1,$,U)}function yC($,U){if(typeof U==="function"){$=$();var Q=U($);return function(){typeof Q==="function"?Q():U(null)}}if(U!==null&&U!==void 0)return U.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(U).join(", ")+"}"),$=$(),U.current=$,function(){U.current=null}}function GO($,U,Q){typeof U!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",U!==null?typeof U:"null"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null;var H=4194308;(P$.mode&l1)!==R$&&(H|=134217728),qX(H,H1,yC.bind(null,U,$),Q)}function vZ($,U,Q){typeof U!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",U!==null?typeof U:"null"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null,l6(4,H1,yC.bind(null,U,$),Q)}function ZO($,U){return S6().memoizedState=[$,U===void 0?null:U],$}function NZ($,U){var Q=JU();U=U===void 0?null:U;var H=Q.memoizedState;if(U!==null&&nW(U,H[1]))return H[0];return Q.memoizedState=[$,U],$}function zO($,U){var Q=S6();U=U===void 0?null:U;var H=$();if(cX){k0(!0);try{$()}finally{k0(!1)}}return Q.memoizedState=[H,U],H}function kZ($,U){var Q=JU();U=U===void 0?null:U;var H=Q.memoizedState;if(U!==null&&nW(U,H[1]))return H[0];if(H=$(),cX){k0(!0);try{$()}finally{k0(!1)}}return Q.memoizedState=[H,U],H}function KO($,U){var Q=S6();return WO(Q,$,U)}function bC($,U){var Q=JU();return hC(Q,ZU.memoizedState,$,U)}function uC($,U){var Q=JU();return ZU===null?WO(Q,$,U):hC(Q,ZU.memoizedState,$,U)}function WO($,U,Q){if(Q===void 0||(e4&1073741824)!==0&&(g$&261930)===0)return $.memoizedState=U;return $.memoizedState=Q,$=cT(),P$.lanes|=$,lJ|=$,Q}function hC($,U,Q,H){if(v6(Q,U))return Q;if(QQ.current!==null)return $=WO($,Q,H),v6($,U)||(J6=!0),$;if((e4&42)===0||(e4&1073741824)!==0&&(g$&261930)===0)return J6=!0,$.memoizedState=Q;return $=cT(),P$.lanes|=$,lJ|=$,U}function gZ(){b0.asyncTransitions--}function cC($,U,Q,H,M){var P=e$.p;e$.p=P!==0&&P<m1?P:m1;var k=b0.T,y={};y._updatedFibers=new Set,b0.T=y,DO($,!1,U,Q);try{var l=M(),o=b0.S;if(o!==null&&o(y,l),l!==null&&typeof l==="object"&&typeof l.then==="function"){b0.asyncTransitions++,l.then(gZ,gZ);var P0=mN(l,H);fY($,U,P0,G1($))}else fY($,U,H,G1($))}catch(_0){fY($,U,{then:function(){},status:"rejected",reason:_0},G1($))}finally{e$.p=P,k!==null&&y.types!==null&&(k.types!==null&&k.types!==y.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."),k.types=y.types),b0.T=k,k===null&&y._updatedFibers&&($=y._updatedFibers.size,y._updatedFibers.clear(),10<$&&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 OO($,U,Q,H){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var M=pC($).queue;cN($),cC($,M,U,sX,Q===null?_:function(){return mC($),Q(H)})}function pC($){var U=$.memoizedState;if(U!==null)return U;U={memoizedState:sX,baseState:sX,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:h1,lastRenderedState:sX},next:null};var Q={};return U.next={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:h1,lastRenderedState:Q},next:null},$.memoizedState=U,$=$.alternate,$!==null&&($.memoizedState=U),U}function mC($){b0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var U=pC($);U.next===null&&(U=$.alternate.memoizedState),fY($,U.next.queue,{},G1($))}function VO(){var $=$O(!1);return $=cC.bind(null,P$,$.queue,!0,!1),S6().memoizedState=$,[!1,$]}function lC(){var $=qI(h1)[0],U=JU().memoizedState;return[typeof $==="boolean"?$:xY($),U]}function nC(){var $=wY(h1)[0],U=JU().memoizedState;return[typeof $==="boolean"?$:xY($),U]}function SX(){return jU(nG)}function HO(){var $=S6(),U=zU.identifierPrefix;if(p$){var Q=i4,H=o4;Q=(H&~(1<<32-j6(H)-1)).toString(32)+Q,U="_"+U+"R_"+Q,Q=xz++,0<Q&&(U+="H"+Q.toString(32)),U+="_"}else Q=jg++,U="_"+U+"r_"+Q.toString(32)+"_";return $.memoizedState=U}function FO(){return S6().memoizedState=rN.bind(null,P$)}function rN($,U){for(var Q=$.return;Q!==null;){switch(Q.tag){case 24:case 3:var H=G1(Q),M=AJ(H),P=CJ(Q,M,H);P!==null&&(J4(H,"refresh()",$),wU(P,Q,H),NY(P,Q,H)),$=wW(),U!==null&&U!==void 0&&P!==null&&console.error("The seed argument is not enabled outside experimental channels."),M.payload={cache:$};return}Q=Q.return}}function tN($,U,Q){var H=arguments;typeof H[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()."),H=G1($);var M={lane:H,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};xZ($)?oC(U,M):(M=PW($,U,M,H),M!==null&&(J4(H,"dispatch()",$),wU(M,$,H),iC(M,U,H)))}function dC($,U,Q){var H=arguments;typeof H[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()."),H=G1($),fY($,U,Q,H)&&J4(H,"setState()",$)}function fY($,U,Q,H){var M={lane:H,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};if(xZ($))oC(U,M);else{var P=$.alternate;if($.lanes===0&&(P===null||P.lanes===0)&&(P=U.lastRenderedReducer,P!==null)){var k=b0.H;b0.H=d1;try{var y=U.lastRenderedState,l=P(y,Q);if(M.hasEagerState=!0,M.eagerState=l,v6(l,y))return YZ($,U,M,0),zU===null&&QZ(),!1}catch(o){}finally{b0.H=k}}if(Q=PW($,U,M,H),Q!==null)return wU(Q,$,H),iC(Q,U,H),!0}return!1}function DO($,U,Q,H){if(b0.T===null&&fX===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."),H={lane:2,revertLane:dO(),gesture:null,action:H,hasEagerState:!1,eagerState:null,next:null},xZ($)){if(U)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else U=PW($,Q,H,2),U!==null&&(J4(2,"setOptimistic()",$),wU(U,$,2))}function xZ($){var U=$.alternate;return $===P$||U!==null&&U===P$}function oC($,U){ZQ=gz=!0;var Q=$.pending;Q===null?U.next=U:(U.next=Q.next,Q.next=U),$.pending=U}function iC($,U,Q){if((Q&4194048)!==0){var H=U.lanes;H&=$.pendingLanes,Q|=H,U.lanes=Q,c0($,Q)}}function LO($){if($!==null&&typeof $!=="function"){var U=String($);n_.has(U)||(n_.add(U),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function MO($,U,Q,H){var M=$.memoizedState,P=Q(H,M);if($.mode&_6){k0(!0);try{P=Q(H,M)}finally{k0(!1)}}P===void 0&&(U=M0(U)||"Component",c_.has(U)||(c_.add(U),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",U))),M=P===null||P===void 0?M:y$({},M,P),$.memoizedState=M,$.lanes===0&&($.updateQueue.baseState=M)}function rC($,U,Q,H,M,P,k){var y=$.stateNode;if(typeof y.shouldComponentUpdate==="function"){if(Q=y.shouldComponentUpdate(H,P,k),$.mode&_6){k0(!0);try{Q=y.shouldComponentUpdate(H,P,k)}finally{k0(!1)}}return Q===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",M0(U)||"Component"),Q}return U.prototype&&U.prototype.isPureReactComponent?!_Y(Q,H)||!_Y(M,P):!0}function tC($,U,Q,H){var M=U.state;typeof U.componentWillReceiveProps==="function"&&U.componentWillReceiveProps(Q,H),typeof U.UNSAFE_componentWillReceiveProps==="function"&&U.UNSAFE_componentWillReceiveProps(Q,H),U.state!==M&&($=t($)||"Component",f_.has($)||(f_.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),OV.enqueueReplaceState(U,U.state,null))}function jX($,U){var Q=U;if("ref"in U){Q={};for(var H in U)H!=="ref"&&(Q[H]=U[H])}if($=$.defaultProps){Q===U&&(Q=y$({},Q));for(var M in $)Q[M]===void 0&&(Q[M]=$[M])}return Q}function aC($){m9($),console.warn(`%s
|
|
116
|
+
|
|
117
|
+
%s
|
|
118
|
+
`,zQ?"An error occurred in the <"+zQ+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function sC($){var U=zQ?"The above error occurred in the <"+zQ+"> component.":"The above error occurred in one of your React components.",Q="React will try to recreate this component tree from scratch using the error boundary you provided, "+((VV||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var H=$.environmentName;$=[`%o
|
|
120
|
+
|
|
121
|
+
%s
|
|
122
|
+
|
|
123
|
+
%s
|
|
124
|
+
`,$,U,Q].slice(0),typeof $[0]==="string"?$.splice(0,1,jq+" "+$[0],Eq,Q8+H+Q8,Bq):$.splice(0,0,jq,Eq,Q8+H+Q8,Bq),$.unshift(console),H=ig.apply(console.error,$),H()}else console.error(`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,$,U,Q)}function eC($){m9($)}function wZ($,U){try{zQ=U.source?t(U.source):null,VV=null;var Q=U.value;if(b0.actQueue!==null)b0.thrownErrors.push(Q);else{var H=$.onUncaughtError;H(Q,{componentStack:U.stack})}}catch(M){setTimeout(function(){throw M})}}function $T($,U,Q){try{zQ=Q.source?t(Q.source):null,VV=t(U);var H=$.onCaughtError;H(Q.value,{componentStack:Q.stack,errorBoundary:U.tag===1?U.stateNode:null})}catch(M){setTimeout(function(){throw M})}}function AO($,U,Q){return Q=AJ(Q),Q.tag=YV,Q.payload={element:null},Q.callback=function(){I0(U.source,wZ,$,U)},Q}function CO($){return $=AJ($),$.tag=YV,$}function TO($,U,Q,H){var M=Q.type.getDerivedStateFromError;if(typeof M==="function"){var P=H.value;$.payload=function(){return M(P)},$.callback=function(){oA(Q),I0(H.source,$T,U,Q,H)}}var k=Q.stateNode;k!==null&&typeof k.componentDidCatch==="function"&&($.callback=function(){oA(Q),I0(H.source,$T,U,Q,H),typeof M!=="function"&&(dJ===null?dJ=new Set([this]):dJ.add(this)),Pg(this,H),typeof M==="function"||(Q.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.",t(Q)||"Unknown")})}function aN($,U,Q,H,M){if(Q.flags|=32768,A4&&lY($,M),H!==null&&typeof H==="object"&&typeof H.then==="function"){if(U=Q.alternate,U!==null&&PI(U,Q,M,!0),p$&&(R4=!0),Q=V1.current,Q!==null){switch(Q.tag){case 31:case 13:return N1===null?lZ():Q.alternate===null&&gU===XJ&&(gU=yz),Q.flags&=-257,Q.flags|=65536,Q.lanes=M,H===vz?Q.flags|=16384:(U=Q.updateQueue,U===null?Q.updateQueue=new Set([H]):U.add(H),pO($,H,M)),!1;case 22:return Q.flags|=65536,H===vz?Q.flags|=16384:(U=Q.updateQueue,U===null?(U={transitions:null,markerInstances:null,retryQueue:new Set([H])},Q.updateQueue=U):(Q=U.retryQueue,Q===null?U.retryQueue=new Set([H]):Q.add(H)),pO($,H,M)),!1}throw Error("Unexpected Suspense handler tag ("+Q.tag+"). This is a bug in React.")}return pO($,H,M),lZ(),!1}if(p$)return R4=!0,U=V1.current,U!==null?((U.flags&65536)===0&&(U.flags|=256),U.flags|=65536,U.lanes=M,H!==r9&&SY(X1(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:H}),Q))):(H!==r9&&SY(X1(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:H}),Q)),$=$.current.alternate,$.flags|=65536,M&=-M,$.lanes|=M,H=X1(H,Q),M=AO($.stateNode,H,M),TZ($,M),gU!==pJ&&(gU=pX)),!1;var P=X1(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:H}),Q);if(fG===null?fG=[P]:fG.push(P),gU!==pJ&&(gU=pX),U===null)return!0;H=X1(H,Q),Q=U;do{switch(Q.tag){case 3:return Q.flags|=65536,$=M&-M,Q.lanes|=$,$=AO(Q.stateNode,H,$),TZ(Q,$),!1;case 1:if(U=Q.type,P=Q.stateNode,(Q.flags&128)===0&&(typeof U.getDerivedStateFromError==="function"||P!==null&&typeof P.componentDidCatch==="function"&&(dJ===null||!dJ.has(P))))return Q.flags|=65536,M&=-M,Q.lanes|=M,M=CO(M),TO(M,$,Q,H),TZ(Q,M),!1}Q=Q.return}while(Q!==null);return!1}function L6($,U,Q,H){U.child=$===null?q_(U,null,Q,H):hX(U,$.child,Q,H)}function UT($,U,Q,H,M){Q=Q.render;var P=U.ref;if("ref"in H){var k={};for(var y in H)y!=="ref"&&(k[y]=H[y])}else k=H;if(RX(U),H=dW($,U,Q,k,P,M),y=iW(),$!==null&&!J6)return rW($,U,M),c4($,U,M);return p$&&y&&BW(U),U.flags|=1,L6($,U,H,M),U.child}function JT($,U,Q,H,M){if($===null){var P=Q.type;if(typeof P==="function"&&!qW(P)&&P.defaultProps===void 0&&Q.compare===null)return Q=MX(P),U.tag=15,U.type=Q,PO(U,P),XT($,U,Q,H,M);return $=SW(Q.type,null,H,U,U.mode,M),$.ref=U.ref,$.return=U,U.child=$}if(P=$.child,!BO($,M)){var k=P.memoizedProps;if(Q=Q.compare,Q=Q!==null?Q:_Y,Q(k,H)&&$.ref===U.ref)return c4($,U,M)}return U.flags|=1,$=y4(P,H),$.ref=U.ref,$.return=U,U.child=$}function XT($,U,Q,H,M){if($!==null){var P=$.memoizedProps;if(_Y(P,H)&&$.ref===U.ref&&U.type===$.type)if(J6=!1,U.pendingProps=H=P,BO($,M))($.flags&131072)!==0&&(J6=!0);else return U.lanes=$.lanes,c4($,U,M)}return RO($,U,Q,H,M)}function IT($,U,Q,H){var M=H.children,P=$!==null?$.memoizedState:null;if($===null&&U.stateNode===null&&(U.stateNode={_visibility:WG,_pendingMarkers:null,_retryCache:null,_transitions:null}),H.mode==="hidden"){if((U.flags&128)!==0){if(P=P!==null?P.baseLanes|Q:Q,$!==null){H=U.child=$.child;for(M=0;H!==null;)M=M|H.lanes|H.childLanes,H=H.sibling;H=M&~P}else H=0,U.child=null;return QT($,U,P,Q,H)}if((Q&536870912)!==0)U.memoizedState={baseLanes:0,cachePool:null},$!==null&&FZ(U,P!==null?P.cachePool:null),P!==null?CC(U,P):pW(U),TC(U);else return H=U.lanes=536870912,QT($,U,P!==null?P.baseLanes|Q:Q,Q,H)}else P!==null?(FZ(U,P.cachePool),CC(U,P),RJ(U),U.memoizedState=null):($!==null&&FZ(U,null),pW(U),RJ(U));return L6($,U,M,Q),U.child}function yY($,U){return $!==null&&$.tag===22||U.stateNode!==null||(U.stateNode={_visibility:WG,_pendingMarkers:null,_retryCache:null,_transitions:null}),U.sibling}function QT($,U,Q,H,M){var P=bW();return P=P===null?null:{parent:eU._currentValue,pool:P},U.memoizedState={baseLanes:Q,cachePool:P},$!==null&&FZ(U,null),pW(U),TC(U),$!==null&&PI($,U,H,!0),U.childLanes=M,null}function fZ($,U){var Q=U.hidden;return Q!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
|
+
- <Activity %s>
|
|
131
|
+
+ <Activity %s>`,Q===!0?"hidden":Q===!1?"hidden={false}":"hidden={...}",Q?'mode="hidden"':'mode="visible"'),U=bZ({mode:U.mode,children:U.children},$.mode),U.ref=$.ref,$.child=U,U.return=$,U}function YT($,U,Q){return hX(U,$.child,null,Q),$=fZ(U,U.pendingProps),$.flags|=2,Y1(U),U.memoizedState=null,$}function sN($,U,Q){var H=U.pendingProps,M=(U.flags&128)!==0;if(U.flags&=-129,$===null){if(p$){if(H.mode==="hidden")return $=fZ(U,H),U.lanes=536870912,yY(null,$);if(lW(U),($=TU)?(Q=NR($,B1),Q=Q!==null&&Q.data===iX?Q:null,Q!==null&&(H={dehydrated:Q,treeContext:sA(),retryLane:536870912,hydrationErrors:null},U.memoizedState=H,H=tA(Q),H.return=U,U.child=H,C6=U,TU=null)):Q=null,Q===null)throw zZ(U,$),DJ(U);return U.lanes=536870912,null}return fZ(U,H)}var P=$.memoizedState;if(P!==null){var k=P.dehydrated;if(lW(U),M)if(U.flags&256)U.flags&=-257,U=YT($,U,Q);else if(U.memoizedState!==null)U.child=$.child,U.flags|=128,U=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if($C(),(Q&536870912)!==0&&mZ(U),J6||PI($,U,Q,!1),M=(Q&$.childLanes)!==0,J6||M){if(H=zU,H!==null&&(k=YU(H,Q),k!==0&&k!==P.retryLane))throw P.retryLane=k,R6($,k),wU(H,$,k),HV;lZ(),U=YT($,U,Q)}else $=P.treeContext,TU=Z1(k.nextSibling),C6=U,p$=!0,wJ=null,R4=!1,O1=null,B1=!1,$!==null&&eA(U,$),U=fZ(U,H),U.flags|=4096;return U}return P=$.child,H={mode:H.mode,children:H.children},(Q&536870912)!==0&&(Q&$.lanes)!==0&&mZ(U),$=y4(P,H),$.ref=U.ref,U.child=$,$.return=U,$}function yZ($,U){var Q=U.ref;if(Q===null)$!==null&&$.ref!==null&&(U.flags|=4194816);else{if(typeof Q!=="function"&&typeof Q!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==Q)U.flags|=4194816}}function RO($,U,Q,H,M){if(Q.prototype&&typeof Q.prototype.render==="function"){var P=M0(Q)||"Unknown";d_[P]||(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.",P,P),d_[P]=!0)}if(U.mode&_6&&n1.recordLegacyContextWarning(U,null),$===null&&(PO(U,U.type),Q.contextTypes&&(P=M0(Q)||"Unknown",i_[P]||(i_[P]=!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)",P)))),RX(U),Q=dW($,U,Q,H,void 0,M),H=iW(),$!==null&&!J6)return rW($,U,M),c4($,U,M);return p$&&H&&BW(U),U.flags|=1,L6($,U,Q,M),U.child}function GT($,U,Q,H,M,P){if(RX(U),UJ=-1,BG=$!==null&&$.type!==U.type,U.updateQueue=null,Q=oW(U,H,Q,M),RC($,U),H=iW(),$!==null&&!J6)return rW($,U,P),c4($,U,P);return p$&&H&&BW(U),U.flags|=1,L6($,U,Q,P),U.child}function ZT($,U,Q,H,M){switch(Z(U)){case!1:var P=U.stateNode,k=new U.type(U.memoizedProps,P.context).state;P.updater.enqueueSetState(P,k,null);break;case!0:U.flags|=128,U.flags|=65536,P=Error("Simulated error coming from DevTools");var y=M&-M;if(U.lanes|=y,k=zU,k===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");y=CO(y),TO(y,k,U,X1(P,U)),TZ(U,y)}if(RX(U),U.stateNode===null){if(k=xJ,P=Q.contextType,"contextType"in Q&&P!==null&&(P===void 0||P.$$typeof!==D4)&&!l_.has(Q)&&(l_.add(Q),y=P===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 P!=="object"?" However, it is set to a "+typeof P+".":P.$$typeof===F9?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(P).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",M0(Q)||"Component",y)),typeof P==="object"&&P!==null&&(k=jU(P)),P=new Q(H,k),U.mode&_6){k0(!0);try{P=new Q(H,k)}finally{k0(!1)}}if(k=U.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=OV,U.stateNode=P,P._reactInternals=U,P._reactInternalInstance=w_,typeof Q.getDerivedStateFromProps==="function"&&k===null&&(k=M0(Q)||"Component",y_.has(k)||(y_.add(k),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.",k,P.state===null?"null":"undefined",k))),typeof Q.getDerivedStateFromProps==="function"||typeof P.getSnapshotBeforeUpdate==="function"){var l=y=k=null;if(typeof P.componentWillMount==="function"&&P.componentWillMount.__suppressDeprecationWarning!==!0?k="componentWillMount":typeof P.UNSAFE_componentWillMount==="function"&&(k="UNSAFE_componentWillMount"),typeof P.componentWillReceiveProps==="function"&&P.componentWillReceiveProps.__suppressDeprecationWarning!==!0?y="componentWillReceiveProps":typeof P.UNSAFE_componentWillReceiveProps==="function"&&(y="UNSAFE_componentWillReceiveProps"),typeof P.componentWillUpdate==="function"&&P.componentWillUpdate.__suppressDeprecationWarning!==!0?l="componentWillUpdate":typeof P.UNSAFE_componentWillUpdate==="function"&&(l="UNSAFE_componentWillUpdate"),k!==null||y!==null||l!==null){P=M0(Q)||"Component";var o=typeof Q.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";u_.has(P)||(u_.add(P),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
|
+
|
|
133
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
|
+
|
|
135
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,P,o,k!==null?`
|
|
137
|
+
`+k:"",y!==null?`
|
|
138
|
+
`+y:"",l!==null?`
|
|
139
|
+
`+l:""))}}P=U.stateNode,k=M0(Q)||"Component",P.render||(Q.prototype&&typeof Q.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",k):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",k)),!P.getInitialState||P.getInitialState.isReactClassApproved||P.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?",k),P.getDefaultProps&&!P.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.",k),P.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",k),Q.childContextTypes&&!m_.has(Q)&&(m_.add(Q),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",k)),Q.contextTypes&&!p_.has(Q)&&(p_.add(Q),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)",k)),typeof P.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.",k),Q.prototype&&Q.prototype.isPureReactComponent&&typeof P.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.",M0(Q)||"A pure component"),typeof P.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",k),typeof P.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().",k),typeof P.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",k),typeof P.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",k),y=P.props!==H,P.props!==void 0&&y&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",k),P.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.",k,k),typeof P.getSnapshotBeforeUpdate!=="function"||typeof P.componentDidUpdate==="function"||b_.has(Q)||(b_.add(Q),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",M0(Q))),typeof P.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",k),typeof P.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",k),typeof Q.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",k),(y=P.state)&&(typeof y!=="object"||G6(y))&&console.error("%s.state: must be set to an object or null",k),typeof P.getChildContext==="function"&&typeof Q.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",k),P=U.stateNode,P.props=H,P.state=U.memoizedState,P.refs={},hW(U),k=Q.contextType,P.context=typeof k==="object"&&k!==null?jU(k):xJ,P.state===H&&(k=M0(Q)||"Component",h_.has(k)||(h_.add(k),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.",k))),U.mode&_6&&n1.recordLegacyContextWarning(U,P),n1.recordUnsafeLifecycleWarnings(U,P),P.state=U.memoizedState,k=Q.getDerivedStateFromProps,typeof k==="function"&&(MO(U,Q,k,H),P.state=U.memoizedState),typeof Q.getDerivedStateFromProps==="function"||typeof P.getSnapshotBeforeUpdate==="function"||typeof P.UNSAFE_componentWillMount!=="function"&&typeof P.componentWillMount!=="function"||(k=P.state,typeof P.componentWillMount==="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount==="function"&&P.UNSAFE_componentWillMount(),k!==P.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t(U)||"Component"),OV.enqueueReplaceState(P,P.state,null)),gY(U,H,P,M),kY(),P.state=U.memoizedState),typeof P.componentDidMount==="function"&&(U.flags|=4194308),(U.mode&l1)!==R$&&(U.flags|=134217728),P=!0}else if($===null){P=U.stateNode;var P0=U.memoizedProps;y=jX(Q,P0),P.props=y;var _0=P.context;l=Q.contextType,k=xJ,typeof l==="object"&&l!==null&&(k=jU(l)),o=Q.getDerivedStateFromProps,l=typeof o==="function"||typeof P.getSnapshotBeforeUpdate==="function",P0=U.pendingProps!==P0,l||typeof P.UNSAFE_componentWillReceiveProps!=="function"&&typeof P.componentWillReceiveProps!=="function"||(P0||_0!==k)&&tC(U,P,H,k),cJ=!1;var H0=U.memoizedState;P.state=H0,gY(U,H,P,M),kY(),_0=U.memoizedState,P0||H0!==_0||cJ?(typeof o==="function"&&(MO(U,Q,o,H),_0=U.memoizedState),(y=cJ||rC(U,Q,y,H,H0,_0,k))?(l||typeof P.UNSAFE_componentWillMount!=="function"&&typeof P.componentWillMount!=="function"||(typeof P.componentWillMount==="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount==="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount==="function"&&(U.flags|=4194308),(U.mode&l1)!==R$&&(U.flags|=134217728)):(typeof P.componentDidMount==="function"&&(U.flags|=4194308),(U.mode&l1)!==R$&&(U.flags|=134217728),U.memoizedProps=H,U.memoizedState=_0),P.props=H,P.state=_0,P.context=k,P=y):(typeof P.componentDidMount==="function"&&(U.flags|=4194308),(U.mode&l1)!==R$&&(U.flags|=134217728),P=!1)}else{P=U.stateNode,cW($,U),k=U.memoizedProps,l=jX(Q,k),P.props=l,o=U.pendingProps,H0=P.context,_0=Q.contextType,y=xJ,typeof _0==="object"&&_0!==null&&(y=jU(_0)),P0=Q.getDerivedStateFromProps,(_0=typeof P0==="function"||typeof P.getSnapshotBeforeUpdate==="function")||typeof P.UNSAFE_componentWillReceiveProps!=="function"&&typeof P.componentWillReceiveProps!=="function"||(k!==o||H0!==y)&&tC(U,P,H,y),cJ=!1,H0=U.memoizedState,P.state=H0,gY(U,H,P,M),kY();var g0=U.memoizedState;k!==o||H0!==g0||cJ||$!==null&&$.dependencies!==null&&WZ($.dependencies)?(typeof P0==="function"&&(MO(U,Q,P0,H),g0=U.memoizedState),(l=cJ||rC(U,Q,l,H,H0,g0,y)||$!==null&&$.dependencies!==null&&WZ($.dependencies))?(_0||typeof P.UNSAFE_componentWillUpdate!=="function"&&typeof P.componentWillUpdate!=="function"||(typeof P.componentWillUpdate==="function"&&P.componentWillUpdate(H,g0,y),typeof P.UNSAFE_componentWillUpdate==="function"&&P.UNSAFE_componentWillUpdate(H,g0,y)),typeof P.componentDidUpdate==="function"&&(U.flags|=4),typeof P.getSnapshotBeforeUpdate==="function"&&(U.flags|=1024)):(typeof P.componentDidUpdate!=="function"||k===$.memoizedProps&&H0===$.memoizedState||(U.flags|=4),typeof P.getSnapshotBeforeUpdate!=="function"||k===$.memoizedProps&&H0===$.memoizedState||(U.flags|=1024),U.memoizedProps=H,U.memoizedState=g0),P.props=H,P.state=g0,P.context=y,P=l):(typeof P.componentDidUpdate!=="function"||k===$.memoizedProps&&H0===$.memoizedState||(U.flags|=4),typeof P.getSnapshotBeforeUpdate!=="function"||k===$.memoizedProps&&H0===$.memoizedState||(U.flags|=1024),P=!1)}if(y=P,yZ($,U),k=(U.flags&128)!==0,y||k){if(y=U.stateNode,Z0(U),k&&typeof Q.getDerivedStateFromError!=="function")Q=null,N6=-1;else if(Q=W_(y),U.mode&_6){k0(!0);try{W_(y)}finally{k0(!1)}}U.flags|=1,$!==null&&k?(U.child=hX(U,$.child,null,M),U.child=hX(U,null,Q,M)):L6($,U,Q,M),U.memoizedState=y.state,$=U.child}else $=c4($,U,M);return M=U.stateNode,P&&M.props!==H&&(KQ||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",t(U)||"a component"),KQ=!0),$}function zT($,U,Q,H){return TX(),U.flags|=256,L6($,U,Q,H),U.child}function PO($,U){U&&U.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,U.displayName||U.name||"Component"),typeof U.getDerivedStateFromProps==="function"&&($=M0(U)||"Unknown",r_[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),r_[$]=!0)),typeof U.contextType==="object"&&U.contextType!==null&&(U=M0(U)||"Unknown",o_[U]||(console.error("%s: Function components do not support contextType.",U),o_[U]=!0))}function _O($){return{baseLanes:$,cachePool:GC()}}function qO($,U,Q){return $=$!==null?$.childLanes&~Q:0,U&&($|=r6),$}function KT($,U,Q){var H,M=U.pendingProps;K(U)&&(U.flags|=128);var P=!1,k=(U.flags&128)!==0;if((H=k)||(H=$!==null&&$.memoizedState===null?!1:(aU.current&jG)!==0),H&&(P=!0,U.flags&=-129),H=(U.flags&32)!==0,U.flags&=-33,$===null){if(p$){if(P?TJ(U):RJ(U),($=TU)?(Q=NR($,B1),Q=Q!==null&&Q.data!==iX?Q:null,Q!==null&&(H={dehydrated:Q,treeContext:sA(),retryLane:536870912,hydrationErrors:null},U.memoizedState=H,H=tA(Q),H.return=U,U.child=H,C6=U,TU=null)):Q=null,Q===null)throw zZ(U,$),DJ(U);return I9(Q)?U.lanes=32:U.lanes=536870912,null}var y=M.children;if(M=M.fallback,P){RJ(U);var l=U.mode;return y=bZ({mode:"hidden",children:y},l),M=AX(M,l,Q,null),y.return=U,M.return=U,y.sibling=M,U.child=y,M=U.child,M.memoizedState=_O(Q),M.childLanes=qO($,H,Q),U.memoizedState=FV,yY(null,M)}return TJ(U),SO(U,y)}var o=$.memoizedState;if(o!==null){var P0=o.dehydrated;if(P0!==null){if(k)U.flags&256?(TJ(U),U.flags&=-257,U=jO($,U,Q)):U.memoizedState!==null?(RJ(U),U.child=$.child,U.flags|=128,U=null):(RJ(U),y=M.fallback,l=U.mode,M=bZ({mode:"visible",children:M.children},l),y=AX(y,l,Q,null),y.flags|=2,M.return=U,y.return=U,M.sibling=y,U.child=M,hX(U,$.child,null,Q),M=U.child,M.memoizedState=_O(Q),M.childLanes=qO($,H,Q),U.memoizedState=FV,U=yY(null,M));else if(TJ(U),$C(),(Q&536870912)!==0&&mZ(U),I9(P0)){if(H=P0.nextSibling&&P0.nextSibling.dataset,H){y=H.dgst;var _0=H.msg;l=H.stck;var H0=H.cstck}P=_0,H=y,M=l,P0=H0,y=P,l=P0,y=y?Error(y):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),y.stack=M||"",y.digest=H,H=l===void 0?null:l,M={value:y,source:null,stack:H},typeof H==="string"&&i9.set(y,M),SY(M),U=jO($,U,Q)}else if(J6||PI($,U,Q,!1),H=(Q&$.childLanes)!==0,J6||H){if(H=zU,H!==null&&(M=YU(H,Q),M!==0&&M!==o.retryLane))throw o.retryLane=M,R6($,M),wU(H,$,M),HV;X9(P0)||lZ(),U=jO($,U,Q)}else X9(P0)?(U.flags|=192,U.child=$.child,U=null):($=o.treeContext,TU=Z1(P0.nextSibling),C6=U,p$=!0,wJ=null,R4=!1,O1=null,B1=!1,$!==null&&eA(U,$),U=SO(U,M.children),U.flags|=4096);return U}}if(P)return RJ(U),y=M.fallback,l=U.mode,H0=$.child,P0=H0.sibling,M=y4(H0,{mode:"hidden",children:M.children}),M.subtreeFlags=H0.subtreeFlags&65011712,P0!==null?y=y4(P0,y):(y=AX(y,l,Q,null),y.flags|=2),y.return=U,M.return=U,M.sibling=y,U.child=M,yY(null,M),M=U.child,y=$.child.memoizedState,y===null?y=_O(Q):(l=y.cachePool,l!==null?(H0=eU._currentValue,l=l.parent!==H0?{parent:H0,pool:H0}:l):l=GC(),y={baseLanes:y.baseLanes|Q,cachePool:l}),M.memoizedState=y,M.childLanes=qO($,H,Q),U.memoizedState=FV,yY($.child,M);return o!==null&&(Q&62914560)===Q&&(Q&$.lanes)!==0&&mZ(U),TJ(U),Q=$.child,$=Q.sibling,Q=y4(Q,{mode:"visible",children:M.children}),Q.return=U,Q.sibling=null,$!==null&&(H=U.deletions,H===null?(U.deletions=[$],U.flags|=16):H.push($)),U.child=Q,U.memoizedState=null,Q}function SO($,U){return U=bZ({mode:"visible",children:U},$.mode),U.return=$,$.child=U}function bZ($,U){return $=q(22,$,null,U),$.lanes=0,$}function jO($,U,Q){return hX(U,$.child,null,Q),$=SO(U,U.pendingProps.children),$.flags|=2,U.memoizedState=null,$}function WT($,U,Q){$.lanes|=U;var H=$.alternate;H!==null&&(H.lanes|=U),gW($.return,U,Q)}function EO($,U,Q,H,M,P){var k=$.memoizedState;k===null?$.memoizedState={isBackwards:U,rendering:null,renderingStartTime:0,last:H,tail:Q,tailMode:M,treeForkCount:P}:(k.isBackwards=U,k.rendering=null,k.renderingStartTime=0,k.last=H,k.tail=Q,k.tailMode=M,k.treeForkCount=P)}function OT($,U,Q){var H=U.pendingProps,M=H.revealOrder,P=H.tail,k=H.children,y=aU.current;if((H=(y&jG)!==0)?(y=y&YQ|jG,U.flags|=128):y&=YQ,V(aU,y,U),y=M==null?"null":M,M!=="forwards"&&M!=="unstable_legacy-backwards"&&M!=="together"&&M!=="independent"&&!t_[y])if(t_[y]=!0,M==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(M==="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 M==="string")switch(M.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.',M,M.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.',M,M.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',M)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',M);if(y=P==null?"null":P,!fz[y])if(P==null){if(M==="forwards"||M==="backwards"||M==="unstable_legacy-backwards")fz[y]=!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 P!=="visible"&&P!=="collapsed"&&P!=="hidden"?(fz[y]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',P)):M!=="forwards"&&M!=="backwards"&&M!=="unstable_legacy-backwards"&&(fz[y]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',P));$:if((M==="forwards"||M==="backwards"||M==="unstable_legacy-backwards")&&k!==void 0&&k!==null&&k!==!1)if(G6(k)){for(y=0;y<k.length;y++)if(!LC(k[y],y))break $}else if(y=D0(k),typeof y==="function"){if(y=y.call(k))for(var l=y.next(),o=0;!l.done;l=y.next()){if(!LC(l.value,o))break $;o++}}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?',M);if(L6($,U,k,Q),p$?(FJ(),k=OG):k=0,!H&&$!==null&&($.flags&128)!==0)$:for($=U.child;$!==null;){if($.tag===13)$.memoizedState!==null&&WT($,Q,U);else if($.tag===19)WT($,Q,U);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===U)break $;for(;$.sibling===null;){if($.return===null||$.return===U)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(M){case"forwards":Q=U.child;for(M=null;Q!==null;)$=Q.alternate,$!==null&&RZ($)===null&&(M=Q),Q=Q.sibling;Q=M,Q===null?(M=U.child,U.child=null):(M=Q.sibling,Q.sibling=null),EO(U,!1,M,Q,P,k);break;case"backwards":case"unstable_legacy-backwards":Q=null,M=U.child;for(U.child=null;M!==null;){if($=M.alternate,$!==null&&RZ($)===null){U.child=M;break}$=M.sibling,M.sibling=Q,Q=M,M=$}EO(U,!0,Q,null,P,k);break;case"together":EO(U,!1,null,null,void 0,k);break;default:U.memoizedState=null}return U.child}function c4($,U,Q){if($!==null&&(U.dependencies=$.dependencies),N6=-1,lJ|=U.lanes,(Q&U.childLanes)===0)if($!==null){if(PI($,U,Q,!1),(Q&U.childLanes)===0)return null}else return null;if($!==null&&U.child!==$.child)throw Error("Resuming work not yet implemented.");if(U.child!==null){$=U.child,Q=y4($,$.pendingProps),U.child=Q;for(Q.return=U;$.sibling!==null;)$=$.sibling,Q=Q.sibling=y4($,$.pendingProps),Q.return=U;Q.sibling=null}return U.child}function BO($,U){if(($.lanes&U)!==0)return!0;return $=$.dependencies,$!==null&&WZ($)?!0:!1}function eN($,U,Q){switch(U.tag){case 3:O(U,U.stateNode.containerInfo),LJ(U,eU,$.memoizedState.cache),TX();break;case 27:case 5:j(U);break;case 4:O(U,U.stateNode.containerInfo);break;case 10:LJ(U,U.type,U.memoizedProps.value);break;case 12:(Q&U.childLanes)!==0&&(U.flags|=4),U.flags|=2048;var H=U.stateNode;H.effectDuration=-0,H.passiveEffectDuration=-0;break;case 31:if(U.memoizedState!==null)return U.flags|=128,lW(U),null;break;case 13:if(H=U.memoizedState,H!==null){if(H.dehydrated!==null)return TJ(U),U.flags|=128,null;if((Q&U.child.childLanes)!==0)return KT($,U,Q);return TJ(U),$=c4($,U,Q),$!==null?$.sibling:null}TJ(U);break;case 19:var M=($.flags&128)!==0;if(H=(Q&U.childLanes)!==0,H||(PI($,U,Q,!1),H=(Q&U.childLanes)!==0),M){if(H)return OT($,U,Q);U.flags|=128}if(M=U.memoizedState,M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),V(aU,aU.current,U),H)break;else return null;case 22:return U.lanes=0,IT($,U,Q,U.pendingProps);case 24:LJ(U,eU,$.memoizedState.cache)}return c4($,U,Q)}function vO($,U,Q){if(U._debugNeedsRemount&&$!==null){Q=SW(U.type,U.key,U.pendingProps,U._debugOwner||null,U.mode,U.lanes),Q._debugStack=U._debugStack,Q._debugTask=U._debugTask;var H=U.return;if(H===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,U.alternate=null,Q.index=U.index,Q.sibling=U.sibling,Q.return=U.return,Q.ref=U.ref,Q._debugInfo=U._debugInfo,U===H.child)H.child=Q;else{var M=H.child;if(M===null)throw Error("Expected parent to have a child.");for(;M.sibling!==U;)if(M=M.sibling,M===null)throw Error("Expected to find the previous sibling.");M.sibling=Q}return U=H.deletions,U===null?(H.deletions=[$],H.flags|=16):U.push($),Q.flags|=2,Q}if($!==null)if($.memoizedProps!==U.pendingProps||U.type!==$.type)J6=!0;else{if(!BO($,Q)&&(U.flags&128)===0)return J6=!1,eN($,U,Q);J6=($.flags&131072)!==0?!0:!1}else{if(J6=!1,H=p$)FJ(),H=(U.flags&1048576)!==0;H&&(H=U.index,FJ(),aA(U,OG,H))}switch(U.lanes=0,U.tag){case 16:$:if(H=U.pendingProps,$=MJ(U.elementType),U.type=$,typeof $==="function")qW($)?(H=jX($,H),U.tag=1,U.type=$=MX($),U=ZT(null,U,$,H,Q)):(U.tag=0,PO(U,$),U.type=$=MX($),U=RO(null,U,$,H,Q));else{if($!==void 0&&$!==null){if(M=$.$$typeof,M===eY){U.tag=11,U.type=$=_W($),U=UT(null,U,$,H,Q);break $}else if(M===Iz){U.tag=14,U=JT(null,U,$,H,Q);break $}}throw U="",$!==null&&typeof $==="object"&&$.$$typeof===z1&&(U=" Did you wrap a component in React.lazy() more than once?"),Q=M0($)||$,Error("Element type is invalid. Received a promise that resolves to: "+Q+". Lazy element type must resolve to a class or function."+U)}return U;case 0:return RO($,U,U.type,U.pendingProps,Q);case 1:return H=U.type,M=jX(H,U.pendingProps),ZT($,U,H,M,Q);case 3:$:{if(O(U,U.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");H=U.pendingProps;var P=U.memoizedState;M=P.element,cW($,U),gY(U,H,null,Q);var k=U.memoizedState;if(H=k.cache,LJ(U,eU,H),H!==P.cache&&xW(U,[eU],Q,!0),kY(),H=k.element,P.isDehydrated)if(P={element:H,isDehydrated:!1,cache:k.cache},U.updateQueue.baseState=P,U.memoizedState=P,U.flags&256){U=zT($,U,H,Q);break $}else if(H!==M){M=X1(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),U),SY(M),U=zT($,U,H,Q);break $}else{switch($=U.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}TU=Z1($.firstChild),C6=U,p$=!0,wJ=null,R4=!1,O1=null,B1=!0,Q=q_(U,null,H,Q);for(U.child=Q;Q;)Q.flags=Q.flags&-3|4096,Q=Q.sibling}else{if(TX(),H===M){U=c4($,U,Q);break $}L6($,U,H,Q)}U=U.child}return U;case 26:return yZ($,U),$===null?(Q=yR(U.type,null,U.pendingProps,null))?U.memoizedState=Q:p$||(Q=U.type,$=U.pendingProps,H=D(EJ.current),H=iZ(H).createElement(Q),H[A6]=U,H[E6]=$,M6(H,Q,$),V$(H),U.stateNode=H):U.memoizedState=yR(U.type,$.memoizedProps,U.pendingProps,$.memoizedState),null;case 27:return j(U),$===null&&p$&&(H=D(EJ.current),M=R(),H=U.stateNode=wR(U.type,U.pendingProps,H,M,!1),R4||(M=PR(H,U.type,U.pendingProps,M),M!==null&&(CX(U,0).serverProps=M)),C6=U,B1=!0,M=TU,SJ(U.type)?(bV=M,TU=Z1(H.firstChild)):TU=M),L6($,U,U.pendingProps.children,Q),yZ($,U),$===null&&(U.flags|=4194304),U.child;case 5:return $===null&&p$&&(P=R(),H=DW(U.type,P.ancestorInfo),M=TU,(k=!M)||(k=c3(M,U.type,U.pendingProps,B1),k!==null?(U.stateNode=k,R4||(P=PR(k,U.type,U.pendingProps,P),P!==null&&(CX(U,0).serverProps=P)),C6=U,TU=Z1(k.firstChild),B1=!1,P=!0):P=!1,k=!P),k&&(H&&zZ(U,M),DJ(U))),j(U),M=U.type,P=U.pendingProps,k=$!==null?$.memoizedProps:null,H=P.children,U9(M,P)?H=null:k!==null&&U9(M,k)&&(U.flags|=32),U.memoizedState!==null&&(M=dW($,U,nN,null,null,Q),nG._currentValue=M),yZ($,U),L6($,U,H,Q),U.child;case 6:return $===null&&p$&&(Q=U.pendingProps,$=R(),H=$.ancestorInfo.current,Q=H!=null?e2(Q,H.tag,$.ancestorInfo.implicitRootScope):!0,$=TU,(H=!$)||(H=p3($,U.pendingProps,B1),H!==null?(U.stateNode=H,C6=U,TU=null,H=!0):H=!1,H=!H),H&&(Q&&zZ(U,$),DJ(U))),null;case 13:return KT($,U,Q);case 4:return O(U,U.stateNode.containerInfo),H=U.pendingProps,$===null?U.child=hX(U,null,H,Q):L6($,U,H,Q),U.child;case 11:return UT($,U,U.type,U.pendingProps,Q);case 7:return L6($,U,U.pendingProps,Q),U.child;case 8:return L6($,U,U.pendingProps.children,Q),U.child;case 12:return U.flags|=4,U.flags|=2048,H=U.stateNode,H.effectDuration=-0,H.passiveEffectDuration=-0,L6($,U,U.pendingProps.children,Q),U.child;case 10:return H=U.type,M=U.pendingProps,P=M.value,"value"in M||a_||(a_=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),LJ(U,H,P),L6($,U,M.children,Q),U.child;case 9:return M=U.type._context,H=U.pendingProps.children,typeof H!=="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."),RX(U),M=jU(M),H=JV(H,M,void 0),U.flags|=1,L6($,U,H,Q),U.child;case 14:return JT($,U,U.type,U.pendingProps,Q);case 15:return XT($,U,U.type,U.pendingProps,Q);case 19:return OT($,U,Q);case 31:return sN($,U,Q);case 22:return IT($,U,Q,U.pendingProps);case 24:return RX(U),H=jU(eU),$===null?(M=bW(),M===null&&(M=zU,P=wW(),M.pooledCache=P,PX(P),P!==null&&(M.pooledCacheLanes|=Q),M=P),U.memoizedState={parent:H,cache:M},hW(U),LJ(U,eU,M)):(($.lanes&Q)!==0&&(cW($,U),gY(U,null,null,Q),kY()),M=$.memoizedState,P=U.memoizedState,M.parent!==H?(M={parent:H,cache:H},U.memoizedState=M,U.lanes===0&&(U.memoizedState=U.updateQueue.baseState=M),LJ(U,eU,H)):(H=P.cache,LJ(U,eU,H),H!==M.cache&&xW(U,[eU],Q,!0))),L6($,U,U.pendingProps.children,Q),U.child;case 29:throw U.pendingProps}throw Error("Unknown unit of work tag ("+U.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function p4($){$.flags|=4}function NO($,U,Q,H,M){if(U=($.mode&Ag)!==R$)U=!1;if(U){if($.flags|=16777216,(M&335544128)===M)if($.stateNode.complete)$.flags|=8192;else if(nT())$.flags|=8192;else throw uX=vz,IV}else $.flags&=-16777217}function VT($,U){if(U.type!=="stylesheet"||(U.state.loading&x1)!==aX)$.flags&=-16777217;else if($.flags|=16777216,!pR(U))if(nT())$.flags|=8192;else throw uX=vz,IV}function uZ($,U){U!==null&&($.flags|=4),$.flags&16384&&(U=$.tag!==22?M$():536870912,$.lanes|=U,nX|=U)}function bY($,U){if(!p$)switch($.tailMode){case"hidden":U=$.tail;for(var Q=null;U!==null;)U.alternate!==null&&(Q=U),U=U.sibling;Q===null?$.tail=null:Q.sibling=null;break;case"collapsed":Q=$.tail;for(var H=null;Q!==null;)Q.alternate!==null&&(H=Q),Q=Q.sibling;H===null?U||$.tail===null?$.tail=null:$.tail.sibling=null:H.sibling=null}}function HU($){var U=$.alternate!==null&&$.alternate.child===$.child,Q=0,H=0;if(U)if(($.mode&N$)!==R$){for(var{selfBaseDuration:M,child:P}=$;P!==null;)Q|=P.lanes|P.childLanes,H|=P.subtreeFlags&65011712,H|=P.flags&65011712,M+=P.treeBaseDuration,P=P.sibling;$.treeBaseDuration=M}else for(M=$.child;M!==null;)Q|=M.lanes|M.childLanes,H|=M.subtreeFlags&65011712,H|=M.flags&65011712,M.return=$,M=M.sibling;else if(($.mode&N$)!==R$){M=$.actualDuration,P=$.selfBaseDuration;for(var k=$.child;k!==null;)Q|=k.lanes|k.childLanes,H|=k.subtreeFlags,H|=k.flags,M+=k.actualDuration,P+=k.treeBaseDuration,k=k.sibling;$.actualDuration=M,$.treeBaseDuration=P}else for(M=$.child;M!==null;)Q|=M.lanes|M.childLanes,H|=M.subtreeFlags,H|=M.flags,M.return=$,M=M.sibling;return $.subtreeFlags|=H,$.childLanes=Q,U}function $3($,U,Q){var H=U.pendingProps;switch(vW(U),U.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return HU(U),null;case 1:return HU(U),null;case 3:if(Q=U.stateNode,H=null,$!==null&&(H=$.memoizedState.cache),U.memoizedState.cache!==H&&(U.flags|=2048),u4(eU,U),F(U),Q.pendingContext&&(Q.context=Q.pendingContext,Q.pendingContext=null),$===null||$.child===null)RI(U)?(kW(),p4(U)):$===null||$.memoizedState.isDehydrated&&(U.flags&256)===0||(U.flags|=1024,NW());return HU(U),null;case 26:var{type:M,memoizedState:P}=U;return $===null?(p4(U),P!==null?(HU(U),VT(U,P)):(HU(U),NO(U,M,null,H,Q))):P?P!==$.memoizedState?(p4(U),HU(U),VT(U,P)):(HU(U),U.flags&=-16777217):($=$.memoizedProps,$!==H&&p4(U),HU(U),NO(U,M,$,H,Q)),null;case 27:if(C(U),Q=D(EJ.current),M=U.type,$!==null&&U.stateNode!=null)$.memoizedProps!==H&&p4(U);else{if(!H){if(U.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 HU(U),null}$=R(),RI(U)?UC(U,$):($=wR(M,H,Q,$,!0),U.stateNode=$,p4(U))}return HU(U),null;case 5:if(C(U),M=U.type,$!==null&&U.stateNode!=null)$.memoizedProps!==H&&p4(U);else{if(!H){if(U.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 HU(U),null}var k=R();if(RI(U))UC(U,k);else{switch(P=D(EJ.current),DW(M,k.ancestorInfo),k=k.context,P=iZ(P),k){case MQ:P=P.createElementNS(pI,M);break;case J8:P=P.createElementNS(Wz,M);break;default:switch(M){case"svg":P=P.createElementNS(pI,M);break;case"math":P=P.createElementNS(Wz,M);break;case"script":P=P.createElement("div"),P.innerHTML="<script></script>",P=P.removeChild(P.firstChild);break;case"select":P=typeof H.is==="string"?P.createElement("select",{is:H.is}):P.createElement("select"),H.multiple?P.multiple=!0:H.size&&(P.size=H.size);break;default:P=typeof H.is==="string"?P.createElement(M,{is:H.is}):P.createElement(M),M.indexOf("-")===-1&&(M!==M.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",M),Object.prototype.toString.call(P)!=="[object HTMLUnknownElement]"||p1.call(Tq,M)||(Tq[M]=!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.",M)))}}P[A6]=U,P[E6]=H;$:for(k=U.child;k!==null;){if(k.tag===5||k.tag===6)P.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===U)break $;for(;k.sibling===null;){if(k.return===null||k.return===U)break $;k=k.return}k.sibling.return=k.return,k=k.sibling}U.stateNode=P;$:switch(M6(P,M,H),M){case"button":case"input":case"select":case"textarea":H=!!H.autoFocus;break $;case"img":H=!0;break $;default:H=!1}H&&p4(U)}}return HU(U),NO(U,U.type,$===null?null:$.memoizedProps,U.pendingProps,Q),null;case 6:if($&&U.stateNode!=null)$.memoizedProps!==H&&p4(U);else{if(typeof H!=="string"&&U.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($=D(EJ.current),Q=R(),RI(U)){if($=U.stateNode,Q=U.memoizedProps,M=!R4,H=null,P=C6,P!==null)switch(P.tag){case 3:M&&(M=gR($,Q,H),M!==null&&(CX(U,0).serverProps=M));break;case 27:case 5:H=P.memoizedProps,M&&(M=gR($,Q,H),M!==null&&(CX(U,0).serverProps=M))}$[A6]=U,$=$.nodeValue===Q||H!==null&&H.suppressHydrationWarning===!0||MR($.nodeValue,Q)?!0:!1,$||DJ(U,!0)}else M=Q.ancestorInfo.current,M!=null&&e2(H,M.tag,Q.ancestorInfo.implicitRootScope),$=iZ($).createTextNode(H),$[A6]=U,U.stateNode=$}return HU(U),null;case 31:if(Q=U.memoizedState,$===null||$.memoizedState!==null){if(H=RI(U),Q!==null){if($===null){if(!H)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=U.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[A6]=U,HU(U),(U.mode&N$)!==R$&&Q!==null&&($=U.child,$!==null&&(U.treeBaseDuration-=$.treeBaseDuration))}else kW(),TX(),(U.flags&128)===0&&(Q=U.memoizedState=null),U.flags|=4,HU(U),(U.mode&N$)!==R$&&Q!==null&&($=U.child,$!==null&&(U.treeBaseDuration-=$.treeBaseDuration));$=!1}else Q=NW(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=Q),$=!0;if(!$){if(U.flags&256)return Y1(U),U;return Y1(U),null}if((U.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return HU(U),null;case 13:if(H=U.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(M=H,P=RI(U),M!==null&&M.dehydrated!==null){if($===null){if(!P)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(P=U.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");P[A6]=U,HU(U),(U.mode&N$)!==R$&&M!==null&&(M=U.child,M!==null&&(U.treeBaseDuration-=M.treeBaseDuration))}else kW(),TX(),(U.flags&128)===0&&(M=U.memoizedState=null),U.flags|=4,HU(U),(U.mode&N$)!==R$&&M!==null&&(M=U.child,M!==null&&(U.treeBaseDuration-=M.treeBaseDuration));M=!1}else M=NW(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=M),M=!0;if(!M){if(U.flags&256)return Y1(U),U;return Y1(U),null}}if(Y1(U),(U.flags&128)!==0)return U.lanes=Q,(U.mode&N$)!==R$&&BY(U),U;return Q=H!==null,$=$!==null&&$.memoizedState!==null,Q&&(H=U.child,M=null,H.alternate!==null&&H.alternate.memoizedState!==null&&H.alternate.memoizedState.cachePool!==null&&(M=H.alternate.memoizedState.cachePool.pool),P=null,H.memoizedState!==null&&H.memoizedState.cachePool!==null&&(P=H.memoizedState.cachePool.pool),P!==M&&(H.flags|=2048)),Q!==$&&Q&&(U.child.flags|=8192),uZ(U,U.updateQueue),HU(U),(U.mode&N$)!==R$&&Q&&($=U.child,$!==null&&(U.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return F(U),$===null&&iO(U.stateNode.containerInfo),HU(U),null;case 10:return u4(U.type,U),HU(U),null;case 19:if(G(aU,U),H=U.memoizedState,H===null)return HU(U),null;if(M=(U.flags&128)!==0,P=H.rendering,P===null)if(M)bY(H,!1);else{if(gU!==XJ||$!==null&&($.flags&128)!==0)for($=U.child;$!==null;){if(P=RZ($),P!==null){U.flags|=128,bY(H,!1),$=P.updateQueue,U.updateQueue=$,uZ(U,$),U.subtreeFlags=0,$=Q;for(Q=U.child;Q!==null;)rA(Q,$),Q=Q.sibling;return V(aU,aU.current&YQ|jG,U),p$&&b4(U,H.treeForkCount),U.child}$=$.sibling}H.tail!==null&&W6()>mz&&(U.flags|=128,M=!0,bY(H,!1),U.lanes=4194304)}else{if(!M)if($=RZ(P),$!==null){if(U.flags|=128,M=!0,$=$.updateQueue,U.updateQueue=$,uZ(U,$),bY(H,!0),H.tail===null&&H.tailMode==="hidden"&&!P.alternate&&!p$)return HU(U),null}else 2*W6()-H.renderingStartTime>mz&&Q!==536870912&&(U.flags|=128,M=!0,bY(H,!1),U.lanes=4194304);H.isBackwards?(P.sibling=U.child,U.child=P):($=H.last,$!==null?$.sibling=P:U.child=P,H.last=P)}if(H.tail!==null)return $=H.tail,H.rendering=$,H.tail=$.sibling,H.renderingStartTime=W6(),$.sibling=null,Q=aU.current,Q=M?Q&YQ|jG:Q&YQ,V(aU,Q,U),p$&&b4(U,H.treeForkCount),$;return HU(U),null;case 22:case 23:return Y1(U),mW(U),H=U.memoizedState!==null,$!==null?$.memoizedState!==null!==H&&(U.flags|=8192):H&&(U.flags|=8192),H?(Q&536870912)!==0&&(U.flags&128)===0&&(HU(U),U.subtreeFlags&6&&(U.flags|=8192)):HU(U),Q=U.updateQueue,Q!==null&&uZ(U,Q.retryQueue),Q=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),H=null,U.memoizedState!==null&&U.memoizedState.cachePool!==null&&(H=U.memoizedState.cachePool.pool),H!==Q&&(U.flags|=2048),$!==null&&G(yX,U),null;case 24:return Q=null,$!==null&&(Q=$.memoizedState.cache),U.memoizedState.cache!==Q&&(U.flags|=2048),u4(eU,U),HU(U),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+U.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function U3($,U){switch(vW(U),U.tag){case 1:return $=U.flags,$&65536?(U.flags=$&-65537|128,(U.mode&N$)!==R$&&BY(U),U):null;case 3:return u4(eU,U),F(U),$=U.flags,($&65536)!==0&&($&128)===0?(U.flags=$&-65537|128,U):null;case 26:case 27:case 5:return C(U),null;case 31:if(U.memoizedState!==null){if(Y1(U),U.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");TX()}return $=U.flags,$&65536?(U.flags=$&-65537|128,(U.mode&N$)!==R$&&BY(U),U):null;case 13:if(Y1(U),$=U.memoizedState,$!==null&&$.dehydrated!==null){if(U.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");TX()}return $=U.flags,$&65536?(U.flags=$&-65537|128,(U.mode&N$)!==R$&&BY(U),U):null;case 19:return G(aU,U),null;case 4:return F(U),null;case 10:return u4(U.type,U),null;case 22:case 23:return Y1(U),mW(U),$!==null&&G(yX,U),$=U.flags,$&65536?(U.flags=$&-65537|128,(U.mode&N$)!==R$&&BY(U),U):null;case 24:return u4(eU,U),null;case 25:return null;default:return null}}function HT($,U){switch(vW(U),U.tag){case 3:u4(eU,U),F(U);break;case 26:case 27:case 5:C(U);break;case 4:F(U);break;case 31:U.memoizedState!==null&&Y1(U);break;case 13:Y1(U);break;case 19:G(aU,U);break;case 10:u4(U.type,U);break;case 22:case 23:Y1(U),mW(U),$!==null&&G(yX,U);break;case 24:u4(eU,U)}}function z4($){return($.mode&N$)!==R$}function FT($,U){z4($)?(Z4(),uY(U,$),G4()):uY(U,$)}function kO($,U,Q){z4($)?(Z4(),EI(Q,$,U),G4()):EI(Q,$,U)}function uY($,U){try{var Q=U.updateQueue,H=Q!==null?Q.lastEffect:null;if(H!==null){var M=H.next;Q=M;do{if((Q.tag&$)===$&&(H=void 0,($&k6)!==kz&&(FQ=!0),H=I0(U,_g,Q),($&k6)!==kz&&(FQ=!1),H!==void 0&&typeof H!=="function")){var P=void 0;P=(Q.tag&H1)!==0?"useLayoutEffect":(Q.tag&k6)!==0?"useInsertionEffect":"useEffect";var k=void 0;k=H===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof H.then==="function"?`
|
|
141
|
+
|
|
142
|
+
It looks like you wrote `+P+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
|
+
|
|
144
|
+
`+P+`(() => {
|
|
145
|
+
async function fetchData() {
|
|
146
|
+
// You can await here
|
|
147
|
+
const response = await MyAPI.getData(someId);
|
|
148
|
+
// ...
|
|
149
|
+
}
|
|
150
|
+
fetchData();
|
|
151
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
152
|
+
|
|
153
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+H,I0(U,function(y,l){console.error("%s must not return anything besides a function, which is used for clean-up.%s",y,l)},P,k)}Q=Q.next}while(Q!==M)}}catch(y){s$(U,U.return,y)}}function EI($,U,Q){try{var H=U.updateQueue,M=H!==null?H.lastEffect:null;if(M!==null){var P=M.next;H=P;do{if((H.tag&$)===$){var k=H.inst,y=k.destroy;y!==void 0&&(k.destroy=void 0,($&k6)!==kz&&(FQ=!0),M=U,I0(M,qg,M,Q,y),($&k6)!==kz&&(FQ=!1))}H=H.next}while(H!==P)}}catch(l){s$(U,U.return,l)}}function DT($,U){z4($)?(Z4(),uY(U,$),G4()):uY(U,$)}function gO($,U,Q){z4($)?(Z4(),EI(Q,$,U),G4()):EI(Q,$,U)}function LT($){var U=$.updateQueue;if(U!==null){var Q=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||KQ||(Q.props!==$.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.",t($)||"instance"),Q.state!==$.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.",t($)||"instance"));try{I0($,AC,U,Q)}catch(H){s$($,$.return,H)}}}function J3($,U,Q){return $.getSnapshotBeforeUpdate(U,Q)}function X3($,U){var{memoizedProps:Q,memoizedState:H}=U;U=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||KQ||(U.props!==$.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.",t($)||"instance"),U.state!==$.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.",t($)||"instance"));try{var M=jX($.type,Q),P=I0($,J3,U,M,H);Q=s_,P!==void 0||Q.has($.type)||(Q.add($.type),I0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",t($))})),U.__reactInternalSnapshotBeforeUpdate=P}catch(k){s$($,$.return,k)}}function MT($,U,Q){Q.props=jX($.type,$.memoizedProps),Q.state=$.memoizedState,z4($)?(Z4(),I0($,L_,$,U,Q),G4()):I0($,L_,$,U,Q)}function I3($){var U=$.ref;if(U!==null){switch($.tag){case 26:case 27:case 5:var Q=$.stateNode;break;case 30:Q=$.stateNode;break;default:Q=$.stateNode}if(typeof U==="function")if(z4($))try{Z4(),$.refCleanup=U(Q)}finally{G4()}else $.refCleanup=U(Q);else typeof U==="string"?console.error("String refs are no longer supported."):U.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",t($)),U.current=Q}}function hY($,U){try{I0($,I3,$)}catch(Q){s$($,U,Q)}}function K4($,U){var{ref:Q,refCleanup:H}=$;if(Q!==null)if(typeof H==="function")try{if(z4($))try{Z4(),I0($,H)}finally{G4($)}else I0($,H)}catch(M){s$($,U,M)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof Q==="function")try{if(z4($))try{Z4(),I0($,Q,null)}finally{G4($)}else I0($,Q,null)}catch(M){s$($,U,M)}else Q.current=null}function AT($,U,Q,H){var M=$.memoizedProps,P=M.id,k=M.onCommit;M=M.onRender,U=U===null?"mount":"update",Sz&&(U="nested-update"),typeof M==="function"&&M(P,U,$.actualDuration,$.treeBaseDuration,$.actualStartTime,Q),typeof k==="function"&&k(P,U,H,Q)}function Q3($,U,Q,H){var M=$.memoizedProps;$=M.id,M=M.onPostCommit,U=U===null?"mount":"update",Sz&&(U="nested-update"),typeof M==="function"&&M($,U,H,Q)}function CT($){var{type:U,memoizedProps:Q,stateNode:H}=$;try{I0($,B3,H,U,Q,$)}catch(M){s$($,$.return,M)}}function xO($,U,Q){try{I0($,N3,$.stateNode,$.type,Q,U,$)}catch(H){s$($,$.return,H)}}function TT($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&SJ($.type)||$.tag===4}function wO($){$:for(;;){for(;$.sibling===null;){if($.return===null||TT($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&SJ($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function fO($,U,Q){var H=$.tag;if(H===5||H===6)$=$.stateNode,U?(ER(Q),(Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q).insertBefore($,U)):(ER(Q),U=Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q,U.appendChild($),Q=Q._reactRootContainer,Q!==null&&Q!==void 0||U.onclick!==null||(U.onclick=f4));else if(H!==4&&(H===27&&SJ($.type)&&(Q=$.stateNode,U=null),$=$.child,$!==null))for(fO($,U,Q),$=$.sibling;$!==null;)fO($,U,Q),$=$.sibling}function hZ($,U,Q){var H=$.tag;if(H===5||H===6)$=$.stateNode,U?Q.insertBefore($,U):Q.appendChild($);else if(H!==4&&(H===27&&SJ($.type)&&(Q=$.stateNode),$=$.child,$!==null))for(hZ($,U,Q),$=$.sibling;$!==null;)hZ($,U,Q),$=$.sibling}function Y3($){for(var U,Q=$.return;Q!==null;){if(TT(Q)){U=Q;break}Q=Q.return}if(U==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(U.tag){case 27:U=U.stateNode,Q=wO($),hZ($,Q,U);break;case 5:Q=U.stateNode,U.flags&32&&(jR(Q),U.flags&=-33),U=wO($),hZ($,U,Q);break;case 3:case 4:U=U.stateNode.containerInfo,Q=wO($),fO($,Q,U);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function RT($){var{stateNode:U,memoizedProps:Q}=$;try{I0($,o3,$.type,Q,U,$)}catch(H){s$($,$.return,H)}}function PT($,U){return U.tag===31?(U=U.memoizedState,$.memoizedState!==null&&U===null):U.tag===13?($=$.memoizedState,U=U.memoizedState,$!==null&&$.dehydrated!==null&&(U===null||U.dehydrated===null)):U.tag===3?$.memoizedState.isDehydrated&&(U.flags&256)===0:!1}function G3($,U){if($=$.containerInfo,wV=Y8,$=uA($),AW($)){if("selectionStart"in $)var Q={start:$.selectionStart,end:$.selectionEnd};else $:{Q=(Q=$.ownerDocument)&&Q.defaultView||window;var H=Q.getSelection&&Q.getSelection();if(H&&H.rangeCount!==0){Q=H.anchorNode;var{anchorOffset:M,focusNode:P}=H;H=H.focusOffset;try{Q.nodeType,P.nodeType}catch(W$){Q=null;break $}var k=0,y=-1,l=-1,o=0,P0=0,_0=$,H0=null;U:for(;;){for(var g0;;){if(_0!==Q||M!==0&&_0.nodeType!==3||(y=k+M),_0!==P||H!==0&&_0.nodeType!==3||(l=k+H),_0.nodeType===3&&(k+=_0.nodeValue.length),(g0=_0.firstChild)===null)break;H0=_0,_0=g0}for(;;){if(_0===$)break U;if(H0===Q&&++o===M&&(y=k),H0===P&&++P0===H&&(l=k),(g0=_0.nextSibling)!==null)break;_0=H0,H0=_0.parentNode}_0=g0}Q=y===-1||l===-1?null:{start:y,end:l}}else Q=null}Q=Q||{start:0,end:0}}else Q=null;fV={focusedElem:$,selectionRange:Q},Y8=!1;for(V6=U;V6!==null;)if(U=V6,$=U.child,(U.subtreeFlags&1028)!==0&&$!==null)$.return=U,V6=$;else for(;V6!==null;){switch($=U=V6,Q=$.alternate,M=$.flags,$.tag){case 0:if((M&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(Q=0;Q<$.length;Q++)M=$[Q],M.ref.impl=M.nextImpl;break;case 11:case 15:break;case 1:(M&1024)!==0&&Q!==null&&X3($,Q);break;case 3:if((M&1024)!==0){if($=$.stateNode.containerInfo,Q=$.nodeType,Q===9)J9($);else if(Q===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":J9($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((M&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($=U.sibling,$!==null){$.return=U.return,V6=$;break}V6=U.return}}function _T($,U,Q){var H=I1(),M=X4(),P=Q4(),k=Y4(),y=Q.flags;switch(Q.tag){case 0:case 11:case 15:W4($,Q),y&4&&FT(Q,H1|k1);break;case 1:if(W4($,Q),y&4)if($=Q.stateNode,U===null)Q.type.defaultProps||"ref"in Q.memoizedProps||KQ||($.props!==Q.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.",t(Q)||"instance"),$.state!==Q.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.",t(Q)||"instance")),z4(Q)?(Z4(),I0(Q,XV,Q,$),G4()):I0(Q,XV,Q,$);else{var l=jX(Q.type,U.memoizedProps);U=U.memoizedState,Q.type.defaultProps||"ref"in Q.memoizedProps||KQ||($.props!==Q.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.",t(Q)||"instance"),$.state!==Q.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.",t(Q)||"instance")),z4(Q)?(Z4(),I0(Q,H_,Q,$,l,U,$.__reactInternalSnapshotBeforeUpdate),G4()):I0(Q,H_,Q,$,l,U,$.__reactInternalSnapshotBeforeUpdate)}y&64&<(Q),y&512&&hY(Q,Q.return);break;case 3:if(U=h4(),W4($,Q),y&64&&(y=Q.updateQueue,y!==null)){if(l=null,Q.child!==null)switch(Q.child.tag){case 27:case 5:l=Q.child.stateNode;break;case 1:l=Q.child.stateNode}try{I0(Q,AC,y,l)}catch(P0){s$(Q,Q.return,P0)}}$.effectDuration+=VZ(U);break;case 27:U===null&&y&4&&RT(Q);case 26:case 5:if(W4($,Q),U===null){if(y&4)CT(Q);else if(y&64){$=Q.type,U=Q.memoizedProps,l=Q.stateNode;try{I0(Q,v3,l,$,U,Q)}catch(P0){s$(Q,Q.return,P0)}}}y&512&&hY(Q,Q.return);break;case 12:if(y&4){y=h4(),W4($,Q),$=Q.stateNode,$.effectDuration+=EY(y);try{I0(Q,AT,Q,U,fJ,$.effectDuration)}catch(P0){s$(Q,Q.return,P0)}}else W4($,Q);break;case 31:W4($,Q),y&4&&jT($,Q);break;case 13:W4($,Q),y&4&&ET($,Q),y&64&&($=Q.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(y=D3.bind(null,Q),m3($,y))));break;case 22:if(y=Q.memoizedState!==null||JJ,!y){U=U!==null&&U.memoizedState!==null||X6,l=JJ;var o=X6;JJ=y,(X6=U)&&!o?(O4($,Q,(Q.subtreeFlags&8772)!==0),(Q.mode&N$)!==R$&&0<=C$&&0<=T$&&0.05<T$-C$&&XZ(Q,C$,T$)):W4($,Q),JJ=l,X6=o}break;case 30:break;default:W4($,Q)}(Q.mode&N$)!==R$&&0<=C$&&0<=T$&&((fU||0.05<kU)&&U4(Q,C$,T$,kU,EU),Q.alternate===null&&Q.return!==null&&Q.return.alternate!==null&&0.05<T$-C$&&(PT(Q.return.alternate,Q.return)||$4(Q,C$,T$,"Mount"))),Q1(H),I4(M),EU=P,fU=k}function qT($){var U=$.alternate;U!==null&&($.alternate=null,qT(U)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(U=$.stateNode,U!==null&&E0(U)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function m4($,U,Q){for(Q=Q.child;Q!==null;)ST($,U,Q),Q=Q.sibling}function ST($,U,Q){if(P6&&typeof P6.onCommitFiberUnmount==="function")try{P6.onCommitFiberUnmount(hI,Q)}catch(o){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",o))}var H=I1(),M=X4(),P=Q4(),k=Y4();switch(Q.tag){case 26:X6||K4(Q,U),m4($,U,Q),Q.memoizedState?Q.memoizedState.count--:Q.stateNode&&($=Q.stateNode,$.parentNode.removeChild($));break;case 27:X6||K4(Q,U);var y=I6,l=o6;SJ(Q.type)&&(I6=Q.stateNode,o6=!1),m4($,U,Q),I0(Q,rY,Q.stateNode),I6=y,o6=l;break;case 5:X6||K4(Q,U);case 6:if(y=I6,l=o6,I6=null,m4($,U,Q),I6=y,o6=l,I6!==null)if(o6)try{I0(Q,x3,I6,Q.stateNode)}catch(o){s$(Q,U,o)}else try{I0(Q,g3,I6,Q.stateNode)}catch(o){s$(Q,U,o)}break;case 18:I6!==null&&(o6?($=I6,BR($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,Q.stateNode),fI($)):BR(I6,Q.stateNode));break;case 4:y=I6,l=o6,I6=Q.stateNode.containerInfo,o6=!0,m4($,U,Q),I6=y,o6=l;break;case 0:case 11:case 14:case 15:EI(k6,Q,U),X6||kO(Q,U,H1),m4($,U,Q);break;case 1:X6||(K4(Q,U),y=Q.stateNode,typeof y.componentWillUnmount==="function"&&MT(Q,U,y)),m4($,U,Q);break;case 21:m4($,U,Q);break;case 22:X6=(y=X6)||Q.memoizedState!==null,m4($,U,Q),X6=y;break;default:m4($,U,Q)}(Q.mode&N$)!==R$&&0<=C$&&0<=T$&&(fU||0.05<kU)&&U4(Q,C$,T$,kU,EU),Q1(H),I4(M),EU=P,fU=k}function jT($,U){if(U.memoizedState===null&&($=U.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{I0(U,n3,$)}catch(Q){s$(U,U.return,Q)}}}function ET($,U){if(U.memoizedState===null&&($=U.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{I0(U,d3,$)}catch(Q){s$(U,U.return,Q)}}function Z3($){switch($.tag){case 31:case 13:case 19:var U=$.stateNode;return U===null&&(U=$.stateNode=new e_),U;case 22:return $=$.stateNode,U=$._retryCache,U===null&&(U=$._retryCache=new e_),U;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function cZ($,U){var Q=Z3($);U.forEach(function(H){if(!Q.has(H)){if(Q.add(H),A4)if(WQ!==null&&OQ!==null)lY(OQ,WQ);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var M=L3.bind(null,$,H);H.then(M,M)}})}function n6($,U){var Q=U.deletions;if(Q!==null)for(var H=0;H<Q.length;H++){var M=$,P=U,k=Q[H],y=I1(),l=P;$:for(;l!==null;){switch(l.tag){case 27:if(SJ(l.type)){I6=l.stateNode,o6=!1;break $}break;case 5:I6=l.stateNode,o6=!1;break $;case 3:case 4:I6=l.stateNode.containerInfo,o6=!0;break $}l=l.return}if(I6===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");ST(M,P,k),I6=null,o6=!1,(k.mode&N$)!==R$&&0<=C$&&0<=T$&&0.05<T$-C$&&$4(k,C$,T$,"Unmount"),Q1(y),M=k,P=M.alternate,P!==null&&(P.return=null),M.return=null}if(U.subtreeFlags&13886)for(U=U.child;U!==null;)BT(U,$),U=U.sibling}function BT($,U){var Q=I1(),H=X4(),M=Q4(),P=Y4(),k=$.alternate,y=$.flags;switch($.tag){case 0:case 11:case 14:case 15:n6(U,$),d6($),y&4&&(EI(k6|k1,$,$.return),uY(k6|k1,$),kO($,$.return,H1|k1));break;case 1:if(n6(U,$),d6($),y&512&&(X6||k===null||K4(k,k.return)),y&64&&JJ&&(y=$.updateQueue,y!==null&&(k=y.callbacks,k!==null))){var l=y.shared.hiddenCallbacks;y.shared.hiddenCallbacks=l===null?k:l.concat(k)}break;case 26:if(l=o1,n6(U,$),d6($),y&512&&(X6||k===null||K4(k,k.return)),y&4){var o=k!==null?k.memoizedState:null;if(y=$.memoizedState,k===null)if(y===null)if($.stateNode===null){$:{y=$.type,k=$.memoizedProps,l=l.ownerDocument||l;U:switch(y){case"title":if(o=l.getElementsByTagName("title")[0],!o||o[JG]||o[A6]||o.namespaceURI===pI||o.hasAttribute("itemprop"))o=l.createElement(y),l.head.insertBefore(o,l.querySelector("head > title"));M6(o,y,k),o[A6]=$,V$(o),y=o;break $;case"link":var P0=hR("link","href",l).get(y+(k.href||""));if(P0){for(var _0=0;_0<P0.length;_0++)if(o=P0[_0],o.getAttribute("href")===(k.href==null||k.href===""?null:k.href)&&o.getAttribute("rel")===(k.rel==null?null:k.rel)&&o.getAttribute("title")===(k.title==null?null:k.title)&&o.getAttribute("crossorigin")===(k.crossOrigin==null?null:k.crossOrigin)){P0.splice(_0,1);break U}}o=l.createElement(y),M6(o,y,k),l.head.appendChild(o);break;case"meta":if(P0=hR("meta","content",l).get(y+(k.content||""))){for(_0=0;_0<P0.length;_0++)if(o=P0[_0],d(k.content,"content"),o.getAttribute("content")===(k.content==null?null:""+k.content)&&o.getAttribute("name")===(k.name==null?null:k.name)&&o.getAttribute("property")===(k.property==null?null:k.property)&&o.getAttribute("http-equiv")===(k.httpEquiv==null?null:k.httpEquiv)&&o.getAttribute("charset")===(k.charSet==null?null:k.charSet)){P0.splice(_0,1);break U}}o=l.createElement(y),M6(o,y,k),l.head.appendChild(o);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+y+'". This is a bug in React.')}o[A6]=$,V$(o),y=o}$.stateNode=y}else cR(l,$.type,$.stateNode);else $.stateNode=uR(l,y,$.memoizedProps);else o!==y?(o===null?k.stateNode!==null&&(k=k.stateNode,k.parentNode.removeChild(k)):o.count--,y===null?cR(l,$.type,$.stateNode):uR(l,y,$.memoizedProps)):y===null&&$.stateNode!==null&&xO($,$.memoizedProps,k.memoizedProps)}break;case 27:n6(U,$),d6($),y&512&&(X6||k===null||K4(k,k.return)),k!==null&&y&4&&xO($,$.memoizedProps,k.memoizedProps);break;case 5:if(n6(U,$),d6($),y&512&&(X6||k===null||K4(k,k.return)),$.flags&32){l=$.stateNode;try{I0($,jR,l)}catch(F$){s$($,$.return,F$)}}y&4&&$.stateNode!=null&&(l=$.memoizedProps,xO($,l,k!==null?k.memoizedProps:l)),y&1024&&(DV=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(n6(U,$),d6($),y&4){if($.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.");y=$.memoizedProps,k=k!==null?k.memoizedProps:y,l=$.stateNode;try{I0($,k3,l,k,y)}catch(F$){s$($,$.return,F$)}}break;case 3:if(l=h4(),X8=null,o=o1,o1=rZ(U.containerInfo),n6(U,$),o1=o,d6($),y&4&&k!==null&&k.memoizedState.isDehydrated)try{I0($,l3,U.containerInfo)}catch(F$){s$($,$.return,F$)}DV&&(DV=!1,vT($)),U.effectDuration+=VZ(l);break;case 4:y=o1,o1=rZ($.stateNode.containerInfo),n6(U,$),d6($),o1=y;break;case 12:y=h4(),n6(U,$),d6($),$.stateNode.effectDuration+=EY(y);break;case 31:n6(U,$),d6($),y&4&&(y=$.updateQueue,y!==null&&($.updateQueue=null,cZ($,y)));break;case 13:n6(U,$),d6($),$.child.flags&8192&&$.memoizedState!==null!==(k!==null&&k.memoizedState!==null)&&(pz=W6()),y&4&&(y=$.updateQueue,y!==null&&($.updateQueue=null,cZ($,y)));break;case 22:l=$.memoizedState!==null;var H0=k!==null&&k.memoizedState!==null,g0=JJ,W$=X6;if(JJ=g0||l,X6=W$||H0,n6(U,$),X6=W$,JJ=g0,H0&&!l&&!g0&&!W$&&($.mode&N$)!==R$&&0<=C$&&0<=T$&&0.05<T$-C$&&XZ($,C$,T$),d6($),y&8192)$:for(U=$.stateNode,U._visibility=l?U._visibility&~WG:U._visibility|WG,!l||k===null||H0||JJ||X6||(EX($),($.mode&N$)!==R$&&0<=C$&&0<=T$&&0.05<T$-C$&&$4($,C$,T$,"Disconnect")),k=null,U=$;;){if(U.tag===5||U.tag===26){if(k===null){H0=k=U;try{o=H0.stateNode,l?I0(H0,f3,o):I0(H0,u3,H0.stateNode,H0.memoizedProps)}catch(F$){s$(H0,H0.return,F$)}}}else if(U.tag===6){if(k===null){H0=U;try{P0=H0.stateNode,l?I0(H0,y3,P0):I0(H0,h3,P0,H0.memoizedProps)}catch(F$){s$(H0,H0.return,F$)}}}else if(U.tag===18){if(k===null){H0=U;try{_0=H0.stateNode,l?I0(H0,w3,_0):I0(H0,b3,H0.stateNode)}catch(F$){s$(H0,H0.return,F$)}}}else if((U.tag!==22&&U.tag!==23||U.memoizedState===null||U===$)&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===$)break $;for(;U.sibling===null;){if(U.return===null||U.return===$)break $;k===U&&(k=null),U=U.return}k===U&&(k=null),U.sibling.return=U.return,U=U.sibling}y&4&&(y=$.updateQueue,y!==null&&(k=y.retryQueue,k!==null&&(y.retryQueue=null,cZ($,k))));break;case 19:n6(U,$),d6($),y&4&&(y=$.updateQueue,y!==null&&($.updateQueue=null,cZ($,y)));break;case 30:break;case 21:break;default:n6(U,$),d6($)}($.mode&N$)!==R$&&0<=C$&&0<=T$&&((fU||0.05<kU)&&U4($,C$,T$,kU,EU),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T$-C$&&(PT($.return.alternate,$.return)||$4($,C$,T$,"Mount"))),Q1(Q),I4(H),EU=M,fU=P}function d6($){var U=$.flags;if(U&2){try{I0($,Y3,$)}catch(Q){s$($,$.return,Q)}$.flags&=-3}U&4096&&($.flags&=-4097)}function vT($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var U=$;vT(U),U.tag===5&&U.flags&1024&&U.stateNode.reset(),$=$.sibling}}function W4($,U){if(U.subtreeFlags&8772)for(U=U.child;U!==null;)_T($,U.alternate,U),U=U.sibling}function NT($){var U=I1(),Q=X4(),H=Q4(),M=Y4();switch($.tag){case 0:case 11:case 14:case 15:kO($,$.return,H1),EX($);break;case 1:K4($,$.return);var P=$.stateNode;typeof P.componentWillUnmount==="function"&&MT($,$.return,P),EX($);break;case 27:I0($,rY,$.stateNode);case 26:case 5:K4($,$.return),EX($);break;case 22:$.memoizedState===null&&EX($);break;case 30:EX($);break;default:EX($)}($.mode&N$)!==R$&&0<=C$&&0<=T$&&(fU||0.05<kU)&&U4($,C$,T$,kU,EU),Q1(U),I4(Q),EU=H,fU=M}function EX($){for($=$.child;$!==null;)NT($),$=$.sibling}function kT($,U,Q,H){var M=I1(),P=X4(),k=Q4(),y=Y4(),l=Q.flags;switch(Q.tag){case 0:case 11:case 15:O4($,Q,H),FT(Q,H1);break;case 1:if(O4($,Q,H),U=Q.stateNode,typeof U.componentDidMount==="function"&&I0(Q,XV,Q,U),U=Q.updateQueue,U!==null){$=Q.stateNode;try{I0(Q,lN,U,$)}catch(o){s$(Q,Q.return,o)}}H&&l&64&<(Q),hY(Q,Q.return);break;case 27:RT(Q);case 26:case 5:O4($,Q,H),H&&U===null&&l&4&&CT(Q),hY(Q,Q.return);break;case 12:if(H&&l&4){l=h4(),O4($,Q,H),H=Q.stateNode,H.effectDuration+=EY(l);try{I0(Q,AT,Q,U,fJ,H.effectDuration)}catch(o){s$(Q,Q.return,o)}}else O4($,Q,H);break;case 31:O4($,Q,H),H&&l&4&&jT($,Q);break;case 13:O4($,Q,H),H&&l&4&&ET($,Q);break;case 22:Q.memoizedState===null&&O4($,Q,H),hY(Q,Q.return);break;case 30:break;default:O4($,Q,H)}(Q.mode&N$)!==R$&&0<=C$&&0<=T$&&(fU||0.05<kU)&&U4(Q,C$,T$,kU,EU),Q1(M),I4(P),EU=k,fU=y}function O4($,U,Q){Q=Q&&(U.subtreeFlags&8772)!==0;for(U=U.child;U!==null;)kT($,U.alternate,U,Q),U=U.sibling}function yO($,U){var Q=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),$=null,U.memoizedState!==null&&U.memoizedState.cachePool!==null&&($=U.memoizedState.cachePool.pool),$!==Q&&($!=null&&PX($),Q!=null&&jY(Q))}function bO($,U){$=null,U.alternate!==null&&($=U.alternate.memoizedState.cache),U=U.memoizedState.cache,U!==$&&(PX(U),$!=null&&jY($))}function c1($,U,Q,H,M){if(U.subtreeFlags&10256||U.actualDuration!==0&&(U.alternate===null||U.alternate.child!==U.child))for(U=U.child;U!==null;){var P=U.sibling;gT($,U,Q,H,P!==null?P.actualStartTime:M),U=P}}function gT($,U,Q,H,M){var P=I1(),k=X4(),y=Q4(),l=Y4(),o=kJ,P0=U.flags;switch(U.tag){case 0:case 11:case 15:(U.mode&N$)!==R$&&0<U.actualStartTime&&(U.flags&1)!==0&&IZ(U,U.actualStartTime,M,Z6,Q),c1($,U,Q,H,M),P0&2048&&DT(U,g6|k1);break;case 1:(U.mode&N$)!==R$&&0<U.actualStartTime&&((U.flags&128)!==0?TW(U,U.actualStartTime,M,[]):(U.flags&1)!==0&&IZ(U,U.actualStartTime,M,Z6,Q)),c1($,U,Q,H,M);break;case 3:var _0=h4(),H0=Z6;Z6=U.alternate!==null&&U.alternate.memoizedState.isDehydrated&&(U.flags&256)===0,c1($,U,Q,H,M),Z6=H0,P0&2048&&(Q=null,U.alternate!==null&&(Q=U.alternate.memoizedState.cache),H=U.memoizedState.cache,H!==Q&&(PX(H),Q!=null&&jY(Q))),$.passiveEffectDuration+=VZ(_0);break;case 12:if(P0&2048){P0=h4(),c1($,U,Q,H,M),$=U.stateNode,$.passiveEffectDuration+=EY(P0);try{I0(U,Q3,U,U.alternate,fJ,$.passiveEffectDuration)}catch(g0){s$(U,U.return,g0)}}else c1($,U,Q,H,M);break;case 31:P0=Z6,_0=U.alternate!==null?U.alternate.memoizedState:null,H0=U.memoizedState,_0!==null&&H0===null?(H0=U.deletions,H0!==null&&0<H0.length&&H0[0].tag===18?(Z6=!1,_0=_0.hydrationErrors,_0!==null&&TW(U,U.actualStartTime,M,_0)):Z6=!0):Z6=!1,c1($,U,Q,H,M),Z6=P0;break;case 13:P0=Z6,_0=U.alternate!==null?U.alternate.memoizedState:null,H0=U.memoizedState,_0===null||_0.dehydrated===null||H0!==null&&H0.dehydrated!==null?Z6=!1:(H0=U.deletions,H0!==null&&0<H0.length&&H0[0].tag===18?(Z6=!1,_0=_0.hydrationErrors,_0!==null&&TW(U,U.actualStartTime,M,_0)):Z6=!0),c1($,U,Q,H,M),Z6=P0;break;case 23:break;case 22:H0=U.stateNode,_0=U.alternate,U.memoizedState!==null?H0._visibility&d4?c1($,U,Q,H,M):cY($,U,Q,H,M):H0._visibility&d4?c1($,U,Q,H,M):(H0._visibility|=d4,BI($,U,Q,H,(U.subtreeFlags&10256)!==0||U.actualDuration!==0&&(U.alternate===null||U.alternate.child!==U.child),M),(U.mode&N$)===R$||Z6||($=U.actualStartTime,0<=$&&0.05<M-$&&XZ(U,$,M),0<=C$&&0<=T$&&0.05<T$-C$&&XZ(U,C$,T$))),P0&2048&&yO(_0,U);break;case 24:c1($,U,Q,H,M),P0&2048&&bO(U.alternate,U);break;default:c1($,U,Q,H,M)}if((U.mode&N$)!==R$){if($=!Z6&&U.alternate===null&&U.return!==null&&U.return.alternate!==null)Q=U.actualStartTime,0<=Q&&0.05<M-Q&&$4(U,Q,M,"Mount");0<=C$&&0<=T$&&((fU||0.05<kU)&&U4(U,C$,T$,kU,EU),$&&0.05<T$-C$&&$4(U,C$,T$,"Mount"))}Q1(P),I4(k),EU=y,fU=l,kJ=o}function BI($,U,Q,H,M,P){M=M&&((U.subtreeFlags&10256)!==0||U.actualDuration!==0&&(U.alternate===null||U.alternate.child!==U.child));for(U=U.child;U!==null;){var k=U.sibling;xT($,U,Q,H,M,k!==null?k.actualStartTime:P),U=k}}function xT($,U,Q,H,M,P){var k=I1(),y=X4(),l=Q4(),o=Y4(),P0=kJ;M&&(U.mode&N$)!==R$&&0<U.actualStartTime&&(U.flags&1)!==0&&IZ(U,U.actualStartTime,P,Z6,Q);var _0=U.flags;switch(U.tag){case 0:case 11:case 15:BI($,U,Q,H,M,P),DT(U,g6);break;case 23:break;case 22:var H0=U.stateNode;U.memoizedState!==null?H0._visibility&d4?BI($,U,Q,H,M,P):cY($,U,Q,H,P):(H0._visibility|=d4,BI($,U,Q,H,M,P)),M&&_0&2048&&yO(U.alternate,U);break;case 24:BI($,U,Q,H,M,P),M&&_0&2048&&bO(U.alternate,U);break;default:BI($,U,Q,H,M,P)}(U.mode&N$)!==R$&&0<=C$&&0<=T$&&(fU||0.05<kU)&&U4(U,C$,T$,kU,EU),Q1(k),I4(y),EU=l,fU=o,kJ=P0}function cY($,U,Q,H,M){if(U.subtreeFlags&10256||U.actualDuration!==0&&(U.alternate===null||U.alternate.child!==U.child))for(var P=U.child;P!==null;){U=P.sibling;var k=$,y=Q,l=H,o=U!==null?U.actualStartTime:M,P0=kJ;(P.mode&N$)!==R$&&0<P.actualStartTime&&(P.flags&1)!==0&&IZ(P,P.actualStartTime,o,Z6,y);var _0=P.flags;switch(P.tag){case 22:cY(k,P,y,l,o),_0&2048&&yO(P.alternate,P);break;case 24:cY(k,P,y,l,o),_0&2048&&bO(P.alternate,P);break;default:cY(k,P,y,l,o)}kJ=P0,P=U}}function vI($,U,Q){if($.subtreeFlags&NG)for($=$.child;$!==null;)wT($,U,Q),$=$.sibling}function wT($,U,Q){switch($.tag){case 26:vI($,U,Q),$.flags&NG&&$.memoizedState!==null&&t3(Q,o1,$.memoizedState,$.memoizedProps);break;case 5:vI($,U,Q);break;case 3:case 4:var H=o1;o1=rZ($.stateNode.containerInfo),vI($,U,Q),o1=H;break;case 22:$.memoizedState===null&&(H=$.alternate,H!==null&&H.memoizedState!==null?(H=NG,NG=16777216,vI($,U,Q),NG=H):vI($,U,Q));break;default:vI($,U,Q)}}function fT($){var U=$.alternate;if(U!==null&&($=U.child,$!==null)){U.child=null;do U=$.sibling,$.sibling=null,$=U;while($!==null)}}function pY($){var U=$.deletions;if(($.flags&16)!==0){if(U!==null)for(var Q=0;Q<U.length;Q++){var H=U[Q],M=I1();V6=H,uT(H,$),(H.mode&N$)!==R$&&0<=C$&&0<=T$&&0.05<T$-C$&&$4(H,C$,T$,"Unmount"),Q1(M)}fT($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)yT($),$=$.sibling}function yT($){var U=I1(),Q=X4(),H=Q4(),M=Y4();switch($.tag){case 0:case 11:case 15:pY($),$.flags&2048&&gO($,$.return,g6|k1);break;case 3:var P=h4();pY($),$.stateNode.passiveEffectDuration+=VZ(P);break;case 12:P=h4(),pY($),$.stateNode.passiveEffectDuration+=EY(P);break;case 22:P=$.stateNode,$.memoizedState!==null&&P._visibility&d4&&($.return===null||$.return.tag!==13)?(P._visibility&=~d4,pZ($),($.mode&N$)!==R$&&0<=C$&&0<=T$&&0.05<T$-C$&&$4($,C$,T$,"Disconnect")):pY($);break;default:pY($)}($.mode&N$)!==R$&&0<=C$&&0<=T$&&(fU||0.05<kU)&&U4($,C$,T$,kU,EU),Q1(U),I4(Q),fU=M,EU=H}function pZ($){var U=$.deletions;if(($.flags&16)!==0){if(U!==null)for(var Q=0;Q<U.length;Q++){var H=U[Q],M=I1();V6=H,uT(H,$),(H.mode&N$)!==R$&&0<=C$&&0<=T$&&0.05<T$-C$&&$4(H,C$,T$,"Unmount"),Q1(M)}fT($)}for($=$.child;$!==null;)bT($),$=$.sibling}function bT($){var U=I1(),Q=X4(),H=Q4(),M=Y4();switch($.tag){case 0:case 11:case 15:gO($,$.return,g6),pZ($);break;case 22:var P=$.stateNode;P._visibility&d4&&(P._visibility&=~d4,pZ($));break;default:pZ($)}($.mode&N$)!==R$&&0<=C$&&0<=T$&&(fU||0.05<kU)&&U4($,C$,T$,kU,EU),Q1(U),I4(Q),fU=M,EU=H}function uT($,U){for(;V6!==null;){var Q=V6,H=Q,M=U,P=I1(),k=X4(),y=Q4(),l=Y4();switch(H.tag){case 0:case 11:case 15:gO(H,M,g6);break;case 23:case 22:H.memoizedState!==null&&H.memoizedState.cachePool!==null&&(M=H.memoizedState.cachePool.pool,M!=null&&PX(M));break;case 24:jY(H.memoizedState.cache)}if((H.mode&N$)!==R$&&0<=C$&&0<=T$&&(fU||0.05<kU)&&U4(H,C$,T$,kU,EU),Q1(P),I4(k),fU=l,EU=y,H=Q.child,H!==null)H.return=Q,V6=H;else $:for(Q=$;V6!==null;){if(H=V6,P=H.sibling,k=H.return,qT(H),H===Q){V6=null;break $}if(P!==null){P.return=k,V6=P;break $}V6=k}}}function z3(){vg.forEach(function($){return $()})}function hT(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||b0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function G1($){if((d$&z6)!==H6&&g$!==0)return g$&-g$;var U=b0.T;return U!==null?(U._updatedFibers||(U._updatedFibers=new Set),U._updatedFibers.add($),dO()):X0()}function cT(){if(r6===0)if((g$&536870912)===0||p$){var $=Gz;Gz<<=1,(Gz&3932160)===0&&(Gz=262144),r6=$}else r6=536870912;return $=V1.current,$!==null&&($.flags|=32),r6}function wU($,U,Q){if(FQ&&console.error("useInsertionEffect must not schedule updates."),jV&&(dz=!0),$===zU&&(XU===mX||XU===lX)||$.cancelPendingCommit!==null)kI($,0),_J($,g$,r6,!1);if(p0($,Q),(d$&z6)!==H6&&$===zU){if(L4)switch(U.tag){case 0:case 11:case 15:$=w$&&t(w$)||"Unknown",Hq.has($)||(Hq.add($),U=t(U)||"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",U,$,$));break;case 1:Vq||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Vq=!0)}}else A4&&i0($,U,Q),A3(U),$===zU&&((d$&z6)===H6&&(nJ|=Q),gU===pJ&&_J($,g$,r6,!1)),V4($)}function pT($,U,Q){if((d$&(z6|F1))!==H6)throw Error("Should not already be working.");if(g$!==0&&w$!==null){var H=w$,M=W6();switch(Y_){case xG:case mX:var P=LG;CU&&((H=H._debugTask)?H.run(console.timeStamp.bind(console,"Suspended",P,M,_1,void 0,"primary-light")):console.timeStamp("Suspended",P,M,_1,void 0,"primary-light"));break;case lX:P=LG,CU&&((H=H._debugTask)?H.run(console.timeStamp.bind(console,"Action",P,M,_1,void 0,"primary-light")):console.timeStamp("Action",P,M,_1,void 0,"primary-light"));break;default:CU&&(H=M-LG,3>H||console.timeStamp("Blocked",LG,M,_1,void 0,5>H?"primary-light":10>H?"primary":100>H?"primary-dark":"error"))}}P=(Q=!Q&&(U&127)===0&&(U&$.expiredLanes)===0||A0($,U))?W3($,U):hO($,U,!0);var k=Q;do{if(P===XJ){VQ&&!Q&&_J($,U,0,!1),U=XU,LG=$6(),Y_=U;break}else{if(H=W6(),M=$.current.alternate,k&&!K3(M)){J1(U),M=O6,P=H,!CU||P<=M||(dU?dU.run(console.timeStamp.bind(console,"Teared Render",M,P,u$,b$,"error")):console.timeStamp("Teared Render",M,P,u$,b$,"error")),BX(U,H),P=hO($,U,!1),k=!1;continue}if(P===pX){if(k=U,$.errorRecoveryDisabledLanes&k)var y=0;else y=$.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){J1(U),RW(O6,H,U,dU),BX(U,H),U=y;$:{H=$,P=k,k=fG;var l=H.current.memoizedState.isDehydrated;if(l&&(kI(H,y).flags|=256),y=hO(H,y,!1),y!==pX){if(AV&&!l){H.errorRecoveryDisabledLanes|=P,nJ|=P,P=pJ;break $}H=x6,x6=k,H!==null&&(x6===null?x6=H:x6.push.apply(x6,H))}P=y}if(k=!1,P!==pX)continue;else H=W6()}}if(P===gG){J1(U),RW(O6,H,U,dU),BX(U,H),kI($,0),_J($,U,0,!0);break}$:{switch(Q=$,P){case XJ:case gG:throw Error("Root did not complete. This is a bug in React.");case pJ:if((U&4194048)!==U)break;case bz:J1(U),pA(O6,H,U,dU),BX(U,H),M=U,(M&127)!==0?Pz=H:(M&4194048)!==0&&(_z=H),_J(Q,U,r6,!mJ);break $;case pX:x6=null;break;case yz:case $q:break;default:throw Error("Unknown root exit status.")}if(b0.actQueue!==null)cO(Q,M,U,x6,yG,cz,r6,nJ,nX,P,null,null,O6,H);else{if((U&62914560)===U&&(k=pz+Xq-W6(),10<k)){if(_J(Q,U,r6,!mJ),J$(Q,0,!0)!==0)break $;i1=U,Q.timeoutHandle=Rq(mT.bind(null,Q,M,x6,yG,cz,U,r6,nJ,nX,mJ,P,"Throttled",O6,H),k);break $}mT(Q,M,x6,yG,cz,U,r6,nJ,nX,mJ,P,null,O6,H)}}}break}while(1);V4($)}function mT($,U,Q,H,M,P,k,y,l,o,P0,_0,H0,g0){$.timeoutHandle=tX;var W$=U.subtreeFlags,F$=null;if(W$&8192||(W$&16785408)===16785408){if(F$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:f4},wT(U,P,F$),W$=(P&62914560)===P?pz-W6():(P&4194048)===P?Jq-W6():0,W$=a3(F$,W$),W$!==null){i1=P,$.cancelPendingCommit=W$(cO.bind(null,$,U,P,Q,H,M,k,y,l,P0,F$,F$.waitingForViewTransition?"Waiting for the previous Animation":0<F$.count?0<F$.imgCount?"Suspended on CSS and Images":"Suspended on CSS":F$.imgCount===1?"Suspended on an Image":0<F$.imgCount?"Suspended on Images":null,H0,g0)),_J($,P,k,!o);return}}cO($,U,P,Q,H,M,k,y,l,P0,F$,_0,H0,g0)}function K3($){for(var U=$;;){var Q=U.tag;if((Q===0||Q===11||Q===15)&&U.flags&16384&&(Q=U.updateQueue,Q!==null&&(Q=Q.stores,Q!==null)))for(var H=0;H<Q.length;H++){var M=Q[H],P=M.getSnapshot;M=M.value;try{if(!v6(P(),M))return!1}catch(k){return!1}}if(Q=U.child,U.subtreeFlags&16384&&Q!==null)Q.return=U,U=Q;else{if(U===$)break;for(;U.sibling===null;){if(U.return===null||U.return===$)return!0;U=U.return}U.sibling.return=U.return,U=U.sibling}}return!0}function _J($,U,Q,H){U&=~CV,U&=~nJ,$.suspendedLanes|=U,$.pingedLanes&=~U,H&&($.warmLanes|=U),H=$.expirationTimes;for(var M=U;0<M;){var P=31-j6(M),k=1<<P;H[P]=-1,M&=~k}Q!==0&&h0($,Q,U)}function NI(){return(d$&(z6|F1))===H6?(nY(0,!1),!1):!0}function uO(){if(w$!==null){if(XU===i6)var $=w$.return;else $=w$,KZ(),tW($),IQ=null,SG=0,$=w$;for(;$!==null;)HT($.alternate,$),$=$.return;w$=null}}function BX($,U){($&127)!==0&&(yJ=U),($&4194048)!==0&&(_4=U),($&62914560)!==0&&(I_=U),($&2080374784)!==0&&(Q_=U)}function kI($,U){CU&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",b$,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",b$,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",b$,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",b$,"primary-light"));var Q=O6;if(O6=$6(),g$!==0&&0<Q){if(J1(g$),gU===yz||gU===pJ)pA(Q,O6,U,dU);else{var H=O6,M=dU;if(CU&&!(H<=Q)){var P=(U&738197653)===U?"tertiary-dark":"primary-dark",k=(U&536870912)===U?"Prewarm":(U&201326741)===U?"Interrupted Hydration":"Interrupted Render";M?M.run(console.timeStamp.bind(console,k,Q,H,u$,b$,P)):console.timeStamp(k,Q,H,u$,b$,P)}}BX(g$,O6)}if(Q=dU,dU=null,(U&127)!==0){dU=HG,M=0<=P4&&P4<yJ?yJ:P4,H=0<=xX&&xX<yJ?yJ:xX,P=0<=H?H:0<=M?M:O6,0<=Pz?(J1(2),mA(Pz,P,U,Q)):(qz&127)!==0&&(J1(2),qY(yJ,P,s4)),Q=M;var y=H,l=FG,o=0<UQ,P0=bJ===VG,_0=bJ===Rz;if(M=O6,H=HG,P=s9,k=e9,CU){if(u$="Blocking",0<Q?Q>M&&(Q=M):Q=M,0<y?y>Q&&(y=Q):y=Q,l!==null&&Q>y){var H0=o?"secondary-light":"warning";H?H.run(console.timeStamp.bind(console,o?"Consecutive":"Event: "+l,y,Q,u$,b$,H0)):console.timeStamp(o?"Consecutive":"Event: "+l,y,Q,u$,b$,H0)}M>Q&&(y=P0?"error":(U&738197653)===U?"tertiary-light":"primary-light",P0=_0?"Promise Resolved":P0?"Cascading Update":5<M-Q?"Update Blocked":"Update",_0=[],k!=null&&_0.push(["Component name",k]),P!=null&&_0.push(["Method name",P]),Q={start:Q,end:M,detail:{devtools:{properties:_0,track:u$,trackGroup:b$,color:y}}},H?H.run(performance.measure.bind(performance,P0,Q)):performance.measure(P0,Q))}P4=-1.1,bJ=0,e9=s9=null,Pz=-1.1,UQ=xX,xX=-1.1,yJ=$6()}if((U&4194048)!==0&&(dU=DG,M=0<=a4&&a4<_4?_4:a4,Q=0<=v1&&v1<_4?_4:v1,H=0<=uJ&&uJ<_4?_4:uJ,P=0<=H?H:0<=Q?Q:O6,0<=_z?(J1(256),mA(_z,P,U,dU)):(qz&4194048)!==0&&(J1(256),qY(_4,P,s4)),_0=H,y=wX,l=0<hJ,o=$V===Rz,P=O6,H=DG,k=J_,P0=X_,CU&&(u$="Transition",0<Q?Q>P&&(Q=P):Q=P,0<M?M>Q&&(M=Q):M=Q,0<_0?_0>M&&(_0=M):_0=M,M>_0&&y!==null&&(H0=l?"secondary-light":"warning",H?H.run(console.timeStamp.bind(console,l?"Consecutive":"Event: "+y,_0,M,u$,b$,H0)):console.timeStamp(l?"Consecutive":"Event: "+y,_0,M,u$,b$,H0)),Q>M&&(H?H.run(console.timeStamp.bind(console,"Action",M,Q,u$,b$,"primary-dark")):console.timeStamp("Action",M,Q,u$,b$,"primary-dark")),P>Q&&(M=o?"Promise Resolved":5<P-Q?"Update Blocked":"Update",_0=[],P0!=null&&_0.push(["Component name",P0]),k!=null&&_0.push(["Method name",k]),Q={start:Q,end:P,detail:{devtools:{properties:_0,track:u$,trackGroup:b$,color:"primary-light"}}},H?H.run(performance.measure.bind(performance,M,Q)):performance.measure(M,Q))),v1=a4=-1.1,$V=0,_z=-1.1,hJ=uJ,uJ=-1.1,_4=$6()),(U&62914560)!==0&&(qz&62914560)!==0&&(J1(4194304),qY(I_,O6,s4)),(U&2080374784)!==0&&(qz&2080374784)!==0&&(J1(268435456),qY(Q_,O6,s4)),Q=$.timeoutHandle,Q!==tX&&($.timeoutHandle=tX,mg(Q)),Q=$.cancelPendingCommit,Q!==null&&($.cancelPendingCommit=null,Q()),i1=0,uO(),zU=$,w$=Q=y4($.current,null),g$=U,XU=i6,D1=null,mJ=!1,VQ=A0($,U),AV=!1,gU=XJ,nX=r6=CV=nJ=lJ=0,x6=fG=null,cz=!1,(U&8)!==0&&(U|=U&32),H=$.entangledLanes,H!==0)for($=$.entanglements,H&=U;0<H;)M=31-j6(H),P=1<<M,U|=$[M],H&=~P;return S4=U,QZ(),$=tP(),1000<$-rP&&(b0.recentlyCreatedOwnerStacks=0,rP=$),n1.discardPendingWarnings(),Q}function lT($,U){P$=null,b0.H=vG,b0.getCurrentStack=null,L4=!1,K1=null,U===XQ||U===Bz?(U=WC(),XU=xG):U===IV?(U=WC(),XU=Uq):XU=U===HV?MV:U!==null&&typeof U==="object"&&typeof U.then==="function"?wG:uz,D1=U;var Q=w$;Q===null?(gU=gG,wZ($,X1(U,$.current))):Q.mode&N$&&yW(Q)}function nT(){var $=V1.current;return $===null?!0:(g$&4194048)===g$?N1===null?!0:!1:(g$&62914560)===g$||(g$&536870912)!==0?$===N1:!1}function dT(){var $=b0.H;return b0.H=vG,$===null?vG:$}function oT(){var $=b0.A;return b0.A=Bg,$}function mZ($){dU===null&&(dU=$._debugTask==null?null:$._debugTask)}function lZ(){gU=pJ,mJ||(g$&4194048)!==g$&&V1.current!==null||(VQ=!0),(lJ&134217727)===0&&(nJ&134217727)===0||zU===null||_J(zU,g$,r6,!1)}function hO($,U,Q){var H=d$;d$|=z6;var M=dT(),P=oT();if(zU!==$||g$!==U){if(A4){var k=$.memoizedUpdaters;0<k.size&&(lY($,g$),k.clear()),PU($,U)}yG=null,kI($,U)}U=!1,k=gU;$:do try{if(XU!==i6&&w$!==null){var y=w$,l=D1;switch(XU){case MV:uO(),k=bz;break $;case xG:case mX:case lX:case wG:V1.current===null&&(U=!0);var o=XU;if(XU=i6,D1=null,gI($,y,l,o),Q&&VQ){k=XJ;break $}break;default:o=XU,XU=i6,D1=null,gI($,y,l,o)}}iT(),k=gU;break}catch(P0){lT($,P0)}while(1);return U&&$.shellSuspendCounter++,KZ(),d$=H,b0.H=M,b0.A=P,w$===null&&(zU=null,g$=0,QZ()),k}function iT(){for(;w$!==null;)rT(w$)}function W3($,U){var Q=d$;d$|=z6;var H=dT(),M=oT();if(zU!==$||g$!==U){if(A4){var P=$.memoizedUpdaters;0<P.size&&(lY($,g$),P.clear()),PU($,U)}yG=null,mz=W6()+Iq,kI($,U)}else VQ=A0($,U);$:do try{if(XU!==i6&&w$!==null)U:switch(U=w$,P=D1,XU){case uz:XU=i6,D1=null,gI($,U,P,uz);break;case mX:case lX:if(zC(P)){XU=i6,D1=null,tT(U);break}U=function(){XU!==mX&&XU!==lX||zU!==$||(XU=hz),V4($)},P.then(U,U);break $;case xG:XU=hz;break $;case Uq:XU=LV;break $;case hz:zC(P)?(XU=i6,D1=null,tT(U)):(XU=i6,D1=null,gI($,U,P,hz));break;case LV:var k=null;switch(w$.tag){case 26:k=w$.memoizedState;case 5:case 27:var y=w$;if(k?pR(k):y.stateNode.complete){XU=i6,D1=null;var l=y.sibling;if(l!==null)w$=l;else{var o=y.return;o!==null?(w$=o,nZ(o)):w$=null}break U}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}XU=i6,D1=null,gI($,U,P,LV);break;case wG:XU=i6,D1=null,gI($,U,P,wG);break;case MV:uO(),gU=bz;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}b0.actQueue!==null?iT():O3();break}catch(P0){lT($,P0)}while(1);if(KZ(),b0.H=H,b0.A=M,d$=Q,w$!==null)return XJ;return zU=null,g$=0,QZ(),gU}function O3(){for(;w$!==null&&!Kk();)rT(w$)}function rT($){var U=$.alternate;($.mode&N$)!==R$?(fW($),U=I0($,vO,U,$,S4),yW($)):U=I0($,vO,U,$,S4),$.memoizedProps=$.pendingProps,U===null?nZ($):w$=U}function tT($){var U=I0($,V3,$);$.memoizedProps=$.pendingProps,U===null?nZ($):w$=U}function V3($){var U=$.alternate,Q=($.mode&N$)!==R$;switch(Q&&fW($),$.tag){case 15:case 0:U=GT(U,$,$.pendingProps,$.type,void 0,g$);break;case 11:U=GT(U,$,$.pendingProps,$.type.render,$.ref,g$);break;case 5:tW($);default:HT(U,$),$=w$=rA($,S4),U=vO(U,$,S4)}return Q&&yW($),U}function gI($,U,Q,H){KZ(),tW(U),IQ=null,SG=0;var M=U.return;try{if(aN($,M,U,Q,g$)){gU=gG,wZ($,X1(Q,$.current)),w$=null;return}}catch(P){if(M!==null)throw w$=M,P;gU=gG,wZ($,X1(Q,$.current)),w$=null;return}if(U.flags&32768){if(p$||H===uz)$=!0;else if(VQ||(g$&536870912)!==0)$=!1;else if(mJ=$=!0,H===mX||H===lX||H===xG||H===wG)H=V1.current,H!==null&&H.tag===13&&(H.flags|=16384);aT(U,$)}else nZ(U)}function nZ($){var U=$;do{if((U.flags&32768)!==0){aT(U,mJ);return}var Q=U.alternate;if($=U.return,fW(U),Q=I0(U,$3,Q,U,S4),(U.mode&N$)!==R$&&IC(U),Q!==null){w$=Q;return}if(U=U.sibling,U!==null){w$=U;return}w$=U=$}while(U!==null);gU===XJ&&(gU=$q)}function aT($,U){do{var Q=U3($.alternate,$);if(Q!==null){Q.flags&=32767,w$=Q;return}if(($.mode&N$)!==R$){IC($),Q=$.actualDuration;for(var H=$.child;H!==null;)Q+=H.actualDuration,H=H.sibling;$.actualDuration=Q}if(Q=$.return,Q!==null&&(Q.flags|=32768,Q.subtreeFlags=0,Q.deletions=null),!U&&($=$.sibling,$!==null)){w$=$;return}w$=$=Q}while($!==null);gU=bz,w$=null}function cO($,U,Q,H,M,P,k,y,l,o,P0,_0,H0,g0){$.cancelPendingCommit=null;do mY();while(Q6!==oJ);if(n1.flushLegacyContextWarning(),n1.flushPendingUnsafeLifecycleWarnings(),(d$&(z6|F1))!==H6)throw Error("Should not already be working.");if(J1(Q),o===pX?RW(H0,g0,Q,dU):H!==null?bN(H0,g0,Q,H,U!==null&&U.alternate!==null&&U.alternate.memoizedState.isDehydrated&&(U.flags&256)!==0,dU):yN(H0,g0,Q,dU),U!==null){if(Q===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),U===$.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(P=U.lanes|U.childLanes,P|=o9,r$($,Q,P,k,y,l),$===zU&&(w$=zU=null,g$=0),HQ=U,iJ=$,i1=Q,PV=P,qV=M,Kq=H,_V=g0,Wq=_0,r1=lz,Oq=null,U.actualDuration!==0||(U.subtreeFlags&10256)!==0||(U.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,M3(uI,function(){return mG=window.event,r1===lz&&(r1=RV),JR(),null})):($.callbackNode=null,$.callbackPriority=0),t4=null,fJ=$6(),_0!==null&&uN(g0,fJ,_0,dU),H=(U.flags&13878)!==0,(U.subtreeFlags&13878)!==0||H){H=b0.T,b0.T=null,M=e$.p,e$.p=W1,k=d$,d$|=F1;try{G3($,U,Q)}finally{d$=k,e$.p=M,b0.T=H}}Q6=Yq,sT(),eT(),$R()}}function sT(){if(Q6===Yq){Q6=oJ;var $=iJ,U=HQ,Q=i1,H=(U.flags&13878)!==0;if((U.subtreeFlags&13878)!==0||H){H=b0.T,b0.T=null;var M=e$.p;e$.p=W1;var P=d$;d$|=F1;try{WQ=Q,OQ=$,HZ(),BT(U,$),OQ=WQ=null,Q=fV;var k=uA($.containerInfo),y=Q.focusedElem,l=Q.selectionRange;if(k!==y&&y&&y.ownerDocument&&bA(y.ownerDocument.documentElement,y)){if(l!==null&&AW(y)){var{start:o,end:P0}=l;if(P0===void 0&&(P0=o),"selectionStart"in y)y.selectionStart=o,y.selectionEnd=Math.min(P0,y.value.length);else{var _0=y.ownerDocument||document,H0=_0&&_0.defaultView||window;if(H0.getSelection){var g0=H0.getSelection(),W$=y.textContent.length,F$=Math.min(l.start,W$),FU=l.end===void 0?F$:Math.min(l.end,W$);!g0.extend&&F$>FU&&(k=FU,FU=F$,F$=k);var l$=yA(y,F$),z0=yA(y,FU);if(l$&&z0&&(g0.rangeCount!==1||g0.anchorNode!==l$.node||g0.anchorOffset!==l$.offset||g0.focusNode!==z0.node||g0.focusOffset!==z0.offset)){var F0=_0.createRange();F0.setStart(l$.node,l$.offset),g0.removeAllRanges(),F$>FU?(g0.addRange(F0),g0.extend(z0.node,z0.offset)):(F0.setEnd(z0.node,z0.offset),g0.addRange(F0))}}}}_0=[];for(g0=y;g0=g0.parentNode;)g0.nodeType===1&&_0.push({element:g0,left:g0.scrollLeft,top:g0.scrollTop});typeof y.focus==="function"&&y.focus();for(y=0;y<_0.length;y++){var T0=_0[y];T0.element.scrollLeft=T0.left,T0.element.scrollTop=T0.top}}Y8=!!wV,fV=wV=null}finally{d$=P,e$.p=M,b0.T=H}}$.current=U,Q6=Gq}}function eT(){if(Q6===Gq){Q6=oJ;var $=Oq;if($!==null){fJ=$6();var U=r4,Q=fJ;!CU||Q<=U||(s4?s4.run(console.timeStamp.bind(console,$,U,Q,u$,b$,"secondary-light")):console.timeStamp($,U,Q,u$,b$,"secondary-light"))}$=iJ,U=HQ,Q=i1;var H=(U.flags&8772)!==0;if((U.subtreeFlags&8772)!==0||H){H=b0.T,b0.T=null;var M=e$.p;e$.p=W1;var P=d$;d$|=F1;try{WQ=Q,OQ=$,HZ(),_T($,U.alternate,U),OQ=WQ=null}finally{d$=P,e$.p=M,b0.T=H}}$=_V,U=Wq,r4=$6(),$=U===null?$:fJ,U=r4,Q=r1===TV,H=dU,t4!==null?lA($,U,t4,!1,H):!CU||U<=$||(H?H.run(console.timeStamp.bind(console,Q?"Commit Interrupted View Transition":"Commit",$,U,u$,b$,Q?"error":"secondary-dark")):console.timeStamp(Q?"Commit Interrupted View Transition":"Commit",$,U,u$,b$,Q?"error":"secondary-dark")),Q6=Zq}}function $R(){if(Q6===zq||Q6===Zq){if(Q6===zq){var $=r4;r4=$6();var U=r4,Q=r1===TV;!CU||U<=$||(s4?s4.run(console.timeStamp.bind(console,Q?"Interrupted View Transition":"Starting Animation",$,U,u$,b$,Q?"error":"secondary-light")):console.timeStamp(Q?"Interrupted View Transition":"Starting Animation",$,U,u$,b$,Q?" error":"secondary-light")),r1!==TV&&(r1=Qq)}Q6=oJ,Wk(),$=iJ;var H=HQ;U=i1,Q=Kq;var M=H.actualDuration!==0||(H.subtreeFlags&10256)!==0||(H.flags&10256)!==0;M?Q6=nz:(Q6=oJ,HQ=iJ=null,UR($,$.pendingLanes),dX=0,uG=null);var P=$.pendingLanes;if(P===0&&(dJ=null),M||YR($),P=m(U),H=H.stateNode,P6&&typeof P6.onCommitFiberRoot==="function")try{var k=(H.current.flags&128)===128;switch(P){case W1:var y=q9;break;case m1:y=S9;break;case C4:y=uI;break;case zz:y=j9;break;default:y=uI}P6.onCommitFiberRoot(hI,H,y,k)}catch(_0){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",_0))}if(A4&&$.memoizedUpdaters.clear(),z3(),Q!==null){k=b0.T,y=e$.p,e$.p=W1,b0.T=null;try{var l=$.onRecoverableError;for(H=0;H<Q.length;H++){var o=Q[H],P0=H3(o.stack);I0(o.source,l,o.value,P0)}}finally{b0.T=k,e$.p=y}}(i1&3)!==0&&mY(),V4($),P=$.pendingLanes,(U&261930)!==0&&(P&42)!==0?(jz=!0,$===SV?bG++:(bG=0,SV=$)):bG=0,M||BX(U,r4),nY(0,!1)}}function H3($){return $={componentStack:$},Object.defineProperty($,"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.')}}),$}function UR($,U){($.pooledCacheLanes&=U)===0&&(U=$.pooledCache,U!=null&&($.pooledCache=null,jY(U)))}function mY(){return sT(),eT(),$R(),JR()}function JR(){if(Q6!==nz)return!1;var $=iJ,U=PV;PV=0;var Q=m(i1),H=C4===0||C4>Q?C4:Q;Q=b0.T;var M=e$.p;try{e$.p=H,b0.T=null;var P=qV;qV=null,H=iJ;var k=i1;if(Q6=oJ,HQ=iJ=null,i1=0,(d$&(z6|F1))!==H6)throw Error("Cannot flush passive effects while already rendering.");J1(k),jV=!0,dz=!1;var y=0;if(t4=null,y=W6(),r1===Qq)qY(r4,y,s4);else{var l=r4,o=y,P0=r1===RV;!CU||o<=l||(dU?dU.run(console.timeStamp.bind(console,P0?"Waiting for Paint":"Waiting",l,o,u$,b$,"secondary-light")):console.timeStamp(P0?"Waiting for Paint":"Waiting",l,o,u$,b$,"secondary-light"))}l=d$,d$|=F1;var _0=H.current;HZ(),yT(_0);var H0=H.current;_0=_V,HZ(),gT(H,H0,k,P,_0),YR(H),d$=l;var g0=W6();if(H0=y,_0=dU,t4!==null?lA(H0,g0,t4,!0,_0):!CU||g0<=H0||(_0?_0.run(console.timeStamp.bind(console,"Remaining Effects",H0,g0,u$,b$,"secondary-dark")):console.timeStamp("Remaining Effects",H0,g0,u$,b$,"secondary-dark")),BX(k,g0),nY(0,!1),dz?H===uG?dX++:(dX=0,uG=H):dX=0,dz=jV=!1,P6&&typeof P6.onPostCommitFiberRoot==="function")try{P6.onPostCommitFiberRoot(hI,H)}catch(F$){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",F$))}var W$=H.current.stateNode;return W$.effectDuration=0,W$.passiveEffectDuration=0,!0}finally{e$.p=M,b0.T=Q,UR($,U)}}function XR($,U,Q){U=X1(Q,U),QC(U),U=AO($.stateNode,U,2),$=CJ($,U,2),$!==null&&(p0($,2),V4($))}function s$($,U,Q){if(FQ=!1,$.tag===3)XR($,$,Q);else{for(;U!==null;){if(U.tag===3){XR(U,$,Q);return}if(U.tag===1){var H=U.stateNode;if(typeof U.type.getDerivedStateFromError==="function"||typeof H.componentDidCatch==="function"&&(dJ===null||!dJ.has(H))){$=X1(Q,$),QC($),Q=CO(2),H=CJ(U,Q,2),H!==null&&(TO(Q,H,U,$),p0(H,2),V4(H));return}}U=U.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
|
+
|
|
155
|
+
Error message:
|
|
156
|
+
|
|
157
|
+
%s`,Q)}}function pO($,U,Q){var H=$.pingCache;if(H===null){H=$.pingCache=new Ng;var M=new Set;H.set(U,M)}else M=H.get(U),M===void 0&&(M=new Set,H.set(U,M));M.has(Q)||(AV=!0,M.add(Q),H=F3.bind(null,$,U,Q),A4&&lY($,Q),U.then(H,H))}function F3($,U,Q){var H=$.pingCache;H!==null&&H.delete(U),$.pingedLanes|=$.suspendedLanes&Q,$.warmLanes&=~Q,(Q&127)!==0?0>P4&&(yJ=P4=$6(),HG=Tz("Promise Resolved"),bJ=Rz):(Q&4194048)!==0&&0>v1&&(_4=v1=$6(),DG=Tz("Promise Resolved"),$V=Rz),hT()&&b0.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
158
|
+
|
|
159
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
160
|
+
|
|
161
|
+
act(() => {
|
|
162
|
+
/* finish loading suspended data */
|
|
163
|
+
});
|
|
164
|
+
/* assert on the output */
|
|
165
|
+
|
|
166
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),zU===$&&(g$&Q)===Q&&(gU===pJ||gU===yz&&(g$&62914560)===g$&&W6()-pz<Xq?(d$&z6)===H6&&kI($,0):CV|=Q,nX===g$&&(nX=0)),V4($)}function IR($,U){U===0&&(U=M$()),$=R6($,U),$!==null&&(p0($,U),V4($))}function D3($){var U=$.memoizedState,Q=0;U!==null&&(Q=U.retryLane),IR($,Q)}function L3($,U){var Q=0;switch($.tag){case 31:case 13:var{stateNode:H,memoizedState:M}=$;M!==null&&(Q=M.retryLane);break;case 19:H=$.stateNode;break;case 22:H=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}H!==null&&H.delete(U),IR($,Q)}function mO($,U,Q){if((U.subtreeFlags&67117056)!==0)for(U=U.child;U!==null;){var H=$,M=U,P=M.type===Xz;P=Q||P,M.tag!==22?M.flags&67108864?P&&I0(M,QR,H,M):mO(H,M,P):M.memoizedState===null&&(P&&M.flags&8192?I0(M,QR,H,M):M.subtreeFlags&67108864&&I0(M,mO,H,M,P)),U=U.sibling}}function QR($,U){k0(!0);try{NT(U),bT(U),kT($,U.alternate,U,!1),xT($,U,0,null,!1,0)}finally{k0(!1)}}function YR($){var U=!0;$.current.mode&(_6|l1)||(U=!1),mO($,$.current,U)}function GR($){if((d$&z6)===H6){var U=$.tag;if(U===3||U===1||U===0||U===11||U===14||U===15){if(U=t($)||"ReactComponent",oz!==null){if(oz.has(U))return;oz.add(U)}else oz=new Set([U]);I0($,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function lY($,U){A4&&$.memoizedUpdaters.forEach(function(Q){i0($,Q,U)})}function M3($,U){var Q=b0.actQueue;return Q!==null?(Q.push(U),xg):_9($,U)}function A3($){hT()&&b0.actQueue===null&&I0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
|
+
|
|
168
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
|
+
|
|
170
|
+
act(() => {
|
|
171
|
+
/* fire events that update state */
|
|
172
|
+
});
|
|
173
|
+
/* assert on the output */
|
|
174
|
+
|
|
175
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,t($))})}function V4($){$!==DQ&&$.next===null&&(DQ===null?iz=DQ=$:DQ=DQ.next=$),rz=!0,b0.actQueue!==null?BV||(BV=!0,WR()):EV||(EV=!0,WR())}function nY($,U){if(!vV&&rz){vV=!0;do{var Q=!1;for(var H=iz;H!==null;){if(!U)if($!==0){var M=H.pendingLanes;if(M===0)var P=0;else{var{suspendedLanes:k,pingedLanes:y}=H;P=(1<<31-j6(42|$)+1)-1,P&=M&~(k&~y),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(Q=!0,KR(H,P))}else P=g$,P=J$(H,H===zU?P:0,H.cancelPendingCommit!==null||H.timeoutHandle!==tX),(P&3)===0||A0(H,P)||(Q=!0,KR(H,P));H=H.next}}while(Q);vV=!1}}function C3(){mG=window.event,lO()}function lO(){rz=BV=EV=!1;var $=0;rJ!==0&&j3()&&($=rJ);for(var U=W6(),Q=null,H=iz;H!==null;){var M=H.next,P=ZR(H,U);if(P===0)H.next=null,Q===null?iz=M:Q.next=M,M===null&&(DQ=Q);else if(Q=H,$!==0||(P&3)!==0)rz=!0;H=M}Q6!==oJ&&Q6!==nz||nY($,!1),rJ!==0&&(rJ=0)}function ZR($,U){for(var{suspendedLanes:Q,pingedLanes:H,expirationTimes:M}=$,P=$.pendingLanes&-62914561;0<P;){var k=31-j6(P),y=1<<k,l=M[k];if(l===-1){if((y&Q)===0||(y&H)!==0)M[k]=v0(y,U)}else l<=U&&($.expiredLanes|=y);P&=~y}if(U=zU,Q=g$,Q=J$($,$===U?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==tX),H=$.callbackNode,Q===0||$===U&&(XU===mX||XU===lX)||$.cancelPendingCommit!==null)return H!==null&&nO(H),$.callbackNode=null,$.callbackPriority=0;if((Q&3)===0||A0($,Q)){if(U=Q&-Q,U!==$.callbackPriority||b0.actQueue!==null&&H!==NV)nO(H);else return U;switch(m(Q)){case W1:case m1:Q=S9;break;case C4:Q=uI;break;case zz:Q=j9;break;default:Q=uI}return H=zR.bind(null,$),b0.actQueue!==null?(b0.actQueue.push(H),Q=NV):Q=_9(Q,H),$.callbackPriority=U,$.callbackNode=Q,U}return H!==null&&nO(H),$.callbackPriority=2,$.callbackNode=null,2}function zR($,U){if(jz=Sz=!1,mG=window.event,Q6!==oJ&&Q6!==nz)return $.callbackNode=null,$.callbackPriority=0,null;var Q=$.callbackNode;if(r1===lz&&(r1=RV),mY()&&$.callbackNode!==Q)return null;var H=g$;if(H=J$($,$===zU?H:0,$.cancelPendingCommit!==null||$.timeoutHandle!==tX),H===0)return null;return pT($,H,U),ZR($,W6()),$.callbackNode!=null&&$.callbackNode===Q?zR.bind(null,$):null}function KR($,U){if(mY())return null;Sz=jz,jz=!1,pT($,U,!0)}function nO($){$!==NV&&$!==null&&zk($)}function WR(){b0.actQueue!==null&&b0.actQueue.push(function(){return lO(),null}),lg(function(){(d$&(z6|F1))!==H6?_9(q9,C3):lO()})}function dO(){if(rJ===0){var $=fX;$===0&&($=Yz,Yz<<=1,(Yz&261888)===0&&(Yz=256)),rJ=$}return rJ}function OR($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return d($,"action"),RY(""+$)}function VR($,U){var Q=U.ownerDocument.createElement("input");return Q.name=U.name,Q.value=U.value,$.id&&Q.setAttribute("form",$.id),U.parentNode.insertBefore(Q,U),$=new FormData($),Q.parentNode.removeChild(Q),$}function T3($,U,Q,H,M){if(U==="submit"&&Q&&Q.stateNode===M){var P=OR((M[E6]||null).action),k=H.submitter;k&&(U=(U=k[E6]||null)?OR(U.formAction):k.getAttribute("formAction"),U!==null&&(P=U,k=null));var y=new Hz("action","action",null,H,M);$.push({event:y,listeners:[{instance:null,listener:function(){if(H.defaultPrevented){if(rJ!==0){var l=k?VR(M,k):new FormData(M),o={pending:!0,data:l,method:M.method,action:P};Object.freeze(o),OO(Q,o,null,l)}}else typeof P==="function"&&(y.preventDefault(),l=k?VR(M,k):new FormData(M),o={pending:!0,data:l,method:M.method,action:P},Object.freeze(o),OO(Q,o,P,l))},currentTarget:M}]})}}function dZ($,U,Q){$.currentTarget=Q;try{U($)}catch(H){m9(H)}$.currentTarget=null}function HR($,U){U=(U&4)!==0;for(var Q=0;Q<$.length;Q++){var H=$[Q];$:{var M=void 0,P=H.event;if(H=H.listeners,U)for(var k=H.length-1;0<=k;k--){var y=H[k],l=y.instance,o=y.currentTarget;if(y=y.listener,l!==M&&P.isPropagationStopped())break $;l!==null?I0(l,dZ,P,y,o):dZ(P,y,o),M=l}else for(k=0;k<H.length;k++){if(y=H[k],l=y.instance,o=y.currentTarget,y=y.listener,l!==M&&P.isPropagationStopped())break $;l!==null?I0(l,dZ,P,y,o):dZ(P,y,o),M=l}}}}function m$($,U){kV.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var Q=U[E9];Q===void 0&&(Q=U[E9]=new Set);var H=$+"__bubble";Q.has(H)||(FR(U,$,2,!1),Q.add(H))}function oO($,U,Q){kV.has($)&&!U&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var H=0;U&&(H|=4),FR(Q,$,H,U)}function iO($){if(!$[tz]){$[tz]=!0,WP.forEach(function(Q){Q!=="selectionchange"&&(kV.has(Q)||oO(Q,!1,$),oO(Q,!0,$))});var U=$.nodeType===9?$:$.ownerDocument;U===null||U[tz]||(U[tz]=!0,oO("selectionchange",!1,U))}}function FR($,U,Q,H){switch(iR(U)){case W1:var M=Uk;break;case m1:M=Jk;break;default:M=K9}Q=M.bind(null,U,Q,$),M=void 0,!g9||U!=="touchstart"&&U!=="touchmove"&&U!=="wheel"||(M=!0),H?M!==void 0?$.addEventListener(U,Q,{capture:!0,passive:M}):$.addEventListener(U,Q,!0):M!==void 0?$.addEventListener(U,Q,{passive:M}):$.addEventListener(U,Q,!1)}function rO($,U,Q,H,M){var P=H;if((U&1)===0&&(U&2)===0&&H!==null)$:for(;;){if(H===null)return;var k=H.tag;if(k===3||k===4){var y=H.stateNode.containerInfo;if(y===M)break;if(k===4)for(k=H.return;k!==null;){var l=k.tag;if((l===3||l===4)&&k.stateNode.containerInfo===M)return;k=k.return}for(;y!==null;){if(k=N0(y),k===null)return;if(l=k.tag,l===5||l===6||l===26||l===27){H=P=k;continue $}y=y.parentNode}}H=H.return}SA(function(){var o=P,P0=LW(Q),_0=[];$:{var H0=iP.get($);if(H0!==void 0){var g0=Hz,W$=$;switch($){case"keypress":if($Z(Q)===0)break $;case"keydown":case"keyup":g0=tk;break;case"focusin":W$="focus",g0=y9;break;case"focusout":W$="blur",g0=y9;break;case"beforeblur":case"afterblur":g0=y9;break;case"click":if(Q.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g0=xP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g0=bk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g0=ek;break;case lP:case nP:case dP:g0=ck;break;case oP:g0=Ug;break;case"scroll":case"scrollend":g0=fk;break;case"wheel":g0=Xg;break;case"copy":case"cut":case"paste":g0=mk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g0=fP;break;case"toggle":case"beforetoggle":g0=Qg}var F$=(U&4)!==0,FU=!F$&&($==="scroll"||$==="scrollend"),l$=F$?H0!==null?H0+"Capture":null:H0;F$=[];for(var z0=o,F0;z0!==null;){var T0=z0;if(F0=T0.stateNode,T0=T0.tag,T0!==5&&T0!==26&&T0!==27||F0===null||l$===null||(T0=PY(z0,l$),T0!=null&&F$.push(dY(z0,T0,F0))),FU)break;z0=z0.return}0<F$.length&&(H0=new g0(H0,W$,null,Q,P0),_0.push({event:H0,listeners:F$}))}}if((U&7)===0){$:{if(H0=$==="mouseover"||$==="pointerover",g0=$==="mouseout"||$==="pointerout",H0&&Q!==XG&&(W$=Q.relatedTarget||Q.fromElement)&&(N0(W$)||W$[vJ]))break $;if(g0||H0){if(H0=P0.window===P0?P0:(H0=P0.ownerDocument)?H0.defaultView||H0.parentWindow:window,g0){if(W$=Q.relatedTarget||Q.toElement,g0=o,W$=W$?N0(W$):null,W$!==null&&(FU=u(W$),F$=W$.tag,W$!==FU||F$!==5&&F$!==27&&F$!==6))W$=null}else g0=null,W$=o;if(g0!==W$){if(F$=xP,T0="onMouseLeave",l$="onMouseEnter",z0="mouse",$==="pointerout"||$==="pointerover")F$=fP,T0="onPointerLeave",l$="onPointerEnter",z0="pointer";if(FU=g0==null?H0:x0(g0),F0=W$==null?H0:x0(W$),H0=new F$(T0,z0+"leave",g0,Q,P0),H0.target=FU,H0.relatedTarget=F0,T0=null,N0(P0)===o&&(F$=new F$(l$,z0+"enter",W$,Q,P0),F$.target=F0,F$.relatedTarget=FU,T0=F$),FU=T0,g0&&W$)U:{F$=R3,l$=g0,z0=W$,F0=0;for(T0=l$;T0;T0=F$(T0))F0++;T0=0;for(var l0=z0;l0;l0=F$(l0))T0++;for(;0<F0-T0;)l$=F$(l$),F0--;for(;0<T0-F0;)z0=F$(z0),T0--;for(;F0--;){if(l$===z0||z0!==null&&l$===z0.alternate){F$=l$;break U}l$=F$(l$),z0=F$(z0)}F$=null}else F$=null;g0!==null&&DR(_0,H0,g0,F$,!1),W$!==null&&FU!==null&&DR(_0,FU,W$,F$,!0)}}}$:{if(H0=o?x0(o):window,g0=H0.nodeName&&H0.nodeName.toLowerCase(),g0==="select"||g0==="input"&&H0.type==="file")var O$=gA;else if(NA(H0))if(pP)O$=xN;else{O$=kN;var _$=NN}else g0=H0.nodeName,!g0||g0.toLowerCase()!=="input"||H0.type!=="checkbox"&&H0.type!=="radio"?o&&TY(o.elementType)&&(O$=gA):O$=gN;if(O$&&(O$=O$($,o))){kA(_0,O$,Q,P0);break $}_$&&_$($,H0,o),$==="focusout"&&o&&H0.type==="number"&&o.memoizedProps.value!=null&&B$(H0,"number",H0.value)}switch(_$=o?x0(o):window,$){case"focusin":if(NA(_$)||_$.contentEditable==="true")oI=_$,u9=o,KG=null;break;case"focusout":KG=u9=oI=null;break;case"mousedown":h9=!0;break;case"contextmenu":case"mouseup":case"dragend":h9=!1,hA(_0,Q,P0);break;case"selectionchange":if(zg)break;case"keydown":case"keyup":hA(_0,Q,P0)}var A$;if(b9)$:{switch($){case"compositionstart":var L$="onCompositionStart";break $;case"compositionend":L$="onCompositionEnd";break $;case"compositionupdate":L$="onCompositionUpdate";break $}L$=void 0}else dI?BA($,Q)&&(L$="onCompositionEnd"):$==="keydown"&&Q.keyCode===yP&&(L$="onCompositionStart");if(L$&&(bP&&Q.locale!=="ko"&&(dI||L$!=="onCompositionStart"?L$==="onCompositionEnd"&&dI&&(A$=jA()):(NJ=P0,x9=("value"in NJ)?NJ.value:NJ.textContent,dI=!0)),_$=oZ(o,L$),0<_$.length&&(L$=new wP(L$,$,null,Q,P0),_0.push({event:L$,listeners:_$}),A$?L$.data=A$:(A$=vA(Q),A$!==null&&(L$.data=A$)))),A$=Gg?jN($,Q):EN($,Q))L$=oZ(o,"onBeforeInput"),0<L$.length&&(_$=new nk("onBeforeInput","beforeinput",null,Q,P0),_0.push({event:_$,listeners:L$}),_$.data=A$);T3(_0,$,o,Q,P0)}HR(_0,U)})}function dY($,U,Q){return{instance:$,listener:U,currentTarget:Q}}function oZ($,U){for(var Q=U+"Capture",H=[];$!==null;){var M=$,P=M.stateNode;if(M=M.tag,M!==5&&M!==26&&M!==27||P===null||(M=PY($,Q),M!=null&&H.unshift(dY($,M,P)),M=PY($,U),M!=null&&H.push(dY($,M,P))),$.tag===3)return H;$=$.return}return[]}function R3($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function DR($,U,Q,H,M){for(var P=U._reactName,k=[];Q!==null&&Q!==H;){var y=Q,l=y.alternate,o=y.stateNode;if(y=y.tag,l!==null&&l===H)break;y!==5&&y!==26&&y!==27||o===null||(l=o,M?(o=PY(Q,P),o!=null&&k.unshift(dY(Q,o,l))):M||(o=PY(Q,P),o!=null&&k.push(dY(Q,o,l)))),Q=Q.return}k.length!==0&&$.push({event:U,listeners:k})}function tO($,U){PN($,U),$!=="input"&&$!=="textarea"&&$!=="select"||U==null||U.value!==null||kP||(kP=!0,$==="select"&&U.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var Q={registrationNameDependencies:vX,possibleRegistrationNames:B9};TY($)||typeof U.is==="string"||qN($,U,Q),U.contentEditable&&!U.suppressContentEditableWarning&&U.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function K6($,U,Q,H){U!==Q&&(Q=qJ(Q),qJ(U)!==Q&&(H[$]=U))}function P3($,U,Q){U.forEach(function(H){Q[AR(H)]=H==="style"?sO($):$.getAttribute(H)})}function H4($,U){U===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof U)}function LR($,U){return $=$.namespaceURI===Wz||$.namespaceURI===pI?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=U,$.innerHTML}function qJ($){return $0($)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",C0($)),c($)),(typeof $==="string"?$:""+$).replace(wg,`
|
|
176
|
+
`).replace(fg,"")}function MR($,U){return U=qJ(U),qJ($)===U?!0:!1}function GU($,U,Q,H,M,P){switch(Q){case"children":if(typeof H==="string")e2(H,U,!1),U==="body"||U==="textarea"&&H===""||CY($,H);else if(typeof H==="number"||typeof H==="bigint")e2(""+H,U,!1),U!=="body"&&CY($,""+H);break;case"className":q0($,"class",H);break;case"tabIndex":q0($,"tabindex",H);break;case"dir":case"role":case"viewBox":case"width":case"height":q0($,Q,H);break;case"style":PA($,H,P);break;case"data":if(U!=="object"){q0($,"data",H);break}case"src":case"href":if(H===""&&(U!=="a"||Q!=="href")){Q==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Q,Q):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Q,Q),$.removeAttribute(Q);break}if(H==null||typeof H==="function"||typeof H==="symbol"||typeof H==="boolean"){$.removeAttribute(Q);break}d(H,Q),H=RY(""+H),$.setAttribute(Q,H);break;case"action":case"formAction":if(H!=null&&(U==="form"?Q==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof H==="function"&&(M.encType==null&&M.method==null||ez||(ez=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),M.target==null||sz||(sz=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):U==="input"||U==="button"?Q==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):U!=="input"||M.type==="submit"||M.type==="image"||az?U!=="button"||M.type==null||M.type==="submit"||az?typeof H==="function"&&(M.name==null||Lq||(Lq=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),M.formEncType==null&&M.formMethod==null||ez||(ez=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),M.formTarget==null||sz||(sz=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(az=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(az=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):Q==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof H==="function"){$.setAttribute(Q,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof P==="function"&&(Q==="formAction"?(U!=="input"&&GU($,U,"name",M.name,M,null),GU($,U,"formEncType",M.formEncType,M,null),GU($,U,"formMethod",M.formMethod,M,null),GU($,U,"formTarget",M.formTarget,M,null)):(GU($,U,"encType",M.encType,M,null),GU($,U,"method",M.method,M,null),GU($,U,"target",M.target,M,null)));if(H==null||typeof H==="symbol"||typeof H==="boolean"){$.removeAttribute(Q);break}d(H,Q),H=RY(""+H),$.setAttribute(Q,H);break;case"onClick":H!=null&&(typeof H!=="function"&&H4(Q,H),$.onclick=f4);break;case"onScroll":H!=null&&(typeof H!=="function"&&H4(Q,H),m$("scroll",$));break;case"onScrollEnd":H!=null&&(typeof H!=="function"&&H4(Q,H),m$("scrollend",$));break;case"dangerouslySetInnerHTML":if(H!=null){if(typeof H!=="object"||!("__html"in H))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Q=H.__html,Q!=null){if(M.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"multiple":$.multiple=H&&typeof H!=="function"&&typeof H!=="symbol";break;case"muted":$.muted=H&&typeof H!=="function"&&typeof H!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(H==null||typeof H==="function"||typeof H==="boolean"||typeof H==="symbol"){$.removeAttribute("xlink:href");break}d(H,Q),Q=RY(""+H),$.setAttributeNS(oX,"xlink:href",Q);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":H!=null&&typeof H!=="function"&&typeof H!=="symbol"?(d(H,Q),$.setAttribute(Q,""+H)):$.removeAttribute(Q);break;case"inert":H!==""||$8[Q]||($8[Q]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",Q));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":H&&typeof H!=="function"&&typeof H!=="symbol"?$.setAttribute(Q,""):$.removeAttribute(Q);break;case"capture":case"download":H===!0?$.setAttribute(Q,""):H!==!1&&H!=null&&typeof H!=="function"&&typeof H!=="symbol"?(d(H,Q),$.setAttribute(Q,H)):$.removeAttribute(Q);break;case"cols":case"rows":case"size":case"span":H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&!isNaN(H)&&1<=H?(d(H,Q),$.setAttribute(Q,H)):$.removeAttribute(Q);break;case"rowSpan":case"start":H==null||typeof H==="function"||typeof H==="symbol"||isNaN(H)?$.removeAttribute(Q):(d(H,Q),$.setAttribute(Q,H));break;case"popover":m$("beforetoggle",$),m$("toggle",$),G0($,"popover",H);break;case"xlinkActuate":j0($,oX,"xlink:actuate",H);break;case"xlinkArcrole":j0($,oX,"xlink:arcrole",H);break;case"xlinkRole":j0($,oX,"xlink:role",H);break;case"xlinkShow":j0($,oX,"xlink:show",H);break;case"xlinkTitle":j0($,oX,"xlink:title",H);break;case"xlinkType":j0($,oX,"xlink:type",H);break;case"xmlBase":j0($,gV,"xml:base",H);break;case"xmlLang":j0($,gV,"xml:lang",H);break;case"xmlSpace":j0($,gV,"xml:space",H);break;case"is":P!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),G0($,"is",H);break;case"innerText":case"textContent":break;case"popoverTarget":Mq||H==null||typeof H!=="object"||(Mq=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",H));default:!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"?(Q=_A(Q),G0($,Q,H)):vX.hasOwnProperty(Q)&&H!=null&&typeof H!=="function"&&H4(Q,H)}}function aO($,U,Q,H,M,P){switch(Q){case"style":PA($,H,P);break;case"dangerouslySetInnerHTML":if(H!=null){if(typeof H!=="object"||!("__html"in H))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Q=H.__html,Q!=null){if(M.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"children":typeof H==="string"?CY($,H):(typeof H==="number"||typeof H==="bigint")&&CY($,""+H);break;case"onScroll":H!=null&&(typeof H!=="function"&&H4(Q,H),m$("scroll",$));break;case"onScrollEnd":H!=null&&(typeof H!=="function"&&H4(Q,H),m$("scrollend",$));break;case"onClick":H!=null&&(typeof H!=="function"&&H4(Q,H),$.onclick=f4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(vX.hasOwnProperty(Q))H!=null&&typeof H!=="function"&&H4(Q,H);else $:{if(Q[0]==="o"&&Q[1]==="n"&&(M=Q.endsWith("Capture"),U=Q.slice(2,M?Q.length-7:void 0),P=$[E6]||null,P=P!=null?P[Q]:null,typeof P==="function"&&$.removeEventListener(U,P,M),typeof H==="function")){typeof P!=="function"&&P!==null&&(Q in $?$[Q]=null:$.hasAttribute(Q)&&$.removeAttribute(Q)),$.addEventListener(U,H,M);break $}Q in $?$[Q]=H:H===!0?$.setAttribute(Q,""):G0($,Q,H)}}}function M6($,U,Q){switch(tO(U,Q),U){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":m$("error",$),m$("load",$);var H=!1,M=!1,P;for(P in Q)if(Q.hasOwnProperty(P)){var k=Q[P];if(k!=null)switch(P){case"src":H=!0;break;case"srcSet":M=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:GU($,U,P,k,Q,null)}}M&&GU($,U,"srcSet",Q.srcSet,Q,null),H&&GU($,U,"src",Q.src,Q,null);return;case"input":OU("input",Q),m$("invalid",$);var y=P=k=M=null,l=null,o=null;for(H in Q)if(Q.hasOwnProperty(H)){var P0=Q[H];if(P0!=null)switch(H){case"name":M=P0;break;case"type":k=P0;break;case"checked":l=P0;break;case"defaultChecked":o=P0;break;case"value":P=P0;break;case"defaultValue":y=P0;break;case"children":case"dangerouslySetInnerHTML":if(P0!=null)throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:GU($,U,H,P0,Q,null)}}I$($,Q),_U($,P,y,l,o,k,M,!1);return;case"select":OU("select",Q),m$("invalid",$),H=k=P=null;for(M in Q)if(Q.hasOwnProperty(M)&&(y=Q[M],y!=null))switch(M){case"value":P=y;break;case"defaultValue":k=y;break;case"multiple":H=y;default:GU($,U,M,y,Q,null)}uU($,Q),U=P,Q=k,$.multiple=!!H,U!=null?n$($,!!H,U,!1):Q!=null&&n$($,!!H,Q,!0);return;case"textarea":OU("textarea",Q),m$("invalid",$),P=M=H=null;for(k in Q)if(Q.hasOwnProperty(k)&&(y=Q[k],y!=null))switch(k){case"value":H=y;break;case"defaultValue":M=y;break;case"children":P=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:GU($,U,k,y,Q,null)}hU($,Q),pU($,H,M,P);return;case"option":j$($,Q);for(l in Q)if(Q.hasOwnProperty(l)&&(H=Q[l],H!=null))switch(l){case"selected":$.selected=H&&typeof H!=="function"&&typeof H!=="symbol";break;default:GU($,U,l,H,Q,null)}return;case"dialog":m$("beforetoggle",$),m$("toggle",$),m$("cancel",$),m$("close",$);break;case"iframe":case"object":m$("load",$);break;case"video":case"audio":for(H=0;H<hG.length;H++)m$(hG[H],$);break;case"image":m$("error",$),m$("load",$);break;case"details":m$("toggle",$);break;case"embed":case"source":case"link":m$("error",$),m$("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(o in Q)if(Q.hasOwnProperty(o)&&(H=Q[o],H!=null))switch(o){case"children":case"dangerouslySetInnerHTML":throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:GU($,U,o,H,Q,null)}return;default:if(TY(U)){for(P0 in Q)Q.hasOwnProperty(P0)&&(H=Q[P0],H!==void 0&&aO($,U,P0,H,Q,void 0));return}}for(y in Q)Q.hasOwnProperty(y)&&(H=Q[y],H!=null&&GU($,U,y,H,Q,null))}function _3($,U,Q,H){switch(tO(U,H),U){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var M=null,P=null,k=null,y=null,l=null,o=null,P0=null;for(g0 in Q){var _0=Q[g0];if(Q.hasOwnProperty(g0)&&_0!=null)switch(g0){case"checked":break;case"value":break;case"defaultValue":l=_0;default:H.hasOwnProperty(g0)||GU($,U,g0,null,H,_0)}}for(var H0 in H){var g0=H[H0];if(_0=Q[H0],H.hasOwnProperty(H0)&&(g0!=null||_0!=null))switch(H0){case"type":P=g0;break;case"name":M=g0;break;case"checked":o=g0;break;case"defaultChecked":P0=g0;break;case"value":k=g0;break;case"defaultValue":y=g0;break;case"children":case"dangerouslySetInnerHTML":if(g0!=null)throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:g0!==_0&&GU($,U,H0,g0,H,_0)}}U=Q.type==="checkbox"||Q.type==="radio"?Q.checked!=null:Q.value!=null,H=H.type==="checkbox"||H.type==="radio"?H.checked!=null:H.value!=null,U||!H||Dq||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Dq=!0),!U||H||Fq||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Fq=!0),$$($,k,y,l,o,P0,P,M);return;case"select":g0=k=y=H0=null;for(P in Q)if(l=Q[P],Q.hasOwnProperty(P)&&l!=null)switch(P){case"value":break;case"multiple":g0=l;default:H.hasOwnProperty(P)||GU($,U,P,null,H,l)}for(M in H)if(P=H[M],l=Q[M],H.hasOwnProperty(M)&&(P!=null||l!=null))switch(M){case"value":H0=P;break;case"defaultValue":y=P;break;case"multiple":k=P;default:P!==l&&GU($,U,M,P,H,l)}H=y,U=k,Q=g0,H0!=null?n$($,!!U,H0,!1):!!Q!==!!U&&(H!=null?n$($,!!U,H,!0):n$($,!!U,U?[]:"",!1));return;case"textarea":g0=H0=null;for(y in Q)if(M=Q[y],Q.hasOwnProperty(y)&&M!=null&&!H.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:GU($,U,y,null,H,M)}for(k in H)if(M=H[k],P=Q[k],H.hasOwnProperty(k)&&(M!=null||P!=null))switch(k){case"value":H0=M;break;case"defaultValue":g0=M;break;case"children":break;case"dangerouslySetInnerHTML":if(M!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:M!==P&&GU($,U,k,M,H,P)}cU($,H0,g0);return;case"option":for(var W$ in Q)if(H0=Q[W$],Q.hasOwnProperty(W$)&&H0!=null&&!H.hasOwnProperty(W$))switch(W$){case"selected":$.selected=!1;break;default:GU($,U,W$,null,H,H0)}for(l in H)if(H0=H[l],g0=Q[l],H.hasOwnProperty(l)&&H0!==g0&&(H0!=null||g0!=null))switch(l){case"selected":$.selected=H0&&typeof H0!=="function"&&typeof H0!=="symbol";break;default:GU($,U,l,H0,H,g0)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var F$ in Q)H0=Q[F$],Q.hasOwnProperty(F$)&&H0!=null&&!H.hasOwnProperty(F$)&&GU($,U,F$,null,H,H0);for(o in H)if(H0=H[o],g0=Q[o],H.hasOwnProperty(o)&&H0!==g0&&(H0!=null||g0!=null))switch(o){case"children":case"dangerouslySetInnerHTML":if(H0!=null)throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:GU($,U,o,H0,H,g0)}return;default:if(TY(U)){for(var FU in Q)H0=Q[FU],Q.hasOwnProperty(FU)&&H0!==void 0&&!H.hasOwnProperty(FU)&&aO($,U,FU,void 0,H,H0);for(P0 in H)H0=H[P0],g0=Q[P0],!H.hasOwnProperty(P0)||H0===g0||H0===void 0&&g0===void 0||aO($,U,P0,H0,H,g0);return}}for(var l$ in Q)H0=Q[l$],Q.hasOwnProperty(l$)&&H0!=null&&!H.hasOwnProperty(l$)&&GU($,U,l$,null,H,H0);for(_0 in H)H0=H[_0],g0=Q[_0],!H.hasOwnProperty(_0)||H0===g0||H0==null&&g0==null||GU($,U,_0,H0,H,g0)}function AR($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function sO($){var U={};$=$.style;for(var Q=0;Q<$.length;Q++){var H=$[Q];U[H]=$.getPropertyValue(H)}return U}function CR($,U,Q){if(U!=null&&typeof U!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var H,M=H="",P;for(P in U)if(U.hasOwnProperty(P)){var k=U[P];k!=null&&typeof k!=="boolean"&&k!==""&&(P.indexOf("--")===0?(L0(k,P),H+=M+P+":"+(""+k).trim()):typeof k!=="number"||k===0||vP.has(P)?(L0(k,P),H+=M+P.replace(qP,"-$1").toLowerCase().replace(SP,"-ms-")+":"+(""+k).trim()):H+=M+P.replace(qP,"-$1").toLowerCase().replace(SP,"-ms-")+":"+k+"px",M=";")}H=H||null,U=$.getAttribute("style"),U!==H&&(H=qJ(H),qJ(U)!==H&&(Q.style=sO($)))}}function P1($,U,Q,H,M,P){if(M.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(d(H,U),$===""+H)return}K6(U,$,H,P)}function TR($,U,Q,H,M,P){if(M.delete(Q),$=$.getAttribute(Q),$===null){switch(typeof H){case"function":case"symbol":return}if(!H)return}else switch(typeof H){case"function":case"symbol":break;default:if(H)return}K6(U,$,H,P)}function eO($,U,Q,H,M,P){if(M.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof H){case"undefined":case"function":case"symbol":return}else if(H!=null)switch(typeof H){case"function":case"symbol":break;default:if(d(H,Q),$===""+H)return}K6(U,$,H,P)}function RR($,U,Q,H,M,P){if(M.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(H))return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(!isNaN(H)&&(d(H,U),$===""+H))return}K6(U,$,H,P)}function $9($,U,Q,H,M,P){if(M.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":return}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(d(H,U),Q=RY(""+H),$===Q)return}K6(U,$,H,P)}function PR($,U,Q,H){for(var M={},P=new Set,k=$.attributes,y=0;y<k.length;y++)switch(k[y].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:P.add(k[y].name)}if(TY(U)){for(var l in Q)if(Q.hasOwnProperty(l)){var o=Q[l];if(o!=null){if(vX.hasOwnProperty(l))typeof o!=="function"&&H4(l,o);else if(Q.suppressHydrationWarning!==!0)switch(l){case"children":typeof o!=="string"&&typeof o!=="number"||K6("children",$.textContent,o,M);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":k=$.innerHTML,o=o?o.__html:void 0,o!=null&&(o=LR($,o),K6(l,k,o,M));continue;case"style":P.delete(l),CR($,o,M);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":P.delete(l.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",l);continue;case"className":P.delete("class"),k=i($,"class",o),K6("className",k,o,M);continue;default:H.context===IJ&&U!=="svg"&&U!=="math"?P.delete(l.toLowerCase()):P.delete(l),k=i($,l,o),K6(l,k,o,M)}}}}else for(o in Q)if(Q.hasOwnProperty(o)&&(l=Q[o],l!=null)){if(vX.hasOwnProperty(o))typeof l!=="function"&&H4(o,l);else if(Q.suppressHydrationWarning!==!0)switch(o){case"children":typeof l!=="string"&&typeof l!=="number"||K6("children",$.textContent,l,M);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":k=$.innerHTML,l=l?l.__html:void 0,l!=null&&(l=LR($,l),k!==l&&(M[o]={__html:k}));continue;case"className":P1($,o,"class",l,P,M);continue;case"tabIndex":P1($,o,"tabindex",l,P,M);continue;case"style":P.delete(o),CR($,l,M);continue;case"multiple":P.delete(o),K6(o,$.multiple,l,M);continue;case"muted":P.delete(o),K6(o,$.muted,l,M);continue;case"autoFocus":P.delete("autofocus"),K6(o,$.autofocus,l,M);continue;case"data":if(U!=="object"){P.delete(o),k=$.getAttribute("data"),K6(o,k,l,M);continue}case"src":case"href":if(!(l!==""||U==="a"&&o==="href"||U==="object"&&o==="data")){o==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',o,o):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',o,o);continue}$9($,o,o,l,P,M);continue;case"action":case"formAction":if(k=$.getAttribute(o),typeof l==="function"){P.delete(o.toLowerCase()),o==="formAction"?(P.delete("name"),P.delete("formenctype"),P.delete("formmethod"),P.delete("formtarget")):(P.delete("enctype"),P.delete("method"),P.delete("target"));continue}else if(k===yg){P.delete(o.toLowerCase()),K6(o,"function",l,M);continue}$9($,o,o.toLowerCase(),l,P,M);continue;case"xlinkHref":$9($,o,"xlink:href",l,P,M);continue;case"contentEditable":eO($,o,"contenteditable",l,P,M);continue;case"spellCheck":eO($,o,"spellcheck",l,P,M);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":eO($,o,o,l,P,M);continue;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":TR($,o,o.toLowerCase(),l,P,M);continue;case"capture":case"download":$:{y=$;var P0=k=o,_0=M;if(P.delete(P0),y=y.getAttribute(P0),y===null)switch(typeof l){case"undefined":case"function":case"symbol":break $;default:if(l===!1)break $}else if(l!=null)switch(typeof l){case"function":case"symbol":break;case"boolean":if(l===!0&&y==="")break $;break;default:if(d(l,k),y===""+l)break $}K6(k,y,l,_0)}continue;case"cols":case"rows":case"size":case"span":$:{if(y=$,P0=k=o,_0=M,P.delete(P0),y=y.getAttribute(P0),y===null)switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(l)||1>l)break $}else if(l!=null)switch(typeof l){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(l)||1>l)&&(d(l,k),y===""+l))break $}K6(k,y,l,_0)}continue;case"rowSpan":RR($,o,"rowspan",l,P,M);continue;case"start":RR($,o,o,l,P,M);continue;case"xHeight":P1($,o,"x-height",l,P,M);continue;case"xlinkActuate":P1($,o,"xlink:actuate",l,P,M);continue;case"xlinkArcrole":P1($,o,"xlink:arcrole",l,P,M);continue;case"xlinkRole":P1($,o,"xlink:role",l,P,M);continue;case"xlinkShow":P1($,o,"xlink:show",l,P,M);continue;case"xlinkTitle":P1($,o,"xlink:title",l,P,M);continue;case"xlinkType":P1($,o,"xlink:type",l,P,M);continue;case"xmlBase":P1($,o,"xml:base",l,P,M);continue;case"xmlLang":P1($,o,"xml:lang",l,P,M);continue;case"xmlSpace":P1($,o,"xml:space",l,P,M);continue;case"inert":l!==""||$8[o]||($8[o]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",o)),TR($,o,o,l,P,M);continue;default:if(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"){y=_A(o),k=!1,H.context===IJ&&U!=="svg"&&U!=="math"?P.delete(y.toLowerCase()):(P0=o.toLowerCase(),P0=Oz.hasOwnProperty(P0)?Oz[P0]||null:null,P0!==null&&P0!==o&&(k=!0,P.delete(P0)),P.delete(y));$:if(P0=$,_0=y,y=l,s0(_0))if(P0.hasAttribute(_0))P0=P0.getAttribute(_0),d(y,_0),y=P0===""+y?y:P0;else{switch(typeof y){case"function":case"symbol":break $;case"boolean":if(P0=_0.toLowerCase().slice(0,5),P0!=="data-"&&P0!=="aria-")break $}y=y===void 0?void 0:null}else y=void 0;k||K6(o,y,l,M)}}}return 0<P.size&&Q.suppressHydrationWarning!==!0&&P3($,P,M),Object.keys(M).length===0?null:M}function q3($,U){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+U+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+U+" "+$[$.length-1]}}function _R($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function S3(){if(typeof performance.getEntriesByType==="function"){for(var $=0,U=0,Q=performance.getEntriesByType("resource"),H=0;H<Q.length;H++){var M=Q[H],P=M.transferSize,k=M.initiatorType,y=M.duration;if(P&&y&&_R(k)){k=0,y=M.responseEnd;for(H+=1;H<Q.length;H++){var l=Q[H],o=l.startTime;if(o>y)break;var{transferSize:P0,initiatorType:_0}=l;P0&&_R(_0)&&(l=l.responseEnd,k+=P0*(l<y?1:(y-o)/(l-o)))}if(--H,U+=8*(P+k)/(M.duration/1000),$++,10<$)break}}if(0<$)return U/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function iZ($){return $.nodeType===9?$:$.ownerDocument}function qR($){switch($){case pI:return MQ;case Wz:return J8;default:return IJ}}function SR($,U){if($===IJ)switch(U){case"svg":return MQ;case"math":return J8;default:return IJ}return $===MQ&&U==="foreignObject"?IJ:$}function U9($,U){return $==="textarea"||$==="noscript"||typeof U.children==="string"||typeof U.children==="number"||typeof U.children==="bigint"||typeof U.dangerouslySetInnerHTML==="object"&&U.dangerouslySetInnerHTML!==null&&U.dangerouslySetInnerHTML.__html!=null}function j3(){var $=window.event;if($&&$.type==="popstate"){if($===yV)return!1;return yV=$,!0}return yV=null,!1}function oY(){var $=window.event;return $&&$!==mG?$.type:null}function iY(){var $=window.event;return $&&$!==mG?$.timeStamp:-1.1}function E3($){setTimeout(function(){throw $})}function B3($,U,Q){switch(U){case"button":case"input":case"select":case"textarea":Q.autoFocus&&$.focus();break;case"img":Q.src?$.src=Q.src:Q.srcSet&&($.srcset=Q.srcSet)}}function v3(){}function N3($,U,Q,H){_3($,U,Q,H),$[E6]=H}function jR($){CY($,"")}function k3($,U,Q){$.nodeValue=Q}function ER($){if(!$.__reactWarnedAboutChildrenConflict){var U=$[E6]||null;if(U!==null){var Q=D$($);Q!==null&&(typeof U.children==="string"||typeof U.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,I0(Q,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):U.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,I0(Q,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function SJ($){return $==="head"}function g3($,U){$.removeChild(U)}function x3($,U){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(U)}function BR($,U){var Q=U,H=0;do{var M=Q.nextSibling;if($.removeChild(Q),M&&M.nodeType===8)if(Q=M.data,Q===pG||Q===U8){if(H===0){$.removeChild(M),fI(U);return}H--}else if(Q===cG||Q===tJ||Q===rX||Q===LQ||Q===iX)H++;else if(Q===ug)rY($.ownerDocument.documentElement);else if(Q===cg){Q=$.ownerDocument.head,rY(Q);for(var P=Q.firstChild;P;){var{nextSibling:k,nodeName:y}=P;P[JG]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&P.rel.toLowerCase()==="stylesheet"||Q.removeChild(P),P=k}}else Q===hg&&rY($.ownerDocument.body);Q=M}while(Q);fI(U)}function vR($,U){var Q=$;$=0;do{var H=Q.nextSibling;if(Q.nodeType===1?U?(Q._stashedDisplay=Q.style.display,Q.style.display="none"):(Q.style.display=Q._stashedDisplay||"",Q.getAttribute("style")===""&&Q.removeAttribute("style")):Q.nodeType===3&&(U?(Q._stashedText=Q.nodeValue,Q.nodeValue=""):Q.nodeValue=Q._stashedText||""),H&&H.nodeType===8)if(Q=H.data,Q===pG)if($===0)break;else $--;else Q!==cG&&Q!==tJ&&Q!==rX&&Q!==LQ||$++;Q=H}while(Q)}function w3($){vR($,!0)}function f3($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function y3($){$.nodeValue=""}function b3($){vR($,!1)}function u3($,U){U=U[pg],U=U!==void 0&&U!==null&&U.hasOwnProperty("display")?U.display:null,$.style.display=U==null||typeof U==="boolean"?"":(""+U).trim()}function h3($,U){$.nodeValue=U}function J9($){var U=$.firstChild;U&&U.nodeType===10&&(U=U.nextSibling);for(;U;){var Q=U;switch(U=U.nextSibling,Q.nodeName){case"HTML":case"HEAD":case"BODY":J9(Q),E0(Q);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Q.rel.toLowerCase()==="stylesheet")continue}$.removeChild(Q)}}function c3($,U,Q,H){for(;$.nodeType===1;){var M=Q;if($.nodeName.toLowerCase()!==U.toLowerCase()){if(!H&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!H)if(U==="input"&&$.type==="hidden"){d(M.name,"name");var P=M.name==null?null:""+M.name;if(M.type==="hidden"&&$.getAttribute("name")===P)return $}else return $;else if(!$[JG])switch(U){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(P=$.getAttribute("rel"),P==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(P!==M.rel||$.getAttribute("href")!==(M.href==null||M.href===""?null:M.href)||$.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin)||$.getAttribute("title")!==(M.title==null?null:M.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(P=$.getAttribute("src"),(P!==(M.src==null?null:M.src)||$.getAttribute("type")!==(M.type==null?null:M.type)||$.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin))&&P&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=Z1($.nextSibling),$===null)break}return null}function p3($,U,Q){if(U==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Q)return null;if($=Z1($.nextSibling),$===null)return null}return $}function NR($,U){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!U)return null;if($=Z1($.nextSibling),$===null)return null}return $}function X9($){return $.data===tJ||$.data===rX}function I9($){return $.data===LQ||$.data===tJ&&$.ownerDocument.readyState!==Cq}function m3($,U){var Q=$.ownerDocument;if($.data===rX)$._reactRetry=U;else if($.data!==tJ||Q.readyState!==Cq)U();else{var H=function(){U(),Q.removeEventListener("DOMContentLoaded",H)};Q.addEventListener("DOMContentLoaded",H),$._reactRetry=H}}function Z1($){for(;$!=null;$=$.nextSibling){var U=$.nodeType;if(U===1||U===3)break;if(U===8){if(U=$.data,U===cG||U===LQ||U===tJ||U===rX||U===iX||U===xV||U===Aq)break;if(U===pG||U===U8)return null}}return $}function kR($){if($.nodeType===1){for(var U=$.nodeName.toLowerCase(),Q={},H=$.attributes,M=0;M<H.length;M++){var P=H[M];Q[AR(P.name)]=P.name.toLowerCase()==="style"?sO($):P.value}return{type:U,props:Q}}return $.nodeType===8?$.data===iX?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function gR($,U,Q){return Q===null||Q[bg]!==!0?($.nodeValue===U?$=null:(U=qJ(U),$=qJ($.nodeValue)===U?null:$.nodeValue),$):null}function Q9($){$=$.nextSibling;for(var U=0;$;){if($.nodeType===8){var Q=$.data;if(Q===pG||Q===U8){if(U===0)return Z1($.nextSibling);U--}else Q!==cG&&Q!==LQ&&Q!==tJ&&Q!==rX&&Q!==iX||U++}$=$.nextSibling}return null}function xR($){$=$.previousSibling;for(var U=0;$;){if($.nodeType===8){var Q=$.data;if(Q===cG||Q===LQ||Q===tJ||Q===rX||Q===iX){if(U===0)return $;U--}else Q!==pG&&Q!==U8||U++}$=$.previousSibling}return null}function l3($){fI($)}function n3($){fI($)}function d3($){fI($)}function wR($,U,Q,H,M){switch(M&&DW($,H.ancestorInfo),U=iZ(Q),$){case"html":if($=U.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=U.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=U.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function o3($,U,Q,H){if(!Q[vJ]&&D$(Q)){var M=Q.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",M,M,M)}switch($){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(M=Q.attributes;M.length;)Q.removeAttributeNode(M[0]);M6(Q,$,U),Q[A6]=H,Q[E6]=U}function rY($){for(var U=$.attributes;U.length;)$.removeAttributeNode(U[0]);E0($)}function rZ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function fR($,U,Q){var H=AQ;if(H&&typeof U==="string"&&U){var M=$U(U);M='link[rel="'+$+'"][href="'+M+'"]',typeof Q==="string"&&(M+='[crossorigin="'+Q+'"]'),Sq.has(M)||(Sq.add(M),$={rel:$,crossOrigin:Q,href:U},H.querySelector(M)===null&&(U=H.createElement("link"),M6(U,"link",$),V$(U),H.head.appendChild(U)))}}function yR($,U,Q,H){var M=(M=EJ.current)?rZ(M):null;if(!M)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof Q.precedence==="string"&&typeof Q.href==="string"?(Q=xI(Q.href),U=y0(M).hoistableStyles,H=U.get(Q),H||(H={type:"style",instance:null,count:0,state:null},U.set(Q,H)),H):{type:"void",instance:null,count:0,state:null};case"link":if(Q.rel==="stylesheet"&&typeof Q.href==="string"&&typeof Q.precedence==="string"){$=xI(Q.href);var P=y0(M).hoistableStyles,k=P.get($);if(!k&&(M=M.ownerDocument||M,k={type:"stylesheet",instance:null,count:0,state:{loading:aX,preload:null}},P.set($,k),(P=M.querySelector(tY($)))&&!P._p&&(k.instance=P,k.state.loading=lG|x1),!w1.has($))){var y={rel:"preload",as:"style",href:Q.href,crossOrigin:Q.crossOrigin,integrity:Q.integrity,media:Q.media,hrefLang:Q.hrefLang,referrerPolicy:Q.referrerPolicy};w1.set($,y),P||i3(M,$,y,k.state)}if(U&&H===null)throw Q=`
|
|
177
|
+
|
|
178
|
+
- `+tZ(U)+`
|
|
179
|
+
+ `+tZ(Q),Error("Expected <link> not to update to be updated to a stylesheet with precedence. 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."+Q);return k}if(U&&H!==null)throw Q=`
|
|
180
|
+
|
|
181
|
+
- `+tZ(U)+`
|
|
182
|
+
+ `+tZ(Q),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."+Q);return null;case"script":return U=Q.async,Q=Q.src,typeof Q==="string"&&U&&typeof U!=="function"&&typeof U!=="symbol"?(Q=wI(Q),U=y0(M).hoistableScripts,H=U.get(Q),H||(H={type:"script",instance:null,count:0,state:null},U.set(Q,H)),H):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function tZ($){var U=0,Q="<link";return typeof $.rel==="string"?(U++,Q+=' rel="'+$.rel+'"'):p1.call($,"rel")&&(U++,Q+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(U++,Q+=' href="'+$.href+'"'):p1.call($,"href")&&(U++,Q+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(U++,Q+=' precedence="'+$.precedence+'"'):p1.call($,"precedence")&&(U++,Q+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>U&&(Q+=" ..."),Q+" />"}function xI($){return'href="'+$U($)+'"'}function tY($){return'link[rel="stylesheet"]['+$+"]"}function bR($){return y$({},$,{"data-precedence":$.precedence,precedence:null})}function i3($,U,Q,H){$.querySelector('link[rel="preload"][as="style"]['+U+"]")?H.loading=lG:(U=$.createElement("link"),H.preload=U,U.addEventListener("load",function(){return H.loading|=lG}),U.addEventListener("error",function(){return H.loading|=_q}),M6(U,"link",Q),V$(U),$.head.appendChild(U))}function wI($){return'[src="'+$U($)+'"]'}function aY($){return"script[async]"+$}function uR($,U,Q){if(U.count++,U.instance===null)switch(U.type){case"style":var H=$.querySelector('style[data-href~="'+$U(Q.href)+'"]');if(H)return U.instance=H,V$(H),H;var M=y$({},Q,{"data-href":Q.href,"data-precedence":Q.precedence,href:null,precedence:null});return H=($.ownerDocument||$).createElement("style"),V$(H),M6(H,"style",M),aZ(H,Q.precedence,$),U.instance=H;case"stylesheet":M=xI(Q.href);var P=$.querySelector(tY(M));if(P)return U.state.loading|=x1,U.instance=P,V$(P),P;H=bR(Q),(M=w1.get(M))&&Y9(H,M),P=($.ownerDocument||$).createElement("link"),V$(P);var k=P;return k._p=new Promise(function(y,l){k.onload=y,k.onerror=l}),M6(P,"link",H),U.state.loading|=x1,aZ(P,Q.precedence,$),U.instance=P;case"script":if(P=wI(Q.src),M=$.querySelector(aY(P)))return U.instance=M,V$(M),M;if(H=Q,M=w1.get(P))H=y$({},Q),G9(H,M);return $=$.ownerDocument||$,M=$.createElement("script"),V$(M),M6(M,"link",H),$.head.appendChild(M),U.instance=M;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+U.type+'". this is a bug in React.')}else U.type==="stylesheet"&&(U.state.loading&x1)===aX&&(H=U.instance,U.state.loading|=x1,aZ(H,Q.precedence,$));return U.instance}function aZ($,U,Q){for(var H=Q.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),M=H.length?H[H.length-1]:null,P=M,k=0;k<H.length;k++){var y=H[k];if(y.dataset.precedence===U)P=y;else if(P!==M)break}P?P.parentNode.insertBefore($,P.nextSibling):(U=Q.nodeType===9?Q.head:Q,U.insertBefore($,U.firstChild))}function Y9($,U){$.crossOrigin==null&&($.crossOrigin=U.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=U.referrerPolicy),$.title==null&&($.title=U.title)}function G9($,U){$.crossOrigin==null&&($.crossOrigin=U.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=U.referrerPolicy),$.integrity==null&&($.integrity=U.integrity)}function hR($,U,Q){if(X8===null){var H=new Map,M=X8=new Map;M.set(Q,H)}else M=X8,H=M.get(Q),H||(H=new Map,M.set(Q,H));if(H.has($))return H;H.set($,null),Q=Q.getElementsByTagName($);for(M=0;M<Q.length;M++){var P=Q[M];if(!(P[JG]||P[A6]||$==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!==pI){var k=P.getAttribute(U)||"";k=$+k;var y=H.get(k);y?y.push(P):H.set(k,[P])}}return H}function cR($,U,Q){$=$.ownerDocument||$,$.head.insertBefore(Q,U==="title"?$.querySelector("head > title"):null)}function r3($,U,Q){var H=!Q.ancestorInfo.containerTagInScope;if(Q.context===MQ||U.itemProp!=null)return!H||U.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="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.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof U.precedence!=="string"||typeof U.href!=="string"||U.href===""){H&&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 U.rel!=="string"||typeof U.href!=="string"||U.href===""||U.onLoad||U.onError){if(U.rel==="stylesheet"&&typeof U.precedence==="string"){$=U.href;var{onError:M,disabled:P}=U;Q=[],U.onLoad&&Q.push("`onLoad`"),M&&Q.push("`onError`"),P!=null&&Q.push("`disabled`"),M=q3(Q,"and"),M+=Q.length===1?" prop":" props",P=Q.length===1?"an "+M:"the "+M,Q.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.',$,P,M)}H&&(typeof U.rel!=="string"||typeof U.href!=="string"||U.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"):(U.onError||U.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(U.rel){case"stylesheet":return $=U.precedence,U=U.disabled,typeof $!=="string"&&H&&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 $==="string"&&U==null;default:return!0}case"script":if($=U.async&&typeof U.async!=="function"&&typeof U.async!=="symbol",!$||U.onLoad||U.onError||!U.src||typeof U.src!=="string"){H&&($?U.onLoad||U.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":H&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function pR($){return $.type==="stylesheet"&&($.state.loading&qq)===aX?!1:!0}function t3($,U,Q,H){if(Q.type==="stylesheet"&&(typeof H.media!=="string"||matchMedia(H.media).matches!==!1)&&(Q.state.loading&x1)===aX){if(Q.instance===null){var M=xI(H.href),P=U.querySelector(tY(M));if(P){U=P._p,U!==null&&typeof U==="object"&&typeof U.then==="function"&&($.count++,$=sZ.bind($),U.then($,$)),Q.state.loading|=x1,Q.instance=P,V$(P);return}P=U.ownerDocument||U,H=bR(H),(M=w1.get(M))&&Y9(H,M),P=P.createElement("link"),V$(P);var k=P;k._p=new Promise(function(y,l){k.onload=y,k.onerror=l}),M6(P,"link",H),Q.instance=P}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(Q,U),(U=Q.state.preload)&&(Q.state.loading&qq)===aX&&($.count++,Q=sZ.bind($),U.addEventListener("load",Q),U.addEventListener("error",Q))}}function a3($,U){return $.stylesheets&&$.count===0&&eZ($,$.stylesheets),0<$.count||0<$.imgCount?function(Q){var H=setTimeout(function(){if($.stylesheets&&eZ($,$.stylesheets),$.unsuspend){var P=$.unsuspend;$.unsuspend=null,P()}},ng+U);0<$.imgBytes&&uV===0&&(uV=125*S3()*og);var M=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&eZ($,$.stylesheets),$.unsuspend)){var P=$.unsuspend;$.unsuspend=null,P()}},($.imgBytes>uV?50:dg)+U);return $.unsuspend=Q,function(){$.unsuspend=null,clearTimeout(H),clearTimeout(M)}}:null}function sZ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eZ(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function eZ($,U){$.stylesheets=null,$.unsuspend!==null&&($.count++,I8=new Map,U.forEach(s3,$),I8=null,sZ.call($))}function s3($,U){if(!(U.state.loading&x1)){var Q=I8.get($);if(Q)var H=Q.get(hV);else{Q=new Map,I8.set($,Q);for(var M=$.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<M.length;P++){var k=M[P];if(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")Q.set(k.dataset.precedence,k),H=k}H&&Q.set(hV,H)}M=U.instance,k=M.getAttribute("data-precedence"),P=Q.get(k)||H,P===H&&Q.set(hV,M),Q.set(k,M),this.count++,H=sZ.bind(this),M.addEventListener("load",H),M.addEventListener("error",H),P?P.parentNode.insertBefore(M,P.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(M,$.firstChild)),U.state.loading|=x1}}function e3($,U,Q,H,M,P,k,y,l){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=tX,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=m0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=m0(0),this.hiddenUpdates=m0(null),this.identifierPrefix=H,this.onUncaughtError=M,this.onCaughtError=P,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(U=0;31>U;U++)$.push(new Set);this._debugRootType=Q?"hydrateRoot()":"createRoot()"}function mR($,U,Q,H,M,P,k,y,l,o,P0,_0){return $=new e3($,U,Q,k,l,o,P0,_0,y),U=Mg,P===!0&&(U|=_6|l1),U|=N$,P=q(3,null,null,U),$.current=P,P.stateNode=$,U=wW(),PX(U),$.pooledCache=U,PX(U),P.memoizedState={element:H,isDehydrated:Q,cache:U},hW(P),$}function lR($){if(!$)return xJ;return $=xJ,$}function Z9($,U,Q,H,M,P){if(P6&&typeof P6.onScheduleFiberRoot==="function")try{P6.onScheduleFiberRoot(hI,H,Q)}catch(k){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",k))}M=lR(M),H.context===null?H.context=M:H.pendingContext=M,L4&&K1!==null&&!vq&&(vq=!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
|
+
|
|
184
|
+
Check the render method of %s.`,t(K1)||"Unknown")),H=AJ(U),H.payload={element:Q},P=P===void 0?null:P,P!==null&&(typeof P!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",P),H.callback=P),Q=CJ($,H,U),Q!==null&&(J4(U,"root.render()",null),wU(Q,$,U),NY(Q,$,U))}function nR($,U){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var Q=$.retryLane;$.retryLane=Q!==0&&Q<U?Q:U}}function z9($,U){nR($,U),($=$.alternate)&&nR($,U)}function dR($){if($.tag===13||$.tag===31){var U=R6($,67108864);U!==null&&wU(U,$,67108864),z9($,67108864)}}function oR($){if($.tag===13||$.tag===31){var U=G1($);U=t0(U);var Q=R6($,U);Q!==null&&wU(Q,$,U),z9($,U)}}function $k(){return K1}function Uk($,U,Q,H){var M=b0.T;b0.T=null;var P=e$.p;try{e$.p=W1,K9($,U,Q,H)}finally{e$.p=P,b0.T=M}}function Jk($,U,Q,H){var M=b0.T;b0.T=null;var P=e$.p;try{e$.p=m1,K9($,U,Q,H)}finally{e$.p=P,b0.T=M}}function K9($,U,Q,H){if(Y8){var M=W9(H);if(M===null)rO($,U,H,G8,Q),rR($,H);else if(Xk(M,$,U,Q,H))H.stopPropagation();else if(rR($,H),U&4&&-1<rg.indexOf($)){for(;M!==null;){var P=D$(M);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var k=O0(P.pendingLanes);if(k!==0){var y=P;y.pendingLanes|=2;for(y.entangledLanes|=2;k;){var l=1<<31-j6(k);y.entanglements[1]|=l,k&=~l}V4(P),(d$&(z6|F1))===H6&&(mz=W6()+Iq,nY(0,!1))}}break;case 31:case 13:y=R6(P,2),y!==null&&wU(y,P,2),NI(),z9(P,2)}if(P=W9(H),P===null&&rO($,U,H,G8,Q),P===M)break;M=P}M!==null&&H.stopPropagation()}else rO($,U,H,null,Q)}}function W9($){return $=LW($),O9($)}function O9($){if(G8=null,$=N0($),$!==null){var U=u($);if(U===null)$=null;else{var Q=U.tag;if(Q===13){if($=g(U),$!==null)return $;$=null}else if(Q===31){if($=b(U),$!==null)return $;$=null}else if(Q===3){if(U.stateNode.current.memoizedState.isDehydrated)return U.tag===3?U.stateNode.containerInfo:null;$=null}else U!==$&&($=null)}}return G8=$,null}function iR($){switch($){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 W1;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 m1;case"message":switch(Ok()){case q9:return W1;case S9:return m1;case uI:case Vk:return C4;case j9:return zz;default:return C4}default:return C4}}function rR($,U){switch($){case"focusin":case"focusout":aJ=null;break;case"dragenter":case"dragleave":sJ=null;break;case"mouseover":case"mouseout":eJ=null;break;case"pointerover":case"pointerout":dG.delete(U.pointerId);break;case"gotpointercapture":case"lostpointercapture":oG.delete(U.pointerId)}}function sY($,U,Q,H,M,P){if($===null||$.nativeEvent!==P)return $={blockedOn:U,domEventName:Q,eventSystemFlags:H,nativeEvent:P,targetContainers:[M]},U!==null&&(U=D$(U),U!==null&&dR(U)),$;return $.eventSystemFlags|=H,U=$.targetContainers,M!==null&&U.indexOf(M)===-1&&U.push(M),$}function Xk($,U,Q,H,M){switch(U){case"focusin":return aJ=sY(aJ,$,U,Q,H,M),!0;case"dragenter":return sJ=sY(sJ,$,U,Q,H,M),!0;case"mouseover":return eJ=sY(eJ,$,U,Q,H,M),!0;case"pointerover":var P=M.pointerId;return dG.set(P,sY(dG.get(P)||null,$,U,Q,H,M)),!0;case"gotpointercapture":return P=M.pointerId,oG.set(P,sY(oG.get(P)||null,$,U,Q,H,M)),!0}return!1}function tR($){var U=N0($.target);if(U!==null){var Q=u(U);if(Q!==null){if(U=Q.tag,U===13){if(U=g(Q),U!==null){$.blockedOn=U,e0($.priority,function(){oR(Q)});return}}else if(U===31){if(U=b(Q),U!==null){$.blockedOn=U,e0($.priority,function(){oR(Q)});return}}else if(U===3&&Q.stateNode.current.memoizedState.isDehydrated){$.blockedOn=Q.tag===3?Q.stateNode.containerInfo:null;return}}}$.blockedOn=null}function $z($){if($.blockedOn!==null)return!1;for(var U=$.targetContainers;0<U.length;){var Q=W9($.nativeEvent);if(Q===null){Q=$.nativeEvent;var H=new Q.constructor(Q.type,Q),M=H;XG!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),XG=M,Q.target.dispatchEvent(H),XG===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."),XG=null}else return U=D$(Q),U!==null&&dR(U),$.blockedOn=Q,!1;U.shift()}return!0}function aR($,U,Q){$z($)&&Q.delete(U)}function Ik(){cV=!1,aJ!==null&&$z(aJ)&&(aJ=null),sJ!==null&&$z(sJ)&&(sJ=null),eJ!==null&&$z(eJ)&&(eJ=null),dG.forEach(aR),oG.forEach(aR)}function Uz($,U){$.blockedOn===U&&($.blockedOn=null,cV||(cV=!0,o$.unstable_scheduleCallback(o$.unstable_NormalPriority,Ik)))}function sR($){Z8!==$&&(Z8=$,o$.unstable_scheduleCallback(o$.unstable_NormalPriority,function(){Z8===$&&(Z8=null);for(var U=0;U<$.length;U+=3){var Q=$[U],H=$[U+1],M=$[U+2];if(typeof H!=="function")if(O9(H||Q)===null)continue;else break;var P=D$(Q);P!==null&&($.splice(U,3),U-=3,Q={pending:!0,data:M,method:Q.method,action:H},Object.freeze(Q),OO(P,Q,H,M))}}))}function fI($){function U(l){return Uz(l,$)}aJ!==null&&Uz(aJ,$),sJ!==null&&Uz(sJ,$),eJ!==null&&Uz(eJ,$),dG.forEach(U),oG.forEach(U);for(var Q=0;Q<$X.length;Q++){var H=$X[Q];H.blockedOn===$&&(H.blockedOn=null)}for(;0<$X.length&&(Q=$X[0],Q.blockedOn===null);)tR(Q),Q.blockedOn===null&&$X.shift();if(Q=($.ownerDocument||$).$$reactFormReplay,Q!=null)for(H=0;H<Q.length;H+=3){var M=Q[H],P=Q[H+1],k=M[E6]||null;if(typeof P==="function")k||sR(Q);else if(k){var y=null;if(P&&P.hasAttribute("formAction")){if(M=P,k=P[E6]||null)y=k.formAction;else if(O9(M)!==null)continue}else y=k.action;typeof y==="function"?Q[H+1]=y:(Q.splice(H,3),H-=3),sR(Q)}}}function eR(){function $(P){P.canIntercept&&P.info==="react-transition"&&P.intercept({handler:function(){return new Promise(function(k){return M=k})},focusReset:"manual",scroll:"manual"})}function U(){M!==null&&(M(),M=null),H||setTimeout(Q,20)}function Q(){if(!H&&!navigation.transition){var P=navigation.currentEntry;P&&P.url!=null&&navigation.navigate(P.url,{state:P.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var H=!1,M=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",U),navigation.addEventListener("navigateerror",U),setTimeout(Q,100),function(){H=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",U),navigation.removeEventListener("navigateerror",U),M!==null&&(M(),M=null)}}}function V9($){this._internalRoot=$}function Jz($){this._internalRoot=$}function $P($){$[vJ]&&($._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 y$=Object.assign,Qk=Symbol.for("react.element"),F4=Symbol.for("react.transitional.element"),yI=Symbol.for("react.portal"),bI=Symbol.for("react.fragment"),Xz=Symbol.for("react.strict_mode"),H9=Symbol.for("react.profiler"),F9=Symbol.for("react.consumer"),D4=Symbol.for("react.context"),eY=Symbol.for("react.forward_ref"),D9=Symbol.for("react.suspense"),L9=Symbol.for("react.suspense_list"),Iz=Symbol.for("react.memo"),z1=Symbol.for("react.lazy"),M9=Symbol.for("react.activity"),Yk=Symbol.for("react.memo_cache_sentinel"),UP=Symbol.iterator,Gk=Symbol.for("react.client.reference"),G6=Array.isArray,b0=TQ.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,e$=mV.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Zk=Object.freeze({pending:!1,data:null,method:null,action:null}),A9=[],C9=[],l4=-1,jJ=R0(null),$G=R0(null),EJ=R0(null),Qz=R0(null),UG=0,JP,XP,IP,QP,YP,GP,ZP;z.__reactDisabledLog=!0;var T9,zP,R9=!1,P9=new(typeof WeakMap==="function"?WeakMap:Map),K1=null,L4=!1,p1=Object.prototype.hasOwnProperty,_9=o$.unstable_scheduleCallback,zk=o$.unstable_cancelCallback,Kk=o$.unstable_shouldYield,Wk=o$.unstable_requestPaint,W6=o$.unstable_now,Ok=o$.unstable_getCurrentPriorityLevel,q9=o$.unstable_ImmediatePriority,S9=o$.unstable_UserBlockingPriority,uI=o$.unstable_NormalPriority,Vk=o$.unstable_LowPriority,j9=o$.unstable_IdlePriority,Hk=o$.log,Fk=o$.unstable_setDisableYieldValue,hI=null,P6=null,M4=!1,A4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",j6=Math.clz32?Math.clz32:J0,Dk=Math.log,Lk=Math.LN2,Yz=256,Gz=262144,Zz=4194304,W1=2,m1=8,C4=32,zz=268435456,BJ=Math.random().toString(36).slice(2),A6="__reactFiber$"+BJ,E6="__reactProps$"+BJ,vJ="__reactContainer$"+BJ,E9="__reactEvents$"+BJ,Mk="__reactListeners$"+BJ,Ak="__reactHandles$"+BJ,KP="__reactResources$"+BJ,JG="__reactMarker$"+BJ,WP=new Set,vX={},B9={},Ck={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Tk=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]*$"),OP={},VP={},Rk=/[\n"\\]/g,HP=!1,FP=!1,DP=!1,LP=!1,MP=!1,AP=!1,CP=["value","defaultValue"],TP=!1,RP=/["'&<>\n\t]|^\s|\s$/,Pk="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(" "),PP="applet caption html table td th marquee object template foreignObject desc title".split(" "),_k=PP.concat(["button"]),qk="dd dt li option optgroup p rp rt".split(" "),_P={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Kz={},v9={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"]},qP=/([A-Z])/g,SP=/^ms-/,Sk=/^(?:webkit|moz|o)[A-Z]/,jk=/^-ms-/,Ek=/-(.)/g,jP=/;\s*$/,cI={},N9={},EP=!1,BP=!1,vP=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(" ")),Wz="http://www.w3.org/1998/Math/MathML",pI="http://www.w3.org/2000/svg",Bk=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"]]),Oz={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"},NP={"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},mI={},vk=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]*$"),Nk=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]*$"),kP=!1,B6={},gP=/^on./,kk=/^on[^A-Z]/,gk=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]*$"),xk=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]*$"),wk=/^[\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,XG=null,lI=null,nI=null,k9=!1,T4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g9=!1;if(T4)try{var IG={};Object.defineProperty(IG,"passive",{get:function(){g9=!0}}),window.addEventListener("test",IG,IG),window.removeEventListener("test",IG,IG)}catch($){g9=!1}var NJ=null,x9=null,Vz=null,NX={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hz=m6(NX),QG=y$({},NX,{view:0,detail:0}),fk=m6(QG),w9,f9,YG,Fz=y$({},QG,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:MW,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==YG&&(YG&&$.type==="mousemove"?(w9=$.screenX-YG.screenX,f9=$.screenY-YG.screenY):f9=w9=0,YG=$),w9},movementY:function($){return"movementY"in $?$.movementY:f9}}),xP=m6(Fz),yk=y$({},Fz,{dataTransfer:0}),bk=m6(yk),uk=y$({},QG,{relatedTarget:0}),y9=m6(uk),hk=y$({},NX,{animationName:0,elapsedTime:0,pseudoElement:0}),ck=m6(hk),pk=y$({},NX,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),mk=m6(pk),lk=y$({},NX,{data:0}),wP=m6(lk),nk=wP,dk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ok={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"},ik={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},rk=y$({},QG,{key:function($){if($.key){var U=dk[$.key]||$.key;if(U!=="Unidentified")return U}return $.type==="keypress"?($=$Z($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?ok[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:MW,charCode:function($){return $.type==="keypress"?$Z($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?$Z($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),tk=m6(rk),ak=y$({},Fz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fP=m6(ak),sk=y$({},QG,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:MW}),ek=m6(sk),$g=y$({},NX,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ug=m6($g),Jg=y$({},Fz,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),Xg=m6(Jg),Ig=y$({},NX,{newState:0,oldState:0}),Qg=m6(Ig),Yg=[9,13,27,32],yP=229,b9=T4&&"CompositionEvent"in window,GG=null;T4&&"documentMode"in document&&(GG=document.documentMode);var Gg=T4&&"TextEvent"in window&&!GG,bP=T4&&(!b9||GG&&8<GG&&11>=GG),uP=32,hP=String.fromCharCode(uP),cP=!1,dI=!1,Zg={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},ZG=null,zG=null,pP=!1;T4&&(pP=BN("input")&&(!document.documentMode||9<document.documentMode));var v6=typeof Object.is==="function"?Object.is:wN,zg=T4&&"documentMode"in document&&11>=document.documentMode,oI=null,u9=null,KG=null,h9=!1,iI={animationend:DX("Animation","AnimationEnd"),animationiteration:DX("Animation","AnimationIteration"),animationstart:DX("Animation","AnimationStart"),transitionrun:DX("Transition","TransitionRun"),transitionstart:DX("Transition","TransitionStart"),transitioncancel:DX("Transition","TransitionCancel"),transitionend:DX("Transition","TransitionEnd")},c9={},mP={};T4&&(mP=document.createElement("div").style,("AnimationEvent"in window)||(delete iI.animationend.animation,delete iI.animationiteration.animation,delete iI.animationstart.animation),("TransitionEvent"in window)||delete iI.transitionend.transition);var lP=LX("animationend"),nP=LX("animationiteration"),dP=LX("animationstart"),Kg=LX("transitionrun"),Wg=LX("transitionstart"),Og=LX("transitioncancel"),oP=LX("transitionend"),iP=new Map,p9="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(" ");p9.push("scrollEnd");var rP=0;if(typeof performance==="object"&&typeof performance.now==="function")var Vg=performance,tP=function(){return Vg.now()};else{var Hg=Date;tP=function(){return Hg.now()}}var m9=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(U))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},Fg="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.",Dz=0,l9=1,n9=2,d9=3,Lz="– ",Mz="+ ",aP=" ",CU=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",_1="Components ⚛",b$="Scheduler ⚛",u$="Blocking",kJ=!1,n4={color:"primary",properties:null,tooltipText:"",track:_1},gJ={start:-0,end:-0,detail:{devtools:n4}},Dg=["Changed Props",""],sP="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",Lg=["Changed Props",sP],WG=1,d4=2,q1=[],rI=0,o9=0,xJ={};Object.freeze(xJ);var S1=null,tI=null,R$=0,Mg=1,N$=2,_6=8,l1=16,Ag=32,eP=!1;try{var $_=Object.preventExtensions({})}catch($){eP=!0}var i9=new WeakMap,aI=[],sI=0,Az=null,OG=0,j1=[],E1=0,kX=null,o4=1,i4="",C6=null,TU=null,p$=!1,R4=!1,O1=null,wJ=null,B1=!1,r9=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."),t9=R0(null),a9=R0(null),U_={},Cz=null,eI=null,$Q=!1,Cg=typeof AbortController<"u"?AbortController:function(){var $=[],U=this.signal={aborted:!1,addEventListener:function(Q,H){$.push(H)}};this.abort=function(){U.aborted=!0,$.forEach(function(Q){return Q()})}},Tg=o$.unstable_scheduleCallback,Rg=o$.unstable_NormalPriority,eU={$$typeof:D4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},$6=o$.unstable_now,Tz=console.createTask?console.createTask:function(){return null},VG=1,Rz=2,O6=-0,fJ=-0,r4=-0,t4=null,N6=-1.1,gX=-0,kU=-0,C$=-1.1,T$=-1.1,EU=null,fU=!1,yJ=-0,P4=-1.1,HG=null,bJ=0,s9=null,e9=null,xX=-1.1,FG=null,UQ=-1.1,Pz=-1.1,_4=-0,a4=-1.1,v1=-1.1,$V=0,DG=null,J_=null,X_=null,uJ=-1.1,wX=null,hJ=-1.1,_z=-1.1,I_=-0,Q_=-0,qz=0,s4=null,Y_=0,LG=-1.1,Sz=!1,jz=!1,MG=null,UV=0,fX=0,JQ=null,G_=b0.S;b0.S=function($,U){if(Jq=W6(),typeof U==="object"&&U!==null&&typeof U.then==="function"){if(0>a4&&0>v1){a4=$6();var Q=iY(),H=oY();if(Q!==hJ||H!==wX)hJ=-1.1;uJ=Q,wX=H}pN($,U)}G_!==null&&G_($,U)};var yX=R0(null),n1={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},AG=[],CG=[],TG=[],RG=[],PG=[],_G=[],bX=new Set;n1.recordUnsafeLifecycleWarnings=function($,U){bX.has($.type)||(typeof U.componentWillMount==="function"&&U.componentWillMount.__suppressDeprecationWarning!==!0&&AG.push($),$.mode&_6&&typeof U.UNSAFE_componentWillMount==="function"&&CG.push($),typeof U.componentWillReceiveProps==="function"&&U.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&TG.push($),$.mode&_6&&typeof U.UNSAFE_componentWillReceiveProps==="function"&&RG.push($),typeof U.componentWillUpdate==="function"&&U.componentWillUpdate.__suppressDeprecationWarning!==!0&&PG.push($),$.mode&_6&&typeof U.UNSAFE_componentWillUpdate==="function"&&_G.push($))},n1.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<AG.length&&(AG.forEach(function(y){$.add(t(y)||"Component"),bX.add(y.type)}),AG=[]);var U=new Set;0<CG.length&&(CG.forEach(function(y){U.add(t(y)||"Component"),bX.add(y.type)}),CG=[]);var Q=new Set;0<TG.length&&(TG.forEach(function(y){Q.add(t(y)||"Component"),bX.add(y.type)}),TG=[]);var H=new Set;0<RG.length&&(RG.forEach(function(y){H.add(t(y)||"Component"),bX.add(y.type)}),RG=[]);var M=new Set;0<PG.length&&(PG.forEach(function(y){M.add(t(y)||"Component"),bX.add(y.type)}),PG=[]);var P=new Set;if(0<_G.length&&(_G.forEach(function(y){P.add(t(y)||"Component"),bX.add(y.type)}),_G=[]),0<U.size){var k=A(U);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
|
+
|
|
186
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
|
+
|
|
188
|
+
Please update the following components: %s`,k)}0<H.size&&(k=A(H),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
|
+
|
|
190
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
|
+
|
|
193
|
+
Please update the following components: %s`,k)),0<P.size&&(k=A(P),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
|
+
|
|
195
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
|
+
|
|
197
|
+
Please update the following components: %s`,k)),0<$.size&&(k=A($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
|
+
|
|
199
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
201
|
+
|
|
202
|
+
Please update the following components: %s`,k)),0<Q.size&&(k=A(Q),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
+
|
|
204
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
207
|
+
|
|
208
|
+
Please update the following components: %s`,k)),0<M.size&&(k=A(M),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
|
+
|
|
210
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
|
+
|
|
213
|
+
Please update the following components: %s`,k))};var Ez=new Map,Z_=new Set;n1.recordLegacyContextWarning=function($,U){var Q=null;for(var H=$;H!==null;)H.mode&_6&&(Q=H),H=H.return;Q===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Z_.has($.type)&&(H=Ez.get(Q),$.type.contextTypes!=null||$.type.childContextTypes!=null||U!==null&&typeof U.getChildContext==="function")&&(H===void 0&&(H=[],Ez.set(Q,H)),H.push($))},n1.flushLegacyContextWarning=function(){Ez.forEach(function($){if($.length!==0){var U=$[0],Q=new Set;$.forEach(function(M){Q.add(t(M)||"Component"),Z_.add(M.type)});var H=A(Q);I0(U,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
|
+
|
|
215
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
|
+
|
|
217
|
+
Please update the following components: %s
|
|
218
|
+
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,H)})}})},n1.discardPendingWarnings=function(){AG=[],CG=[],TG=[],RG=[],PG=[],_G=[],Ez=new Map};var z_={react_stack_bottom_frame:function($,U,Q){var H=L4;L4=!0;try{return $(U,Q)}finally{L4=H}}},JV=z_.react_stack_bottom_frame.bind(z_),K_={react_stack_bottom_frame:function($){var U=L4;L4=!0;try{return $.render()}finally{L4=U}}},W_=K_.react_stack_bottom_frame.bind(K_),O_={react_stack_bottom_frame:function($,U){try{U.componentDidMount()}catch(Q){s$($,$.return,Q)}}},XV=O_.react_stack_bottom_frame.bind(O_),V_={react_stack_bottom_frame:function($,U,Q,H,M){try{U.componentDidUpdate(Q,H,M)}catch(P){s$($,$.return,P)}}},H_=V_.react_stack_bottom_frame.bind(V_),F_={react_stack_bottom_frame:function($,U){var Q=U.stack;$.componentDidCatch(U.value,{componentStack:Q!==null?Q:""})}},Pg=F_.react_stack_bottom_frame.bind(F_),D_={react_stack_bottom_frame:function($,U,Q){try{Q.componentWillUnmount()}catch(H){s$($,U,H)}}},L_=D_.react_stack_bottom_frame.bind(D_),M_={react_stack_bottom_frame:function($){var U=$.create;return $=$.inst,U=U(),$.destroy=U}},_g=M_.react_stack_bottom_frame.bind(M_),A_={react_stack_bottom_frame:function($,U,Q){try{Q()}catch(H){s$($,U,H)}}},qg=A_.react_stack_bottom_frame.bind(A_),C_={react_stack_bottom_frame:function($){var U=$._init;return U($._payload)}},Sg=C_.react_stack_bottom_frame.bind(C_),XQ=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),IV=Error("Suspense 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."),Bz=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),vz={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},uX=null,qG=!1,IQ=null,SG=0,k$=null,QV,T_=QV=!1,R_={},P_={},__={};S=function($,U,Q){if(Q!==null&&typeof Q==="object"&&Q._store&&(!Q._store.validated&&Q.key==null||Q._store.validated===2)){if(typeof Q._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");Q._store.validated=1;var H=t($),M=H||"null";if(!R_[M]){R_[M]=!0,Q=Q._owner,$=$._debugOwner;var P="";$&&typeof $.tag==="number"&&(M=t($))&&(P=`
|
|
220
|
+
|
|
221
|
+
Check the render method of \``+M+"`."),P||H&&(P=`
|
|
222
|
+
|
|
223
|
+
Check the top-level render call using <`+H+">.");var k="";Q!=null&&$!==Q&&(H=null,typeof Q.tag==="number"?H=t(Q):typeof Q.name==="string"&&(H=Q.name),H&&(k=" It was passed a child from "+H+".")),I0(U,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.',P,k)})}}};var hX=DC(!0),q_=DC(!1),S_=0,j_=1,E_=2,YV=3,cJ=!1,B_=!1,GV=null,ZV=!1,QQ=R0(null),Nz=R0(0),V1=R0(null),N1=null,YQ=1,jG=2,aU=R0(0),kz=0,k1=1,k6=2,H1=4,g6=8,GQ,v_=new Set,N_=new Set,zV=new Set,k_=new Set,e4=0,P$=null,ZU=null,U6=null,gz=!1,ZQ=!1,cX=!1,xz=0,EG=0,$J=null,jg=0,Eg=25,f0=null,g1=null,UJ=-1,BG=!1,vG={readContext:jU,use:PJ,useCallback:nU,useContext:nU,useEffect:nU,useImperativeHandle:nU,useLayoutEffect:nU,useInsertionEffect:nU,useMemo:nU,useReducer:nU,useRef:nU,useState:nU,useDebugValue:nU,useDeferredValue:nU,useTransition:nU,useSyncExternalStore:nU,useId:nU,useHostTransitionStatus:nU,useFormState:nU,useActionState:nU,useOptimistic:nU,useMemoCache:nU,useCacheRefresh:nU};vG.useEffectEvent=nU;var KV=null,g_=null,WV=null,x_=null,q4=null,d1=null,wz=null;KV={readContext:function($){return jU($)},use:PJ,useCallback:function($,U){return f0="useCallback",f$(),_I(U),ZO($,U)},useContext:function($){return f0="useContext",f$(),jU($)},useEffect:function($,U){return f0="useEffect",f$(),_I(U),EZ($,U)},useImperativeHandle:function($,U,Q){return f0="useImperativeHandle",f$(),_I(Q),GO($,U,Q)},useInsertionEffect:function($,U){f0="useInsertionEffect",f$(),_I(U),qX(4,k6,$,U)},useLayoutEffect:function($,U){return f0="useLayoutEffect",f$(),_I(U),YO($,U)},useMemo:function($,U){f0="useMemo",f$(),_I(U);var Q=b0.H;b0.H=q4;try{return zO($,U)}finally{b0.H=Q}},useReducer:function($,U,Q){f0="useReducer",f$();var H=b0.H;b0.H=q4;try{return aW($,U,Q)}finally{b0.H=H}},useRef:function($){return f0="useRef",f$(),IO($)},useState:function($){f0="useState",f$();var U=b0.H;b0.H=q4;try{return UO($)}finally{b0.H=U}},useDebugValue:function(){f0="useDebugValue",f$()},useDeferredValue:function($,U){return f0="useDeferredValue",f$(),KO($,U)},useTransition:function(){return f0="useTransition",f$(),VO()},useSyncExternalStore:function($,U,Q){return f0="useSyncExternalStore",f$(),eW($,U,Q)},useId:function(){return f0="useId",f$(),HO()},useFormState:function($,U){return f0="useFormState",f$(),PZ(),SI($,U)},useActionState:function($,U){return f0="useActionState",f$(),SI($,U)},useOptimistic:function($){return f0="useOptimistic",f$(),JO($)},useHostTransitionStatus:SX,useMemoCache:_X,useCacheRefresh:function(){return f0="useCacheRefresh",f$(),FO()},useEffectEvent:function($){return f0="useEffectEvent",f$(),QO($)}},g_={readContext:function($){return jU($)},use:PJ,useCallback:function($,U){return f0="useCallback",G$(),ZO($,U)},useContext:function($){return f0="useContext",G$(),jU($)},useEffect:function($,U){return f0="useEffect",G$(),EZ($,U)},useImperativeHandle:function($,U,Q){return f0="useImperativeHandle",G$(),GO($,U,Q)},useInsertionEffect:function($,U){f0="useInsertionEffect",G$(),qX(4,k6,$,U)},useLayoutEffect:function($,U){return f0="useLayoutEffect",G$(),YO($,U)},useMemo:function($,U){f0="useMemo",G$();var Q=b0.H;b0.H=q4;try{return zO($,U)}finally{b0.H=Q}},useReducer:function($,U,Q){f0="useReducer",G$();var H=b0.H;b0.H=q4;try{return aW($,U,Q)}finally{b0.H=H}},useRef:function($){return f0="useRef",G$(),IO($)},useState:function($){f0="useState",G$();var U=b0.H;b0.H=q4;try{return UO($)}finally{b0.H=U}},useDebugValue:function(){f0="useDebugValue",G$()},useDeferredValue:function($,U){return f0="useDeferredValue",G$(),KO($,U)},useTransition:function(){return f0="useTransition",G$(),VO()},useSyncExternalStore:function($,U,Q){return f0="useSyncExternalStore",G$(),eW($,U,Q)},useId:function(){return f0="useId",G$(),HO()},useActionState:function($,U){return f0="useActionState",G$(),SI($,U)},useFormState:function($,U){return f0="useFormState",G$(),PZ(),SI($,U)},useOptimistic:function($){return f0="useOptimistic",G$(),JO($)},useHostTransitionStatus:SX,useMemoCache:_X,useCacheRefresh:function(){return f0="useCacheRefresh",G$(),FO()},useEffectEvent:function($){return f0="useEffectEvent",G$(),QO($)}},WV={readContext:function($){return jU($)},use:PJ,useCallback:function($,U){return f0="useCallback",G$(),NZ($,U)},useContext:function($){return f0="useContext",G$(),jU($)},useEffect:function($,U){f0="useEffect",G$(),l6(2048,g6,$,U)},useImperativeHandle:function($,U,Q){return f0="useImperativeHandle",G$(),vZ($,U,Q)},useInsertionEffect:function($,U){return f0="useInsertionEffect",G$(),l6(4,k6,$,U)},useLayoutEffect:function($,U){return f0="useLayoutEffect",G$(),l6(4,H1,$,U)},useMemo:function($,U){f0="useMemo",G$();var Q=b0.H;b0.H=d1;try{return kZ($,U)}finally{b0.H=Q}},useReducer:function($,U,Q){f0="useReducer",G$();var H=b0.H;b0.H=d1;try{return qI($,U,Q)}finally{b0.H=H}},useRef:function(){return f0="useRef",G$(),JU().memoizedState},useState:function(){f0="useState",G$();var $=b0.H;b0.H=d1;try{return qI(h1)}finally{b0.H=$}},useDebugValue:function(){f0="useDebugValue",G$()},useDeferredValue:function($,U){return f0="useDeferredValue",G$(),bC($,U)},useTransition:function(){return f0="useTransition",G$(),lC()},useSyncExternalStore:function($,U,Q){return f0="useSyncExternalStore",G$(),qZ($,U,Q)},useId:function(){return f0="useId",G$(),JU().memoizedState},useFormState:function($){return f0="useFormState",G$(),PZ(),SZ($)},useActionState:function($){return f0="useActionState",G$(),SZ($)},useOptimistic:function($,U){return f0="useOptimistic",G$(),EC($,U)},useHostTransitionStatus:SX,useMemoCache:_X,useCacheRefresh:function(){return f0="useCacheRefresh",G$(),JU().memoizedState},useEffectEvent:function($){return f0="useEffectEvent",G$(),BZ($)}},x_={readContext:function($){return jU($)},use:PJ,useCallback:function($,U){return f0="useCallback",G$(),NZ($,U)},useContext:function($){return f0="useContext",G$(),jU($)},useEffect:function($,U){f0="useEffect",G$(),l6(2048,g6,$,U)},useImperativeHandle:function($,U,Q){return f0="useImperativeHandle",G$(),vZ($,U,Q)},useInsertionEffect:function($,U){return f0="useInsertionEffect",G$(),l6(4,k6,$,U)},useLayoutEffect:function($,U){return f0="useLayoutEffect",G$(),l6(4,H1,$,U)},useMemo:function($,U){f0="useMemo",G$();var Q=b0.H;b0.H=wz;try{return kZ($,U)}finally{b0.H=Q}},useReducer:function($,U,Q){f0="useReducer",G$();var H=b0.H;b0.H=wz;try{return wY($,U,Q)}finally{b0.H=H}},useRef:function(){return f0="useRef",G$(),JU().memoizedState},useState:function(){f0="useState",G$();var $=b0.H;b0.H=wz;try{return wY(h1)}finally{b0.H=$}},useDebugValue:function(){f0="useDebugValue",G$()},useDeferredValue:function($,U){return f0="useDeferredValue",G$(),uC($,U)},useTransition:function(){return f0="useTransition",G$(),nC()},useSyncExternalStore:function($,U,Q){return f0="useSyncExternalStore",G$(),qZ($,U,Q)},useId:function(){return f0="useId",G$(),JU().memoizedState},useFormState:function($){return f0="useFormState",G$(),PZ(),jZ($)},useActionState:function($){return f0="useActionState",G$(),jZ($)},useOptimistic:function($,U){return f0="useOptimistic",G$(),vC($,U)},useHostTransitionStatus:SX,useMemoCache:_X,useCacheRefresh:function(){return f0="useCacheRefresh",G$(),JU().memoizedState},useEffectEvent:function($){return f0="useEffectEvent",G$(),BZ($)}},q4={readContext:function($){return E(),jU($)},use:function($){return L(),PJ($)},useCallback:function($,U){return f0="useCallback",L(),f$(),ZO($,U)},useContext:function($){return f0="useContext",L(),f$(),jU($)},useEffect:function($,U){return f0="useEffect",L(),f$(),EZ($,U)},useImperativeHandle:function($,U,Q){return f0="useImperativeHandle",L(),f$(),GO($,U,Q)},useInsertionEffect:function($,U){f0="useInsertionEffect",L(),f$(),qX(4,k6,$,U)},useLayoutEffect:function($,U){return f0="useLayoutEffect",L(),f$(),YO($,U)},useMemo:function($,U){f0="useMemo",L(),f$();var Q=b0.H;b0.H=q4;try{return zO($,U)}finally{b0.H=Q}},useReducer:function($,U,Q){f0="useReducer",L(),f$();var H=b0.H;b0.H=q4;try{return aW($,U,Q)}finally{b0.H=H}},useRef:function($){return f0="useRef",L(),f$(),IO($)},useState:function($){f0="useState",L(),f$();var U=b0.H;b0.H=q4;try{return UO($)}finally{b0.H=U}},useDebugValue:function(){f0="useDebugValue",L(),f$()},useDeferredValue:function($,U){return f0="useDeferredValue",L(),f$(),KO($,U)},useTransition:function(){return f0="useTransition",L(),f$(),VO()},useSyncExternalStore:function($,U,Q){return f0="useSyncExternalStore",L(),f$(),eW($,U,Q)},useId:function(){return f0="useId",L(),f$(),HO()},useFormState:function($,U){return f0="useFormState",L(),f$(),SI($,U)},useActionState:function($,U){return f0="useActionState",L(),f$(),SI($,U)},useOptimistic:function($){return f0="useOptimistic",L(),f$(),JO($)},useMemoCache:function($){return L(),_X($)},useHostTransitionStatus:SX,useCacheRefresh:function(){return f0="useCacheRefresh",f$(),FO()},useEffectEvent:function($){return f0="useEffectEvent",L(),f$(),QO($)}},d1={readContext:function($){return E(),jU($)},use:function($){return L(),PJ($)},useCallback:function($,U){return f0="useCallback",L(),G$(),NZ($,U)},useContext:function($){return f0="useContext",L(),G$(),jU($)},useEffect:function($,U){f0="useEffect",L(),G$(),l6(2048,g6,$,U)},useImperativeHandle:function($,U,Q){return f0="useImperativeHandle",L(),G$(),vZ($,U,Q)},useInsertionEffect:function($,U){return f0="useInsertionEffect",L(),G$(),l6(4,k6,$,U)},useLayoutEffect:function($,U){return f0="useLayoutEffect",L(),G$(),l6(4,H1,$,U)},useMemo:function($,U){f0="useMemo",L(),G$();var Q=b0.H;b0.H=d1;try{return kZ($,U)}finally{b0.H=Q}},useReducer:function($,U,Q){f0="useReducer",L(),G$();var H=b0.H;b0.H=d1;try{return qI($,U,Q)}finally{b0.H=H}},useRef:function(){return f0="useRef",L(),G$(),JU().memoizedState},useState:function(){f0="useState",L(),G$();var $=b0.H;b0.H=d1;try{return qI(h1)}finally{b0.H=$}},useDebugValue:function(){f0="useDebugValue",L(),G$()},useDeferredValue:function($,U){return f0="useDeferredValue",L(),G$(),bC($,U)},useTransition:function(){return f0="useTransition",L(),G$(),lC()},useSyncExternalStore:function($,U,Q){return f0="useSyncExternalStore",L(),G$(),qZ($,U,Q)},useId:function(){return f0="useId",L(),G$(),JU().memoizedState},useFormState:function($){return f0="useFormState",L(),G$(),SZ($)},useActionState:function($){return f0="useActionState",L(),G$(),SZ($)},useOptimistic:function($,U){return f0="useOptimistic",L(),G$(),EC($,U)},useMemoCache:function($){return L(),_X($)},useHostTransitionStatus:SX,useCacheRefresh:function(){return f0="useCacheRefresh",G$(),JU().memoizedState},useEffectEvent:function($){return f0="useEffectEvent",L(),G$(),BZ($)}},wz={readContext:function($){return E(),jU($)},use:function($){return L(),PJ($)},useCallback:function($,U){return f0="useCallback",L(),G$(),NZ($,U)},useContext:function($){return f0="useContext",L(),G$(),jU($)},useEffect:function($,U){f0="useEffect",L(),G$(),l6(2048,g6,$,U)},useImperativeHandle:function($,U,Q){return f0="useImperativeHandle",L(),G$(),vZ($,U,Q)},useInsertionEffect:function($,U){return f0="useInsertionEffect",L(),G$(),l6(4,k6,$,U)},useLayoutEffect:function($,U){return f0="useLayoutEffect",L(),G$(),l6(4,H1,$,U)},useMemo:function($,U){f0="useMemo",L(),G$();var Q=b0.H;b0.H=d1;try{return kZ($,U)}finally{b0.H=Q}},useReducer:function($,U,Q){f0="useReducer",L(),G$();var H=b0.H;b0.H=d1;try{return wY($,U,Q)}finally{b0.H=H}},useRef:function(){return f0="useRef",L(),G$(),JU().memoizedState},useState:function(){f0="useState",L(),G$();var $=b0.H;b0.H=d1;try{return wY(h1)}finally{b0.H=$}},useDebugValue:function(){f0="useDebugValue",L(),G$()},useDeferredValue:function($,U){return f0="useDeferredValue",L(),G$(),uC($,U)},useTransition:function(){return f0="useTransition",L(),G$(),nC()},useSyncExternalStore:function($,U,Q){return f0="useSyncExternalStore",L(),G$(),qZ($,U,Q)},useId:function(){return f0="useId",L(),G$(),JU().memoizedState},useFormState:function($){return f0="useFormState",L(),G$(),jZ($)},useActionState:function($){return f0="useActionState",L(),G$(),jZ($)},useOptimistic:function($,U){return f0="useOptimistic",L(),G$(),vC($,U)},useMemoCache:function($){return L(),_X($)},useHostTransitionStatus:SX,useCacheRefresh:function(){return f0="useCacheRefresh",G$(),JU().memoizedState},useEffectEvent:function($){return f0="useEffectEvent",L(),G$(),BZ($)}};var w_={},f_=new Set,y_=new Set,b_=new Set,u_=new Set,h_=new Set,c_=new Set,p_=new Set,m_=new Set,l_=new Set,n_=new Set;Object.freeze(w_);var OV={enqueueSetState:function($,U,Q){$=$._reactInternals;var H=G1($),M=AJ(H);M.payload=U,Q!==void 0&&Q!==null&&(LO(Q),M.callback=Q),U=CJ($,M,H),U!==null&&(J4(H,"this.setState()",$),wU(U,$,H),NY(U,$,H))},enqueueReplaceState:function($,U,Q){$=$._reactInternals;var H=G1($),M=AJ(H);M.tag=j_,M.payload=U,Q!==void 0&&Q!==null&&(LO(Q),M.callback=Q),U=CJ($,M,H),U!==null&&(J4(H,"this.replaceState()",$),wU(U,$,H),NY(U,$,H))},enqueueForceUpdate:function($,U){$=$._reactInternals;var Q=G1($),H=AJ(Q);H.tag=E_,U!==void 0&&U!==null&&(LO(U),H.callback=U),U=CJ($,H,Q),U!==null&&(J4(Q,"this.forceUpdate()",$),wU(U,$,Q),NY(U,$,Q))}},zQ=null,VV=null,HV=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."),J6=!1,d_={},o_={},i_={},r_={},KQ=!1,t_={},fz={},FV={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},a_=!1,s_=null;s_=new Set;var JJ=!1,X6=!1,DV=!1,e_=typeof WeakSet==="function"?WeakSet:Set,V6=null,WQ=null,OQ=null,I6=null,o6=!1,o1=null,Z6=!1,NG=8192,Bg={getCacheForType:function($){var U=jU(eU),Q=U.data.get($);return Q===void 0&&(Q=$(),U.data.set($,Q)),Q},cacheSignal:function(){return jU(eU).controller.signal},getOwner:function(){return K1}};if(typeof Symbol==="function"&&Symbol.for){var kG=Symbol.for;kG("selector.component"),kG("selector.has_pseudo_class"),kG("selector.role"),kG("selector.test_id"),kG("selector.text")}var vg=[],Ng=typeof WeakMap==="function"?WeakMap:Map,H6=0,z6=2,F1=4,XJ=0,gG=1,pX=2,yz=3,pJ=4,bz=6,$q=5,d$=H6,zU=null,w$=null,g$=0,i6=0,uz=1,mX=2,xG=3,Uq=4,LV=5,wG=6,hz=7,MV=8,lX=9,XU=i6,D1=null,mJ=!1,VQ=!1,AV=!1,S4=0,gU=XJ,lJ=0,nJ=0,CV=0,r6=0,nX=0,fG=null,x6=null,cz=!1,pz=0,Jq=0,Xq=300,mz=1/0,Iq=500,yG=null,dU=null,dJ=null,lz=0,TV=1,RV=2,Qq=3,oJ=0,Yq=1,Gq=2,Zq=3,zq=4,nz=5,Q6=0,iJ=null,HQ=null,i1=0,PV=0,_V=-0,qV=null,Kq=null,Wq=null,r1=lz,Oq=null,kg=50,bG=0,SV=null,jV=!1,dz=!1,gg=50,dX=0,uG=null,FQ=!1,oz=null,Vq=!1,Hq=new Set,xg={},iz=null,DQ=null,EV=!1,BV=!1,rz=!1,vV=!1,rJ=0,NV={};(function(){for(var $=0;$<p9.length;$++){var U=p9[$],Q=U.toLowerCase();U=U[0].toUpperCase()+U.slice(1),u1(Q,"on"+U)}u1(lP,"onAnimationEnd"),u1(nP,"onAnimationIteration"),u1(dP,"onAnimationStart"),u1("dblclick","onDoubleClick"),u1("focusin","onFocus"),u1("focusout","onBlur"),u1(Kg,"onTransitionRun"),u1(Wg,"onTransitionStart"),u1(Og,"onTransitionCancel"),u1(oP,"onTransitionEnd")})(),r0("onMouseEnter",["mouseout","mouseover"]),r0("onMouseLeave",["mouseout","mouseover"]),r0("onPointerEnter",["pointerout","pointerover"]),r0("onPointerLeave",["pointerout","pointerover"]),o0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o0("onBeforeInput",["compositionend","keypress","textInput","paste"]),o0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hG="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(" "),kV=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hG)),tz="_reactListening"+Math.random().toString(36).slice(2),Fq=!1,Dq=!1,az=!1,Lq=!1,sz=!1,ez=!1,Mq=!1,$8={},wg=/\r\n?/g,fg=/\u0000|\uFFFD/g,oX="http://www.w3.org/1999/xlink",gV="http://www.w3.org/XML/1998/namespace",yg="javascript:throw new Error('React form unexpectedly submitted.')",bg="suppressHydrationWarning",iX="&",U8="/&",cG="$",pG="/$",tJ="$?",rX="$~",LQ="$!",ug="html",hg="body",cg="head",xV="F!",Aq="F",Cq="loading",pg="style",IJ=0,MQ=1,J8=2,wV=null,fV=null,Tq={dialog:!0,webview:!0},yV=null,mG=void 0,Rq=typeof setTimeout==="function"?setTimeout:void 0,mg=typeof clearTimeout==="function"?clearTimeout:void 0,tX=-1,Pq=typeof Promise==="function"?Promise:void 0,lg=typeof queueMicrotask==="function"?queueMicrotask:typeof Pq<"u"?function($){return Pq.resolve(null).then($).catch(E3)}:Rq,bV=null,aX=0,lG=1,_q=2,qq=3,x1=4,w1=new Map,Sq=new Set,QJ=e$.d;e$.d={f:function(){var $=QJ.f(),U=NI();return $||U},r:function($){var U=D$($);U!==null&&U.tag===5&&U.type==="form"?mC(U):QJ.r($)},D:function($){QJ.D($),fR("dns-prefetch",$,null)},C:function($,U){QJ.C($,U),fR("preconnect",$,U)},L:function($,U,Q){QJ.L($,U,Q);var H=AQ;if(H&&$&&U){var M='link[rel="preload"][as="'+$U(U)+'"]';U==="image"?Q&&Q.imageSrcSet?(M+='[imagesrcset="'+$U(Q.imageSrcSet)+'"]',typeof Q.imageSizes==="string"&&(M+='[imagesizes="'+$U(Q.imageSizes)+'"]')):M+='[href="'+$U($)+'"]':M+='[href="'+$U($)+'"]';var P=M;switch(U){case"style":P=xI($);break;case"script":P=wI($)}w1.has(P)||($=y$({rel:"preload",href:U==="image"&&Q&&Q.imageSrcSet?void 0:$,as:U},Q),w1.set(P,$),H.querySelector(M)!==null||U==="style"&&H.querySelector(tY(P))||U==="script"&&H.querySelector(aY(P))||(U=H.createElement("link"),M6(U,"link",$),V$(U),H.head.appendChild(U)))}},m:function($,U){QJ.m($,U);var Q=AQ;if(Q&&$){var H=U&&typeof U.as==="string"?U.as:"script",M='link[rel="modulepreload"][as="'+$U(H)+'"][href="'+$U($)+'"]',P=M;switch(H){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=wI($)}if(!w1.has(P)&&($=y$({rel:"modulepreload",href:$},U),w1.set(P,$),Q.querySelector(M)===null)){switch(H){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Q.querySelector(aY(P)))return}H=Q.createElement("link"),M6(H,"link",$),V$(H),Q.head.appendChild(H)}}},X:function($,U){QJ.X($,U);var Q=AQ;if(Q&&$){var H=y0(Q).hoistableScripts,M=wI($),P=H.get(M);P||(P=Q.querySelector(aY(M)),P||($=y$({src:$,async:!0},U),(U=w1.get(M))&&G9($,U),P=Q.createElement("script"),V$(P),M6(P,"link",$),Q.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},H.set(M,P))}},S:function($,U,Q){QJ.S($,U,Q);var H=AQ;if(H&&$){var M=y0(H).hoistableStyles,P=xI($);U=U||"default";var k=M.get(P);if(!k){var y={loading:aX,preload:null};if(k=H.querySelector(tY(P)))y.loading=lG|x1;else{$=y$({rel:"stylesheet",href:$,"data-precedence":U},Q),(Q=w1.get(P))&&Y9($,Q);var l=k=H.createElement("link");V$(l),M6(l,"link",$),l._p=new Promise(function(o,P0){l.onload=o,l.onerror=P0}),l.addEventListener("load",function(){y.loading|=lG}),l.addEventListener("error",function(){y.loading|=_q}),y.loading|=x1,aZ(k,U,H)}k={type:"stylesheet",instance:k,count:1,state:y},M.set(P,k)}}},M:function($,U){QJ.M($,U);var Q=AQ;if(Q&&$){var H=y0(Q).hoistableScripts,M=wI($),P=H.get(M);P||(P=Q.querySelector(aY(M)),P||($=y$({src:$,async:!0,type:"module"},U),(U=w1.get(M))&&G9($,U),P=Q.createElement("script"),V$(P),M6(P,"link",$),Q.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},H.set(M,P))}}};var AQ=typeof document>"u"?null:document,X8=null,ng=60000,dg=800,og=500,uV=0,hV=null,I8=null,sX=Zk,nG={$$typeof:D4,Provider:null,Consumer:null,_currentValue:sX,_currentValue2:sX,_threadCount:0},jq="%c%s%c",Eq="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",Bq="",Q8=" ",ig=Function.prototype.bind,vq=!1,Nq=null,kq=null,gq=null,xq=null,wq=null,fq=null,yq=null,bq=null,uq=null,hq=null;Nq=function($,U,Q,H){U=J($,U),U!==null&&(Q=I(U.memoizedState,Q,0,H),U.memoizedState=Q,U.baseState=Q,$.memoizedProps=y$({},$.memoizedProps),Q=R6($,2),Q!==null&&wU(Q,$,2))},kq=function($,U,Q){U=J($,U),U!==null&&(Q=X(U.memoizedState,Q,0),U.memoizedState=Q,U.baseState=Q,$.memoizedProps=y$({},$.memoizedProps),Q=R6($,2),Q!==null&&wU(Q,$,2))},gq=function($,U,Q,H){U=J($,U),U!==null&&(Q=Y(U.memoizedState,Q,H),U.memoizedState=Q,U.baseState=Q,$.memoizedProps=y$({},$.memoizedProps),Q=R6($,2),Q!==null&&wU(Q,$,2))},xq=function($,U,Q){$.pendingProps=I($.memoizedProps,U,0,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),U=R6($,2),U!==null&&wU(U,$,2)},wq=function($,U){$.pendingProps=X($.memoizedProps,U,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),U=R6($,2),U!==null&&wU(U,$,2)},fq=function($,U,Q){$.pendingProps=Y($.memoizedProps,U,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),U=R6($,2),U!==null&&wU(U,$,2)},yq=function($){var U=R6($,2);U!==null&&wU(U,$,2)},bq=function($){var U=M$(),Q=R6($,U);Q!==null&&wU(Q,$,U)},uq=function($){Z=$},hq=function($){K=$};var Y8=!0,G8=null,cV=!1,aJ=null,sJ=null,eJ=null,dG=new Map,oG=new Map,$X=[],rg="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(" "),Z8=null;if(Jz.prototype.render=V9.prototype.render=function($){var U=this._internalRoot;if(U===null)throw Error("Cannot update an unmounted root.");var Q=arguments;typeof Q[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()."):w(Q[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 Q[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),Q=$;var H=U.current,M=G1(H);Z9(H,M,Q,U,null,null)},Jz.prototype.unmount=V9.prototype.unmount=function(){var $=arguments;if(typeof $[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()."),$=this._internalRoot,$!==null){this._internalRoot=null;var U=$.containerInfo;(d$&(z6|F1))!==H6&&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."),Z9($.current,2,null,$,null,null),NI(),U[vJ]=null}},Jz.prototype.unstable_scheduleHydration=function($){if($){var U=X0();$={blockedOn:null,target:$,priority:U};for(var Q=0;Q<$X.length&&U!==0&&U<$X[Q].priority;Q++);$X.splice(Q,0,$),Q===0&&tR($)}},function(){var $=TQ.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
|
+
- react: `+($+`
|
|
225
|
+
- react-dom: 19.2.7
|
|
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"),e$.findDOMNode=function($){var U=$._reactInternals;if(U===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=n(U),$=$!==null?a($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:b0,reconcilerVersion:"19.2.7"};return $.overrideHookState=Nq,$.overrideHookStateDeletePath=kq,$.overrideHookStateRenamePath=gq,$.overrideProps=xq,$.overridePropsDeletePath=wq,$.overridePropsRenamePath=fq,$.scheduleUpdate=yq,$.scheduleRetry=bq,$.setErrorHandler=uq,$.setSuspenseHandler=hq,$.scheduleRefresh=N,$.scheduleRoot=B,$.setRefreshHandler=f,$.getCurrentFiber=$k,V0($)}()&&T4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var cq=window.location.protocol;/^(https?|file):$/.test(cq)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(cq==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}zx.createRoot=function($,U){if(!w($))throw Error("Target container is not a DOM element.");$P($);var Q=!1,H="",M=aC,P=sC,k=eC;return U!==null&&U!==void 0&&(U.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof U==="object"&&U!==null&&U.$$typeof===F4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
|
+
|
|
229
|
+
let root = createRoot(domContainer);
|
|
230
|
+
root.render(<App />);`),U.unstable_strictMode===!0&&(Q=!0),U.identifierPrefix!==void 0&&(H=U.identifierPrefix),U.onUncaughtError!==void 0&&(M=U.onUncaughtError),U.onCaughtError!==void 0&&(P=U.onCaughtError),U.onRecoverableError!==void 0&&(k=U.onRecoverableError)),U=mR($,1,!1,null,null,Q,H,null,M,P,k,eR),$[vJ]=U.current,iO($),new V9(U)},zx.hydrateRoot=function($,U,Q){if(!w($))throw Error("Target container is not a DOM element.");$P($),U===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var H=!1,M="",P=aC,k=sC,y=eC,l=null;return Q!==null&&Q!==void 0&&(Q.unstable_strictMode===!0&&(H=!0),Q.identifierPrefix!==void 0&&(M=Q.identifierPrefix),Q.onUncaughtError!==void 0&&(P=Q.onUncaughtError),Q.onCaughtError!==void 0&&(k=Q.onCaughtError),Q.onRecoverableError!==void 0&&(y=Q.onRecoverableError),Q.formState!==void 0&&(l=Q.formState)),U=mR($,1,!0,U,Q!=null?Q:null,H,M,l,P,k,y,eR),U.context=lR(null),Q=U.current,H=G1(Q),H=t0(H),M=AJ(H),M.callback=null,CJ(Q,M,H),J4(H,"hydrateRoot()",null),Q=H,U.current.lanes=Q,p0(U,Q),V4(U),$[vJ]=U.current,iO($),new Jz(U)},zx.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var sq=UX((kn,aq)=>{var Kx=t1(tq());aq.exports=Kx});var oU={};w6(oU,{transcode:()=>rx,resolveObjectURL:()=>dx,kStringMaxLength:()=>GS,kMaxLength:()=>tG,isUtf8:()=>ox,isAscii:()=>ix,default:()=>tx,constants:()=>Cx,btoa:()=>Dx,atob:()=>Lx,INSPECT_MAX_BYTES:()=>YS,File:()=>Mx,Buffer:()=>n0,Blob:()=>Ax});function Wx(J){var I=J.length;if(I%4>0)throw Error("Invalid string. Length must be a multiple of 4");var Y=J.indexOf("=");if(Y===-1)Y=I;var W=Y===I?0:4-Y%4;return[Y,W]}function Ox(J,I){return(J+I)*3/4-I}function Vx(J){var I,Y=Wx(J),W=Y[0],X=Y[1],K=new Uint8Array(Ox(W,X)),Z=0,L=X>0?W-4:W,E;for(E=0;E<L;E+=4)I=f1[J.charCodeAt(E)]<<18|f1[J.charCodeAt(E+1)]<<12|f1[J.charCodeAt(E+2)]<<6|f1[J.charCodeAt(E+3)],K[Z++]=I>>16&255,K[Z++]=I>>8&255,K[Z++]=I&255;if(X===2)I=f1[J.charCodeAt(E)]<<2|f1[J.charCodeAt(E+1)]>>4,K[Z++]=I&255;if(X===1)I=f1[J.charCodeAt(E)]<<10|f1[J.charCodeAt(E+1)]<<4|f1[J.charCodeAt(E+2)]>>2,K[Z++]=I>>8&255,K[Z++]=I&255;return K}function Hx(J){return j4[J>>18&63]+j4[J>>12&63]+j4[J>>6&63]+j4[J&63]}function Fx(J,I,Y){var W,X=[];for(var K=I;K<Y;K+=3)W=(J[K]<<16&16711680)+(J[K+1]<<8&65280)+(J[K+2]&255),X.push(Hx(W));return X.join("")}function $S(J){var I,Y=J.length,W=Y%3,X=[],K=16383;for(var Z=0,L=Y-W;Z<L;Z+=K)X.push(Fx(J,Z,Z+K>L?L:Z+K));if(W===1)I=J[Y-1],X.push(j4[I>>2]+j4[I<<4&63]+"==");else if(W===2)I=(J[Y-2]<<8)+J[Y-1],X.push(j4[I>>10]+j4[I>>4&63]+j4[I<<2&63]+"=");return X.join("")}function K8(J,I,Y,W,X){var K,Z,L=X*8-W-1,E=(1<<L)-1,_=E>>1,S=-7,A=Y?X-1:0,q=Y?-1:1,B=J[I+A];A+=q,K=B&(1<<-S)-1,B>>=-S,S+=L;for(;S>0;K=K*256+J[I+A],A+=q,S-=8);Z=K&(1<<-S)-1,K>>=-S,S+=W;for(;S>0;Z=Z*256+J[I+A],A+=q,S-=8);if(K===0)K=1-_;else if(K===E)return Z?NaN:(B?-1:1)*(1/0);else Z=Z+Math.pow(2,W),K=K-_;return(B?-1:1)*Z*Math.pow(2,K-W)}function QS(J,I,Y,W,X,K){var Z,L,E,_=K*8-X-1,S=(1<<_)-1,A=S>>1,q=X===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=W?0:K-1,N=W?1:-1,f=I<0||I===0&&1/I<0?1:0;if(I=Math.abs(I),isNaN(I)||I===1/0)L=isNaN(I)?1:0,Z=S;else{if(Z=Math.floor(Math.log(I)/Math.LN2),I*(E=Math.pow(2,-Z))<1)Z--,E*=2;if(Z+A>=1)I+=q/E;else I+=q*Math.pow(2,1-A);if(I*E>=2)Z++,E/=2;if(Z+A>=S)L=0,Z=S;else if(Z+A>=1)L=(I*E-1)*Math.pow(2,X),Z=Z+A;else L=I*Math.pow(2,A-1)*Math.pow(2,X),Z=0}for(;X>=8;J[Y+B]=L&255,B+=N,L/=256,X-=8);Z=Z<<X|L,_+=X;for(;_>0;J[Y+B]=Z&255,B+=N,Z/=256,_-=8);J[Y+B-N]|=f*128}function GJ(J){if(J>tG)throw RangeError('The value "'+J+'" is invalid for option "size"');let I=new Uint8Array(J);return Object.setPrototypeOf(I,n0.prototype),I}function rV(J,I,Y){return class extends Y{constructor(){super();Object.defineProperty(this,"message",{value:I.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${J}]`,this.stack,delete this.name}get code(){return J}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${J}]: ${this.message}`}}}function n0(J,I,Y){if(typeof J==="number"){if(typeof I==="string")throw TypeError('The "string" argument must be of type string. Received type number');return tV(J)}return ZS(J,I,Y)}function ZS(J,I,Y){if(typeof J==="string")return _x(J,I);if(ArrayBuffer.isView(J))return qx(J);if(J==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof J);if(E4(J,ArrayBuffer)||J&&E4(J.buffer,ArrayBuffer))return oV(J,I,Y);if(typeof SharedArrayBuffer<"u"&&(E4(J,SharedArrayBuffer)||J&&E4(J.buffer,SharedArrayBuffer)))return oV(J,I,Y);if(typeof J==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let W=J.valueOf&&J.valueOf();if(W!=null&&W!==J)return n0.from(W,I,Y);let X=Sx(J);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]==="function")return n0.from(J[Symbol.toPrimitive]("string"),I,Y);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof J)}function zS(J){if(typeof J!=="number")throw TypeError('"size" argument must be of type number');else if(J<0)throw RangeError('The value "'+J+'" is invalid for option "size"')}function Px(J,I,Y){if(zS(J),J<=0)return GJ(J);if(I!==void 0)return typeof Y==="string"?GJ(J).fill(I,Y):GJ(J).fill(I);return GJ(J)}function tV(J){return zS(J),GJ(J<0?0:aV(J)|0)}function _x(J,I){if(typeof I!=="string"||I==="")I="utf8";if(!n0.isEncoding(I))throw TypeError("Unknown encoding: "+I);let Y=KS(J,I)|0,W=GJ(Y),X=W.write(J,I);if(X!==Y)W=W.slice(0,X);return W}function dV(J){let I=J.length<0?0:aV(J.length)|0,Y=GJ(I);for(let W=0;W<I;W+=1)Y[W]=J[W]&255;return Y}function qx(J){if(E4(J,Uint8Array)){let I=new Uint8Array(J);return oV(I.buffer,I.byteOffset,I.byteLength)}return dV(J)}function oV(J,I,Y){if(I<0||J.byteLength<I)throw RangeError('"offset" is outside of buffer bounds');if(J.byteLength<I+(Y||0))throw RangeError('"length" is outside of buffer bounds');let W;if(I===void 0&&Y===void 0)W=new Uint8Array(J);else if(Y===void 0)W=new Uint8Array(J,I);else W=new Uint8Array(J,I,Y);return Object.setPrototypeOf(W,n0.prototype),W}function Sx(J){if(n0.isBuffer(J)){let I=aV(J.length)|0,Y=GJ(I);if(Y.length===0)return Y;return J.copy(Y,0,0,I),Y}if(J.length!==void 0){if(typeof J.length!=="number"||Number.isNaN(J.length))return GJ(0);return dV(J)}if(J.type==="Buffer"&&Array.isArray(J.data))return dV(J.data)}function aV(J){if(J>=tG)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tG.toString(16)+" bytes");return J|0}function KS(J,I){if(n0.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||E4(J,ArrayBuffer))return J.byteLength;if(typeof J!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof J);let Y=J.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&Y===0)return 0;let X=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":return iV(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return AS(J).length;default:if(X)return W?-1:iV(J).length;I=(""+I).toLowerCase(),X=!0}}function jx(J,I,Y){let W=!1;if(I===void 0||I<0)I=0;if(I>this.length)return"";if(Y===void 0||Y>this.length)Y=this.length;if(Y<=0)return"";if(Y>>>=0,I>>>=0,Y<=I)return"";if(!J)J="utf8";while(!0)switch(J){case"hex":return yx(this,I,Y);case"utf8":case"utf-8":return OS(this,I,Y);case"ascii":return wx(this,I,Y);case"latin1":case"binary":return fx(this,I,Y);case"base64":return gx(this,I,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bx(this,I,Y);default:if(W)throw TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),W=!0}}function UI(J,I,Y){let W=J[I];J[I]=J[Y],J[Y]=W}function WS(J,I,Y,W,X){if(J.length===0)return-1;if(typeof Y==="string")W=Y,Y=0;else if(Y>2147483647)Y=2147483647;else if(Y<-2147483648)Y=-2147483648;if(Y=+Y,Number.isNaN(Y))Y=X?0:J.length-1;if(Y<0)Y=J.length+Y;if(Y>=J.length)if(X)return-1;else Y=J.length-1;else if(Y<0)if(X)Y=0;else return-1;if(typeof I==="string")I=n0.from(I,W);if(n0.isBuffer(I)){if(I.length===0)return-1;return JS(J,I,Y,W,X)}else if(typeof I==="number"){if(I=I&255,typeof Uint8Array.prototype.indexOf==="function")if(X)return Uint8Array.prototype.indexOf.call(J,I,Y);else return Uint8Array.prototype.lastIndexOf.call(J,I,Y);return JS(J,[I],Y,W,X)}throw TypeError("val must be string, number or Buffer")}function JS(J,I,Y,W,X){let K=1,Z=J.length,L=I.length;if(W!==void 0){if(W=String(W).toLowerCase(),W==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le"){if(J.length<2||I.length<2)return-1;K=2,Z/=2,L/=2,Y/=2}}function E(S,A){if(K===1)return S[A];else return S.readUInt16BE(A*K)}let _;if(X){let S=-1;for(_=Y;_<Z;_++)if(E(J,_)===E(I,S===-1?0:_-S)){if(S===-1)S=_;if(_-S+1===L)return S*K}else{if(S!==-1)_-=_-S;S=-1}}else{if(Y+L>Z)Y=Z-L;for(_=Y;_>=0;_--){let S=!0;for(let A=0;A<L;A++)if(E(J,_+A)!==E(I,A)){S=!1;break}if(S)return _}}return-1}function Ex(J,I,Y,W){Y=Number(Y)||0;let X=J.length-Y;if(!W)W=X;else if(W=Number(W),W>X)W=X;let K=I.length;if(W>K/2)W=K/2;let Z;for(Z=0;Z<W;++Z){let L=parseInt(I.substr(Z*2,2),16);if(Number.isNaN(L))return Z;J[Y+Z]=L}return Z}function Bx(J,I,Y,W){return W8(iV(I,J.length-Y),J,Y,W)}function vx(J,I,Y,W){return W8(px(I),J,Y,W)}function Nx(J,I,Y,W){return W8(AS(I),J,Y,W)}function kx(J,I,Y,W){return W8(mx(I,J.length-Y),J,Y,W)}function gx(J,I,Y){if(I===0&&Y===J.length)return $S(J);else return $S(J.slice(I,Y))}function OS(J,I,Y){Y=Math.min(J.length,Y);let W=[],X=I;while(X<Y){let K=J[X],Z=null,L=K>239?4:K>223?3:K>191?2:1;if(X+L<=Y){let E,_,S,A;switch(L){case 1:if(K<128)Z=K;break;case 2:if(E=J[X+1],(E&192)===128){if(A=(K&31)<<6|E&63,A>127)Z=A}break;case 3:if(E=J[X+1],_=J[X+2],(E&192)===128&&(_&192)===128){if(A=(K&15)<<12|(E&63)<<6|_&63,A>2047&&(A<55296||A>57343))Z=A}break;case 4:if(E=J[X+1],_=J[X+2],S=J[X+3],(E&192)===128&&(_&192)===128&&(S&192)===128){if(A=(K&15)<<18|(E&63)<<12|(_&63)<<6|S&63,A>65535&&A<1114112)Z=A}}}if(Z===null)Z=65533,L=1;else if(Z>65535)Z-=65536,W.push(Z>>>10&1023|55296),Z=56320|Z&1023;W.push(Z),X+=L}return xx(W)}function xx(J){let I=J.length;if(I<=XS)return String.fromCharCode.apply(String,J);let Y="",W=0;while(W<I)Y+=String.fromCharCode.apply(String,J.slice(W,W+=XS));return Y}function wx(J,I,Y){let W="";Y=Math.min(J.length,Y);for(let X=I;X<Y;++X)W+=String.fromCharCode(J[X]&127);return W}function fx(J,I,Y){let W="";Y=Math.min(J.length,Y);for(let X=I;X<Y;++X)W+=String.fromCharCode(J[X]);return W}function yx(J,I,Y){let W=J.length;if(!I||I<0)I=0;if(!Y||Y<0||Y>W)Y=W;let X="";for(let K=I;K<Y;++K)X+=lx[J[K]];return X}function bx(J,I,Y){let W=J.slice(I,Y),X="";for(let K=0;K<W.length-1;K+=2)X+=String.fromCharCode(W[K]+W[K+1]*256);return X}function F6(J,I,Y){if(J%1!==0||J<0)throw RangeError("offset is not uint");if(J+I>Y)throw RangeError("Trying to access beyond buffer length")}function t6(J,I,Y,W,X,K){if(!n0.isBuffer(J))throw TypeError('"buffer" argument must be a Buffer instance');if(I>X||I<K)throw RangeError('"value" argument is out of bounds');if(Y+W>J.length)throw RangeError("Index out of range")}function VS(J,I,Y,W,X){MS(I,W,X,J,Y,7);let K=Number(I&BigInt(4294967295));J[Y++]=K,K=K>>8,J[Y++]=K,K=K>>8,J[Y++]=K,K=K>>8,J[Y++]=K;let Z=Number(I>>BigInt(32)&BigInt(4294967295));return J[Y++]=Z,Z=Z>>8,J[Y++]=Z,Z=Z>>8,J[Y++]=Z,Z=Z>>8,J[Y++]=Z,Y}function HS(J,I,Y,W,X){MS(I,W,X,J,Y,7);let K=Number(I&BigInt(4294967295));J[Y+7]=K,K=K>>8,J[Y+6]=K,K=K>>8,J[Y+5]=K,K=K>>8,J[Y+4]=K;let Z=Number(I>>BigInt(32)&BigInt(4294967295));return J[Y+3]=Z,Z=Z>>8,J[Y+2]=Z,Z=Z>>8,J[Y+1]=Z,Z=Z>>8,J[Y]=Z,Y+8}function FS(J,I,Y,W,X,K){if(Y+W>J.length)throw RangeError("Index out of range");if(Y<0)throw RangeError("Index out of range")}function DS(J,I,Y,W,X){if(I=+I,Y=Y>>>0,!X)FS(J,I,Y,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return QS(J,I,Y,W,23,4),Y+4}function LS(J,I,Y,W,X){if(I=+I,Y=Y>>>0,!X)FS(J,I,Y,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return QS(J,I,Y,W,52,8),Y+8}function IS(J){let I="",Y=J.length,W=J[0]==="-"?1:0;for(;Y>=W+4;Y-=3)I=`_${J.slice(Y-3,Y)}${I}`;return`${J.slice(0,Y)}${I}`}function ux(J,I,Y){if(RQ(I,"offset"),J[I]===void 0||J[I+Y]===void 0)aG(I,J.length-(Y+1))}function MS(J,I,Y,W,X,K){if(J>Y||J<I){let Z=typeof I==="bigint"?"n":"",L;if(K>3)if(I===0||I===BigInt(0))L=`>= 0${Z} and < 2${Z} ** ${(K+1)*8}${Z}`;else L=`>= -(2${Z} ** ${(K+1)*8-1}${Z}) and < 2 ** ${(K+1)*8-1}${Z}`;else L=`>= ${I}${Z} and <= ${Y}${Z}`;throw new nV("value",L,J)}ux(W,X,K)}function RQ(J,I){if(typeof J!=="number")throw new Rx(I,"number",J)}function aG(J,I,Y){if(Math.floor(J)!==J)throw RQ(J,Y),new nV(Y||"offset","an integer",J);if(I<0)throw new Tx;throw new nV(Y||"offset",`>= ${Y?1:0} and <= ${I}`,J)}function cx(J){if(J=J.split("=")[0],J=J.trim().replace(hx,""),J.length<2)return"";while(J.length%4!==0)J=J+"=";return J}function iV(J,I){I=I||1/0;let Y,W=J.length,X=null,K=[];for(let Z=0;Z<W;++Z){if(Y=J.charCodeAt(Z),Y>55295&&Y<57344){if(!X){if(Y>56319){if((I-=3)>-1)K.push(239,191,189);continue}else if(Z+1===W){if((I-=3)>-1)K.push(239,191,189);continue}X=Y;continue}if(Y<56320){if((I-=3)>-1)K.push(239,191,189);X=Y;continue}Y=(X-55296<<10|Y-56320)+65536}else if(X){if((I-=3)>-1)K.push(239,191,189)}if(X=null,Y<128){if((I-=1)<0)break;K.push(Y)}else if(Y<2048){if((I-=2)<0)break;K.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((I-=3)<0)break;K.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((I-=4)<0)break;K.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw Error("Invalid code point")}return K}function px(J){let I=[];for(let Y=0;Y<J.length;++Y)I.push(J.charCodeAt(Y)&255);return I}function mx(J,I){let Y,W,X,K=[];for(let Z=0;Z<J.length;++Z){if((I-=2)<0)break;Y=J.charCodeAt(Z),W=Y>>8,X=Y%256,K.push(X),K.push(W)}return K}function AS(J){return Vx(cx(J))}function W8(J,I,Y,W){let X;for(X=0;X<W;++X){if(X+Y>=I.length||X>=J.length)break;I[X+Y]=J[X]}return X}function E4(J,I){return J instanceof I||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===I.name}function JX(J){return typeof BigInt>"u"?nx:J}function nx(){throw Error("BigInt not supported")}function sV(J){return()=>{throw Error(J+" is not implemented for node:buffer browser polyfill")}}var j4,f1,lV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$I,eq,US,YS=50,tG=2147483647,GS=536870888,Dx,Lx,Mx,Ax,Cx,Tx,Rx,nV,XS=4096,hx,lx,dx,ox,ix=(J)=>{for(let I of J)if(I.charCodeAt(0)>127)return!1;return!0},rx,tx;var iU=CQ(()=>{j4=[],f1=[];for($I=0,eq=lV.length;$I<eq;++$I)j4[$I]=lV[$I],f1[lV.charCodeAt($I)]=$I;f1[45]=62;f1[95]=63;US=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,Dx=globalThis.btoa,Lx=globalThis.atob,Mx=globalThis.File,Ax=globalThis.Blob,Cx={MAX_LENGTH:tG,MAX_STRING_LENGTH:GS};Tx=rV("ERR_BUFFER_OUT_OF_BOUNDS",function(J){if(J)return`${J} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),Rx=rV("ERR_INVALID_ARG_TYPE",function(J,I){return`The "${J}" argument must be of type number. Received type ${typeof I}`},TypeError),nV=rV("ERR_OUT_OF_RANGE",function(J,I,Y){let W=`The value of "${J}" is out of range.`,X=Y;if(Number.isInteger(Y)&&Math.abs(Y)>4294967296)X=IS(String(Y));else if(typeof Y==="bigint"){if(X=String(Y),Y>BigInt(2)**BigInt(32)||Y<-(BigInt(2)**BigInt(32)))X=IS(X);X+="n"}return W+=` It must be ${I}. Received ${X}`,W},RangeError);Object.defineProperty(n0.prototype,"parent",{enumerable:!0,get:function(){if(!n0.isBuffer(this))return;return this.buffer}});Object.defineProperty(n0.prototype,"offset",{enumerable:!0,get:function(){if(!n0.isBuffer(this))return;return this.byteOffset}});n0.poolSize=8192;n0.from=function(J,I,Y){return ZS(J,I,Y)};Object.setPrototypeOf(n0.prototype,Uint8Array.prototype);Object.setPrototypeOf(n0,Uint8Array);n0.alloc=function(J,I,Y){return Px(J,I,Y)};n0.allocUnsafe=function(J){return tV(J)};n0.allocUnsafeSlow=function(J){return tV(J)};n0.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==n0.prototype};n0.compare=function(J,I){if(E4(J,Uint8Array))J=n0.from(J,J.offset,J.byteLength);if(E4(I,Uint8Array))I=n0.from(I,I.offset,I.byteLength);if(!n0.isBuffer(J)||!n0.isBuffer(I))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===I)return 0;let Y=J.length,W=I.length;for(let X=0,K=Math.min(Y,W);X<K;++X)if(J[X]!==I[X]){Y=J[X],W=I[X];break}if(Y<W)return-1;if(W<Y)return 1;return 0};n0.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};n0.concat=function(J,I){if(!Array.isArray(J))throw TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return n0.alloc(0);let Y;if(I===void 0){I=0;for(Y=0;Y<J.length;++Y)I+=J[Y].length}let W=n0.allocUnsafe(I),X=0;for(Y=0;Y<J.length;++Y){let K=J[Y];if(E4(K,Uint8Array))if(X+K.length>W.length){if(!n0.isBuffer(K))K=n0.from(K);K.copy(W,X)}else Uint8Array.prototype.set.call(W,K,X);else if(!n0.isBuffer(K))throw TypeError('"list" argument must be an Array of Buffers');else K.copy(W,X);X+=K.length}return W};n0.byteLength=KS;n0.prototype._isBuffer=!0;n0.prototype.swap16=function(){let J=this.length;if(J%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;I<J;I+=2)UI(this,I,I+1);return this};n0.prototype.swap32=function(){let J=this.length;if(J%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let I=0;I<J;I+=4)UI(this,I,I+3),UI(this,I+1,I+2);return this};n0.prototype.swap64=function(){let J=this.length;if(J%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let I=0;I<J;I+=8)UI(this,I,I+7),UI(this,I+1,I+6),UI(this,I+2,I+5),UI(this,I+3,I+4);return this};n0.prototype.toString=function(){let J=this.length;if(J===0)return"";if(arguments.length===0)return OS(this,0,J);return jx.apply(this,arguments)};n0.prototype.toLocaleString=n0.prototype.toString;n0.prototype.equals=function(J){if(!n0.isBuffer(J))throw TypeError("Argument must be a Buffer");if(this===J)return!0;return n0.compare(this,J)===0};n0.prototype.inspect=function(){let J="",I=YS;if(J=this.toString("hex",0,I).replace(/(.{2})/g,"$1 ").trim(),this.length>I)J+=" ... ";return"<Buffer "+J+">"};if(US)n0.prototype[US]=n0.prototype.inspect;n0.prototype.compare=function(J,I,Y,W,X){if(E4(J,Uint8Array))J=n0.from(J,J.offset,J.byteLength);if(!n0.isBuffer(J))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof J);if(I===void 0)I=0;if(Y===void 0)Y=J?J.length:0;if(W===void 0)W=0;if(X===void 0)X=this.length;if(I<0||Y>J.length||W<0||X>this.length)throw RangeError("out of range index");if(W>=X&&I>=Y)return 0;if(W>=X)return-1;if(I>=Y)return 1;if(I>>>=0,Y>>>=0,W>>>=0,X>>>=0,this===J)return 0;let K=X-W,Z=Y-I,L=Math.min(K,Z),E=this.slice(W,X),_=J.slice(I,Y);for(let S=0;S<L;++S)if(E[S]!==_[S]){K=E[S],Z=_[S];break}if(K<Z)return-1;if(Z<K)return 1;return 0};n0.prototype.includes=function(J,I,Y){return this.indexOf(J,I,Y)!==-1};n0.prototype.indexOf=function(J,I,Y){return WS(this,J,I,Y,!0)};n0.prototype.lastIndexOf=function(J,I,Y){return WS(this,J,I,Y,!1)};n0.prototype.write=function(J,I,Y,W){if(I===void 0)W="utf8",Y=this.length,I=0;else if(Y===void 0&&typeof I==="string")W=I,Y=this.length,I=0;else if(isFinite(I))if(I=I>>>0,isFinite(Y)){if(Y=Y>>>0,W===void 0)W="utf8"}else W=Y,Y=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let X=this.length-I;if(Y===void 0||Y>X)Y=X;if(J.length>0&&(Y<0||I<0)||I>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!W)W="utf8";let K=!1;for(;;)switch(W){case"hex":return Ex(this,J,I,Y);case"utf8":case"utf-8":return Bx(this,J,I,Y);case"ascii":case"latin1":case"binary":return vx(this,J,I,Y);case"base64":return Nx(this,J,I,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kx(this,J,I,Y);default:if(K)throw TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),K=!0}};n0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};n0.prototype.slice=function(J,I){let Y=this.length;if(J=~~J,I=I===void 0?Y:~~I,J<0){if(J+=Y,J<0)J=0}else if(J>Y)J=Y;if(I<0){if(I+=Y,I<0)I=0}else if(I>Y)I=Y;if(I<J)I=J;let W=this.subarray(J,I);return Object.setPrototypeOf(W,n0.prototype),W};n0.prototype.readUintLE=n0.prototype.readUIntLE=function(J,I,Y){if(J=J>>>0,I=I>>>0,!Y)F6(J,I,this.length);let W=this[J],X=1,K=0;while(++K<I&&(X*=256))W+=this[J+K]*X;return W};n0.prototype.readUintBE=n0.prototype.readUIntBE=function(J,I,Y){if(J=J>>>0,I=I>>>0,!Y)F6(J,I,this.length);let W=this[J+--I],X=1;while(I>0&&(X*=256))W+=this[J+--I]*X;return W};n0.prototype.readUint8=n0.prototype.readUInt8=function(J,I){if(J=J>>>0,!I)F6(J,1,this.length);return this[J]};n0.prototype.readUint16LE=n0.prototype.readUInt16LE=function(J,I){if(J=J>>>0,!I)F6(J,2,this.length);return this[J]|this[J+1]<<8};n0.prototype.readUint16BE=n0.prototype.readUInt16BE=function(J,I){if(J=J>>>0,!I)F6(J,2,this.length);return this[J]<<8|this[J+1]};n0.prototype.readUint32LE=n0.prototype.readUInt32LE=function(J,I){if(J=J>>>0,!I)F6(J,4,this.length);return(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216};n0.prototype.readUint32BE=n0.prototype.readUInt32BE=function(J,I){if(J=J>>>0,!I)F6(J,4,this.length);return this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])};n0.prototype.readBigUInt64LE=JX(function(J){J=J>>>0,RQ(J,"offset");let I=this[J],Y=this[J+7];if(I===void 0||Y===void 0)aG(J,this.length-8);let W=I+this[++J]*256+this[++J]*65536+this[++J]*16777216,X=this[++J]+this[++J]*256+this[++J]*65536+Y*16777216;return BigInt(W)+(BigInt(X)<<BigInt(32))});n0.prototype.readBigUInt64BE=JX(function(J){J=J>>>0,RQ(J,"offset");let I=this[J],Y=this[J+7];if(I===void 0||Y===void 0)aG(J,this.length-8);let W=I*16777216+this[++J]*65536+this[++J]*256+this[++J],X=this[++J]*16777216+this[++J]*65536+this[++J]*256+Y;return(BigInt(W)<<BigInt(32))+BigInt(X)});n0.prototype.readIntLE=function(J,I,Y){if(J=J>>>0,I=I>>>0,!Y)F6(J,I,this.length);let W=this[J],X=1,K=0;while(++K<I&&(X*=256))W+=this[J+K]*X;if(X*=128,W>=X)W-=Math.pow(2,8*I);return W};n0.prototype.readIntBE=function(J,I,Y){if(J=J>>>0,I=I>>>0,!Y)F6(J,I,this.length);let W=I,X=1,K=this[J+--W];while(W>0&&(X*=256))K+=this[J+--W]*X;if(X*=128,K>=X)K-=Math.pow(2,8*I);return K};n0.prototype.readInt8=function(J,I){if(J=J>>>0,!I)F6(J,1,this.length);if(!(this[J]&128))return this[J];return(255-this[J]+1)*-1};n0.prototype.readInt16LE=function(J,I){if(J=J>>>0,!I)F6(J,2,this.length);let Y=this[J]|this[J+1]<<8;return Y&32768?Y|4294901760:Y};n0.prototype.readInt16BE=function(J,I){if(J=J>>>0,!I)F6(J,2,this.length);let Y=this[J+1]|this[J]<<8;return Y&32768?Y|4294901760:Y};n0.prototype.readInt32LE=function(J,I){if(J=J>>>0,!I)F6(J,4,this.length);return this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24};n0.prototype.readInt32BE=function(J,I){if(J=J>>>0,!I)F6(J,4,this.length);return this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]};n0.prototype.readBigInt64LE=JX(function(J){J=J>>>0,RQ(J,"offset");let I=this[J],Y=this[J+7];if(I===void 0||Y===void 0)aG(J,this.length-8);let W=this[J+4]+this[J+5]*256+this[J+6]*65536+(Y<<24);return(BigInt(W)<<BigInt(32))+BigInt(I+this[++J]*256+this[++J]*65536+this[++J]*16777216)});n0.prototype.readBigInt64BE=JX(function(J){J=J>>>0,RQ(J,"offset");let I=this[J],Y=this[J+7];if(I===void 0||Y===void 0)aG(J,this.length-8);let W=(I<<24)+this[++J]*65536+this[++J]*256+this[++J];return(BigInt(W)<<BigInt(32))+BigInt(this[++J]*16777216+this[++J]*65536+this[++J]*256+Y)});n0.prototype.readFloatLE=function(J,I){if(J=J>>>0,!I)F6(J,4,this.length);return K8(this,J,!0,23,4)};n0.prototype.readFloatBE=function(J,I){if(J=J>>>0,!I)F6(J,4,this.length);return K8(this,J,!1,23,4)};n0.prototype.readDoubleLE=function(J,I){if(J=J>>>0,!I)F6(J,8,this.length);return K8(this,J,!0,52,8)};n0.prototype.readDoubleBE=function(J,I){if(J=J>>>0,!I)F6(J,8,this.length);return K8(this,J,!1,52,8)};n0.prototype.writeUintLE=n0.prototype.writeUIntLE=function(J,I,Y,W){if(J=+J,I=I>>>0,Y=Y>>>0,!W){let Z=Math.pow(2,8*Y)-1;t6(this,J,I,Y,Z,0)}let X=1,K=0;this[I]=J&255;while(++K<Y&&(X*=256))this[I+K]=J/X&255;return I+Y};n0.prototype.writeUintBE=n0.prototype.writeUIntBE=function(J,I,Y,W){if(J=+J,I=I>>>0,Y=Y>>>0,!W){let Z=Math.pow(2,8*Y)-1;t6(this,J,I,Y,Z,0)}let X=Y-1,K=1;this[I+X]=J&255;while(--X>=0&&(K*=256))this[I+X]=J/K&255;return I+Y};n0.prototype.writeUint8=n0.prototype.writeUInt8=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,1,255,0);return this[I]=J&255,I+1};n0.prototype.writeUint16LE=n0.prototype.writeUInt16LE=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,2,65535,0);return this[I]=J&255,this[I+1]=J>>>8,I+2};n0.prototype.writeUint16BE=n0.prototype.writeUInt16BE=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,2,65535,0);return this[I]=J>>>8,this[I+1]=J&255,I+2};n0.prototype.writeUint32LE=n0.prototype.writeUInt32LE=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,4,4294967295,0);return this[I+3]=J>>>24,this[I+2]=J>>>16,this[I+1]=J>>>8,this[I]=J&255,I+4};n0.prototype.writeUint32BE=n0.prototype.writeUInt32BE=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,4,4294967295,0);return this[I]=J>>>24,this[I+1]=J>>>16,this[I+2]=J>>>8,this[I+3]=J&255,I+4};n0.prototype.writeBigUInt64LE=JX(function(J,I=0){return VS(this,J,I,BigInt(0),BigInt("0xffffffffffffffff"))});n0.prototype.writeBigUInt64BE=JX(function(J,I=0){return HS(this,J,I,BigInt(0),BigInt("0xffffffffffffffff"))});n0.prototype.writeIntLE=function(J,I,Y,W){if(J=+J,I=I>>>0,!W){let L=Math.pow(2,8*Y-1);t6(this,J,I,Y,L-1,-L)}let X=0,K=1,Z=0;this[I]=J&255;while(++X<Y&&(K*=256)){if(J<0&&Z===0&&this[I+X-1]!==0)Z=1;this[I+X]=(J/K>>0)-Z&255}return I+Y};n0.prototype.writeIntBE=function(J,I,Y,W){if(J=+J,I=I>>>0,!W){let L=Math.pow(2,8*Y-1);t6(this,J,I,Y,L-1,-L)}let X=Y-1,K=1,Z=0;this[I+X]=J&255;while(--X>=0&&(K*=256)){if(J<0&&Z===0&&this[I+X+1]!==0)Z=1;this[I+X]=(J/K>>0)-Z&255}return I+Y};n0.prototype.writeInt8=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,1,127,-128);if(J<0)J=255+J+1;return this[I]=J&255,I+1};n0.prototype.writeInt16LE=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,2,32767,-32768);return this[I]=J&255,this[I+1]=J>>>8,I+2};n0.prototype.writeInt16BE=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,2,32767,-32768);return this[I]=J>>>8,this[I+1]=J&255,I+2};n0.prototype.writeInt32LE=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,4,2147483647,-2147483648);return this[I]=J&255,this[I+1]=J>>>8,this[I+2]=J>>>16,this[I+3]=J>>>24,I+4};n0.prototype.writeInt32BE=function(J,I,Y){if(J=+J,I=I>>>0,!Y)t6(this,J,I,4,2147483647,-2147483648);if(J<0)J=4294967295+J+1;return this[I]=J>>>24,this[I+1]=J>>>16,this[I+2]=J>>>8,this[I+3]=J&255,I+4};n0.prototype.writeBigInt64LE=JX(function(J,I=0){return VS(this,J,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});n0.prototype.writeBigInt64BE=JX(function(J,I=0){return HS(this,J,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});n0.prototype.writeFloatLE=function(J,I,Y){return DS(this,J,I,!0,Y)};n0.prototype.writeFloatBE=function(J,I,Y){return DS(this,J,I,!1,Y)};n0.prototype.writeDoubleLE=function(J,I,Y){return LS(this,J,I,!0,Y)};n0.prototype.writeDoubleBE=function(J,I,Y){return LS(this,J,I,!1,Y)};n0.prototype.copy=function(J,I,Y,W){if(!n0.isBuffer(J))throw TypeError("argument should be a Buffer");if(!Y)Y=0;if(!W&&W!==0)W=this.length;if(I>=J.length)I=J.length;if(!I)I=0;if(W>0&&W<Y)W=Y;if(W===Y)return 0;if(J.length===0||this.length===0)return 0;if(I<0)throw RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw RangeError("Index out of range");if(W<0)throw RangeError("sourceEnd out of bounds");if(W>this.length)W=this.length;if(J.length-I<W-Y)W=J.length-I+Y;let X=W-Y;if(this===J&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(I,Y,W);else Uint8Array.prototype.set.call(J,this.subarray(Y,W),I);return X};n0.prototype.fill=function(J,I,Y,W){if(typeof J==="string"){if(typeof I==="string")W=I,I=0,Y=this.length;else if(typeof Y==="string")W=Y,Y=this.length;if(W!==void 0&&typeof W!=="string")throw TypeError("encoding must be a string");if(typeof W==="string"&&!n0.isEncoding(W))throw TypeError("Unknown encoding: "+W);if(J.length===1){let K=J.charCodeAt(0);if(W==="utf8"&&K<128||W==="latin1")J=K}}else if(typeof J==="number")J=J&255;else if(typeof J==="boolean")J=Number(J);if(I<0||this.length<I||this.length<Y)throw RangeError("Out of range index");if(Y<=I)return this;if(I=I>>>0,Y=Y===void 0?this.length:Y>>>0,!J)J=0;let X;if(typeof J==="number")for(X=I;X<Y;++X)this[X]=J;else{let K=n0.isBuffer(J)?J:n0.from(J,W),Z=K.length;if(Z===0)throw TypeError('The value "'+J+'" is invalid for argument "value"');for(X=0;X<Y-I;++X)this[X+I]=K[X%Z]}return this};hx=/[^+/0-9A-Za-z-_]/g;lx=function(){let J=Array(256);for(let I=0;I<16;++I){let Y=I*16;for(let W=0;W<16;++W)J[Y+W]="0123456789abcdef"[I]+"0123456789abcdef"[W]}return J}();dx=sV("resolveObjectURL"),ox=sV("isUtf8"),rx=sV("transcode"),tx=n0});var qQ={};w6(qQ,{types:()=>Yw,promisify:()=>qS,log:()=>RS,isUndefined:()=>PQ,isSymbol:()=>Zw,isString:()=>L8,isRegExp:()=>O8,isPrimitive:()=>zw,isObject:()=>_Q,isNumber:()=>TS,isNullOrUndefined:()=>Gw,isNull:()=>D8,isFunction:()=>H8,isError:()=>V8,isDate:()=>JH,isBuffer:()=>Kw,isBoolean:()=>IH,isArray:()=>CS,inspect:()=>JI,inherits:()=>PS,format:()=>XH,deprecate:()=>sx,default:()=>Vw,debuglog:()=>ex,callbackifyOnRejected:()=>GH,callbackify:()=>SS,_extend:()=>YH,TextEncoder:()=>jS,TextDecoder:()=>ES});function XH(J,...I){if(!L8(J)){var Y=[J];for(var W=0;W<I.length;W++)Y.push(JI(I[W]));return Y.join(" ")}var W=0,X=I.length,K=String(J).replace(ax,function(L){if(L==="%%")return"%";if(W>=X)return L;switch(L){case"%s":return String(I[W++]);case"%d":return Number(I[W++]);case"%j":try{return JSON.stringify(I[W++])}catch(E){return"[Circular]"}default:return L}});for(var Z=I[W];W<X;Z=I[++W])if(D8(Z)||!_Q(Z))K+=" "+Z;else K+=" "+JI(Z);return K}function sx(J,I){if(typeof process>"u"||process?.noDeprecation===!0)return J;var Y=!1;function W(...X){if(!Y){if(process.throwDeprecation)throw Error(I);else if(process.traceDeprecation)console.trace(I);else console.error(I);Y=!0}return J.apply(this,...X)}return W}function $w(J,I){var Y=JI.styles[I];if(Y)return"\x1B["+JI.colors[Y][0]+"m"+J+"\x1B["+JI.colors[Y][1]+"m";else return J}function Uw(J,I){return J}function Jw(J){var I={};return J.forEach(function(Y,W){I[Y]=!0}),I}function F8(J,I,Y){if(J.customInspect&&I&&H8(I.inspect)&&I.inspect!==JI&&!(I.constructor&&I.constructor.prototype===I)){var W=I.inspect(Y,J);if(!L8(W))W=F8(J,W,Y);return W}var X=Xw(J,I);if(X)return X;var K=Object.keys(I),Z=Jw(K);if(J.showHidden)K=Object.getOwnPropertyNames(I);if(V8(I)&&(K.indexOf("message")>=0||K.indexOf("description")>=0))return eV(I);if(K.length===0){if(H8(I)){var L=I.name?": "+I.name:"";return J.stylize("[Function"+L+"]","special")}if(O8(I))return J.stylize(RegExp.prototype.toString.call(I),"regexp");if(JH(I))return J.stylize(Date.prototype.toString.call(I),"date");if(V8(I))return eV(I)}var E="",_=!1,S=["{","}"];if(CS(I))_=!0,S=["[","]"];if(H8(I)){var A=I.name?": "+I.name:"";E=" [Function"+A+"]"}if(O8(I))E=" "+RegExp.prototype.toString.call(I);if(JH(I))E=" "+Date.prototype.toUTCString.call(I);if(V8(I))E=" "+eV(I);if(K.length===0&&(!_||I.length==0))return S[0]+E+S[1];if(Y<0)if(O8(I))return J.stylize(RegExp.prototype.toString.call(I),"regexp");else return J.stylize("[Object]","special");J.seen.push(I);var q;if(_)q=Iw(J,I,Y,Z,K);else q=K.map(function(B){return UH(J,I,Y,Z,B,_)});return J.seen.pop(),Qw(q,E,S)}function Xw(J,I){if(PQ(I))return J.stylize("undefined","undefined");if(L8(I)){var Y="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(Y,"string")}if(TS(I))return J.stylize(""+I,"number");if(IH(I))return J.stylize(""+I,"boolean");if(D8(I))return J.stylize("null","null")}function eV(J){return"["+Error.prototype.toString.call(J)+"]"}function Iw(J,I,Y,W,X){var K=[];for(var Z=0,L=I.length;Z<L;++Z)if(_S(I,String(Z)))K.push(UH(J,I,Y,W,String(Z),!0));else K.push("");return X.forEach(function(E){if(!E.match(/^\d+$/))K.push(UH(J,I,Y,W,E,!0))}),K}function UH(J,I,Y,W,X,K){var Z,L,E;if(E=Object.getOwnPropertyDescriptor(I,X)||{value:I[X]},E.get)if(E.set)L=J.stylize("[Getter/Setter]","special");else L=J.stylize("[Getter]","special");else if(E.set)L=J.stylize("[Setter]","special");if(!_S(W,X))Z="["+X+"]";if(!L)if(J.seen.indexOf(E.value)<0){if(D8(Y))L=F8(J,E.value,null);else L=F8(J,E.value,Y-1);if(L.indexOf(`
|
|
231
|
+
`)>-1)if(K)L=L.split(`
|
|
232
|
+
`).map(function(_){return" "+_}).join(`
|
|
233
|
+
`).slice(2);else L=`
|
|
234
|
+
`+L.split(`
|
|
235
|
+
`).map(function(_){return" "+_}).join(`
|
|
236
|
+
`)}else L=J.stylize("[Circular]","special");if(PQ(Z)){if(K&&X.match(/^\d+$/))return L;if(Z=JSON.stringify(""+X),Z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))Z=Z.slice(1,-1),Z=J.stylize(Z,"name");else Z=Z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Z=J.stylize(Z,"string")}return Z+": "+L}function Qw(J,I,Y){var W=0,X=J.reduce(function(K,Z){if(W++,Z.indexOf(`
|
|
237
|
+
`)>=0)W++;return K+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(X>60)return Y[0]+(I===""?"":I+`
|
|
238
|
+
`)+" "+J.join(`,
|
|
239
|
+
`)+" "+Y[1];return Y[0]+I+" "+J.join(", ")+" "+Y[1]}function CS(J){return Array.isArray(J)}function IH(J){return typeof J==="boolean"}function D8(J){return J===null}function Gw(J){return J==null}function TS(J){return typeof J==="number"}function L8(J){return typeof J==="string"}function Zw(J){return typeof J==="symbol"}function PQ(J){return J===void 0}function O8(J){return _Q(J)&&QH(J)==="[object RegExp]"}function _Q(J){return typeof J==="object"&&J!==null}function JH(J){return _Q(J)&&QH(J)==="[object Date]"}function V8(J){return _Q(J)&&(QH(J)==="[object Error]"||J instanceof Error)}function H8(J){return typeof J==="function"}function zw(J){return J===null||typeof J==="boolean"||typeof J==="number"||typeof J==="string"||typeof J==="symbol"||typeof J>"u"}function Kw(J){return J instanceof Buffer}function QH(J){return Object.prototype.toString.call(J)}function $H(J){return J<10?"0"+J.toString(10):J.toString(10)}function Ow(){var J=new Date,I=[$H(J.getHours()),$H(J.getMinutes()),$H(J.getSeconds())].join(":");return[J.getDate(),Ww[J.getMonth()],I].join(" ")}function RS(...J){console.log("%s - %s",Ow(),XH.apply(null,J))}function PS(J,I){if(I)J.super_=I,J.prototype=Object.create(I.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}})}function YH(J,I){if(!I||!_Q(I))return J;var Y=Object.keys(I),W=Y.length;while(W--)J[Y[W]]=I[Y[W]];return J}function _S(J,I){return Object.prototype.hasOwnProperty.call(J,I)}function GH(J,I){if(!J){var Y=Error("Promise was rejected with a falsy value");Y.reason=J,J=Y}return I(J)}function SS(J){if(typeof J!=="function")throw TypeError('The "original" argument must be of type Function');function I(...Y){var W=Y.pop();if(typeof W!=="function")throw TypeError("The last argument must be of type Function");var X=this,K=function(...Z){return W.apply(X,...Z)};J.apply(this,Y).then(function(Z){process.nextTick(K.bind(null,null,Z))},function(Z){process.nextTick(GH.bind(null,Z,K))})}return Object.setPrototypeOf(I,Object.getPrototypeOf(J)),Object.defineProperties(I,Object.getOwnPropertyDescriptors(J)),I}var ax,ex,JI,Yw=()=>{},Ww,qS,jS,ES,Vw;var SQ=CQ(()=>{ax=/%[sdj%]/g;ex=((J={},I={},Y)=>((Y=typeof process<"u"&&!1)&&(Y=Y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),I=new RegExp("^"+Y+"$","i"),(W)=>{if(W=W.toUpperCase(),!J[W])if(I.test(W))J[W]=function(...X){console.error("%s: %s",W,pid,XH.apply(null,...X))};else J[W]=function(){};return J[W]}))(),JI=((J)=>(J.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]},J.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},J.custom=Symbol.for("nodejs.util.inspect.custom"),J))(function(J,I,...Y){var W={seen:[],stylize:Uw};if(Y.length>=1)W.depth=Y[0];if(Y.length>=2)W.colors=Y[1];if(IH(I))W.showHidden=I;else if(I)YH(W,I);if(PQ(W.showHidden))W.showHidden=!1;if(PQ(W.depth))W.depth=2;if(PQ(W.colors))W.colors=!1;if(W.colors)W.stylize=$w;return F8(W,J,W.depth)});Ww=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];qS=((J)=>(J.custom=Symbol.for("nodejs.util.promisify.custom"),J))(function(J){if(typeof J!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&J[kCustomPromisifiedSymbol]){var I=J[kCustomPromisifiedSymbol];if(typeof I!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty(I,kCustomPromisifiedSymbol,{value:I,enumerable:!1,writable:!1,configurable:!0}),I}function I(...Y){var W,X,K=new Promise(function(Z,L){W=Z,X=L});Y.push(function(Z,L){if(Z)X(Z);else W(L)});try{J.apply(this,Y)}catch(Z){X(Z)}return K}if(Object.setPrototypeOf(I,Object.getPrototypeOf(J)),kCustomPromisifiedSymbol)Object.defineProperty(I,kCustomPromisifiedSymbol,{value:I,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(I,Object.getOwnPropertyDescriptors(J))});({TextEncoder:jS,TextDecoder:ES}=globalThis),Vw={TextEncoder:jS,TextDecoder:ES,promisify:qS,log:RS,inherits:PS,_extend:YH,callbackifyOnRejected:GH,callbackify:SS}});var EQ={};w6(EQ,{setMaxListeners:()=>uS,once:()=>yS,listenerCount:()=>hS,init:()=>XX,getMaxListeners:()=>pS,getEventListeners:()=>bS,default:()=>Rw,captureRejectionSymbol:()=>gS,addAbortListener:()=>mS,EventEmitter:()=>XX});function xS(J,I){var{_events:Y}=J;if(I[0]??=Error("Unhandled error."),!Y)throw I[0];var W=Y[kS];if(W)for(var X of vS.call(W))X.apply(J,I);var K=Y.error;if(!K)throw I[0];for(var X of vS.call(K))X.apply(J,I);return!0}function Dw(J,I,Y,W){I.then(void 0,function(X){queueMicrotask(()=>Lw(J,X,Y,W))})}function Lw(J,I,Y,W){if(typeof J[BS]==="function")J[BS](I,Y,...W);else try{J[XI]=!1,J.emit("error",I)}finally{J[XI]=!0}}function wS(J,I,Y){Y.warned=!0;let W=Error(`Possible EventEmitter memory leak detected. ${Y.length} ${String(I)} listeners added to [${J.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);W.name="MaxListenersExceededWarning",W.emitter=J,W.type=I,W.count=Y.length,console.warn(W)}function fS(J,I,...Y){this.removeListener(J,I),I.apply(this,Y)}function yS(J,I,Y){var W=Y?.signal;if(cS(W,"options.signal"),W?.aborted)throw new ZH(void 0,{cause:W?.reason});let{resolve:X,reject:K,promise:Z}=$newPromiseCapability(Promise),L=(S)=>{if(J.removeListener(I,E),W!=null)M8(W,"abort",_);K(S)},E=(...S)=>{if(typeof J.removeListener==="function")J.removeListener("error",L);if(W!=null)M8(W,"abort",_);X(S)};if(NS(J,I,E,{once:!0}),I!=="error"&&typeof J.once==="function")J.once("error",L);function _(){M8(J,I,E),M8(J,"error",L),K(new ZH(void 0,{cause:W?.reason}))}if(W!=null)NS(W,"abort",_,{once:!0});return Z}function bS(J,I){return J.listeners(I)}function uS(J,...I){KH(J,"setMaxListeners",0);var Y;if(I&&(Y=I.length))for(let W=0;W<Y;W++)I[W].setMaxListeners(J);else II=J}function hS(J,I){return J.listenerCount(I)}function M8(J,I,Y,W){if(typeof J.removeListener==="function")J.removeListener(I,Y);else J.removeEventListener(I,Y,W)}function NS(J,I,Y,W){if(typeof J.on==="function")if(W.once)J.once(I,Y);else J.on(I,Y);else J.addEventListener(I,Y,W)}function jQ(J,I,Y){let W=TypeError(`The "${J}" argument must be of type ${I}. Received ${Y}`);return W.code="ERR_INVALID_ARG_TYPE",W}function Cw(J,I,Y){let W=RangeError(`The "${J}" argument is out of range. It must be ${I}. Received ${Y}`);return W.code="ERR_OUT_OF_RANGE",W}function cS(J,I){if(J!==void 0&&(J===null||typeof J!=="object"||!("aborted"in J)))throw jQ(I,"AbortSignal",J)}function KH(J,I,Y,W){if(typeof J!=="number")throw jQ(I,"number",J);if(Y!=null&&J<Y||W!=null&&J>W||(Y!=null||W!=null)&&Number.isNaN(J))throw Cw(I,`${Y!=null?`>= ${Y}`:""}${Y!=null&&W!=null?" && ":""}${W!=null?`<= ${W}`:""}`,J)}function sG(J){if(typeof J!=="function")throw TypeError("The listener must be a function")}function Tw(J,I){if(typeof J!=="boolean")throw jQ(I,"boolean",J)}function pS(J){return J?._maxListeners??II}function mS(J,I){if(J===void 0)throw jQ("signal","AbortSignal",J);if(cS(J,"signal"),typeof I!=="function")throw jQ("listener","function",I);let Y;if(J.aborted)queueMicrotask(()=>I());else J.addEventListener("abort",I,{__proto__:null,once:!0}),Y=()=>{J.removeEventListener("abort",I)};return{__proto__:null,[Symbol.dispose](){Y?.()}}}var zH,XI,kS,Hw,Fw,BS,gS,vS,II=10,XX=function(J){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[XI]=J?.captureRejections?Boolean(J?.captureRejections):BU[XI])this.emit=Aw},BU,Mw=function(J,...I){if(J==="error")return xS(this,I);var{_events:Y}=this;if(Y===void 0)return!1;var W=Y[J];if(W===void 0)return!1;let X=W.length>1?W.slice():W;for(let K=0,{length:Z}=X;K<Z;K++){let L=X[K];switch(I.length){case 0:L.call(this);break;case 1:L.call(this,I[0]);break;case 2:L.call(this,I[0],I[1]);break;case 3:L.call(this,I[0],I[1],I[2]);break;default:L.apply(this,I);break}}return!0},Aw=function(J,...I){if(J==="error")return xS(this,I);var{_events:Y}=this;if(Y===void 0)return!1;var W=Y[J];if(W===void 0)return!1;let X=W.length>1?W.slice():W;for(let K=0,{length:Z}=X;K<Z;K++){let L=X[K],E;switch(I.length){case 0:E=L.call(this);break;case 1:E=L.call(this,I[0]);break;case 2:E=L.call(this,I[0],I[1]);break;case 3:E=L.call(this,I[0],I[1],I[2]);break;default:E=L.apply(this,I);break}if(E!==void 0&&typeof E?.then==="function"&&E.then===Promise.prototype.then)Dw(this,E,J,I)}return!0},ZH,Rw;var BQ=CQ(()=>{zH=Symbol.for,XI=Symbol("kCapture"),kS=zH("events.errorMonitor"),Hw=Symbol("events.maxEventTargetListeners"),Fw=Symbol("events.maxEventTargetListenersWarned"),BS=zH("nodejs.rejection"),gS=zH("nodejs.rejection"),vS=Array.prototype.slice,BU=XX.prototype={};BU._events=void 0;BU._eventsCount=0;BU._maxListeners=void 0;BU.setMaxListeners=function(J){return KH(J,"setMaxListeners",0),this._maxListeners=J,this};BU.constructor=XX;BU.getMaxListeners=function(){return this?._maxListeners??II};BU.emit=Mw;BU.addListener=function(J,I){sG(I);var Y=this._events;if(!Y)Y=this._events={__proto__:null},this._eventsCount=0;else if(Y.newListener)this.emit("newListener",J,I.listener??I);var W=Y[J];if(!W)Y[J]=[I],this._eventsCount++;else{W.push(I);var X=this._maxListeners??II;if(X>0&&W.length>X&&!W.warned)wS(this,J,W)}return this};BU.on=BU.addListener;BU.prependListener=function(J,I){sG(I);var Y=this._events;if(!Y)Y=this._events={__proto__:null},this._eventsCount=0;else if(Y.newListener)this.emit("newListener",J,I.listener??I);var W=Y[J];if(!W)Y[J]=[I],this._eventsCount++;else{W.unshift(I);var X=this._maxListeners??II;if(X>0&&W.length>X&&!W.warned)wS(this,J,W)}return this};BU.once=function(J,I){sG(I);let Y=fS.bind(this,J,I);return Y.listener=I,this.addListener(J,Y),this};BU.prependOnceListener=function(J,I){sG(I);let Y=fS.bind(this,J,I);return Y.listener=I,this.prependListener(J,Y),this};BU.removeListener=function(J,I){sG(I);var{_events:Y}=this;if(!Y)return this;var W=Y[J];if(!W)return this;var X=W.length;let K=-1;for(let Z=X-1;Z>=0;Z--)if(W[Z]===I||W[Z].listener===I){K=Z;break}if(K<0)return this;if(K===0)W.shift();else W.splice(K,1);if(W.length===0)delete Y[J],this._eventsCount--;return this};BU.off=BU.removeListener;BU.removeAllListeners=function(J){var{_events:I}=this;if(J&&I){if(I[J])delete I[J],this._eventsCount--}else this._events={__proto__:null};return this};BU.listeners=function(J){var{_events:I}=this;if(!I)return[];var Y=I[J];if(!Y)return[];return Y.map((W)=>W.listener??W)};BU.rawListeners=function(J){var{_events:I}=this;if(!I)return[];var Y=I[J];if(!Y)return[];return Y.slice()};BU.listenerCount=function(J){var{_events:I}=this;if(!I)return 0;return I[J]?.length??0};BU.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};BU[XI]=!1;ZH=class ZH extends Error{constructor(J="The operation was aborted",I=void 0){if(I!==void 0&&typeof I!=="object")throw jQ("options","Object",I);super(J,I);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(XX,{captureRejections:{get(){return BU[XI]},set(J){Tw(J,"EventEmitter.captureRejections"),BU[XI]=J},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return II},set:(J)=>{KH(J,"defaultMaxListeners",0),II=J}},kMaxEventTargetListeners:{value:Hw,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:Fw,enumerable:!1,configurable:!1,writable:!1}});Object.assign(XX,{once:yS,getEventListeners:bS,getMaxListeners:pS,setMaxListeners:uS,EventEmitter:XX,usingDomains:!1,captureRejectionSymbol:gS,errorMonitor:kS,addAbortListener:mS,init:XX,listenerCount:hS});Rw=XX});var NQ=UX((xn,aS)=>{var IU=(J,I)=>()=>(I||J((I={exports:{}}).exports,I),I.exports),yU=IU((J,I)=>{class Y extends Error{constructor(W){if(!Array.isArray(W))throw TypeError(`Expected input to be an Array, got ${typeof W}`);let X="";for(let K=0;K<W.length;K++)X+=` ${W[K].stack}
|
|
240
|
+
`;super(X);this.name="AggregateError",this.errors=W}}I.exports={AggregateError:Y,ArrayIsArray(W){return Array.isArray(W)},ArrayPrototypeIncludes(W,X){return W.includes(X)},ArrayPrototypeIndexOf(W,X){return W.indexOf(X)},ArrayPrototypeJoin(W,X){return W.join(X)},ArrayPrototypeMap(W,X){return W.map(X)},ArrayPrototypePop(W,X){return W.pop(X)},ArrayPrototypePush(W,X){return W.push(X)},ArrayPrototypeSlice(W,X,K){return W.slice(X,K)},Error,FunctionPrototypeCall(W,X,...K){return W.call(X,...K)},FunctionPrototypeSymbolHasInstance(W,X){return Function.prototype[Symbol.hasInstance].call(W,X)},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(W,X){return Object.defineProperties(W,X)},ObjectDefineProperty(W,X,K){return Object.defineProperty(W,X,K)},ObjectGetOwnPropertyDescriptor(W,X){return Object.getOwnPropertyDescriptor(W,X)},ObjectKeys(W){return Object.keys(W)},ObjectSetPrototypeOf(W,X){return Object.setPrototypeOf(W,X)},Promise,PromisePrototypeCatch(W,X){return W.catch(X)},PromisePrototypeThen(W,X,K){return W.then(X,K)},PromiseReject(W){return Promise.reject(W)},PromiseResolve(W){return Promise.resolve(W)},ReflectApply:Reflect.apply,RegExpPrototypeTest(W,X){return W.test(X)},SafeSet:Set,String,StringPrototypeSlice(W,X,K){return W.slice(X,K)},StringPrototypeToLowerCase(W){return W.toLowerCase()},StringPrototypeToUpperCase(W){return W.toUpperCase()},StringPrototypeTrim(W){return W.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(W,X,K){return W.set(X,K)},Boolean,Uint8Array}}),lS=IU((J,I)=>{I.exports={format(Y,...W){return Y.replace(/%([sdifj])/g,function(...[X,K]){let Z=W.shift();if(K==="f")return Z.toFixed(6);else if(K==="j")return JSON.stringify(Z);else if(K==="s"&&typeof Z==="object")return`${Z.constructor!==Object?Z.constructor.name:""} {}`.trim();else return Z.toString()})},inspect(Y){switch(typeof Y){case"string":if(Y.includes("'")){if(!Y.includes('"'))return`"${Y}"`;else if(!Y.includes("`")&&!Y.includes("${"))return`\`${Y}\``}return`'${Y}'`;case"number":if(isNaN(Y))return"NaN";else if(Object.is(Y,-0))return String(Y);return Y;case"bigint":return`${String(Y)}n`;case"boolean":case"undefined":return String(Y);case"object":return"{}"}}}}),f6=IU((J,I)=>{var{format:Y,inspect:W}=lS(),{AggregateError:X}=yU(),K=globalThis.AggregateError||X,Z=Symbol("kIsNodeError"),L=["string","function","number","object","Function","Object","boolean","bigint","symbol"],E=/^([A-Z][a-z0-9]*)+$/,_={};function S(u,g){if(!u)throw new _.ERR_INTERNAL_ASSERTION(g)}function A(u){let g="",b=u.length,p=u[0]==="-"?1:0;for(;b>=p+4;b-=3)g=`_${u.slice(b-3,b)}${g}`;return`${u.slice(0,b)}${g}`}function q(u,g,b){if(typeof g==="function")return S(g.length<=b.length,`Code: ${u}; The provided arguments length (${b.length}) does not match the required ones (${g.length}).`),g(...b);let p=(g.match(/%[dfijoOs]/g)||[]).length;if(S(p===b.length,`Code: ${u}; The provided arguments length (${b.length}) does not match the required ones (${p}).`),b.length===0)return g;return Y(g,...b)}function B(u,g,b){if(!b)b=Error;class p extends b{constructor(...n){super(q(u,g,n))}toString(){return`${this.name} [${u}]: ${this.message}`}}Object.defineProperties(p.prototype,{name:{value:b.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${u}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),p.prototype.code=u,p.prototype[Z]=!0,_[u]=p}function N(u){let g="__node_internal_"+u.name;return Object.defineProperty(u,"name",{value:g}),u}function f(u,g){if(u&&g&&u!==g){if(Array.isArray(g.errors))return g.errors.push(u),g;let b=new K([g,u],g.message);return b.code=g.code,b}return u||g}class w extends Error{constructor(u="The operation was aborted",g=void 0){if(g!==void 0&&typeof g!=="object")throw new _.ERR_INVALID_ARG_TYPE("options","Object",g);super(u,g);this.code="ABORT_ERR",this.name="AbortError"}}B("ERR_ASSERTION","%s",Error),B("ERR_INVALID_ARG_TYPE",(u,g,b)=>{if(S(typeof u==="string","'name' must be a string"),!Array.isArray(g))g=[g];let p="The ";if(u.endsWith(" argument"))p+=`${u} `;else p+=`"${u}" ${u.includes(".")?"property":"argument"} `;p+="must be ";let n=[],a=[],D0=[];for(let S0 of g)if(S(typeof S0==="string","All expected entries have to be of type string"),L.includes(S0))n.push(S0.toLowerCase());else if(E.test(S0))a.push(S0);else S(S0!=="object",'The value "object" should be written as "Object"'),D0.push(S0);if(a.length>0){let S0=n.indexOf("object");if(S0!==-1)n.splice(n,S0,1),a.push("Object")}if(n.length>0){switch(n.length){case 1:p+=`of type ${n[0]}`;break;case 2:p+=`one of type ${n[0]} or ${n[1]}`;break;default:{let S0=n.pop();p+=`one of type ${n.join(", ")}, or ${S0}`}}if(a.length>0||D0.length>0)p+=" or "}if(a.length>0){switch(a.length){case 1:p+=`an instance of ${a[0]}`;break;case 2:p+=`an instance of ${a[0]} or ${a[1]}`;break;default:{let S0=a.pop();p+=`an instance of ${a.join(", ")}, or ${S0}`}}if(D0.length>0)p+=" or "}switch(D0.length){case 0:break;case 1:if(D0[0].toLowerCase()!==D0[0])p+="an ";p+=`${D0[0]}`;break;case 2:p+=`one of ${D0[0]} or ${D0[1]}`;break;default:{let S0=D0.pop();p+=`one of ${D0.join(", ")}, or ${S0}`}}if(b==null)p+=`. Received ${b}`;else if(typeof b==="function"&&b.name)p+=`. Received function ${b.name}`;else if(typeof b==="object"){var M0;if((M0=b.constructor)!==null&&M0!==void 0&&M0.name)p+=`. Received an instance of ${b.constructor.name}`;else{let S0=W(b,{depth:-1});p+=`. Received ${S0}`}}else{let S0=W(b,{colors:!1});if(S0.length>25)S0=`${S0.slice(0,25)}...`;p+=`. Received type ${typeof b} (${S0})`}return p},TypeError),B("ERR_INVALID_ARG_VALUE",(u,g,b="is invalid")=>{let p=W(g);if(p.length>128)p=p.slice(0,128)+"...";return`The ${u.includes(".")?"property":"argument"} '${u}' ${b}. Received ${p}`},TypeError),B("ERR_INVALID_RETURN_VALUE",(u,g,b)=>{var p;let n=b!==null&&b!==void 0&&(p=b.constructor)!==null&&p!==void 0&&p.name?`instance of ${b.constructor.name}`:`type ${typeof b}`;return`Expected ${u} to be returned from the "${g}" function but got ${n}.`},TypeError),B("ERR_MISSING_ARGS",(...u)=>{S(u.length>0,"At least one arg needs to be specified");let g,b=u.length;switch(u=(Array.isArray(u)?u:[u]).map((p)=>`"${p}"`).join(" or "),b){case 1:g+=`The ${u[0]} argument`;break;case 2:g+=`The ${u[0]} and ${u[1]} arguments`;break;default:{let p=u.pop();g+=`The ${u.join(", ")}, and ${p} arguments`}break}return`${g} must be specified`},TypeError),B("ERR_OUT_OF_RANGE",(u,g,b)=>{S(g,'Missing "range" argument');let p;if(Number.isInteger(b)&&Math.abs(b)>4294967296)p=A(String(b));else if(typeof b==="bigint"){p=String(b);let n=BigInt(2)**BigInt(32);if(b>n||b<-n)p=A(p);p+="n"}else p=W(b);return`The value of "${u}" is out of range. It must be ${g}. Received ${p}`},RangeError),B("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),B("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),B("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),B("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),B("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),B("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),B("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),B("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),B("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),B("ERR_STREAM_WRITE_AFTER_END","write after end",Error),B("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),I.exports={AbortError:w,aggregateTwoErrors:N(f),hideStackFrames:N,codes:_}}),Pw=IU((J,I)=>{Object.defineProperty(J,"__esModule",{value:!0});var Y=new WeakMap,W=new WeakMap;function X(t){let R0=Y.get(t);return console.assert(R0!=null,"'this' is expected an Event object, but got",t),R0}function K(t){if(t.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}if(!t.event.cancelable)return;if(t.canceled=!0,typeof t.event.preventDefault==="function")t.event.preventDefault()}function Z(t,R0){Y.set(this,{eventTarget:t,event:R0,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:R0.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let G=Object.keys(R0);for(let V=0;V<G.length;++V){let D=G[V];if(!(D in this))Object.defineProperty(this,D,L(D))}}if(Z.prototype={get type(){return X(this).event.type},get target(){return X(this).eventTarget},get currentTarget(){return X(this).currentTarget},composedPath(){let t=X(this).currentTarget;if(t==null)return[];return[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return X(this).eventPhase},stopPropagation(){let t=X(this);if(t.stopped=!0,typeof t.event.stopPropagation==="function")t.event.stopPropagation()},stopImmediatePropagation(){let t=X(this);if(t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation==="function")t.event.stopImmediatePropagation()},get bubbles(){return Boolean(X(this).event.bubbles)},get cancelable(){return Boolean(X(this).event.cancelable)},preventDefault(){K(X(this))},get defaultPrevented(){return X(this).canceled},get composed(){return Boolean(X(this).event.composed)},get timeStamp(){return X(this).timeStamp},get srcElement(){return X(this).eventTarget},get cancelBubble(){return X(this).stopped},set cancelBubble(t){if(!t)return;let R0=X(this);if(R0.stopped=!0,typeof R0.event.cancelBubble==="boolean")R0.event.cancelBubble=!0},get returnValue(){return!X(this).canceled},set returnValue(t){if(!t)K(X(this))},initEvent(){}},Object.defineProperty(Z.prototype,"constructor",{value:Z,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(Z.prototype,window.Event.prototype),W.set(window.Event.prototype,Z);function L(t){return{get(){return X(this).event[t]},set(R0){X(this).event[t]=R0},configurable:!0,enumerable:!0}}function E(t){return{value(){let R0=X(this).event;return R0[t].apply(R0,arguments)},configurable:!0,enumerable:!0}}function _(t,R0){let G=Object.keys(R0);if(G.length===0)return t;function V(D,O){t.call(this,D,O)}V.prototype=Object.create(t.prototype,{constructor:{value:V,configurable:!0,writable:!0}});for(let D=0;D<G.length;++D){let O=G[D];if(!(O in t.prototype)){let F=typeof Object.getOwnPropertyDescriptor(R0,O).value==="function";Object.defineProperty(V.prototype,O,F?E(O):L(O))}}return V}function S(t){if(t==null||t===Object.prototype)return Z;let R0=W.get(t);if(R0==null)R0=_(S(Object.getPrototypeOf(t)),t),W.set(t,R0);return R0}function A(t,R0){return new(S(Object.getPrototypeOf(R0)))(t,R0)}function q(t){return X(t).immediateStopped}function B(t,R0){X(t).eventPhase=R0}function N(t,R0){X(t).currentTarget=R0}function f(t,R0){X(t).passiveListener=R0}var w=new WeakMap,u=1,g=2,b=3;function p(t){return t!==null&&typeof t==="object"}function n(t){let R0=w.get(t);if(R0==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return R0}function a(t){return{get(){let R0=n(this).get(t);while(R0!=null){if(R0.listenerType===b)return R0.listener;R0=R0.next}return null},set(R0){if(typeof R0!=="function"&&!p(R0))R0=null;let G=n(this),V=null,D=G.get(t);while(D!=null){if(D.listenerType===b)if(V!==null)V.next=D.next;else if(D.next!==null)G.set(t,D.next);else G.delete(t);else V=D;D=D.next}if(R0!==null){let O={listener:R0,listenerType:b,passive:!1,once:!1,next:null};if(V===null)G.set(t,O);else V.next=O}},configurable:!0,enumerable:!0}}function D0(t,R0){Object.defineProperty(t,`on${R0}`,a(R0))}function M0(t){function R0(){S0.call(this)}R0.prototype=Object.create(S0.prototype,{constructor:{value:R0,configurable:!0,writable:!0}});for(let G=0;G<t.length;++G)D0(R0.prototype,t[G]);return R0}function S0(){if(this instanceof S0){w.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return M0(arguments[0]);if(arguments.length>0){let t=Array(arguments.length);for(let R0=0;R0<arguments.length;++R0)t[R0]=arguments[R0];return M0(t)}throw TypeError("Cannot call a class as a function")}if(S0.prototype={addEventListener(t,R0,G){if(R0==null)return;if(typeof R0!=="function"&&!p(R0))throw TypeError("'listener' should be a function or an object.");let V=n(this),D=p(G),O=(D?Boolean(G.capture):Boolean(G))?u:g,F={listener:R0,listenerType:O,passive:D&&Boolean(G.passive),once:D&&Boolean(G.once),next:null},R=V.get(t);if(R===void 0){V.set(t,F);return}let j=null;while(R!=null){if(R.listener===R0&&R.listenerType===O)return;j=R,R=R.next}j.next=F},removeEventListener(t,R0,G){if(R0==null)return;let V=n(this),D=(p(G)?Boolean(G.capture):Boolean(G))?u:g,O=null,F=V.get(t);while(F!=null){if(F.listener===R0&&F.listenerType===D){if(O!==null)O.next=F.next;else if(F.next!==null)V.set(t,F.next);else V.delete(t);return}O=F,F=F.next}},dispatchEvent(t){if(t==null||typeof t.type!=="string")throw TypeError('"event.type" should be a string.');let R0=n(this),G=t.type,V=R0.get(G);if(V==null)return!0;let D=A(this,t),O=null;while(V!=null){if(V.once)if(O!==null)O.next=V.next;else if(V.next!==null)R0.set(G,V.next);else R0.delete(G);else O=V;if(f(D,V.passive?V.listener:null),typeof V.listener==="function")try{V.listener.call(this,D)}catch(F){if(typeof console<"u"&&typeof console.error==="function")console.error(F)}else if(V.listenerType!==b&&typeof V.listener.handleEvent==="function")V.listener.handleEvent(D);if(q(D))break;V=V.next}return f(D,null),B(D,0),N(D,null),!D.defaultPrevented}},Object.defineProperty(S0.prototype,"constructor",{value:S0,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(S0.prototype,window.EventTarget.prototype);J.defineEventAttribute=D0,J.EventTarget=S0,J.default=S0,I.exports=S0,I.exports.EventTarget=I.exports.default=S0,I.exports.defineEventAttribute=D0}),eG=IU((J,I)=>{Object.defineProperty(J,"__esModule",{value:!0});var Y=Pw();class W extends Y.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let S=Z.get(this);if(typeof S!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return S}}Y.defineEventAttribute(W.prototype,"abort");function X(){let S=Object.create(W.prototype);return Y.EventTarget.call(S),Z.set(S,!1),S}function K(S){if(Z.get(S)!==!1)return;Z.set(S,!0),S.dispatchEvent({type:"abort"})}var Z=new WeakMap;if(Object.defineProperties(W.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(W.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class L{constructor(){E.set(this,X())}get signal(){return _(this)}abort(){K(_(this))}}var E=new WeakMap;function _(S){let A=E.get(S);if(A==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${S===null?"null":typeof S}`);return A}if(Object.defineProperties(L.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(L.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});J.AbortController=L,J.AbortSignal=W,J.default=L,I.exports=L,I.exports.AbortController=I.exports.default=L,I.exports.AbortSignal=W}),a6=IU((J,I)=>{var Y=(iU(),E$(oU)),{format:W,inspect:X}=lS(),{codes:{ERR_INVALID_ARG_TYPE:K}}=f6(),{kResistStopPropagation:Z,AggregateError:L,SymbolDispose:E}=yU(),_=globalThis.AbortSignal||eG().AbortSignal,S=globalThis.AbortController||eG().AbortController,A=Object.getPrototypeOf(async function(){}).constructor,q=globalThis.Blob||Y.Blob,B=typeof q<"u"?function(w){return w instanceof q}:function(w){return!1},N=(w,u)=>{if(w!==void 0&&(w===null||typeof w!=="object"||!("aborted"in w)))throw new K(u,"AbortSignal",w)},f=(w,u)=>{if(typeof w!=="function")throw new K(u,"Function",w)};I.exports={AggregateError:L,kEmptyObject:Object.freeze({}),once(w){let u=!1;return function(...g){if(u)return;u=!0,w.apply(this,g)}},createDeferredPromise:function(){let w,u;return{promise:new Promise((g,b)=>{w=g,u=b}),resolve:w,reject:u}},promisify(w){return new Promise((u,g)=>{w((b,...p)=>{if(b)return g(b);return u(...p)})})},debuglog(){return function(){}},format:W,inspect:X,types:{isAsyncFunction(w){return w instanceof A},isArrayBufferView(w){return ArrayBuffer.isView(w)}},isBlob:B,deprecate(w,u){return w},addAbortListener:(BQ(),E$(EQ)).addAbortListener||function(w,u){if(w===void 0)throw new K("signal","AbortSignal",w);N(w,"signal"),f(u,"listener");let g;if(w.aborted)queueMicrotask(()=>u());else w.addEventListener("abort",u,{__proto__:null,once:!0,[Z]:!0}),g=()=>{w.removeEventListener("abort",u)};return{__proto__:null,[E](){var b;(b=g)===null||b===void 0||b()}}},AbortSignalAny:_.any||function(w){if(w.length===1)return w[0];let u=new S,g=()=>u.abort();return w.forEach((b)=>{N(b,"signals"),b.addEventListener("abort",g,{once:!0})}),u.signal.addEventListener("abort",()=>{w.forEach((b)=>b.removeEventListener("abort",g))},{once:!0}),u.signal}},I.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),$2=IU((J,I)=>{var{ArrayIsArray:Y,ArrayPrototypeIncludes:W,ArrayPrototypeJoin:X,ArrayPrototypeMap:K,NumberIsInteger:Z,NumberIsNaN:L,NumberMAX_SAFE_INTEGER:E,NumberMIN_SAFE_INTEGER:_,NumberParseInt:S,ObjectPrototypeHasOwnProperty:A,RegExpPrototypeExec:q,String:B,StringPrototypeToUpperCase:N,StringPrototypeTrim:f}=yU(),{hideStackFrames:w,codes:{ERR_SOCKET_BAD_PORT:u,ERR_INVALID_ARG_TYPE:g,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:p,ERR_UNKNOWN_SIGNAL:n}}=f6(),{normalizeEncoding:a}=a6(),{isAsyncFunction:D0,isArrayBufferView:M0}=a6().types,S0={};function t(J0){return J0===(J0|0)}function R0(J0){return J0===J0>>>0}var G=/^[0-7]+$/,V="must be a 32-bit unsigned integer or an octal string";function D(J0,O0,J$){if(typeof J0>"u")J0=J$;if(typeof J0==="string"){if(q(G,J0)===null)throw new b(O0,J0,V);J0=S(J0,8)}return R(J0,O0),J0}var O=w((J0,O0,J$=_,A0=E)=>{if(typeof J0!=="number")throw new g(O0,"number",J0);if(!Z(J0))throw new p(O0,"an integer",J0);if(J0<J$||J0>A0)throw new p(O0,`>= ${J$} && <= ${A0}`,J0)}),F=w((J0,O0,J$=-2147483648,A0=2147483647)=>{if(typeof J0!=="number")throw new g(O0,"number",J0);if(!Z(J0))throw new p(O0,"an integer",J0);if(J0<J$||J0>A0)throw new p(O0,`>= ${J$} && <= ${A0}`,J0)}),R=w((J0,O0,J$=!1)=>{if(typeof J0!=="number")throw new g(O0,"number",J0);if(!Z(J0))throw new p(O0,"an integer",J0);let A0=J$?1:0,v0=4294967295;if(J0<A0||J0>v0)throw new p(O0,`>= ${A0} && <= ${v0}`,J0)});function j(J0,O0){if(typeof J0!=="string")throw new g(O0,"string",J0)}function C(J0,O0,J$=void 0,A0){if(typeof J0!=="number")throw new g(O0,"number",J0);if(J$!=null&&J0<J$||A0!=null&&J0>A0||(J$!=null||A0!=null)&&L(J0))throw new p(O0,`${J$!=null?`>= ${J$}`:""}${J$!=null&&A0!=null?" && ":""}${A0!=null?`<= ${A0}`:""}`,J0)}var z=w((J0,O0,J$)=>{if(!W(J$,J0)){let A0="must be one of: "+X(K(J$,(v0)=>typeof v0==="string"?`'${v0}'`:B(v0)),", ");throw new b(O0,J0,A0)}});function T(J0,O0){if(typeof J0!=="boolean")throw new g(O0,"boolean",J0)}function x(J0,O0,J$){return J0==null||!A(J0,O0)?J$:J0[O0]}var v=w((J0,O0,J$=null)=>{let A0=x(J$,"allowArray",!1),v0=x(J$,"allowFunction",!1);if(!x(J$,"nullable",!1)&&J0===null||!A0&&Y(J0)||typeof J0!=="object"&&(!v0||typeof J0!=="function"))throw new g(O0,"Object",J0)}),h=w((J0,O0)=>{if(J0!=null&&typeof J0!=="object"&&typeof J0!=="function")throw new g(O0,"a dictionary",J0)}),r=w((J0,O0,J$=0)=>{if(!Y(J0))throw new g(O0,"Array",J0);if(J0.length<J$){let A0=`must be longer than ${J$}`;throw new b(O0,J0,A0)}});function U0(J0,O0){r(J0,O0);for(let J$=0;J$<J0.length;J$++)j(J0[J$],`${O0}[${J$}]`)}function K0(J0,O0){r(J0,O0);for(let J$=0;J$<J0.length;J$++)T(J0[J$],`${O0}[${J$}]`)}function Q0(J0,O0){r(J0,O0);for(let J$=0;J$<J0.length;J$++){let A0=J0[J$],v0=`${O0}[${J$}]`;if(A0==null)throw new g(v0,"AbortSignal",A0);C0(A0,v0)}}function s(J0,O0="signal"){if(j(J0,O0),S0[J0]===void 0){if(S0[N(J0)]!==void 0)throw new n(J0+" (signals must use all capital letters)");throw new n(J0)}}var e=w((J0,O0="buffer")=>{if(!M0(J0))throw new g(O0,["Buffer","TypedArray","DataView"],J0)});function I0(J0,O0){let J$=a(O0),A0=J0.length;if(J$==="hex"&&A0%2!==0)throw new b("encoding",O0,`is invalid for data of length ${A0}`)}function Z0(J0,O0="Port",J$=!0){if(typeof J0!=="number"&&typeof J0!=="string"||typeof J0==="string"&&f(J0).length===0||+J0!==+J0>>>0||J0>65535||J0===0&&!J$)throw new u(O0,J0,J$);return J0|0}var C0=w((J0,O0)=>{if(J0!==void 0&&(J0===null||typeof J0!=="object"||!("aborted"in J0)))throw new g(O0,"AbortSignal",J0)}),$0=w((J0,O0)=>{if(typeof J0!=="function")throw new g(O0,"Function",J0)}),c=w((J0,O0)=>{if(typeof J0!=="function"||D0(J0))throw new g(O0,"Function",J0)}),d=w((J0,O0)=>{if(J0!==void 0)throw new g(O0,"undefined",J0)});function L0(J0,O0,J$){if(!W(J$,J0))throw new g(O0,`('${X(J$,"|")}')`,J0)}var Y0=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function V0(J0,O0){if(typeof J0>"u"||!q(Y0,J0))throw new b(O0,J0,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function k0(J0){if(typeof J0==="string")return V0(J0,"hints"),J0;else if(Y(J0)){let O0=J0.length,J$="";if(O0===0)return J$;for(let A0=0;A0<O0;A0++){let v0=J0[A0];if(V0(v0,"hints"),J$+=v0,A0!==O0-1)J$+=", "}return J$}throw new b("hints",J0,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}I.exports={isInt32:t,isUint32:R0,parseFileMode:D,validateArray:r,validateStringArray:U0,validateBooleanArray:K0,validateAbortSignalArray:Q0,validateBoolean:T,validateBuffer:e,validateDictionary:h,validateEncoding:I0,validateFunction:$0,validateInt32:F,validateInteger:O,validateNumber:C,validateObject:v,validateOneOf:z,validatePlainFunction:c,validatePort:Z0,validateSignalName:s,validateString:j,validateUint32:R,validateUndefined:d,validateUnion:L0,validateAbortSignal:C0,validateLinkHeaderValue:k0}}),QI=IU((J,I)=>{I.exports=globalThis.process}),zJ=IU((J,I)=>{var{SymbolAsyncIterator:Y,SymbolIterator:W,SymbolFor:X}=yU(),K=X("nodejs.stream.destroyed"),Z=X("nodejs.stream.errored"),L=X("nodejs.stream.readable"),E=X("nodejs.stream.writable"),_=X("nodejs.stream.disturbed"),S=X("nodejs.webstream.isClosedPromise"),A=X("nodejs.webstream.controllerErrorFunction");function q(x,v=!1){var h;return!!(x&&typeof x.pipe==="function"&&typeof x.on==="function"&&(!v||typeof x.pause==="function"&&typeof x.resume==="function")&&(!x._writableState||((h=x._readableState)===null||h===void 0?void 0:h.readable)!==!1)&&(!x._writableState||x._readableState))}function B(x){var v;return!!(x&&typeof x.write==="function"&&typeof x.on==="function"&&(!x._readableState||((v=x._writableState)===null||v===void 0?void 0:v.writable)!==!1))}function N(x){return!!(x&&typeof x.pipe==="function"&&x._readableState&&typeof x.on==="function"&&typeof x.write==="function")}function f(x){return x&&(x._readableState||x._writableState||typeof x.write==="function"&&typeof x.on==="function"||typeof x.pipe==="function"&&typeof x.on==="function")}function w(x){return!!(x&&!f(x)&&typeof x.pipeThrough==="function"&&typeof x.getReader==="function"&&typeof x.cancel==="function")}function u(x){return!!(x&&!f(x)&&typeof x.getWriter==="function"&&typeof x.abort==="function")}function g(x){return!!(x&&!f(x)&&typeof x.readable==="object"&&typeof x.writable==="object")}function b(x){return w(x)||u(x)||g(x)}function p(x,v){if(x==null)return!1;if(v===!0)return typeof x[Y]==="function";if(v===!1)return typeof x[W]==="function";return typeof x[Y]==="function"||typeof x[W]==="function"}function n(x){if(!f(x))return null;let{_writableState:v,_readableState:h}=x,r=v||h;return!!(x.destroyed||x[K]||r!==null&&r!==void 0&&r.destroyed)}function a(x){if(!B(x))return null;if(x.writableEnded===!0)return!0;let v=x._writableState;if(v!==null&&v!==void 0&&v.errored)return!1;if(typeof(v===null||v===void 0?void 0:v.ended)!=="boolean")return null;return v.ended}function D0(x,v){if(!B(x))return null;if(x.writableFinished===!0)return!0;let h=x._writableState;if(h!==null&&h!==void 0&&h.errored)return!1;if(typeof(h===null||h===void 0?void 0:h.finished)!=="boolean")return null;return!!(h.finished||v===!1&&h.ended===!0&&h.length===0)}function M0(x){if(!q(x))return null;if(x.readableEnded===!0)return!0;let v=x._readableState;if(!v||v.errored)return!1;if(typeof(v===null||v===void 0?void 0:v.ended)!=="boolean")return null;return v.ended}function S0(x,v){if(!q(x))return null;let h=x._readableState;if(h!==null&&h!==void 0&&h.errored)return!1;if(typeof(h===null||h===void 0?void 0:h.endEmitted)!=="boolean")return null;return!!(h.endEmitted||v===!1&&h.ended===!0&&h.length===0)}function t(x){if(x&&x[L]!=null)return x[L];if(typeof(x===null||x===void 0?void 0:x.readable)!=="boolean")return null;if(n(x))return!1;return q(x)&&x.readable&&!S0(x)}function R0(x){if(x&&x[E]!=null)return x[E];if(typeof(x===null||x===void 0?void 0:x.writable)!=="boolean")return null;if(n(x))return!1;return B(x)&&x.writable&&!a(x)}function G(x,v){if(!f(x))return null;if(n(x))return!0;if((v===null||v===void 0?void 0:v.readable)!==!1&&t(x))return!1;if((v===null||v===void 0?void 0:v.writable)!==!1&&R0(x))return!1;return!0}function V(x){var v,h;if(!f(x))return null;if(x.writableErrored)return x.writableErrored;return(v=(h=x._writableState)===null||h===void 0?void 0:h.errored)!==null&&v!==void 0?v:null}function D(x){var v,h;if(!f(x))return null;if(x.readableErrored)return x.readableErrored;return(v=(h=x._readableState)===null||h===void 0?void 0:h.errored)!==null&&v!==void 0?v:null}function O(x){if(!f(x))return null;if(typeof x.closed==="boolean")return x.closed;let{_writableState:v,_readableState:h}=x;if(typeof(v===null||v===void 0?void 0:v.closed)==="boolean"||typeof(h===null||h===void 0?void 0:h.closed)==="boolean")return(v===null||v===void 0?void 0:v.closed)||(h===null||h===void 0?void 0:h.closed);if(typeof x._closed==="boolean"&&F(x))return x._closed;return null}function F(x){return typeof x._closed==="boolean"&&typeof x._defaultKeepAlive==="boolean"&&typeof x._removedConnection==="boolean"&&typeof x._removedContLen==="boolean"}function R(x){return typeof x._sent100==="boolean"&&F(x)}function j(x){var v;return typeof x._consuming==="boolean"&&typeof x._dumped==="boolean"&&((v=x.req)===null||v===void 0?void 0:v.upgradeOrConnect)===void 0}function C(x){if(!f(x))return null;let{_writableState:v,_readableState:h}=x,r=v||h;return!r&&R(x)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function z(x){var v;return!!(x&&((v=x[_])!==null&&v!==void 0?v:x.readableDidRead||x.readableAborted))}function T(x){var v,h,r,U0,K0,Q0,s,e,I0,Z0;return!!(x&&((v=(h=(r=(U0=(K0=(Q0=x[Z])!==null&&Q0!==void 0?Q0:x.readableErrored)!==null&&K0!==void 0?K0:x.writableErrored)!==null&&U0!==void 0?U0:(s=x._readableState)===null||s===void 0?void 0:s.errorEmitted)!==null&&r!==void 0?r:(e=x._writableState)===null||e===void 0?void 0:e.errorEmitted)!==null&&h!==void 0?h:(I0=x._readableState)===null||I0===void 0?void 0:I0.errored)!==null&&v!==void 0?v:(Z0=x._writableState)===null||Z0===void 0?void 0:Z0.errored))}I.exports={isDestroyed:n,kIsDestroyed:K,isDisturbed:z,kIsDisturbed:_,isErrored:T,kIsErrored:Z,isReadable:t,kIsReadable:L,kIsClosedPromise:S,kControllerErrorFunction:A,kIsWritable:E,isClosed:O,isDuplexNodeStream:N,isFinished:G,isIterable:p,isReadableNodeStream:q,isReadableStream:w,isReadableEnded:M0,isReadableFinished:S0,isReadableErrored:D,isNodeStream:f,isWebStream:b,isWritable:R0,isWritableNodeStream:B,isWritableStream:u,isWritableEnded:a,isWritableFinished:D0,isWritableErrored:V,isServerRequest:j,isServerResponse:R,willEmitClose:C,isTransformStream:g}}),IX=IU((J,I)=>{var Y=QI(),{AbortError:W,codes:X}=f6(),{ERR_INVALID_ARG_TYPE:K,ERR_STREAM_PREMATURE_CLOSE:Z}=X,{kEmptyObject:L,once:E}=a6(),{validateAbortSignal:_,validateFunction:S,validateObject:A,validateBoolean:q}=$2(),{Promise:B,PromisePrototypeThen:N,SymbolDispose:f}=yU(),{isClosed:w,isReadable:u,isReadableNodeStream:g,isReadableStream:b,isReadableFinished:p,isReadableErrored:n,isWritable:a,isWritableNodeStream:D0,isWritableStream:M0,isWritableFinished:S0,isWritableErrored:t,isNodeStream:R0,willEmitClose:G,kIsClosedPromise:V}=zJ(),D;function O(z){return z.setHeader&&typeof z.abort==="function"}var F=()=>{};function R(z,T,x){var v,h;if(arguments.length===2)x=T,T=L;else if(T==null)T=L;else A(T,"options");if(S(x,"callback"),_(T.signal,"options.signal"),x=E(x),b(z)||M0(z))return j(z,T,x);if(!R0(z))throw new K("stream",["ReadableStream","WritableStream","Stream"],z);let r=(v=T.readable)!==null&&v!==void 0?v:g(z),U0=(h=T.writable)!==null&&h!==void 0?h:D0(z),K0=z._writableState,Q0=z._readableState,s=()=>{if(!z.writable)Z0()},e=G(z)&&g(z)===r&&D0(z)===U0,I0=S0(z,!1),Z0=()=>{if(I0=!0,z.destroyed)e=!1;if(e&&(!z.readable||r))return;if(!r||C0)x.call(z)},C0=p(z,!1),$0=()=>{if(C0=!0,z.destroyed)e=!1;if(e&&(!z.writable||U0))return;if(!U0||I0)x.call(z)},c=(J0)=>{x.call(z,J0)},d=w(z),L0=()=>{d=!0;let J0=t(z)||n(z);if(J0&&typeof J0!=="boolean")return x.call(z,J0);if(r&&!C0&&g(z,!0)){if(!p(z,!1))return x.call(z,new Z)}if(U0&&!I0){if(!S0(z,!1))return x.call(z,new Z)}x.call(z)},Y0=()=>{d=!0;let J0=t(z)||n(z);if(J0&&typeof J0!=="boolean")return x.call(z,J0);x.call(z)},V0=()=>{z.req.on("finish",Z0)};if(O(z)){if(z.on("complete",Z0),!e)z.on("abort",L0);if(z.req)V0();else z.on("request",V0)}else if(U0&&!K0)z.on("end",s),z.on("close",s);if(!e&&typeof z.aborted==="boolean")z.on("aborted",L0);if(z.on("end",$0),z.on("finish",Z0),T.error!==!1)z.on("error",c);if(z.on("close",L0),d)Y.nextTick(L0);else if(K0!==null&&K0!==void 0&&K0.errorEmitted||Q0!==null&&Q0!==void 0&&Q0.errorEmitted){if(!e)Y.nextTick(Y0)}else if(!r&&(!e||u(z))&&(I0||a(z)===!1))Y.nextTick(Y0);else if(!U0&&(!e||a(z))&&(C0||u(z)===!1))Y.nextTick(Y0);else if(Q0&&z.req&&z.aborted)Y.nextTick(Y0);let k0=()=>{if(x=F,z.removeListener("aborted",L0),z.removeListener("complete",Z0),z.removeListener("abort",L0),z.removeListener("request",V0),z.req)z.req.removeListener("finish",Z0);z.removeListener("end",s),z.removeListener("close",s),z.removeListener("finish",Z0),z.removeListener("end",$0),z.removeListener("error",c),z.removeListener("close",L0)};if(T.signal&&!d){let J0=()=>{let O0=x;k0(),O0.call(z,new W(void 0,{cause:T.signal.reason}))};if(T.signal.aborted)Y.nextTick(J0);else{D=D||a6().addAbortListener;let O0=D(T.signal,J0),J$=x;x=E((...A0)=>{O0[f](),J$.apply(z,A0)})}}return k0}function j(z,T,x){let v=!1,h=F;if(T.signal)if(h=()=>{v=!0,x.call(z,new W(void 0,{cause:T.signal.reason}))},T.signal.aborted)Y.nextTick(h);else{D=D||a6().addAbortListener;let U0=D(T.signal,h),K0=x;x=E((...Q0)=>{U0[f](),K0.apply(z,Q0)})}let r=(...U0)=>{if(!v)Y.nextTick(()=>x.apply(z,U0))};return N(z[V].promise,r,r),F}function C(z,T){var x;let v=!1;if(T===null)T=L;if((x=T)!==null&&x!==void 0&&x.cleanup)q(T.cleanup,"cleanup"),v=T.cleanup;return new B((h,r)=>{let U0=R(z,T,(K0)=>{if(v)U0();if(K0)r(K0);else h()})})}I.exports=R,I.exports.finished=C}),vQ=IU((J,I)=>{var Y=QI(),{aggregateTwoErrors:W,codes:{ERR_MULTIPLE_CALLBACK:X},AbortError:K}=f6(),{Symbol:Z}=yU(),{kIsDestroyed:L,isDestroyed:E,isFinished:_,isServerRequest:S}=zJ(),A=Z("kDestroy"),q=Z("kConstruct");function B(G,V,D){if(G){if(G.stack,V&&!V.errored)V.errored=G;if(D&&!D.errored)D.errored=G}}function N(G,V){let D=this._readableState,O=this._writableState,F=O||D;if(O!==null&&O!==void 0&&O.destroyed||D!==null&&D!==void 0&&D.destroyed){if(typeof V==="function")V();return this}if(B(G,O,D),O)O.destroyed=!0;if(D)D.destroyed=!0;if(!F.constructed)this.once(A,function(R){f(this,W(R,G),V)});else f(this,G,V);return this}function f(G,V,D){let O=!1;function F(R){if(O)return;O=!0;let{_readableState:j,_writableState:C}=G;if(B(R,C,j),C)C.closed=!0;if(j)j.closed=!0;if(typeof D==="function")D(R);if(R)Y.nextTick(w,G,R);else Y.nextTick(u,G)}try{G._destroy(V||null,F)}catch(R){F(R)}}function w(G,V){g(G,V),u(G)}function u(G){let{_readableState:V,_writableState:D}=G;if(D)D.closeEmitted=!0;if(V)V.closeEmitted=!0;if(D!==null&&D!==void 0&&D.emitClose||V!==null&&V!==void 0&&V.emitClose)G.emit("close")}function g(G,V){let{_readableState:D,_writableState:O}=G;if(O!==null&&O!==void 0&&O.errorEmitted||D!==null&&D!==void 0&&D.errorEmitted)return;if(O)O.errorEmitted=!0;if(D)D.errorEmitted=!0;G.emit("error",V)}function b(){let G=this._readableState,V=this._writableState;if(G)G.constructed=!0,G.closed=!1,G.closeEmitted=!1,G.destroyed=!1,G.errored=null,G.errorEmitted=!1,G.reading=!1,G.ended=G.readable===!1,G.endEmitted=G.readable===!1;if(V)V.constructed=!0,V.destroyed=!1,V.closed=!1,V.closeEmitted=!1,V.errored=null,V.errorEmitted=!1,V.finalCalled=!1,V.prefinished=!1,V.ended=V.writable===!1,V.ending=V.writable===!1,V.finished=V.writable===!1}function p(G,V,D){let{_readableState:O,_writableState:F}=G;if(F!==null&&F!==void 0&&F.destroyed||O!==null&&O!==void 0&&O.destroyed)return this;if(O!==null&&O!==void 0&&O.autoDestroy||F!==null&&F!==void 0&&F.autoDestroy)G.destroy(V);else if(V){if(V.stack,F&&!F.errored)F.errored=V;if(O&&!O.errored)O.errored=V;if(D)Y.nextTick(g,G,V);else g(G,V)}}function n(G,V){if(typeof G._construct!=="function")return;let{_readableState:D,_writableState:O}=G;if(D)D.constructed=!1;if(O)O.constructed=!1;if(G.once(q,V),G.listenerCount(q)>1)return;Y.nextTick(a,G)}function a(G){let V=!1;function D(O){if(V){p(G,O!==null&&O!==void 0?O:new X);return}V=!0;let{_readableState:F,_writableState:R}=G,j=R||F;if(F)F.constructed=!0;if(R)R.constructed=!0;if(j.destroyed)G.emit(A,O);else if(O)p(G,O,!0);else Y.nextTick(D0,G)}try{G._construct((O)=>{Y.nextTick(D,O)})}catch(O){Y.nextTick(D,O)}}function D0(G){G.emit(q)}function M0(G){return(G===null||G===void 0?void 0:G.setHeader)&&typeof G.abort==="function"}function S0(G){G.emit("close")}function t(G,V){G.emit("error",V),Y.nextTick(S0,G)}function R0(G,V){if(!G||E(G))return;if(!V&&!_(G))V=new K;if(S(G))G.socket=null,G.destroy(V);else if(M0(G))G.abort();else if(M0(G.req))G.req.abort();else if(typeof G.destroy==="function")G.destroy(V);else if(typeof G.close==="function")G.close();else if(V)Y.nextTick(t,G,V);else Y.nextTick(S0,G);if(!G.destroyed)G[L]=!0}I.exports={construct:n,destroyer:R0,destroy:N,undestroy:b,errorOrDestroy:p}}),WH=IU((J,I)=>{var{ArrayIsArray:Y,ObjectSetPrototypeOf:W}=yU(),{EventEmitter:X}=(BQ(),E$(EQ));function K(L){X.call(this,L)}W(K.prototype,X.prototype),W(K,X),K.prototype.pipe=function(L,E){let _=this;function S(u){if(L.writable&&L.write(u)===!1&&_.pause)_.pause()}_.on("data",S);function A(){if(_.readable&&_.resume)_.resume()}if(L.on("drain",A),!L._isStdio&&(!E||E.end!==!1))_.on("end",B),_.on("close",N);let q=!1;function B(){if(q)return;q=!0,L.end()}function N(){if(q)return;if(q=!0,typeof L.destroy==="function")L.destroy()}function f(u){if(w(),X.listenerCount(this,"error")===0)this.emit("error",u)}Z(_,"error",f),Z(L,"error",f);function w(){_.removeListener("data",S),L.removeListener("drain",A),_.removeListener("end",B),_.removeListener("close",N),_.removeListener("error",f),L.removeListener("error",f),_.removeListener("end",w),_.removeListener("close",w),L.removeListener("close",w)}return _.on("end",w),_.on("close",w),L.on("close",w),L.emit("pipe",_),L};function Z(L,E,_){if(typeof L.prependListener==="function")return L.prependListener(E,_);if(!L._events||!L._events[E])L.on(E,_);else if(Y(L._events[E]))L._events[E].unshift(_);else L._events[E]=[_,L._events[E]]}I.exports={Stream:K,prependListener:Z}}),A8=IU((J,I)=>{var{SymbolDispose:Y}=yU(),{AbortError:W,codes:X}=f6(),{isNodeStream:K,isWebStream:Z,kControllerErrorFunction:L}=zJ(),E=IX(),{ERR_INVALID_ARG_TYPE:_}=X,S,A=(q,B)=>{if(typeof q!=="object"||!("aborted"in q))throw new _(B,"AbortSignal",q)};I.exports.addAbortSignal=function(q,B){if(A(q,"signal"),!K(B)&&!Z(B))throw new _("stream",["ReadableStream","WritableStream","Stream"],B);return I.exports.addAbortSignalNoValidate(q,B)},I.exports.addAbortSignalNoValidate=function(q,B){if(typeof q!=="object"||!("aborted"in q))return B;let N=K(B)?()=>{B.destroy(new W(void 0,{cause:q.reason}))}:()=>{B[L](new W(void 0,{cause:q.reason}))};if(q.aborted)N();else{S=S||a6().addAbortListener;let f=S(q,N);E(B,f[Y])}return B}}),_w=IU((J,I)=>{var{StringPrototypeSlice:Y,SymbolIterator:W,TypedArrayPrototypeSet:X,Uint8Array:K}=yU(),{Buffer:Z}=(iU(),E$(oU)),{inspect:L}=a6();I.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(E){let _={data:E,next:null};if(this.length>0)this.tail.next=_;else this.head=_;this.tail=_,++this.length}unshift(E){let _={data:E,next:this.head};if(this.length===0)this.tail=_;this.head=_,++this.length}shift(){if(this.length===0)return;let E=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,E}clear(){this.head=this.tail=null,this.length=0}join(E){if(this.length===0)return"";let _=this.head,S=""+_.data;while((_=_.next)!==null)S+=E+_.data;return S}concat(E){if(this.length===0)return Z.alloc(0);let _=Z.allocUnsafe(E>>>0),S=this.head,A=0;while(S)X(_,S.data,A),A+=S.data.length,S=S.next;return _}consume(E,_){let S=this.head.data;if(E<S.length){let A=S.slice(0,E);return this.head.data=S.slice(E),A}if(E===S.length)return this.shift();return _?this._getString(E):this._getBuffer(E)}first(){return this.head.data}*[W](){for(let E=this.head;E;E=E.next)yield E.data}_getString(E){let _="",S=this.head,A=0;do{let q=S.data;if(E>q.length)_+=q,E-=q.length;else{if(E===q.length)if(_+=q,++A,S.next)this.head=S.next;else this.head=this.tail=null;else _+=Y(q,0,E),this.head=S,S.data=Y(q,E);break}++A}while((S=S.next)!==null);return this.length-=A,_}_getBuffer(E){let _=Z.allocUnsafe(E),S=E,A=this.head,q=0;do{let B=A.data;if(E>B.length)X(_,B,S-E),E-=B.length;else{if(E===B.length)if(X(_,B,S-E),++q,A.next)this.head=A.next;else this.head=this.tail=null;else X(_,new K(B.buffer,B.byteOffset,E),S-E),this.head=A,A.data=B.slice(E);break}++q}while((A=A.next)!==null);return this.length-=q,_}[Symbol.for("nodejs.util.inspect.custom")](E,_){return L(this,{..._,depth:0,customInspect:!1})}}}),C8=IU((J,I)=>{var{MathFloor:Y,NumberIsInteger:W}=yU(),{validateInteger:X}=$2(),{ERR_INVALID_ARG_VALUE:K}=f6().codes,Z=16384,L=16;function E(q,B,N){return q.highWaterMark!=null?q.highWaterMark:B?q[N]:null}function _(q){return q?L:Z}function S(q,B){if(X(B,"value",0),q)L=B;else Z=B}function A(q,B,N,f){let w=E(B,f,N);if(w!=null){if(!W(w)||w<0){let u=f?`options.${N}`:"options.highWaterMark";throw new K(u,w)}return Y(w)}return _(q.objectMode)}I.exports={getHighWaterMark:A,getDefaultHighWaterMark:_,setDefaultHighWaterMark:S}}),qw=IU((J,I)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Y=(iU(),E$(oU)),W=Y.Buffer;function X(Z,L){for(var E in Z)L[E]=Z[E]}if(W.from&&W.alloc&&W.allocUnsafe&&W.allocUnsafeSlow)I.exports=Y;else X(Y,J),J.Buffer=K;function K(Z,L,E){return W(Z,L,E)}K.prototype=Object.create(W.prototype),X(W,K),K.from=function(Z,L,E){if(typeof Z==="number")throw TypeError("Argument must not be a number");return W(Z,L,E)},K.alloc=function(Z,L,E){if(typeof Z!=="number")throw TypeError("Argument must be a number");var _=W(Z);if(L!==void 0)if(typeof E==="string")_.fill(L,E);else _.fill(L);else _.fill(0);return _},K.allocUnsafe=function(Z){if(typeof Z!=="number")throw TypeError("Argument must be a number");return W(Z)},K.allocUnsafeSlow=function(Z){if(typeof Z!=="number")throw TypeError("Argument must be a number");return Y.SlowBuffer(Z)}}),Sw=IU((J)=>{var I=qw().Buffer,Y=I.isEncoding||function(g){switch(g=""+g,g&&g.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 W(g){if(!g)return"utf8";var b;while(!0)switch(g){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 g;default:if(b)return;g=(""+g).toLowerCase(),b=!0}}function X(g){var b=W(g);if(typeof b!=="string"&&(I.isEncoding===Y||!Y(g)))throw Error("Unknown encoding: "+g);return b||g}J.StringDecoder=K;function K(g){this.encoding=X(g);var b;switch(this.encoding){case"utf16le":this.text=q,this.end=B,b=4;break;case"utf8":this.fillLast=_,b=4;break;case"base64":this.text=N,this.end=f,b=3;break;default:this.write=w,this.end=u;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(b)}K.prototype.write=function(g){if(g.length===0)return"";var b,p;if(this.lastNeed){if(b=this.fillLast(g),b===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;if(p<g.length)return b?b+this.text(g,p):this.text(g,p);return b||""},K.prototype.end=A,K.prototype.text=S,K.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function Z(g){if(g<=127)return 0;else if(g>>5===6)return 2;else if(g>>4===14)return 3;else if(g>>3===30)return 4;return g>>6===2?-1:-2}function L(g,b,p){var n=b.length-1;if(n<p)return 0;var a=Z(b[n]);if(a>=0){if(a>0)g.lastNeed=a-1;return a}if(--n<p||a===-2)return 0;if(a=Z(b[n]),a>=0){if(a>0)g.lastNeed=a-2;return a}if(--n<p||a===-2)return 0;if(a=Z(b[n]),a>=0){if(a>0)if(a===2)a=0;else g.lastNeed=a-3;return a}return 0}function E(g,b,p){if((b[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&b.length>2){if((b[2]&192)!==128)return g.lastNeed=2,"�"}}}function _(g){var b=this.lastTotal-this.lastNeed,p=E(this,g,b);if(p!==void 0)return p;if(this.lastNeed<=g.length)return g.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,b,0,g.length),this.lastNeed-=g.length}function S(g,b){var p=L(this,g,b);if(!this.lastNeed)return g.toString("utf8",b);this.lastTotal=p;var n=g.length-(p-this.lastNeed);return g.copy(this.lastChar,0,n),g.toString("utf8",b,n)}function A(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+"�";return b}function q(g,b){if((g.length-b)%2===0){var p=g.toString("utf16le",b);if(p){var n=p.charCodeAt(p.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",b,g.length-1)}function B(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,p)}return b}function N(g,b){var p=(g.length-b)%3;if(p===0)return g.toString("base64",b);if(this.lastNeed=3-p,this.lastTotal=3,p===1)this.lastChar[0]=g[g.length-1];else this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1];return g.toString("base64",b,g.length-p)}function f(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+this.lastChar.toString("base64",0,3-this.lastNeed);return b}function w(g){return g.toString(this.encoding)}function u(g){return g&&g.length?this.write(g):""}}),nS=IU((J,I)=>{var Y=QI(),{PromisePrototypeThen:W,SymbolAsyncIterator:X,SymbolIterator:K}=yU(),{Buffer:Z}=(iU(),E$(oU)),{ERR_INVALID_ARG_TYPE:L,ERR_STREAM_NULL_VALUES:E}=f6().codes;function _(S,A,q){let B;if(typeof A==="string"||A instanceof Z)return new S({objectMode:!0,...q,read(){this.push(A),this.push(null)}});let N;if(A&&A[X])N=!0,B=A[X]();else if(A&&A[K])N=!1,B=A[K]();else throw new L("iterable",["Iterable"],A);let f=new S({objectMode:!0,highWaterMark:1,...q}),w=!1;f._read=function(){if(!w)w=!0,g()},f._destroy=function(b,p){W(u(b),()=>Y.nextTick(p,b),(n)=>Y.nextTick(p,n||b))};async function u(b){let p=b!==void 0&&b!==null,n=typeof B.throw==="function";if(p&&n){let{value:a,done:D0}=await B.throw(b);if(await a,D0)return}if(typeof B.return==="function"){let{value:a}=await B.return();await a}}async function g(){for(;;){try{let{value:b,done:p}=N?await B.next():B.next();if(p)f.push(null);else{let n=b&&typeof b.then==="function"?await b:b;if(n===null)throw w=!1,new E;else if(f.push(n))continue;else w=!1}}catch(b){f.destroy(b)}break}}return f}I.exports=_}),T8=IU((J,I)=>{var Y=QI(),{ArrayPrototypeIndexOf:W,NumberIsInteger:X,NumberIsNaN:K,NumberParseInt:Z,ObjectDefineProperties:L,ObjectKeys:E,ObjectSetPrototypeOf:_,Promise:S,SafeSet:A,SymbolAsyncDispose:q,SymbolAsyncIterator:B,Symbol:N}=yU();I.exports=A0,A0.ReadableState=J$;var{EventEmitter:f}=(BQ(),E$(EQ)),{Stream:w,prependListener:u}=WH(),{Buffer:g}=(iU(),E$(oU)),{addAbortSignal:b}=A8(),p=IX(),n=a6().debuglog("stream",(i)=>{n=i}),a=_w(),D0=vQ(),{getHighWaterMark:M0,getDefaultHighWaterMark:S0}=C8(),{aggregateTwoErrors:t,codes:{ERR_INVALID_ARG_TYPE:R0,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_OUT_OF_RANGE:V,ERR_STREAM_PUSH_AFTER_EOF:D,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:O},AbortError:F}=f6(),{validateObject:R}=$2(),j=N("kPaused"),{StringDecoder:C}=Sw(),z=nS();_(A0.prototype,w.prototype),_(A0,w);var T=()=>{},{errorOrDestroy:x}=D0,v=1,h=2,r=4,U0=8,K0=16,Q0=32,s=64,e=128,I0=256,Z0=512,C0=1024,$0=2048,c=4096,d=8192,L0=16384,Y0=32768,V0=65536,k0=131072,J0=262144;function O0(i){return{enumerable:!1,get(){return(this.state&i)!==0},set(G0){if(G0)this.state|=i;else this.state&=~i}}}L(J$.prototype,{objectMode:O0(v),ended:O0(h),endEmitted:O0(r),reading:O0(U0),constructed:O0(K0),sync:O0(Q0),needReadable:O0(s),emittedReadable:O0(e),readableListening:O0(I0),resumeScheduled:O0(Z0),errorEmitted:O0(C0),emitClose:O0($0),autoDestroy:O0(c),destroyed:O0(d),closed:O0(L0),closeEmitted:O0(Y0),multiAwaitDrain:O0(V0),readingMore:O0(k0),dataEmitted:O0(J0)});function J$(i,G0,q0){if(typeof q0!=="boolean")q0=G0 instanceof ZJ();if(this.state=$0|c|K0|Q0,i&&i.objectMode)this.state|=v;if(q0&&i&&i.readableObjectMode)this.state|=v;if(this.highWaterMark=i?M0(this,i,"readableHighWaterMark",q0):S0(!1),this.buffer=new a,this.length=0,this.pipes=[],this.flowing=null,this[j]=null,i&&i.emitClose===!1)this.state&=~$0;if(i&&i.autoDestroy===!1)this.state&=~c;if(this.errored=null,this.defaultEncoding=i&&i.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,i&&i.encoding)this.decoder=new C(i.encoding),this.encoding=i.encoding}function A0(i){if(!(this instanceof A0))return new A0(i);let G0=this instanceof ZJ();if(this._readableState=new J$(i,this,G0),i){if(typeof i.read==="function")this._read=i.read;if(typeof i.destroy==="function")this._destroy=i.destroy;if(typeof i.construct==="function")this._construct=i.construct;if(i.signal&&!G0)b(i.signal,this)}w.call(this,i),D0.construct(this,()=>{if(this._readableState.needReadable)t0(this,this._readableState)})}A0.prototype.destroy=D0.destroy,A0.prototype._undestroy=D0.undestroy,A0.prototype._destroy=function(i,G0){G0(i)},A0.prototype[f.captureRejectionSymbol]=function(i){this.destroy(i)},A0.prototype[q]=function(){let i;if(!this.destroyed)i=this.readableEnded?null:new F,this.destroy(i);return new S((G0,q0)=>p(this,(j0)=>j0&&j0!==i?q0(j0):G0(null)))},A0.prototype.push=function(i,G0){return v0(this,i,G0,!1)},A0.prototype.unshift=function(i,G0){return v0(this,i,G0,!0)};function v0(i,G0,q0,j0){n("readableAddChunk",G0);let K$=i._readableState,d0;if((K$.state&v)===0){if(typeof G0==="string"){if(q0=q0||K$.defaultEncoding,K$.encoding!==q0)if(j0&&K$.encoding)G0=g.from(G0,q0).toString(K$.encoding);else G0=g.from(G0,q0),q0=""}else if(G0 instanceof g)q0="";else if(w._isUint8Array(G0))G0=w._uint8ArrayToBuffer(G0),q0="";else if(G0!=null)d0=new R0("chunk",["string","Buffer","Uint8Array"],G0)}if(d0)x(i,d0);else if(G0===null)K$.state&=~U0,h0(i,K$);else if((K$.state&v)!==0||G0&&G0.length>0)if(j0)if((K$.state&r)!==0)x(i,new O);else if(K$.destroyed||K$.errored)return!1;else M$(i,K$,G0,!0);else if(K$.ended)x(i,new D);else if(K$.destroyed||K$.errored)return!1;else if(K$.state&=~U0,K$.decoder&&!q0)if(G0=K$.decoder.write(G0),K$.objectMode||G0.length!==0)M$(i,K$,G0,!1);else t0(i,K$);else M$(i,K$,G0,!1);else if(!j0)K$.state&=~U0,t0(i,K$);return!K$.ended&&(K$.length<K$.highWaterMark||K$.length===0)}function M$(i,G0,q0,j0){if(G0.flowing&&G0.length===0&&!G0.sync&&i.listenerCount("data")>0){if((G0.state&V0)!==0)G0.awaitDrainWriters.clear();else G0.awaitDrainWriters=null;G0.dataEmitted=!0,i.emit("data",q0)}else{if(G0.length+=G0.objectMode?1:q0.length,j0)G0.buffer.unshift(q0);else G0.buffer.push(q0);if((G0.state&s)!==0)c0(i)}t0(i,G0)}A0.prototype.isPaused=function(){let i=this._readableState;return i[j]===!0||i.flowing===!1},A0.prototype.setEncoding=function(i){let G0=new C(i);this._readableState.decoder=G0,this._readableState.encoding=this._readableState.decoder.encoding;let q0=this._readableState.buffer,j0="";for(let K$ of q0)j0+=G0.write(K$);if(q0.clear(),j0!=="")q0.push(j0);return this._readableState.length=j0.length,this};var m0=1073741824;function p0(i){if(i>m0)throw new V("size","<= 1GiB",i);else i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++;return i}function r$(i,G0){if(i<=0||G0.length===0&&G0.ended)return 0;if((G0.state&v)!==0)return 1;if(K(i)){if(G0.flowing&&G0.length)return G0.buffer.first().length;return G0.length}if(i<=G0.length)return i;return G0.ended?G0.length:0}A0.prototype.read=function(i){if(n("read",i),i===void 0)i=NaN;else if(!X(i))i=Z(i,10);let G0=this._readableState,q0=i;if(i>G0.highWaterMark)G0.highWaterMark=p0(i);if(i!==0)G0.state&=~e;if(i===0&&G0.needReadable&&((G0.highWaterMark!==0?G0.length>=G0.highWaterMark:G0.length>0)||G0.ended)){if(n("read: emitReadable",G0.length,G0.ended),G0.length===0&&G0.ended)V$(this);else c0(this);return null}if(i=r$(i,G0),i===0&&G0.ended){if(G0.length===0)V$(this);return null}let j0=(G0.state&s)!==0;if(n("need readable",j0),G0.length===0||G0.length-i<G0.highWaterMark)j0=!0,n("length less than watermark",j0);if(G0.ended||G0.reading||G0.destroyed||G0.errored||!G0.constructed)j0=!1,n("reading, ended or constructing",j0);else if(j0){if(n("do read"),G0.state|=U0|Q0,G0.length===0)G0.state|=s;try{this._read(G0.highWaterMark)}catch(d0){x(this,d0)}if(G0.state&=~Q0,!G0.reading)i=r$(q0,G0)}let K$;if(i>0)K$=y0(i,G0);else K$=null;if(K$===null)G0.needReadable=G0.length<=G0.highWaterMark,i=0;else if(G0.length-=i,G0.multiAwaitDrain)G0.awaitDrainWriters.clear();else G0.awaitDrainWriters=null;if(G0.length===0){if(!G0.ended)G0.needReadable=!0;if(q0!==i&&G0.ended)V$(this)}if(K$!==null&&!G0.errorEmitted&&!G0.closeEmitted)G0.dataEmitted=!0,this.emit("data",K$);return K$};function h0(i,G0){if(n("onEofChunk"),G0.ended)return;if(G0.decoder){let q0=G0.decoder.end();if(q0&&q0.length)G0.buffer.push(q0),G0.length+=G0.objectMode?1:q0.length}if(G0.ended=!0,G0.sync)c0(i);else G0.needReadable=!1,G0.emittedReadable=!0,YU(i)}function c0(i){let G0=i._readableState;if(n("emitReadable",G0.needReadable,G0.emittedReadable),G0.needReadable=!1,!G0.emittedReadable)n("emitReadable",G0.flowing),G0.emittedReadable=!0,Y.nextTick(YU,i)}function YU(i){let G0=i._readableState;if(n("emitReadable_",G0.destroyed,G0.length,G0.ended),!G0.destroyed&&!G0.errored&&(G0.length||G0.ended))i.emit("readable"),G0.emittedReadable=!1;G0.needReadable=!G0.flowing&&!G0.ended&&G0.length<=G0.highWaterMark,N0(i)}function t0(i,G0){if(!G0.readingMore&&G0.constructed)G0.readingMore=!0,Y.nextTick(i0,i,G0)}function i0(i,G0){while(!G0.reading&&!G0.ended&&(G0.length<G0.highWaterMark||G0.flowing&&G0.length===0)){let q0=G0.length;if(n("maybeReadMore read 0"),i.read(0),q0===G0.length)break}G0.readingMore=!1}A0.prototype._read=function(i){throw new G("_read()")},A0.prototype.pipe=function(i,G0){let q0=this,j0=this._readableState;if(j0.pipes.length===1){if(!j0.multiAwaitDrain)j0.multiAwaitDrain=!0,j0.awaitDrainWriters=new A(j0.awaitDrainWriters?[j0.awaitDrainWriters]:[])}j0.pipes.push(i),n("pipe count=%d opts=%j",j0.pipes.length,G0);let K$=(!G0||G0.end!==!1)&&i!==Y.stdout&&i!==Y.stderr?a0:j$;if(j0.endEmitted)Y.nextTick(K$);else q0.once("end",K$);i.on("unpipe",d0);function d0(UU,n$){if(n("onunpipe"),UU===q0){if(n$&&n$.hasUnpiped===!1)n$.hasUnpiped=!0,U$()}}function a0(){n("onend"),i.end()}let LU,X$=!1;function U$(){if(n("cleanup"),i.removeListener("close",_U),i.removeListener("finish",B$),LU)i.removeListener("drain",LU);if(i.removeListener("error",$$),i.removeListener("unpipe",d0),q0.removeListener("end",a0),q0.removeListener("end",j$),q0.removeListener("data",I$),X$=!0,LU&&j0.awaitDrainWriters&&(!i._writableState||i._writableState.needDrain))LU()}function $U(){if(!X$){if(j0.pipes.length===1&&j0.pipes[0]===i)n("false write response, pause",0),j0.awaitDrainWriters=i,j0.multiAwaitDrain=!1;else if(j0.pipes.length>1&&j0.pipes.includes(i))n("false write response, pause",j0.awaitDrainWriters.size),j0.awaitDrainWriters.add(i);q0.pause()}if(!LU)LU=PU(q0,i),i.on("drain",LU)}q0.on("data",I$);function I$(UU){n("ondata");let n$=i.write(UU);if(n("dest.write",n$),n$===!1)$U()}function $$(UU){if(n("onerror",UU),j$(),i.removeListener("error",$$),i.listenerCount("error")===0){let n$=i._writableState||i._readableState;if(n$&&!n$.errorEmitted)x(i,UU);else i.emit("error",UU)}}u(i,"error",$$);function _U(){i.removeListener("finish",B$),j$()}i.once("close",_U);function B$(){n("onfinish"),i.removeListener("close",_U),j$()}i.once("finish",B$);function j$(){n("unpipe"),q0.unpipe(i)}if(i.emit("pipe",q0),i.writableNeedDrain===!0)$U();else if(!j0.flowing)n("pipe resume"),q0.resume();return i};function PU(i,G0){return function(){let q0=i._readableState;if(q0.awaitDrainWriters===G0)n("pipeOnDrain",1),q0.awaitDrainWriters=null;else if(q0.multiAwaitDrain)n("pipeOnDrain",q0.awaitDrainWriters.size),q0.awaitDrainWriters.delete(G0);if((!q0.awaitDrainWriters||q0.awaitDrainWriters.size===0)&&i.listenerCount("data"))i.resume()}}A0.prototype.unpipe=function(i){let G0=this._readableState,q0={hasUnpiped:!1};if(G0.pipes.length===0)return this;if(!i){let K$=G0.pipes;G0.pipes=[],this.pause();for(let d0=0;d0<K$.length;d0++)K$[d0].emit("unpipe",this,{hasUnpiped:!1});return this}let j0=W(G0.pipes,i);if(j0===-1)return this;if(G0.pipes.splice(j0,1),G0.pipes.length===0)this.pause();return i.emit("unpipe",this,q0),this},A0.prototype.on=function(i,G0){let q0=w.prototype.on.call(this,i,G0),j0=this._readableState;if(i==="data"){if(j0.readableListening=this.listenerCount("readable")>0,j0.flowing!==!1)this.resume()}else if(i==="readable"){if(!j0.endEmitted&&!j0.readableListening){if(j0.readableListening=j0.needReadable=!0,j0.flowing=!1,j0.emittedReadable=!1,n("on readable",j0.length,j0.reading),j0.length)c0(this);else if(!j0.reading)Y.nextTick(X0,this)}}return q0},A0.prototype.addListener=A0.prototype.on,A0.prototype.removeListener=function(i,G0){let q0=w.prototype.removeListener.call(this,i,G0);if(i==="readable")Y.nextTick(m,this);return q0},A0.prototype.off=A0.prototype.removeListener,A0.prototype.removeAllListeners=function(i){let G0=w.prototype.removeAllListeners.apply(this,arguments);if(i==="readable"||i===void 0)Y.nextTick(m,this);return G0};function m(i){let G0=i._readableState;if(G0.readableListening=i.listenerCount("readable")>0,G0.resumeScheduled&&G0[j]===!1)G0.flowing=!0;else if(i.listenerCount("data")>0)i.resume();else if(!G0.readableListening)G0.flowing=null}function X0(i){n("readable nexttick read 0"),i.read(0)}A0.prototype.resume=function(){let i=this._readableState;if(!i.flowing)n("resume"),i.flowing=!i.readableListening,e0(this,i);return i[j]=!1,this};function e0(i,G0){if(!G0.resumeScheduled)G0.resumeScheduled=!0,Y.nextTick(E0,i,G0)}function E0(i,G0){if(n("resume",G0.reading),!G0.reading)i.read(0);if(G0.resumeScheduled=!1,i.emit("resume"),N0(i),G0.flowing&&!G0.reading)i.read(0)}A0.prototype.pause=function(){if(n("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)n("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[j]=!0,this};function N0(i){let G0=i._readableState;n("flow",G0.flowing);while(G0.flowing&&i.read()!==null);}A0.prototype.wrap=function(i){let G0=!1;i.on("data",(j0)=>{if(!this.push(j0)&&i.pause)G0=!0,i.pause()}),i.on("end",()=>{this.push(null)}),i.on("error",(j0)=>{x(this,j0)}),i.on("close",()=>{this.destroy()}),i.on("destroy",()=>{this.destroy()}),this._read=()=>{if(G0&&i.resume)G0=!1,i.resume()};let q0=E(i);for(let j0=1;j0<q0.length;j0++){let K$=q0[j0];if(this[K$]===void 0&&typeof i[K$]==="function")this[K$]=i[K$].bind(i)}return this},A0.prototype[B]=function(){return D$(this)},A0.prototype.iterator=function(i){if(i!==void 0)R(i,"options");return D$(this,i)};function D$(i,G0){if(typeof i.read!=="function")i=A0.wrap(i,{objectMode:!0});let q0=x0(i,G0);return q0.stream=i,q0}async function*x0(i,G0){let q0=T;function j0(a0){if(this===i)q0(),q0=T;else q0=a0}i.on("readable",j0);let K$,d0=p(i,{writable:!1},(a0)=>{K$=a0?t(K$,a0):null,q0(),q0=T});try{while(!0){let a0=i.destroyed?null:i.read();if(a0!==null)yield a0;else if(K$)throw K$;else if(K$===null)return;else await new S(j0)}}catch(a0){throw K$=t(K$,a0),K$}finally{if((K$||(G0===null||G0===void 0?void 0:G0.destroyOnReturn)!==!1)&&(K$===void 0||i._readableState.autoDestroy))D0.destroyer(i,null);else i.off("readable",j0),d0()}}L(A0.prototype,{readable:{__proto__:null,get(){let i=this._readableState;return!!i&&i.readable!==!1&&!i.destroyed&&!i.errorEmitted&&!i.endEmitted},set(i){if(this._readableState)this._readableState.readable=!!i}},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(i){if(this._readableState)this._readableState.flowing=i}},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(i){if(!this._readableState)return;this._readableState.destroyed=i}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),L(J$.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(i){this[j]=!!i}}}),A0._fromList=y0;function y0(i,G0){if(G0.length===0)return null;let q0;if(G0.objectMode)q0=G0.buffer.shift();else if(!i||i>=G0.length){if(G0.decoder)q0=G0.buffer.join("");else if(G0.buffer.length===1)q0=G0.buffer.first();else q0=G0.buffer.concat(G0.length);G0.buffer.clear()}else q0=G0.buffer.consume(i,G0.decoder);return q0}function V$(i){let G0=i._readableState;if(n("endReadable",G0.endEmitted),!G0.endEmitted)G0.ended=!0,Y.nextTick(o0,G0,i)}function o0(i,G0){if(n("endReadableNT",i.endEmitted,i.length),!i.errored&&!i.closeEmitted&&!i.endEmitted&&i.length===0){if(i.endEmitted=!0,G0.emit("end"),G0.writable&&G0.allowHalfOpen===!1)Y.nextTick(r0,G0);else if(i.autoDestroy){let q0=G0._writableState;if(!q0||q0.autoDestroy&&(q0.finished||q0.writable===!1))G0.destroy()}}}function r0(i){if(i.writable&&!i.writableEnded&&!i.destroyed)i.end()}A0.from=function(i,G0){return z(A0,i,G0)};var OU;function s0(){if(OU===void 0)OU={};return OU}A0.fromWeb=function(i,G0){return s0().newStreamReadableFromReadableStream(i,G0)},A0.toWeb=function(i,G0){return s0().newReadableStreamFromStreamReadable(i,G0)},A0.wrap=function(i,G0){var q0,j0;return new A0({objectMode:(q0=(j0=i.readableObjectMode)!==null&&j0!==void 0?j0:i.objectMode)!==null&&q0!==void 0?q0:!0,...G0,destroy(K$,d0){D0.destroyer(i,K$),d0(K$)}}).wrap(i)}}),OH=IU((J,I)=>{var Y=QI(),{ArrayPrototypeSlice:W,Error:X,FunctionPrototypeSymbolHasInstance:K,ObjectDefineProperty:Z,ObjectDefineProperties:L,ObjectSetPrototypeOf:E,StringPrototypeToLowerCase:_,Symbol:S,SymbolHasInstance:A}=yU();I.exports=R,R.WritableState=O;var{EventEmitter:q}=(BQ(),E$(EQ)),B=WH().Stream,{Buffer:N}=(iU(),E$(oU)),f=vQ(),{addAbortSignal:w}=A8(),{getHighWaterMark:u,getDefaultHighWaterMark:g}=C8(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:p,ERR_MULTIPLE_CALLBACK:n,ERR_STREAM_CANNOT_PIPE:a,ERR_STREAM_DESTROYED:D0,ERR_STREAM_ALREADY_FINISHED:M0,ERR_STREAM_NULL_VALUES:S0,ERR_STREAM_WRITE_AFTER_END:t,ERR_UNKNOWN_ENCODING:R0}=f6().codes,{errorOrDestroy:G}=f;E(R.prototype,B.prototype),E(R,B);function V(){}var D=S("kOnFinished");function O(c,d,L0){if(typeof L0!=="boolean")L0=d instanceof ZJ();if(this.objectMode=!!(c&&c.objectMode),L0)this.objectMode=this.objectMode||!!(c&&c.writableObjectMode);this.highWaterMark=c?u(this,c,"writableHighWaterMark",L0):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Y0=!!(c&&c.decodeStrings===!1);this.decodeStrings=!Y0,this.defaultEncoding=c&&c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=x.bind(void 0,d),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,F(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!c||c.emitClose!==!1,this.autoDestroy=!c||c.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function F(c){c.buffered=[],c.bufferedIndex=0,c.allBuffers=!0,c.allNoop=!0}O.prototype.getBuffer=function(){return W(this.buffered,this.bufferedIndex)},Z(O.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function R(c){let d=this instanceof ZJ();if(!d&&!K(R,this))return new R(c);if(this._writableState=new O(c,this,d),c){if(typeof c.write==="function")this._write=c.write;if(typeof c.writev==="function")this._writev=c.writev;if(typeof c.destroy==="function")this._destroy=c.destroy;if(typeof c.final==="function")this._final=c.final;if(typeof c.construct==="function")this._construct=c.construct;if(c.signal)w(c.signal,this)}B.call(this,c),f.construct(this,()=>{let L0=this._writableState;if(!L0.writing)U0(this,L0);e(this,L0)})}Z(R,A,{__proto__:null,value:function(c){if(K(this,c))return!0;if(this!==R)return!1;return c&&c._writableState instanceof O}}),R.prototype.pipe=function(){G(this,new a)};function j(c,d,L0,Y0){let V0=c._writableState;if(typeof L0==="function")Y0=L0,L0=V0.defaultEncoding;else{if(!L0)L0=V0.defaultEncoding;else if(L0!=="buffer"&&!N.isEncoding(L0))throw new R0(L0);if(typeof Y0!=="function")Y0=V}if(d===null)throw new S0;else if(!V0.objectMode)if(typeof d==="string"){if(V0.decodeStrings!==!1)d=N.from(d,L0),L0="buffer"}else if(d instanceof N)L0="buffer";else if(B._isUint8Array(d))d=B._uint8ArrayToBuffer(d),L0="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],d);let k0;if(V0.ending)k0=new t;else if(V0.destroyed)k0=new D0("write");if(k0)return Y.nextTick(Y0,k0),G(c,k0,!0),k0;return V0.pendingcb++,C(c,V0,d,L0,Y0)}R.prototype.write=function(c,d,L0){return j(this,c,d,L0)===!0},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){let c=this._writableState;if(c.corked){if(c.corked--,!c.writing)U0(this,c)}},R.prototype.setDefaultEncoding=function(c){if(typeof c==="string")c=_(c);if(!N.isEncoding(c))throw new R0(c);return this._writableState.defaultEncoding=c,this};function C(c,d,L0,Y0,V0){let k0=d.objectMode?1:L0.length;d.length+=k0;let J0=d.length<d.highWaterMark;if(!J0)d.needDrain=!0;if(d.writing||d.corked||d.errored||!d.constructed){if(d.buffered.push({chunk:L0,encoding:Y0,callback:V0}),d.allBuffers&&Y0!=="buffer")d.allBuffers=!1;if(d.allNoop&&V0!==V)d.allNoop=!1}else d.writelen=k0,d.writecb=V0,d.writing=!0,d.sync=!0,c._write(L0,Y0,d.onwrite),d.sync=!1;return J0&&!d.errored&&!d.destroyed}function z(c,d,L0,Y0,V0,k0,J0){if(d.writelen=Y0,d.writecb=J0,d.writing=!0,d.sync=!0,d.destroyed)d.onwrite(new D0("write"));else if(L0)c._writev(V0,d.onwrite);else c._write(V0,k0,d.onwrite);d.sync=!1}function T(c,d,L0,Y0){--d.pendingcb,Y0(L0),r(d),G(c,L0)}function x(c,d){let L0=c._writableState,Y0=L0.sync,V0=L0.writecb;if(typeof V0!=="function"){G(c,new n);return}if(L0.writing=!1,L0.writecb=null,L0.length-=L0.writelen,L0.writelen=0,d){if(d.stack,!L0.errored)L0.errored=d;if(c._readableState&&!c._readableState.errored)c._readableState.errored=d;if(Y0)Y.nextTick(T,c,L0,d,V0);else T(c,L0,d,V0)}else{if(L0.buffered.length>L0.bufferedIndex)U0(c,L0);if(Y0)if(L0.afterWriteTickInfo!==null&&L0.afterWriteTickInfo.cb===V0)L0.afterWriteTickInfo.count++;else L0.afterWriteTickInfo={count:1,cb:V0,stream:c,state:L0},Y.nextTick(v,L0.afterWriteTickInfo);else h(c,L0,1,V0)}}function v({stream:c,state:d,count:L0,cb:Y0}){return d.afterWriteTickInfo=null,h(c,d,L0,Y0)}function h(c,d,L0,Y0){if(!d.ending&&!c.destroyed&&d.length===0&&d.needDrain)d.needDrain=!1,c.emit("drain");while(L0-- >0)d.pendingcb--,Y0();if(d.destroyed)r(d);e(c,d)}function r(c){if(c.writing)return;for(let V0=c.bufferedIndex;V0<c.buffered.length;++V0){var d;let{chunk:k0,callback:J0}=c.buffered[V0],O0=c.objectMode?1:k0.length;c.length-=O0,J0((d=c.errored)!==null&&d!==void 0?d:new D0("write"))}let L0=c[D].splice(0);for(let V0=0;V0<L0.length;V0++){var Y0;L0[V0]((Y0=c.errored)!==null&&Y0!==void 0?Y0:new D0("end"))}F(c)}function U0(c,d){if(d.corked||d.bufferProcessing||d.destroyed||!d.constructed)return;let{buffered:L0,bufferedIndex:Y0,objectMode:V0}=d,k0=L0.length-Y0;if(!k0)return;let J0=Y0;if(d.bufferProcessing=!0,k0>1&&c._writev){d.pendingcb-=k0-1;let O0=d.allNoop?V:(A0)=>{for(let v0=J0;v0<L0.length;++v0)L0[v0].callback(A0)},J$=d.allNoop&&J0===0?L0:W(L0,J0);J$.allBuffers=d.allBuffers,z(c,d,!0,d.length,J$,"",O0),F(d)}else{do{let{chunk:O0,encoding:J$,callback:A0}=L0[J0];L0[J0++]=null;let v0=V0?1:O0.length;z(c,d,!1,v0,O0,J$,A0)}while(J0<L0.length&&!d.writing);if(J0===L0.length)F(d);else if(J0>256)L0.splice(0,J0),d.bufferedIndex=0;else d.bufferedIndex=J0}d.bufferProcessing=!1}R.prototype._write=function(c,d,L0){if(this._writev)this._writev([{chunk:c,encoding:d}],L0);else throw new p("_write()")},R.prototype._writev=null,R.prototype.end=function(c,d,L0){let Y0=this._writableState;if(typeof c==="function")L0=c,c=null,d=null;else if(typeof d==="function")L0=d,d=null;let V0;if(c!==null&&c!==void 0){let k0=j(this,c,d);if(k0 instanceof X)V0=k0}if(Y0.corked)Y0.corked=1,this.uncork();if(V0);else if(!Y0.errored&&!Y0.ending)Y0.ending=!0,e(this,Y0,!0),Y0.ended=!0;else if(Y0.finished)V0=new M0("end");else if(Y0.destroyed)V0=new D0("end");if(typeof L0==="function")if(V0||Y0.finished)Y.nextTick(L0,V0);else Y0[D].push(L0);return this};function K0(c){return c.ending&&!c.destroyed&&c.constructed&&c.length===0&&!c.errored&&c.buffered.length===0&&!c.finished&&!c.writing&&!c.errorEmitted&&!c.closeEmitted}function Q0(c,d){let L0=!1;function Y0(V0){if(L0){G(c,V0!==null&&V0!==void 0?V0:n());return}if(L0=!0,d.pendingcb--,V0){let k0=d[D].splice(0);for(let J0=0;J0<k0.length;J0++)k0[J0](V0);G(c,V0,d.sync)}else if(K0(d))d.prefinished=!0,c.emit("prefinish"),d.pendingcb++,Y.nextTick(I0,c,d)}d.sync=!0,d.pendingcb++;try{c._final(Y0)}catch(V0){Y0(V0)}d.sync=!1}function s(c,d){if(!d.prefinished&&!d.finalCalled)if(typeof c._final==="function"&&!d.destroyed)d.finalCalled=!0,Q0(c,d);else d.prefinished=!0,c.emit("prefinish")}function e(c,d,L0){if(K0(d)){if(s(c,d),d.pendingcb===0){if(L0)d.pendingcb++,Y.nextTick((Y0,V0)=>{if(K0(V0))I0(Y0,V0);else V0.pendingcb--},c,d);else if(K0(d))d.pendingcb++,I0(c,d)}}}function I0(c,d){d.pendingcb--,d.finished=!0;let L0=d[D].splice(0);for(let Y0=0;Y0<L0.length;Y0++)L0[Y0]();if(c.emit("finish"),d.autoDestroy){let Y0=c._readableState;if(!Y0||Y0.autoDestroy&&(Y0.endEmitted||Y0.readable===!1))c.destroy()}}L(R.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(c){if(this._writableState)this._writableState.destroyed=c}},writable:{__proto__:null,get(){let c=this._writableState;return!!c&&c.writable!==!1&&!c.destroyed&&!c.errored&&!c.ending&&!c.ended},set(c){if(this._writableState)this._writableState.writable=!!c}},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 c=this._writableState;if(!c)return!1;return!c.destroyed&&!c.ending&&c.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 Z0=f.destroy;R.prototype.destroy=function(c,d){let L0=this._writableState;if(!L0.destroyed&&(L0.bufferedIndex<L0.buffered.length||L0[D].length))Y.nextTick(r,L0);return Z0.call(this,c,d),this},R.prototype._undestroy=f.undestroy,R.prototype._destroy=function(c,d){d(c)},R.prototype[q.captureRejectionSymbol]=function(c){this.destroy(c)};var C0;function $0(){if(C0===void 0)C0={};return C0}R.fromWeb=function(c,d){return $0().newStreamWritableFromWritableStream(c,d)},R.toWeb=function(c){return $0().newWritableStreamFromStreamWritable(c)}}),jw=IU((J,I)=>{var Y=QI(),W=(iU(),E$(oU)),{isReadable:X,isWritable:K,isIterable:Z,isNodeStream:L,isReadableNodeStream:E,isWritableNodeStream:_,isDuplexNodeStream:S,isReadableStream:A,isWritableStream:q}=zJ(),B=IX(),{AbortError:N,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:w}}=f6(),{destroyer:u}=vQ(),g=ZJ(),b=T8(),p=OH(),{createDeferredPromise:n}=a6(),a=nS(),D0=globalThis.Blob||W.Blob,M0=typeof D0<"u"?function(D){return D instanceof D0}:function(D){return!1},S0=globalThis.AbortController||eG().AbortController,{FunctionPrototypeCall:t}=yU();class R0 extends g{constructor(D){super(D);if((D===null||D===void 0?void 0:D.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((D===null||D===void 0?void 0:D.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}I.exports=function D(O,F){if(S(O))return O;if(E(O))return V({readable:O});if(_(O))return V({writable:O});if(L(O))return V({writable:!1,readable:!1});if(A(O))return V({readable:b.fromWeb(O)});if(q(O))return V({writable:p.fromWeb(O)});if(typeof O==="function"){let{value:j,write:C,final:z,destroy:T}=G(O);if(Z(j))return a(R0,j,{objectMode:!0,write:C,final:z,destroy:T});let x=j===null||j===void 0?void 0:j.then;if(typeof x==="function"){let v,h=t(x,j,(r)=>{if(r!=null)throw new w("nully","body",r)},(r)=>{u(v,r)});return v=new R0({objectMode:!0,readable:!1,write:C,final(r){z(async()=>{try{await h,Y.nextTick(r,null)}catch(U0){Y.nextTick(r,U0)}})},destroy:T})}throw new w("Iterable, AsyncIterable or AsyncFunction",F,j)}if(M0(O))return D(O.arrayBuffer());if(Z(O))return a(R0,O,{objectMode:!0,writable:!1});if(A(O===null||O===void 0?void 0:O.readable)&&q(O===null||O===void 0?void 0:O.writable))return R0.fromWeb(O);if(typeof(O===null||O===void 0?void 0:O.writable)==="object"||typeof(O===null||O===void 0?void 0:O.readable)==="object"){let j=O!==null&&O!==void 0&&O.readable?E(O===null||O===void 0?void 0:O.readable)?O===null||O===void 0?void 0:O.readable:D(O.readable):void 0,C=O!==null&&O!==void 0&&O.writable?_(O===null||O===void 0?void 0:O.writable)?O===null||O===void 0?void 0:O.writable:D(O.writable):void 0;return V({readable:j,writable:C})}let R=O===null||O===void 0?void 0:O.then;if(typeof R==="function"){let j;return t(R,O,(C)=>{if(C!=null)j.push(C);j.push(null)},(C)=>{u(j,C)}),j=new R0({objectMode:!0,writable:!1,read(){}})}throw new f(F,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],O)};function G(D){let{promise:O,resolve:F}=n(),R=new S0,j=R.signal;return{value:D(async function*(){while(!0){let C=O;O=null;let{chunk:z,done:T,cb:x}=await C;if(Y.nextTick(x),T)return;if(j.aborted)throw new N(void 0,{cause:j.reason});({promise:O,resolve:F}=n()),yield z}}(),{signal:j}),write(C,z,T){let x=F;F=null,x({chunk:C,done:!1,cb:T})},final(C){let z=F;F=null,z({done:!0,cb:C})},destroy(C,z){R.abort(),z(C)}}}function V(D){let O=D.readable&&typeof D.readable.read!=="function"?b.wrap(D.readable):D.readable,F=D.writable,R=!!X(O),j=!!K(F),C,z,T,x,v;function h(r){let U0=x;if(x=null,U0)U0(r);else if(r)v.destroy(r)}if(v=new R0({readableObjectMode:!!(O!==null&&O!==void 0&&O.readableObjectMode),writableObjectMode:!!(F!==null&&F!==void 0&&F.writableObjectMode),readable:R,writable:j}),j)B(F,(r)=>{if(j=!1,r)u(O,r);h(r)}),v._write=function(r,U0,K0){if(F.write(r,U0))K0();else C=K0},v._final=function(r){F.end(),z=r},F.on("drain",function(){if(C){let r=C;C=null,r()}}),F.on("finish",function(){if(z){let r=z;z=null,r()}});if(R)B(O,(r)=>{if(R=!1,r)u(O,r);h(r)}),O.on("readable",function(){if(T){let r=T;T=null,r()}}),O.on("end",function(){v.push(null)}),v._read=function(){while(!0){let r=O.read();if(r===null){T=v._read;return}if(!v.push(r))return}};return v._destroy=function(r,U0){if(!r&&x!==null)r=new N;if(T=null,C=null,z=null,x===null)U0(r);else x=U0,u(F,r),u(O,r)},v}}),ZJ=IU((J,I)=>{var{ObjectDefineProperties:Y,ObjectGetOwnPropertyDescriptor:W,ObjectKeys:X,ObjectSetPrototypeOf:K}=yU();I.exports=E;var Z=T8(),L=OH();K(E.prototype,Z.prototype),K(E,Z);{let q=X(L.prototype);for(let B=0;B<q.length;B++){let N=q[B];if(!E.prototype[N])E.prototype[N]=L.prototype[N]}}function E(q){if(!(this instanceof E))return new E(q);if(Z.call(this,q),L.call(this,q),q){if(this.allowHalfOpen=q.allowHalfOpen!==!1,q.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(q.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}Y(E.prototype,{writable:{__proto__:null,...W(L.prototype,"writable")},writableHighWaterMark:{__proto__:null,...W(L.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...W(L.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...W(L.prototype,"writableBuffer")},writableLength:{__proto__:null,...W(L.prototype,"writableLength")},writableFinished:{__proto__:null,...W(L.prototype,"writableFinished")},writableCorked:{__proto__:null,...W(L.prototype,"writableCorked")},writableEnded:{__proto__:null,...W(L.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...W(L.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(q){if(this._readableState&&this._writableState)this._readableState.destroyed=q,this._writableState.destroyed=q}}});var _;function S(){if(_===void 0)_={};return _}E.fromWeb=function(q,B){return S().newStreamDuplexFromReadableWritablePair(q,B)},E.toWeb=function(q){return S().newReadableWritablePairFromDuplex(q)};var A;E.from=function(q){if(!A)A=jw();return A(q,"body")}}),dS=IU((J,I)=>{var{ObjectSetPrototypeOf:Y,Symbol:W}=yU();I.exports=E;var{ERR_METHOD_NOT_IMPLEMENTED:X}=f6().codes,K=ZJ(),{getHighWaterMark:Z}=C8();Y(E.prototype,K.prototype),Y(E,K);var L=W("kCallback");function E(A){if(!(this instanceof E))return new E(A);let q=A?Z(this,A,"readableHighWaterMark",!0):null;if(q===0)A={...A,highWaterMark:null,readableHighWaterMark:q,writableHighWaterMark:A.writableHighWaterMark||0};if(K.call(this,A),this._readableState.sync=!1,this[L]=null,A){if(typeof A.transform==="function")this._transform=A.transform;if(typeof A.flush==="function")this._flush=A.flush}this.on("prefinish",S)}function _(A){if(typeof this._flush==="function"&&!this.destroyed)this._flush((q,B)=>{if(q){if(A)A(q);else this.destroy(q);return}if(B!=null)this.push(B);if(this.push(null),A)A()});else if(this.push(null),A)A()}function S(){if(this._final!==_)_.call(this)}E.prototype._final=_,E.prototype._transform=function(A,q,B){throw new X("_transform()")},E.prototype._write=function(A,q,B){let N=this._readableState,f=this._writableState,w=N.length;this._transform(A,q,(u,g)=>{if(u){B(u);return}if(g!=null)this.push(g);if(f.ended||w===N.length||N.length<N.highWaterMark)B();else this[L]=B})},E.prototype._read=function(){if(this[L]){let A=this[L];this[L]=null,A()}}}),oS=IU((J,I)=>{var{ObjectSetPrototypeOf:Y}=yU();I.exports=X;var W=dS();Y(X.prototype,W.prototype),Y(X,W);function X(K){if(!(this instanceof X))return new X(K);W.call(this,K)}X.prototype._transform=function(K,Z,L){L(null,K)}}),VH=IU((J,I)=>{var Y=QI(),{ArrayIsArray:W,Promise:X,SymbolAsyncIterator:K,SymbolDispose:Z}=yU(),L=IX(),{once:E}=a6(),_=vQ(),S=ZJ(),{aggregateTwoErrors:A,codes:{ERR_INVALID_ARG_TYPE:q,ERR_INVALID_RETURN_VALUE:B,ERR_MISSING_ARGS:N,ERR_STREAM_DESTROYED:f,ERR_STREAM_PREMATURE_CLOSE:w},AbortError:u}=f6(),{validateFunction:g,validateAbortSignal:b}=$2(),{isIterable:p,isReadable:n,isReadableNodeStream:a,isNodeStream:D0,isTransformStream:M0,isWebStream:S0,isReadableStream:t,isReadableFinished:R0}=zJ(),G=globalThis.AbortController||eG().AbortController,V,D,O;function F(r,U0,K0){let Q0=!1;r.on("close",()=>{Q0=!0});let s=L(r,{readable:U0,writable:K0},(e)=>{Q0=!e});return{destroy:(e)=>{if(Q0)return;Q0=!0,_.destroyer(r,e||new f("pipe"))},cleanup:s}}function R(r){return g(r[r.length-1],"streams[stream.length - 1]"),r.pop()}function j(r){if(p(r))return r;else if(a(r))return C(r);throw new q("val",["Readable","Iterable","AsyncIterable"],r)}async function*C(r){if(!D)D=T8();yield*D.prototype[K].call(r)}async function z(r,U0,K0,{end:Q0}){let s,e=null,I0=($0)=>{if($0)s=$0;if(e){let c=e;e=null,c()}},Z0=()=>new X(($0,c)=>{if(s)c(s);else e=()=>{if(s)c(s);else $0()}});U0.on("drain",I0);let C0=L(U0,{readable:!1},I0);try{if(U0.writableNeedDrain)await Z0();for await(let $0 of r)if(!U0.write($0))await Z0();if(Q0)U0.end(),await Z0();K0()}catch($0){K0(s!==$0?A(s,$0):$0)}finally{C0(),U0.off("drain",I0)}}async function T(r,U0,K0,{end:Q0}){if(M0(U0))U0=U0.writable;let s=U0.getWriter();try{for await(let e of r)await s.ready,s.write(e).catch(()=>{});if(await s.ready,Q0)await s.close();K0()}catch(e){try{await s.abort(e),K0(e)}catch(I0){K0(I0)}}}function x(...r){return v(r,E(R(r)))}function v(r,U0,K0){if(r.length===1&&W(r[0]))r=r[0];if(r.length<2)throw new N("streams");let Q0=new G,s=Q0.signal,e=K0===null||K0===void 0?void 0:K0.signal,I0=[];b(e,"options.signal");function Z0(){V0(new u)}O=O||a6().addAbortListener;let C0;if(e)C0=O(e,Z0);let $0,c,d=[],L0=0;function Y0(A0){V0(A0,--L0===0)}function V0(A0,v0){var M$;if(A0&&(!$0||$0.code==="ERR_STREAM_PREMATURE_CLOSE"))$0=A0;if(!$0&&!v0)return;while(d.length)d.shift()($0);if((M$=C0)===null||M$===void 0||M$[Z](),Q0.abort(),v0){if(!$0)I0.forEach((m0)=>m0());Y.nextTick(U0,$0,c)}}let k0;for(let A0=0;A0<r.length;A0++){let v0=r[A0],M$=A0<r.length-1,m0=A0>0,p0=M$||(K0===null||K0===void 0?void 0:K0.end)!==!1,r$=A0===r.length-1;if(D0(v0)){let h0=function(c0){if(c0&&c0.name!=="AbortError"&&c0.code!=="ERR_STREAM_PREMATURE_CLOSE")Y0(c0)};var J0=h0;if(p0){let{destroy:c0,cleanup:YU}=F(v0,M$,m0);if(d.push(c0),n(v0)&&r$)I0.push(YU)}if(v0.on("error",h0),n(v0)&&r$)I0.push(()=>{v0.removeListener("error",h0)})}if(A0===0)if(typeof v0==="function"){if(k0=v0({signal:s}),!p(k0))throw new B("Iterable, AsyncIterable or Stream","source",k0)}else if(p(v0)||a(v0)||M0(v0))k0=v0;else k0=S.from(v0);else if(typeof v0==="function"){if(M0(k0)){var O0;k0=j((O0=k0)===null||O0===void 0?void 0:O0.readable)}else k0=j(k0);if(k0=v0(k0,{signal:s}),M$){if(!p(k0,!0))throw new B("AsyncIterable",`transform[${A0-1}]`,k0)}else{var J$;if(!V)V=oS();let h0=new V({objectMode:!0}),c0=(J$=k0)===null||J$===void 0?void 0:J$.then;if(typeof c0==="function")L0++,c0.call(k0,(i0)=>{if(c=i0,i0!=null)h0.write(i0);if(p0)h0.end();Y.nextTick(Y0)},(i0)=>{h0.destroy(i0),Y.nextTick(Y0,i0)});else if(p(k0,!0))L0++,z(k0,h0,Y0,{end:p0});else if(t(k0)||M0(k0)){let i0=k0.readable||k0;L0++,z(i0,h0,Y0,{end:p0})}else throw new B("AsyncIterable or Promise","destination",k0);k0=h0;let{destroy:YU,cleanup:t0}=F(k0,!1,!0);if(d.push(YU),r$)I0.push(t0)}}else if(D0(v0)){if(a(k0)){L0+=2;let h0=h(k0,v0,Y0,{end:p0});if(n(v0)&&r$)I0.push(h0)}else if(M0(k0)||t(k0)){let h0=k0.readable||k0;L0++,z(h0,v0,Y0,{end:p0})}else if(p(k0))L0++,z(k0,v0,Y0,{end:p0});else throw new q("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],k0);k0=v0}else if(S0(v0)){if(a(k0))L0++,T(j(k0),v0,Y0,{end:p0});else if(t(k0)||p(k0))L0++,T(k0,v0,Y0,{end:p0});else if(M0(k0))L0++,T(k0.readable,v0,Y0,{end:p0});else throw new q("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],k0);k0=v0}else k0=S.from(v0)}if(s!==null&&s!==void 0&&s.aborted||e!==null&&e!==void 0&&e.aborted)Y.nextTick(Z0);return k0}function h(r,U0,K0,{end:Q0}){let s=!1;if(U0.on("close",()=>{if(!s)K0(new w)}),r.pipe(U0,{end:!1}),Q0){let I0=function(){s=!0,U0.end()};var e=I0;if(R0(r))Y.nextTick(I0);else r.once("end",I0)}else K0();return L(r,{readable:!0,writable:!1},(I0)=>{let Z0=r._readableState;if(I0&&I0.code==="ERR_STREAM_PREMATURE_CLOSE"&&Z0&&Z0.ended&&!Z0.errored&&!Z0.errorEmitted)r.once("end",K0).once("error",K0);else K0(I0)}),L(U0,{readable:!1,writable:!0},K0)}I.exports={pipelineImpl:v,pipeline:x}}),iS=IU((J,I)=>{var{pipeline:Y}=VH(),W=ZJ(),{destroyer:X}=vQ(),{isNodeStream:K,isReadable:Z,isWritable:L,isWebStream:E,isTransformStream:_,isWritableStream:S,isReadableStream:A}=zJ(),{AbortError:q,codes:{ERR_INVALID_ARG_VALUE:B,ERR_MISSING_ARGS:N}}=f6(),f=IX();I.exports=function(...w){if(w.length===0)throw new N("streams");if(w.length===1)return W.from(w[0]);let u=[...w];if(typeof w[0]==="function")w[0]=W.from(w[0]);if(typeof w[w.length-1]==="function"){let G=w.length-1;w[G]=W.from(w[G])}for(let G=0;G<w.length;++G){if(!K(w[G])&&!E(w[G]))continue;if(G<w.length-1&&!(Z(w[G])||A(w[G])||_(w[G])))throw new B(`streams[${G}]`,u[G],"must be readable");if(G>0&&!(L(w[G])||S(w[G])||_(w[G])))throw new B(`streams[${G}]`,u[G],"must be writable")}let g,b,p,n,a;function D0(G){let V=n;if(n=null,V)V(G);else if(G)a.destroy(G);else if(!R0&&!t)a.destroy()}let M0=w[0],S0=Y(w,D0),t=!!(L(M0)||S(M0)||_(M0)),R0=!!(Z(S0)||A(S0)||_(S0));if(a=new W({writableObjectMode:!!(M0!==null&&M0!==void 0&&M0.writableObjectMode),readableObjectMode:!!(S0!==null&&S0!==void 0&&S0.readableObjectMode),writable:t,readable:R0}),t){if(K(M0))a._write=function(V,D,O){if(M0.write(V,D))O();else g=O},a._final=function(V){M0.end(),b=V},M0.on("drain",function(){if(g){let V=g;g=null,V()}});else if(E(M0)){let V=(_(M0)?M0.writable:M0).getWriter();a._write=async function(D,O,F){try{await V.ready,V.write(D).catch(()=>{}),F()}catch(R){F(R)}},a._final=async function(D){try{await V.ready,V.close().catch(()=>{}),b=D}catch(O){D(O)}}}let G=_(S0)?S0.readable:S0;f(G,()=>{if(b){let V=b;b=null,V()}})}if(R0){if(K(S0))S0.on("readable",function(){if(p){let G=p;p=null,G()}}),S0.on("end",function(){a.push(null)}),a._read=function(){while(!0){let G=S0.read();if(G===null){p=a._read;return}if(!a.push(G))return}};else if(E(S0)){let G=(_(S0)?S0.readable:S0).getReader();a._read=async function(){while(!0)try{let{value:V,done:D}=await G.read();if(!a.push(V))return;if(D){a.push(null);return}}catch{return}}}}return a._destroy=function(G,V){if(!G&&n!==null)G=new q;if(p=null,g=null,b=null,n===null)V(G);else if(n=V,K(S0))X(S0,G)},a}}),Ew=IU((J,I)=>{var Y=globalThis.AbortController||eG().AbortController,{codes:{ERR_INVALID_ARG_VALUE:W,ERR_INVALID_ARG_TYPE:X,ERR_MISSING_ARGS:K,ERR_OUT_OF_RANGE:Z},AbortError:L}=f6(),{validateAbortSignal:E,validateInteger:_,validateObject:S}=$2(),A=yU().Symbol("kWeak"),q=yU().Symbol("kResistStopPropagation"),{finished:B}=IX(),N=iS(),{addAbortSignalNoValidate:f}=A8(),{isWritable:w,isNodeStream:u}=zJ(),{deprecate:g}=a6(),{ArrayPrototypePush:b,Boolean:p,MathFloor:n,Number:a,NumberIsNaN:D0,Promise:M0,PromiseReject:S0,PromiseResolve:t,PromisePrototypeThen:R0,Symbol:G}=yU(),V=G("kEmpty"),D=G("kEof");function O(e,I0){if(I0!=null)S(I0,"options");if((I0===null||I0===void 0?void 0:I0.signal)!=null)E(I0.signal,"options.signal");if(u(e)&&!w(e))throw new W("stream",e,"must be writable");let Z0=N(this,e);if(I0!==null&&I0!==void 0&&I0.signal)f(I0.signal,Z0);return Z0}function F(e,I0){if(typeof e!=="function")throw new X("fn",["Function","AsyncFunction"],e);if(I0!=null)S(I0,"options");if((I0===null||I0===void 0?void 0:I0.signal)!=null)E(I0.signal,"options.signal");let Z0=1;if((I0===null||I0===void 0?void 0:I0.concurrency)!=null)Z0=n(I0.concurrency);let C0=Z0-1;if((I0===null||I0===void 0?void 0:I0.highWaterMark)!=null)C0=n(I0.highWaterMark);return _(Z0,"options.concurrency",1),_(C0,"options.highWaterMark",0),C0+=Z0,async function*(){let $0=a6().AbortSignalAny([I0===null||I0===void 0?void 0:I0.signal].filter(p)),c=this,d=[],L0={signal:$0},Y0,V0,k0=!1,J0=0;function O0(){k0=!0,J$()}function J$(){J0-=1,A0()}function A0(){if(V0&&!k0&&J0<Z0&&d.length<C0)V0(),V0=null}async function v0(){try{for await(let M$ of c){if(k0)return;if($0.aborted)throw new L;try{if(M$=e(M$,L0),M$===V)continue;M$=t(M$)}catch(m0){M$=S0(m0)}if(J0+=1,R0(M$,J$,O0),d.push(M$),Y0)Y0(),Y0=null;if(!k0&&(d.length>=C0||J0>=Z0))await new M0((m0)=>{V0=m0})}d.push(D)}catch(M$){let m0=S0(M$);R0(m0,J$,O0),d.push(m0)}finally{if(k0=!0,Y0)Y0(),Y0=null}}v0();try{while(!0){while(d.length>0){let M$=await d[0];if(M$===D)return;if($0.aborted)throw new L;if(M$!==V)yield M$;d.shift(),A0()}await new M0((M$)=>{Y0=M$})}}finally{if(k0=!0,V0)V0(),V0=null}}.call(this)}function R(e=void 0){if(e!=null)S(e,"options");if((e===null||e===void 0?void 0:e.signal)!=null)E(e.signal,"options.signal");return async function*(){let I0=0;for await(let C0 of this){var Z0;if(e!==null&&e!==void 0&&(Z0=e.signal)!==null&&Z0!==void 0&&Z0.aborted)throw new L({cause:e.signal.reason});yield[I0++,C0]}}.call(this)}async function j(e,I0=void 0){for await(let Z0 of x.call(this,e,I0))return!0;return!1}async function C(e,I0=void 0){if(typeof e!=="function")throw new X("fn",["Function","AsyncFunction"],e);return!await j.call(this,async(...Z0)=>{return!await e(...Z0)},I0)}async function z(e,I0){for await(let Z0 of x.call(this,e,I0))return Z0;return}async function T(e,I0){if(typeof e!=="function")throw new X("fn",["Function","AsyncFunction"],e);async function Z0(C0,$0){return await e(C0,$0),V}for await(let C0 of F.call(this,Z0,I0));}function x(e,I0){if(typeof e!=="function")throw new X("fn",["Function","AsyncFunction"],e);async function Z0(C0,$0){if(await e(C0,$0))return C0;return V}return F.call(this,Z0,I0)}class v extends K{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function h(e,I0,Z0){var C0;if(typeof e!=="function")throw new X("reducer",["Function","AsyncFunction"],e);if(Z0!=null)S(Z0,"options");if((Z0===null||Z0===void 0?void 0:Z0.signal)!=null)E(Z0.signal,"options.signal");let $0=arguments.length>1;if(Z0!==null&&Z0!==void 0&&(C0=Z0.signal)!==null&&C0!==void 0&&C0.aborted){let V0=new L(void 0,{cause:Z0.signal.reason});throw this.once("error",()=>{}),await B(this.destroy(V0)),V0}let c=new Y,d=c.signal;if(Z0!==null&&Z0!==void 0&&Z0.signal){let V0={once:!0,[A]:this,[q]:!0};Z0.signal.addEventListener("abort",()=>c.abort(),V0)}let L0=!1;try{for await(let V0 of this){var Y0;if(L0=!0,Z0!==null&&Z0!==void 0&&(Y0=Z0.signal)!==null&&Y0!==void 0&&Y0.aborted)throw new L;if(!$0)I0=V0,$0=!0;else I0=await e(I0,V0,{signal:d})}if(!L0&&!$0)throw new v}finally{c.abort()}return I0}async function r(e){if(e!=null)S(e,"options");if((e===null||e===void 0?void 0:e.signal)!=null)E(e.signal,"options.signal");let I0=[];for await(let C0 of this){var Z0;if(e!==null&&e!==void 0&&(Z0=e.signal)!==null&&Z0!==void 0&&Z0.aborted)throw new L(void 0,{cause:e.signal.reason});b(I0,C0)}return I0}function U0(e,I0){let Z0=F.call(this,e,I0);return async function*(){for await(let C0 of Z0)yield*C0}.call(this)}function K0(e){if(e=a(e),D0(e))return 0;if(e<0)throw new Z("number",">= 0",e);return e}function Q0(e,I0=void 0){if(I0!=null)S(I0,"options");if((I0===null||I0===void 0?void 0:I0.signal)!=null)E(I0.signal,"options.signal");return e=K0(e),async function*(){var Z0;if(I0!==null&&I0!==void 0&&(Z0=I0.signal)!==null&&Z0!==void 0&&Z0.aborted)throw new L;for await(let $0 of this){var C0;if(I0!==null&&I0!==void 0&&(C0=I0.signal)!==null&&C0!==void 0&&C0.aborted)throw new L;if(e--<=0)yield $0}}.call(this)}function s(e,I0=void 0){if(I0!=null)S(I0,"options");if((I0===null||I0===void 0?void 0:I0.signal)!=null)E(I0.signal,"options.signal");return e=K0(e),async function*(){var Z0;if(I0!==null&&I0!==void 0&&(Z0=I0.signal)!==null&&Z0!==void 0&&Z0.aborted)throw new L;for await(let $0 of this){var C0;if(I0!==null&&I0!==void 0&&(C0=I0.signal)!==null&&C0!==void 0&&C0.aborted)throw new L;if(e-- >0)yield $0;if(e<=0)return}}.call(this)}I.exports.streamReturningOperators={asIndexedPairs:g(R,"readable.asIndexedPairs will be removed in a future version."),drop:Q0,filter:x,flatMap:U0,map:F,take:s,compose:O},I.exports.promiseReturningOperators={every:C,forEach:T,reduce:h,toArray:r,some:j,find:z}}),rS=IU((J,I)=>{var{ArrayPrototypePop:Y,Promise:W}=yU(),{isIterable:X,isNodeStream:K,isWebStream:Z}=zJ(),{pipelineImpl:L}=VH(),{finished:E}=IX();tS();function _(...S){return new W((A,q)=>{let B,N,f=S[S.length-1];if(f&&typeof f==="object"&&!K(f)&&!X(f)&&!Z(f)){let w=Y(S);B=w.signal,N=w.end}L(S,(w,u)=>{if(w)q(w);else A(u)},{signal:B,end:N})})}I.exports={finished:E,pipeline:_}}),tS=IU((J,I)=>{var{Buffer:Y}=(iU(),E$(oU)),{ObjectDefineProperty:W,ObjectKeys:X,ReflectApply:K}=yU(),{promisify:{custom:Z}}=a6(),{streamReturningOperators:L,promiseReturningOperators:E}=Ew(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:_}}=f6(),S=iS(),{setDefaultHighWaterMark:A,getDefaultHighWaterMark:q}=C8(),{pipeline:B}=VH(),{destroyer:N}=vQ(),f=IX(),w=rS(),u=zJ(),g=I.exports=WH().Stream;g.isDestroyed=u.isDestroyed,g.isDisturbed=u.isDisturbed,g.isErrored=u.isErrored,g.isReadable=u.isReadable,g.isWritable=u.isWritable,g.Readable=T8();for(let p of X(L)){let n=function(...D0){if(new.target)throw _();return g.Readable.from(K(a,this,D0))},a=L[p];W(n,"name",{__proto__:null,value:a.name}),W(n,"length",{__proto__:null,value:a.length}),W(g.Readable.prototype,p,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let p of X(E)){let n=function(...D0){if(new.target)throw _();return K(a,this,D0)},a=E[p];W(n,"name",{__proto__:null,value:a.name}),W(n,"length",{__proto__:null,value:a.length}),W(g.Readable.prototype,p,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}g.Writable=OH(),g.Duplex=ZJ(),g.Transform=dS(),g.PassThrough=oS(),g.pipeline=B;var{addAbortSignal:b}=A8();g.addAbortSignal=b,g.finished=f,g.destroy=N,g.compose=S,g.setDefaultHighWaterMark=A,g.getDefaultHighWaterMark=q,W(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return w}}),W(B,Z,{__proto__:null,enumerable:!0,get(){return w.pipeline}}),W(f,Z,{__proto__:null,enumerable:!0,get(){return w.finished}}),g.Stream=g,g._isUint8Array=function(p){return p instanceof Uint8Array},g._uint8ArrayToBuffer=function(p){return Y.from(p.buffer,p.byteOffset,p.byteLength)}}),Bw=IU((J,I)=>{var Y=NQ();{let W=tS(),X=rS(),K=W.Readable.destroy;I.exports=W.Readable,I.exports._uint8ArrayToBuffer=W._uint8ArrayToBuffer,I.exports._isUint8Array=W._isUint8Array,I.exports.isDisturbed=W.isDisturbed,I.exports.isErrored=W.isErrored,I.exports.isReadable=W.isReadable,I.exports.Readable=W.Readable,I.exports.Writable=W.Writable,I.exports.Duplex=W.Duplex,I.exports.Transform=W.Transform,I.exports.PassThrough=W.PassThrough,I.exports.addAbortSignal=W.addAbortSignal,I.exports.finished=W.finished,I.exports.destroy=W.destroy,I.exports.destroy=K,I.exports.pipeline=W.pipeline,I.exports.compose=W.compose,Object.defineProperty(W,"promises",{configurable:!0,enumerable:!0,get(){return X}}),I.exports.Stream=W.Stream}I.exports.default=I.exports});aS.exports=Bw()});var A1={};w6(A1,{webcrypto:()=>Ub,rng:()=>Fy,randomUUID:()=>kQ,randomFillSync:()=>iy,randomFill:()=>oy,randomBytes:()=>Dy,publicEncrypt:()=>my,publicDecrypt:()=>ny,pseudoRandomBytes:()=>Hy,prng:()=>Vy,privateEncrypt:()=>ly,privateDecrypt:()=>dy,pbkdf2Sync:()=>Ry,pbkdf2:()=>Ty,listCiphers:()=>ky,getRandomValues:()=>sy,getHashes:()=>Cy,getDiffieHellman:()=>wy,getCurves:()=>$b,getCiphers:()=>Ny,default:()=>Jb,createVerify:()=>hy,createSign:()=>by,createHmac:()=>Ay,createHash:()=>M1,createECDH:()=>py,createDiffieHellmanGroup:()=>xy,createDiffieHellman:()=>fy,createDecipheriv:()=>vy,createDecipher:()=>Ey,createCredentials:()=>ry,createCipheriv:()=>Sy,createCipher:()=>_y,constants:()=>ty,Verify:()=>cy,Sign:()=>uy,Hmac:()=>My,Hash:()=>Ly,DiffieHellmanGroup:()=>gy,DiffieHellman:()=>yy,Decipheriv:()=>By,Decipher:()=>jy,DEFAULT_ENCODING:()=>ay,Cipheriv:()=>qy,Cipher:()=>Py});function $b(){return ey}var vw,Nw,sS,kw,gw,xw=(J,I,Y)=>{Y=J!=null?vw(Nw(J)):{};let W=I||!J||!J.__esModule?sS(Y,"default",{value:J,enumerable:!0}):Y;for(let X of kw(J))if(!gw.call(W,X))sS(W,X,{get:()=>J[X],enumerable:!0});return W},u0=(J,I)=>()=>(I||J((I={exports:{}}).exports,I),I.exports),R8,P8,$j,ww,FH,DH,y6,fw,J2,Uj,yw,bw,uw,hw,Jj,cw,pw,mw,lw,nw,dw,ow,iw,rw,tw,X2,_8,Xj,aw,Ij,Qj,sw,I2,LH,MH,ew,Yj,AH,$f,Gj,Uf,Zj,zj,Jf,Xf,If,Qf,Yf,Gf,Zf,zf,Kf,Wf,Of,Vf,Hf,Ff,CH,Kj,Df,Wj,Lf,Mf,Af,Cf,KJ,QX,Oj,y1,Vj,q8,Tf,L1,Rf,Pf,_f,Hj,B4,Q2,Fj,qf,Dj,Sf,Lj,jf,Ef,Bf,vf,TH,Nf,RH,kf,gf,xf,wf,ff,yf,bf,uf,hf,cf,pf,mf,lf,nf,eS,df,U2,of,Mj,Aj,rf,tf,Cj,af,sf,Y2,ef,$y,Uy,Jy,Xy,Iy,Tj,Qy,Rj,Pj,_j,PH,qj,Yy,Sj,Gy,Zy,HH,zy,Ky,Wy,Oy,h$,Vy,Hy,Fy,Dy,Ly,M1,My,Ay,Cy,Ty,Ry,Py,_y,qy,Sy,jy,Ey,By,vy,Ny,ky,gy,xy,wy,fy,yy,by,uy,hy,cy,py,my,ly,ny,dy,oy,iy,ry,ty,ay="buffer",sy=(J)=>{return crypto.getRandomValues(J)},kQ=()=>{return crypto.randomUUID()},ey,Ub,Jb;var bU=CQ(()=>{vw=Object.create,{getPrototypeOf:Nw,defineProperty:sS,getOwnPropertyNames:kw}=Object,gw=Object.prototype.hasOwnProperty,R8=u0((J,I)=>{I.exports=(bU(),E$(A1)).randomBytes}),P8=u0((J,I)=>{I.exports=(bU(),E$(A1)).createHash}),$j=u0((J,I)=>{I.exports=(bU(),E$(A1)).createHmac}),ww=u0((J,I)=>{I.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"}}}),FH=u0((J,I)=>{var Y=isFinite,W=Math.pow(2,30)-1;I.exports=function(X,K){if(typeof X!=="number")throw TypeError("Iterations not a number");if(X<0||!Y(X))throw TypeError("Bad iterations");if(typeof K!=="number")throw TypeError("Key length not a number");if(K<0||K>W||K!==K)throw TypeError("Bad key length")}}),DH=u0((J,I)=>{var Y;if(globalThis.process&&globalThis.process.browser)Y="utf-8";else if(globalThis.process&&globalThis.process.version)W=parseInt(process.version.split(".")[0].slice(1),10),Y=W>=6?"utf-8":"binary";else Y="utf-8";var W;I.exports=Y}),y6=u0((J,I)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Y=(iU(),E$(oU)),W=Y.Buffer;function X(Z,L){for(var E in Z)L[E]=Z[E]}if(W.from&&W.alloc&&W.allocUnsafe&&W.allocUnsafeSlow)I.exports=Y;else X(Y,J),J.Buffer=K;function K(Z,L,E){return W(Z,L,E)}K.prototype=Object.create(W.prototype),X(W,K),K.from=function(Z,L,E){if(typeof Z==="number")throw TypeError("Argument must not be a number");return W(Z,L,E)},K.alloc=function(Z,L,E){if(typeof Z!=="number")throw TypeError("Argument must be a number");var _=W(Z);if(L!==void 0)if(typeof E==="string")_.fill(L,E);else _.fill(L);else _.fill(0);return _},K.allocUnsafe=function(Z){if(typeof Z!=="number")throw TypeError("Argument must be a number");return W(Z)},K.allocUnsafeSlow=function(Z){if(typeof Z!=="number")throw TypeError("Argument must be a number");return Y.SlowBuffer(Z)}}),fw=u0((J,I)=>{var Y={}.toString;I.exports=Array.isArray||function(W){return Y.call(W)=="[object Array]"}}),J2=u0((J,I)=>{I.exports=TypeError}),Uj=u0((J,I)=>{I.exports=Object}),yw=u0((J,I)=>{I.exports=Error}),bw=u0((J,I)=>{I.exports=EvalError}),uw=u0((J,I)=>{I.exports=RangeError}),hw=u0((J,I)=>{I.exports=ReferenceError}),Jj=u0((J,I)=>{I.exports=SyntaxError}),cw=u0((J,I)=>{I.exports=URIError}),pw=u0((J,I)=>{I.exports=Math.abs}),mw=u0((J,I)=>{I.exports=Math.floor}),lw=u0((J,I)=>{I.exports=Math.max}),nw=u0((J,I)=>{I.exports=Math.min}),dw=u0((J,I)=>{I.exports=Math.pow}),ow=u0((J,I)=>{I.exports=Math.round}),iw=u0((J,I)=>{I.exports=Number.isNaN||function(Y){return Y!==Y}}),rw=u0((J,I)=>{var Y=iw();I.exports=function(W){if(Y(W)||W===0)return W;return W<0?-1:1}}),tw=u0((J,I)=>{I.exports=Object.getOwnPropertyDescriptor}),X2=u0((J,I)=>{var Y=tw();if(Y)try{Y([],"length")}catch(W){Y=null}I.exports=Y}),_8=u0((J,I)=>{var Y=Object.defineProperty||!1;if(Y)try{Y({},"a",{value:1})}catch(W){Y=!1}I.exports=Y}),Xj=u0((J,I)=>{I.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var Y={},W=Symbol("test"),X=Object(W);if(typeof W==="string")return!1;if(Object.prototype.toString.call(W)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(X)!=="[object Symbol]")return!1;var K=42;Y[W]=K;for(var Z in Y)return!1;if(typeof Object.keys==="function"&&Object.keys(Y).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(Y).length!==0)return!1;var L=Object.getOwnPropertySymbols(Y);if(L.length!==1||L[0]!==W)return!1;if(!Object.prototype.propertyIsEnumerable.call(Y,W))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var E=Object.getOwnPropertyDescriptor(Y,W);if(E.value!==K||E.enumerable!==!0)return!1}return!0}}),aw=u0((J,I)=>{var Y=typeof Symbol<"u"&&Symbol,W=Xj();I.exports=function(){if(typeof Y!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof Y("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return W()}}),Ij=u0((J,I)=>{I.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),Qj=u0((J,I)=>{var Y=Uj();I.exports=Y.getPrototypeOf||null}),sw=u0((J,I)=>{var Y="Function.prototype.bind called on incompatible ",W=Object.prototype.toString,X=Math.max,K="[object Function]",Z=function(_,S){var A=[];for(var q=0;q<_.length;q+=1)A[q]=_[q];for(var B=0;B<S.length;B+=1)A[B+_.length]=S[B];return A},L=function(_,S){var A=[];for(var q=S||0,B=0;q<_.length;q+=1,B+=1)A[B]=_[q];return A},E=function(_,S){var A="";for(var q=0;q<_.length;q+=1)if(A+=_[q],q+1<_.length)A+=S;return A};I.exports=function(_){var S=this;if(typeof S!=="function"||W.apply(S)!==K)throw TypeError(Y+S);var A=L(arguments,1),q,B=function(){if(this instanceof q){var g=S.apply(this,Z(A,arguments));if(Object(g)===g)return g;return this}return S.apply(_,Z(A,arguments))},N=X(0,S.length-A.length),f=[];for(var w=0;w<N;w++)f[w]="$"+w;if(q=Function("binder","return function ("+E(f,",")+"){ return binder.apply(this,arguments); }")(B),S.prototype){var u=function(){};u.prototype=S.prototype,q.prototype=new u,u.prototype=null}return q}}),I2=u0((J,I)=>{var Y=sw();I.exports=Function.prototype.bind||Y}),LH=u0((J,I)=>{I.exports=Function.prototype.call}),MH=u0((J,I)=>{I.exports=Function.prototype.apply}),ew=u0((J,I)=>{I.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),Yj=u0((J,I)=>{var Y=I2(),W=MH(),X=LH(),K=ew();I.exports=K||Y.call(X,W)}),AH=u0((J,I)=>{var Y=I2(),W=J2(),X=LH(),K=Yj();I.exports=function(Z){if(Z.length<1||typeof Z[0]!=="function")throw new W("a function is required");return K(Y,X,Z)}}),$f=u0((J,I)=>{var Y=AH(),W=X2(),X;try{X=[].__proto__===Array.prototype}catch(E){if(!E||typeof E!=="object"||!("code"in E)||E.code!=="ERR_PROTO_ACCESS")throw E}var K=!!X&&W&&W(Object.prototype,"__proto__"),Z=Object,L=Z.getPrototypeOf;I.exports=K&&typeof K.get==="function"?Y([K.get]):typeof L==="function"?function(E){return L(E==null?E:Z(E))}:!1}),Gj=u0((J,I)=>{var Y=Ij(),W=Qj(),X=$f();I.exports=Y?function(K){return Y(K)}:W?function(K){if(!K||typeof K!=="object"&&typeof K!=="function")throw TypeError("getProto: not an object");return W(K)}:X?function(K){return X(K)}:null}),Uf=u0((J,I)=>{var Y=Function.prototype.call,W=Object.prototype.hasOwnProperty,X=I2();I.exports=X.call(Y,W)}),Zj=u0((J,I)=>{var Y,W=Uj(),X=yw(),K=bw(),Z=uw(),L=hw(),E=Jj(),_=J2(),S=cw(),A=pw(),q=mw(),B=lw(),N=nw(),f=dw(),w=ow(),u=rw(),g=Function,b=function(I0){try{return g('"use strict"; return ('+I0+").constructor;")()}catch(Z0){}},p=X2(),n=_8(),a=function(){throw new _},D0=p?function(){try{return arguments.callee,a}catch(I0){try{return p(arguments,"callee").get}catch(Z0){return a}}}():a,M0=aw()(),S0=Gj(),t=Qj(),R0=Ij(),G=MH(),V=LH(),D={},O=typeof Uint8Array>"u"||!S0?Y:S0(Uint8Array),F={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Y:ArrayBuffer,"%ArrayIteratorPrototype%":M0&&S0?S0([][Symbol.iterator]()):Y,"%AsyncFromSyncIteratorPrototype%":Y,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":typeof Atomics>"u"?Y:Atomics,"%BigInt%":typeof BigInt>"u"?Y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":X,"%eval%":eval,"%EvalError%":K,"%Float16Array%":typeof Float16Array>"u"?Y:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Y:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":D,"%Int8Array%":typeof Int8Array>"u"?Y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M0&&S0?S0(S0([][Symbol.iterator]())):Y,"%JSON%":typeof JSON==="object"?JSON:Y,"%Map%":typeof Map>"u"?Y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!M0||!S0?Y:S0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":W,"%Object.getOwnPropertyDescriptor%":p,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Y:Promise,"%Proxy%":typeof Proxy>"u"?Y:Proxy,"%RangeError%":Z,"%ReferenceError%":L,"%Reflect%":typeof Reflect>"u"?Y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!M0||!S0?Y:S0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M0&&S0?S0(""[Symbol.iterator]()):Y,"%Symbol%":M0?Symbol:Y,"%SyntaxError%":E,"%ThrowTypeError%":D0,"%TypedArray%":O,"%TypeError%":_,"%Uint8Array%":typeof Uint8Array>"u"?Y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Y:Uint32Array,"%URIError%":S,"%WeakMap%":typeof WeakMap>"u"?Y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Y:WeakSet,"%Function.prototype.call%":V,"%Function.prototype.apply%":G,"%Object.defineProperty%":n,"%Object.getPrototypeOf%":t,"%Math.abs%":A,"%Math.floor%":q,"%Math.max%":B,"%Math.min%":N,"%Math.pow%":f,"%Math.round%":w,"%Math.sign%":u,"%Reflect.getPrototypeOf%":R0};if(S0)try{null.error}catch(I0){R=S0(S0(I0)),F["%Error.prototype%"]=R}var R,j=function I0(Z0){var C0;if(Z0==="%AsyncFunction%")C0=b("async function () {}");else if(Z0==="%GeneratorFunction%")C0=b("function* () {}");else if(Z0==="%AsyncGeneratorFunction%")C0=b("async function* () {}");else if(Z0==="%AsyncGenerator%"){var $0=I0("%AsyncGeneratorFunction%");if($0)C0=$0.prototype}else if(Z0==="%AsyncIteratorPrototype%"){var c=I0("%AsyncGenerator%");if(c&&S0)C0=S0(c.prototype)}return F[Z0]=C0,C0},C={__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"]},z=I2(),T=Uf(),x=z.call(V,Array.prototype.concat),v=z.call(G,Array.prototype.splice),h=z.call(V,String.prototype.replace),r=z.call(V,String.prototype.slice),U0=z.call(V,RegExp.prototype.exec),K0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q0=/\\(\\)?/g,s=function(I0){var Z0=r(I0,0,1),C0=r(I0,-1);if(Z0==="%"&&C0!=="%")throw new E("invalid intrinsic syntax, expected closing `%`");else if(C0==="%"&&Z0!=="%")throw new E("invalid intrinsic syntax, expected opening `%`");var $0=[];return h(I0,K0,function(c,d,L0,Y0){$0[$0.length]=L0?h(Y0,Q0,"$1"):d||c}),$0},e=function(I0,Z0){var C0=I0,$0;if(T(C,C0))$0=C[C0],C0="%"+$0[0]+"%";if(T(F,C0)){var c=F[C0];if(c===D)c=j(C0);if(typeof c>"u"&&!Z0)throw new _("intrinsic "+I0+" exists, but is not available. Please file an issue!");return{alias:$0,name:C0,value:c}}throw new E("intrinsic "+I0+" does not exist!")};I.exports=function(I0,Z0){if(typeof I0!=="string"||I0.length===0)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z0!=="boolean")throw new _('"allowMissing" argument must be a boolean');if(U0(/^%?[^%]*%?$/,I0)===null)throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var C0=s(I0),$0=C0.length>0?C0[0]:"",c=e("%"+$0+"%",Z0),d=c.name,L0=c.value,Y0=!1,V0=c.alias;if(V0)$0=V0[0],v(C0,x([0,1],V0));for(var k0=1,J0=!0;k0<C0.length;k0+=1){var O0=C0[k0],J$=r(O0,0,1),A0=r(O0,-1);if((J$==='"'||J$==="'"||J$==="`"||(A0==='"'||A0==="'"||A0==="`"))&&J$!==A0)throw new E("property names with quotes must have matching quotes");if(O0==="constructor"||!J0)Y0=!0;if($0+="."+O0,d="%"+$0+"%",T(F,d))L0=F[d];else if(L0!=null){if(!(O0 in L0)){if(!Z0)throw new _("base intrinsic for "+I0+" exists, but the property is not available.");return}if(p&&k0+1>=C0.length){var v0=p(L0,O0);if(J0=!!v0,J0&&"get"in v0&&!("originalValue"in v0.get))L0=v0.get;else L0=L0[O0]}else J0=T(L0,O0),L0=L0[O0];if(J0&&!Y0)F[d]=L0}}return L0}}),zj=u0((J,I)=>{var Y=Zj(),W=AH(),X=W([Y("%String.prototype.indexOf%")]);I.exports=function(K,Z){var L=Y(K,!!Z);if(typeof L==="function"&&X(K,".prototype.")>-1)return W([L]);return L}}),Jf=u0((J,I)=>{var Y=Function.prototype.toString,W=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,X,K;if(typeof W==="function"&&typeof Object.defineProperty==="function")try{X=Object.defineProperty({},"length",{get:function(){throw K}}),K={},W(function(){throw 42},null,X)}catch(p){if(p!==K)W=null}else W=null;var Z=/^\s*class\b/,L=function(p){try{var n=Y.call(p);return Z.test(n)}catch(a){return!1}},E=function(p){try{if(L(p))return!1;return Y.call(p),!0}catch(n){return!1}},_=Object.prototype.toString,S="[object Object]",A="[object Function]",q="[object GeneratorFunction]",B="[object HTMLAllCollection]",N="[object HTML document.all class]",f="[object HTMLCollection]",w=typeof Symbol==="function"&&!!Symbol.toStringTag,u=!(0 in[,]),g=function(){return!1};if(typeof document==="object"){if(b=document.all,_.call(b)===_.call(document.all))g=function(p){if((u||!p)&&(typeof p>"u"||typeof p==="object"))try{var n=_.call(p);return(n===B||n===N||n===f||n===S)&&p("")==null}catch(a){}return!1}}var b;I.exports=W?function(p){if(g(p))return!0;if(!p)return!1;if(typeof p!=="function"&&typeof p!=="object")return!1;try{W(p,null,X)}catch(n){if(n!==K)return!1}return!L(p)&&E(p)}:function(p){if(g(p))return!0;if(!p)return!1;if(typeof p!=="function"&&typeof p!=="object")return!1;if(w)return E(p);if(L(p))return!1;var n=_.call(p);if(n!==A&&n!==q&&!/^\[object HTML/.test(n))return!1;return E(p)}}),Xf=u0((J,I)=>{var Y=Jf(),W=Object.prototype.toString,X=Object.prototype.hasOwnProperty,K=function(_,S,A){for(var q=0,B=_.length;q<B;q++)if(X.call(_,q))if(A==null)S(_[q],q,_);else S.call(A,_[q],q,_)},Z=function(_,S,A){for(var q=0,B=_.length;q<B;q++)if(A==null)S(_.charAt(q),q,_);else S.call(A,_.charAt(q),q,_)},L=function(_,S,A){for(var q in _)if(X.call(_,q))if(A==null)S(_[q],q,_);else S.call(A,_[q],q,_)};function E(_){return W.call(_)==="[object Array]"}I.exports=function(_,S,A){if(!Y(S))throw TypeError("iterator must be a function");var q;if(arguments.length>=3)q=A;if(E(_))K(_,S,q);else if(typeof _==="string")Z(_,S,q);else L(_,S,q)}}),If=u0((J,I)=>{I.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),Qf=u0((J,I)=>{var Y=If(),W=typeof globalThis>"u"?globalThis:globalThis;I.exports=function(){var X=[];for(var K=0;K<Y.length;K++)if(typeof W[Y[K]]==="function")X[X.length]=Y[K];return X}}),Yf=u0((J,I)=>{var Y=_8(),W=Jj(),X=J2(),K=X2();I.exports=function(Z,L,E){if(!Z||typeof Z!=="object"&&typeof Z!=="function")throw new X("`obj` must be an object or a function`");if(typeof L!=="string"&&typeof L!=="symbol")throw new X("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new X("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new X("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new X("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new X("`loose`, if provided, must be a boolean");var _=arguments.length>3?arguments[3]:null,S=arguments.length>4?arguments[4]:null,A=arguments.length>5?arguments[5]:null,q=arguments.length>6?arguments[6]:!1,B=!!K&&K(Z,L);if(Y)Y(Z,L,{configurable:A===null&&B?B.configurable:!A,enumerable:_===null&&B?B.enumerable:!_,value:E,writable:S===null&&B?B.writable:!S});else if(q||!_&&!S&&!A)Z[L]=E;else throw new W("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),Gf=u0((J,I)=>{var Y=_8(),W=function(){return!!Y};W.hasArrayLengthDefineBug=function(){if(!Y)return null;try{return Y([],"length",{value:1}).length!==1}catch(X){return!0}},I.exports=W}),Zf=u0((J,I)=>{var Y=Zj(),W=Yf(),X=Gf()(),K=X2(),Z=J2(),L=Y("%Math.floor%");I.exports=function(E,_){if(typeof E!=="function")throw new Z("`fn` is not a function");if(typeof _!=="number"||_<0||_>4294967295||L(_)!==_)throw new Z("`length` must be a positive 32-bit integer");var S=arguments.length>2&&!!arguments[2],A=!0,q=!0;if("length"in E&&K){var B=K(E,"length");if(B&&!B.configurable)A=!1;if(B&&!B.writable)q=!1}if(A||q||!S)if(X)W(E,"length",_,!0,!0);else W(E,"length",_);return E}}),zf=u0((J,I)=>{var Y=I2(),W=MH(),X=Yj();I.exports=function(){return X(Y,W,arguments)}}),Kf=u0((J,I)=>{var Y=Zf(),W=_8(),X=AH(),K=zf();if(I.exports=function(Z){var L=X(arguments),E=Z.length-(arguments.length-1);return Y(L,1+(E>0?E:0),!0)},W)W(I.exports,"apply",{value:K});else I.exports.apply=K}),Wf=u0((J,I)=>{var Y=Xj();I.exports=function(){return Y()&&!!Symbol.toStringTag}}),Of=u0((J,I)=>{var Y=Xf(),W=Qf(),X=Kf(),K=zj(),Z=X2(),L=Gj(),E=K("Object.prototype.toString"),_=Wf()(),S=typeof globalThis>"u"?globalThis:globalThis,A=W(),q=K("String.prototype.slice"),B=K("Array.prototype.indexOf",!0)||function(u,g){for(var b=0;b<u.length;b+=1)if(u[b]===g)return b;return-1},N={__proto__:null};if(_&&Z&&L)Y(A,function(u){var g=new S[u];if(Symbol.toStringTag in g&&L){var b=L(g),p=Z(b,Symbol.toStringTag);if(!p&&b){var n=L(b);p=Z(n,Symbol.toStringTag)}N["$"+u]=X(p.get)}});else Y(A,function(u){var g=new S[u],b=g.slice||g.set;if(b)N["$"+u]=X(b)});var f=function(u){var g=!1;return Y(N,function(b,p){if(!g)try{if("$"+b(u)===p)g=q(p,1)}catch(n){}}),g},w=function(u){var g=!1;return Y(N,function(b,p){if(!g)try{b(u),g=q(p,1)}catch(n){}}),g};I.exports=function(u){if(!u||typeof u!=="object")return!1;if(!_){var g=q(E(u),8,-1);if(B(A,g)>-1)return g;if(g!=="Object")return!1;return w(u)}if(!Z)return null;return f(u)}}),Vf=u0((J,I)=>{var Y=Of();I.exports=function(W){return!!Y(W)}}),Hf=u0((J,I)=>{var Y=J2(),W=zj(),X=W("TypedArray.prototype.buffer",!0),K=Vf();I.exports=X||function(Z){if(!K(Z))throw new Y("Not a Typed Array");return Z.buffer}}),Ff=u0((J,I)=>{var Y=y6().Buffer,W=fw(),X=Hf(),K=ArrayBuffer.isView||function(_){try{return X(_),!0}catch(S){return!1}},Z=typeof Uint8Array<"u",L=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",E=L&&(Y.prototype instanceof Uint8Array||Y.TYPED_ARRAY_SUPPORT);I.exports=function(_,S){if(Y.isBuffer(_)){if(_.constructor&&!("isBuffer"in _))return Y.from(_);return _}if(typeof _==="string")return Y.from(_,S);if(L&&K(_)){if(_.byteLength===0)return Y.alloc(0);if(E){var A=Y.from(_.buffer,_.byteOffset,_.byteLength);if(A.byteLength===_.byteLength)return A}var q=_ instanceof Uint8Array?_:new Uint8Array(_.buffer,_.byteOffset,_.byteLength),B=Y.from(q);if(B.length===_.byteLength)return B}if(Z&&_ instanceof Uint8Array)return Y.from(_);var N=W(_);if(N)for(var f=0;f<_.length;f+=1){var w=_[f];if(typeof w!=="number"||w<0||w>255||~~w!==w)throw RangeError("Array items must be numbers in the range 0-255.")}if(N||Y.isBuffer(_)&&_.constructor&&typeof _.constructor.isBuffer==="function"&&_.constructor.isBuffer(_))return Y.from(_);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),CH=u0((J,I)=>{var Y=y6().Buffer,W=Ff(),X=typeof Uint8Array<"u",K=X&&typeof ArrayBuffer<"u",Z=K&&ArrayBuffer.isView;I.exports=function(L,E,_){if(typeof L==="string"||Y.isBuffer(L)||X&&L instanceof Uint8Array||Z&&Z(L))return W(L,E);throw TypeError(_+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),Kj=u0((J,I)=>{var Y={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},W={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},X=$j(),K=y6().Buffer,Z=FH(),L=DH(),E=CH();function _(S,A,q,B,N){Z(q,B),S=E(S,L,"Password"),A=E(A,L,"Salt");var f=(N||"sha1").toLowerCase(),w=W[f]||f,u=Y[w];if(typeof u!=="number"||!u)throw TypeError("Digest algorithm not supported: "+N);var g=K.allocUnsafe(B),b=K.allocUnsafe(A.length+4);A.copy(b,0,0,A.length);var p=0,n=u,a=Math.ceil(B/n);for(var D0=1;D0<=a;D0++){b.writeUInt32BE(D0,A.length);var M0=X(w,S).update(b).digest(),S0=M0;for(var t=1;t<q;t++){S0=X(w,S).update(S0).digest();for(var R0=0;R0<n;R0++)M0[R0]^=S0[R0]}M0.copy(g,p),p+=n}return g}I.exports=_}),Df=u0((J,I)=>{var Y=y6().Buffer,W=FH(),X=DH(),K=Kj(),Z=CH(),L,E=globalThis.crypto&&globalThis.crypto.subtle,_={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"},S=[],A;function q(){if(A)return A;if(globalThis.process&&globalThis.process.nextTick)A=globalThis.process.nextTick;else if(globalThis.queueMicrotask)A=globalThis.queueMicrotask;else if(globalThis.setImmediate)A=globalThis.setImmediate;else A=globalThis.setTimeout;return A}function B(w,u,g,b,p){return E.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(n){return E.deriveBits({name:"PBKDF2",salt:u,iterations:g,hash:{name:p}},n,b<<3)}).then(function(n){return Y.from(n)})}function N(w){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!E||!E.importKey||!E.deriveBits)return Promise.resolve(!1);if(S[w]!==void 0)return S[w];L=L||Y.alloc(8);var u=B(L,L,10,128,w).then(function(){return!0},function(){return!1});return S[w]=u,u}function f(w,u){w.then(function(g){q()(function(){u(null,g)})},function(g){q()(function(){u(g)})})}I.exports=function(w,u,g,b,p,n){if(typeof p==="function")n=p,p=void 0;if(W(g,b),w=Z(w,X,"Password"),u=Z(u,X,"Salt"),typeof n!=="function")throw Error("No callback provided to pbkdf2");p=p||"sha1";var a=_[p.toLowerCase()];if(!a||typeof globalThis.Promise!=="function"){q()(function(){var D0;try{D0=K(w,u,g,b,p)}catch(M0){n(M0);return}n(null,D0)});return}f(N(a).then(function(D0){if(D0)return B(w,u,g,b,a);return K(w,u,g,b,p)}),n)}}),Wj=u0((J)=>{var I=(bU(),E$(A1)),Y=FH(),W=DH(),X=CH();function K(L,E,_,S,A,q){if(Y(_,S),L=X(L,W,"Password"),E=X(E,W,"Salt"),typeof A==="function")q=A,A="sha1";if(typeof q!=="function")throw Error("No callback provided to pbkdf2");return I.pbkdf2(L,E,_,S,A,q)}function Z(L,E,_,S,A){return Y(_,S),L=X(L,W,"Password"),E=X(E,W,"Salt"),A=A||"sha1",I.pbkdf2Sync(L,E,_,S,A)}if(!I.pbkdf2Sync||I.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)J.pbkdf2Sync=Kj(),J.pbkdf2=Df();else J.pbkdf2Sync=Z,J.pbkdf2=K}),Lf=u0((J)=>{var I=(bU(),E$(A1));J.createCipher=J.Cipher=I.createCipher,J.createCipheriv=J.Cipheriv=I.createCipheriv,J.createDecipher=J.Decipher=I.createDecipher,J.createDecipheriv=J.Decipheriv=I.createDecipheriv,J.listCiphers=J.getCiphers=I.getCiphers}),Mf=u0((J)=>{var I=(bU(),E$(A1));J.DiffieHellmanGroup=I.DiffieHellmanGroup,J.createDiffieHellmanGroup=I.createDiffieHellmanGroup,J.getDiffieHellman=I.getDiffieHellman,J.createDiffieHellman=I.createDiffieHellman,J.DiffieHellman=I.DiffieHellman}),Af=u0((J)=>{var I=(bU(),E$(A1));J.createSign=I.createSign,J.Sign=I.Sign,J.createVerify=I.createVerify,J.Verify=I.Verify}),Cf=u0((J,I)=>{I.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"}}}),KJ=u0((J,I)=>{(function(Y,W){function X(G,V){if(!G)throw Error(V||"Assertion failed")}function K(G,V){G.super_=V;var D=function(){};D.prototype=V.prototype,G.prototype=new D,G.prototype.constructor=G}function Z(G,V,D){if(Z.isBN(G))return G;if(this.negative=0,this.words=null,this.length=0,this.red=null,G!==null){if(V==="le"||V==="be")D=V,V=10;this._init(G||0,V||10,D||"be")}}if(typeof Y==="object")Y.exports=Z;else W.BN=Z;Z.BN=Z,Z.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(iU(),E$(oU)).Buffer}catch(G){}Z.isBN=function(G){if(G instanceof Z)return!0;return G!==null&&typeof G==="object"&&G.constructor.wordSize===Z.wordSize&&Array.isArray(G.words)},Z.max=function(G,V){if(G.cmp(V)>0)return G;return V},Z.min=function(G,V){if(G.cmp(V)<0)return G;return V},Z.prototype._init=function(G,V,D){if(typeof G==="number")return this._initNumber(G,V,D);if(typeof G==="object")return this._initArray(G,V,D);if(V==="hex")V=16;X(V===(V|0)&&V>=2&&V<=36),G=G.toString().replace(/\s+/g,"");var O=0;if(G[0]==="-")O++,this.negative=1;if(O<G.length){if(V===16)this._parseHex(G,O,D);else if(this._parseBase(G,V,O),D==="le")this._initArray(this.toArray(),V,D)}},Z.prototype._initNumber=function(G,V,D){if(G<0)this.negative=1,G=-G;if(G<67108864)this.words=[G&67108863],this.length=1;else if(G<4503599627370496)this.words=[G&67108863,G/67108864&67108863],this.length=2;else X(G<9007199254740992),this.words=[G&67108863,G/67108864&67108863,1],this.length=3;if(D!=="le")return;this._initArray(this.toArray(),V,D)},Z.prototype._initArray=function(G,V,D){if(X(typeof G.length==="number"),G.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(G.length/3),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F,R,j=0;if(D==="be"){for(O=G.length-1,F=0;O>=0;O-=3)if(R=G[O]|G[O-1]<<8|G[O-2]<<16,this.words[F]|=R<<j&67108863,this.words[F+1]=R>>>26-j&67108863,j+=24,j>=26)j-=26,F++}else if(D==="le"){for(O=0,F=0;O<G.length;O+=3)if(R=G[O]|G[O+1]<<8|G[O+2]<<16,this.words[F]|=R<<j&67108863,this.words[F+1]=R>>>26-j&67108863,j+=24,j>=26)j-=26,F++}return this.strip()};function E(G,V){var D=G.charCodeAt(V);if(D>=65&&D<=70)return D-55;else if(D>=97&&D<=102)return D-87;else return D-48&15}function _(G,V,D){var O=E(G,D);if(D-1>=V)O|=E(G,D-1)<<4;return O}Z.prototype._parseHex=function(G,V,D){this.length=Math.ceil((G.length-V)/6),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F=0,R=0,j;if(D==="be")for(O=G.length-1;O>=V;O-=2)if(j=_(G,V,O)<<F,this.words[R]|=j&67108863,F>=18)F-=18,R+=1,this.words[R]|=j>>>26;else F+=8;else{var C=G.length-V;for(O=C%2===0?V+1:V;O<G.length;O+=2)if(j=_(G,V,O)<<F,this.words[R]|=j&67108863,F>=18)F-=18,R+=1,this.words[R]|=j>>>26;else F+=8}this.strip()};function S(G,V,D,O){var F=0,R=Math.min(G.length,D);for(var j=V;j<R;j++){var C=G.charCodeAt(j)-48;if(F*=O,C>=49)F+=C-49+10;else if(C>=17)F+=C-17+10;else F+=C}return F}Z.prototype._parseBase=function(G,V,D){this.words=[0],this.length=1;for(var O=0,F=1;F<=67108863;F*=V)O++;O--,F=F/V|0;var R=G.length-D,j=R%O,C=Math.min(R,R-j)+D,z=0;for(var T=D;T<C;T+=O)if(z=S(G,T,T+O,V),this.imuln(F),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z);if(j!==0){var x=1;z=S(G,T,G.length,V);for(T=0;T<j;T++)x*=V;if(this.imuln(x),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z)}this.strip()},Z.prototype.copy=function(G){G.words=Array(this.length);for(var V=0;V<this.length;V++)G.words[V]=this.words[V];G.length=this.length,G.negative=this.negative,G.red=this.red},Z.prototype.clone=function(){var G=new Z(null);return this.copy(G),G},Z.prototype._expand=function(G){while(this.length<G)this.words[this.length++]=0;return this},Z.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Z.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Z.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"],q=[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],B=[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(Z.prototype.toString=function(G,V){G=G||10,V=V|0||1;var D;if(G===16||G==="hex"){D="";var O=0,F=0;for(var R=0;R<this.length;R++){var j=this.words[R],C=((j<<O|F)&16777215).toString(16);if(F=j>>>24-O&16777215,O+=2,O>=26)O-=26,R--;if(F!==0||R!==this.length-1)D=A[6-C.length]+C+D;else D=C+D}if(F!==0)D=F.toString(16)+D;while(D.length%V!==0)D="0"+D;if(this.negative!==0)D="-"+D;return D}if(G===(G|0)&&G>=2&&G<=36){var z=q[G],T=B[G];D="";var x=this.clone();x.negative=0;while(!x.isZero()){var v=x.modn(T).toString(G);if(x=x.idivn(T),!x.isZero())D=A[z-v.length]+v+D;else D=v+D}if(this.isZero())D="0"+D;while(D.length%V!==0)D="0"+D;if(this.negative!==0)D="-"+D;return D}X(!1,"Base should be between 2 and 36")},Z.prototype.toNumber=function(){var G=this.words[0];if(this.length===2)G+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)G+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-G:G},Z.prototype.toJSON=function(){return this.toString(16)},Z.prototype.toBuffer=function(G,V){return X(typeof L<"u"),this.toArrayLike(L,G,V)},Z.prototype.toArray=function(G,V){return this.toArrayLike(Array,G,V)},Z.prototype.toArrayLike=function(G,V,D){var O=this.byteLength(),F=D||Math.max(1,O);X(O<=F,"byte array longer than desired length"),X(F>0,"Requested array length <= 0"),this.strip();var R=V==="le",j=new G(F),C,z,T=this.clone();if(!R){for(z=0;z<F-O;z++)j[z]=0;for(z=0;!T.isZero();z++)C=T.andln(255),T.iushrn(8),j[F-z-1]=C}else{for(z=0;!T.isZero();z++)C=T.andln(255),T.iushrn(8),j[z]=C;for(;z<F;z++)j[z]=0}return j},Math.clz32)Z.prototype._countBits=function(G){return 32-Math.clz32(G)};else Z.prototype._countBits=function(G){var V=G,D=0;if(V>=4096)D+=13,V>>>=13;if(V>=64)D+=7,V>>>=7;if(V>=8)D+=4,V>>>=4;if(V>=2)D+=2,V>>>=2;return D+V};Z.prototype._zeroBits=function(G){if(G===0)return 26;var V=G,D=0;if((V&8191)===0)D+=13,V>>>=13;if((V&127)===0)D+=7,V>>>=7;if((V&15)===0)D+=4,V>>>=4;if((V&3)===0)D+=2,V>>>=2;if((V&1)===0)D++;return D},Z.prototype.bitLength=function(){var G=this.words[this.length-1],V=this._countBits(G);return(this.length-1)*26+V};function N(G){var V=Array(G.bitLength());for(var D=0;D<V.length;D++){var O=D/26|0,F=D%26;V[D]=(G.words[O]&1<<F)>>>F}return V}Z.prototype.zeroBits=function(){if(this.isZero())return 0;var G=0;for(var V=0;V<this.length;V++){var D=this._zeroBits(this.words[V]);if(G+=D,D!==26)break}return G},Z.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Z.prototype.toTwos=function(G){if(this.negative!==0)return this.abs().inotn(G).iaddn(1);return this.clone()},Z.prototype.fromTwos=function(G){if(this.testn(G-1))return this.notn(G).iaddn(1).ineg();return this.clone()},Z.prototype.isNeg=function(){return this.negative!==0},Z.prototype.neg=function(){return this.clone().ineg()},Z.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Z.prototype.iuor=function(G){while(this.length<G.length)this.words[this.length++]=0;for(var V=0;V<G.length;V++)this.words[V]=this.words[V]|G.words[V];return this.strip()},Z.prototype.ior=function(G){return X((this.negative|G.negative)===0),this.iuor(G)},Z.prototype.or=function(G){if(this.length>G.length)return this.clone().ior(G);return G.clone().ior(this)},Z.prototype.uor=function(G){if(this.length>G.length)return this.clone().iuor(G);return G.clone().iuor(this)},Z.prototype.iuand=function(G){var V;if(this.length>G.length)V=G;else V=this;for(var D=0;D<V.length;D++)this.words[D]=this.words[D]&G.words[D];return this.length=V.length,this.strip()},Z.prototype.iand=function(G){return X((this.negative|G.negative)===0),this.iuand(G)},Z.prototype.and=function(G){if(this.length>G.length)return this.clone().iand(G);return G.clone().iand(this)},Z.prototype.uand=function(G){if(this.length>G.length)return this.clone().iuand(G);return G.clone().iuand(this)},Z.prototype.iuxor=function(G){var V,D;if(this.length>G.length)V=this,D=G;else V=G,D=this;for(var O=0;O<D.length;O++)this.words[O]=V.words[O]^D.words[O];if(this!==V)for(;O<V.length;O++)this.words[O]=V.words[O];return this.length=V.length,this.strip()},Z.prototype.ixor=function(G){return X((this.negative|G.negative)===0),this.iuxor(G)},Z.prototype.xor=function(G){if(this.length>G.length)return this.clone().ixor(G);return G.clone().ixor(this)},Z.prototype.uxor=function(G){if(this.length>G.length)return this.clone().iuxor(G);return G.clone().iuxor(this)},Z.prototype.inotn=function(G){X(typeof G==="number"&&G>=0);var V=Math.ceil(G/26)|0,D=G%26;if(this._expand(V),D>0)V--;for(var O=0;O<V;O++)this.words[O]=~this.words[O]&67108863;if(D>0)this.words[O]=~this.words[O]&67108863>>26-D;return this.strip()},Z.prototype.notn=function(G){return this.clone().inotn(G)},Z.prototype.setn=function(G,V){X(typeof G==="number"&&G>=0);var D=G/26|0,O=G%26;if(this._expand(D+1),V)this.words[D]=this.words[D]|1<<O;else this.words[D]=this.words[D]&~(1<<O);return this.strip()},Z.prototype.iadd=function(G){var V;if(this.negative!==0&&G.negative===0)return this.negative=0,V=this.isub(G),this.negative^=1,this._normSign();else if(this.negative===0&&G.negative!==0)return G.negative=0,V=this.isub(G),G.negative=1,V._normSign();var D,O;if(this.length>G.length)D=this,O=G;else D=G,O=this;var F=0;for(var R=0;R<O.length;R++)V=(D.words[R]|0)+(O.words[R]|0)+F,this.words[R]=V&67108863,F=V>>>26;for(;F!==0&&R<D.length;R++)V=(D.words[R]|0)+F,this.words[R]=V&67108863,F=V>>>26;if(this.length=D.length,F!==0)this.words[this.length]=F,this.length++;else if(D!==this)for(;R<D.length;R++)this.words[R]=D.words[R];return this},Z.prototype.add=function(G){var V;if(G.negative!==0&&this.negative===0)return G.negative=0,V=this.sub(G),G.negative^=1,V;else if(G.negative===0&&this.negative!==0)return this.negative=0,V=G.sub(this),this.negative=1,V;if(this.length>G.length)return this.clone().iadd(G);return G.clone().iadd(this)},Z.prototype.isub=function(G){if(G.negative!==0){G.negative=0;var V=this.iadd(G);return G.negative=1,V._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(G),this.negative=1,this._normSign();var D=this.cmp(G);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,F;if(D>0)O=this,F=G;else O=G,F=this;var R=0;for(var j=0;j<F.length;j++)V=(O.words[j]|0)-(F.words[j]|0)+R,R=V>>26,this.words[j]=V&67108863;for(;R!==0&&j<O.length;j++)V=(O.words[j]|0)+R,R=V>>26,this.words[j]=V&67108863;if(R===0&&j<O.length&&O!==this)for(;j<O.length;j++)this.words[j]=O.words[j];if(this.length=Math.max(this.length,j),O!==this)this.negative=1;return this.strip()},Z.prototype.sub=function(G){return this.clone().isub(G)};function f(G,V,D){D.negative=V.negative^G.negative;var O=G.length+V.length|0;D.length=O,O=O-1|0;var F=G.words[0]|0,R=V.words[0]|0,j=F*R,C=j&67108863,z=j/67108864|0;D.words[0]=C;for(var T=1;T<O;T++){var x=z>>>26,v=z&67108863,h=Math.min(T,V.length-1);for(var r=Math.max(0,T-G.length+1);r<=h;r++){var U0=T-r|0;F=G.words[U0]|0,R=V.words[r]|0,j=F*R+v,x+=j/67108864|0,v=j&67108863}D.words[T]=v|0,z=x|0}if(z!==0)D.words[T]=z|0;else D.length--;return D.strip()}var w=function(G,V,D){var O=G.words,F=V.words,R=D.words,j=0,C,z,T,x=O[0]|0,v=x&8191,h=x>>>13,r=O[1]|0,U0=r&8191,K0=r>>>13,Q0=O[2]|0,s=Q0&8191,e=Q0>>>13,I0=O[3]|0,Z0=I0&8191,C0=I0>>>13,$0=O[4]|0,c=$0&8191,d=$0>>>13,L0=O[5]|0,Y0=L0&8191,V0=L0>>>13,k0=O[6]|0,J0=k0&8191,O0=k0>>>13,J$=O[7]|0,A0=J$&8191,v0=J$>>>13,M$=O[8]|0,m0=M$&8191,p0=M$>>>13,r$=O[9]|0,h0=r$&8191,c0=r$>>>13,YU=F[0]|0,t0=YU&8191,i0=YU>>>13,PU=F[1]|0,m=PU&8191,X0=PU>>>13,e0=F[2]|0,E0=e0&8191,N0=e0>>>13,D$=F[3]|0,x0=D$&8191,y0=D$>>>13,V$=F[4]|0,o0=V$&8191,r0=V$>>>13,OU=F[5]|0,s0=OU&8191,i=OU>>>13,G0=F[6]|0,q0=G0&8191,j0=G0>>>13,K$=F[7]|0,d0=K$&8191,a0=K$>>>13,LU=F[8]|0,X$=LU&8191,U$=LU>>>13,$U=F[9]|0,I$=$U&8191,$$=$U>>>13;D.negative=G.negative^V.negative,D.length=19,C=Math.imul(v,t0),z=Math.imul(v,i0),z=z+Math.imul(h,t0)|0,T=Math.imul(h,i0);var _U=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(_U>>>26)|0,_U&=67108863,C=Math.imul(U0,t0),z=Math.imul(U0,i0),z=z+Math.imul(K0,t0)|0,T=Math.imul(K0,i0),C=C+Math.imul(v,m)|0,z=z+Math.imul(v,X0)|0,z=z+Math.imul(h,m)|0,T=T+Math.imul(h,X0)|0;var B$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(B$>>>26)|0,B$&=67108863,C=Math.imul(s,t0),z=Math.imul(s,i0),z=z+Math.imul(e,t0)|0,T=Math.imul(e,i0),C=C+Math.imul(U0,m)|0,z=z+Math.imul(U0,X0)|0,z=z+Math.imul(K0,m)|0,T=T+Math.imul(K0,X0)|0,C=C+Math.imul(v,E0)|0,z=z+Math.imul(v,N0)|0,z=z+Math.imul(h,E0)|0,T=T+Math.imul(h,N0)|0;var j$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(j$>>>26)|0,j$&=67108863,C=Math.imul(Z0,t0),z=Math.imul(Z0,i0),z=z+Math.imul(C0,t0)|0,T=Math.imul(C0,i0),C=C+Math.imul(s,m)|0,z=z+Math.imul(s,X0)|0,z=z+Math.imul(e,m)|0,T=T+Math.imul(e,X0)|0,C=C+Math.imul(U0,E0)|0,z=z+Math.imul(U0,N0)|0,z=z+Math.imul(K0,E0)|0,T=T+Math.imul(K0,N0)|0,C=C+Math.imul(v,x0)|0,z=z+Math.imul(v,y0)|0,z=z+Math.imul(h,x0)|0,T=T+Math.imul(h,y0)|0;var UU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(UU>>>26)|0,UU&=67108863,C=Math.imul(c,t0),z=Math.imul(c,i0),z=z+Math.imul(d,t0)|0,T=Math.imul(d,i0),C=C+Math.imul(Z0,m)|0,z=z+Math.imul(Z0,X0)|0,z=z+Math.imul(C0,m)|0,T=T+Math.imul(C0,X0)|0,C=C+Math.imul(s,E0)|0,z=z+Math.imul(s,N0)|0,z=z+Math.imul(e,E0)|0,T=T+Math.imul(e,N0)|0,C=C+Math.imul(U0,x0)|0,z=z+Math.imul(U0,y0)|0,z=z+Math.imul(K0,x0)|0,T=T+Math.imul(K0,y0)|0,C=C+Math.imul(v,o0)|0,z=z+Math.imul(v,r0)|0,z=z+Math.imul(h,o0)|0,T=T+Math.imul(h,r0)|0;var n$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(n$>>>26)|0,n$&=67108863,C=Math.imul(Y0,t0),z=Math.imul(Y0,i0),z=z+Math.imul(V0,t0)|0,T=Math.imul(V0,i0),C=C+Math.imul(c,m)|0,z=z+Math.imul(c,X0)|0,z=z+Math.imul(d,m)|0,T=T+Math.imul(d,X0)|0,C=C+Math.imul(Z0,E0)|0,z=z+Math.imul(Z0,N0)|0,z=z+Math.imul(C0,E0)|0,T=T+Math.imul(C0,N0)|0,C=C+Math.imul(s,x0)|0,z=z+Math.imul(s,y0)|0,z=z+Math.imul(e,x0)|0,T=T+Math.imul(e,y0)|0,C=C+Math.imul(U0,o0)|0,z=z+Math.imul(U0,r0)|0,z=z+Math.imul(K0,o0)|0,T=T+Math.imul(K0,r0)|0,C=C+Math.imul(v,s0)|0,z=z+Math.imul(v,i)|0,z=z+Math.imul(h,s0)|0,T=T+Math.imul(h,i)|0;var uU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(uU>>>26)|0,uU&=67108863,C=Math.imul(J0,t0),z=Math.imul(J0,i0),z=z+Math.imul(O0,t0)|0,T=Math.imul(O0,i0),C=C+Math.imul(Y0,m)|0,z=z+Math.imul(Y0,X0)|0,z=z+Math.imul(V0,m)|0,T=T+Math.imul(V0,X0)|0,C=C+Math.imul(c,E0)|0,z=z+Math.imul(c,N0)|0,z=z+Math.imul(d,E0)|0,T=T+Math.imul(d,N0)|0,C=C+Math.imul(Z0,x0)|0,z=z+Math.imul(Z0,y0)|0,z=z+Math.imul(C0,x0)|0,T=T+Math.imul(C0,y0)|0,C=C+Math.imul(s,o0)|0,z=z+Math.imul(s,r0)|0,z=z+Math.imul(e,o0)|0,T=T+Math.imul(e,r0)|0,C=C+Math.imul(U0,s0)|0,z=z+Math.imul(U0,i)|0,z=z+Math.imul(K0,s0)|0,T=T+Math.imul(K0,i)|0,C=C+Math.imul(v,q0)|0,z=z+Math.imul(v,j0)|0,z=z+Math.imul(h,q0)|0,T=T+Math.imul(h,j0)|0;var hU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(hU>>>26)|0,hU&=67108863,C=Math.imul(A0,t0),z=Math.imul(A0,i0),z=z+Math.imul(v0,t0)|0,T=Math.imul(v0,i0),C=C+Math.imul(J0,m)|0,z=z+Math.imul(J0,X0)|0,z=z+Math.imul(O0,m)|0,T=T+Math.imul(O0,X0)|0,C=C+Math.imul(Y0,E0)|0,z=z+Math.imul(Y0,N0)|0,z=z+Math.imul(V0,E0)|0,T=T+Math.imul(V0,N0)|0,C=C+Math.imul(c,x0)|0,z=z+Math.imul(c,y0)|0,z=z+Math.imul(d,x0)|0,T=T+Math.imul(d,y0)|0,C=C+Math.imul(Z0,o0)|0,z=z+Math.imul(Z0,r0)|0,z=z+Math.imul(C0,o0)|0,T=T+Math.imul(C0,r0)|0,C=C+Math.imul(s,s0)|0,z=z+Math.imul(s,i)|0,z=z+Math.imul(e,s0)|0,T=T+Math.imul(e,i)|0,C=C+Math.imul(U0,q0)|0,z=z+Math.imul(U0,j0)|0,z=z+Math.imul(K0,q0)|0,T=T+Math.imul(K0,j0)|0,C=C+Math.imul(v,d0)|0,z=z+Math.imul(v,a0)|0,z=z+Math.imul(h,d0)|0,T=T+Math.imul(h,a0)|0;var cU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(cU>>>26)|0,cU&=67108863,C=Math.imul(m0,t0),z=Math.imul(m0,i0),z=z+Math.imul(p0,t0)|0,T=Math.imul(p0,i0),C=C+Math.imul(A0,m)|0,z=z+Math.imul(A0,X0)|0,z=z+Math.imul(v0,m)|0,T=T+Math.imul(v0,X0)|0,C=C+Math.imul(J0,E0)|0,z=z+Math.imul(J0,N0)|0,z=z+Math.imul(O0,E0)|0,T=T+Math.imul(O0,N0)|0,C=C+Math.imul(Y0,x0)|0,z=z+Math.imul(Y0,y0)|0,z=z+Math.imul(V0,x0)|0,T=T+Math.imul(V0,y0)|0,C=C+Math.imul(c,o0)|0,z=z+Math.imul(c,r0)|0,z=z+Math.imul(d,o0)|0,T=T+Math.imul(d,r0)|0,C=C+Math.imul(Z0,s0)|0,z=z+Math.imul(Z0,i)|0,z=z+Math.imul(C0,s0)|0,T=T+Math.imul(C0,i)|0,C=C+Math.imul(s,q0)|0,z=z+Math.imul(s,j0)|0,z=z+Math.imul(e,q0)|0,T=T+Math.imul(e,j0)|0,C=C+Math.imul(U0,d0)|0,z=z+Math.imul(U0,a0)|0,z=z+Math.imul(K0,d0)|0,T=T+Math.imul(K0,a0)|0,C=C+Math.imul(v,X$)|0,z=z+Math.imul(v,U$)|0,z=z+Math.imul(h,X$)|0,T=T+Math.imul(h,U$)|0;var pU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(pU>>>26)|0,pU&=67108863,C=Math.imul(h0,t0),z=Math.imul(h0,i0),z=z+Math.imul(c0,t0)|0,T=Math.imul(c0,i0),C=C+Math.imul(m0,m)|0,z=z+Math.imul(m0,X0)|0,z=z+Math.imul(p0,m)|0,T=T+Math.imul(p0,X0)|0,C=C+Math.imul(A0,E0)|0,z=z+Math.imul(A0,N0)|0,z=z+Math.imul(v0,E0)|0,T=T+Math.imul(v0,N0)|0,C=C+Math.imul(J0,x0)|0,z=z+Math.imul(J0,y0)|0,z=z+Math.imul(O0,x0)|0,T=T+Math.imul(O0,y0)|0,C=C+Math.imul(Y0,o0)|0,z=z+Math.imul(Y0,r0)|0,z=z+Math.imul(V0,o0)|0,T=T+Math.imul(V0,r0)|0,C=C+Math.imul(c,s0)|0,z=z+Math.imul(c,i)|0,z=z+Math.imul(d,s0)|0,T=T+Math.imul(d,i)|0,C=C+Math.imul(Z0,q0)|0,z=z+Math.imul(Z0,j0)|0,z=z+Math.imul(C0,q0)|0,T=T+Math.imul(C0,j0)|0,C=C+Math.imul(s,d0)|0,z=z+Math.imul(s,a0)|0,z=z+Math.imul(e,d0)|0,T=T+Math.imul(e,a0)|0,C=C+Math.imul(U0,X$)|0,z=z+Math.imul(U0,U$)|0,z=z+Math.imul(K0,X$)|0,T=T+Math.imul(K0,U$)|0,C=C+Math.imul(v,I$)|0,z=z+Math.imul(v,$$)|0,z=z+Math.imul(h,I$)|0,T=T+Math.imul(h,$$)|0;var mU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(mU>>>26)|0,mU&=67108863,C=Math.imul(h0,m),z=Math.imul(h0,X0),z=z+Math.imul(c0,m)|0,T=Math.imul(c0,X0),C=C+Math.imul(m0,E0)|0,z=z+Math.imul(m0,N0)|0,z=z+Math.imul(p0,E0)|0,T=T+Math.imul(p0,N0)|0,C=C+Math.imul(A0,x0)|0,z=z+Math.imul(A0,y0)|0,z=z+Math.imul(v0,x0)|0,T=T+Math.imul(v0,y0)|0,C=C+Math.imul(J0,o0)|0,z=z+Math.imul(J0,r0)|0,z=z+Math.imul(O0,o0)|0,T=T+Math.imul(O0,r0)|0,C=C+Math.imul(Y0,s0)|0,z=z+Math.imul(Y0,i)|0,z=z+Math.imul(V0,s0)|0,T=T+Math.imul(V0,i)|0,C=C+Math.imul(c,q0)|0,z=z+Math.imul(c,j0)|0,z=z+Math.imul(d,q0)|0,T=T+Math.imul(d,j0)|0,C=C+Math.imul(Z0,d0)|0,z=z+Math.imul(Z0,a0)|0,z=z+Math.imul(C0,d0)|0,T=T+Math.imul(C0,a0)|0,C=C+Math.imul(s,X$)|0,z=z+Math.imul(s,U$)|0,z=z+Math.imul(e,X$)|0,T=T+Math.imul(e,U$)|0,C=C+Math.imul(U0,I$)|0,z=z+Math.imul(U0,$$)|0,z=z+Math.imul(K0,I$)|0,T=T+Math.imul(K0,$$)|0;var t$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(t$>>>26)|0,t$&=67108863,C=Math.imul(h0,E0),z=Math.imul(h0,N0),z=z+Math.imul(c0,E0)|0,T=Math.imul(c0,N0),C=C+Math.imul(m0,x0)|0,z=z+Math.imul(m0,y0)|0,z=z+Math.imul(p0,x0)|0,T=T+Math.imul(p0,y0)|0,C=C+Math.imul(A0,o0)|0,z=z+Math.imul(A0,r0)|0,z=z+Math.imul(v0,o0)|0,T=T+Math.imul(v0,r0)|0,C=C+Math.imul(J0,s0)|0,z=z+Math.imul(J0,i)|0,z=z+Math.imul(O0,s0)|0,T=T+Math.imul(O0,i)|0,C=C+Math.imul(Y0,q0)|0,z=z+Math.imul(Y0,j0)|0,z=z+Math.imul(V0,q0)|0,T=T+Math.imul(V0,j0)|0,C=C+Math.imul(c,d0)|0,z=z+Math.imul(c,a0)|0,z=z+Math.imul(d,d0)|0,T=T+Math.imul(d,a0)|0,C=C+Math.imul(Z0,X$)|0,z=z+Math.imul(Z0,U$)|0,z=z+Math.imul(C0,X$)|0,T=T+Math.imul(C0,U$)|0,C=C+Math.imul(s,I$)|0,z=z+Math.imul(s,$$)|0,z=z+Math.imul(e,I$)|0,T=T+Math.imul(e,$$)|0;var MU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(MU>>>26)|0,MU&=67108863,C=Math.imul(h0,x0),z=Math.imul(h0,y0),z=z+Math.imul(c0,x0)|0,T=Math.imul(c0,y0),C=C+Math.imul(m0,o0)|0,z=z+Math.imul(m0,r0)|0,z=z+Math.imul(p0,o0)|0,T=T+Math.imul(p0,r0)|0,C=C+Math.imul(A0,s0)|0,z=z+Math.imul(A0,i)|0,z=z+Math.imul(v0,s0)|0,T=T+Math.imul(v0,i)|0,C=C+Math.imul(J0,q0)|0,z=z+Math.imul(J0,j0)|0,z=z+Math.imul(O0,q0)|0,T=T+Math.imul(O0,j0)|0,C=C+Math.imul(Y0,d0)|0,z=z+Math.imul(Y0,a0)|0,z=z+Math.imul(V0,d0)|0,T=T+Math.imul(V0,a0)|0,C=C+Math.imul(c,X$)|0,z=z+Math.imul(c,U$)|0,z=z+Math.imul(d,X$)|0,T=T+Math.imul(d,U$)|0,C=C+Math.imul(Z0,I$)|0,z=z+Math.imul(Z0,$$)|0,z=z+Math.imul(C0,I$)|0,T=T+Math.imul(C0,$$)|0;var VU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(VU>>>26)|0,VU&=67108863,C=Math.imul(h0,o0),z=Math.imul(h0,r0),z=z+Math.imul(c0,o0)|0,T=Math.imul(c0,r0),C=C+Math.imul(m0,s0)|0,z=z+Math.imul(m0,i)|0,z=z+Math.imul(p0,s0)|0,T=T+Math.imul(p0,i)|0,C=C+Math.imul(A0,q0)|0,z=z+Math.imul(A0,j0)|0,z=z+Math.imul(v0,q0)|0,T=T+Math.imul(v0,j0)|0,C=C+Math.imul(J0,d0)|0,z=z+Math.imul(J0,a0)|0,z=z+Math.imul(O0,d0)|0,T=T+Math.imul(O0,a0)|0,C=C+Math.imul(Y0,X$)|0,z=z+Math.imul(Y0,U$)|0,z=z+Math.imul(V0,X$)|0,T=T+Math.imul(V0,U$)|0,C=C+Math.imul(c,I$)|0,z=z+Math.imul(c,$$)|0,z=z+Math.imul(d,I$)|0,T=T+Math.imul(d,$$)|0;var lU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(lU>>>26)|0,lU&=67108863,C=Math.imul(h0,s0),z=Math.imul(h0,i),z=z+Math.imul(c0,s0)|0,T=Math.imul(c0,i),C=C+Math.imul(m0,q0)|0,z=z+Math.imul(m0,j0)|0,z=z+Math.imul(p0,q0)|0,T=T+Math.imul(p0,j0)|0,C=C+Math.imul(A0,d0)|0,z=z+Math.imul(A0,a0)|0,z=z+Math.imul(v0,d0)|0,T=T+Math.imul(v0,a0)|0,C=C+Math.imul(J0,X$)|0,z=z+Math.imul(J0,U$)|0,z=z+Math.imul(O0,X$)|0,T=T+Math.imul(O0,U$)|0,C=C+Math.imul(Y0,I$)|0,z=z+Math.imul(Y0,$$)|0,z=z+Math.imul(V0,I$)|0,T=T+Math.imul(V0,$$)|0;var qU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(qU>>>26)|0,qU&=67108863,C=Math.imul(h0,q0),z=Math.imul(h0,j0),z=z+Math.imul(c0,q0)|0,T=Math.imul(c0,j0),C=C+Math.imul(m0,d0)|0,z=z+Math.imul(m0,a0)|0,z=z+Math.imul(p0,d0)|0,T=T+Math.imul(p0,a0)|0,C=C+Math.imul(A0,X$)|0,z=z+Math.imul(A0,U$)|0,z=z+Math.imul(v0,X$)|0,T=T+Math.imul(v0,U$)|0,C=C+Math.imul(J0,I$)|0,z=z+Math.imul(J0,$$)|0,z=z+Math.imul(O0,I$)|0,T=T+Math.imul(O0,$$)|0;var NU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(NU>>>26)|0,NU&=67108863,C=Math.imul(h0,d0),z=Math.imul(h0,a0),z=z+Math.imul(c0,d0)|0,T=Math.imul(c0,a0),C=C+Math.imul(m0,X$)|0,z=z+Math.imul(m0,U$)|0,z=z+Math.imul(p0,X$)|0,T=T+Math.imul(p0,U$)|0,C=C+Math.imul(A0,I$)|0,z=z+Math.imul(A0,$$)|0,z=z+Math.imul(v0,I$)|0,T=T+Math.imul(v0,$$)|0;var xU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(xU>>>26)|0,xU&=67108863,C=Math.imul(h0,X$),z=Math.imul(h0,U$),z=z+Math.imul(c0,X$)|0,T=Math.imul(c0,U$),C=C+Math.imul(m0,I$)|0,z=z+Math.imul(m0,$$)|0,z=z+Math.imul(p0,I$)|0,T=T+Math.imul(p0,$$)|0;var SU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(SU>>>26)|0,SU&=67108863,C=Math.imul(h0,I$),z=Math.imul(h0,$$),z=z+Math.imul(c0,I$)|0,T=Math.imul(c0,$$);var AU=(j+C|0)+((z&8191)<<13)|0;if(j=(T+(z>>>13)|0)+(AU>>>26)|0,AU&=67108863,R[0]=_U,R[1]=B$,R[2]=j$,R[3]=UU,R[4]=n$,R[5]=uU,R[6]=hU,R[7]=cU,R[8]=pU,R[9]=mU,R[10]=t$,R[11]=MU,R[12]=VU,R[13]=lU,R[14]=qU,R[15]=NU,R[16]=xU,R[17]=SU,R[18]=AU,j!==0)R[19]=j,D.length++;return D};if(!Math.imul)w=f;function u(G,V,D){D.negative=V.negative^G.negative,D.length=G.length+V.length;var O=0,F=0;for(var R=0;R<D.length-1;R++){var j=F;F=0;var C=O&67108863,z=Math.min(R,V.length-1);for(var T=Math.max(0,R-G.length+1);T<=z;T++){var x=R-T,v=G.words[x]|0,h=V.words[T]|0,r=v*h,U0=r&67108863;j=j+(r/67108864|0)|0,U0=U0+C|0,C=U0&67108863,j=j+(U0>>>26)|0,F+=j>>>26,j&=67108863}D.words[R]=C,O=j,j=F}if(O!==0)D.words[R]=O;else D.length--;return D.strip()}function g(G,V,D){var O=new b;return O.mulp(G,V,D)}Z.prototype.mulTo=function(G,V){var D,O=this.length+G.length;if(this.length===10&&G.length===10)D=w(this,G,V);else if(O<63)D=f(this,G,V);else if(O<1024)D=u(this,G,V);else D=g(this,G,V);return D};function b(G,V){this.x=G,this.y=V}b.prototype.makeRBT=function(G){var V=Array(G),D=Z.prototype._countBits(G)-1;for(var O=0;O<G;O++)V[O]=this.revBin(O,D,G);return V},b.prototype.revBin=function(G,V,D){if(G===0||G===D-1)return G;var O=0;for(var F=0;F<V;F++)O|=(G&1)<<V-F-1,G>>=1;return O},b.prototype.permute=function(G,V,D,O,F,R){for(var j=0;j<R;j++)O[j]=V[G[j]],F[j]=D[G[j]]},b.prototype.transform=function(G,V,D,O,F,R){this.permute(R,G,V,D,O,F);for(var j=1;j<F;j<<=1){var C=j<<1,z=Math.cos(2*Math.PI/C),T=Math.sin(2*Math.PI/C);for(var x=0;x<F;x+=C){var v=z,h=T;for(var r=0;r<j;r++){var U0=D[x+r],K0=O[x+r],Q0=D[x+r+j],s=O[x+r+j],e=v*Q0-h*s;if(s=v*s+h*Q0,Q0=e,D[x+r]=U0+Q0,O[x+r]=K0+s,D[x+r+j]=U0-Q0,O[x+r+j]=K0-s,r!==C)e=z*v-T*h,h=z*h+T*v,v=e}}}},b.prototype.guessLen13b=function(G,V){var D=Math.max(V,G)|1,O=D&1,F=0;for(D=D/2|0;D;D=D>>>1)F++;return 1<<F+1+O},b.prototype.conjugate=function(G,V,D){if(D<=1)return;for(var O=0;O<D/2;O++){var F=G[O];G[O]=G[D-O-1],G[D-O-1]=F,F=V[O],V[O]=-V[D-O-1],V[D-O-1]=-F}},b.prototype.normalize13b=function(G,V){var D=0;for(var O=0;O<V/2;O++){var F=Math.round(G[2*O+1]/V)*8192+Math.round(G[2*O]/V)+D;if(G[O]=F&67108863,F<67108864)D=0;else D=F/67108864|0}return G},b.prototype.convert13b=function(G,V,D,O){var F=0;for(var R=0;R<V;R++)F=F+(G[R]|0),D[2*R]=F&8191,F=F>>>13,D[2*R+1]=F&8191,F=F>>>13;for(R=2*V;R<O;++R)D[R]=0;X(F===0),X((F&-8192)===0)},b.prototype.stub=function(G){var V=Array(G);for(var D=0;D<G;D++)V[D]=0;return V},b.prototype.mulp=function(G,V,D){var O=2*this.guessLen13b(G.length,V.length),F=this.makeRBT(O),R=this.stub(O),j=Array(O),C=Array(O),z=Array(O),T=Array(O),x=Array(O),v=Array(O),h=D.words;h.length=O,this.convert13b(G.words,G.length,j,O),this.convert13b(V.words,V.length,T,O),this.transform(j,R,C,z,O,F),this.transform(T,R,x,v,O,F);for(var r=0;r<O;r++){var U0=C[r]*x[r]-z[r]*v[r];z[r]=C[r]*v[r]+z[r]*x[r],C[r]=U0}return this.conjugate(C,z,O),this.transform(C,z,h,R,O,F),this.conjugate(h,R,O),this.normalize13b(h,O),D.negative=G.negative^V.negative,D.length=G.length+V.length,D.strip()},Z.prototype.mul=function(G){var V=new Z(null);return V.words=Array(this.length+G.length),this.mulTo(G,V)},Z.prototype.mulf=function(G){var V=new Z(null);return V.words=Array(this.length+G.length),g(this,G,V)},Z.prototype.imul=function(G){return this.clone().mulTo(G,this)},Z.prototype.imuln=function(G){X(typeof G==="number"),X(G<67108864);var V=0;for(var D=0;D<this.length;D++){var O=(this.words[D]|0)*G,F=(O&67108863)+(V&67108863);V>>=26,V+=O/67108864|0,V+=F>>>26,this.words[D]=F&67108863}if(V!==0)this.words[D]=V,this.length++;return this.length=G===0?1:this.length,this},Z.prototype.muln=function(G){return this.clone().imuln(G)},Z.prototype.sqr=function(){return this.mul(this)},Z.prototype.isqr=function(){return this.imul(this.clone())},Z.prototype.pow=function(G){var V=N(G);if(V.length===0)return new Z(1);var D=this;for(var O=0;O<V.length;O++,D=D.sqr())if(V[O]!==0)break;if(++O<V.length)for(var F=D.sqr();O<V.length;O++,F=F.sqr()){if(V[O]===0)continue;D=D.mul(F)}return D},Z.prototype.iushln=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26,O=67108863>>>26-V<<26-V,F;if(V!==0){var R=0;for(F=0;F<this.length;F++){var j=this.words[F]&O,C=(this.words[F]|0)-j<<V;this.words[F]=C|R,R=j>>>26-V}if(R)this.words[F]=R,this.length++}if(D!==0){for(F=this.length-1;F>=0;F--)this.words[F+D]=this.words[F];for(F=0;F<D;F++)this.words[F]=0;this.length+=D}return this.strip()},Z.prototype.ishln=function(G){return X(this.negative===0),this.iushln(G)},Z.prototype.iushrn=function(G,V,D){X(typeof G==="number"&&G>=0);var O;if(V)O=(V-V%26)/26;else O=0;var F=G%26,R=Math.min((G-F)/26,this.length),j=67108863^67108863>>>F<<F,C=D;if(O-=R,O=Math.max(0,O),C){for(var z=0;z<R;z++)C.words[z]=this.words[z];C.length=R}if(R===0);else if(this.length>R){this.length-=R;for(z=0;z<this.length;z++)this.words[z]=this.words[z+R]}else this.words[0]=0,this.length=1;var T=0;for(z=this.length-1;z>=0&&(T!==0||z>=O);z--){var x=this.words[z]|0;this.words[z]=T<<26-F|x>>>F,T=x&j}if(C&&T!==0)C.words[C.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Z.prototype.ishrn=function(G,V,D){return X(this.negative===0),this.iushrn(G,V,D)},Z.prototype.shln=function(G){return this.clone().ishln(G)},Z.prototype.ushln=function(G){return this.clone().iushln(G)},Z.prototype.shrn=function(G){return this.clone().ishrn(G)},Z.prototype.ushrn=function(G){return this.clone().iushrn(G)},Z.prototype.testn=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26,O=1<<V;if(this.length<=D)return!1;var F=this.words[D];return!!(F&O)},Z.prototype.imaskn=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(V!==0)D++;if(this.length=Math.min(D,this.length),V!==0){var O=67108863^67108863>>>V<<V;this.words[this.length-1]&=O}return this.strip()},Z.prototype.maskn=function(G){return this.clone().imaskn(G)},Z.prototype.iaddn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.isubn(-G);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<G)return this.words[0]=G-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(G),this.negative=1,this}return this._iaddn(G)},Z.prototype._iaddn=function(G){this.words[0]+=G;for(var V=0;V<this.length&&this.words[V]>=67108864;V++)if(this.words[V]-=67108864,V===this.length-1)this.words[V+1]=1;else this.words[V+1]++;return this.length=Math.max(this.length,V+1),this},Z.prototype.isubn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.iaddn(-G);if(this.negative!==0)return this.negative=0,this.iaddn(G),this.negative=1,this;if(this.words[0]-=G,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var V=0;V<this.length&&this.words[V]<0;V++)this.words[V]+=67108864,this.words[V+1]-=1;return this.strip()},Z.prototype.addn=function(G){return this.clone().iaddn(G)},Z.prototype.subn=function(G){return this.clone().isubn(G)},Z.prototype.iabs=function(){return this.negative=0,this},Z.prototype.abs=function(){return this.clone().iabs()},Z.prototype._ishlnsubmul=function(G,V,D){var O=G.length+D,F;this._expand(O);var R,j=0;for(F=0;F<G.length;F++){R=(this.words[F+D]|0)+j;var C=(G.words[F]|0)*V;R-=C&67108863,j=(R>>26)-(C/67108864|0),this.words[F+D]=R&67108863}for(;F<this.length-D;F++)R=(this.words[F+D]|0)+j,j=R>>26,this.words[F+D]=R&67108863;if(j===0)return this.strip();X(j===-1),j=0;for(F=0;F<this.length;F++)R=-(this.words[F]|0)+j,j=R>>26,this.words[F]=R&67108863;return this.negative=1,this.strip()},Z.prototype._wordDiv=function(G,V){var D=this.length-G.length,O=this.clone(),F=G,R=F.words[F.length-1]|0,j=this._countBits(R);if(D=26-j,D!==0)F=F.ushln(D),O.iushln(D),R=F.words[F.length-1]|0;var C=O.length-F.length,z;if(V!=="mod"){z=new Z(null),z.length=C+1,z.words=Array(z.length);for(var T=0;T<z.length;T++)z.words[T]=0}var x=O.clone()._ishlnsubmul(F,1,C);if(x.negative===0){if(O=x,z)z.words[C]=1}for(var v=C-1;v>=0;v--){var h=(O.words[F.length+v]|0)*67108864+(O.words[F.length+v-1]|0);h=Math.min(h/R|0,67108863),O._ishlnsubmul(F,h,v);while(O.negative!==0)if(h--,O.negative=0,O._ishlnsubmul(F,1,v),!O.isZero())O.negative^=1;if(z)z.words[v]=h}if(z)z.strip();if(O.strip(),V!=="div"&&D!==0)O.iushrn(D);return{div:z||null,mod:O}},Z.prototype.divmod=function(G,V,D){if(X(!G.isZero()),this.isZero())return{div:new Z(0),mod:new Z(0)};var O,F,R;if(this.negative!==0&&G.negative===0){if(R=this.neg().divmod(G,V),V!=="mod")O=R.div.neg();if(V!=="div"){if(F=R.mod.neg(),D&&F.negative!==0)F.iadd(G)}return{div:O,mod:F}}if(this.negative===0&&G.negative!==0){if(R=this.divmod(G.neg(),V),V!=="mod")O=R.div.neg();return{div:O,mod:R.mod}}if((this.negative&G.negative)!==0){if(R=this.neg().divmod(G.neg(),V),V!=="div"){if(F=R.mod.neg(),D&&F.negative!==0)F.isub(G)}return{div:R.div,mod:F}}if(G.length>this.length||this.cmp(G)<0)return{div:new Z(0),mod:this};if(G.length===1){if(V==="div")return{div:this.divn(G.words[0]),mod:null};if(V==="mod")return{div:null,mod:new Z(this.modn(G.words[0]))};return{div:this.divn(G.words[0]),mod:new Z(this.modn(G.words[0]))}}return this._wordDiv(G,V)},Z.prototype.div=function(G){return this.divmod(G,"div",!1).div},Z.prototype.mod=function(G){return this.divmod(G,"mod",!1).mod},Z.prototype.umod=function(G){return this.divmod(G,"mod",!0).mod},Z.prototype.divRound=function(G){var V=this.divmod(G);if(V.mod.isZero())return V.div;var D=V.div.negative!==0?V.mod.isub(G):V.mod,O=G.ushrn(1),F=G.andln(1),R=D.cmp(O);if(R<0||F===1&&R===0)return V.div;return V.div.negative!==0?V.div.isubn(1):V.div.iaddn(1)},Z.prototype.modn=function(G){X(G<=67108863);var V=67108864%G,D=0;for(var O=this.length-1;O>=0;O--)D=(V*D+(this.words[O]|0))%G;return D},Z.prototype.idivn=function(G){X(G<=67108863);var V=0;for(var D=this.length-1;D>=0;D--){var O=(this.words[D]|0)+V*67108864;this.words[D]=O/G|0,V=O%G}return this.strip()},Z.prototype.divn=function(G){return this.clone().idivn(G)},Z.prototype.egcd=function(G){X(G.negative===0),X(!G.isZero());var V=this,D=G.clone();if(V.negative!==0)V=V.umod(G);else V=V.clone();var O=new Z(1),F=new Z(0),R=new Z(0),j=new Z(1),C=0;while(V.isEven()&&D.isEven())V.iushrn(1),D.iushrn(1),++C;var z=D.clone(),T=V.clone();while(!V.isZero()){for(var x=0,v=1;(V.words[0]&v)===0&&x<26;++x,v<<=1);if(x>0){V.iushrn(x);while(x-- >0){if(O.isOdd()||F.isOdd())O.iadd(z),F.isub(T);O.iushrn(1),F.iushrn(1)}}for(var h=0,r=1;(D.words[0]&r)===0&&h<26;++h,r<<=1);if(h>0){D.iushrn(h);while(h-- >0){if(R.isOdd()||j.isOdd())R.iadd(z),j.isub(T);R.iushrn(1),j.iushrn(1)}}if(V.cmp(D)>=0)V.isub(D),O.isub(R),F.isub(j);else D.isub(V),R.isub(O),j.isub(F)}return{a:R,b:j,gcd:D.iushln(C)}},Z.prototype._invmp=function(G){X(G.negative===0),X(!G.isZero());var V=this,D=G.clone();if(V.negative!==0)V=V.umod(G);else V=V.clone();var O=new Z(1),F=new Z(0),R=D.clone();while(V.cmpn(1)>0&&D.cmpn(1)>0){for(var j=0,C=1;(V.words[0]&C)===0&&j<26;++j,C<<=1);if(j>0){V.iushrn(j);while(j-- >0){if(O.isOdd())O.iadd(R);O.iushrn(1)}}for(var z=0,T=1;(D.words[0]&T)===0&&z<26;++z,T<<=1);if(z>0){D.iushrn(z);while(z-- >0){if(F.isOdd())F.iadd(R);F.iushrn(1)}}if(V.cmp(D)>=0)V.isub(D),O.isub(F);else D.isub(V),F.isub(O)}var x;if(V.cmpn(1)===0)x=O;else x=F;if(x.cmpn(0)<0)x.iadd(G);return x},Z.prototype.gcd=function(G){if(this.isZero())return G.abs();if(G.isZero())return this.abs();var V=this.clone(),D=G.clone();V.negative=0,D.negative=0;for(var O=0;V.isEven()&&D.isEven();O++)V.iushrn(1),D.iushrn(1);do{while(V.isEven())V.iushrn(1);while(D.isEven())D.iushrn(1);var F=V.cmp(D);if(F<0){var R=V;V=D,D=R}else if(F===0||D.cmpn(1)===0)break;V.isub(D)}while(!0);return D.iushln(O)},Z.prototype.invm=function(G){return this.egcd(G).a.umod(G)},Z.prototype.isEven=function(){return(this.words[0]&1)===0},Z.prototype.isOdd=function(){return(this.words[0]&1)===1},Z.prototype.andln=function(G){return this.words[0]&G},Z.prototype.bincn=function(G){X(typeof G==="number");var V=G%26,D=(G-V)/26,O=1<<V;if(this.length<=D)return this._expand(D+1),this.words[D]|=O,this;var F=O;for(var R=D;F!==0&&R<this.length;R++){var j=this.words[R]|0;j+=F,F=j>>>26,j&=67108863,this.words[R]=j}if(F!==0)this.words[R]=F,this.length++;return this},Z.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Z.prototype.cmpn=function(G){var V=G<0;if(this.negative!==0&&!V)return-1;if(this.negative===0&&V)return 1;this.strip();var D;if(this.length>1)D=1;else{if(V)G=-G;X(G<=67108863,"Number is too big");var O=this.words[0]|0;D=O===G?0:O<G?-1:1}if(this.negative!==0)return-D|0;return D},Z.prototype.cmp=function(G){if(this.negative!==0&&G.negative===0)return-1;if(this.negative===0&&G.negative!==0)return 1;var V=this.ucmp(G);if(this.negative!==0)return-V|0;return V},Z.prototype.ucmp=function(G){if(this.length>G.length)return 1;if(this.length<G.length)return-1;var V=0;for(var D=this.length-1;D>=0;D--){var O=this.words[D]|0,F=G.words[D]|0;if(O===F)continue;if(O<F)V=-1;else if(O>F)V=1;break}return V},Z.prototype.gtn=function(G){return this.cmpn(G)===1},Z.prototype.gt=function(G){return this.cmp(G)===1},Z.prototype.gten=function(G){return this.cmpn(G)>=0},Z.prototype.gte=function(G){return this.cmp(G)>=0},Z.prototype.ltn=function(G){return this.cmpn(G)===-1},Z.prototype.lt=function(G){return this.cmp(G)===-1},Z.prototype.lten=function(G){return this.cmpn(G)<=0},Z.prototype.lte=function(G){return this.cmp(G)<=0},Z.prototype.eqn=function(G){return this.cmpn(G)===0},Z.prototype.eq=function(G){return this.cmp(G)===0},Z.red=function(G){return new t(G)},Z.prototype.toRed=function(G){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),G.convertTo(this)._forceRed(G)},Z.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Z.prototype._forceRed=function(G){return this.red=G,this},Z.prototype.forceRed=function(G){return X(!this.red,"Already a number in reduction context"),this._forceRed(G)},Z.prototype.redAdd=function(G){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,G)},Z.prototype.redIAdd=function(G){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,G)},Z.prototype.redSub=function(G){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,G)},Z.prototype.redISub=function(G){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,G)},Z.prototype.redShl=function(G){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,G)},Z.prototype.redMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.mul(this,G)},Z.prototype.redIMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.imul(this,G)},Z.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Z.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Z.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Z.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Z.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Z.prototype.redPow=function(G){return X(this.red&&!G.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,G)};var p={k256:null,p224:null,p192:null,p25519:null};function n(G,V){this.name=G,this.p=new Z(V,16),this.n=this.p.bitLength(),this.k=new Z(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}n.prototype._tmp=function(){var G=new Z(null);return G.words=Array(Math.ceil(this.n/13)),G},n.prototype.ireduce=function(G){var V=G,D;do this.split(V,this.tmp),V=this.imulK(V),V=V.iadd(this.tmp),D=V.bitLength();while(D>this.n);var O=D<this.n?-1:V.ucmp(this.p);if(O===0)V.words[0]=0,V.length=1;else if(O>0)V.isub(this.p);else if(V.strip!==void 0)V.strip();else V._strip();return V},n.prototype.split=function(G,V){G.iushrn(this.n,0,V)},n.prototype.imulK=function(G){return G.imul(this.k)};function a(){n.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}K(a,n),a.prototype.split=function(G,V){var D=4194303,O=Math.min(G.length,9);for(var F=0;F<O;F++)V.words[F]=G.words[F];if(V.length=O,G.length<=9){G.words[0]=0,G.length=1;return}var R=G.words[9];V.words[V.length++]=R&D;for(F=10;F<G.length;F++){var j=G.words[F]|0;G.words[F-10]=(j&D)<<4|R>>>22,R=j}if(R>>>=22,G.words[F-10]=R,R===0&&G.length>10)G.length-=10;else G.length-=9},a.prototype.imulK=function(G){G.words[G.length]=0,G.words[G.length+1]=0,G.length+=2;var V=0;for(var D=0;D<G.length;D++){var O=G.words[D]|0;V+=O*977,G.words[D]=V&67108863,V=O*64+(V/67108864|0)}if(G.words[G.length-1]===0){if(G.length--,G.words[G.length-1]===0)G.length--}return G};function D0(){n.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}K(D0,n);function M0(){n.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}K(M0,n);function S0(){n.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}K(S0,n),S0.prototype.imulK=function(G){var V=0;for(var D=0;D<G.length;D++){var O=(G.words[D]|0)*19+V,F=O&67108863;O>>>=26,G.words[D]=F,V=O}if(V!==0)G.words[G.length++]=V;return G},Z._prime=function(G){if(p[G])return p[G];var V;if(G==="k256")V=new a;else if(G==="p224")V=new D0;else if(G==="p192")V=new M0;else if(G==="p25519")V=new S0;else throw Error("Unknown prime "+G);return p[G]=V,V};function t(G){if(typeof G==="string"){var V=Z._prime(G);this.m=V.p,this.prime=V}else X(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}t.prototype._verify1=function(G){X(G.negative===0,"red works only with positives"),X(G.red,"red works only with red numbers")},t.prototype._verify2=function(G,V){X((G.negative|V.negative)===0,"red works only with positives"),X(G.red&&G.red===V.red,"red works only with red numbers")},t.prototype.imod=function(G){if(this.prime)return this.prime.ireduce(G)._forceRed(this);return G.umod(this.m)._forceRed(this)},t.prototype.neg=function(G){if(G.isZero())return G.clone();return this.m.sub(G)._forceRed(this)},t.prototype.add=function(G,V){this._verify2(G,V);var D=G.add(V);if(D.cmp(this.m)>=0)D.isub(this.m);return D._forceRed(this)},t.prototype.iadd=function(G,V){this._verify2(G,V);var D=G.iadd(V);if(D.cmp(this.m)>=0)D.isub(this.m);return D},t.prototype.sub=function(G,V){this._verify2(G,V);var D=G.sub(V);if(D.cmpn(0)<0)D.iadd(this.m);return D._forceRed(this)},t.prototype.isub=function(G,V){this._verify2(G,V);var D=G.isub(V);if(D.cmpn(0)<0)D.iadd(this.m);return D},t.prototype.shl=function(G,V){return this._verify1(G),this.imod(G.ushln(V))},t.prototype.imul=function(G,V){return this._verify2(G,V),this.imod(G.imul(V))},t.prototype.mul=function(G,V){return this._verify2(G,V),this.imod(G.mul(V))},t.prototype.isqr=function(G){return this.imul(G,G.clone())},t.prototype.sqr=function(G){return this.mul(G,G)},t.prototype.sqrt=function(G){if(G.isZero())return G.clone();var V=this.m.andln(3);if(X(V%2===1),V===3){var D=this.m.add(new Z(1)).iushrn(2);return this.pow(G,D)}var O=this.m.subn(1),F=0;while(!O.isZero()&&O.andln(1)===0)F++,O.iushrn(1);X(!O.isZero());var R=new Z(1).toRed(this),j=R.redNeg(),C=this.m.subn(1).iushrn(1),z=this.m.bitLength();z=new Z(2*z*z).toRed(this);while(this.pow(z,C).cmp(j)!==0)z.redIAdd(j);var T=this.pow(z,O),x=this.pow(G,O.addn(1).iushrn(1)),v=this.pow(G,O),h=F;while(v.cmp(R)!==0){var r=v;for(var U0=0;r.cmp(R)!==0;U0++)r=r.redSqr();X(U0<h);var K0=this.pow(T,new Z(1).iushln(h-U0-1));x=x.redMul(K0),T=K0.redSqr(),v=v.redMul(T),h=U0}return x},t.prototype.invm=function(G){var V=G._invmp(this.m);if(V.negative!==0)return V.negative=0,this.imod(V).redNeg();else return this.imod(V)},t.prototype.pow=function(G,V){if(V.isZero())return new Z(1).toRed(this);if(V.cmpn(1)===0)return G.clone();var D=4,O=Array(1<<D);O[0]=new Z(1).toRed(this),O[1]=G;for(var F=2;F<O.length;F++)O[F]=this.mul(O[F-1],G);var R=O[0],j=0,C=0,z=V.bitLength()%26;if(z===0)z=26;for(F=V.length-1;F>=0;F--){var T=V.words[F];for(var x=z-1;x>=0;x--){var v=T>>x&1;if(R!==O[0])R=this.sqr(R);if(v===0&&j===0){C=0;continue}if(j<<=1,j|=v,C++,C!==D&&(F!==0||x!==0))continue;R=this.mul(R,O[j]),C=0,j=0}z=26}return R},t.prototype.convertTo=function(G){var V=G.umod(this.m);return V===G?V.clone():V},t.prototype.convertFrom=function(G){var V=G.clone();return V.red=null,V},Z.mont=function(G){return new R0(G)};function R0(G){if(t.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Z(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)}K(R0,t),R0.prototype.convertTo=function(G){return this.imod(G.ushln(this.shift))},R0.prototype.convertFrom=function(G){var V=this.imod(G.mul(this.rinv));return V.red=null,V},R0.prototype.imul=function(G,V){if(G.isZero()||V.isZero())return G.words[0]=0,G.length=1,G;var D=G.imul(V),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=D.isub(O).iushrn(this.shift),R=F;if(F.cmp(this.m)>=0)R=F.isub(this.m);else if(F.cmpn(0)<0)R=F.iadd(this.m);return R._forceRed(this)},R0.prototype.mul=function(G,V){if(G.isZero()||V.isZero())return new Z(0)._forceRed(this);var D=G.mul(V),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=D.isub(O).iushrn(this.shift),R=F;if(F.cmp(this.m)>=0)R=F.isub(this.m);else if(F.cmpn(0)<0)R=F.iadd(this.m);return R._forceRed(this)},R0.prototype.invm=function(G){var V=this.imod(G._invmp(this.m).mul(this.r2));return V._forceRed(this)}})(typeof I>"u"||I,J)}),QX=u0((J,I)=>{I.exports=Y;function Y(W,X){if(!W)throw Error(X||"Assertion failed")}Y.equal=function(W,X,K){if(W!=X)throw Error(K||"Assertion failed: "+W+" != "+X)}}),Oj=u0((J)=>{var I=J;function Y(K,Z){if(Array.isArray(K))return K.slice();if(!K)return[];var L=[];if(typeof K!=="string"){for(var E=0;E<K.length;E++)L[E]=K[E]|0;return L}if(Z==="hex"){if(K=K.replace(/[^a-z0-9]+/ig,""),K.length%2!==0)K="0"+K;for(var E=0;E<K.length;E+=2)L.push(parseInt(K[E]+K[E+1],16))}else for(var E=0;E<K.length;E++){var _=K.charCodeAt(E),S=_>>8,A=_&255;if(S)L.push(S,A);else L.push(A)}return L}I.toArray=Y;function W(K){if(K.length===1)return"0"+K;else return K}I.zero2=W;function X(K){var Z="";for(var L=0;L<K.length;L++)Z+=W(K[L].toString(16));return Z}I.toHex=X,I.encode=function(K,Z){if(Z==="hex")return X(K);else return K}}),y1=u0((J)=>{var I=J,Y=KJ(),W=QX(),X=Oj();I.assert=W,I.toArray=X.toArray,I.zero2=X.zero2,I.toHex=X.toHex,I.encode=X.encode;function K(S,A,q){var B=Array(Math.max(S.bitLength(),q)+1),N;for(N=0;N<B.length;N+=1)B[N]=0;var f=1<<A+1,w=S.clone();for(N=0;N<B.length;N++){var u,g=w.andln(f-1);if(w.isOdd()){if(g>(f>>1)-1)u=(f>>1)-g;else u=g;w.isubn(u)}else u=0;B[N]=u,w.iushrn(1)}return B}I.getNAF=K;function Z(S,A){var q=[[],[]];S=S.clone(),A=A.clone();var B=0,N=0,f;while(S.cmpn(-B)>0||A.cmpn(-N)>0){var w=S.andln(3)+B&3,u=A.andln(3)+N&3;if(w===3)w=-1;if(u===3)u=-1;var g;if((w&1)===0)g=0;else if(f=S.andln(7)+B&7,(f===3||f===5)&&u===2)g=-w;else g=w;q[0].push(g);var b;if((u&1)===0)b=0;else if(f=A.andln(7)+N&7,(f===3||f===5)&&w===2)b=-u;else b=u;if(q[1].push(b),2*B===g+1)B=1-B;if(2*N===b+1)N=1-N;S.iushrn(1),A.iushrn(1)}return q}I.getJSF=Z;function L(S,A,q){var B="_"+A;S.prototype[A]=function(){return this[B]!==void 0?this[B]:this[B]=q.call(this)}}I.cachedProperty=L;function E(S){return typeof S==="string"?I.toArray(S,"hex"):S}I.parseBytes=E;function _(S){return new Y(S,"hex","le")}I.intFromLE=_}),Vj=u0((J,I)=>{var Y;I.exports=function(K){if(!Y)Y=new W(null);return Y.generate(K)};function W(K){this.rand=K}if(I.exports.Rand=W,W.prototype.generate=function(K){return this._rand(K)},W.prototype._rand=function(K){if(this.rand.getBytes)return this.rand.getBytes(K);var Z=new Uint8Array(K);for(var L=0;L<Z.length;L++)Z[L]=this.rand.getByte();return Z},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)W.prototype._rand=function(K){var Z=new Uint8Array(K);return self.crypto.getRandomValues(Z),Z};else if(self.msCrypto&&self.msCrypto.getRandomValues)W.prototype._rand=function(K){var Z=new Uint8Array(K);return self.msCrypto.getRandomValues(Z),Z};else if(typeof window==="object")W.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(X=(bU(),E$(A1)),typeof X.randomBytes!=="function")throw Error("Not supported");W.prototype._rand=function(K){return X.randomBytes(K)}}catch(K){}var X}),q8=u0((J,I)=>{var Y=KJ(),W=y1(),X=W.getNAF,K=W.getJSF,Z=W.assert;function L(_,S){this.type=_,this.p=new Y(S.p,16),this.red=S.prime?Y.red(S.prime):Y.mont(this.p),this.zero=new Y(0).toRed(this.red),this.one=new Y(1).toRed(this.red),this.two=new Y(2).toRed(this.red),this.n=S.n&&new Y(S.n,16),this.g=S.g&&this.pointFromJSON(S.g,S.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var A=this.n&&this.p.div(this.n);if(!A||A.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}I.exports=L,L.prototype.point=function(){throw Error("Not implemented")},L.prototype.validate=function(){throw Error("Not implemented")},L.prototype._fixedNafMul=function(_,S){Z(_.precomputed);var A=_._getDoubles(),q=X(S,1,this._bitLength),B=(1<<A.step+1)-(A.step%2===0?2:1);B/=3;var N=[],f,w;for(f=0;f<q.length;f+=A.step){w=0;for(var u=f+A.step-1;u>=f;u--)w=(w<<1)+q[u];N.push(w)}var g=this.jpoint(null,null,null),b=this.jpoint(null,null,null);for(var p=B;p>0;p--){for(f=0;f<N.length;f++)if(w=N[f],w===p)b=b.mixedAdd(A.points[f]);else if(w===-p)b=b.mixedAdd(A.points[f].neg());g=g.add(b)}return g.toP()},L.prototype._wnafMul=function(_,S){var A=4,q=_._getNAFPoints(A);A=q.wnd;var B=q.points,N=X(S,A,this._bitLength),f=this.jpoint(null,null,null);for(var w=N.length-1;w>=0;w--){for(var u=0;w>=0&&N[w]===0;w--)u++;if(w>=0)u++;if(f=f.dblp(u),w<0)break;var g=N[w];if(Z(g!==0),_.type==="affine")if(g>0)f=f.mixedAdd(B[g-1>>1]);else f=f.mixedAdd(B[-g-1>>1].neg());else if(g>0)f=f.add(B[g-1>>1]);else f=f.add(B[-g-1>>1].neg())}return _.type==="affine"?f.toP():f},L.prototype._wnafMulAdd=function(_,S,A,q,B){var N=this._wnafT1,f=this._wnafT2,w=this._wnafT3,u=0,g,b,p;for(g=0;g<q;g++){p=S[g];var n=p._getNAFPoints(_);N[g]=n.wnd,f[g]=n.points}for(g=q-1;g>=1;g-=2){var a=g-1,D0=g;if(N[a]!==1||N[D0]!==1){w[a]=X(A[a],N[a],this._bitLength),w[D0]=X(A[D0],N[D0],this._bitLength),u=Math.max(w[a].length,u),u=Math.max(w[D0].length,u);continue}var M0=[S[a],null,null,S[D0]];if(S[a].y.cmp(S[D0].y)===0)M0[1]=S[a].add(S[D0]),M0[2]=S[a].toJ().mixedAdd(S[D0].neg());else if(S[a].y.cmp(S[D0].y.redNeg())===0)M0[1]=S[a].toJ().mixedAdd(S[D0]),M0[2]=S[a].add(S[D0].neg());else M0[1]=S[a].toJ().mixedAdd(S[D0]),M0[2]=S[a].toJ().mixedAdd(S[D0].neg());var S0=[-3,-1,-5,-7,0,7,5,1,3],t=K(A[a],A[D0]);u=Math.max(t[0].length,u),w[a]=Array(u),w[D0]=Array(u);for(b=0;b<u;b++){var R0=t[0][b]|0,G=t[1][b]|0;w[a][b]=S0[(R0+1)*3+(G+1)],w[D0][b]=0,f[a]=M0}}var V=this.jpoint(null,null,null),D=this._wnafT4;for(g=u;g>=0;g--){var O=0;while(g>=0){var F=!0;for(b=0;b<q;b++)if(D[b]=w[b][g]|0,D[b]!==0)F=!1;if(!F)break;O++,g--}if(g>=0)O++;if(V=V.dblp(O),g<0)break;for(b=0;b<q;b++){var R=D[b];if(R===0)continue;else if(R>0)p=f[b][R-1>>1];else if(R<0)p=f[b][-R-1>>1].neg();if(p.type==="affine")V=V.mixedAdd(p);else V=V.add(p)}}for(g=0;g<q;g++)f[g]=null;if(B)return V;else return V.toP()};function E(_,S){this.curve=_,this.type=S,this.precomputed=null}L.BasePoint=E,E.prototype.eq=function(){throw Error("Not implemented")},E.prototype.validate=function(){return this.curve.validate(this)},L.prototype.decodePoint=function(_,S){_=W.toArray(_,S);var A=this.p.byteLength();if((_[0]===4||_[0]===6||_[0]===7)&&_.length-1===2*A){if(_[0]===6)Z(_[_.length-1]%2===0);else if(_[0]===7)Z(_[_.length-1]%2===1);var q=this.point(_.slice(1,1+A),_.slice(1+A,1+2*A));return q}else if((_[0]===2||_[0]===3)&&_.length-1===A)return this.pointFromX(_.slice(1,1+A),_[0]===3);throw Error("Unknown point format")},E.prototype.encodeCompressed=function(_){return this.encode(_,!0)},E.prototype._encode=function(_){var S=this.curve.p.byteLength(),A=this.getX().toArray("be",S);if(_)return[this.getY().isEven()?2:3].concat(A);return[4].concat(A,this.getY().toArray("be",S))},E.prototype.encode=function(_,S){return W.encode(this._encode(S),_)},E.prototype.precompute=function(_){if(this.precomputed)return this;var S={doubles:null,naf:null,beta:null};return S.naf=this._getNAFPoints(8),S.doubles=this._getDoubles(4,_),S.beta=this._getBeta(),this.precomputed=S,this},E.prototype._hasDoubles=function(_){if(!this.precomputed)return!1;var S=this.precomputed.doubles;if(!S)return!1;return S.points.length>=Math.ceil((_.bitLength()+1)/S.step)},E.prototype._getDoubles=function(_,S){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var A=[this],q=this;for(var B=0;B<S;B+=_){for(var N=0;N<_;N++)q=q.dbl();A.push(q)}return{step:_,points:A}},E.prototype._getNAFPoints=function(_){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var S=[this],A=(1<<_)-1,q=A===1?null:this.dbl();for(var B=1;B<A;B++)S[B]=S[B-1].add(q);return{wnd:_,points:S}},E.prototype._getBeta=function(){return null},E.prototype.dblp=function(_){var S=this;for(var A=0;A<_;A++)S=S.dbl();return S}}),Tf=u0((J,I)=>{if(typeof Object.create==="function")I.exports=function(Y,W){if(W)Y.super_=W,Y.prototype=Object.create(W.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(Y,W){if(W){Y.super_=W;var X=function(){};X.prototype=W.prototype,Y.prototype=new X,Y.prototype.constructor=Y}}}),L1=u0((J,I)=>{try{if(Y=(SQ(),E$(qQ)),typeof Y.inherits!=="function")throw"";I.exports=Y.inherits}catch(W){I.exports=Tf()}var Y}),Rf=u0((J,I)=>{var Y=y1(),W=KJ(),X=L1(),K=q8(),Z=Y.assert;function L(S){K.call(this,"short",S),this.a=new W(S.a,16).toRed(this.red),this.b=new W(S.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(S),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}X(L,K),I.exports=L,L.prototype._getEndomorphism=function(S){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var A,q;if(S.beta)A=new W(S.beta,16).toRed(this.red);else{var B=this._getEndoRoots(this.p);A=B[0].cmp(B[1])<0?B[0]:B[1],A=A.toRed(this.red)}if(S.lambda)q=new W(S.lambda,16);else{var N=this._getEndoRoots(this.n);if(this.g.mul(N[0]).x.cmp(this.g.x.redMul(A))===0)q=N[0];else q=N[1],Z(this.g.mul(q).x.cmp(this.g.x.redMul(A))===0)}var f;if(S.basis)f=S.basis.map(function(w){return{a:new W(w.a,16),b:new W(w.b,16)}});else f=this._getEndoBasis(q);return{beta:A,lambda:q,basis:f}},L.prototype._getEndoRoots=function(S){var A=S===this.p?this.red:W.mont(S),q=new W(2).toRed(A).redInvm(),B=q.redNeg(),N=new W(3).toRed(A).redNeg().redSqrt().redMul(q),f=B.redAdd(N).fromRed(),w=B.redSub(N).fromRed();return[f,w]},L.prototype._getEndoBasis=function(S){var A=this.n.ushrn(Math.floor(this.n.bitLength()/2)),q=S,B=this.n.clone(),N=new W(1),f=new W(0),w=new W(0),u=new W(1),g,b,p,n,a,D0,M0,S0=0,t,R0;while(q.cmpn(0)!==0){var G=B.div(q);t=B.sub(G.mul(q)),R0=w.sub(G.mul(N));var V=u.sub(G.mul(f));if(!p&&t.cmp(A)<0)g=M0.neg(),b=N,p=t.neg(),n=R0;else if(p&&++S0===2)break;M0=t,B=q,q=t,w=N,N=R0,u=f,f=V}a=t.neg(),D0=R0;var D=p.sqr().add(n.sqr()),O=a.sqr().add(D0.sqr());if(O.cmp(D)>=0)a=g,D0=b;if(p.negative)p=p.neg(),n=n.neg();if(a.negative)a=a.neg(),D0=D0.neg();return[{a:p,b:n},{a,b:D0}]},L.prototype._endoSplit=function(S){var A=this.endo.basis,q=A[0],B=A[1],N=B.b.mul(S).divRound(this.n),f=q.b.neg().mul(S).divRound(this.n),w=N.mul(q.a),u=f.mul(B.a),g=N.mul(q.b),b=f.mul(B.b),p=S.sub(w).sub(u),n=g.add(b).neg();return{k1:p,k2:n}},L.prototype.pointFromX=function(S,A){if(S=new W(S,16),!S.red)S=S.toRed(this.red);var q=S.redSqr().redMul(S).redIAdd(S.redMul(this.a)).redIAdd(this.b),B=q.redSqrt();if(B.redSqr().redSub(q).cmp(this.zero)!==0)throw Error("invalid point");var N=B.fromRed().isOdd();if(A&&!N||!A&&N)B=B.redNeg();return this.point(S,B)},L.prototype.validate=function(S){if(S.inf)return!0;var{x:A,y:q}=S,B=this.a.redMul(A),N=A.redSqr().redMul(A).redIAdd(B).redIAdd(this.b);return q.redSqr().redISub(N).cmpn(0)===0},L.prototype._endoWnafMulAdd=function(S,A,q){var B=this._endoWnafT1,N=this._endoWnafT2;for(var f=0;f<S.length;f++){var w=this._endoSplit(A[f]),u=S[f],g=u._getBeta();if(w.k1.negative)w.k1.ineg(),u=u.neg(!0);if(w.k2.negative)w.k2.ineg(),g=g.neg(!0);B[f*2]=u,B[f*2+1]=g,N[f*2]=w.k1,N[f*2+1]=w.k2}var b=this._wnafMulAdd(1,B,N,f*2,q);for(var p=0;p<f*2;p++)B[p]=null,N[p]=null;return b};function E(S,A,q,B){if(K.BasePoint.call(this,S,"affine"),A===null&&q===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new W(A,16),this.y=new W(q,16),B)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}}X(E,K.BasePoint),L.prototype.point=function(S,A,q){return new E(this,S,A,q)},L.prototype.pointFromJSON=function(S,A){return E.fromJSON(this,S,A)},E.prototype._getBeta=function(){if(!this.curve.endo)return;var S=this.precomputed;if(S&&S.beta)return S.beta;var A=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(S){var q=this.curve,B=function(N){return q.point(N.x.redMul(q.endo.beta),N.y)};S.beta=A,A.precomputed={beta:null,naf:S.naf&&{wnd:S.naf.wnd,points:S.naf.points.map(B)},doubles:S.doubles&&{step:S.doubles.step,points:S.doubles.points.map(B)}}}return A},E.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)}}]},E.fromJSON=function(S,A,q){if(typeof A==="string")A=JSON.parse(A);var B=S.point(A[0],A[1],q);if(!A[2])return B;function N(w){return S.point(w[0],w[1],q)}var f=A[2];return B.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[B].concat(f.doubles.points.map(N))},naf:f.naf&&{wnd:f.naf.wnd,points:[B].concat(f.naf.points.map(N))}},B},E.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)+">"},E.prototype.isInfinity=function(){return this.inf},E.prototype.add=function(S){if(this.inf)return S;if(S.inf)return this;if(this.eq(S))return this.dbl();if(this.neg().eq(S))return this.curve.point(null,null);if(this.x.cmp(S.x)===0)return this.curve.point(null,null);var A=this.y.redSub(S.y);if(A.cmpn(0)!==0)A=A.redMul(this.x.redSub(S.x).redInvm());var q=A.redSqr().redISub(this.x).redISub(S.x),B=A.redMul(this.x.redSub(q)).redISub(this.y);return this.curve.point(q,B)},E.prototype.dbl=function(){if(this.inf)return this;var S=this.y.redAdd(this.y);if(S.cmpn(0)===0)return this.curve.point(null,null);var A=this.curve.a,q=this.x.redSqr(),B=S.redInvm(),N=q.redAdd(q).redIAdd(q).redIAdd(A).redMul(B),f=N.redSqr().redISub(this.x.redAdd(this.x)),w=N.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,w)},E.prototype.getX=function(){return this.x.fromRed()},E.prototype.getY=function(){return this.y.fromRed()},E.prototype.mul=function(S){if(S=new W(S,16),this.isInfinity())return this;else if(this._hasDoubles(S))return this.curve._fixedNafMul(this,S);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[S]);else return this.curve._wnafMul(this,S)},E.prototype.mulAdd=function(S,A,q){var B=[this,A],N=[S,q];if(this.curve.endo)return this.curve._endoWnafMulAdd(B,N);else return this.curve._wnafMulAdd(1,B,N,2)},E.prototype.jmulAdd=function(S,A,q){var B=[this,A],N=[S,q];if(this.curve.endo)return this.curve._endoWnafMulAdd(B,N,!0);else return this.curve._wnafMulAdd(1,B,N,2,!0)},E.prototype.eq=function(S){return this===S||this.inf===S.inf&&(this.inf||this.x.cmp(S.x)===0&&this.y.cmp(S.y)===0)},E.prototype.neg=function(S){if(this.inf)return this;var A=this.curve.point(this.x,this.y.redNeg());if(S&&this.precomputed){var q=this.precomputed,B=function(N){return N.neg()};A.precomputed={naf:q.naf&&{wnd:q.naf.wnd,points:q.naf.points.map(B)},doubles:q.doubles&&{step:q.doubles.step,points:q.doubles.points.map(B)}}}return A},E.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var S=this.curve.jpoint(this.x,this.y,this.curve.one);return S};function _(S,A,q,B){if(K.BasePoint.call(this,S,"jacobian"),A===null&&q===null&&B===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new W(0);else this.x=new W(A,16),this.y=new W(q,16),this.z=new W(B,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}X(_,K.BasePoint),L.prototype.jpoint=function(S,A,q){return new _(this,S,A,q)},_.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var S=this.z.redInvm(),A=S.redSqr(),q=this.x.redMul(A),B=this.y.redMul(A).redMul(S);return this.curve.point(q,B)},_.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},_.prototype.add=function(S){if(this.isInfinity())return S;if(S.isInfinity())return this;var A=S.z.redSqr(),q=this.z.redSqr(),B=this.x.redMul(A),N=S.x.redMul(q),f=this.y.redMul(A.redMul(S.z)),w=S.y.redMul(q.redMul(this.z)),u=B.redSub(N),g=f.redSub(w);if(u.cmpn(0)===0)if(g.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var b=u.redSqr(),p=b.redMul(u),n=B.redMul(b),a=g.redSqr().redIAdd(p).redISub(n).redISub(n),D0=g.redMul(n.redISub(a)).redISub(f.redMul(p)),M0=this.z.redMul(S.z).redMul(u);return this.curve.jpoint(a,D0,M0)},_.prototype.mixedAdd=function(S){if(this.isInfinity())return S.toJ();if(S.isInfinity())return this;var A=this.z.redSqr(),q=this.x,B=S.x.redMul(A),N=this.y,f=S.y.redMul(A).redMul(this.z),w=q.redSub(B),u=N.redSub(f);if(w.cmpn(0)===0)if(u.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var g=w.redSqr(),b=g.redMul(w),p=q.redMul(g),n=u.redSqr().redIAdd(b).redISub(p).redISub(p),a=u.redMul(p.redISub(n)).redISub(N.redMul(b)),D0=this.z.redMul(w);return this.curve.jpoint(n,a,D0)},_.prototype.dblp=function(S){if(S===0)return this;if(this.isInfinity())return this;if(!S)return this.dbl();var A;if(this.curve.zeroA||this.curve.threeA){var q=this;for(A=0;A<S;A++)q=q.dbl();return q}var B=this.curve.a,N=this.curve.tinv,f=this.x,w=this.y,u=this.z,g=u.redSqr().redSqr(),b=w.redAdd(w);for(A=0;A<S;A++){var p=f.redSqr(),n=b.redSqr(),a=n.redSqr(),D0=p.redAdd(p).redIAdd(p).redIAdd(B.redMul(g)),M0=f.redMul(n),S0=D0.redSqr().redISub(M0.redAdd(M0)),t=M0.redISub(S0),R0=D0.redMul(t);R0=R0.redIAdd(R0).redISub(a);var G=b.redMul(u);if(A+1<S)g=g.redMul(a);f=S0,u=G,b=R0}return this.curve.jpoint(f,b.redMul(N),u)},_.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()},_.prototype._zeroDbl=function(){var S,A,q;if(this.zOne){var B=this.x.redSqr(),N=this.y.redSqr(),f=N.redSqr(),w=this.x.redAdd(N).redSqr().redISub(B).redISub(f);w=w.redIAdd(w);var u=B.redAdd(B).redIAdd(B),g=u.redSqr().redISub(w).redISub(w),b=f.redIAdd(f);b=b.redIAdd(b),b=b.redIAdd(b),S=g,A=u.redMul(w.redISub(g)).redISub(b),q=this.y.redAdd(this.y)}else{var p=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),D0=this.x.redAdd(n).redSqr().redISub(p).redISub(a);D0=D0.redIAdd(D0);var M0=p.redAdd(p).redIAdd(p),S0=M0.redSqr(),t=a.redIAdd(a);t=t.redIAdd(t),t=t.redIAdd(t),S=S0.redISub(D0).redISub(D0),A=M0.redMul(D0.redISub(S)).redISub(t),q=this.y.redMul(this.z),q=q.redIAdd(q)}return this.curve.jpoint(S,A,q)},_.prototype._threeDbl=function(){var S,A,q;if(this.zOne){var B=this.x.redSqr(),N=this.y.redSqr(),f=N.redSqr(),w=this.x.redAdd(N).redSqr().redISub(B).redISub(f);w=w.redIAdd(w);var u=B.redAdd(B).redIAdd(B).redIAdd(this.curve.a),g=u.redSqr().redISub(w).redISub(w);S=g;var b=f.redIAdd(f);b=b.redIAdd(b),b=b.redIAdd(b),A=u.redMul(w.redISub(g)).redISub(b),q=this.y.redAdd(this.y)}else{var p=this.z.redSqr(),n=this.y.redSqr(),a=this.x.redMul(n),D0=this.x.redSub(p).redMul(this.x.redAdd(p));D0=D0.redAdd(D0).redIAdd(D0);var M0=a.redIAdd(a);M0=M0.redIAdd(M0);var S0=M0.redAdd(M0);S=D0.redSqr().redISub(S0),q=this.y.redAdd(this.z).redSqr().redISub(n).redISub(p);var t=n.redSqr();t=t.redIAdd(t),t=t.redIAdd(t),t=t.redIAdd(t),A=D0.redMul(M0.redISub(S)).redISub(t)}return this.curve.jpoint(S,A,q)},_.prototype._dbl=function(){var S=this.curve.a,A=this.x,q=this.y,B=this.z,N=B.redSqr().redSqr(),f=A.redSqr(),w=q.redSqr(),u=f.redAdd(f).redIAdd(f).redIAdd(S.redMul(N)),g=A.redAdd(A);g=g.redIAdd(g);var b=g.redMul(w),p=u.redSqr().redISub(b.redAdd(b)),n=b.redISub(p),a=w.redSqr();a=a.redIAdd(a),a=a.redIAdd(a),a=a.redIAdd(a);var D0=u.redMul(n).redISub(a),M0=q.redAdd(q).redMul(B);return this.curve.jpoint(p,D0,M0)},_.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var S=this.x.redSqr(),A=this.y.redSqr(),q=this.z.redSqr(),B=A.redSqr(),N=S.redAdd(S).redIAdd(S),f=N.redSqr(),w=this.x.redAdd(A).redSqr().redISub(S).redISub(B);w=w.redIAdd(w),w=w.redAdd(w).redIAdd(w),w=w.redISub(f);var u=w.redSqr(),g=B.redIAdd(B);g=g.redIAdd(g),g=g.redIAdd(g),g=g.redIAdd(g);var b=N.redIAdd(w).redSqr().redISub(f).redISub(u).redISub(g),p=A.redMul(b);p=p.redIAdd(p),p=p.redIAdd(p);var n=this.x.redMul(u).redISub(p);n=n.redIAdd(n),n=n.redIAdd(n);var a=this.y.redMul(b.redMul(g.redISub(b)).redISub(w.redMul(u)));a=a.redIAdd(a),a=a.redIAdd(a),a=a.redIAdd(a);var D0=this.z.redAdd(w).redSqr().redISub(q).redISub(u);return this.curve.jpoint(n,a,D0)},_.prototype.mul=function(S,A){return S=new W(S,A),this.curve._wnafMul(this,S)},_.prototype.eq=function(S){if(S.type==="affine")return this.eq(S.toJ());if(this===S)return!0;var A=this.z.redSqr(),q=S.z.redSqr();if(this.x.redMul(q).redISub(S.x.redMul(A)).cmpn(0)!==0)return!1;var B=A.redMul(this.z),N=q.redMul(S.z);return this.y.redMul(N).redISub(S.y.redMul(B)).cmpn(0)===0},_.prototype.eqXToP=function(S){var A=this.z.redSqr(),q=S.toRed(this.curve.red).redMul(A);if(this.x.cmp(q)===0)return!0;var B=S.clone(),N=this.curve.redN.redMul(A);for(;;){if(B.iadd(this.curve.n),B.cmp(this.curve.p)>=0)return!1;if(q.redIAdd(N),this.x.cmp(q)===0)return!0}},_.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)+">"},_.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),Pf=u0((J,I)=>{var Y=KJ(),W=L1(),X=q8(),K=y1();function Z(E){X.call(this,"mont",E),this.a=new Y(E.a,16).toRed(this.red),this.b=new Y(E.b,16).toRed(this.red),this.i4=new Y(4).toRed(this.red).redInvm(),this.two=new Y(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}W(Z,X),I.exports=Z,Z.prototype.validate=function(E){var _=E.normalize().x,S=_.redSqr(),A=S.redMul(_).redAdd(S.redMul(this.a)).redAdd(_),q=A.redSqrt();return q.redSqr().cmp(A)===0};function L(E,_,S){if(X.BasePoint.call(this,E,"projective"),_===null&&S===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new Y(_,16),this.z=new Y(S,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}W(L,X.BasePoint),Z.prototype.decodePoint=function(E,_){return this.point(K.toArray(E,_),1)},Z.prototype.point=function(E,_){return new L(this,E,_)},Z.prototype.pointFromJSON=function(E){return L.fromJSON(this,E)},L.prototype.precompute=function(){},L.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},L.fromJSON=function(E,_){return new L(E,_[0],_[1]||E.one)},L.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)+">"},L.prototype.isInfinity=function(){return this.z.cmpn(0)===0},L.prototype.dbl=function(){var E=this.x.redAdd(this.z),_=E.redSqr(),S=this.x.redSub(this.z),A=S.redSqr(),q=_.redSub(A),B=_.redMul(A),N=q.redMul(A.redAdd(this.curve.a24.redMul(q)));return this.curve.point(B,N)},L.prototype.add=function(){throw Error("Not supported on Montgomery curve")},L.prototype.diffAdd=function(E,_){var S=this.x.redAdd(this.z),A=this.x.redSub(this.z),q=E.x.redAdd(E.z),B=E.x.redSub(E.z),N=B.redMul(S),f=q.redMul(A),w=_.z.redMul(N.redAdd(f).redSqr()),u=_.x.redMul(N.redISub(f).redSqr());return this.curve.point(w,u)},L.prototype.mul=function(E){var _=E.clone(),S=this,A=this.curve.point(null,null),q=this;for(var B=[];_.cmpn(0)!==0;_.iushrn(1))B.push(_.andln(1));for(var N=B.length-1;N>=0;N--)if(B[N]===0)S=S.diffAdd(A,q),A=A.dbl();else A=S.diffAdd(A,q),S=S.dbl();return A},L.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},L.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},L.prototype.eq=function(E){return this.getX().cmp(E.getX())===0},L.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},L.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),_f=u0((J,I)=>{var Y=y1(),W=KJ(),X=L1(),K=q8(),Z=Y.assert;function L(_){this.twisted=(_.a|0)!==1,this.mOneA=this.twisted&&(_.a|0)===-1,this.extended=this.mOneA,K.call(this,"edwards",_),this.a=new W(_.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new W(_.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new W(_.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Z(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(_.c|0)===1}X(L,K),I.exports=L,L.prototype._mulA=function(_){if(this.mOneA)return _.redNeg();else return this.a.redMul(_)},L.prototype._mulC=function(_){if(this.oneC)return _;else return this.c.redMul(_)},L.prototype.jpoint=function(_,S,A,q){return this.point(_,S,A,q)},L.prototype.pointFromX=function(_,S){if(_=new W(_,16),!_.red)_=_.toRed(this.red);var A=_.redSqr(),q=this.c2.redSub(this.a.redMul(A)),B=this.one.redSub(this.c2.redMul(this.d).redMul(A)),N=q.redMul(B.redInvm()),f=N.redSqrt();if(f.redSqr().redSub(N).cmp(this.zero)!==0)throw Error("invalid point");var w=f.fromRed().isOdd();if(S&&!w||!S&&w)f=f.redNeg();return this.point(_,f)},L.prototype.pointFromY=function(_,S){if(_=new W(_,16),!_.red)_=_.toRed(this.red);var A=_.redSqr(),q=A.redSub(this.c2),B=A.redMul(this.d).redMul(this.c2).redSub(this.a),N=q.redMul(B.redInvm());if(N.cmp(this.zero)===0)if(S)throw Error("invalid point");else return this.point(this.zero,_);var f=N.redSqrt();if(f.redSqr().redSub(N).cmp(this.zero)!==0)throw Error("invalid point");if(f.fromRed().isOdd()!==S)f=f.redNeg();return this.point(f,_)},L.prototype.validate=function(_){if(_.isInfinity())return!0;_.normalize();var S=_.x.redSqr(),A=_.y.redSqr(),q=S.redMul(this.a).redAdd(A),B=this.c2.redMul(this.one.redAdd(this.d.redMul(S).redMul(A)));return q.cmp(B)===0};function E(_,S,A,q,B){if(K.BasePoint.call(this,_,"projective"),S===null&&A===null&&q===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 W(S,16),this.y=new W(A,16),this.z=q?new W(q,16):this.curve.one,this.t=B&&new W(B,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())}}}X(E,K.BasePoint),L.prototype.pointFromJSON=function(_){return E.fromJSON(this,_)},L.prototype.point=function(_,S,A,q){return new E(this,_,S,A,q)},E.fromJSON=function(_,S){return new E(_,S[0],S[1],S[2])},E.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)+">"},E.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},E.prototype._extDbl=function(){var _=this.x.redSqr(),S=this.y.redSqr(),A=this.z.redSqr();A=A.redIAdd(A);var q=this.curve._mulA(_),B=this.x.redAdd(this.y).redSqr().redISub(_).redISub(S),N=q.redAdd(S),f=N.redSub(A),w=q.redSub(S),u=B.redMul(f),g=N.redMul(w),b=B.redMul(w),p=f.redMul(N);return this.curve.point(u,g,p,b)},E.prototype._projDbl=function(){var _=this.x.redAdd(this.y).redSqr(),S=this.x.redSqr(),A=this.y.redSqr(),q,B,N,f,w,u;if(this.curve.twisted){f=this.curve._mulA(S);var g=f.redAdd(A);if(this.zOne)q=_.redSub(S).redSub(A).redMul(g.redSub(this.curve.two)),B=g.redMul(f.redSub(A)),N=g.redSqr().redSub(g).redSub(g);else w=this.z.redSqr(),u=g.redSub(w).redISub(w),q=_.redSub(S).redISub(A).redMul(u),B=g.redMul(f.redSub(A)),N=g.redMul(u)}else f=S.redAdd(A),w=this.curve._mulC(this.z).redSqr(),u=f.redSub(w).redSub(w),q=this.curve._mulC(_.redISub(f)).redMul(u),B=this.curve._mulC(f).redMul(S.redISub(A)),N=f.redMul(u);return this.curve.point(q,B,N)},E.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},E.prototype._extAdd=function(_){var S=this.y.redSub(this.x).redMul(_.y.redSub(_.x)),A=this.y.redAdd(this.x).redMul(_.y.redAdd(_.x)),q=this.t.redMul(this.curve.dd).redMul(_.t),B=this.z.redMul(_.z.redAdd(_.z)),N=A.redSub(S),f=B.redSub(q),w=B.redAdd(q),u=A.redAdd(S),g=N.redMul(f),b=w.redMul(u),p=N.redMul(u),n=f.redMul(w);return this.curve.point(g,b,n,p)},E.prototype._projAdd=function(_){var S=this.z.redMul(_.z),A=S.redSqr(),q=this.x.redMul(_.x),B=this.y.redMul(_.y),N=this.curve.d.redMul(q).redMul(B),f=A.redSub(N),w=A.redAdd(N),u=this.x.redAdd(this.y).redMul(_.x.redAdd(_.y)).redISub(q).redISub(B),g=S.redMul(f).redMul(u),b,p;if(this.curve.twisted)b=S.redMul(w).redMul(B.redSub(this.curve._mulA(q))),p=f.redMul(w);else b=S.redMul(w).redMul(B.redSub(q)),p=this.curve._mulC(f).redMul(w);return this.curve.point(g,b,p)},E.prototype.add=function(_){if(this.isInfinity())return _;if(_.isInfinity())return this;if(this.curve.extended)return this._extAdd(_);else return this._projAdd(_)},E.prototype.mul=function(_){if(this._hasDoubles(_))return this.curve._fixedNafMul(this,_);else return this.curve._wnafMul(this,_)},E.prototype.mulAdd=function(_,S,A){return this.curve._wnafMulAdd(1,[this,S],[_,A],2,!1)},E.prototype.jmulAdd=function(_,S,A){return this.curve._wnafMulAdd(1,[this,S],[_,A],2,!0)},E.prototype.normalize=function(){if(this.zOne)return this;var _=this.z.redInvm();if(this.x=this.x.redMul(_),this.y=this.y.redMul(_),this.t)this.t=this.t.redMul(_);return this.z=this.curve.one,this.zOne=!0,this},E.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},E.prototype.getX=function(){return this.normalize(),this.x.fromRed()},E.prototype.getY=function(){return this.normalize(),this.y.fromRed()},E.prototype.eq=function(_){return this===_||this.getX().cmp(_.getX())===0&&this.getY().cmp(_.getY())===0},E.prototype.eqXToP=function(_){var S=_.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(S)===0)return!0;var A=_.clone(),q=this.curve.redN.redMul(this.z);for(;;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(S.redIAdd(q),this.x.cmp(S)===0)return!0}},E.prototype.toP=E.prototype.normalize,E.prototype.mixedAdd=E.prototype.add}),Hj=u0((J)=>{var I=J;I.base=q8(),I.short=Rf(),I.mont=Pf(),I.edwards=_f()}),B4=u0((J)=>{var I=QX(),Y=L1();J.inherits=Y;function W(V,D){if((V.charCodeAt(D)&64512)!==55296)return!1;if(D<0||D+1>=V.length)return!1;return(V.charCodeAt(D+1)&64512)===56320}function X(V,D){if(Array.isArray(V))return V.slice();if(!V)return[];var O=[];if(typeof V==="string"){if(!D){var F=0;for(var R=0;R<V.length;R++){var j=V.charCodeAt(R);if(j<128)O[F++]=j;else if(j<2048)O[F++]=j>>6|192,O[F++]=j&63|128;else if(W(V,R))j=65536+((j&1023)<<10)+(V.charCodeAt(++R)&1023),O[F++]=j>>18|240,O[F++]=j>>12&63|128,O[F++]=j>>6&63|128,O[F++]=j&63|128;else O[F++]=j>>12|224,O[F++]=j>>6&63|128,O[F++]=j&63|128}}else if(D==="hex"){if(V=V.replace(/[^a-z0-9]+/ig,""),V.length%2!==0)V="0"+V;for(R=0;R<V.length;R+=2)O.push(parseInt(V[R]+V[R+1],16))}}else for(R=0;R<V.length;R++)O[R]=V[R]|0;return O}J.toArray=X;function K(V){var D="";for(var O=0;O<V.length;O++)D+=E(V[O].toString(16));return D}J.toHex=K;function Z(V){var D=V>>>24|V>>>8&65280|V<<8&16711680|(V&255)<<24;return D>>>0}J.htonl=Z;function L(V,D){var O="";for(var F=0;F<V.length;F++){var R=V[F];if(D==="little")R=Z(R);O+=_(R.toString(16))}return O}J.toHex32=L;function E(V){if(V.length===1)return"0"+V;else return V}J.zero2=E;function _(V){if(V.length===7)return"0"+V;else if(V.length===6)return"00"+V;else if(V.length===5)return"000"+V;else if(V.length===4)return"0000"+V;else if(V.length===3)return"00000"+V;else if(V.length===2)return"000000"+V;else if(V.length===1)return"0000000"+V;else return V}J.zero8=_;function S(V,D,O,F){var R=O-D;I(R%4===0);var j=Array(R/4);for(var C=0,z=D;C<j.length;C++,z+=4){var T;if(F==="big")T=V[z]<<24|V[z+1]<<16|V[z+2]<<8|V[z+3];else T=V[z+3]<<24|V[z+2]<<16|V[z+1]<<8|V[z];j[C]=T>>>0}return j}J.join32=S;function A(V,D){var O=Array(V.length*4);for(var F=0,R=0;F<V.length;F++,R+=4){var j=V[F];if(D==="big")O[R]=j>>>24,O[R+1]=j>>>16&255,O[R+2]=j>>>8&255,O[R+3]=j&255;else O[R+3]=j>>>24,O[R+2]=j>>>16&255,O[R+1]=j>>>8&255,O[R]=j&255}return O}J.split32=A;function q(V,D){return V>>>D|V<<32-D}J.rotr32=q;function B(V,D){return V<<D|V>>>32-D}J.rotl32=B;function N(V,D){return V+D>>>0}J.sum32=N;function f(V,D,O){return V+D+O>>>0}J.sum32_3=f;function w(V,D,O,F){return V+D+O+F>>>0}J.sum32_4=w;function u(V,D,O,F,R){return V+D+O+F+R>>>0}J.sum32_5=u;function g(V,D,O,F){var R=V[D],j=V[D+1],C=F+j>>>0,z=(C<F?1:0)+O+R;V[D]=z>>>0,V[D+1]=C}J.sum64=g;function b(V,D,O,F){var R=D+F>>>0,j=(R<D?1:0)+V+O;return j>>>0}J.sum64_hi=b;function p(V,D,O,F){var R=D+F;return R>>>0}J.sum64_lo=p;function n(V,D,O,F,R,j,C,z){var T=0,x=D;x=x+F>>>0,T+=x<D?1:0,x=x+j>>>0,T+=x<j?1:0,x=x+z>>>0,T+=x<z?1:0;var v=V+O+R+C+T;return v>>>0}J.sum64_4_hi=n;function a(V,D,O,F,R,j,C,z){var T=D+F+j+z;return T>>>0}J.sum64_4_lo=a;function D0(V,D,O,F,R,j,C,z,T,x){var v=0,h=D;h=h+F>>>0,v+=h<D?1:0,h=h+j>>>0,v+=h<j?1:0,h=h+z>>>0,v+=h<z?1:0,h=h+x>>>0,v+=h<x?1:0;var r=V+O+R+C+T+v;return r>>>0}J.sum64_5_hi=D0;function M0(V,D,O,F,R,j,C,z,T,x){var v=D+F+j+z+x;return v>>>0}J.sum64_5_lo=M0;function S0(V,D,O){var F=D<<32-O|V>>>O;return F>>>0}J.rotr64_hi=S0;function t(V,D,O){var F=V<<32-O|D>>>O;return F>>>0}J.rotr64_lo=t;function R0(V,D,O){return V>>>O}J.shr64_hi=R0;function G(V,D,O){var F=V<<32-O|D>>>O;return F>>>0}J.shr64_lo=G}),Q2=u0((J)=>{var I=B4(),Y=QX();function W(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}J.BlockHash=W,W.prototype.update=function(X,K){if(X=I.toArray(X,K),!this.pending)this.pending=X;else this.pending=this.pending.concat(X);if(this.pendingTotal+=X.length,this.pending.length>=this._delta8){X=this.pending;var Z=X.length%this._delta8;if(this.pending=X.slice(X.length-Z,X.length),this.pending.length===0)this.pending=null;X=I.join32(X,0,X.length-Z,this.endian);for(var L=0;L<X.length;L+=this._delta32)this._update(X,L,L+this._delta32)}return this},W.prototype.digest=function(X){return this.update(this._pad()),Y(this.pending===null),this._digest(X)},W.prototype._pad=function(){var X=this.pendingTotal,K=this._delta8,Z=K-(X+this.padLength)%K,L=Array(Z+this.padLength);L[0]=128;for(var E=1;E<Z;E++)L[E]=0;if(X<<=3,this.endian==="big"){for(var _=8;_<this.padLength;_++)L[E++]=0;L[E++]=0,L[E++]=0,L[E++]=0,L[E++]=0,L[E++]=X>>>24&255,L[E++]=X>>>16&255,L[E++]=X>>>8&255,L[E++]=X&255}else{L[E++]=X&255,L[E++]=X>>>8&255,L[E++]=X>>>16&255,L[E++]=X>>>24&255,L[E++]=0,L[E++]=0,L[E++]=0,L[E++]=0;for(_=8;_<this.padLength;_++)L[E++]=0}return L}}),Fj=u0((J)=>{var I=B4(),Y=I.rotr32;function W(A,q,B,N){if(A===0)return X(q,B,N);if(A===1||A===3)return Z(q,B,N);if(A===2)return K(q,B,N)}J.ft_1=W;function X(A,q,B){return A&q^~A&B}J.ch32=X;function K(A,q,B){return A&q^A&B^q&B}J.maj32=K;function Z(A,q,B){return A^q^B}J.p32=Z;function L(A){return Y(A,2)^Y(A,13)^Y(A,22)}J.s0_256=L;function E(A){return Y(A,6)^Y(A,11)^Y(A,25)}J.s1_256=E;function _(A){return Y(A,7)^Y(A,18)^A>>>3}J.g0_256=_;function S(A){return Y(A,17)^Y(A,19)^A>>>10}J.g1_256=S}),qf=u0((J,I)=>{var Y=B4(),W=Q2(),X=Fj(),K=Y.rotl32,Z=Y.sum32,L=Y.sum32_5,E=X.ft_1,_=W.BlockHash,S=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;_.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}Y.inherits(A,_),I.exports=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(q,B){var N=this.W;for(var f=0;f<16;f++)N[f]=q[B+f];for(;f<N.length;f++)N[f]=K(N[f-3]^N[f-8]^N[f-14]^N[f-16],1);var w=this.h[0],u=this.h[1],g=this.h[2],b=this.h[3],p=this.h[4];for(f=0;f<N.length;f++){var n=~~(f/20),a=L(K(w,5),E(n,u,g,b),p,N[f],S[n]);p=b,b=g,g=K(u,30),u=w,w=a}this.h[0]=Z(this.h[0],w),this.h[1]=Z(this.h[1],u),this.h[2]=Z(this.h[2],g),this.h[3]=Z(this.h[3],b),this.h[4]=Z(this.h[4],p)},A.prototype._digest=function(q){if(q==="hex")return Y.toHex32(this.h,"big");else return Y.split32(this.h,"big")}}),Dj=u0((J,I)=>{var Y=B4(),W=Q2(),X=Fj(),K=QX(),Z=Y.sum32,L=Y.sum32_4,E=Y.sum32_5,_=X.ch32,S=X.maj32,A=X.s0_256,q=X.s1_256,B=X.g0_256,N=X.g1_256,f=W.BlockHash,w=[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 u(){if(!(this instanceof u))return new u;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=Array(64)}Y.inherits(u,f),I.exports=u,u.blockSize=512,u.outSize=256,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(g,b){var p=this.W;for(var n=0;n<16;n++)p[n]=g[b+n];for(;n<p.length;n++)p[n]=L(N(p[n-2]),p[n-7],B(p[n-15]),p[n-16]);var a=this.h[0],D0=this.h[1],M0=this.h[2],S0=this.h[3],t=this.h[4],R0=this.h[5],G=this.h[6],V=this.h[7];K(this.k.length===p.length);for(n=0;n<p.length;n++){var D=E(V,q(t),_(t,R0,G),this.k[n],p[n]),O=Z(A(a),S(a,D0,M0));V=G,G=R0,R0=t,t=Z(S0,D),S0=M0,M0=D0,D0=a,a=Z(D,O)}this.h[0]=Z(this.h[0],a),this.h[1]=Z(this.h[1],D0),this.h[2]=Z(this.h[2],M0),this.h[3]=Z(this.h[3],S0),this.h[4]=Z(this.h[4],t),this.h[5]=Z(this.h[5],R0),this.h[6]=Z(this.h[6],G),this.h[7]=Z(this.h[7],V)},u.prototype._digest=function(g){if(g==="hex")return Y.toHex32(this.h,"big");else return Y.split32(this.h,"big")}}),Sf=u0((J,I)=>{var Y=B4(),W=Dj();function X(){if(!(this instanceof X))return new X;W.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Y.inherits(X,W),I.exports=X,X.blockSize=512,X.outSize=224,X.hmacStrength=192,X.padLength=64,X.prototype._digest=function(K){if(K==="hex")return Y.toHex32(this.h.slice(0,7),"big");else return Y.split32(this.h.slice(0,7),"big")}}),Lj=u0((J,I)=>{var Y=B4(),W=Q2(),X=QX(),K=Y.rotr64_hi,Z=Y.rotr64_lo,L=Y.shr64_hi,E=Y.shr64_lo,_=Y.sum64,S=Y.sum64_hi,A=Y.sum64_lo,q=Y.sum64_4_hi,B=Y.sum64_4_lo,N=Y.sum64_5_hi,f=Y.sum64_5_lo,w=W.BlockHash,u=[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 g(){if(!(this instanceof g))return new g;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=u,this.W=Array(160)}Y.inherits(g,w),I.exports=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype._prepareBlock=function(O,F){var R=this.W;for(var j=0;j<32;j++)R[j]=O[F+j];for(;j<R.length;j+=2){var C=V(R[j-4],R[j-3]),z=D(R[j-4],R[j-3]),T=R[j-14],x=R[j-13],v=R0(R[j-30],R[j-29]),h=G(R[j-30],R[j-29]),r=R[j-32],U0=R[j-31];R[j]=q(C,z,T,x,v,h,r,U0),R[j+1]=B(C,z,T,x,v,h,r,U0)}},g.prototype._update=function(O,F){this._prepareBlock(O,F);var R=this.W,j=this.h[0],C=this.h[1],z=this.h[2],T=this.h[3],x=this.h[4],v=this.h[5],h=this.h[6],r=this.h[7],U0=this.h[8],K0=this.h[9],Q0=this.h[10],s=this.h[11],e=this.h[12],I0=this.h[13],Z0=this.h[14],C0=this.h[15];X(this.k.length===R.length);for(var $0=0;$0<R.length;$0+=2){var c=Z0,d=C0,L0=S0(U0,K0),Y0=t(U0,K0),V0=b(U0,K0,Q0,s,e,I0),k0=p(U0,K0,Q0,s,e,I0),J0=this.k[$0],O0=this.k[$0+1],J$=R[$0],A0=R[$0+1],v0=N(c,d,L0,Y0,V0,k0,J0,O0,J$,A0),M$=f(c,d,L0,Y0,V0,k0,J0,O0,J$,A0);c=D0(j,C),d=M0(j,C),L0=n(j,C,z,T,x,v),Y0=a(j,C,z,T,x,v);var m0=S(c,d,L0,Y0),p0=A(c,d,L0,Y0);Z0=e,C0=I0,e=Q0,I0=s,Q0=U0,s=K0,U0=S(h,r,v0,M$),K0=A(r,r,v0,M$),h=x,r=v,x=z,v=T,z=j,T=C,j=S(v0,M$,m0,p0),C=A(v0,M$,m0,p0)}_(this.h,0,j,C),_(this.h,2,z,T),_(this.h,4,x,v),_(this.h,6,h,r),_(this.h,8,U0,K0),_(this.h,10,Q0,s),_(this.h,12,e,I0),_(this.h,14,Z0,C0)},g.prototype._digest=function(O){if(O==="hex")return Y.toHex32(this.h,"big");else return Y.split32(this.h,"big")};function b(O,F,R,j,C){var z=O&R^~O&C;if(z<0)z+=4294967296;return z}function p(O,F,R,j,C,z){var T=F&j^~F&z;if(T<0)T+=4294967296;return T}function n(O,F,R,j,C){var z=O&R^O&C^R&C;if(z<0)z+=4294967296;return z}function a(O,F,R,j,C,z){var T=F&j^F&z^j&z;if(T<0)T+=4294967296;return T}function D0(O,F){var R=K(O,F,28),j=K(F,O,2),C=K(F,O,7),z=R^j^C;if(z<0)z+=4294967296;return z}function M0(O,F){var R=Z(O,F,28),j=Z(F,O,2),C=Z(F,O,7),z=R^j^C;if(z<0)z+=4294967296;return z}function S0(O,F){var R=K(O,F,14),j=K(O,F,18),C=K(F,O,9),z=R^j^C;if(z<0)z+=4294967296;return z}function t(O,F){var R=Z(O,F,14),j=Z(O,F,18),C=Z(F,O,9),z=R^j^C;if(z<0)z+=4294967296;return z}function R0(O,F){var R=K(O,F,1),j=K(O,F,8),C=L(O,F,7),z=R^j^C;if(z<0)z+=4294967296;return z}function G(O,F){var R=Z(O,F,1),j=Z(O,F,8),C=E(O,F,7),z=R^j^C;if(z<0)z+=4294967296;return z}function V(O,F){var R=K(O,F,19),j=K(F,O,29),C=L(O,F,6),z=R^j^C;if(z<0)z+=4294967296;return z}function D(O,F){var R=Z(O,F,19),j=Z(F,O,29),C=E(O,F,6),z=R^j^C;if(z<0)z+=4294967296;return z}}),jf=u0((J,I)=>{var Y=B4(),W=Lj();function X(){if(!(this instanceof X))return new X;W.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Y.inherits(X,W),I.exports=X,X.blockSize=1024,X.outSize=384,X.hmacStrength=192,X.padLength=128,X.prototype._digest=function(K){if(K==="hex")return Y.toHex32(this.h.slice(0,12),"big");else return Y.split32(this.h.slice(0,12),"big")}}),Ef=u0((J)=>{J.sha1=qf(),J.sha224=Sf(),J.sha256=Dj(),J.sha384=jf(),J.sha512=Lj()}),Bf=u0((J)=>{var I=B4(),Y=Q2(),W=I.rotl32,X=I.sum32,K=I.sum32_3,Z=I.sum32_4,L=Y.BlockHash;function E(){if(!(this instanceof E))return new E;L.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}I.inherits(E,L),J.ripemd160=E,E.blockSize=512,E.outSize=160,E.hmacStrength=192,E.padLength=64,E.prototype._update=function(w,u){var g=this.h[0],b=this.h[1],p=this.h[2],n=this.h[3],a=this.h[4],D0=g,M0=b,S0=p,t=n,R0=a;for(var G=0;G<80;G++){var V=X(W(Z(g,_(G,b,p,n),w[q[G]+u],S(G)),N[G]),a);g=a,a=n,n=W(p,10),p=b,b=V,V=X(W(Z(D0,_(79-G,M0,S0,t),w[B[G]+u],A(G)),f[G]),R0),D0=R0,R0=t,t=W(S0,10),S0=M0,M0=V}V=K(this.h[1],p,t),this.h[1]=K(this.h[2],n,R0),this.h[2]=K(this.h[3],a,D0),this.h[3]=K(this.h[4],g,M0),this.h[4]=K(this.h[0],b,S0),this.h[0]=V},E.prototype._digest=function(w){if(w==="hex")return I.toHex32(this.h,"little");else return I.split32(this.h,"little")};function _(w,u,g,b){if(w<=15)return u^g^b;else if(w<=31)return u&g|~u&b;else if(w<=47)return(u|~g)^b;else if(w<=63)return u&b|g&~b;else return u^(g|~b)}function S(w){if(w<=15)return 0;else if(w<=31)return 1518500249;else if(w<=47)return 1859775393;else if(w<=63)return 2400959708;else return 2840853838}function A(w){if(w<=15)return 1352829926;else if(w<=31)return 1548603684;else if(w<=47)return 1836072691;else if(w<=63)return 2053994217;else return 0}var q=[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],B=[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],N=[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],f=[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]}),vf=u0((J,I)=>{var Y=B4(),W=QX();function X(K,Z,L){if(!(this instanceof X))return new X(K,Z,L);this.Hash=K,this.blockSize=K.blockSize/8,this.outSize=K.outSize/8,this.inner=null,this.outer=null,this._init(Y.toArray(Z,L))}I.exports=X,X.prototype._init=function(K){if(K.length>this.blockSize)K=new this.Hash().update(K).digest();W(K.length<=this.blockSize);for(var Z=K.length;Z<this.blockSize;Z++)K.push(0);for(Z=0;Z<K.length;Z++)K[Z]^=54;this.inner=new this.Hash().update(K);for(Z=0;Z<K.length;Z++)K[Z]^=106;this.outer=new this.Hash().update(K)},X.prototype.update=function(K,Z){return this.inner.update(K,Z),this},X.prototype.digest=function(K){return this.outer.update(this.inner.digest()),this.outer.digest(K)}}),TH=u0((J)=>{var I=J;I.utils=B4(),I.common=Q2(),I.sha=Ef(),I.ripemd=Bf(),I.hmac=vf(),I.sha1=I.sha.sha1,I.sha256=I.sha.sha256,I.sha224=I.sha.sha224,I.sha384=I.sha.sha384,I.sha512=I.sha.sha512,I.ripemd160=I.ripemd.ripemd160}),Nf=u0((J,I)=>{I.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"]]}}}),RH=u0((J)=>{var I=J,Y=TH(),W=Hj(),X=y1(),K=X.assert;function Z(_){if(_.type==="short")this.curve=new W.short(_);else if(_.type==="edwards")this.curve=new W.edwards(_);else this.curve=new W.mont(_);this.g=this.curve.g,this.n=this.curve.n,this.hash=_.hash,K(this.g.validate(),"Invalid curve"),K(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}I.PresetCurve=Z;function L(_,S){Object.defineProperty(I,_,{configurable:!0,enumerable:!0,get:function(){var A=new Z(S);return Object.defineProperty(I,_,{configurable:!0,enumerable:!0,value:A}),A}})}L("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:Y.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),L("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:Y.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),L("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:Y.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),L("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:Y.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"]}),L("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:Y.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"]}),L("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Y.sha256,gRed:!1,g:["9"]}),L("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:Y.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var E;try{E=Nf()}catch(_){E=void 0}L("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:Y.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",E]})}),kf=u0((J,I)=>{var Y=TH(),W=Oj(),X=QX();function K(Z){if(!(this instanceof K))return new K(Z);this.hash=Z.hash,this.predResist=!!Z.predResist,this.outLen=this.hash.outSize,this.minEntropy=Z.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var L=W.toArray(Z.entropy,Z.entropyEnc||"hex"),E=W.toArray(Z.nonce,Z.nonceEnc||"hex"),_=W.toArray(Z.pers,Z.persEnc||"hex");X(L.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(L,E,_)}I.exports=K,K.prototype._init=function(Z,L,E){var _=Z.concat(L).concat(E);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var S=0;S<this.V.length;S++)this.K[S]=0,this.V[S]=1;this._update(_),this._reseed=1,this.reseedInterval=281474976710656},K.prototype._hmac=function(){return new Y.hmac(this.hash,this.K)},K.prototype._update=function(Z){var L=this._hmac().update(this.V).update([0]);if(Z)L=L.update(Z);if(this.K=L.digest(),this.V=this._hmac().update(this.V).digest(),!Z)return;this.K=this._hmac().update(this.V).update([1]).update(Z).digest(),this.V=this._hmac().update(this.V).digest()},K.prototype.reseed=function(Z,L,E,_){if(typeof L!=="string")_=E,E=L,L=null;Z=W.toArray(Z,L),E=W.toArray(E,_),X(Z.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(Z.concat(E||[])),this._reseed=1},K.prototype.generate=function(Z,L,E,_){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof L!=="string")_=E,E=L,L=null;if(E)E=W.toArray(E,_||"hex"),this._update(E);var S=[];while(S.length<Z)this.V=this._hmac().update(this.V).digest(),S=S.concat(this.V);var A=S.slice(0,Z);return this._update(E),this._reseed++,W.encode(A,L)}}),gf=u0((J,I)=>{var Y=KJ(),W=y1(),X=W.assert;function K(Z,L){if(this.ec=Z,this.priv=null,this.pub=null,L.priv)this._importPrivate(L.priv,L.privEnc);if(L.pub)this._importPublic(L.pub,L.pubEnc)}I.exports=K,K.fromPublic=function(Z,L,E){if(L instanceof K)return L;return new K(Z,{pub:L,pubEnc:E})},K.fromPrivate=function(Z,L,E){if(L instanceof K)return L;return new K(Z,{priv:L,privEnc:E})},K.prototype.validate=function(){var Z=this.getPublic();if(Z.isInfinity())return{result:!1,reason:"Invalid public key"};if(!Z.validate())return{result:!1,reason:"Public key is not a point"};if(!Z.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},K.prototype.getPublic=function(Z,L){if(typeof Z==="string")L=Z,Z=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!L)return this.pub;return this.pub.encode(L,Z)},K.prototype.getPrivate=function(Z){if(Z==="hex")return this.priv.toString(16,2);else return this.priv},K.prototype._importPrivate=function(Z,L){this.priv=new Y(Z,L||16),this.priv=this.priv.umod(this.ec.curve.n)},K.prototype._importPublic=function(Z,L){if(Z.x||Z.y){if(this.ec.curve.type==="mont")X(Z.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")X(Z.x&&Z.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(Z.x,Z.y);return}this.pub=this.ec.curve.decodePoint(Z,L)},K.prototype.derive=function(Z){if(!Z.validate())X(Z.validate(),"public point not validated");return Z.mul(this.priv).getX()},K.prototype.sign=function(Z,L,E){return this.ec.sign(Z,this,L,E)},K.prototype.verify=function(Z,L,E){return this.ec.verify(Z,L,this,void 0,E)},K.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),xf=u0((J,I)=>{var Y=KJ(),W=y1(),X=W.assert;function K(S,A){if(S instanceof K)return S;if(this._importDER(S,A))return;if(X(S.r&&S.s,"Signature without r or s"),this.r=new Y(S.r,16),this.s=new Y(S.s,16),S.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=S.recoveryParam}I.exports=K;function Z(){this.place=0}function L(S,A){var q=S[A.place++];if(!(q&128))return q;var B=q&15;if(B===0||B>4)return!1;if(S[A.place]===0)return!1;var N=0;for(var f=0,w=A.place;f<B;f++,w++)N<<=8,N|=S[w],N>>>=0;if(N<=127)return!1;return A.place=w,N}function E(S){var A=0,q=S.length-1;while(!S[A]&&!(S[A+1]&128)&&A<q)A++;if(A===0)return S;return S.slice(A)}K.prototype._importDER=function(S,A){S=W.toArray(S,A);var q=new Z;if(S[q.place++]!==48)return!1;var B=L(S,q);if(B===!1)return!1;if(B+q.place!==S.length)return!1;if(S[q.place++]!==2)return!1;var N=L(S,q);if(N===!1)return!1;if((S[q.place]&128)!==0)return!1;var f=S.slice(q.place,N+q.place);if(q.place+=N,S[q.place++]!==2)return!1;var w=L(S,q);if(w===!1)return!1;if(S.length!==w+q.place)return!1;if((S[q.place]&128)!==0)return!1;var u=S.slice(q.place,w+q.place);if(f[0]===0)if(f[1]&128)f=f.slice(1);else return!1;if(u[0]===0)if(u[1]&128)u=u.slice(1);else return!1;return this.r=new Y(f),this.s=new Y(u),this.recoveryParam=null,!0};function _(S,A){if(A<128){S.push(A);return}var q=1+(Math.log(A)/Math.LN2>>>3);S.push(q|128);while(--q)S.push(A>>>(q<<3)&255);S.push(A)}K.prototype.toDER=function(S){var A=this.r.toArray(),q=this.s.toArray();if(A[0]&128)A=[0].concat(A);if(q[0]&128)q=[0].concat(q);A=E(A),q=E(q);while(!q[0]&&!(q[1]&128))q=q.slice(1);var B=[2];_(B,A.length),B=B.concat(A),B.push(2),_(B,q.length);var N=B.concat(q),f=[48];return _(f,N.length),f=f.concat(N),W.encode(f,S)}}),wf=u0((J,I)=>{var Y=KJ(),W=kf(),X=y1(),K=RH(),Z=Vj(),L=X.assert,E=gf(),_=xf();function S(A){if(!(this instanceof S))return new S(A);if(typeof A==="string")L(Object.prototype.hasOwnProperty.call(K,A),"Unknown curve "+A),A=K[A];if(A instanceof K.PresetCurve)A={curve:A};this.curve=A.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=A.curve.g,this.g.precompute(A.curve.n.bitLength()+1),this.hash=A.hash||A.curve.hash}I.exports=S,S.prototype.keyPair=function(A){return new E(this,A)},S.prototype.keyFromPrivate=function(A,q){return E.fromPrivate(this,A,q)},S.prototype.keyFromPublic=function(A,q){return E.fromPublic(this,A,q)},S.prototype.genKeyPair=function(A){if(!A)A={};var q=new W({hash:this.hash,pers:A.pers,persEnc:A.persEnc||"utf8",entropy:A.entropy||Z(this.hash.hmacStrength),entropyEnc:A.entropy&&A.entropyEnc||"utf8",nonce:this.n.toArray()}),B=this.n.byteLength(),N=this.n.sub(new Y(2));for(;;){var f=new Y(q.generate(B));if(f.cmp(N)>0)continue;return f.iaddn(1),this.keyFromPrivate(f)}},S.prototype._truncateToN=function(A,q,B){var N;if(Y.isBN(A)||typeof A==="number")A=new Y(A,16),N=A.byteLength();else if(typeof A==="object")N=A.length,A=new Y(A,16);else{var f=A.toString();N=f.length+1>>>1,A=new Y(f,16)}if(typeof B!=="number")B=N*8;var w=B-this.n.bitLength();if(w>0)A=A.ushrn(w);if(!q&&A.cmp(this.n)>=0)return A.sub(this.n);else return A},S.prototype.sign=function(A,q,B,N){if(typeof B==="object")N=B,B=null;if(!N)N={};if(typeof A!=="string"&&typeof A!=="number"&&!Y.isBN(A)){L(typeof A==="object"&&A&&typeof A.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),L(A.length>>>0===A.length);for(var f=0;f<A.length;f++)L((A[f]&255)===A[f])}q=this.keyFromPrivate(q,B),A=this._truncateToN(A,!1,N.msgBitLength),L(!A.isNeg(),"Can not sign a negative message");var w=this.n.byteLength(),u=q.getPrivate().toArray("be",w),g=A.toArray("be",w);L(new Y(g).eq(A),"Can not sign message");var b=new W({hash:this.hash,entropy:u,nonce:g,pers:N.pers,persEnc:N.persEnc||"utf8"}),p=this.n.sub(new Y(1));for(var n=0;;n++){var a=N.k?N.k(n):new Y(b.generate(this.n.byteLength()));if(a=this._truncateToN(a,!0),a.cmpn(1)<=0||a.cmp(p)>=0)continue;var D0=this.g.mul(a);if(D0.isInfinity())continue;var M0=D0.getX(),S0=M0.umod(this.n);if(S0.cmpn(0)===0)continue;var t=a.invm(this.n).mul(S0.mul(q.getPrivate()).iadd(A));if(t=t.umod(this.n),t.cmpn(0)===0)continue;var R0=(D0.getY().isOdd()?1:0)|(M0.cmp(S0)!==0?2:0);if(N.canonical&&t.cmp(this.nh)>0)t=this.n.sub(t),R0^=1;return new _({r:S0,s:t,recoveryParam:R0})}},S.prototype.verify=function(A,q,B,N,f){if(!f)f={};A=this._truncateToN(A,!1,f.msgBitLength),B=this.keyFromPublic(B,N),q=new _(q,"hex");var{r:w,s:u}=q;if(w.cmpn(1)<0||w.cmp(this.n)>=0)return!1;if(u.cmpn(1)<0||u.cmp(this.n)>=0)return!1;var g=u.invm(this.n),b=g.mul(A).umod(this.n),p=g.mul(w).umod(this.n),n;if(!this.curve._maxwellTrick){if(n=this.g.mulAdd(b,B.getPublic(),p),n.isInfinity())return!1;return n.getX().umod(this.n).cmp(w)===0}if(n=this.g.jmulAdd(b,B.getPublic(),p),n.isInfinity())return!1;return n.eqXToP(w)},S.prototype.recoverPubKey=function(A,q,B,N){L((3&B)===B,"The recovery param is more than two bits"),q=new _(q,N);var f=this.n,w=new Y(A),u=q.r,g=q.s,b=B&1,p=B>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&p)throw Error("Unable to find sencond key candinate");if(p)u=this.curve.pointFromX(u.add(this.curve.n),b);else u=this.curve.pointFromX(u,b);var n=q.r.invm(f),a=f.sub(w).mul(n).umod(f),D0=g.mul(n).umod(f);return this.g.mulAdd(a,u,D0)},S.prototype.getKeyRecoveryParam=function(A,q,B,N){if(q=new _(q,N),q.recoveryParam!==null)return q.recoveryParam;for(var f=0;f<4;f++){var w;try{w=this.recoverPubKey(A,q,f)}catch(u){continue}if(w.eq(B))return f}throw Error("Unable to find valid recovery factor")}}),ff=u0((J,I)=>{var Y=y1(),W=Y.assert,X=Y.parseBytes,K=Y.cachedProperty;function Z(L,E){if(this.eddsa=L,this._secret=X(E.secret),L.isPoint(E.pub))this._pub=E.pub;else this._pubBytes=X(E.pub)}Z.fromPublic=function(L,E){if(E instanceof Z)return E;return new Z(L,{pub:E})},Z.fromSecret=function(L,E){if(E instanceof Z)return E;return new Z(L,{secret:E})},Z.prototype.secret=function(){return this._secret},K(Z,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),K(Z,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),K(Z,"privBytes",function(){var L=this.eddsa,E=this.hash(),_=L.encodingLength-1,S=E.slice(0,L.encodingLength);return S[0]&=248,S[_]&=127,S[_]|=64,S}),K(Z,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),K(Z,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),K(Z,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),Z.prototype.sign=function(L){return W(this._secret,"KeyPair can only verify"),this.eddsa.sign(L,this)},Z.prototype.verify=function(L,E){return this.eddsa.verify(L,E,this)},Z.prototype.getSecret=function(L){return W(this._secret,"KeyPair is public only"),Y.encode(this.secret(),L)},Z.prototype.getPublic=function(L){return Y.encode(this.pubBytes(),L)},I.exports=Z}),yf=u0((J,I)=>{var Y=KJ(),W=y1(),X=W.assert,K=W.cachedProperty,Z=W.parseBytes;function L(E,_){if(this.eddsa=E,typeof _!=="object")_=Z(_);if(Array.isArray(_))X(_.length===E.encodingLength*2,"Signature has invalid size"),_={R:_.slice(0,E.encodingLength),S:_.slice(E.encodingLength)};if(X(_.R&&_.S,"Signature without R or S"),E.isPoint(_.R))this._R=_.R;if(_.S instanceof Y)this._S=_.S;this._Rencoded=Array.isArray(_.R)?_.R:_.Rencoded,this._Sencoded=Array.isArray(_.S)?_.S:_.Sencoded}K(L,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),K(L,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),K(L,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),K(L,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),L.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},L.prototype.toHex=function(){return W.encode(this.toBytes(),"hex").toUpperCase()},I.exports=L}),bf=u0((J,I)=>{var Y=TH(),W=RH(),X=y1(),K=X.assert,Z=X.parseBytes,L=ff(),E=yf();function _(S){if(K(S==="ed25519","only tested with ed25519 so far"),!(this instanceof _))return new _(S);S=W[S].curve,this.curve=S,this.g=S.g,this.g.precompute(S.n.bitLength()+1),this.pointClass=S.point().constructor,this.encodingLength=Math.ceil(S.n.bitLength()/8),this.hash=Y.sha512}I.exports=_,_.prototype.sign=function(S,A){S=Z(S);var q=this.keyFromSecret(A),B=this.hashInt(q.messagePrefix(),S),N=this.g.mul(B),f=this.encodePoint(N),w=this.hashInt(f,q.pubBytes(),S).mul(q.priv()),u=B.add(w).umod(this.curve.n);return this.makeSignature({R:N,S:u,Rencoded:f})},_.prototype.verify=function(S,A,q){if(S=Z(S),A=this.makeSignature(A),A.S().gte(A.eddsa.curve.n)||A.S().isNeg())return!1;var B=this.keyFromPublic(q),N=this.hashInt(A.Rencoded(),B.pubBytes(),S),f=this.g.mul(A.S()),w=A.R().add(B.pub().mul(N));return w.eq(f)},_.prototype.hashInt=function(){var S=this.hash();for(var A=0;A<arguments.length;A++)S.update(arguments[A]);return X.intFromLE(S.digest()).umod(this.curve.n)},_.prototype.keyFromPublic=function(S){return L.fromPublic(this,S)},_.prototype.keyFromSecret=function(S){return L.fromSecret(this,S)},_.prototype.makeSignature=function(S){if(S instanceof E)return S;return new E(this,S)},_.prototype.encodePoint=function(S){var A=S.getY().toArray("le",this.encodingLength);return A[this.encodingLength-1]|=S.getX().isOdd()?128:0,A},_.prototype.decodePoint=function(S){S=X.parseBytes(S);var A=S.length-1,q=S.slice(0,A).concat(S[A]&-129),B=(S[A]&128)!==0,N=X.intFromLE(q);return this.curve.pointFromY(N,B)},_.prototype.encodeInt=function(S){return S.toArray("le",this.encodingLength)},_.prototype.decodeInt=function(S){return X.intFromLE(S)},_.prototype.isPoint=function(S){return S instanceof this.pointClass}}),uf=u0((J)=>{var I=J;I.version=Cf().version,I.utils=y1(),I.rand=Vj(),I.curve=Hj(),I.curves=RH(),I.ec=wf(),I.eddsa=bf()}),hf=u0((J,I)=>{(function(Y,W){function X(G,V){if(!G)throw Error(V||"Assertion failed")}function K(G,V){G.super_=V;var D=function(){};D.prototype=V.prototype,G.prototype=new D,G.prototype.constructor=G}function Z(G,V,D){if(Z.isBN(G))return G;if(this.negative=0,this.words=null,this.length=0,this.red=null,G!==null){if(V==="le"||V==="be")D=V,V=10;this._init(G||0,V||10,D||"be")}}if(typeof Y==="object")Y.exports=Z;else W.BN=Z;Z.BN=Z,Z.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(iU(),E$(oU)).Buffer}catch(G){}Z.isBN=function(G){if(G instanceof Z)return!0;return G!==null&&typeof G==="object"&&G.constructor.wordSize===Z.wordSize&&Array.isArray(G.words)},Z.max=function(G,V){if(G.cmp(V)>0)return G;return V},Z.min=function(G,V){if(G.cmp(V)<0)return G;return V},Z.prototype._init=function(G,V,D){if(typeof G==="number")return this._initNumber(G,V,D);if(typeof G==="object")return this._initArray(G,V,D);if(V==="hex")V=16;X(V===(V|0)&&V>=2&&V<=36),G=G.toString().replace(/\s+/g,"");var O=0;if(G[0]==="-")O++,this.negative=1;if(O<G.length){if(V===16)this._parseHex(G,O,D);else if(this._parseBase(G,V,O),D==="le")this._initArray(this.toArray(),V,D)}},Z.prototype._initNumber=function(G,V,D){if(G<0)this.negative=1,G=-G;if(G<67108864)this.words=[G&67108863],this.length=1;else if(G<4503599627370496)this.words=[G&67108863,G/67108864&67108863],this.length=2;else X(G<9007199254740992),this.words=[G&67108863,G/67108864&67108863,1],this.length=3;if(D!=="le")return;this._initArray(this.toArray(),V,D)},Z.prototype._initArray=function(G,V,D){if(X(typeof G.length==="number"),G.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(G.length/3),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F,R,j=0;if(D==="be"){for(O=G.length-1,F=0;O>=0;O-=3)if(R=G[O]|G[O-1]<<8|G[O-2]<<16,this.words[F]|=R<<j&67108863,this.words[F+1]=R>>>26-j&67108863,j+=24,j>=26)j-=26,F++}else if(D==="le"){for(O=0,F=0;O<G.length;O+=3)if(R=G[O]|G[O+1]<<8|G[O+2]<<16,this.words[F]|=R<<j&67108863,this.words[F+1]=R>>>26-j&67108863,j+=24,j>=26)j-=26,F++}return this.strip()};function E(G,V){var D=G.charCodeAt(V);if(D>=65&&D<=70)return D-55;else if(D>=97&&D<=102)return D-87;else return D-48&15}function _(G,V,D){var O=E(G,D);if(D-1>=V)O|=E(G,D-1)<<4;return O}Z.prototype._parseHex=function(G,V,D){this.length=Math.ceil((G.length-V)/6),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F=0,R=0,j;if(D==="be")for(O=G.length-1;O>=V;O-=2)if(j=_(G,V,O)<<F,this.words[R]|=j&67108863,F>=18)F-=18,R+=1,this.words[R]|=j>>>26;else F+=8;else{var C=G.length-V;for(O=C%2===0?V+1:V;O<G.length;O+=2)if(j=_(G,V,O)<<F,this.words[R]|=j&67108863,F>=18)F-=18,R+=1,this.words[R]|=j>>>26;else F+=8}this.strip()};function S(G,V,D,O){var F=0,R=Math.min(G.length,D);for(var j=V;j<R;j++){var C=G.charCodeAt(j)-48;if(F*=O,C>=49)F+=C-49+10;else if(C>=17)F+=C-17+10;else F+=C}return F}Z.prototype._parseBase=function(G,V,D){this.words=[0],this.length=1;for(var O=0,F=1;F<=67108863;F*=V)O++;O--,F=F/V|0;var R=G.length-D,j=R%O,C=Math.min(R,R-j)+D,z=0;for(var T=D;T<C;T+=O)if(z=S(G,T,T+O,V),this.imuln(F),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z);if(j!==0){var x=1;z=S(G,T,G.length,V);for(T=0;T<j;T++)x*=V;if(this.imuln(x),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z)}this.strip()},Z.prototype.copy=function(G){G.words=Array(this.length);for(var V=0;V<this.length;V++)G.words[V]=this.words[V];G.length=this.length,G.negative=this.negative,G.red=this.red},Z.prototype.clone=function(){var G=new Z(null);return this.copy(G),G},Z.prototype._expand=function(G){while(this.length<G)this.words[this.length++]=0;return this},Z.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Z.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Z.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"],q=[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],B=[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(Z.prototype.toString=function(G,V){G=G||10,V=V|0||1;var D;if(G===16||G==="hex"){D="";var O=0,F=0;for(var R=0;R<this.length;R++){var j=this.words[R],C=((j<<O|F)&16777215).toString(16);if(F=j>>>24-O&16777215,O+=2,O>=26)O-=26,R--;if(F!==0||R!==this.length-1)D=A[6-C.length]+C+D;else D=C+D}if(F!==0)D=F.toString(16)+D;while(D.length%V!==0)D="0"+D;if(this.negative!==0)D="-"+D;return D}if(G===(G|0)&&G>=2&&G<=36){var z=q[G],T=B[G];D="";var x=this.clone();x.negative=0;while(!x.isZero()){var v=x.modn(T).toString(G);if(x=x.idivn(T),!x.isZero())D=A[z-v.length]+v+D;else D=v+D}if(this.isZero())D="0"+D;while(D.length%V!==0)D="0"+D;if(this.negative!==0)D="-"+D;return D}X(!1,"Base should be between 2 and 36")},Z.prototype.toNumber=function(){var G=this.words[0];if(this.length===2)G+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)G+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-G:G},Z.prototype.toJSON=function(){return this.toString(16)},Z.prototype.toBuffer=function(G,V){return X(typeof L<"u"),this.toArrayLike(L,G,V)},Z.prototype.toArray=function(G,V){return this.toArrayLike(Array,G,V)},Z.prototype.toArrayLike=function(G,V,D){var O=this.byteLength(),F=D||Math.max(1,O);X(O<=F,"byte array longer than desired length"),X(F>0,"Requested array length <= 0"),this.strip();var R=V==="le",j=new G(F),C,z,T=this.clone();if(!R){for(z=0;z<F-O;z++)j[z]=0;for(z=0;!T.isZero();z++)C=T.andln(255),T.iushrn(8),j[F-z-1]=C}else{for(z=0;!T.isZero();z++)C=T.andln(255),T.iushrn(8),j[z]=C;for(;z<F;z++)j[z]=0}return j},Math.clz32)Z.prototype._countBits=function(G){return 32-Math.clz32(G)};else Z.prototype._countBits=function(G){var V=G,D=0;if(V>=4096)D+=13,V>>>=13;if(V>=64)D+=7,V>>>=7;if(V>=8)D+=4,V>>>=4;if(V>=2)D+=2,V>>>=2;return D+V};Z.prototype._zeroBits=function(G){if(G===0)return 26;var V=G,D=0;if((V&8191)===0)D+=13,V>>>=13;if((V&127)===0)D+=7,V>>>=7;if((V&15)===0)D+=4,V>>>=4;if((V&3)===0)D+=2,V>>>=2;if((V&1)===0)D++;return D},Z.prototype.bitLength=function(){var G=this.words[this.length-1],V=this._countBits(G);return(this.length-1)*26+V};function N(G){var V=Array(G.bitLength());for(var D=0;D<V.length;D++){var O=D/26|0,F=D%26;V[D]=(G.words[O]&1<<F)>>>F}return V}Z.prototype.zeroBits=function(){if(this.isZero())return 0;var G=0;for(var V=0;V<this.length;V++){var D=this._zeroBits(this.words[V]);if(G+=D,D!==26)break}return G},Z.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Z.prototype.toTwos=function(G){if(this.negative!==0)return this.abs().inotn(G).iaddn(1);return this.clone()},Z.prototype.fromTwos=function(G){if(this.testn(G-1))return this.notn(G).iaddn(1).ineg();return this.clone()},Z.prototype.isNeg=function(){return this.negative!==0},Z.prototype.neg=function(){return this.clone().ineg()},Z.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Z.prototype.iuor=function(G){while(this.length<G.length)this.words[this.length++]=0;for(var V=0;V<G.length;V++)this.words[V]=this.words[V]|G.words[V];return this.strip()},Z.prototype.ior=function(G){return X((this.negative|G.negative)===0),this.iuor(G)},Z.prototype.or=function(G){if(this.length>G.length)return this.clone().ior(G);return G.clone().ior(this)},Z.prototype.uor=function(G){if(this.length>G.length)return this.clone().iuor(G);return G.clone().iuor(this)},Z.prototype.iuand=function(G){var V;if(this.length>G.length)V=G;else V=this;for(var D=0;D<V.length;D++)this.words[D]=this.words[D]&G.words[D];return this.length=V.length,this.strip()},Z.prototype.iand=function(G){return X((this.negative|G.negative)===0),this.iuand(G)},Z.prototype.and=function(G){if(this.length>G.length)return this.clone().iand(G);return G.clone().iand(this)},Z.prototype.uand=function(G){if(this.length>G.length)return this.clone().iuand(G);return G.clone().iuand(this)},Z.prototype.iuxor=function(G){var V,D;if(this.length>G.length)V=this,D=G;else V=G,D=this;for(var O=0;O<D.length;O++)this.words[O]=V.words[O]^D.words[O];if(this!==V)for(;O<V.length;O++)this.words[O]=V.words[O];return this.length=V.length,this.strip()},Z.prototype.ixor=function(G){return X((this.negative|G.negative)===0),this.iuxor(G)},Z.prototype.xor=function(G){if(this.length>G.length)return this.clone().ixor(G);return G.clone().ixor(this)},Z.prototype.uxor=function(G){if(this.length>G.length)return this.clone().iuxor(G);return G.clone().iuxor(this)},Z.prototype.inotn=function(G){X(typeof G==="number"&&G>=0);var V=Math.ceil(G/26)|0,D=G%26;if(this._expand(V),D>0)V--;for(var O=0;O<V;O++)this.words[O]=~this.words[O]&67108863;if(D>0)this.words[O]=~this.words[O]&67108863>>26-D;return this.strip()},Z.prototype.notn=function(G){return this.clone().inotn(G)},Z.prototype.setn=function(G,V){X(typeof G==="number"&&G>=0);var D=G/26|0,O=G%26;if(this._expand(D+1),V)this.words[D]=this.words[D]|1<<O;else this.words[D]=this.words[D]&~(1<<O);return this.strip()},Z.prototype.iadd=function(G){var V;if(this.negative!==0&&G.negative===0)return this.negative=0,V=this.isub(G),this.negative^=1,this._normSign();else if(this.negative===0&&G.negative!==0)return G.negative=0,V=this.isub(G),G.negative=1,V._normSign();var D,O;if(this.length>G.length)D=this,O=G;else D=G,O=this;var F=0;for(var R=0;R<O.length;R++)V=(D.words[R]|0)+(O.words[R]|0)+F,this.words[R]=V&67108863,F=V>>>26;for(;F!==0&&R<D.length;R++)V=(D.words[R]|0)+F,this.words[R]=V&67108863,F=V>>>26;if(this.length=D.length,F!==0)this.words[this.length]=F,this.length++;else if(D!==this)for(;R<D.length;R++)this.words[R]=D.words[R];return this},Z.prototype.add=function(G){var V;if(G.negative!==0&&this.negative===0)return G.negative=0,V=this.sub(G),G.negative^=1,V;else if(G.negative===0&&this.negative!==0)return this.negative=0,V=G.sub(this),this.negative=1,V;if(this.length>G.length)return this.clone().iadd(G);return G.clone().iadd(this)},Z.prototype.isub=function(G){if(G.negative!==0){G.negative=0;var V=this.iadd(G);return G.negative=1,V._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(G),this.negative=1,this._normSign();var D=this.cmp(G);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,F;if(D>0)O=this,F=G;else O=G,F=this;var R=0;for(var j=0;j<F.length;j++)V=(O.words[j]|0)-(F.words[j]|0)+R,R=V>>26,this.words[j]=V&67108863;for(;R!==0&&j<O.length;j++)V=(O.words[j]|0)+R,R=V>>26,this.words[j]=V&67108863;if(R===0&&j<O.length&&O!==this)for(;j<O.length;j++)this.words[j]=O.words[j];if(this.length=Math.max(this.length,j),O!==this)this.negative=1;return this.strip()},Z.prototype.sub=function(G){return this.clone().isub(G)};function f(G,V,D){D.negative=V.negative^G.negative;var O=G.length+V.length|0;D.length=O,O=O-1|0;var F=G.words[0]|0,R=V.words[0]|0,j=F*R,C=j&67108863,z=j/67108864|0;D.words[0]=C;for(var T=1;T<O;T++){var x=z>>>26,v=z&67108863,h=Math.min(T,V.length-1);for(var r=Math.max(0,T-G.length+1);r<=h;r++){var U0=T-r|0;F=G.words[U0]|0,R=V.words[r]|0,j=F*R+v,x+=j/67108864|0,v=j&67108863}D.words[T]=v|0,z=x|0}if(z!==0)D.words[T]=z|0;else D.length--;return D.strip()}var w=function(G,V,D){var O=G.words,F=V.words,R=D.words,j=0,C,z,T,x=O[0]|0,v=x&8191,h=x>>>13,r=O[1]|0,U0=r&8191,K0=r>>>13,Q0=O[2]|0,s=Q0&8191,e=Q0>>>13,I0=O[3]|0,Z0=I0&8191,C0=I0>>>13,$0=O[4]|0,c=$0&8191,d=$0>>>13,L0=O[5]|0,Y0=L0&8191,V0=L0>>>13,k0=O[6]|0,J0=k0&8191,O0=k0>>>13,J$=O[7]|0,A0=J$&8191,v0=J$>>>13,M$=O[8]|0,m0=M$&8191,p0=M$>>>13,r$=O[9]|0,h0=r$&8191,c0=r$>>>13,YU=F[0]|0,t0=YU&8191,i0=YU>>>13,PU=F[1]|0,m=PU&8191,X0=PU>>>13,e0=F[2]|0,E0=e0&8191,N0=e0>>>13,D$=F[3]|0,x0=D$&8191,y0=D$>>>13,V$=F[4]|0,o0=V$&8191,r0=V$>>>13,OU=F[5]|0,s0=OU&8191,i=OU>>>13,G0=F[6]|0,q0=G0&8191,j0=G0>>>13,K$=F[7]|0,d0=K$&8191,a0=K$>>>13,LU=F[8]|0,X$=LU&8191,U$=LU>>>13,$U=F[9]|0,I$=$U&8191,$$=$U>>>13;D.negative=G.negative^V.negative,D.length=19,C=Math.imul(v,t0),z=Math.imul(v,i0),z=z+Math.imul(h,t0)|0,T=Math.imul(h,i0);var _U=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(_U>>>26)|0,_U&=67108863,C=Math.imul(U0,t0),z=Math.imul(U0,i0),z=z+Math.imul(K0,t0)|0,T=Math.imul(K0,i0),C=C+Math.imul(v,m)|0,z=z+Math.imul(v,X0)|0,z=z+Math.imul(h,m)|0,T=T+Math.imul(h,X0)|0;var B$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(B$>>>26)|0,B$&=67108863,C=Math.imul(s,t0),z=Math.imul(s,i0),z=z+Math.imul(e,t0)|0,T=Math.imul(e,i0),C=C+Math.imul(U0,m)|0,z=z+Math.imul(U0,X0)|0,z=z+Math.imul(K0,m)|0,T=T+Math.imul(K0,X0)|0,C=C+Math.imul(v,E0)|0,z=z+Math.imul(v,N0)|0,z=z+Math.imul(h,E0)|0,T=T+Math.imul(h,N0)|0;var j$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(j$>>>26)|0,j$&=67108863,C=Math.imul(Z0,t0),z=Math.imul(Z0,i0),z=z+Math.imul(C0,t0)|0,T=Math.imul(C0,i0),C=C+Math.imul(s,m)|0,z=z+Math.imul(s,X0)|0,z=z+Math.imul(e,m)|0,T=T+Math.imul(e,X0)|0,C=C+Math.imul(U0,E0)|0,z=z+Math.imul(U0,N0)|0,z=z+Math.imul(K0,E0)|0,T=T+Math.imul(K0,N0)|0,C=C+Math.imul(v,x0)|0,z=z+Math.imul(v,y0)|0,z=z+Math.imul(h,x0)|0,T=T+Math.imul(h,y0)|0;var UU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(UU>>>26)|0,UU&=67108863,C=Math.imul(c,t0),z=Math.imul(c,i0),z=z+Math.imul(d,t0)|0,T=Math.imul(d,i0),C=C+Math.imul(Z0,m)|0,z=z+Math.imul(Z0,X0)|0,z=z+Math.imul(C0,m)|0,T=T+Math.imul(C0,X0)|0,C=C+Math.imul(s,E0)|0,z=z+Math.imul(s,N0)|0,z=z+Math.imul(e,E0)|0,T=T+Math.imul(e,N0)|0,C=C+Math.imul(U0,x0)|0,z=z+Math.imul(U0,y0)|0,z=z+Math.imul(K0,x0)|0,T=T+Math.imul(K0,y0)|0,C=C+Math.imul(v,o0)|0,z=z+Math.imul(v,r0)|0,z=z+Math.imul(h,o0)|0,T=T+Math.imul(h,r0)|0;var n$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(n$>>>26)|0,n$&=67108863,C=Math.imul(Y0,t0),z=Math.imul(Y0,i0),z=z+Math.imul(V0,t0)|0,T=Math.imul(V0,i0),C=C+Math.imul(c,m)|0,z=z+Math.imul(c,X0)|0,z=z+Math.imul(d,m)|0,T=T+Math.imul(d,X0)|0,C=C+Math.imul(Z0,E0)|0,z=z+Math.imul(Z0,N0)|0,z=z+Math.imul(C0,E0)|0,T=T+Math.imul(C0,N0)|0,C=C+Math.imul(s,x0)|0,z=z+Math.imul(s,y0)|0,z=z+Math.imul(e,x0)|0,T=T+Math.imul(e,y0)|0,C=C+Math.imul(U0,o0)|0,z=z+Math.imul(U0,r0)|0,z=z+Math.imul(K0,o0)|0,T=T+Math.imul(K0,r0)|0,C=C+Math.imul(v,s0)|0,z=z+Math.imul(v,i)|0,z=z+Math.imul(h,s0)|0,T=T+Math.imul(h,i)|0;var uU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(uU>>>26)|0,uU&=67108863,C=Math.imul(J0,t0),z=Math.imul(J0,i0),z=z+Math.imul(O0,t0)|0,T=Math.imul(O0,i0),C=C+Math.imul(Y0,m)|0,z=z+Math.imul(Y0,X0)|0,z=z+Math.imul(V0,m)|0,T=T+Math.imul(V0,X0)|0,C=C+Math.imul(c,E0)|0,z=z+Math.imul(c,N0)|0,z=z+Math.imul(d,E0)|0,T=T+Math.imul(d,N0)|0,C=C+Math.imul(Z0,x0)|0,z=z+Math.imul(Z0,y0)|0,z=z+Math.imul(C0,x0)|0,T=T+Math.imul(C0,y0)|0,C=C+Math.imul(s,o0)|0,z=z+Math.imul(s,r0)|0,z=z+Math.imul(e,o0)|0,T=T+Math.imul(e,r0)|0,C=C+Math.imul(U0,s0)|0,z=z+Math.imul(U0,i)|0,z=z+Math.imul(K0,s0)|0,T=T+Math.imul(K0,i)|0,C=C+Math.imul(v,q0)|0,z=z+Math.imul(v,j0)|0,z=z+Math.imul(h,q0)|0,T=T+Math.imul(h,j0)|0;var hU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(hU>>>26)|0,hU&=67108863,C=Math.imul(A0,t0),z=Math.imul(A0,i0),z=z+Math.imul(v0,t0)|0,T=Math.imul(v0,i0),C=C+Math.imul(J0,m)|0,z=z+Math.imul(J0,X0)|0,z=z+Math.imul(O0,m)|0,T=T+Math.imul(O0,X0)|0,C=C+Math.imul(Y0,E0)|0,z=z+Math.imul(Y0,N0)|0,z=z+Math.imul(V0,E0)|0,T=T+Math.imul(V0,N0)|0,C=C+Math.imul(c,x0)|0,z=z+Math.imul(c,y0)|0,z=z+Math.imul(d,x0)|0,T=T+Math.imul(d,y0)|0,C=C+Math.imul(Z0,o0)|0,z=z+Math.imul(Z0,r0)|0,z=z+Math.imul(C0,o0)|0,T=T+Math.imul(C0,r0)|0,C=C+Math.imul(s,s0)|0,z=z+Math.imul(s,i)|0,z=z+Math.imul(e,s0)|0,T=T+Math.imul(e,i)|0,C=C+Math.imul(U0,q0)|0,z=z+Math.imul(U0,j0)|0,z=z+Math.imul(K0,q0)|0,T=T+Math.imul(K0,j0)|0,C=C+Math.imul(v,d0)|0,z=z+Math.imul(v,a0)|0,z=z+Math.imul(h,d0)|0,T=T+Math.imul(h,a0)|0;var cU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(cU>>>26)|0,cU&=67108863,C=Math.imul(m0,t0),z=Math.imul(m0,i0),z=z+Math.imul(p0,t0)|0,T=Math.imul(p0,i0),C=C+Math.imul(A0,m)|0,z=z+Math.imul(A0,X0)|0,z=z+Math.imul(v0,m)|0,T=T+Math.imul(v0,X0)|0,C=C+Math.imul(J0,E0)|0,z=z+Math.imul(J0,N0)|0,z=z+Math.imul(O0,E0)|0,T=T+Math.imul(O0,N0)|0,C=C+Math.imul(Y0,x0)|0,z=z+Math.imul(Y0,y0)|0,z=z+Math.imul(V0,x0)|0,T=T+Math.imul(V0,y0)|0,C=C+Math.imul(c,o0)|0,z=z+Math.imul(c,r0)|0,z=z+Math.imul(d,o0)|0,T=T+Math.imul(d,r0)|0,C=C+Math.imul(Z0,s0)|0,z=z+Math.imul(Z0,i)|0,z=z+Math.imul(C0,s0)|0,T=T+Math.imul(C0,i)|0,C=C+Math.imul(s,q0)|0,z=z+Math.imul(s,j0)|0,z=z+Math.imul(e,q0)|0,T=T+Math.imul(e,j0)|0,C=C+Math.imul(U0,d0)|0,z=z+Math.imul(U0,a0)|0,z=z+Math.imul(K0,d0)|0,T=T+Math.imul(K0,a0)|0,C=C+Math.imul(v,X$)|0,z=z+Math.imul(v,U$)|0,z=z+Math.imul(h,X$)|0,T=T+Math.imul(h,U$)|0;var pU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(pU>>>26)|0,pU&=67108863,C=Math.imul(h0,t0),z=Math.imul(h0,i0),z=z+Math.imul(c0,t0)|0,T=Math.imul(c0,i0),C=C+Math.imul(m0,m)|0,z=z+Math.imul(m0,X0)|0,z=z+Math.imul(p0,m)|0,T=T+Math.imul(p0,X0)|0,C=C+Math.imul(A0,E0)|0,z=z+Math.imul(A0,N0)|0,z=z+Math.imul(v0,E0)|0,T=T+Math.imul(v0,N0)|0,C=C+Math.imul(J0,x0)|0,z=z+Math.imul(J0,y0)|0,z=z+Math.imul(O0,x0)|0,T=T+Math.imul(O0,y0)|0,C=C+Math.imul(Y0,o0)|0,z=z+Math.imul(Y0,r0)|0,z=z+Math.imul(V0,o0)|0,T=T+Math.imul(V0,r0)|0,C=C+Math.imul(c,s0)|0,z=z+Math.imul(c,i)|0,z=z+Math.imul(d,s0)|0,T=T+Math.imul(d,i)|0,C=C+Math.imul(Z0,q0)|0,z=z+Math.imul(Z0,j0)|0,z=z+Math.imul(C0,q0)|0,T=T+Math.imul(C0,j0)|0,C=C+Math.imul(s,d0)|0,z=z+Math.imul(s,a0)|0,z=z+Math.imul(e,d0)|0,T=T+Math.imul(e,a0)|0,C=C+Math.imul(U0,X$)|0,z=z+Math.imul(U0,U$)|0,z=z+Math.imul(K0,X$)|0,T=T+Math.imul(K0,U$)|0,C=C+Math.imul(v,I$)|0,z=z+Math.imul(v,$$)|0,z=z+Math.imul(h,I$)|0,T=T+Math.imul(h,$$)|0;var mU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(mU>>>26)|0,mU&=67108863,C=Math.imul(h0,m),z=Math.imul(h0,X0),z=z+Math.imul(c0,m)|0,T=Math.imul(c0,X0),C=C+Math.imul(m0,E0)|0,z=z+Math.imul(m0,N0)|0,z=z+Math.imul(p0,E0)|0,T=T+Math.imul(p0,N0)|0,C=C+Math.imul(A0,x0)|0,z=z+Math.imul(A0,y0)|0,z=z+Math.imul(v0,x0)|0,T=T+Math.imul(v0,y0)|0,C=C+Math.imul(J0,o0)|0,z=z+Math.imul(J0,r0)|0,z=z+Math.imul(O0,o0)|0,T=T+Math.imul(O0,r0)|0,C=C+Math.imul(Y0,s0)|0,z=z+Math.imul(Y0,i)|0,z=z+Math.imul(V0,s0)|0,T=T+Math.imul(V0,i)|0,C=C+Math.imul(c,q0)|0,z=z+Math.imul(c,j0)|0,z=z+Math.imul(d,q0)|0,T=T+Math.imul(d,j0)|0,C=C+Math.imul(Z0,d0)|0,z=z+Math.imul(Z0,a0)|0,z=z+Math.imul(C0,d0)|0,T=T+Math.imul(C0,a0)|0,C=C+Math.imul(s,X$)|0,z=z+Math.imul(s,U$)|0,z=z+Math.imul(e,X$)|0,T=T+Math.imul(e,U$)|0,C=C+Math.imul(U0,I$)|0,z=z+Math.imul(U0,$$)|0,z=z+Math.imul(K0,I$)|0,T=T+Math.imul(K0,$$)|0;var t$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(t$>>>26)|0,t$&=67108863,C=Math.imul(h0,E0),z=Math.imul(h0,N0),z=z+Math.imul(c0,E0)|0,T=Math.imul(c0,N0),C=C+Math.imul(m0,x0)|0,z=z+Math.imul(m0,y0)|0,z=z+Math.imul(p0,x0)|0,T=T+Math.imul(p0,y0)|0,C=C+Math.imul(A0,o0)|0,z=z+Math.imul(A0,r0)|0,z=z+Math.imul(v0,o0)|0,T=T+Math.imul(v0,r0)|0,C=C+Math.imul(J0,s0)|0,z=z+Math.imul(J0,i)|0,z=z+Math.imul(O0,s0)|0,T=T+Math.imul(O0,i)|0,C=C+Math.imul(Y0,q0)|0,z=z+Math.imul(Y0,j0)|0,z=z+Math.imul(V0,q0)|0,T=T+Math.imul(V0,j0)|0,C=C+Math.imul(c,d0)|0,z=z+Math.imul(c,a0)|0,z=z+Math.imul(d,d0)|0,T=T+Math.imul(d,a0)|0,C=C+Math.imul(Z0,X$)|0,z=z+Math.imul(Z0,U$)|0,z=z+Math.imul(C0,X$)|0,T=T+Math.imul(C0,U$)|0,C=C+Math.imul(s,I$)|0,z=z+Math.imul(s,$$)|0,z=z+Math.imul(e,I$)|0,T=T+Math.imul(e,$$)|0;var MU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(MU>>>26)|0,MU&=67108863,C=Math.imul(h0,x0),z=Math.imul(h0,y0),z=z+Math.imul(c0,x0)|0,T=Math.imul(c0,y0),C=C+Math.imul(m0,o0)|0,z=z+Math.imul(m0,r0)|0,z=z+Math.imul(p0,o0)|0,T=T+Math.imul(p0,r0)|0,C=C+Math.imul(A0,s0)|0,z=z+Math.imul(A0,i)|0,z=z+Math.imul(v0,s0)|0,T=T+Math.imul(v0,i)|0,C=C+Math.imul(J0,q0)|0,z=z+Math.imul(J0,j0)|0,z=z+Math.imul(O0,q0)|0,T=T+Math.imul(O0,j0)|0,C=C+Math.imul(Y0,d0)|0,z=z+Math.imul(Y0,a0)|0,z=z+Math.imul(V0,d0)|0,T=T+Math.imul(V0,a0)|0,C=C+Math.imul(c,X$)|0,z=z+Math.imul(c,U$)|0,z=z+Math.imul(d,X$)|0,T=T+Math.imul(d,U$)|0,C=C+Math.imul(Z0,I$)|0,z=z+Math.imul(Z0,$$)|0,z=z+Math.imul(C0,I$)|0,T=T+Math.imul(C0,$$)|0;var VU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(VU>>>26)|0,VU&=67108863,C=Math.imul(h0,o0),z=Math.imul(h0,r0),z=z+Math.imul(c0,o0)|0,T=Math.imul(c0,r0),C=C+Math.imul(m0,s0)|0,z=z+Math.imul(m0,i)|0,z=z+Math.imul(p0,s0)|0,T=T+Math.imul(p0,i)|0,C=C+Math.imul(A0,q0)|0,z=z+Math.imul(A0,j0)|0,z=z+Math.imul(v0,q0)|0,T=T+Math.imul(v0,j0)|0,C=C+Math.imul(J0,d0)|0,z=z+Math.imul(J0,a0)|0,z=z+Math.imul(O0,d0)|0,T=T+Math.imul(O0,a0)|0,C=C+Math.imul(Y0,X$)|0,z=z+Math.imul(Y0,U$)|0,z=z+Math.imul(V0,X$)|0,T=T+Math.imul(V0,U$)|0,C=C+Math.imul(c,I$)|0,z=z+Math.imul(c,$$)|0,z=z+Math.imul(d,I$)|0,T=T+Math.imul(d,$$)|0;var lU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(lU>>>26)|0,lU&=67108863,C=Math.imul(h0,s0),z=Math.imul(h0,i),z=z+Math.imul(c0,s0)|0,T=Math.imul(c0,i),C=C+Math.imul(m0,q0)|0,z=z+Math.imul(m0,j0)|0,z=z+Math.imul(p0,q0)|0,T=T+Math.imul(p0,j0)|0,C=C+Math.imul(A0,d0)|0,z=z+Math.imul(A0,a0)|0,z=z+Math.imul(v0,d0)|0,T=T+Math.imul(v0,a0)|0,C=C+Math.imul(J0,X$)|0,z=z+Math.imul(J0,U$)|0,z=z+Math.imul(O0,X$)|0,T=T+Math.imul(O0,U$)|0,C=C+Math.imul(Y0,I$)|0,z=z+Math.imul(Y0,$$)|0,z=z+Math.imul(V0,I$)|0,T=T+Math.imul(V0,$$)|0;var qU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(qU>>>26)|0,qU&=67108863,C=Math.imul(h0,q0),z=Math.imul(h0,j0),z=z+Math.imul(c0,q0)|0,T=Math.imul(c0,j0),C=C+Math.imul(m0,d0)|0,z=z+Math.imul(m0,a0)|0,z=z+Math.imul(p0,d0)|0,T=T+Math.imul(p0,a0)|0,C=C+Math.imul(A0,X$)|0,z=z+Math.imul(A0,U$)|0,z=z+Math.imul(v0,X$)|0,T=T+Math.imul(v0,U$)|0,C=C+Math.imul(J0,I$)|0,z=z+Math.imul(J0,$$)|0,z=z+Math.imul(O0,I$)|0,T=T+Math.imul(O0,$$)|0;var NU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(NU>>>26)|0,NU&=67108863,C=Math.imul(h0,d0),z=Math.imul(h0,a0),z=z+Math.imul(c0,d0)|0,T=Math.imul(c0,a0),C=C+Math.imul(m0,X$)|0,z=z+Math.imul(m0,U$)|0,z=z+Math.imul(p0,X$)|0,T=T+Math.imul(p0,U$)|0,C=C+Math.imul(A0,I$)|0,z=z+Math.imul(A0,$$)|0,z=z+Math.imul(v0,I$)|0,T=T+Math.imul(v0,$$)|0;var xU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(xU>>>26)|0,xU&=67108863,C=Math.imul(h0,X$),z=Math.imul(h0,U$),z=z+Math.imul(c0,X$)|0,T=Math.imul(c0,U$),C=C+Math.imul(m0,I$)|0,z=z+Math.imul(m0,$$)|0,z=z+Math.imul(p0,I$)|0,T=T+Math.imul(p0,$$)|0;var SU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(SU>>>26)|0,SU&=67108863,C=Math.imul(h0,I$),z=Math.imul(h0,$$),z=z+Math.imul(c0,I$)|0,T=Math.imul(c0,$$);var AU=(j+C|0)+((z&8191)<<13)|0;if(j=(T+(z>>>13)|0)+(AU>>>26)|0,AU&=67108863,R[0]=_U,R[1]=B$,R[2]=j$,R[3]=UU,R[4]=n$,R[5]=uU,R[6]=hU,R[7]=cU,R[8]=pU,R[9]=mU,R[10]=t$,R[11]=MU,R[12]=VU,R[13]=lU,R[14]=qU,R[15]=NU,R[16]=xU,R[17]=SU,R[18]=AU,j!==0)R[19]=j,D.length++;return D};if(!Math.imul)w=f;function u(G,V,D){D.negative=V.negative^G.negative,D.length=G.length+V.length;var O=0,F=0;for(var R=0;R<D.length-1;R++){var j=F;F=0;var C=O&67108863,z=Math.min(R,V.length-1);for(var T=Math.max(0,R-G.length+1);T<=z;T++){var x=R-T,v=G.words[x]|0,h=V.words[T]|0,r=v*h,U0=r&67108863;j=j+(r/67108864|0)|0,U0=U0+C|0,C=U0&67108863,j=j+(U0>>>26)|0,F+=j>>>26,j&=67108863}D.words[R]=C,O=j,j=F}if(O!==0)D.words[R]=O;else D.length--;return D.strip()}function g(G,V,D){var O=new b;return O.mulp(G,V,D)}Z.prototype.mulTo=function(G,V){var D,O=this.length+G.length;if(this.length===10&&G.length===10)D=w(this,G,V);else if(O<63)D=f(this,G,V);else if(O<1024)D=u(this,G,V);else D=g(this,G,V);return D};function b(G,V){this.x=G,this.y=V}b.prototype.makeRBT=function(G){var V=Array(G),D=Z.prototype._countBits(G)-1;for(var O=0;O<G;O++)V[O]=this.revBin(O,D,G);return V},b.prototype.revBin=function(G,V,D){if(G===0||G===D-1)return G;var O=0;for(var F=0;F<V;F++)O|=(G&1)<<V-F-1,G>>=1;return O},b.prototype.permute=function(G,V,D,O,F,R){for(var j=0;j<R;j++)O[j]=V[G[j]],F[j]=D[G[j]]},b.prototype.transform=function(G,V,D,O,F,R){this.permute(R,G,V,D,O,F);for(var j=1;j<F;j<<=1){var C=j<<1,z=Math.cos(2*Math.PI/C),T=Math.sin(2*Math.PI/C);for(var x=0;x<F;x+=C){var v=z,h=T;for(var r=0;r<j;r++){var U0=D[x+r],K0=O[x+r],Q0=D[x+r+j],s=O[x+r+j],e=v*Q0-h*s;if(s=v*s+h*Q0,Q0=e,D[x+r]=U0+Q0,O[x+r]=K0+s,D[x+r+j]=U0-Q0,O[x+r+j]=K0-s,r!==C)e=z*v-T*h,h=z*h+T*v,v=e}}}},b.prototype.guessLen13b=function(G,V){var D=Math.max(V,G)|1,O=D&1,F=0;for(D=D/2|0;D;D=D>>>1)F++;return 1<<F+1+O},b.prototype.conjugate=function(G,V,D){if(D<=1)return;for(var O=0;O<D/2;O++){var F=G[O];G[O]=G[D-O-1],G[D-O-1]=F,F=V[O],V[O]=-V[D-O-1],V[D-O-1]=-F}},b.prototype.normalize13b=function(G,V){var D=0;for(var O=0;O<V/2;O++){var F=Math.round(G[2*O+1]/V)*8192+Math.round(G[2*O]/V)+D;if(G[O]=F&67108863,F<67108864)D=0;else D=F/67108864|0}return G},b.prototype.convert13b=function(G,V,D,O){var F=0;for(var R=0;R<V;R++)F=F+(G[R]|0),D[2*R]=F&8191,F=F>>>13,D[2*R+1]=F&8191,F=F>>>13;for(R=2*V;R<O;++R)D[R]=0;X(F===0),X((F&-8192)===0)},b.prototype.stub=function(G){var V=Array(G);for(var D=0;D<G;D++)V[D]=0;return V},b.prototype.mulp=function(G,V,D){var O=2*this.guessLen13b(G.length,V.length),F=this.makeRBT(O),R=this.stub(O),j=Array(O),C=Array(O),z=Array(O),T=Array(O),x=Array(O),v=Array(O),h=D.words;h.length=O,this.convert13b(G.words,G.length,j,O),this.convert13b(V.words,V.length,T,O),this.transform(j,R,C,z,O,F),this.transform(T,R,x,v,O,F);for(var r=0;r<O;r++){var U0=C[r]*x[r]-z[r]*v[r];z[r]=C[r]*v[r]+z[r]*x[r],C[r]=U0}return this.conjugate(C,z,O),this.transform(C,z,h,R,O,F),this.conjugate(h,R,O),this.normalize13b(h,O),D.negative=G.negative^V.negative,D.length=G.length+V.length,D.strip()},Z.prototype.mul=function(G){var V=new Z(null);return V.words=Array(this.length+G.length),this.mulTo(G,V)},Z.prototype.mulf=function(G){var V=new Z(null);return V.words=Array(this.length+G.length),g(this,G,V)},Z.prototype.imul=function(G){return this.clone().mulTo(G,this)},Z.prototype.imuln=function(G){X(typeof G==="number"),X(G<67108864);var V=0;for(var D=0;D<this.length;D++){var O=(this.words[D]|0)*G,F=(O&67108863)+(V&67108863);V>>=26,V+=O/67108864|0,V+=F>>>26,this.words[D]=F&67108863}if(V!==0)this.words[D]=V,this.length++;return this.length=G===0?1:this.length,this},Z.prototype.muln=function(G){return this.clone().imuln(G)},Z.prototype.sqr=function(){return this.mul(this)},Z.prototype.isqr=function(){return this.imul(this.clone())},Z.prototype.pow=function(G){var V=N(G);if(V.length===0)return new Z(1);var D=this;for(var O=0;O<V.length;O++,D=D.sqr())if(V[O]!==0)break;if(++O<V.length)for(var F=D.sqr();O<V.length;O++,F=F.sqr()){if(V[O]===0)continue;D=D.mul(F)}return D},Z.prototype.iushln=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26,O=67108863>>>26-V<<26-V,F;if(V!==0){var R=0;for(F=0;F<this.length;F++){var j=this.words[F]&O,C=(this.words[F]|0)-j<<V;this.words[F]=C|R,R=j>>>26-V}if(R)this.words[F]=R,this.length++}if(D!==0){for(F=this.length-1;F>=0;F--)this.words[F+D]=this.words[F];for(F=0;F<D;F++)this.words[F]=0;this.length+=D}return this.strip()},Z.prototype.ishln=function(G){return X(this.negative===0),this.iushln(G)},Z.prototype.iushrn=function(G,V,D){X(typeof G==="number"&&G>=0);var O;if(V)O=(V-V%26)/26;else O=0;var F=G%26,R=Math.min((G-F)/26,this.length),j=67108863^67108863>>>F<<F,C=D;if(O-=R,O=Math.max(0,O),C){for(var z=0;z<R;z++)C.words[z]=this.words[z];C.length=R}if(R===0);else if(this.length>R){this.length-=R;for(z=0;z<this.length;z++)this.words[z]=this.words[z+R]}else this.words[0]=0,this.length=1;var T=0;for(z=this.length-1;z>=0&&(T!==0||z>=O);z--){var x=this.words[z]|0;this.words[z]=T<<26-F|x>>>F,T=x&j}if(C&&T!==0)C.words[C.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Z.prototype.ishrn=function(G,V,D){return X(this.negative===0),this.iushrn(G,V,D)},Z.prototype.shln=function(G){return this.clone().ishln(G)},Z.prototype.ushln=function(G){return this.clone().iushln(G)},Z.prototype.shrn=function(G){return this.clone().ishrn(G)},Z.prototype.ushrn=function(G){return this.clone().iushrn(G)},Z.prototype.testn=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26,O=1<<V;if(this.length<=D)return!1;var F=this.words[D];return!!(F&O)},Z.prototype.imaskn=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(V!==0)D++;if(this.length=Math.min(D,this.length),V!==0){var O=67108863^67108863>>>V<<V;this.words[this.length-1]&=O}return this.strip()},Z.prototype.maskn=function(G){return this.clone().imaskn(G)},Z.prototype.iaddn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.isubn(-G);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<G)return this.words[0]=G-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(G),this.negative=1,this}return this._iaddn(G)},Z.prototype._iaddn=function(G){this.words[0]+=G;for(var V=0;V<this.length&&this.words[V]>=67108864;V++)if(this.words[V]-=67108864,V===this.length-1)this.words[V+1]=1;else this.words[V+1]++;return this.length=Math.max(this.length,V+1),this},Z.prototype.isubn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.iaddn(-G);if(this.negative!==0)return this.negative=0,this.iaddn(G),this.negative=1,this;if(this.words[0]-=G,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var V=0;V<this.length&&this.words[V]<0;V++)this.words[V]+=67108864,this.words[V+1]-=1;return this.strip()},Z.prototype.addn=function(G){return this.clone().iaddn(G)},Z.prototype.subn=function(G){return this.clone().isubn(G)},Z.prototype.iabs=function(){return this.negative=0,this},Z.prototype.abs=function(){return this.clone().iabs()},Z.prototype._ishlnsubmul=function(G,V,D){var O=G.length+D,F;this._expand(O);var R,j=0;for(F=0;F<G.length;F++){R=(this.words[F+D]|0)+j;var C=(G.words[F]|0)*V;R-=C&67108863,j=(R>>26)-(C/67108864|0),this.words[F+D]=R&67108863}for(;F<this.length-D;F++)R=(this.words[F+D]|0)+j,j=R>>26,this.words[F+D]=R&67108863;if(j===0)return this.strip();X(j===-1),j=0;for(F=0;F<this.length;F++)R=-(this.words[F]|0)+j,j=R>>26,this.words[F]=R&67108863;return this.negative=1,this.strip()},Z.prototype._wordDiv=function(G,V){var D=this.length-G.length,O=this.clone(),F=G,R=F.words[F.length-1]|0,j=this._countBits(R);if(D=26-j,D!==0)F=F.ushln(D),O.iushln(D),R=F.words[F.length-1]|0;var C=O.length-F.length,z;if(V!=="mod"){z=new Z(null),z.length=C+1,z.words=Array(z.length);for(var T=0;T<z.length;T++)z.words[T]=0}var x=O.clone()._ishlnsubmul(F,1,C);if(x.negative===0){if(O=x,z)z.words[C]=1}for(var v=C-1;v>=0;v--){var h=(O.words[F.length+v]|0)*67108864+(O.words[F.length+v-1]|0);h=Math.min(h/R|0,67108863),O._ishlnsubmul(F,h,v);while(O.negative!==0)if(h--,O.negative=0,O._ishlnsubmul(F,1,v),!O.isZero())O.negative^=1;if(z)z.words[v]=h}if(z)z.strip();if(O.strip(),V!=="div"&&D!==0)O.iushrn(D);return{div:z||null,mod:O}},Z.prototype.divmod=function(G,V,D){if(X(!G.isZero()),this.isZero())return{div:new Z(0),mod:new Z(0)};var O,F,R;if(this.negative!==0&&G.negative===0){if(R=this.neg().divmod(G,V),V!=="mod")O=R.div.neg();if(V!=="div"){if(F=R.mod.neg(),D&&F.negative!==0)F.iadd(G)}return{div:O,mod:F}}if(this.negative===0&&G.negative!==0){if(R=this.divmod(G.neg(),V),V!=="mod")O=R.div.neg();return{div:O,mod:R.mod}}if((this.negative&G.negative)!==0){if(R=this.neg().divmod(G.neg(),V),V!=="div"){if(F=R.mod.neg(),D&&F.negative!==0)F.isub(G)}return{div:R.div,mod:F}}if(G.length>this.length||this.cmp(G)<0)return{div:new Z(0),mod:this};if(G.length===1){if(V==="div")return{div:this.divn(G.words[0]),mod:null};if(V==="mod")return{div:null,mod:new Z(this.modn(G.words[0]))};return{div:this.divn(G.words[0]),mod:new Z(this.modn(G.words[0]))}}return this._wordDiv(G,V)},Z.prototype.div=function(G){return this.divmod(G,"div",!1).div},Z.prototype.mod=function(G){return this.divmod(G,"mod",!1).mod},Z.prototype.umod=function(G){return this.divmod(G,"mod",!0).mod},Z.prototype.divRound=function(G){var V=this.divmod(G);if(V.mod.isZero())return V.div;var D=V.div.negative!==0?V.mod.isub(G):V.mod,O=G.ushrn(1),F=G.andln(1),R=D.cmp(O);if(R<0||F===1&&R===0)return V.div;return V.div.negative!==0?V.div.isubn(1):V.div.iaddn(1)},Z.prototype.modn=function(G){X(G<=67108863);var V=67108864%G,D=0;for(var O=this.length-1;O>=0;O--)D=(V*D+(this.words[O]|0))%G;return D},Z.prototype.idivn=function(G){X(G<=67108863);var V=0;for(var D=this.length-1;D>=0;D--){var O=(this.words[D]|0)+V*67108864;this.words[D]=O/G|0,V=O%G}return this.strip()},Z.prototype.divn=function(G){return this.clone().idivn(G)},Z.prototype.egcd=function(G){X(G.negative===0),X(!G.isZero());var V=this,D=G.clone();if(V.negative!==0)V=V.umod(G);else V=V.clone();var O=new Z(1),F=new Z(0),R=new Z(0),j=new Z(1),C=0;while(V.isEven()&&D.isEven())V.iushrn(1),D.iushrn(1),++C;var z=D.clone(),T=V.clone();while(!V.isZero()){for(var x=0,v=1;(V.words[0]&v)===0&&x<26;++x,v<<=1);if(x>0){V.iushrn(x);while(x-- >0){if(O.isOdd()||F.isOdd())O.iadd(z),F.isub(T);O.iushrn(1),F.iushrn(1)}}for(var h=0,r=1;(D.words[0]&r)===0&&h<26;++h,r<<=1);if(h>0){D.iushrn(h);while(h-- >0){if(R.isOdd()||j.isOdd())R.iadd(z),j.isub(T);R.iushrn(1),j.iushrn(1)}}if(V.cmp(D)>=0)V.isub(D),O.isub(R),F.isub(j);else D.isub(V),R.isub(O),j.isub(F)}return{a:R,b:j,gcd:D.iushln(C)}},Z.prototype._invmp=function(G){X(G.negative===0),X(!G.isZero());var V=this,D=G.clone();if(V.negative!==0)V=V.umod(G);else V=V.clone();var O=new Z(1),F=new Z(0),R=D.clone();while(V.cmpn(1)>0&&D.cmpn(1)>0){for(var j=0,C=1;(V.words[0]&C)===0&&j<26;++j,C<<=1);if(j>0){V.iushrn(j);while(j-- >0){if(O.isOdd())O.iadd(R);O.iushrn(1)}}for(var z=0,T=1;(D.words[0]&T)===0&&z<26;++z,T<<=1);if(z>0){D.iushrn(z);while(z-- >0){if(F.isOdd())F.iadd(R);F.iushrn(1)}}if(V.cmp(D)>=0)V.isub(D),O.isub(F);else D.isub(V),F.isub(O)}var x;if(V.cmpn(1)===0)x=O;else x=F;if(x.cmpn(0)<0)x.iadd(G);return x},Z.prototype.gcd=function(G){if(this.isZero())return G.abs();if(G.isZero())return this.abs();var V=this.clone(),D=G.clone();V.negative=0,D.negative=0;for(var O=0;V.isEven()&&D.isEven();O++)V.iushrn(1),D.iushrn(1);do{while(V.isEven())V.iushrn(1);while(D.isEven())D.iushrn(1);var F=V.cmp(D);if(F<0){var R=V;V=D,D=R}else if(F===0||D.cmpn(1)===0)break;V.isub(D)}while(!0);return D.iushln(O)},Z.prototype.invm=function(G){return this.egcd(G).a.umod(G)},Z.prototype.isEven=function(){return(this.words[0]&1)===0},Z.prototype.isOdd=function(){return(this.words[0]&1)===1},Z.prototype.andln=function(G){return this.words[0]&G},Z.prototype.bincn=function(G){X(typeof G==="number");var V=G%26,D=(G-V)/26,O=1<<V;if(this.length<=D)return this._expand(D+1),this.words[D]|=O,this;var F=O;for(var R=D;F!==0&&R<this.length;R++){var j=this.words[R]|0;j+=F,F=j>>>26,j&=67108863,this.words[R]=j}if(F!==0)this.words[R]=F,this.length++;return this},Z.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Z.prototype.cmpn=function(G){var V=G<0;if(this.negative!==0&&!V)return-1;if(this.negative===0&&V)return 1;this.strip();var D;if(this.length>1)D=1;else{if(V)G=-G;X(G<=67108863,"Number is too big");var O=this.words[0]|0;D=O===G?0:O<G?-1:1}if(this.negative!==0)return-D|0;return D},Z.prototype.cmp=function(G){if(this.negative!==0&&G.negative===0)return-1;if(this.negative===0&&G.negative!==0)return 1;var V=this.ucmp(G);if(this.negative!==0)return-V|0;return V},Z.prototype.ucmp=function(G){if(this.length>G.length)return 1;if(this.length<G.length)return-1;var V=0;for(var D=this.length-1;D>=0;D--){var O=this.words[D]|0,F=G.words[D]|0;if(O===F)continue;if(O<F)V=-1;else if(O>F)V=1;break}return V},Z.prototype.gtn=function(G){return this.cmpn(G)===1},Z.prototype.gt=function(G){return this.cmp(G)===1},Z.prototype.gten=function(G){return this.cmpn(G)>=0},Z.prototype.gte=function(G){return this.cmp(G)>=0},Z.prototype.ltn=function(G){return this.cmpn(G)===-1},Z.prototype.lt=function(G){return this.cmp(G)===-1},Z.prototype.lten=function(G){return this.cmpn(G)<=0},Z.prototype.lte=function(G){return this.cmp(G)<=0},Z.prototype.eqn=function(G){return this.cmpn(G)===0},Z.prototype.eq=function(G){return this.cmp(G)===0},Z.red=function(G){return new t(G)},Z.prototype.toRed=function(G){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),G.convertTo(this)._forceRed(G)},Z.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Z.prototype._forceRed=function(G){return this.red=G,this},Z.prototype.forceRed=function(G){return X(!this.red,"Already a number in reduction context"),this._forceRed(G)},Z.prototype.redAdd=function(G){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,G)},Z.prototype.redIAdd=function(G){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,G)},Z.prototype.redSub=function(G){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,G)},Z.prototype.redISub=function(G){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,G)},Z.prototype.redShl=function(G){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,G)},Z.prototype.redMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.mul(this,G)},Z.prototype.redIMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.imul(this,G)},Z.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Z.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Z.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Z.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Z.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Z.prototype.redPow=function(G){return X(this.red&&!G.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,G)};var p={k256:null,p224:null,p192:null,p25519:null};function n(G,V){this.name=G,this.p=new Z(V,16),this.n=this.p.bitLength(),this.k=new Z(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}n.prototype._tmp=function(){var G=new Z(null);return G.words=Array(Math.ceil(this.n/13)),G},n.prototype.ireduce=function(G){var V=G,D;do this.split(V,this.tmp),V=this.imulK(V),V=V.iadd(this.tmp),D=V.bitLength();while(D>this.n);var O=D<this.n?-1:V.ucmp(this.p);if(O===0)V.words[0]=0,V.length=1;else if(O>0)V.isub(this.p);else if(V.strip!==void 0)V.strip();else V._strip();return V},n.prototype.split=function(G,V){G.iushrn(this.n,0,V)},n.prototype.imulK=function(G){return G.imul(this.k)};function a(){n.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}K(a,n),a.prototype.split=function(G,V){var D=4194303,O=Math.min(G.length,9);for(var F=0;F<O;F++)V.words[F]=G.words[F];if(V.length=O,G.length<=9){G.words[0]=0,G.length=1;return}var R=G.words[9];V.words[V.length++]=R&D;for(F=10;F<G.length;F++){var j=G.words[F]|0;G.words[F-10]=(j&D)<<4|R>>>22,R=j}if(R>>>=22,G.words[F-10]=R,R===0&&G.length>10)G.length-=10;else G.length-=9},a.prototype.imulK=function(G){G.words[G.length]=0,G.words[G.length+1]=0,G.length+=2;var V=0;for(var D=0;D<G.length;D++){var O=G.words[D]|0;V+=O*977,G.words[D]=V&67108863,V=O*64+(V/67108864|0)}if(G.words[G.length-1]===0){if(G.length--,G.words[G.length-1]===0)G.length--}return G};function D0(){n.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}K(D0,n);function M0(){n.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}K(M0,n);function S0(){n.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}K(S0,n),S0.prototype.imulK=function(G){var V=0;for(var D=0;D<G.length;D++){var O=(G.words[D]|0)*19+V,F=O&67108863;O>>>=26,G.words[D]=F,V=O}if(V!==0)G.words[G.length++]=V;return G},Z._prime=function(G){if(p[G])return p[G];var V;if(G==="k256")V=new a;else if(G==="p224")V=new D0;else if(G==="p192")V=new M0;else if(G==="p25519")V=new S0;else throw Error("Unknown prime "+G);return p[G]=V,V};function t(G){if(typeof G==="string"){var V=Z._prime(G);this.m=V.p,this.prime=V}else X(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}t.prototype._verify1=function(G){X(G.negative===0,"red works only with positives"),X(G.red,"red works only with red numbers")},t.prototype._verify2=function(G,V){X((G.negative|V.negative)===0,"red works only with positives"),X(G.red&&G.red===V.red,"red works only with red numbers")},t.prototype.imod=function(G){if(this.prime)return this.prime.ireduce(G)._forceRed(this);return G.umod(this.m)._forceRed(this)},t.prototype.neg=function(G){if(G.isZero())return G.clone();return this.m.sub(G)._forceRed(this)},t.prototype.add=function(G,V){this._verify2(G,V);var D=G.add(V);if(D.cmp(this.m)>=0)D.isub(this.m);return D._forceRed(this)},t.prototype.iadd=function(G,V){this._verify2(G,V);var D=G.iadd(V);if(D.cmp(this.m)>=0)D.isub(this.m);return D},t.prototype.sub=function(G,V){this._verify2(G,V);var D=G.sub(V);if(D.cmpn(0)<0)D.iadd(this.m);return D._forceRed(this)},t.prototype.isub=function(G,V){this._verify2(G,V);var D=G.isub(V);if(D.cmpn(0)<0)D.iadd(this.m);return D},t.prototype.shl=function(G,V){return this._verify1(G),this.imod(G.ushln(V))},t.prototype.imul=function(G,V){return this._verify2(G,V),this.imod(G.imul(V))},t.prototype.mul=function(G,V){return this._verify2(G,V),this.imod(G.mul(V))},t.prototype.isqr=function(G){return this.imul(G,G.clone())},t.prototype.sqr=function(G){return this.mul(G,G)},t.prototype.sqrt=function(G){if(G.isZero())return G.clone();var V=this.m.andln(3);if(X(V%2===1),V===3){var D=this.m.add(new Z(1)).iushrn(2);return this.pow(G,D)}var O=this.m.subn(1),F=0;while(!O.isZero()&&O.andln(1)===0)F++,O.iushrn(1);X(!O.isZero());var R=new Z(1).toRed(this),j=R.redNeg(),C=this.m.subn(1).iushrn(1),z=this.m.bitLength();z=new Z(2*z*z).toRed(this);while(this.pow(z,C).cmp(j)!==0)z.redIAdd(j);var T=this.pow(z,O),x=this.pow(G,O.addn(1).iushrn(1)),v=this.pow(G,O),h=F;while(v.cmp(R)!==0){var r=v;for(var U0=0;r.cmp(R)!==0;U0++)r=r.redSqr();X(U0<h);var K0=this.pow(T,new Z(1).iushln(h-U0-1));x=x.redMul(K0),T=K0.redSqr(),v=v.redMul(T),h=U0}return x},t.prototype.invm=function(G){var V=G._invmp(this.m);if(V.negative!==0)return V.negative=0,this.imod(V).redNeg();else return this.imod(V)},t.prototype.pow=function(G,V){if(V.isZero())return new Z(1).toRed(this);if(V.cmpn(1)===0)return G.clone();var D=4,O=Array(1<<D);O[0]=new Z(1).toRed(this),O[1]=G;for(var F=2;F<O.length;F++)O[F]=this.mul(O[F-1],G);var R=O[0],j=0,C=0,z=V.bitLength()%26;if(z===0)z=26;for(F=V.length-1;F>=0;F--){var T=V.words[F];for(var x=z-1;x>=0;x--){var v=T>>x&1;if(R!==O[0])R=this.sqr(R);if(v===0&&j===0){C=0;continue}if(j<<=1,j|=v,C++,C!==D&&(F!==0||x!==0))continue;R=this.mul(R,O[j]),C=0,j=0}z=26}return R},t.prototype.convertTo=function(G){var V=G.umod(this.m);return V===G?V.clone():V},t.prototype.convertFrom=function(G){var V=G.clone();return V.red=null,V},Z.mont=function(G){return new R0(G)};function R0(G){if(t.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Z(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)}K(R0,t),R0.prototype.convertTo=function(G){return this.imod(G.ushln(this.shift))},R0.prototype.convertFrom=function(G){var V=this.imod(G.mul(this.rinv));return V.red=null,V},R0.prototype.imul=function(G,V){if(G.isZero()||V.isZero())return G.words[0]=0,G.length=1,G;var D=G.imul(V),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=D.isub(O).iushrn(this.shift),R=F;if(F.cmp(this.m)>=0)R=F.isub(this.m);else if(F.cmpn(0)<0)R=F.iadd(this.m);return R._forceRed(this)},R0.prototype.mul=function(G,V){if(G.isZero()||V.isZero())return new Z(0)._forceRed(this);var D=G.mul(V),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=D.isub(O).iushrn(this.shift),R=F;if(F.cmp(this.m)>=0)R=F.isub(this.m);else if(F.cmpn(0)<0)R=F.iadd(this.m);return R._forceRed(this)},R0.prototype.invm=function(G){var V=this.imod(G._invmp(this.m).mul(this.r2));return V._forceRed(this)}})(typeof I>"u"||I,J)}),cf=u0((J,I)=>{var Y=uf(),W=hf();I.exports=function(L){return new K(L)};var X={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}};X.p224=X.secp224r1,X.p256=X.secp256r1=X.prime256v1,X.p192=X.secp192r1=X.prime192v1,X.p384=X.secp384r1,X.p521=X.secp521r1;function K(L){if(this.curveType=X[L],!this.curveType)this.curveType={name:L};this.curve=new Y.ec(this.curveType.name),this.keys=void 0}K.prototype.generateKeys=function(L,E){return this.keys=this.curve.genKeyPair(),this.getPublicKey(L,E)},K.prototype.computeSecret=function(L,E,_){if(E=E||"utf8",!Buffer.isBuffer(L))L=new Buffer(L,E);var S=this.curve.keyFromPublic(L).getPublic(),A=S.mul(this.keys.getPrivate()).getX();return Z(A,_,this.curveType.byteLength)},K.prototype.getPublicKey=function(L,E){var _=this.keys.getPublic(E==="compressed",!0);if(E==="hybrid")if(_[_.length-1]%2)_[0]=7;else _[0]=6;return Z(_,L)},K.prototype.getPrivateKey=function(L){return Z(this.keys.getPrivate(),L)},K.prototype.setPublicKey=function(L,E){if(E=E||"utf8",!Buffer.isBuffer(L))L=new Buffer(L,E);return this.keys._importPublic(L),this},K.prototype.setPrivateKey=function(L,E){if(E=E||"utf8",!Buffer.isBuffer(L))L=new Buffer(L,E);var _=new W(L);return _=_.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(_),this};function Z(L,E,_){if(!Array.isArray(L))L=L.toArray();var S=new Buffer(L);if(_&&S.length<_){var A=new Buffer(_-S.length);A.fill(0),S=Buffer.concat([A,S])}if(!E)return S;else return S.toString(E)}}),pf=u0((J,I)=>{var Y=(bU(),E$(A1)).createECDH;I.exports=Y||cf()}),mf=u0((J,I)=>{(function(Y,W){function X(G,V){if(!G)throw Error(V||"Assertion failed")}function K(G,V){G.super_=V;var D=function(){};D.prototype=V.prototype,G.prototype=new D,G.prototype.constructor=G}function Z(G,V,D){if(Z.isBN(G))return G;if(this.negative=0,this.words=null,this.length=0,this.red=null,G!==null){if(V==="le"||V==="be")D=V,V=10;this._init(G||0,V||10,D||"be")}}if(typeof Y==="object")Y.exports=Z;else W.BN=Z;Z.BN=Z,Z.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(iU(),E$(oU)).Buffer}catch(G){}Z.isBN=function(G){if(G instanceof Z)return!0;return G!==null&&typeof G==="object"&&G.constructor.wordSize===Z.wordSize&&Array.isArray(G.words)},Z.max=function(G,V){if(G.cmp(V)>0)return G;return V},Z.min=function(G,V){if(G.cmp(V)<0)return G;return V},Z.prototype._init=function(G,V,D){if(typeof G==="number")return this._initNumber(G,V,D);if(typeof G==="object")return this._initArray(G,V,D);if(V==="hex")V=16;X(V===(V|0)&&V>=2&&V<=36),G=G.toString().replace(/\s+/g,"");var O=0;if(G[0]==="-")O++,this.negative=1;if(O<G.length){if(V===16)this._parseHex(G,O,D);else if(this._parseBase(G,V,O),D==="le")this._initArray(this.toArray(),V,D)}},Z.prototype._initNumber=function(G,V,D){if(G<0)this.negative=1,G=-G;if(G<67108864)this.words=[G&67108863],this.length=1;else if(G<4503599627370496)this.words=[G&67108863,G/67108864&67108863],this.length=2;else X(G<9007199254740992),this.words=[G&67108863,G/67108864&67108863,1],this.length=3;if(D!=="le")return;this._initArray(this.toArray(),V,D)},Z.prototype._initArray=function(G,V,D){if(X(typeof G.length==="number"),G.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(G.length/3),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F,R,j=0;if(D==="be"){for(O=G.length-1,F=0;O>=0;O-=3)if(R=G[O]|G[O-1]<<8|G[O-2]<<16,this.words[F]|=R<<j&67108863,this.words[F+1]=R>>>26-j&67108863,j+=24,j>=26)j-=26,F++}else if(D==="le"){for(O=0,F=0;O<G.length;O+=3)if(R=G[O]|G[O+1]<<8|G[O+2]<<16,this.words[F]|=R<<j&67108863,this.words[F+1]=R>>>26-j&67108863,j+=24,j>=26)j-=26,F++}return this.strip()};function E(G,V){var D=G.charCodeAt(V);if(D>=65&&D<=70)return D-55;else if(D>=97&&D<=102)return D-87;else return D-48&15}function _(G,V,D){var O=E(G,D);if(D-1>=V)O|=E(G,D-1)<<4;return O}Z.prototype._parseHex=function(G,V,D){this.length=Math.ceil((G.length-V)/6),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F=0,R=0,j;if(D==="be")for(O=G.length-1;O>=V;O-=2)if(j=_(G,V,O)<<F,this.words[R]|=j&67108863,F>=18)F-=18,R+=1,this.words[R]|=j>>>26;else F+=8;else{var C=G.length-V;for(O=C%2===0?V+1:V;O<G.length;O+=2)if(j=_(G,V,O)<<F,this.words[R]|=j&67108863,F>=18)F-=18,R+=1,this.words[R]|=j>>>26;else F+=8}this.strip()};function S(G,V,D,O){var F=0,R=Math.min(G.length,D);for(var j=V;j<R;j++){var C=G.charCodeAt(j)-48;if(F*=O,C>=49)F+=C-49+10;else if(C>=17)F+=C-17+10;else F+=C}return F}Z.prototype._parseBase=function(G,V,D){this.words=[0],this.length=1;for(var O=0,F=1;F<=67108863;F*=V)O++;O--,F=F/V|0;var R=G.length-D,j=R%O,C=Math.min(R,R-j)+D,z=0;for(var T=D;T<C;T+=O)if(z=S(G,T,T+O,V),this.imuln(F),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z);if(j!==0){var x=1;z=S(G,T,G.length,V);for(T=0;T<j;T++)x*=V;if(this.imuln(x),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z)}this.strip()},Z.prototype.copy=function(G){G.words=Array(this.length);for(var V=0;V<this.length;V++)G.words[V]=this.words[V];G.length=this.length,G.negative=this.negative,G.red=this.red},Z.prototype.clone=function(){var G=new Z(null);return this.copy(G),G},Z.prototype._expand=function(G){while(this.length<G)this.words[this.length++]=0;return this},Z.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Z.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Z.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"],q=[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],B=[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(Z.prototype.toString=function(G,V){G=G||10,V=V|0||1;var D;if(G===16||G==="hex"){D="";var O=0,F=0;for(var R=0;R<this.length;R++){var j=this.words[R],C=((j<<O|F)&16777215).toString(16);if(F=j>>>24-O&16777215,O+=2,O>=26)O-=26,R--;if(F!==0||R!==this.length-1)D=A[6-C.length]+C+D;else D=C+D}if(F!==0)D=F.toString(16)+D;while(D.length%V!==0)D="0"+D;if(this.negative!==0)D="-"+D;return D}if(G===(G|0)&&G>=2&&G<=36){var z=q[G],T=B[G];D="";var x=this.clone();x.negative=0;while(!x.isZero()){var v=x.modn(T).toString(G);if(x=x.idivn(T),!x.isZero())D=A[z-v.length]+v+D;else D=v+D}if(this.isZero())D="0"+D;while(D.length%V!==0)D="0"+D;if(this.negative!==0)D="-"+D;return D}X(!1,"Base should be between 2 and 36")},Z.prototype.toNumber=function(){var G=this.words[0];if(this.length===2)G+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)G+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-G:G},Z.prototype.toJSON=function(){return this.toString(16)},Z.prototype.toBuffer=function(G,V){return X(typeof L<"u"),this.toArrayLike(L,G,V)},Z.prototype.toArray=function(G,V){return this.toArrayLike(Array,G,V)},Z.prototype.toArrayLike=function(G,V,D){var O=this.byteLength(),F=D||Math.max(1,O);X(O<=F,"byte array longer than desired length"),X(F>0,"Requested array length <= 0"),this.strip();var R=V==="le",j=new G(F),C,z,T=this.clone();if(!R){for(z=0;z<F-O;z++)j[z]=0;for(z=0;!T.isZero();z++)C=T.andln(255),T.iushrn(8),j[F-z-1]=C}else{for(z=0;!T.isZero();z++)C=T.andln(255),T.iushrn(8),j[z]=C;for(;z<F;z++)j[z]=0}return j},Math.clz32)Z.prototype._countBits=function(G){return 32-Math.clz32(G)};else Z.prototype._countBits=function(G){var V=G,D=0;if(V>=4096)D+=13,V>>>=13;if(V>=64)D+=7,V>>>=7;if(V>=8)D+=4,V>>>=4;if(V>=2)D+=2,V>>>=2;return D+V};Z.prototype._zeroBits=function(G){if(G===0)return 26;var V=G,D=0;if((V&8191)===0)D+=13,V>>>=13;if((V&127)===0)D+=7,V>>>=7;if((V&15)===0)D+=4,V>>>=4;if((V&3)===0)D+=2,V>>>=2;if((V&1)===0)D++;return D},Z.prototype.bitLength=function(){var G=this.words[this.length-1],V=this._countBits(G);return(this.length-1)*26+V};function N(G){var V=Array(G.bitLength());for(var D=0;D<V.length;D++){var O=D/26|0,F=D%26;V[D]=(G.words[O]&1<<F)>>>F}return V}Z.prototype.zeroBits=function(){if(this.isZero())return 0;var G=0;for(var V=0;V<this.length;V++){var D=this._zeroBits(this.words[V]);if(G+=D,D!==26)break}return G},Z.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Z.prototype.toTwos=function(G){if(this.negative!==0)return this.abs().inotn(G).iaddn(1);return this.clone()},Z.prototype.fromTwos=function(G){if(this.testn(G-1))return this.notn(G).iaddn(1).ineg();return this.clone()},Z.prototype.isNeg=function(){return this.negative!==0},Z.prototype.neg=function(){return this.clone().ineg()},Z.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Z.prototype.iuor=function(G){while(this.length<G.length)this.words[this.length++]=0;for(var V=0;V<G.length;V++)this.words[V]=this.words[V]|G.words[V];return this.strip()},Z.prototype.ior=function(G){return X((this.negative|G.negative)===0),this.iuor(G)},Z.prototype.or=function(G){if(this.length>G.length)return this.clone().ior(G);return G.clone().ior(this)},Z.prototype.uor=function(G){if(this.length>G.length)return this.clone().iuor(G);return G.clone().iuor(this)},Z.prototype.iuand=function(G){var V;if(this.length>G.length)V=G;else V=this;for(var D=0;D<V.length;D++)this.words[D]=this.words[D]&G.words[D];return this.length=V.length,this.strip()},Z.prototype.iand=function(G){return X((this.negative|G.negative)===0),this.iuand(G)},Z.prototype.and=function(G){if(this.length>G.length)return this.clone().iand(G);return G.clone().iand(this)},Z.prototype.uand=function(G){if(this.length>G.length)return this.clone().iuand(G);return G.clone().iuand(this)},Z.prototype.iuxor=function(G){var V,D;if(this.length>G.length)V=this,D=G;else V=G,D=this;for(var O=0;O<D.length;O++)this.words[O]=V.words[O]^D.words[O];if(this!==V)for(;O<V.length;O++)this.words[O]=V.words[O];return this.length=V.length,this.strip()},Z.prototype.ixor=function(G){return X((this.negative|G.negative)===0),this.iuxor(G)},Z.prototype.xor=function(G){if(this.length>G.length)return this.clone().ixor(G);return G.clone().ixor(this)},Z.prototype.uxor=function(G){if(this.length>G.length)return this.clone().iuxor(G);return G.clone().iuxor(this)},Z.prototype.inotn=function(G){X(typeof G==="number"&&G>=0);var V=Math.ceil(G/26)|0,D=G%26;if(this._expand(V),D>0)V--;for(var O=0;O<V;O++)this.words[O]=~this.words[O]&67108863;if(D>0)this.words[O]=~this.words[O]&67108863>>26-D;return this.strip()},Z.prototype.notn=function(G){return this.clone().inotn(G)},Z.prototype.setn=function(G,V){X(typeof G==="number"&&G>=0);var D=G/26|0,O=G%26;if(this._expand(D+1),V)this.words[D]=this.words[D]|1<<O;else this.words[D]=this.words[D]&~(1<<O);return this.strip()},Z.prototype.iadd=function(G){var V;if(this.negative!==0&&G.negative===0)return this.negative=0,V=this.isub(G),this.negative^=1,this._normSign();else if(this.negative===0&&G.negative!==0)return G.negative=0,V=this.isub(G),G.negative=1,V._normSign();var D,O;if(this.length>G.length)D=this,O=G;else D=G,O=this;var F=0;for(var R=0;R<O.length;R++)V=(D.words[R]|0)+(O.words[R]|0)+F,this.words[R]=V&67108863,F=V>>>26;for(;F!==0&&R<D.length;R++)V=(D.words[R]|0)+F,this.words[R]=V&67108863,F=V>>>26;if(this.length=D.length,F!==0)this.words[this.length]=F,this.length++;else if(D!==this)for(;R<D.length;R++)this.words[R]=D.words[R];return this},Z.prototype.add=function(G){var V;if(G.negative!==0&&this.negative===0)return G.negative=0,V=this.sub(G),G.negative^=1,V;else if(G.negative===0&&this.negative!==0)return this.negative=0,V=G.sub(this),this.negative=1,V;if(this.length>G.length)return this.clone().iadd(G);return G.clone().iadd(this)},Z.prototype.isub=function(G){if(G.negative!==0){G.negative=0;var V=this.iadd(G);return G.negative=1,V._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(G),this.negative=1,this._normSign();var D=this.cmp(G);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,F;if(D>0)O=this,F=G;else O=G,F=this;var R=0;for(var j=0;j<F.length;j++)V=(O.words[j]|0)-(F.words[j]|0)+R,R=V>>26,this.words[j]=V&67108863;for(;R!==0&&j<O.length;j++)V=(O.words[j]|0)+R,R=V>>26,this.words[j]=V&67108863;if(R===0&&j<O.length&&O!==this)for(;j<O.length;j++)this.words[j]=O.words[j];if(this.length=Math.max(this.length,j),O!==this)this.negative=1;return this.strip()},Z.prototype.sub=function(G){return this.clone().isub(G)};function f(G,V,D){D.negative=V.negative^G.negative;var O=G.length+V.length|0;D.length=O,O=O-1|0;var F=G.words[0]|0,R=V.words[0]|0,j=F*R,C=j&67108863,z=j/67108864|0;D.words[0]=C;for(var T=1;T<O;T++){var x=z>>>26,v=z&67108863,h=Math.min(T,V.length-1);for(var r=Math.max(0,T-G.length+1);r<=h;r++){var U0=T-r|0;F=G.words[U0]|0,R=V.words[r]|0,j=F*R+v,x+=j/67108864|0,v=j&67108863}D.words[T]=v|0,z=x|0}if(z!==0)D.words[T]=z|0;else D.length--;return D.strip()}var w=function(G,V,D){var O=G.words,F=V.words,R=D.words,j=0,C,z,T,x=O[0]|0,v=x&8191,h=x>>>13,r=O[1]|0,U0=r&8191,K0=r>>>13,Q0=O[2]|0,s=Q0&8191,e=Q0>>>13,I0=O[3]|0,Z0=I0&8191,C0=I0>>>13,$0=O[4]|0,c=$0&8191,d=$0>>>13,L0=O[5]|0,Y0=L0&8191,V0=L0>>>13,k0=O[6]|0,J0=k0&8191,O0=k0>>>13,J$=O[7]|0,A0=J$&8191,v0=J$>>>13,M$=O[8]|0,m0=M$&8191,p0=M$>>>13,r$=O[9]|0,h0=r$&8191,c0=r$>>>13,YU=F[0]|0,t0=YU&8191,i0=YU>>>13,PU=F[1]|0,m=PU&8191,X0=PU>>>13,e0=F[2]|0,E0=e0&8191,N0=e0>>>13,D$=F[3]|0,x0=D$&8191,y0=D$>>>13,V$=F[4]|0,o0=V$&8191,r0=V$>>>13,OU=F[5]|0,s0=OU&8191,i=OU>>>13,G0=F[6]|0,q0=G0&8191,j0=G0>>>13,K$=F[7]|0,d0=K$&8191,a0=K$>>>13,LU=F[8]|0,X$=LU&8191,U$=LU>>>13,$U=F[9]|0,I$=$U&8191,$$=$U>>>13;D.negative=G.negative^V.negative,D.length=19,C=Math.imul(v,t0),z=Math.imul(v,i0),z=z+Math.imul(h,t0)|0,T=Math.imul(h,i0);var _U=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(_U>>>26)|0,_U&=67108863,C=Math.imul(U0,t0),z=Math.imul(U0,i0),z=z+Math.imul(K0,t0)|0,T=Math.imul(K0,i0),C=C+Math.imul(v,m)|0,z=z+Math.imul(v,X0)|0,z=z+Math.imul(h,m)|0,T=T+Math.imul(h,X0)|0;var B$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(B$>>>26)|0,B$&=67108863,C=Math.imul(s,t0),z=Math.imul(s,i0),z=z+Math.imul(e,t0)|0,T=Math.imul(e,i0),C=C+Math.imul(U0,m)|0,z=z+Math.imul(U0,X0)|0,z=z+Math.imul(K0,m)|0,T=T+Math.imul(K0,X0)|0,C=C+Math.imul(v,E0)|0,z=z+Math.imul(v,N0)|0,z=z+Math.imul(h,E0)|0,T=T+Math.imul(h,N0)|0;var j$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(j$>>>26)|0,j$&=67108863,C=Math.imul(Z0,t0),z=Math.imul(Z0,i0),z=z+Math.imul(C0,t0)|0,T=Math.imul(C0,i0),C=C+Math.imul(s,m)|0,z=z+Math.imul(s,X0)|0,z=z+Math.imul(e,m)|0,T=T+Math.imul(e,X0)|0,C=C+Math.imul(U0,E0)|0,z=z+Math.imul(U0,N0)|0,z=z+Math.imul(K0,E0)|0,T=T+Math.imul(K0,N0)|0,C=C+Math.imul(v,x0)|0,z=z+Math.imul(v,y0)|0,z=z+Math.imul(h,x0)|0,T=T+Math.imul(h,y0)|0;var UU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(UU>>>26)|0,UU&=67108863,C=Math.imul(c,t0),z=Math.imul(c,i0),z=z+Math.imul(d,t0)|0,T=Math.imul(d,i0),C=C+Math.imul(Z0,m)|0,z=z+Math.imul(Z0,X0)|0,z=z+Math.imul(C0,m)|0,T=T+Math.imul(C0,X0)|0,C=C+Math.imul(s,E0)|0,z=z+Math.imul(s,N0)|0,z=z+Math.imul(e,E0)|0,T=T+Math.imul(e,N0)|0,C=C+Math.imul(U0,x0)|0,z=z+Math.imul(U0,y0)|0,z=z+Math.imul(K0,x0)|0,T=T+Math.imul(K0,y0)|0,C=C+Math.imul(v,o0)|0,z=z+Math.imul(v,r0)|0,z=z+Math.imul(h,o0)|0,T=T+Math.imul(h,r0)|0;var n$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(n$>>>26)|0,n$&=67108863,C=Math.imul(Y0,t0),z=Math.imul(Y0,i0),z=z+Math.imul(V0,t0)|0,T=Math.imul(V0,i0),C=C+Math.imul(c,m)|0,z=z+Math.imul(c,X0)|0,z=z+Math.imul(d,m)|0,T=T+Math.imul(d,X0)|0,C=C+Math.imul(Z0,E0)|0,z=z+Math.imul(Z0,N0)|0,z=z+Math.imul(C0,E0)|0,T=T+Math.imul(C0,N0)|0,C=C+Math.imul(s,x0)|0,z=z+Math.imul(s,y0)|0,z=z+Math.imul(e,x0)|0,T=T+Math.imul(e,y0)|0,C=C+Math.imul(U0,o0)|0,z=z+Math.imul(U0,r0)|0,z=z+Math.imul(K0,o0)|0,T=T+Math.imul(K0,r0)|0,C=C+Math.imul(v,s0)|0,z=z+Math.imul(v,i)|0,z=z+Math.imul(h,s0)|0,T=T+Math.imul(h,i)|0;var uU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(uU>>>26)|0,uU&=67108863,C=Math.imul(J0,t0),z=Math.imul(J0,i0),z=z+Math.imul(O0,t0)|0,T=Math.imul(O0,i0),C=C+Math.imul(Y0,m)|0,z=z+Math.imul(Y0,X0)|0,z=z+Math.imul(V0,m)|0,T=T+Math.imul(V0,X0)|0,C=C+Math.imul(c,E0)|0,z=z+Math.imul(c,N0)|0,z=z+Math.imul(d,E0)|0,T=T+Math.imul(d,N0)|0,C=C+Math.imul(Z0,x0)|0,z=z+Math.imul(Z0,y0)|0,z=z+Math.imul(C0,x0)|0,T=T+Math.imul(C0,y0)|0,C=C+Math.imul(s,o0)|0,z=z+Math.imul(s,r0)|0,z=z+Math.imul(e,o0)|0,T=T+Math.imul(e,r0)|0,C=C+Math.imul(U0,s0)|0,z=z+Math.imul(U0,i)|0,z=z+Math.imul(K0,s0)|0,T=T+Math.imul(K0,i)|0,C=C+Math.imul(v,q0)|0,z=z+Math.imul(v,j0)|0,z=z+Math.imul(h,q0)|0,T=T+Math.imul(h,j0)|0;var hU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(hU>>>26)|0,hU&=67108863,C=Math.imul(A0,t0),z=Math.imul(A0,i0),z=z+Math.imul(v0,t0)|0,T=Math.imul(v0,i0),C=C+Math.imul(J0,m)|0,z=z+Math.imul(J0,X0)|0,z=z+Math.imul(O0,m)|0,T=T+Math.imul(O0,X0)|0,C=C+Math.imul(Y0,E0)|0,z=z+Math.imul(Y0,N0)|0,z=z+Math.imul(V0,E0)|0,T=T+Math.imul(V0,N0)|0,C=C+Math.imul(c,x0)|0,z=z+Math.imul(c,y0)|0,z=z+Math.imul(d,x0)|0,T=T+Math.imul(d,y0)|0,C=C+Math.imul(Z0,o0)|0,z=z+Math.imul(Z0,r0)|0,z=z+Math.imul(C0,o0)|0,T=T+Math.imul(C0,r0)|0,C=C+Math.imul(s,s0)|0,z=z+Math.imul(s,i)|0,z=z+Math.imul(e,s0)|0,T=T+Math.imul(e,i)|0,C=C+Math.imul(U0,q0)|0,z=z+Math.imul(U0,j0)|0,z=z+Math.imul(K0,q0)|0,T=T+Math.imul(K0,j0)|0,C=C+Math.imul(v,d0)|0,z=z+Math.imul(v,a0)|0,z=z+Math.imul(h,d0)|0,T=T+Math.imul(h,a0)|0;var cU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(cU>>>26)|0,cU&=67108863,C=Math.imul(m0,t0),z=Math.imul(m0,i0),z=z+Math.imul(p0,t0)|0,T=Math.imul(p0,i0),C=C+Math.imul(A0,m)|0,z=z+Math.imul(A0,X0)|0,z=z+Math.imul(v0,m)|0,T=T+Math.imul(v0,X0)|0,C=C+Math.imul(J0,E0)|0,z=z+Math.imul(J0,N0)|0,z=z+Math.imul(O0,E0)|0,T=T+Math.imul(O0,N0)|0,C=C+Math.imul(Y0,x0)|0,z=z+Math.imul(Y0,y0)|0,z=z+Math.imul(V0,x0)|0,T=T+Math.imul(V0,y0)|0,C=C+Math.imul(c,o0)|0,z=z+Math.imul(c,r0)|0,z=z+Math.imul(d,o0)|0,T=T+Math.imul(d,r0)|0,C=C+Math.imul(Z0,s0)|0,z=z+Math.imul(Z0,i)|0,z=z+Math.imul(C0,s0)|0,T=T+Math.imul(C0,i)|0,C=C+Math.imul(s,q0)|0,z=z+Math.imul(s,j0)|0,z=z+Math.imul(e,q0)|0,T=T+Math.imul(e,j0)|0,C=C+Math.imul(U0,d0)|0,z=z+Math.imul(U0,a0)|0,z=z+Math.imul(K0,d0)|0,T=T+Math.imul(K0,a0)|0,C=C+Math.imul(v,X$)|0,z=z+Math.imul(v,U$)|0,z=z+Math.imul(h,X$)|0,T=T+Math.imul(h,U$)|0;var pU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(pU>>>26)|0,pU&=67108863,C=Math.imul(h0,t0),z=Math.imul(h0,i0),z=z+Math.imul(c0,t0)|0,T=Math.imul(c0,i0),C=C+Math.imul(m0,m)|0,z=z+Math.imul(m0,X0)|0,z=z+Math.imul(p0,m)|0,T=T+Math.imul(p0,X0)|0,C=C+Math.imul(A0,E0)|0,z=z+Math.imul(A0,N0)|0,z=z+Math.imul(v0,E0)|0,T=T+Math.imul(v0,N0)|0,C=C+Math.imul(J0,x0)|0,z=z+Math.imul(J0,y0)|0,z=z+Math.imul(O0,x0)|0,T=T+Math.imul(O0,y0)|0,C=C+Math.imul(Y0,o0)|0,z=z+Math.imul(Y0,r0)|0,z=z+Math.imul(V0,o0)|0,T=T+Math.imul(V0,r0)|0,C=C+Math.imul(c,s0)|0,z=z+Math.imul(c,i)|0,z=z+Math.imul(d,s0)|0,T=T+Math.imul(d,i)|0,C=C+Math.imul(Z0,q0)|0,z=z+Math.imul(Z0,j0)|0,z=z+Math.imul(C0,q0)|0,T=T+Math.imul(C0,j0)|0,C=C+Math.imul(s,d0)|0,z=z+Math.imul(s,a0)|0,z=z+Math.imul(e,d0)|0,T=T+Math.imul(e,a0)|0,C=C+Math.imul(U0,X$)|0,z=z+Math.imul(U0,U$)|0,z=z+Math.imul(K0,X$)|0,T=T+Math.imul(K0,U$)|0,C=C+Math.imul(v,I$)|0,z=z+Math.imul(v,$$)|0,z=z+Math.imul(h,I$)|0,T=T+Math.imul(h,$$)|0;var mU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(mU>>>26)|0,mU&=67108863,C=Math.imul(h0,m),z=Math.imul(h0,X0),z=z+Math.imul(c0,m)|0,T=Math.imul(c0,X0),C=C+Math.imul(m0,E0)|0,z=z+Math.imul(m0,N0)|0,z=z+Math.imul(p0,E0)|0,T=T+Math.imul(p0,N0)|0,C=C+Math.imul(A0,x0)|0,z=z+Math.imul(A0,y0)|0,z=z+Math.imul(v0,x0)|0,T=T+Math.imul(v0,y0)|0,C=C+Math.imul(J0,o0)|0,z=z+Math.imul(J0,r0)|0,z=z+Math.imul(O0,o0)|0,T=T+Math.imul(O0,r0)|0,C=C+Math.imul(Y0,s0)|0,z=z+Math.imul(Y0,i)|0,z=z+Math.imul(V0,s0)|0,T=T+Math.imul(V0,i)|0,C=C+Math.imul(c,q0)|0,z=z+Math.imul(c,j0)|0,z=z+Math.imul(d,q0)|0,T=T+Math.imul(d,j0)|0,C=C+Math.imul(Z0,d0)|0,z=z+Math.imul(Z0,a0)|0,z=z+Math.imul(C0,d0)|0,T=T+Math.imul(C0,a0)|0,C=C+Math.imul(s,X$)|0,z=z+Math.imul(s,U$)|0,z=z+Math.imul(e,X$)|0,T=T+Math.imul(e,U$)|0,C=C+Math.imul(U0,I$)|0,z=z+Math.imul(U0,$$)|0,z=z+Math.imul(K0,I$)|0,T=T+Math.imul(K0,$$)|0;var t$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(t$>>>26)|0,t$&=67108863,C=Math.imul(h0,E0),z=Math.imul(h0,N0),z=z+Math.imul(c0,E0)|0,T=Math.imul(c0,N0),C=C+Math.imul(m0,x0)|0,z=z+Math.imul(m0,y0)|0,z=z+Math.imul(p0,x0)|0,T=T+Math.imul(p0,y0)|0,C=C+Math.imul(A0,o0)|0,z=z+Math.imul(A0,r0)|0,z=z+Math.imul(v0,o0)|0,T=T+Math.imul(v0,r0)|0,C=C+Math.imul(J0,s0)|0,z=z+Math.imul(J0,i)|0,z=z+Math.imul(O0,s0)|0,T=T+Math.imul(O0,i)|0,C=C+Math.imul(Y0,q0)|0,z=z+Math.imul(Y0,j0)|0,z=z+Math.imul(V0,q0)|0,T=T+Math.imul(V0,j0)|0,C=C+Math.imul(c,d0)|0,z=z+Math.imul(c,a0)|0,z=z+Math.imul(d,d0)|0,T=T+Math.imul(d,a0)|0,C=C+Math.imul(Z0,X$)|0,z=z+Math.imul(Z0,U$)|0,z=z+Math.imul(C0,X$)|0,T=T+Math.imul(C0,U$)|0,C=C+Math.imul(s,I$)|0,z=z+Math.imul(s,$$)|0,z=z+Math.imul(e,I$)|0,T=T+Math.imul(e,$$)|0;var MU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(MU>>>26)|0,MU&=67108863,C=Math.imul(h0,x0),z=Math.imul(h0,y0),z=z+Math.imul(c0,x0)|0,T=Math.imul(c0,y0),C=C+Math.imul(m0,o0)|0,z=z+Math.imul(m0,r0)|0,z=z+Math.imul(p0,o0)|0,T=T+Math.imul(p0,r0)|0,C=C+Math.imul(A0,s0)|0,z=z+Math.imul(A0,i)|0,z=z+Math.imul(v0,s0)|0,T=T+Math.imul(v0,i)|0,C=C+Math.imul(J0,q0)|0,z=z+Math.imul(J0,j0)|0,z=z+Math.imul(O0,q0)|0,T=T+Math.imul(O0,j0)|0,C=C+Math.imul(Y0,d0)|0,z=z+Math.imul(Y0,a0)|0,z=z+Math.imul(V0,d0)|0,T=T+Math.imul(V0,a0)|0,C=C+Math.imul(c,X$)|0,z=z+Math.imul(c,U$)|0,z=z+Math.imul(d,X$)|0,T=T+Math.imul(d,U$)|0,C=C+Math.imul(Z0,I$)|0,z=z+Math.imul(Z0,$$)|0,z=z+Math.imul(C0,I$)|0,T=T+Math.imul(C0,$$)|0;var VU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(VU>>>26)|0,VU&=67108863,C=Math.imul(h0,o0),z=Math.imul(h0,r0),z=z+Math.imul(c0,o0)|0,T=Math.imul(c0,r0),C=C+Math.imul(m0,s0)|0,z=z+Math.imul(m0,i)|0,z=z+Math.imul(p0,s0)|0,T=T+Math.imul(p0,i)|0,C=C+Math.imul(A0,q0)|0,z=z+Math.imul(A0,j0)|0,z=z+Math.imul(v0,q0)|0,T=T+Math.imul(v0,j0)|0,C=C+Math.imul(J0,d0)|0,z=z+Math.imul(J0,a0)|0,z=z+Math.imul(O0,d0)|0,T=T+Math.imul(O0,a0)|0,C=C+Math.imul(Y0,X$)|0,z=z+Math.imul(Y0,U$)|0,z=z+Math.imul(V0,X$)|0,T=T+Math.imul(V0,U$)|0,C=C+Math.imul(c,I$)|0,z=z+Math.imul(c,$$)|0,z=z+Math.imul(d,I$)|0,T=T+Math.imul(d,$$)|0;var lU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(lU>>>26)|0,lU&=67108863,C=Math.imul(h0,s0),z=Math.imul(h0,i),z=z+Math.imul(c0,s0)|0,T=Math.imul(c0,i),C=C+Math.imul(m0,q0)|0,z=z+Math.imul(m0,j0)|0,z=z+Math.imul(p0,q0)|0,T=T+Math.imul(p0,j0)|0,C=C+Math.imul(A0,d0)|0,z=z+Math.imul(A0,a0)|0,z=z+Math.imul(v0,d0)|0,T=T+Math.imul(v0,a0)|0,C=C+Math.imul(J0,X$)|0,z=z+Math.imul(J0,U$)|0,z=z+Math.imul(O0,X$)|0,T=T+Math.imul(O0,U$)|0,C=C+Math.imul(Y0,I$)|0,z=z+Math.imul(Y0,$$)|0,z=z+Math.imul(V0,I$)|0,T=T+Math.imul(V0,$$)|0;var qU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(qU>>>26)|0,qU&=67108863,C=Math.imul(h0,q0),z=Math.imul(h0,j0),z=z+Math.imul(c0,q0)|0,T=Math.imul(c0,j0),C=C+Math.imul(m0,d0)|0,z=z+Math.imul(m0,a0)|0,z=z+Math.imul(p0,d0)|0,T=T+Math.imul(p0,a0)|0,C=C+Math.imul(A0,X$)|0,z=z+Math.imul(A0,U$)|0,z=z+Math.imul(v0,X$)|0,T=T+Math.imul(v0,U$)|0,C=C+Math.imul(J0,I$)|0,z=z+Math.imul(J0,$$)|0,z=z+Math.imul(O0,I$)|0,T=T+Math.imul(O0,$$)|0;var NU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(NU>>>26)|0,NU&=67108863,C=Math.imul(h0,d0),z=Math.imul(h0,a0),z=z+Math.imul(c0,d0)|0,T=Math.imul(c0,a0),C=C+Math.imul(m0,X$)|0,z=z+Math.imul(m0,U$)|0,z=z+Math.imul(p0,X$)|0,T=T+Math.imul(p0,U$)|0,C=C+Math.imul(A0,I$)|0,z=z+Math.imul(A0,$$)|0,z=z+Math.imul(v0,I$)|0,T=T+Math.imul(v0,$$)|0;var xU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(xU>>>26)|0,xU&=67108863,C=Math.imul(h0,X$),z=Math.imul(h0,U$),z=z+Math.imul(c0,X$)|0,T=Math.imul(c0,U$),C=C+Math.imul(m0,I$)|0,z=z+Math.imul(m0,$$)|0,z=z+Math.imul(p0,I$)|0,T=T+Math.imul(p0,$$)|0;var SU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(SU>>>26)|0,SU&=67108863,C=Math.imul(h0,I$),z=Math.imul(h0,$$),z=z+Math.imul(c0,I$)|0,T=Math.imul(c0,$$);var AU=(j+C|0)+((z&8191)<<13)|0;if(j=(T+(z>>>13)|0)+(AU>>>26)|0,AU&=67108863,R[0]=_U,R[1]=B$,R[2]=j$,R[3]=UU,R[4]=n$,R[5]=uU,R[6]=hU,R[7]=cU,R[8]=pU,R[9]=mU,R[10]=t$,R[11]=MU,R[12]=VU,R[13]=lU,R[14]=qU,R[15]=NU,R[16]=xU,R[17]=SU,R[18]=AU,j!==0)R[19]=j,D.length++;return D};if(!Math.imul)w=f;function u(G,V,D){D.negative=V.negative^G.negative,D.length=G.length+V.length;var O=0,F=0;for(var R=0;R<D.length-1;R++){var j=F;F=0;var C=O&67108863,z=Math.min(R,V.length-1);for(var T=Math.max(0,R-G.length+1);T<=z;T++){var x=R-T,v=G.words[x]|0,h=V.words[T]|0,r=v*h,U0=r&67108863;j=j+(r/67108864|0)|0,U0=U0+C|0,C=U0&67108863,j=j+(U0>>>26)|0,F+=j>>>26,j&=67108863}D.words[R]=C,O=j,j=F}if(O!==0)D.words[R]=O;else D.length--;return D.strip()}function g(G,V,D){var O=new b;return O.mulp(G,V,D)}Z.prototype.mulTo=function(G,V){var D,O=this.length+G.length;if(this.length===10&&G.length===10)D=w(this,G,V);else if(O<63)D=f(this,G,V);else if(O<1024)D=u(this,G,V);else D=g(this,G,V);return D};function b(G,V){this.x=G,this.y=V}b.prototype.makeRBT=function(G){var V=Array(G),D=Z.prototype._countBits(G)-1;for(var O=0;O<G;O++)V[O]=this.revBin(O,D,G);return V},b.prototype.revBin=function(G,V,D){if(G===0||G===D-1)return G;var O=0;for(var F=0;F<V;F++)O|=(G&1)<<V-F-1,G>>=1;return O},b.prototype.permute=function(G,V,D,O,F,R){for(var j=0;j<R;j++)O[j]=V[G[j]],F[j]=D[G[j]]},b.prototype.transform=function(G,V,D,O,F,R){this.permute(R,G,V,D,O,F);for(var j=1;j<F;j<<=1){var C=j<<1,z=Math.cos(2*Math.PI/C),T=Math.sin(2*Math.PI/C);for(var x=0;x<F;x+=C){var v=z,h=T;for(var r=0;r<j;r++){var U0=D[x+r],K0=O[x+r],Q0=D[x+r+j],s=O[x+r+j],e=v*Q0-h*s;if(s=v*s+h*Q0,Q0=e,D[x+r]=U0+Q0,O[x+r]=K0+s,D[x+r+j]=U0-Q0,O[x+r+j]=K0-s,r!==C)e=z*v-T*h,h=z*h+T*v,v=e}}}},b.prototype.guessLen13b=function(G,V){var D=Math.max(V,G)|1,O=D&1,F=0;for(D=D/2|0;D;D=D>>>1)F++;return 1<<F+1+O},b.prototype.conjugate=function(G,V,D){if(D<=1)return;for(var O=0;O<D/2;O++){var F=G[O];G[O]=G[D-O-1],G[D-O-1]=F,F=V[O],V[O]=-V[D-O-1],V[D-O-1]=-F}},b.prototype.normalize13b=function(G,V){var D=0;for(var O=0;O<V/2;O++){var F=Math.round(G[2*O+1]/V)*8192+Math.round(G[2*O]/V)+D;if(G[O]=F&67108863,F<67108864)D=0;else D=F/67108864|0}return G},b.prototype.convert13b=function(G,V,D,O){var F=0;for(var R=0;R<V;R++)F=F+(G[R]|0),D[2*R]=F&8191,F=F>>>13,D[2*R+1]=F&8191,F=F>>>13;for(R=2*V;R<O;++R)D[R]=0;X(F===0),X((F&-8192)===0)},b.prototype.stub=function(G){var V=Array(G);for(var D=0;D<G;D++)V[D]=0;return V},b.prototype.mulp=function(G,V,D){var O=2*this.guessLen13b(G.length,V.length),F=this.makeRBT(O),R=this.stub(O),j=Array(O),C=Array(O),z=Array(O),T=Array(O),x=Array(O),v=Array(O),h=D.words;h.length=O,this.convert13b(G.words,G.length,j,O),this.convert13b(V.words,V.length,T,O),this.transform(j,R,C,z,O,F),this.transform(T,R,x,v,O,F);for(var r=0;r<O;r++){var U0=C[r]*x[r]-z[r]*v[r];z[r]=C[r]*v[r]+z[r]*x[r],C[r]=U0}return this.conjugate(C,z,O),this.transform(C,z,h,R,O,F),this.conjugate(h,R,O),this.normalize13b(h,O),D.negative=G.negative^V.negative,D.length=G.length+V.length,D.strip()},Z.prototype.mul=function(G){var V=new Z(null);return V.words=Array(this.length+G.length),this.mulTo(G,V)},Z.prototype.mulf=function(G){var V=new Z(null);return V.words=Array(this.length+G.length),g(this,G,V)},Z.prototype.imul=function(G){return this.clone().mulTo(G,this)},Z.prototype.imuln=function(G){X(typeof G==="number"),X(G<67108864);var V=0;for(var D=0;D<this.length;D++){var O=(this.words[D]|0)*G,F=(O&67108863)+(V&67108863);V>>=26,V+=O/67108864|0,V+=F>>>26,this.words[D]=F&67108863}if(V!==0)this.words[D]=V,this.length++;return this.length=G===0?1:this.length,this},Z.prototype.muln=function(G){return this.clone().imuln(G)},Z.prototype.sqr=function(){return this.mul(this)},Z.prototype.isqr=function(){return this.imul(this.clone())},Z.prototype.pow=function(G){var V=N(G);if(V.length===0)return new Z(1);var D=this;for(var O=0;O<V.length;O++,D=D.sqr())if(V[O]!==0)break;if(++O<V.length)for(var F=D.sqr();O<V.length;O++,F=F.sqr()){if(V[O]===0)continue;D=D.mul(F)}return D},Z.prototype.iushln=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26,O=67108863>>>26-V<<26-V,F;if(V!==0){var R=0;for(F=0;F<this.length;F++){var j=this.words[F]&O,C=(this.words[F]|0)-j<<V;this.words[F]=C|R,R=j>>>26-V}if(R)this.words[F]=R,this.length++}if(D!==0){for(F=this.length-1;F>=0;F--)this.words[F+D]=this.words[F];for(F=0;F<D;F++)this.words[F]=0;this.length+=D}return this.strip()},Z.prototype.ishln=function(G){return X(this.negative===0),this.iushln(G)},Z.prototype.iushrn=function(G,V,D){X(typeof G==="number"&&G>=0);var O;if(V)O=(V-V%26)/26;else O=0;var F=G%26,R=Math.min((G-F)/26,this.length),j=67108863^67108863>>>F<<F,C=D;if(O-=R,O=Math.max(0,O),C){for(var z=0;z<R;z++)C.words[z]=this.words[z];C.length=R}if(R===0);else if(this.length>R){this.length-=R;for(z=0;z<this.length;z++)this.words[z]=this.words[z+R]}else this.words[0]=0,this.length=1;var T=0;for(z=this.length-1;z>=0&&(T!==0||z>=O);z--){var x=this.words[z]|0;this.words[z]=T<<26-F|x>>>F,T=x&j}if(C&&T!==0)C.words[C.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Z.prototype.ishrn=function(G,V,D){return X(this.negative===0),this.iushrn(G,V,D)},Z.prototype.shln=function(G){return this.clone().ishln(G)},Z.prototype.ushln=function(G){return this.clone().iushln(G)},Z.prototype.shrn=function(G){return this.clone().ishrn(G)},Z.prototype.ushrn=function(G){return this.clone().iushrn(G)},Z.prototype.testn=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26,O=1<<V;if(this.length<=D)return!1;var F=this.words[D];return!!(F&O)},Z.prototype.imaskn=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(V!==0)D++;if(this.length=Math.min(D,this.length),V!==0){var O=67108863^67108863>>>V<<V;this.words[this.length-1]&=O}return this.strip()},Z.prototype.maskn=function(G){return this.clone().imaskn(G)},Z.prototype.iaddn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.isubn(-G);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<G)return this.words[0]=G-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(G),this.negative=1,this}return this._iaddn(G)},Z.prototype._iaddn=function(G){this.words[0]+=G;for(var V=0;V<this.length&&this.words[V]>=67108864;V++)if(this.words[V]-=67108864,V===this.length-1)this.words[V+1]=1;else this.words[V+1]++;return this.length=Math.max(this.length,V+1),this},Z.prototype.isubn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.iaddn(-G);if(this.negative!==0)return this.negative=0,this.iaddn(G),this.negative=1,this;if(this.words[0]-=G,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var V=0;V<this.length&&this.words[V]<0;V++)this.words[V]+=67108864,this.words[V+1]-=1;return this.strip()},Z.prototype.addn=function(G){return this.clone().iaddn(G)},Z.prototype.subn=function(G){return this.clone().isubn(G)},Z.prototype.iabs=function(){return this.negative=0,this},Z.prototype.abs=function(){return this.clone().iabs()},Z.prototype._ishlnsubmul=function(G,V,D){var O=G.length+D,F;this._expand(O);var R,j=0;for(F=0;F<G.length;F++){R=(this.words[F+D]|0)+j;var C=(G.words[F]|0)*V;R-=C&67108863,j=(R>>26)-(C/67108864|0),this.words[F+D]=R&67108863}for(;F<this.length-D;F++)R=(this.words[F+D]|0)+j,j=R>>26,this.words[F+D]=R&67108863;if(j===0)return this.strip();X(j===-1),j=0;for(F=0;F<this.length;F++)R=-(this.words[F]|0)+j,j=R>>26,this.words[F]=R&67108863;return this.negative=1,this.strip()},Z.prototype._wordDiv=function(G,V){var D=this.length-G.length,O=this.clone(),F=G,R=F.words[F.length-1]|0,j=this._countBits(R);if(D=26-j,D!==0)F=F.ushln(D),O.iushln(D),R=F.words[F.length-1]|0;var C=O.length-F.length,z;if(V!=="mod"){z=new Z(null),z.length=C+1,z.words=Array(z.length);for(var T=0;T<z.length;T++)z.words[T]=0}var x=O.clone()._ishlnsubmul(F,1,C);if(x.negative===0){if(O=x,z)z.words[C]=1}for(var v=C-1;v>=0;v--){var h=(O.words[F.length+v]|0)*67108864+(O.words[F.length+v-1]|0);h=Math.min(h/R|0,67108863),O._ishlnsubmul(F,h,v);while(O.negative!==0)if(h--,O.negative=0,O._ishlnsubmul(F,1,v),!O.isZero())O.negative^=1;if(z)z.words[v]=h}if(z)z.strip();if(O.strip(),V!=="div"&&D!==0)O.iushrn(D);return{div:z||null,mod:O}},Z.prototype.divmod=function(G,V,D){if(X(!G.isZero()),this.isZero())return{div:new Z(0),mod:new Z(0)};var O,F,R;if(this.negative!==0&&G.negative===0){if(R=this.neg().divmod(G,V),V!=="mod")O=R.div.neg();if(V!=="div"){if(F=R.mod.neg(),D&&F.negative!==0)F.iadd(G)}return{div:O,mod:F}}if(this.negative===0&&G.negative!==0){if(R=this.divmod(G.neg(),V),V!=="mod")O=R.div.neg();return{div:O,mod:R.mod}}if((this.negative&G.negative)!==0){if(R=this.neg().divmod(G.neg(),V),V!=="div"){if(F=R.mod.neg(),D&&F.negative!==0)F.isub(G)}return{div:R.div,mod:F}}if(G.length>this.length||this.cmp(G)<0)return{div:new Z(0),mod:this};if(G.length===1){if(V==="div")return{div:this.divn(G.words[0]),mod:null};if(V==="mod")return{div:null,mod:new Z(this.modn(G.words[0]))};return{div:this.divn(G.words[0]),mod:new Z(this.modn(G.words[0]))}}return this._wordDiv(G,V)},Z.prototype.div=function(G){return this.divmod(G,"div",!1).div},Z.prototype.mod=function(G){return this.divmod(G,"mod",!1).mod},Z.prototype.umod=function(G){return this.divmod(G,"mod",!0).mod},Z.prototype.divRound=function(G){var V=this.divmod(G);if(V.mod.isZero())return V.div;var D=V.div.negative!==0?V.mod.isub(G):V.mod,O=G.ushrn(1),F=G.andln(1),R=D.cmp(O);if(R<0||F===1&&R===0)return V.div;return V.div.negative!==0?V.div.isubn(1):V.div.iaddn(1)},Z.prototype.modn=function(G){X(G<=67108863);var V=67108864%G,D=0;for(var O=this.length-1;O>=0;O--)D=(V*D+(this.words[O]|0))%G;return D},Z.prototype.idivn=function(G){X(G<=67108863);var V=0;for(var D=this.length-1;D>=0;D--){var O=(this.words[D]|0)+V*67108864;this.words[D]=O/G|0,V=O%G}return this.strip()},Z.prototype.divn=function(G){return this.clone().idivn(G)},Z.prototype.egcd=function(G){X(G.negative===0),X(!G.isZero());var V=this,D=G.clone();if(V.negative!==0)V=V.umod(G);else V=V.clone();var O=new Z(1),F=new Z(0),R=new Z(0),j=new Z(1),C=0;while(V.isEven()&&D.isEven())V.iushrn(1),D.iushrn(1),++C;var z=D.clone(),T=V.clone();while(!V.isZero()){for(var x=0,v=1;(V.words[0]&v)===0&&x<26;++x,v<<=1);if(x>0){V.iushrn(x);while(x-- >0){if(O.isOdd()||F.isOdd())O.iadd(z),F.isub(T);O.iushrn(1),F.iushrn(1)}}for(var h=0,r=1;(D.words[0]&r)===0&&h<26;++h,r<<=1);if(h>0){D.iushrn(h);while(h-- >0){if(R.isOdd()||j.isOdd())R.iadd(z),j.isub(T);R.iushrn(1),j.iushrn(1)}}if(V.cmp(D)>=0)V.isub(D),O.isub(R),F.isub(j);else D.isub(V),R.isub(O),j.isub(F)}return{a:R,b:j,gcd:D.iushln(C)}},Z.prototype._invmp=function(G){X(G.negative===0),X(!G.isZero());var V=this,D=G.clone();if(V.negative!==0)V=V.umod(G);else V=V.clone();var O=new Z(1),F=new Z(0),R=D.clone();while(V.cmpn(1)>0&&D.cmpn(1)>0){for(var j=0,C=1;(V.words[0]&C)===0&&j<26;++j,C<<=1);if(j>0){V.iushrn(j);while(j-- >0){if(O.isOdd())O.iadd(R);O.iushrn(1)}}for(var z=0,T=1;(D.words[0]&T)===0&&z<26;++z,T<<=1);if(z>0){D.iushrn(z);while(z-- >0){if(F.isOdd())F.iadd(R);F.iushrn(1)}}if(V.cmp(D)>=0)V.isub(D),O.isub(F);else D.isub(V),F.isub(O)}var x;if(V.cmpn(1)===0)x=O;else x=F;if(x.cmpn(0)<0)x.iadd(G);return x},Z.prototype.gcd=function(G){if(this.isZero())return G.abs();if(G.isZero())return this.abs();var V=this.clone(),D=G.clone();V.negative=0,D.negative=0;for(var O=0;V.isEven()&&D.isEven();O++)V.iushrn(1),D.iushrn(1);do{while(V.isEven())V.iushrn(1);while(D.isEven())D.iushrn(1);var F=V.cmp(D);if(F<0){var R=V;V=D,D=R}else if(F===0||D.cmpn(1)===0)break;V.isub(D)}while(!0);return D.iushln(O)},Z.prototype.invm=function(G){return this.egcd(G).a.umod(G)},Z.prototype.isEven=function(){return(this.words[0]&1)===0},Z.prototype.isOdd=function(){return(this.words[0]&1)===1},Z.prototype.andln=function(G){return this.words[0]&G},Z.prototype.bincn=function(G){X(typeof G==="number");var V=G%26,D=(G-V)/26,O=1<<V;if(this.length<=D)return this._expand(D+1),this.words[D]|=O,this;var F=O;for(var R=D;F!==0&&R<this.length;R++){var j=this.words[R]|0;j+=F,F=j>>>26,j&=67108863,this.words[R]=j}if(F!==0)this.words[R]=F,this.length++;return this},Z.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Z.prototype.cmpn=function(G){var V=G<0;if(this.negative!==0&&!V)return-1;if(this.negative===0&&V)return 1;this.strip();var D;if(this.length>1)D=1;else{if(V)G=-G;X(G<=67108863,"Number is too big");var O=this.words[0]|0;D=O===G?0:O<G?-1:1}if(this.negative!==0)return-D|0;return D},Z.prototype.cmp=function(G){if(this.negative!==0&&G.negative===0)return-1;if(this.negative===0&&G.negative!==0)return 1;var V=this.ucmp(G);if(this.negative!==0)return-V|0;return V},Z.prototype.ucmp=function(G){if(this.length>G.length)return 1;if(this.length<G.length)return-1;var V=0;for(var D=this.length-1;D>=0;D--){var O=this.words[D]|0,F=G.words[D]|0;if(O===F)continue;if(O<F)V=-1;else if(O>F)V=1;break}return V},Z.prototype.gtn=function(G){return this.cmpn(G)===1},Z.prototype.gt=function(G){return this.cmp(G)===1},Z.prototype.gten=function(G){return this.cmpn(G)>=0},Z.prototype.gte=function(G){return this.cmp(G)>=0},Z.prototype.ltn=function(G){return this.cmpn(G)===-1},Z.prototype.lt=function(G){return this.cmp(G)===-1},Z.prototype.lten=function(G){return this.cmpn(G)<=0},Z.prototype.lte=function(G){return this.cmp(G)<=0},Z.prototype.eqn=function(G){return this.cmpn(G)===0},Z.prototype.eq=function(G){return this.cmp(G)===0},Z.red=function(G){return new t(G)},Z.prototype.toRed=function(G){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),G.convertTo(this)._forceRed(G)},Z.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Z.prototype._forceRed=function(G){return this.red=G,this},Z.prototype.forceRed=function(G){return X(!this.red,"Already a number in reduction context"),this._forceRed(G)},Z.prototype.redAdd=function(G){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,G)},Z.prototype.redIAdd=function(G){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,G)},Z.prototype.redSub=function(G){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,G)},Z.prototype.redISub=function(G){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,G)},Z.prototype.redShl=function(G){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,G)},Z.prototype.redMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.mul(this,G)},Z.prototype.redIMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.imul(this,G)},Z.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Z.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Z.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Z.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Z.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Z.prototype.redPow=function(G){return X(this.red&&!G.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,G)};var p={k256:null,p224:null,p192:null,p25519:null};function n(G,V){this.name=G,this.p=new Z(V,16),this.n=this.p.bitLength(),this.k=new Z(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}n.prototype._tmp=function(){var G=new Z(null);return G.words=Array(Math.ceil(this.n/13)),G},n.prototype.ireduce=function(G){var V=G,D;do this.split(V,this.tmp),V=this.imulK(V),V=V.iadd(this.tmp),D=V.bitLength();while(D>this.n);var O=D<this.n?-1:V.ucmp(this.p);if(O===0)V.words[0]=0,V.length=1;else if(O>0)V.isub(this.p);else if(V.strip!==void 0)V.strip();else V._strip();return V},n.prototype.split=function(G,V){G.iushrn(this.n,0,V)},n.prototype.imulK=function(G){return G.imul(this.k)};function a(){n.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}K(a,n),a.prototype.split=function(G,V){var D=4194303,O=Math.min(G.length,9);for(var F=0;F<O;F++)V.words[F]=G.words[F];if(V.length=O,G.length<=9){G.words[0]=0,G.length=1;return}var R=G.words[9];V.words[V.length++]=R&D;for(F=10;F<G.length;F++){var j=G.words[F]|0;G.words[F-10]=(j&D)<<4|R>>>22,R=j}if(R>>>=22,G.words[F-10]=R,R===0&&G.length>10)G.length-=10;else G.length-=9},a.prototype.imulK=function(G){G.words[G.length]=0,G.words[G.length+1]=0,G.length+=2;var V=0;for(var D=0;D<G.length;D++){var O=G.words[D]|0;V+=O*977,G.words[D]=V&67108863,V=O*64+(V/67108864|0)}if(G.words[G.length-1]===0){if(G.length--,G.words[G.length-1]===0)G.length--}return G};function D0(){n.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}K(D0,n);function M0(){n.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}K(M0,n);function S0(){n.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}K(S0,n),S0.prototype.imulK=function(G){var V=0;for(var D=0;D<G.length;D++){var O=(G.words[D]|0)*19+V,F=O&67108863;O>>>=26,G.words[D]=F,V=O}if(V!==0)G.words[G.length++]=V;return G},Z._prime=function(G){if(p[G])return p[G];var V;if(G==="k256")V=new a;else if(G==="p224")V=new D0;else if(G==="p192")V=new M0;else if(G==="p25519")V=new S0;else throw Error("Unknown prime "+G);return p[G]=V,V};function t(G){if(typeof G==="string"){var V=Z._prime(G);this.m=V.p,this.prime=V}else X(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}t.prototype._verify1=function(G){X(G.negative===0,"red works only with positives"),X(G.red,"red works only with red numbers")},t.prototype._verify2=function(G,V){X((G.negative|V.negative)===0,"red works only with positives"),X(G.red&&G.red===V.red,"red works only with red numbers")},t.prototype.imod=function(G){if(this.prime)return this.prime.ireduce(G)._forceRed(this);return G.umod(this.m)._forceRed(this)},t.prototype.neg=function(G){if(G.isZero())return G.clone();return this.m.sub(G)._forceRed(this)},t.prototype.add=function(G,V){this._verify2(G,V);var D=G.add(V);if(D.cmp(this.m)>=0)D.isub(this.m);return D._forceRed(this)},t.prototype.iadd=function(G,V){this._verify2(G,V);var D=G.iadd(V);if(D.cmp(this.m)>=0)D.isub(this.m);return D},t.prototype.sub=function(G,V){this._verify2(G,V);var D=G.sub(V);if(D.cmpn(0)<0)D.iadd(this.m);return D._forceRed(this)},t.prototype.isub=function(G,V){this._verify2(G,V);var D=G.isub(V);if(D.cmpn(0)<0)D.iadd(this.m);return D},t.prototype.shl=function(G,V){return this._verify1(G),this.imod(G.ushln(V))},t.prototype.imul=function(G,V){return this._verify2(G,V),this.imod(G.imul(V))},t.prototype.mul=function(G,V){return this._verify2(G,V),this.imod(G.mul(V))},t.prototype.isqr=function(G){return this.imul(G,G.clone())},t.prototype.sqr=function(G){return this.mul(G,G)},t.prototype.sqrt=function(G){if(G.isZero())return G.clone();var V=this.m.andln(3);if(X(V%2===1),V===3){var D=this.m.add(new Z(1)).iushrn(2);return this.pow(G,D)}var O=this.m.subn(1),F=0;while(!O.isZero()&&O.andln(1)===0)F++,O.iushrn(1);X(!O.isZero());var R=new Z(1).toRed(this),j=R.redNeg(),C=this.m.subn(1).iushrn(1),z=this.m.bitLength();z=new Z(2*z*z).toRed(this);while(this.pow(z,C).cmp(j)!==0)z.redIAdd(j);var T=this.pow(z,O),x=this.pow(G,O.addn(1).iushrn(1)),v=this.pow(G,O),h=F;while(v.cmp(R)!==0){var r=v;for(var U0=0;r.cmp(R)!==0;U0++)r=r.redSqr();X(U0<h);var K0=this.pow(T,new Z(1).iushln(h-U0-1));x=x.redMul(K0),T=K0.redSqr(),v=v.redMul(T),h=U0}return x},t.prototype.invm=function(G){var V=G._invmp(this.m);if(V.negative!==0)return V.negative=0,this.imod(V).redNeg();else return this.imod(V)},t.prototype.pow=function(G,V){if(V.isZero())return new Z(1).toRed(this);if(V.cmpn(1)===0)return G.clone();var D=4,O=Array(1<<D);O[0]=new Z(1).toRed(this),O[1]=G;for(var F=2;F<O.length;F++)O[F]=this.mul(O[F-1],G);var R=O[0],j=0,C=0,z=V.bitLength()%26;if(z===0)z=26;for(F=V.length-1;F>=0;F--){var T=V.words[F];for(var x=z-1;x>=0;x--){var v=T>>x&1;if(R!==O[0])R=this.sqr(R);if(v===0&&j===0){C=0;continue}if(j<<=1,j|=v,C++,C!==D&&(F!==0||x!==0))continue;R=this.mul(R,O[j]),C=0,j=0}z=26}return R},t.prototype.convertTo=function(G){var V=G.umod(this.m);return V===G?V.clone():V},t.prototype.convertFrom=function(G){var V=G.clone();return V.red=null,V},Z.mont=function(G){return new R0(G)};function R0(G){if(t.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Z(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)}K(R0,t),R0.prototype.convertTo=function(G){return this.imod(G.ushln(this.shift))},R0.prototype.convertFrom=function(G){var V=this.imod(G.mul(this.rinv));return V.red=null,V},R0.prototype.imul=function(G,V){if(G.isZero()||V.isZero())return G.words[0]=0,G.length=1,G;var D=G.imul(V),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=D.isub(O).iushrn(this.shift),R=F;if(F.cmp(this.m)>=0)R=F.isub(this.m);else if(F.cmpn(0)<0)R=F.iadd(this.m);return R._forceRed(this)},R0.prototype.mul=function(G,V){if(G.isZero()||V.isZero())return new Z(0)._forceRed(this);var D=G.mul(V),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=D.isub(O).iushrn(this.shift),R=F;if(F.cmp(this.m)>=0)R=F.isub(this.m);else if(F.cmpn(0)<0)R=F.iadd(this.m);return R._forceRed(this)},R0.prototype.invm=function(G){var V=this.imod(G._invmp(this.m).mul(this.r2));return V._forceRed(this)}})(typeof I>"u"||I,J)}),lf=u0((J)=>{var I=Y2(),Y=L1(),W=J;W.define=function(K,Z){return new X(K,Z)};function X(K,Z){this.name=K,this.body=Z,this.decoders={},this.encoders={}}X.prototype._createNamed=function(K){var Z;try{Z=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
|
|
241
|
+
this._initNamed(entity);
|
|
242
|
+
})`)}catch(L){Z=function(E){this._initNamed(E)}}return Y(Z,K),Z.prototype._initNamed=function(L){K.call(this,L)},new Z(this)},X.prototype._getDecoder=function(K){if(K=K||"der",!this.decoders.hasOwnProperty(K))this.decoders[K]=this._createNamed(I.decoders[K]);return this.decoders[K]},X.prototype.decode=function(K,Z,L){return this._getDecoder(Z).decode(K,L)},X.prototype._getEncoder=function(K){if(K=K||"der",!this.encoders.hasOwnProperty(K))this.encoders[K]=this._createNamed(I.encoders[K]);return this.encoders[K]},X.prototype.encode=function(K,Z,L){return this._getEncoder(Z).encode(K,L)}}),nf=u0((J)=>{var I=L1();function Y(X){this._reporterState={obj:null,path:[],options:X||{},errors:[]}}J.Reporter=Y,Y.prototype.isError=function(X){return X instanceof W},Y.prototype.save=function(){var X=this._reporterState;return{obj:X.obj,pathLen:X.path.length}},Y.prototype.restore=function(X){var K=this._reporterState;K.obj=X.obj,K.path=K.path.slice(0,X.pathLen)},Y.prototype.enterKey=function(X){return this._reporterState.path.push(X)},Y.prototype.exitKey=function(X){var K=this._reporterState;K.path=K.path.slice(0,X-1)},Y.prototype.leaveKey=function(X,K,Z){var L=this._reporterState;if(this.exitKey(X),L.obj!==null)L.obj[K]=Z},Y.prototype.path=function(){return this._reporterState.path.join("/")},Y.prototype.enterObject=function(){var X=this._reporterState,K=X.obj;return X.obj={},K},Y.prototype.leaveObject=function(X){var K=this._reporterState,Z=K.obj;return K.obj=X,Z},Y.prototype.error=function(X){var K,Z=this._reporterState,L=X instanceof W;if(L)K=X;else K=new W(Z.path.map(function(E){return"["+JSON.stringify(E)+"]"}).join(""),X.message||X,X.stack);if(!Z.options.partial)throw K;if(!L)Z.errors.push(K);return K},Y.prototype.wrapResult=function(X){var K=this._reporterState;if(!K.options.partial)return X;return{result:this.isError(X)?null:X,errors:K.errors}};function W(X,K){this.path=X,this.rethrow(K)}I(W,Error),W.prototype.rethrow=function(X){if(this.message=X+" at: "+(this.path||"(shallow)"),Error.captureStackTrace)Error.captureStackTrace(this,W);if(!this.stack)try{throw Error(this.message)}catch(K){this.stack=K.stack}return this}}),eS=u0((J)=>{var I=L1(),Y=U2().Reporter,W=(iU(),E$(oU)).Buffer;function X(Z,L){if(Y.call(this,L),!W.isBuffer(Z)){this.error("Input not Buffer");return}this.base=Z,this.offset=0,this.length=Z.length}I(X,Y),J.DecoderBuffer=X,X.prototype.save=function(){return{offset:this.offset,reporter:Y.prototype.save.call(this)}},X.prototype.restore=function(Z){var L=new X(this.base);return L.offset=Z.offset,L.length=this.offset,this.offset=Z.offset,Y.prototype.restore.call(this,Z.reporter),L},X.prototype.isEmpty=function(){return this.offset===this.length},X.prototype.readUInt8=function(Z){if(this.offset+1<=this.length)return this.base.readUInt8(this.offset++,!0);else return this.error(Z||"DecoderBuffer overrun")},X.prototype.skip=function(Z,L){if(!(this.offset+Z<=this.length))return this.error(L||"DecoderBuffer overrun");var E=new X(this.base);return E._reporterState=this._reporterState,E.offset=this.offset,E.length=this.offset+Z,this.offset+=Z,E},X.prototype.raw=function(Z){return this.base.slice(Z?Z.offset:this.offset,this.length)};function K(Z,L){if(Array.isArray(Z))this.length=0,this.value=Z.map(function(E){if(!(E instanceof K))E=new K(E,L);return this.length+=E.length,E},this);else if(typeof Z==="number"){if(!(0<=Z&&Z<=255))return L.error("non-byte EncoderBuffer value");this.value=Z,this.length=1}else if(typeof Z==="string")this.value=Z,this.length=W.byteLength(Z);else if(W.isBuffer(Z))this.value=Z,this.length=Z.length;else return L.error("Unsupported type: "+typeof Z)}J.EncoderBuffer=K,K.prototype.join=function(Z,L){if(!Z)Z=new W(this.length);if(!L)L=0;if(this.length===0)return Z;if(Array.isArray(this.value))this.value.forEach(function(E){E.join(Z,L),L+=E.length});else{if(typeof this.value==="number")Z[L]=this.value;else if(typeof this.value==="string")Z.write(this.value,L);else if(W.isBuffer(this.value))this.value.copy(Z,L);L+=this.length}return Z}}),df=u0((J,I)=>{var Y=U2().Reporter,W=U2().EncoderBuffer,X=U2().DecoderBuffer,K=QX(),Z=["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"],L=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Z),E=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function _(A,q){var B={};if(this._baseState=B,B.enc=A,B.parent=q||null,B.children=null,B.tag=null,B.args=null,B.reverseArgs=null,B.choice=null,B.optional=!1,B.any=!1,B.obj=!1,B.use=null,B.useDecoder=null,B.key=null,B.default=null,B.explicit=null,B.implicit=null,B.contains=null,!B.parent)B.children=[],this._wrap()}I.exports=_;var S=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];_.prototype.clone=function(){var A=this._baseState,q={};S.forEach(function(N){q[N]=A[N]});var B=new this.constructor(q.parent);return B._baseState=q,B},_.prototype._wrap=function(){var A=this._baseState;L.forEach(function(q){this[q]=function(){var B=new this.constructor(this);return A.children.push(B),B[q].apply(B,arguments)}},this)},_.prototype._init=function(A){var q=this._baseState;K(q.parent===null),A.call(this),q.children=q.children.filter(function(B){return B._baseState.parent===this},this),K.equal(q.children.length,1,"Root node can have only one child")},_.prototype._useArgs=function(A){var q=this._baseState,B=A.filter(function(N){return N instanceof this.constructor},this);if(A=A.filter(function(N){return!(N instanceof this.constructor)},this),B.length!==0)K(q.children===null),q.children=B,B.forEach(function(N){N._baseState.parent=this},this);if(A.length!==0)K(q.args===null),q.args=A,q.reverseArgs=A.map(function(N){if(typeof N!=="object"||N.constructor!==Object)return N;var f={};return Object.keys(N).forEach(function(w){if(w==(w|0))w|=0;var u=N[w];f[u]=w}),f})},E.forEach(function(A){_.prototype[A]=function(){var q=this._baseState;throw Error(A+" not implemented for encoding: "+q.enc)}}),Z.forEach(function(A){_.prototype[A]=function(){var q=this._baseState,B=Array.prototype.slice.call(arguments);return K(q.tag===null),q.tag=A,this._useArgs(B),this}}),_.prototype.use=function(A){K(A);var q=this._baseState;return K(q.use===null),q.use=A,this},_.prototype.optional=function(){var A=this._baseState;return A.optional=!0,this},_.prototype.def=function(A){var q=this._baseState;return K(q.default===null),q.default=A,q.optional=!0,this},_.prototype.explicit=function(A){var q=this._baseState;return K(q.explicit===null&&q.implicit===null),q.explicit=A,this},_.prototype.implicit=function(A){var q=this._baseState;return K(q.explicit===null&&q.implicit===null),q.implicit=A,this},_.prototype.obj=function(){var A=this._baseState,q=Array.prototype.slice.call(arguments);if(A.obj=!0,q.length!==0)this._useArgs(q);return this},_.prototype.key=function(A){var q=this._baseState;return K(q.key===null),q.key=A,this},_.prototype.any=function(){var A=this._baseState;return A.any=!0,this},_.prototype.choice=function(A){var q=this._baseState;return K(q.choice===null),q.choice=A,this._useArgs(Object.keys(A).map(function(B){return A[B]})),this},_.prototype.contains=function(A){var q=this._baseState;return K(q.use===null),q.contains=A,this},_.prototype._decode=function(A,q){var B=this._baseState;if(B.parent===null)return A.wrapResult(B.children[0]._decode(A,q));var N=B.default,f=!0,w=null;if(B.key!==null)w=A.enterKey(B.key);if(B.optional){var u=null;if(B.explicit!==null)u=B.explicit;else if(B.implicit!==null)u=B.implicit;else if(B.tag!==null)u=B.tag;if(u===null&&!B.any){var g=A.save();try{if(B.choice===null)this._decodeGeneric(B.tag,A,q);else this._decodeChoice(A,q);f=!0}catch(M0){f=!1}A.restore(g)}else if(f=this._peekTag(A,u,B.any),A.isError(f))return f}var b;if(B.obj&&f)b=A.enterObject();if(f){if(B.explicit!==null){var p=this._decodeTag(A,B.explicit);if(A.isError(p))return p;A=p}var n=A.offset;if(B.use===null&&B.choice===null){if(B.any)var g=A.save();var a=this._decodeTag(A,B.implicit!==null?B.implicit:B.tag,B.any);if(A.isError(a))return a;if(B.any)N=A.raw(g);else A=a}if(q&&q.track&&B.tag!==null)q.track(A.path(),n,A.length,"tagged");if(q&&q.track&&B.tag!==null)q.track(A.path(),A.offset,A.length,"content");if(B.any)N=N;else if(B.choice===null)N=this._decodeGeneric(B.tag,A,q);else N=this._decodeChoice(A,q);if(A.isError(N))return N;if(!B.any&&B.choice===null&&B.children!==null)B.children.forEach(function(M0){M0._decode(A,q)});if(B.contains&&(B.tag==="octstr"||B.tag==="bitstr")){var D0=new X(N);N=this._getUse(B.contains,A._reporterState.obj)._decode(D0,q)}}if(B.obj&&f)N=A.leaveObject(b);if(B.key!==null&&(N!==null||f===!0))A.leaveKey(w,B.key,N);else if(w!==null)A.exitKey(w);return N},_.prototype._decodeGeneric=function(A,q,B){var N=this._baseState;if(A==="seq"||A==="set")return null;if(A==="seqof"||A==="setof")return this._decodeList(q,A,N.args[0],B);else if(/str$/.test(A))return this._decodeStr(q,A,B);else if(A==="objid"&&N.args)return this._decodeObjid(q,N.args[0],N.args[1],B);else if(A==="objid")return this._decodeObjid(q,null,null,B);else if(A==="gentime"||A==="utctime")return this._decodeTime(q,A,B);else if(A==="null_")return this._decodeNull(q,B);else if(A==="bool")return this._decodeBool(q,B);else if(A==="objDesc")return this._decodeStr(q,A,B);else if(A==="int"||A==="enum")return this._decodeInt(q,N.args&&N.args[0],B);if(N.use!==null)return this._getUse(N.use,q._reporterState.obj)._decode(q,B);else return q.error("unknown tag: "+A)},_.prototype._getUse=function(A,q){var B=this._baseState;if(B.useDecoder=this._use(A,q),K(B.useDecoder._baseState.parent===null),B.useDecoder=B.useDecoder._baseState.children[0],B.implicit!==B.useDecoder._baseState.implicit)B.useDecoder=B.useDecoder.clone(),B.useDecoder._baseState.implicit=B.implicit;return B.useDecoder},_.prototype._decodeChoice=function(A,q){var B=this._baseState,N=null,f=!1;if(Object.keys(B.choice).some(function(w){var u=A.save(),g=B.choice[w];try{var b=g._decode(A,q);if(A.isError(b))return!1;N={type:w,value:b},f=!0}catch(p){return A.restore(u),!1}return!0},this),!f)return A.error("Choice not matched");return N},_.prototype._createEncoderBuffer=function(A){return new W(A,this.reporter)},_.prototype._encode=function(A,q,B){var N=this._baseState;if(N.default!==null&&N.default===A)return;var f=this._encodeValue(A,q,B);if(f===void 0)return;if(this._skipDefault(f,q,B))return;return f},_.prototype._encodeValue=function(A,q,B){var N=this._baseState;if(N.parent===null)return N.children[0]._encode(A,q||new Y);var g=null;if(this.reporter=q,N.optional&&A===void 0)if(N.default!==null)A=N.default;else return;var f=null,w=!1;if(N.any)g=this._createEncoderBuffer(A);else if(N.choice)g=this._encodeChoice(A,q);else if(N.contains)f=this._getUse(N.contains,B)._encode(A,q),w=!0;else if(N.children)f=N.children.map(function(n){if(n._baseState.tag==="null_")return n._encode(null,q,A);if(n._baseState.key===null)return q.error("Child should have a key");var a=q.enterKey(n._baseState.key);if(typeof A!=="object")return q.error("Child expected, but input is not object");var D0=n._encode(A[n._baseState.key],q,A);return q.leaveKey(a),D0},this).filter(function(n){return n}),f=this._createEncoderBuffer(f);else if(N.tag==="seqof"||N.tag==="setof"){if(!(N.args&&N.args.length===1))return q.error("Too many args for : "+N.tag);if(!Array.isArray(A))return q.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,f=this._createEncoderBuffer(A.map(function(n){var a=this._baseState;return this._getUse(a.args[0],A)._encode(n,q)},u))}else if(N.use!==null)g=this._getUse(N.use,B)._encode(A,q);else f=this._encodePrimitive(N.tag,A),w=!0;var g;if(!N.any&&N.choice===null){var b=N.implicit!==null?N.implicit:N.tag,p=N.implicit===null?"universal":"context";if(b===null){if(N.use===null)q.error("Tag could be omitted only for .use()")}else if(N.use===null)g=this._encodeComposite(b,w,p,f)}if(N.explicit!==null)g=this._encodeComposite(N.explicit,!1,"context",g);return g},_.prototype._encodeChoice=function(A,q){var B=this._baseState,N=B.choice[A.type];if(!N)K(!1,A.type+" not found in "+JSON.stringify(Object.keys(B.choice)));return N._encode(A.value,q)},_.prototype._encodePrimitive=function(A,q){var B=this._baseState;if(/str$/.test(A))return this._encodeStr(q,A);else if(A==="objid"&&B.args)return this._encodeObjid(q,B.reverseArgs[0],B.args[1]);else if(A==="objid")return this._encodeObjid(q,null,null);else if(A==="gentime"||A==="utctime")return this._encodeTime(q,A);else if(A==="null_")return this._encodeNull();else if(A==="int"||A==="enum")return this._encodeInt(q,B.args&&B.reverseArgs[0]);else if(A==="bool")return this._encodeBool(q);else if(A==="objDesc")return this._encodeStr(q,A);else throw Error("Unsupported tag: "+A)},_.prototype._isNumstr=function(A){return/^[0-9 ]*$/.test(A)},_.prototype._isPrintstr=function(A){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(A)}}),U2=u0((J)=>{var I=J;I.Reporter=nf().Reporter,I.DecoderBuffer=eS().DecoderBuffer,I.EncoderBuffer=eS().EncoderBuffer,I.Node=df()}),of=u0((J)=>{var I=Mj();J.tagClass={0:"universal",1:"application",2:"context",3:"private"},J.tagClassByName=I._reverse(J.tagClass),J.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},J.tagByName=I._reverse(J.tag)}),Mj=u0((J)=>{var I=J;I._reverse=function(Y){var W={};return Object.keys(Y).forEach(function(X){if((X|0)==X)X=X|0;var K=Y[X];W[K]=X}),W},I.der=of()}),Aj=u0((J,I)=>{var Y=L1(),W=Y2(),X=W.base,K=W.bignum,Z=W.constants.der;function L(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new E,this.tree._init(A.body)}I.exports=L,L.prototype.decode=function(A,q){if(!(A instanceof X.DecoderBuffer))A=new X.DecoderBuffer(A,q);return this.tree._decode(A,q)};function E(A){X.Node.call(this,"der",A)}Y(E,X.Node),E.prototype._peekTag=function(A,q,B){if(A.isEmpty())return!1;var N=A.save(),f=_(A,'Failed to peek tag: "'+q+'"');if(A.isError(f))return f;return A.restore(N),f.tag===q||f.tagStr===q||f.tagStr+"of"===q||B},E.prototype._decodeTag=function(A,q,B){var N=_(A,'Failed to decode tag of "'+q+'"');if(A.isError(N))return N;var f=S(A,N.primitive,'Failed to get length of "'+q+'"');if(A.isError(f))return f;if(!B&&N.tag!==q&&N.tagStr!==q&&N.tagStr+"of"!==q)return A.error('Failed to match tag: "'+q+'"');if(N.primitive||f!==null)return A.skip(f,'Failed to match body of: "'+q+'"');var w=A.save(),u=this._skipUntilEnd(A,'Failed to skip indefinite length body: "'+this.tag+'"');if(A.isError(u))return u;return f=A.offset-w.offset,A.restore(w),A.skip(f,'Failed to match body of: "'+q+'"')},E.prototype._skipUntilEnd=function(A,q){while(!0){var B=_(A,q);if(A.isError(B))return B;var N=S(A,B.primitive,q);if(A.isError(N))return N;var f;if(B.primitive||N!==null)f=A.skip(N);else f=this._skipUntilEnd(A,q);if(A.isError(f))return f;if(B.tagStr==="end")break}},E.prototype._decodeList=function(A,q,B,N){var f=[];while(!A.isEmpty()){var w=this._peekTag(A,"end");if(A.isError(w))return w;var u=B.decode(A,"der",N);if(A.isError(u)&&w)break;f.push(u)}return f},E.prototype._decodeStr=function(A,q){if(q==="bitstr"){var B=A.readUInt8();if(A.isError(B))return B;return{unused:B,data:A.raw()}}else if(q==="bmpstr"){var N=A.raw();if(N.length%2===1)return A.error("Decoding of string type: bmpstr length mismatch");var f="";for(var w=0;w<N.length/2;w++)f+=String.fromCharCode(N.readUInt16BE(w*2));return f}else if(q==="numstr"){var u=A.raw().toString("ascii");if(!this._isNumstr(u))return A.error("Decoding of string type: numstr unsupported characters");return u}else if(q==="octstr")return A.raw();else if(q==="objDesc")return A.raw();else if(q==="printstr"){var g=A.raw().toString("ascii");if(!this._isPrintstr(g))return A.error("Decoding of string type: printstr unsupported characters");return g}else if(/str$/.test(q))return A.raw().toString();else return A.error("Decoding of string type: "+q+" unsupported")},E.prototype._decodeObjid=function(A,q,B){var N,f=[],w=0;while(!A.isEmpty()){var u=A.readUInt8();if(w<<=7,w|=u&127,(u&128)===0)f.push(w),w=0}if(u&128)f.push(w);var g=f[0]/40|0,b=f[0]%40;if(B)N=f;else N=[g,b].concat(f.slice(1));if(q){var p=q[N.join(" ")];if(p===void 0)p=q[N.join(".")];if(p!==void 0)N=p}return N},E.prototype._decodeTime=function(A,q){var B=A.raw().toString();if(q==="gentime")var N=B.slice(0,4)|0,f=B.slice(4,6)|0,w=B.slice(6,8)|0,u=B.slice(8,10)|0,g=B.slice(10,12)|0,b=B.slice(12,14)|0;else if(q==="utctime"){var N=B.slice(0,2)|0,f=B.slice(2,4)|0,w=B.slice(4,6)|0,u=B.slice(6,8)|0,g=B.slice(8,10)|0,b=B.slice(10,12)|0;if(N<70)N=2000+N;else N=1900+N}else return A.error("Decoding "+q+" time is not supported yet");return Date.UTC(N,f-1,w,u,g,b,0)},E.prototype._decodeNull=function(A){return null},E.prototype._decodeBool=function(A){var q=A.readUInt8();if(A.isError(q))return q;else return q!==0},E.prototype._decodeInt=function(A,q){var B=A.raw(),N=new K(B);if(q)N=q[N.toString(10)]||N;return N},E.prototype._use=function(A,q){if(typeof A==="function")A=A(q);return A._getDecoder("der").tree};function _(A,q){var B=A.readUInt8(q);if(A.isError(B))return B;var N=Z.tagClass[B>>6],f=(B&32)===0;if((B&31)===31){var w=B;B=0;while((w&128)===128){if(w=A.readUInt8(q),A.isError(w))return w;B<<=7,B|=w&127}}else B&=31;var u=Z.tag[B];return{cls:N,primitive:f,tag:B,tagStr:u}}function S(A,q,B){var N=A.readUInt8(B);if(A.isError(N))return N;if(!q&&N===128)return null;if((N&128)===0)return N;var f=N&127;if(f>4)return A.error("length octect is too long");N=0;for(var w=0;w<f;w++){N<<=8;var u=A.readUInt8(B);if(A.isError(u))return u;N|=u}return N}}),rf=u0((J,I)=>{var Y=L1(),W=(iU(),E$(oU)).Buffer,X=Aj();function K(Z){X.call(this,Z),this.enc="pem"}Y(K,X),I.exports=K,K.prototype.decode=function(Z,L){var E=Z.toString().split(/[\r\n]+/g),_=L.label.toUpperCase(),S=/^-----(BEGIN|END) ([^-]+)-----$/,A=-1,q=-1;for(var B=0;B<E.length;B++){var N=E[B].match(S);if(N===null)continue;if(N[2]!==_)continue;if(A===-1){if(N[1]!=="BEGIN")break;A=B}else{if(N[1]!=="END")break;q=B;break}}if(A===-1||q===-1)throw Error("PEM section not found for: "+_);var f=E.slice(A+1,q).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var w=new W(f,"base64");return X.prototype.decode.call(this,w,L)}}),tf=u0((J)=>{var I=J;I.der=Aj(),I.pem=rf()}),Cj=u0((J,I)=>{var Y=L1(),W=(iU(),E$(oU)).Buffer,X=Y2(),K=X.base,Z=X.constants.der;function L(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new E,this.tree._init(A.body)}I.exports=L,L.prototype.encode=function(A,q){return this.tree._encode(A,q).join()};function E(A){K.Node.call(this,"der",A)}Y(E,K.Node),E.prototype._encodeComposite=function(A,q,B,N){var f=S(A,q,B,this.reporter);if(N.length<128){var g=new W(2);return g[0]=f,g[1]=N.length,this._createEncoderBuffer([g,N])}var w=1;for(var u=N.length;u>=256;u>>=8)w++;var g=new W(2+w);g[0]=f,g[1]=128|w;for(var u=1+w,b=N.length;b>0;u--,b>>=8)g[u]=b&255;return this._createEncoderBuffer([g,N])},E.prototype._encodeStr=function(A,q){if(q==="bitstr")return this._createEncoderBuffer([A.unused|0,A.data]);else if(q==="bmpstr"){var B=new W(A.length*2);for(var N=0;N<A.length;N++)B.writeUInt16BE(A.charCodeAt(N),N*2);return this._createEncoderBuffer(B)}else if(q==="numstr"){if(!this._isNumstr(A))return this.reporter.error("Encoding of string type: numstr supports only digits and space");return this._createEncoderBuffer(A)}else if(q==="printstr"){if(!this._isPrintstr(A))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(A)}else if(/str$/.test(q))return this._createEncoderBuffer(A);else if(q==="objDesc")return this._createEncoderBuffer(A);else return this.reporter.error("Encoding of string type: "+q+" unsupported")},E.prototype._encodeObjid=function(A,q,B){if(typeof A==="string"){if(!q)return this.reporter.error("string objid given, but no values map found");if(!q.hasOwnProperty(A))return this.reporter.error("objid not found in values map");A=q[A].split(/[\s\.]+/g);for(var N=0;N<A.length;N++)A[N]|=0}else if(Array.isArray(A)){A=A.slice();for(var N=0;N<A.length;N++)A[N]|=0}if(!Array.isArray(A))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(A));if(!B){if(A[1]>=40)return this.reporter.error("Second objid identifier OOB");A.splice(0,2,A[0]*40+A[1])}var f=0;for(var N=0;N<A.length;N++){var w=A[N];for(f++;w>=128;w>>=7)f++}var u=new W(f),g=u.length-1;for(var N=A.length-1;N>=0;N--){var w=A[N];u[g--]=w&127;while((w>>=7)>0)u[g--]=128|w&127}return this._createEncoderBuffer(u)};function _(A){if(A<10)return"0"+A;else return A}E.prototype._encodeTime=function(A,q){var B,N=new Date(A);if(q==="gentime")B=[_(N.getFullYear()),_(N.getUTCMonth()+1),_(N.getUTCDate()),_(N.getUTCHours()),_(N.getUTCMinutes()),_(N.getUTCSeconds()),"Z"].join("");else if(q==="utctime")B=[_(N.getFullYear()%100),_(N.getUTCMonth()+1),_(N.getUTCDate()),_(N.getUTCHours()),_(N.getUTCMinutes()),_(N.getUTCSeconds()),"Z"].join("");else this.reporter.error("Encoding "+q+" time is not supported yet");return this._encodeStr(B,"octstr")},E.prototype._encodeNull=function(){return this._createEncoderBuffer("")},E.prototype._encodeInt=function(A,q){if(typeof A==="string"){if(!q)return this.reporter.error("String int or enum given, but no values map");if(!q.hasOwnProperty(A))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(A));A=q[A]}if(typeof A!=="number"&&!W.isBuffer(A)){var B=A.toArray();if(!A.sign&&B[0]&128)B.unshift(0);A=new W(B)}if(W.isBuffer(A)){var N=A.length;if(A.length===0)N++;var w=new W(N);if(A.copy(w),A.length===0)w[0]=0;return this._createEncoderBuffer(w)}if(A<128)return this._createEncoderBuffer(A);if(A<256)return this._createEncoderBuffer([0,A]);var N=1;for(var f=A;f>=256;f>>=8)N++;var w=Array(N);for(var f=w.length-1;f>=0;f--)w[f]=A&255,A>>=8;if(w[0]&128)w.unshift(0);return this._createEncoderBuffer(new W(w))},E.prototype._encodeBool=function(A){return this._createEncoderBuffer(A?255:0)},E.prototype._use=function(A,q){if(typeof A==="function")A=A(q);return A._getEncoder("der").tree},E.prototype._skipDefault=function(A,q,B){var N=this._baseState,f;if(N.default===null)return!1;var w=A.join();if(N.defaultBuffer===void 0)N.defaultBuffer=this._encodeValue(N.default,q,B).join();if(w.length!==N.defaultBuffer.length)return!1;for(f=0;f<w.length;f++)if(w[f]!==N.defaultBuffer[f])return!1;return!0};function S(A,q,B,N){var f;if(A==="seqof")A="seq";else if(A==="setof")A="set";if(Z.tagByName.hasOwnProperty(A))f=Z.tagByName[A];else if(typeof A==="number"&&(A|0)===A)f=A;else return N.error("Unknown tag: "+A);if(f>=31)return N.error("Multi-octet tag encoding unsupported");if(!q)f|=32;return f|=Z.tagClassByName[B||"universal"]<<6,f}}),af=u0((J,I)=>{var Y=L1(),W=Cj();function X(K){W.call(this,K),this.enc="pem"}Y(X,W),I.exports=X,X.prototype.encode=function(K,Z){var L=W.prototype.encode.call(this,K),E=L.toString("base64"),_=["-----BEGIN "+Z.label+"-----"];for(var S=0;S<E.length;S+=64)_.push(E.slice(S,S+64));return _.push("-----END "+Z.label+"-----"),_.join(`
|
|
243
|
+
`)}}),sf=u0((J)=>{var I=J;I.der=Cj(),I.pem=af()}),Y2=u0((J)=>{var I=J;I.bignum=mf(),I.define=lf().define,I.base=U2(),I.constants=Mj(),I.decoders=tf(),I.encoders=sf()}),ef=u0((J,I)=>{var Y=Y2(),W=Y.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),X=Y.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),K=Y.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),Z=Y.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(K),this.key("subjectPublicKey").bitstr())}),L=Y.define("RelativeDistinguishedName",function(){this.setof(X)}),E=Y.define("RDNSequence",function(){this.seqof(L)}),_=Y.define("Name",function(){this.choice({rdnSequence:this.use(E)})}),S=Y.define("Validity",function(){this.seq().obj(this.key("notBefore").use(W),this.key("notAfter").use(W))}),A=Y.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),q=Y.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(K),this.key("issuer").use(_),this.key("validity").use(S),this.key("subject").use(_),this.key("subjectPublicKeyInfo").use(Z),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(A).optional())}),B=Y.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(q),this.key("signatureAlgorithm").use(K),this.key("signatureValue").bitstr())});I.exports=B}),$y=u0((J)=>{var I=Y2();J.certificate=ef();var Y=I.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});J.RSAPrivateKey=Y;var W=I.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});J.RSAPublicKey=W;var X=I.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())}),K=I.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(X),this.key("subjectPublicKey").bitstr())});J.PublicKey=K;var Z=I.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(X),this.key("subjectPrivateKey").octstr())});J.PrivateKey=Z;var L=I.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});J.EncryptedPrivateKey=L;var E=I.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});J.DSAPrivateKey=E,J.DSAparam=I.define("DSAparam",function(){this.int()});var _=I.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),S=I.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(_),this.key("publicKey").optional().explicit(1).bitstr())});J.ECPrivateKey=S,J.signature=I.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),Uy=u0((J,I)=>{I.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"}}),Jy=u0((J,I)=>{var Y=y6().Buffer,W=NQ().Transform,X=L1();function K(_){W.call(this),this._block=Y.allocUnsafe(_),this._blockSize=_,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}X(K,W),K.prototype._transform=function(_,S,A){var q=null;try{this.update(_,S)}catch(B){q=B}A(q)},K.prototype._flush=function(_){var S=null;try{this.push(this.digest())}catch(A){S=A}_(S)};var Z=typeof Uint8Array<"u",L=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Y.prototype instanceof Uint8Array||Y.TYPED_ARRAY_SUPPORT);function E(_,S){if(_ instanceof Y)return _;if(typeof _==="string")return Y.from(_,S);if(L&&ArrayBuffer.isView(_)){if(_.byteLength===0)return Y.alloc(0);var A=Y.from(_.buffer,_.byteOffset,_.byteLength);if(A.byteLength===_.byteLength)return A}if(Z&&_ instanceof Uint8Array)return Y.from(_);if(Y.isBuffer(_)&&_.constructor&&typeof _.constructor.isBuffer==="function"&&_.constructor.isBuffer(_))return Y.from(_);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}K.prototype.update=function(_,S){if(this._finalized)throw Error("Digest already called");_=E(_,S);var A=this._block,q=0;while(this._blockOffset+_.length-q>=this._blockSize){for(var B=this._blockOffset;B<this._blockSize;)A[B++]=_[q++];this._update(),this._blockOffset=0}while(q<_.length)A[this._blockOffset++]=_[q++];for(var N=0,f=_.length*8;f>0;++N)if(this._length[N]+=f,f=this._length[N]/4294967296|0,f>0)this._length[N]-=4294967296*f;return this},K.prototype._update=function(){throw Error("_update is not implemented")},K.prototype.digest=function(_){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var S=this._digest();if(_!==void 0)S=S.toString(_);this._block.fill(0),this._blockOffset=0;for(var A=0;A<4;++A)this._length[A]=0;return S},K.prototype._digest=function(){throw Error("_digest is not implemented")},I.exports=K}),Xy=u0((J,I)=>{var Y=L1(),W=Jy(),X=y6().Buffer,K=Array(16);function Z(){W.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Y(Z,W),Z.prototype._update=function(){var q=K;for(var B=0;B<16;++B)q[B]=this._block.readInt32LE(B*4);var N=this._a,f=this._b,w=this._c,u=this._d;N=E(N,f,w,u,q[0],3614090360,7),u=E(u,N,f,w,q[1],3905402710,12),w=E(w,u,N,f,q[2],606105819,17),f=E(f,w,u,N,q[3],3250441966,22),N=E(N,f,w,u,q[4],4118548399,7),u=E(u,N,f,w,q[5],1200080426,12),w=E(w,u,N,f,q[6],2821735955,17),f=E(f,w,u,N,q[7],4249261313,22),N=E(N,f,w,u,q[8],1770035416,7),u=E(u,N,f,w,q[9],2336552879,12),w=E(w,u,N,f,q[10],4294925233,17),f=E(f,w,u,N,q[11],2304563134,22),N=E(N,f,w,u,q[12],1804603682,7),u=E(u,N,f,w,q[13],4254626195,12),w=E(w,u,N,f,q[14],2792965006,17),f=E(f,w,u,N,q[15],1236535329,22),N=_(N,f,w,u,q[1],4129170786,5),u=_(u,N,f,w,q[6],3225465664,9),w=_(w,u,N,f,q[11],643717713,14),f=_(f,w,u,N,q[0],3921069994,20),N=_(N,f,w,u,q[5],3593408605,5),u=_(u,N,f,w,q[10],38016083,9),w=_(w,u,N,f,q[15],3634488961,14),f=_(f,w,u,N,q[4],3889429448,20),N=_(N,f,w,u,q[9],568446438,5),u=_(u,N,f,w,q[14],3275163606,9),w=_(w,u,N,f,q[3],4107603335,14),f=_(f,w,u,N,q[8],1163531501,20),N=_(N,f,w,u,q[13],2850285829,5),u=_(u,N,f,w,q[2],4243563512,9),w=_(w,u,N,f,q[7],1735328473,14),f=_(f,w,u,N,q[12],2368359562,20),N=S(N,f,w,u,q[5],4294588738,4),u=S(u,N,f,w,q[8],2272392833,11),w=S(w,u,N,f,q[11],1839030562,16),f=S(f,w,u,N,q[14],4259657740,23),N=S(N,f,w,u,q[1],2763975236,4),u=S(u,N,f,w,q[4],1272893353,11),w=S(w,u,N,f,q[7],4139469664,16),f=S(f,w,u,N,q[10],3200236656,23),N=S(N,f,w,u,q[13],681279174,4),u=S(u,N,f,w,q[0],3936430074,11),w=S(w,u,N,f,q[3],3572445317,16),f=S(f,w,u,N,q[6],76029189,23),N=S(N,f,w,u,q[9],3654602809,4),u=S(u,N,f,w,q[12],3873151461,11),w=S(w,u,N,f,q[15],530742520,16),f=S(f,w,u,N,q[2],3299628645,23),N=A(N,f,w,u,q[0],4096336452,6),u=A(u,N,f,w,q[7],1126891415,10),w=A(w,u,N,f,q[14],2878612391,15),f=A(f,w,u,N,q[5],4237533241,21),N=A(N,f,w,u,q[12],1700485571,6),u=A(u,N,f,w,q[3],2399980690,10),w=A(w,u,N,f,q[10],4293915773,15),f=A(f,w,u,N,q[1],2240044497,21),N=A(N,f,w,u,q[8],1873313359,6),u=A(u,N,f,w,q[15],4264355552,10),w=A(w,u,N,f,q[6],2734768916,15),f=A(f,w,u,N,q[13],1309151649,21),N=A(N,f,w,u,q[4],4149444226,6),u=A(u,N,f,w,q[11],3174756917,10),w=A(w,u,N,f,q[2],718787259,15),f=A(f,w,u,N,q[9],3951481745,21),this._a=this._a+N|0,this._b=this._b+f|0,this._c=this._c+w|0,this._d=this._d+u|0},Z.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 q=X.allocUnsafe(16);return q.writeInt32LE(this._a,0),q.writeInt32LE(this._b,4),q.writeInt32LE(this._c,8),q.writeInt32LE(this._d,12),q};function L(q,B){return q<<B|q>>>32-B}function E(q,B,N,f,w,u,g){return L(q+(B&N|~B&f)+w+u|0,g)+B|0}function _(q,B,N,f,w,u,g){return L(q+(B&f|N&~f)+w+u|0,g)+B|0}function S(q,B,N,f,w,u,g){return L(q+(B^N^f)+w+u|0,g)+B|0}function A(q,B,N,f,w,u,g){return L(q+(N^(B|~f))+w+u|0,g)+B|0}I.exports=Z}),Iy=u0((J,I)=>{var Y=y6().Buffer,W=Xy();function X(K,Z,L,E){if(!Y.isBuffer(K))K=Y.from(K,"binary");if(Z){if(!Y.isBuffer(Z))Z=Y.from(Z,"binary");if(Z.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var _=L/8,S=Y.alloc(_),A=Y.alloc(E||0),q=Y.alloc(0);while(_>0||E>0){var B=new W;if(B.update(q),B.update(K),Z)B.update(Z);q=B.digest();var N=0;if(_>0){var f=S.length-_;N=Math.min(_,q.length),q.copy(S,f,0,N),_-=N}if(N<q.length&&E>0){var w=A.length-E,u=Math.min(E,q.length-N);q.copy(A,w,N,N+u),E-=u}}return q.fill(0),{key:S,iv:A}}I.exports=X}),Tj=u0((J)=>{var I=(bU(),E$(A1));J.createCipher=J.Cipher=I.createCipher,J.createCipheriv=J.Cipheriv=I.createCipheriv,J.createDecipher=J.Decipher=I.createDecipher,J.createDecipheriv=J.Decipheriv=I.createDecipheriv,J.listCiphers=J.getCiphers=I.getCiphers}),Qy=u0((J,I)=>{var Y=/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,W=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,X=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,K=Iy(),Z=Tj(),L=y6().Buffer;I.exports=function(E,_){var S=E.toString(),A=S.match(Y),q;if(!A){var B=S.match(X);q=L.from(B[2].replace(/[\r\n]/g,""),"base64")}else{var N="aes"+A[1],f=L.from(A[2],"hex"),w=L.from(A[3].replace(/[\r\n]/g,""),"base64"),u=K(_,f.slice(0,8),parseInt(A[1],10)).key,g=[],b=Z.createDecipheriv(N,u,f);g.push(b.update(w)),g.push(b.final()),q=L.concat(g)}var p=S.match(W)[1];return{tag:p,data:q}}}),Rj=u0((J,I)=>{var Y=$y(),W=Uy(),X=Qy(),K=Tj(),Z=Wj().pbkdf2Sync,L=y6().Buffer;function E(S,A){var q=S.algorithm.decrypt.kde.kdeparams.salt,B=parseInt(S.algorithm.decrypt.kde.kdeparams.iters.toString(),10),N=W[S.algorithm.decrypt.cipher.algo.join(".")],f=S.algorithm.decrypt.cipher.iv,w=S.subjectPrivateKey,u=parseInt(N.split("-")[1],10)/8,g=Z(A,q,B,u,"sha1"),b=K.createDecipheriv(N,g,f),p=[];return p.push(b.update(w)),p.push(b.final()),L.concat(p)}function _(S){var A;if(typeof S==="object"&&!L.isBuffer(S))A=S.passphrase,S=S.key;if(typeof S==="string")S=L.from(S);var q=X(S,A),B=q.tag,N=q.data,f,w;switch(B){case"CERTIFICATE":w=Y.certificate.decode(N,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!w)w=Y.PublicKey.decode(N,"der");switch(f=w.algorithm.algorithm.join("."),f){case"1.2.840.113549.1.1.1":return Y.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=Y.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw Error("unknown key id "+f)}case"ENCRYPTED PRIVATE KEY":N=Y.EncryptedPrivateKey.decode(N,"der"),N=E(N,A);case"PRIVATE KEY":switch(w=Y.PrivateKey.decode(N,"der"),f=w.algorithm.algorithm.join("."),f){case"1.2.840.113549.1.1.1":return Y.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:Y.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=Y.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw Error("unknown key id "+f)}case"RSA PUBLIC KEY":return Y.RSAPublicKey.decode(N,"der");case"RSA PRIVATE KEY":return Y.RSAPrivateKey.decode(N,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Y.DSAPrivateKey.decode(N,"der")};case"EC PRIVATE KEY":return N=Y.ECPrivateKey.decode(N,"der"),{curve:N.parameters.value,privateKey:N.privateKey};default:throw Error("unknown key type "+B)}}_.signature=Y.signature,I.exports=_}),Pj=u0((J,I)=>{var Y=P8(),W=y6().Buffer;I.exports=function(K,Z){var L=W.alloc(0),E=0,_;while(L.length<Z)_=X(E++),L=W.concat([L,Y("sha1").update(K).update(_).digest()]);return L.slice(0,Z)};function X(K){var Z=W.allocUnsafe(4);return Z.writeUInt32BE(K,0),Z}}),_j=u0((J,I)=>{I.exports=function(Y,W){var X=Y.length,K=-1;while(++K<X)Y[K]^=W[K];return Y}}),PH=u0((J,I)=>{(function(Y,W){function X(G,V){if(!G)throw Error(V||"Assertion failed")}function K(G,V){G.super_=V;var D=function(){};D.prototype=V.prototype,G.prototype=new D,G.prototype.constructor=G}function Z(G,V,D){if(Z.isBN(G))return G;if(this.negative=0,this.words=null,this.length=0,this.red=null,G!==null){if(V==="le"||V==="be")D=V,V=10;this._init(G||0,V||10,D||"be")}}if(typeof Y==="object")Y.exports=Z;else W.BN=Z;Z.BN=Z,Z.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(iU(),E$(oU)).Buffer}catch(G){}Z.isBN=function(G){if(G instanceof Z)return!0;return G!==null&&typeof G==="object"&&G.constructor.wordSize===Z.wordSize&&Array.isArray(G.words)},Z.max=function(G,V){if(G.cmp(V)>0)return G;return V},Z.min=function(G,V){if(G.cmp(V)<0)return G;return V},Z.prototype._init=function(G,V,D){if(typeof G==="number")return this._initNumber(G,V,D);if(typeof G==="object")return this._initArray(G,V,D);if(V==="hex")V=16;X(V===(V|0)&&V>=2&&V<=36),G=G.toString().replace(/\s+/g,"");var O=0;if(G[0]==="-")O++,this.negative=1;if(O<G.length){if(V===16)this._parseHex(G,O,D);else if(this._parseBase(G,V,O),D==="le")this._initArray(this.toArray(),V,D)}},Z.prototype._initNumber=function(G,V,D){if(G<0)this.negative=1,G=-G;if(G<67108864)this.words=[G&67108863],this.length=1;else if(G<4503599627370496)this.words=[G&67108863,G/67108864&67108863],this.length=2;else X(G<9007199254740992),this.words=[G&67108863,G/67108864&67108863,1],this.length=3;if(D!=="le")return;this._initArray(this.toArray(),V,D)},Z.prototype._initArray=function(G,V,D){if(X(typeof G.length==="number"),G.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(G.length/3),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F,R,j=0;if(D==="be"){for(O=G.length-1,F=0;O>=0;O-=3)if(R=G[O]|G[O-1]<<8|G[O-2]<<16,this.words[F]|=R<<j&67108863,this.words[F+1]=R>>>26-j&67108863,j+=24,j>=26)j-=26,F++}else if(D==="le"){for(O=0,F=0;O<G.length;O+=3)if(R=G[O]|G[O+1]<<8|G[O+2]<<16,this.words[F]|=R<<j&67108863,this.words[F+1]=R>>>26-j&67108863,j+=24,j>=26)j-=26,F++}return this.strip()};function E(G,V){var D=G.charCodeAt(V);if(D>=65&&D<=70)return D-55;else if(D>=97&&D<=102)return D-87;else return D-48&15}function _(G,V,D){var O=E(G,D);if(D-1>=V)O|=E(G,D-1)<<4;return O}Z.prototype._parseHex=function(G,V,D){this.length=Math.ceil((G.length-V)/6),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F=0,R=0,j;if(D==="be")for(O=G.length-1;O>=V;O-=2)if(j=_(G,V,O)<<F,this.words[R]|=j&67108863,F>=18)F-=18,R+=1,this.words[R]|=j>>>26;else F+=8;else{var C=G.length-V;for(O=C%2===0?V+1:V;O<G.length;O+=2)if(j=_(G,V,O)<<F,this.words[R]|=j&67108863,F>=18)F-=18,R+=1,this.words[R]|=j>>>26;else F+=8}this.strip()};function S(G,V,D,O){var F=0,R=Math.min(G.length,D);for(var j=V;j<R;j++){var C=G.charCodeAt(j)-48;if(F*=O,C>=49)F+=C-49+10;else if(C>=17)F+=C-17+10;else F+=C}return F}Z.prototype._parseBase=function(G,V,D){this.words=[0],this.length=1;for(var O=0,F=1;F<=67108863;F*=V)O++;O--,F=F/V|0;var R=G.length-D,j=R%O,C=Math.min(R,R-j)+D,z=0;for(var T=D;T<C;T+=O)if(z=S(G,T,T+O,V),this.imuln(F),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z);if(j!==0){var x=1;z=S(G,T,G.length,V);for(T=0;T<j;T++)x*=V;if(this.imuln(x),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z)}this.strip()},Z.prototype.copy=function(G){G.words=Array(this.length);for(var V=0;V<this.length;V++)G.words[V]=this.words[V];G.length=this.length,G.negative=this.negative,G.red=this.red},Z.prototype.clone=function(){var G=new Z(null);return this.copy(G),G},Z.prototype._expand=function(G){while(this.length<G)this.words[this.length++]=0;return this},Z.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Z.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Z.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"],q=[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],B=[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(Z.prototype.toString=function(G,V){G=G||10,V=V|0||1;var D;if(G===16||G==="hex"){D="";var O=0,F=0;for(var R=0;R<this.length;R++){var j=this.words[R],C=((j<<O|F)&16777215).toString(16);if(F=j>>>24-O&16777215,O+=2,O>=26)O-=26,R--;if(F!==0||R!==this.length-1)D=A[6-C.length]+C+D;else D=C+D}if(F!==0)D=F.toString(16)+D;while(D.length%V!==0)D="0"+D;if(this.negative!==0)D="-"+D;return D}if(G===(G|0)&&G>=2&&G<=36){var z=q[G],T=B[G];D="";var x=this.clone();x.negative=0;while(!x.isZero()){var v=x.modn(T).toString(G);if(x=x.idivn(T),!x.isZero())D=A[z-v.length]+v+D;else D=v+D}if(this.isZero())D="0"+D;while(D.length%V!==0)D="0"+D;if(this.negative!==0)D="-"+D;return D}X(!1,"Base should be between 2 and 36")},Z.prototype.toNumber=function(){var G=this.words[0];if(this.length===2)G+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)G+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-G:G},Z.prototype.toJSON=function(){return this.toString(16)},Z.prototype.toBuffer=function(G,V){return X(typeof L<"u"),this.toArrayLike(L,G,V)},Z.prototype.toArray=function(G,V){return this.toArrayLike(Array,G,V)},Z.prototype.toArrayLike=function(G,V,D){var O=this.byteLength(),F=D||Math.max(1,O);X(O<=F,"byte array longer than desired length"),X(F>0,"Requested array length <= 0"),this.strip();var R=V==="le",j=new G(F),C,z,T=this.clone();if(!R){for(z=0;z<F-O;z++)j[z]=0;for(z=0;!T.isZero();z++)C=T.andln(255),T.iushrn(8),j[F-z-1]=C}else{for(z=0;!T.isZero();z++)C=T.andln(255),T.iushrn(8),j[z]=C;for(;z<F;z++)j[z]=0}return j},Math.clz32)Z.prototype._countBits=function(G){return 32-Math.clz32(G)};else Z.prototype._countBits=function(G){var V=G,D=0;if(V>=4096)D+=13,V>>>=13;if(V>=64)D+=7,V>>>=7;if(V>=8)D+=4,V>>>=4;if(V>=2)D+=2,V>>>=2;return D+V};Z.prototype._zeroBits=function(G){if(G===0)return 26;var V=G,D=0;if((V&8191)===0)D+=13,V>>>=13;if((V&127)===0)D+=7,V>>>=7;if((V&15)===0)D+=4,V>>>=4;if((V&3)===0)D+=2,V>>>=2;if((V&1)===0)D++;return D},Z.prototype.bitLength=function(){var G=this.words[this.length-1],V=this._countBits(G);return(this.length-1)*26+V};function N(G){var V=Array(G.bitLength());for(var D=0;D<V.length;D++){var O=D/26|0,F=D%26;V[D]=(G.words[O]&1<<F)>>>F}return V}Z.prototype.zeroBits=function(){if(this.isZero())return 0;var G=0;for(var V=0;V<this.length;V++){var D=this._zeroBits(this.words[V]);if(G+=D,D!==26)break}return G},Z.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Z.prototype.toTwos=function(G){if(this.negative!==0)return this.abs().inotn(G).iaddn(1);return this.clone()},Z.prototype.fromTwos=function(G){if(this.testn(G-1))return this.notn(G).iaddn(1).ineg();return this.clone()},Z.prototype.isNeg=function(){return this.negative!==0},Z.prototype.neg=function(){return this.clone().ineg()},Z.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Z.prototype.iuor=function(G){while(this.length<G.length)this.words[this.length++]=0;for(var V=0;V<G.length;V++)this.words[V]=this.words[V]|G.words[V];return this.strip()},Z.prototype.ior=function(G){return X((this.negative|G.negative)===0),this.iuor(G)},Z.prototype.or=function(G){if(this.length>G.length)return this.clone().ior(G);return G.clone().ior(this)},Z.prototype.uor=function(G){if(this.length>G.length)return this.clone().iuor(G);return G.clone().iuor(this)},Z.prototype.iuand=function(G){var V;if(this.length>G.length)V=G;else V=this;for(var D=0;D<V.length;D++)this.words[D]=this.words[D]&G.words[D];return this.length=V.length,this.strip()},Z.prototype.iand=function(G){return X((this.negative|G.negative)===0),this.iuand(G)},Z.prototype.and=function(G){if(this.length>G.length)return this.clone().iand(G);return G.clone().iand(this)},Z.prototype.uand=function(G){if(this.length>G.length)return this.clone().iuand(G);return G.clone().iuand(this)},Z.prototype.iuxor=function(G){var V,D;if(this.length>G.length)V=this,D=G;else V=G,D=this;for(var O=0;O<D.length;O++)this.words[O]=V.words[O]^D.words[O];if(this!==V)for(;O<V.length;O++)this.words[O]=V.words[O];return this.length=V.length,this.strip()},Z.prototype.ixor=function(G){return X((this.negative|G.negative)===0),this.iuxor(G)},Z.prototype.xor=function(G){if(this.length>G.length)return this.clone().ixor(G);return G.clone().ixor(this)},Z.prototype.uxor=function(G){if(this.length>G.length)return this.clone().iuxor(G);return G.clone().iuxor(this)},Z.prototype.inotn=function(G){X(typeof G==="number"&&G>=0);var V=Math.ceil(G/26)|0,D=G%26;if(this._expand(V),D>0)V--;for(var O=0;O<V;O++)this.words[O]=~this.words[O]&67108863;if(D>0)this.words[O]=~this.words[O]&67108863>>26-D;return this.strip()},Z.prototype.notn=function(G){return this.clone().inotn(G)},Z.prototype.setn=function(G,V){X(typeof G==="number"&&G>=0);var D=G/26|0,O=G%26;if(this._expand(D+1),V)this.words[D]=this.words[D]|1<<O;else this.words[D]=this.words[D]&~(1<<O);return this.strip()},Z.prototype.iadd=function(G){var V;if(this.negative!==0&&G.negative===0)return this.negative=0,V=this.isub(G),this.negative^=1,this._normSign();else if(this.negative===0&&G.negative!==0)return G.negative=0,V=this.isub(G),G.negative=1,V._normSign();var D,O;if(this.length>G.length)D=this,O=G;else D=G,O=this;var F=0;for(var R=0;R<O.length;R++)V=(D.words[R]|0)+(O.words[R]|0)+F,this.words[R]=V&67108863,F=V>>>26;for(;F!==0&&R<D.length;R++)V=(D.words[R]|0)+F,this.words[R]=V&67108863,F=V>>>26;if(this.length=D.length,F!==0)this.words[this.length]=F,this.length++;else if(D!==this)for(;R<D.length;R++)this.words[R]=D.words[R];return this},Z.prototype.add=function(G){var V;if(G.negative!==0&&this.negative===0)return G.negative=0,V=this.sub(G),G.negative^=1,V;else if(G.negative===0&&this.negative!==0)return this.negative=0,V=G.sub(this),this.negative=1,V;if(this.length>G.length)return this.clone().iadd(G);return G.clone().iadd(this)},Z.prototype.isub=function(G){if(G.negative!==0){G.negative=0;var V=this.iadd(G);return G.negative=1,V._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(G),this.negative=1,this._normSign();var D=this.cmp(G);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,F;if(D>0)O=this,F=G;else O=G,F=this;var R=0;for(var j=0;j<F.length;j++)V=(O.words[j]|0)-(F.words[j]|0)+R,R=V>>26,this.words[j]=V&67108863;for(;R!==0&&j<O.length;j++)V=(O.words[j]|0)+R,R=V>>26,this.words[j]=V&67108863;if(R===0&&j<O.length&&O!==this)for(;j<O.length;j++)this.words[j]=O.words[j];if(this.length=Math.max(this.length,j),O!==this)this.negative=1;return this.strip()},Z.prototype.sub=function(G){return this.clone().isub(G)};function f(G,V,D){D.negative=V.negative^G.negative;var O=G.length+V.length|0;D.length=O,O=O-1|0;var F=G.words[0]|0,R=V.words[0]|0,j=F*R,C=j&67108863,z=j/67108864|0;D.words[0]=C;for(var T=1;T<O;T++){var x=z>>>26,v=z&67108863,h=Math.min(T,V.length-1);for(var r=Math.max(0,T-G.length+1);r<=h;r++){var U0=T-r|0;F=G.words[U0]|0,R=V.words[r]|0,j=F*R+v,x+=j/67108864|0,v=j&67108863}D.words[T]=v|0,z=x|0}if(z!==0)D.words[T]=z|0;else D.length--;return D.strip()}var w=function(G,V,D){var O=G.words,F=V.words,R=D.words,j=0,C,z,T,x=O[0]|0,v=x&8191,h=x>>>13,r=O[1]|0,U0=r&8191,K0=r>>>13,Q0=O[2]|0,s=Q0&8191,e=Q0>>>13,I0=O[3]|0,Z0=I0&8191,C0=I0>>>13,$0=O[4]|0,c=$0&8191,d=$0>>>13,L0=O[5]|0,Y0=L0&8191,V0=L0>>>13,k0=O[6]|0,J0=k0&8191,O0=k0>>>13,J$=O[7]|0,A0=J$&8191,v0=J$>>>13,M$=O[8]|0,m0=M$&8191,p0=M$>>>13,r$=O[9]|0,h0=r$&8191,c0=r$>>>13,YU=F[0]|0,t0=YU&8191,i0=YU>>>13,PU=F[1]|0,m=PU&8191,X0=PU>>>13,e0=F[2]|0,E0=e0&8191,N0=e0>>>13,D$=F[3]|0,x0=D$&8191,y0=D$>>>13,V$=F[4]|0,o0=V$&8191,r0=V$>>>13,OU=F[5]|0,s0=OU&8191,i=OU>>>13,G0=F[6]|0,q0=G0&8191,j0=G0>>>13,K$=F[7]|0,d0=K$&8191,a0=K$>>>13,LU=F[8]|0,X$=LU&8191,U$=LU>>>13,$U=F[9]|0,I$=$U&8191,$$=$U>>>13;D.negative=G.negative^V.negative,D.length=19,C=Math.imul(v,t0),z=Math.imul(v,i0),z=z+Math.imul(h,t0)|0,T=Math.imul(h,i0);var _U=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(_U>>>26)|0,_U&=67108863,C=Math.imul(U0,t0),z=Math.imul(U0,i0),z=z+Math.imul(K0,t0)|0,T=Math.imul(K0,i0),C=C+Math.imul(v,m)|0,z=z+Math.imul(v,X0)|0,z=z+Math.imul(h,m)|0,T=T+Math.imul(h,X0)|0;var B$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(B$>>>26)|0,B$&=67108863,C=Math.imul(s,t0),z=Math.imul(s,i0),z=z+Math.imul(e,t0)|0,T=Math.imul(e,i0),C=C+Math.imul(U0,m)|0,z=z+Math.imul(U0,X0)|0,z=z+Math.imul(K0,m)|0,T=T+Math.imul(K0,X0)|0,C=C+Math.imul(v,E0)|0,z=z+Math.imul(v,N0)|0,z=z+Math.imul(h,E0)|0,T=T+Math.imul(h,N0)|0;var j$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(j$>>>26)|0,j$&=67108863,C=Math.imul(Z0,t0),z=Math.imul(Z0,i0),z=z+Math.imul(C0,t0)|0,T=Math.imul(C0,i0),C=C+Math.imul(s,m)|0,z=z+Math.imul(s,X0)|0,z=z+Math.imul(e,m)|0,T=T+Math.imul(e,X0)|0,C=C+Math.imul(U0,E0)|0,z=z+Math.imul(U0,N0)|0,z=z+Math.imul(K0,E0)|0,T=T+Math.imul(K0,N0)|0,C=C+Math.imul(v,x0)|0,z=z+Math.imul(v,y0)|0,z=z+Math.imul(h,x0)|0,T=T+Math.imul(h,y0)|0;var UU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(UU>>>26)|0,UU&=67108863,C=Math.imul(c,t0),z=Math.imul(c,i0),z=z+Math.imul(d,t0)|0,T=Math.imul(d,i0),C=C+Math.imul(Z0,m)|0,z=z+Math.imul(Z0,X0)|0,z=z+Math.imul(C0,m)|0,T=T+Math.imul(C0,X0)|0,C=C+Math.imul(s,E0)|0,z=z+Math.imul(s,N0)|0,z=z+Math.imul(e,E0)|0,T=T+Math.imul(e,N0)|0,C=C+Math.imul(U0,x0)|0,z=z+Math.imul(U0,y0)|0,z=z+Math.imul(K0,x0)|0,T=T+Math.imul(K0,y0)|0,C=C+Math.imul(v,o0)|0,z=z+Math.imul(v,r0)|0,z=z+Math.imul(h,o0)|0,T=T+Math.imul(h,r0)|0;var n$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(n$>>>26)|0,n$&=67108863,C=Math.imul(Y0,t0),z=Math.imul(Y0,i0),z=z+Math.imul(V0,t0)|0,T=Math.imul(V0,i0),C=C+Math.imul(c,m)|0,z=z+Math.imul(c,X0)|0,z=z+Math.imul(d,m)|0,T=T+Math.imul(d,X0)|0,C=C+Math.imul(Z0,E0)|0,z=z+Math.imul(Z0,N0)|0,z=z+Math.imul(C0,E0)|0,T=T+Math.imul(C0,N0)|0,C=C+Math.imul(s,x0)|0,z=z+Math.imul(s,y0)|0,z=z+Math.imul(e,x0)|0,T=T+Math.imul(e,y0)|0,C=C+Math.imul(U0,o0)|0,z=z+Math.imul(U0,r0)|0,z=z+Math.imul(K0,o0)|0,T=T+Math.imul(K0,r0)|0,C=C+Math.imul(v,s0)|0,z=z+Math.imul(v,i)|0,z=z+Math.imul(h,s0)|0,T=T+Math.imul(h,i)|0;var uU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(uU>>>26)|0,uU&=67108863,C=Math.imul(J0,t0),z=Math.imul(J0,i0),z=z+Math.imul(O0,t0)|0,T=Math.imul(O0,i0),C=C+Math.imul(Y0,m)|0,z=z+Math.imul(Y0,X0)|0,z=z+Math.imul(V0,m)|0,T=T+Math.imul(V0,X0)|0,C=C+Math.imul(c,E0)|0,z=z+Math.imul(c,N0)|0,z=z+Math.imul(d,E0)|0,T=T+Math.imul(d,N0)|0,C=C+Math.imul(Z0,x0)|0,z=z+Math.imul(Z0,y0)|0,z=z+Math.imul(C0,x0)|0,T=T+Math.imul(C0,y0)|0,C=C+Math.imul(s,o0)|0,z=z+Math.imul(s,r0)|0,z=z+Math.imul(e,o0)|0,T=T+Math.imul(e,r0)|0,C=C+Math.imul(U0,s0)|0,z=z+Math.imul(U0,i)|0,z=z+Math.imul(K0,s0)|0,T=T+Math.imul(K0,i)|0,C=C+Math.imul(v,q0)|0,z=z+Math.imul(v,j0)|0,z=z+Math.imul(h,q0)|0,T=T+Math.imul(h,j0)|0;var hU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(hU>>>26)|0,hU&=67108863,C=Math.imul(A0,t0),z=Math.imul(A0,i0),z=z+Math.imul(v0,t0)|0,T=Math.imul(v0,i0),C=C+Math.imul(J0,m)|0,z=z+Math.imul(J0,X0)|0,z=z+Math.imul(O0,m)|0,T=T+Math.imul(O0,X0)|0,C=C+Math.imul(Y0,E0)|0,z=z+Math.imul(Y0,N0)|0,z=z+Math.imul(V0,E0)|0,T=T+Math.imul(V0,N0)|0,C=C+Math.imul(c,x0)|0,z=z+Math.imul(c,y0)|0,z=z+Math.imul(d,x0)|0,T=T+Math.imul(d,y0)|0,C=C+Math.imul(Z0,o0)|0,z=z+Math.imul(Z0,r0)|0,z=z+Math.imul(C0,o0)|0,T=T+Math.imul(C0,r0)|0,C=C+Math.imul(s,s0)|0,z=z+Math.imul(s,i)|0,z=z+Math.imul(e,s0)|0,T=T+Math.imul(e,i)|0,C=C+Math.imul(U0,q0)|0,z=z+Math.imul(U0,j0)|0,z=z+Math.imul(K0,q0)|0,T=T+Math.imul(K0,j0)|0,C=C+Math.imul(v,d0)|0,z=z+Math.imul(v,a0)|0,z=z+Math.imul(h,d0)|0,T=T+Math.imul(h,a0)|0;var cU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(cU>>>26)|0,cU&=67108863,C=Math.imul(m0,t0),z=Math.imul(m0,i0),z=z+Math.imul(p0,t0)|0,T=Math.imul(p0,i0),C=C+Math.imul(A0,m)|0,z=z+Math.imul(A0,X0)|0,z=z+Math.imul(v0,m)|0,T=T+Math.imul(v0,X0)|0,C=C+Math.imul(J0,E0)|0,z=z+Math.imul(J0,N0)|0,z=z+Math.imul(O0,E0)|0,T=T+Math.imul(O0,N0)|0,C=C+Math.imul(Y0,x0)|0,z=z+Math.imul(Y0,y0)|0,z=z+Math.imul(V0,x0)|0,T=T+Math.imul(V0,y0)|0,C=C+Math.imul(c,o0)|0,z=z+Math.imul(c,r0)|0,z=z+Math.imul(d,o0)|0,T=T+Math.imul(d,r0)|0,C=C+Math.imul(Z0,s0)|0,z=z+Math.imul(Z0,i)|0,z=z+Math.imul(C0,s0)|0,T=T+Math.imul(C0,i)|0,C=C+Math.imul(s,q0)|0,z=z+Math.imul(s,j0)|0,z=z+Math.imul(e,q0)|0,T=T+Math.imul(e,j0)|0,C=C+Math.imul(U0,d0)|0,z=z+Math.imul(U0,a0)|0,z=z+Math.imul(K0,d0)|0,T=T+Math.imul(K0,a0)|0,C=C+Math.imul(v,X$)|0,z=z+Math.imul(v,U$)|0,z=z+Math.imul(h,X$)|0,T=T+Math.imul(h,U$)|0;var pU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(pU>>>26)|0,pU&=67108863,C=Math.imul(h0,t0),z=Math.imul(h0,i0),z=z+Math.imul(c0,t0)|0,T=Math.imul(c0,i0),C=C+Math.imul(m0,m)|0,z=z+Math.imul(m0,X0)|0,z=z+Math.imul(p0,m)|0,T=T+Math.imul(p0,X0)|0,C=C+Math.imul(A0,E0)|0,z=z+Math.imul(A0,N0)|0,z=z+Math.imul(v0,E0)|0,T=T+Math.imul(v0,N0)|0,C=C+Math.imul(J0,x0)|0,z=z+Math.imul(J0,y0)|0,z=z+Math.imul(O0,x0)|0,T=T+Math.imul(O0,y0)|0,C=C+Math.imul(Y0,o0)|0,z=z+Math.imul(Y0,r0)|0,z=z+Math.imul(V0,o0)|0,T=T+Math.imul(V0,r0)|0,C=C+Math.imul(c,s0)|0,z=z+Math.imul(c,i)|0,z=z+Math.imul(d,s0)|0,T=T+Math.imul(d,i)|0,C=C+Math.imul(Z0,q0)|0,z=z+Math.imul(Z0,j0)|0,z=z+Math.imul(C0,q0)|0,T=T+Math.imul(C0,j0)|0,C=C+Math.imul(s,d0)|0,z=z+Math.imul(s,a0)|0,z=z+Math.imul(e,d0)|0,T=T+Math.imul(e,a0)|0,C=C+Math.imul(U0,X$)|0,z=z+Math.imul(U0,U$)|0,z=z+Math.imul(K0,X$)|0,T=T+Math.imul(K0,U$)|0,C=C+Math.imul(v,I$)|0,z=z+Math.imul(v,$$)|0,z=z+Math.imul(h,I$)|0,T=T+Math.imul(h,$$)|0;var mU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(mU>>>26)|0,mU&=67108863,C=Math.imul(h0,m),z=Math.imul(h0,X0),z=z+Math.imul(c0,m)|0,T=Math.imul(c0,X0),C=C+Math.imul(m0,E0)|0,z=z+Math.imul(m0,N0)|0,z=z+Math.imul(p0,E0)|0,T=T+Math.imul(p0,N0)|0,C=C+Math.imul(A0,x0)|0,z=z+Math.imul(A0,y0)|0,z=z+Math.imul(v0,x0)|0,T=T+Math.imul(v0,y0)|0,C=C+Math.imul(J0,o0)|0,z=z+Math.imul(J0,r0)|0,z=z+Math.imul(O0,o0)|0,T=T+Math.imul(O0,r0)|0,C=C+Math.imul(Y0,s0)|0,z=z+Math.imul(Y0,i)|0,z=z+Math.imul(V0,s0)|0,T=T+Math.imul(V0,i)|0,C=C+Math.imul(c,q0)|0,z=z+Math.imul(c,j0)|0,z=z+Math.imul(d,q0)|0,T=T+Math.imul(d,j0)|0,C=C+Math.imul(Z0,d0)|0,z=z+Math.imul(Z0,a0)|0,z=z+Math.imul(C0,d0)|0,T=T+Math.imul(C0,a0)|0,C=C+Math.imul(s,X$)|0,z=z+Math.imul(s,U$)|0,z=z+Math.imul(e,X$)|0,T=T+Math.imul(e,U$)|0,C=C+Math.imul(U0,I$)|0,z=z+Math.imul(U0,$$)|0,z=z+Math.imul(K0,I$)|0,T=T+Math.imul(K0,$$)|0;var t$=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(t$>>>26)|0,t$&=67108863,C=Math.imul(h0,E0),z=Math.imul(h0,N0),z=z+Math.imul(c0,E0)|0,T=Math.imul(c0,N0),C=C+Math.imul(m0,x0)|0,z=z+Math.imul(m0,y0)|0,z=z+Math.imul(p0,x0)|0,T=T+Math.imul(p0,y0)|0,C=C+Math.imul(A0,o0)|0,z=z+Math.imul(A0,r0)|0,z=z+Math.imul(v0,o0)|0,T=T+Math.imul(v0,r0)|0,C=C+Math.imul(J0,s0)|0,z=z+Math.imul(J0,i)|0,z=z+Math.imul(O0,s0)|0,T=T+Math.imul(O0,i)|0,C=C+Math.imul(Y0,q0)|0,z=z+Math.imul(Y0,j0)|0,z=z+Math.imul(V0,q0)|0,T=T+Math.imul(V0,j0)|0,C=C+Math.imul(c,d0)|0,z=z+Math.imul(c,a0)|0,z=z+Math.imul(d,d0)|0,T=T+Math.imul(d,a0)|0,C=C+Math.imul(Z0,X$)|0,z=z+Math.imul(Z0,U$)|0,z=z+Math.imul(C0,X$)|0,T=T+Math.imul(C0,U$)|0,C=C+Math.imul(s,I$)|0,z=z+Math.imul(s,$$)|0,z=z+Math.imul(e,I$)|0,T=T+Math.imul(e,$$)|0;var MU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(MU>>>26)|0,MU&=67108863,C=Math.imul(h0,x0),z=Math.imul(h0,y0),z=z+Math.imul(c0,x0)|0,T=Math.imul(c0,y0),C=C+Math.imul(m0,o0)|0,z=z+Math.imul(m0,r0)|0,z=z+Math.imul(p0,o0)|0,T=T+Math.imul(p0,r0)|0,C=C+Math.imul(A0,s0)|0,z=z+Math.imul(A0,i)|0,z=z+Math.imul(v0,s0)|0,T=T+Math.imul(v0,i)|0,C=C+Math.imul(J0,q0)|0,z=z+Math.imul(J0,j0)|0,z=z+Math.imul(O0,q0)|0,T=T+Math.imul(O0,j0)|0,C=C+Math.imul(Y0,d0)|0,z=z+Math.imul(Y0,a0)|0,z=z+Math.imul(V0,d0)|0,T=T+Math.imul(V0,a0)|0,C=C+Math.imul(c,X$)|0,z=z+Math.imul(c,U$)|0,z=z+Math.imul(d,X$)|0,T=T+Math.imul(d,U$)|0,C=C+Math.imul(Z0,I$)|0,z=z+Math.imul(Z0,$$)|0,z=z+Math.imul(C0,I$)|0,T=T+Math.imul(C0,$$)|0;var VU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(VU>>>26)|0,VU&=67108863,C=Math.imul(h0,o0),z=Math.imul(h0,r0),z=z+Math.imul(c0,o0)|0,T=Math.imul(c0,r0),C=C+Math.imul(m0,s0)|0,z=z+Math.imul(m0,i)|0,z=z+Math.imul(p0,s0)|0,T=T+Math.imul(p0,i)|0,C=C+Math.imul(A0,q0)|0,z=z+Math.imul(A0,j0)|0,z=z+Math.imul(v0,q0)|0,T=T+Math.imul(v0,j0)|0,C=C+Math.imul(J0,d0)|0,z=z+Math.imul(J0,a0)|0,z=z+Math.imul(O0,d0)|0,T=T+Math.imul(O0,a0)|0,C=C+Math.imul(Y0,X$)|0,z=z+Math.imul(Y0,U$)|0,z=z+Math.imul(V0,X$)|0,T=T+Math.imul(V0,U$)|0,C=C+Math.imul(c,I$)|0,z=z+Math.imul(c,$$)|0,z=z+Math.imul(d,I$)|0,T=T+Math.imul(d,$$)|0;var lU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(lU>>>26)|0,lU&=67108863,C=Math.imul(h0,s0),z=Math.imul(h0,i),z=z+Math.imul(c0,s0)|0,T=Math.imul(c0,i),C=C+Math.imul(m0,q0)|0,z=z+Math.imul(m0,j0)|0,z=z+Math.imul(p0,q0)|0,T=T+Math.imul(p0,j0)|0,C=C+Math.imul(A0,d0)|0,z=z+Math.imul(A0,a0)|0,z=z+Math.imul(v0,d0)|0,T=T+Math.imul(v0,a0)|0,C=C+Math.imul(J0,X$)|0,z=z+Math.imul(J0,U$)|0,z=z+Math.imul(O0,X$)|0,T=T+Math.imul(O0,U$)|0,C=C+Math.imul(Y0,I$)|0,z=z+Math.imul(Y0,$$)|0,z=z+Math.imul(V0,I$)|0,T=T+Math.imul(V0,$$)|0;var qU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(qU>>>26)|0,qU&=67108863,C=Math.imul(h0,q0),z=Math.imul(h0,j0),z=z+Math.imul(c0,q0)|0,T=Math.imul(c0,j0),C=C+Math.imul(m0,d0)|0,z=z+Math.imul(m0,a0)|0,z=z+Math.imul(p0,d0)|0,T=T+Math.imul(p0,a0)|0,C=C+Math.imul(A0,X$)|0,z=z+Math.imul(A0,U$)|0,z=z+Math.imul(v0,X$)|0,T=T+Math.imul(v0,U$)|0,C=C+Math.imul(J0,I$)|0,z=z+Math.imul(J0,$$)|0,z=z+Math.imul(O0,I$)|0,T=T+Math.imul(O0,$$)|0;var NU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(NU>>>26)|0,NU&=67108863,C=Math.imul(h0,d0),z=Math.imul(h0,a0),z=z+Math.imul(c0,d0)|0,T=Math.imul(c0,a0),C=C+Math.imul(m0,X$)|0,z=z+Math.imul(m0,U$)|0,z=z+Math.imul(p0,X$)|0,T=T+Math.imul(p0,U$)|0,C=C+Math.imul(A0,I$)|0,z=z+Math.imul(A0,$$)|0,z=z+Math.imul(v0,I$)|0,T=T+Math.imul(v0,$$)|0;var xU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(xU>>>26)|0,xU&=67108863,C=Math.imul(h0,X$),z=Math.imul(h0,U$),z=z+Math.imul(c0,X$)|0,T=Math.imul(c0,U$),C=C+Math.imul(m0,I$)|0,z=z+Math.imul(m0,$$)|0,z=z+Math.imul(p0,I$)|0,T=T+Math.imul(p0,$$)|0;var SU=(j+C|0)+((z&8191)<<13)|0;j=(T+(z>>>13)|0)+(SU>>>26)|0,SU&=67108863,C=Math.imul(h0,I$),z=Math.imul(h0,$$),z=z+Math.imul(c0,I$)|0,T=Math.imul(c0,$$);var AU=(j+C|0)+((z&8191)<<13)|0;if(j=(T+(z>>>13)|0)+(AU>>>26)|0,AU&=67108863,R[0]=_U,R[1]=B$,R[2]=j$,R[3]=UU,R[4]=n$,R[5]=uU,R[6]=hU,R[7]=cU,R[8]=pU,R[9]=mU,R[10]=t$,R[11]=MU,R[12]=VU,R[13]=lU,R[14]=qU,R[15]=NU,R[16]=xU,R[17]=SU,R[18]=AU,j!==0)R[19]=j,D.length++;return D};if(!Math.imul)w=f;function u(G,V,D){D.negative=V.negative^G.negative,D.length=G.length+V.length;var O=0,F=0;for(var R=0;R<D.length-1;R++){var j=F;F=0;var C=O&67108863,z=Math.min(R,V.length-1);for(var T=Math.max(0,R-G.length+1);T<=z;T++){var x=R-T,v=G.words[x]|0,h=V.words[T]|0,r=v*h,U0=r&67108863;j=j+(r/67108864|0)|0,U0=U0+C|0,C=U0&67108863,j=j+(U0>>>26)|0,F+=j>>>26,j&=67108863}D.words[R]=C,O=j,j=F}if(O!==0)D.words[R]=O;else D.length--;return D.strip()}function g(G,V,D){var O=new b;return O.mulp(G,V,D)}Z.prototype.mulTo=function(G,V){var D,O=this.length+G.length;if(this.length===10&&G.length===10)D=w(this,G,V);else if(O<63)D=f(this,G,V);else if(O<1024)D=u(this,G,V);else D=g(this,G,V);return D};function b(G,V){this.x=G,this.y=V}b.prototype.makeRBT=function(G){var V=Array(G),D=Z.prototype._countBits(G)-1;for(var O=0;O<G;O++)V[O]=this.revBin(O,D,G);return V},b.prototype.revBin=function(G,V,D){if(G===0||G===D-1)return G;var O=0;for(var F=0;F<V;F++)O|=(G&1)<<V-F-1,G>>=1;return O},b.prototype.permute=function(G,V,D,O,F,R){for(var j=0;j<R;j++)O[j]=V[G[j]],F[j]=D[G[j]]},b.prototype.transform=function(G,V,D,O,F,R){this.permute(R,G,V,D,O,F);for(var j=1;j<F;j<<=1){var C=j<<1,z=Math.cos(2*Math.PI/C),T=Math.sin(2*Math.PI/C);for(var x=0;x<F;x+=C){var v=z,h=T;for(var r=0;r<j;r++){var U0=D[x+r],K0=O[x+r],Q0=D[x+r+j],s=O[x+r+j],e=v*Q0-h*s;if(s=v*s+h*Q0,Q0=e,D[x+r]=U0+Q0,O[x+r]=K0+s,D[x+r+j]=U0-Q0,O[x+r+j]=K0-s,r!==C)e=z*v-T*h,h=z*h+T*v,v=e}}}},b.prototype.guessLen13b=function(G,V){var D=Math.max(V,G)|1,O=D&1,F=0;for(D=D/2|0;D;D=D>>>1)F++;return 1<<F+1+O},b.prototype.conjugate=function(G,V,D){if(D<=1)return;for(var O=0;O<D/2;O++){var F=G[O];G[O]=G[D-O-1],G[D-O-1]=F,F=V[O],V[O]=-V[D-O-1],V[D-O-1]=-F}},b.prototype.normalize13b=function(G,V){var D=0;for(var O=0;O<V/2;O++){var F=Math.round(G[2*O+1]/V)*8192+Math.round(G[2*O]/V)+D;if(G[O]=F&67108863,F<67108864)D=0;else D=F/67108864|0}return G},b.prototype.convert13b=function(G,V,D,O){var F=0;for(var R=0;R<V;R++)F=F+(G[R]|0),D[2*R]=F&8191,F=F>>>13,D[2*R+1]=F&8191,F=F>>>13;for(R=2*V;R<O;++R)D[R]=0;X(F===0),X((F&-8192)===0)},b.prototype.stub=function(G){var V=Array(G);for(var D=0;D<G;D++)V[D]=0;return V},b.prototype.mulp=function(G,V,D){var O=2*this.guessLen13b(G.length,V.length),F=this.makeRBT(O),R=this.stub(O),j=Array(O),C=Array(O),z=Array(O),T=Array(O),x=Array(O),v=Array(O),h=D.words;h.length=O,this.convert13b(G.words,G.length,j,O),this.convert13b(V.words,V.length,T,O),this.transform(j,R,C,z,O,F),this.transform(T,R,x,v,O,F);for(var r=0;r<O;r++){var U0=C[r]*x[r]-z[r]*v[r];z[r]=C[r]*v[r]+z[r]*x[r],C[r]=U0}return this.conjugate(C,z,O),this.transform(C,z,h,R,O,F),this.conjugate(h,R,O),this.normalize13b(h,O),D.negative=G.negative^V.negative,D.length=G.length+V.length,D.strip()},Z.prototype.mul=function(G){var V=new Z(null);return V.words=Array(this.length+G.length),this.mulTo(G,V)},Z.prototype.mulf=function(G){var V=new Z(null);return V.words=Array(this.length+G.length),g(this,G,V)},Z.prototype.imul=function(G){return this.clone().mulTo(G,this)},Z.prototype.imuln=function(G){X(typeof G==="number"),X(G<67108864);var V=0;for(var D=0;D<this.length;D++){var O=(this.words[D]|0)*G,F=(O&67108863)+(V&67108863);V>>=26,V+=O/67108864|0,V+=F>>>26,this.words[D]=F&67108863}if(V!==0)this.words[D]=V,this.length++;return this.length=G===0?1:this.length,this},Z.prototype.muln=function(G){return this.clone().imuln(G)},Z.prototype.sqr=function(){return this.mul(this)},Z.prototype.isqr=function(){return this.imul(this.clone())},Z.prototype.pow=function(G){var V=N(G);if(V.length===0)return new Z(1);var D=this;for(var O=0;O<V.length;O++,D=D.sqr())if(V[O]!==0)break;if(++O<V.length)for(var F=D.sqr();O<V.length;O++,F=F.sqr()){if(V[O]===0)continue;D=D.mul(F)}return D},Z.prototype.iushln=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26,O=67108863>>>26-V<<26-V,F;if(V!==0){var R=0;for(F=0;F<this.length;F++){var j=this.words[F]&O,C=(this.words[F]|0)-j<<V;this.words[F]=C|R,R=j>>>26-V}if(R)this.words[F]=R,this.length++}if(D!==0){for(F=this.length-1;F>=0;F--)this.words[F+D]=this.words[F];for(F=0;F<D;F++)this.words[F]=0;this.length+=D}return this.strip()},Z.prototype.ishln=function(G){return X(this.negative===0),this.iushln(G)},Z.prototype.iushrn=function(G,V,D){X(typeof G==="number"&&G>=0);var O;if(V)O=(V-V%26)/26;else O=0;var F=G%26,R=Math.min((G-F)/26,this.length),j=67108863^67108863>>>F<<F,C=D;if(O-=R,O=Math.max(0,O),C){for(var z=0;z<R;z++)C.words[z]=this.words[z];C.length=R}if(R===0);else if(this.length>R){this.length-=R;for(z=0;z<this.length;z++)this.words[z]=this.words[z+R]}else this.words[0]=0,this.length=1;var T=0;for(z=this.length-1;z>=0&&(T!==0||z>=O);z--){var x=this.words[z]|0;this.words[z]=T<<26-F|x>>>F,T=x&j}if(C&&T!==0)C.words[C.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Z.prototype.ishrn=function(G,V,D){return X(this.negative===0),this.iushrn(G,V,D)},Z.prototype.shln=function(G){return this.clone().ishln(G)},Z.prototype.ushln=function(G){return this.clone().iushln(G)},Z.prototype.shrn=function(G){return this.clone().ishrn(G)},Z.prototype.ushrn=function(G){return this.clone().iushrn(G)},Z.prototype.testn=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26,O=1<<V;if(this.length<=D)return!1;var F=this.words[D];return!!(F&O)},Z.prototype.imaskn=function(G){X(typeof G==="number"&&G>=0);var V=G%26,D=(G-V)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(V!==0)D++;if(this.length=Math.min(D,this.length),V!==0){var O=67108863^67108863>>>V<<V;this.words[this.length-1]&=O}return this.strip()},Z.prototype.maskn=function(G){return this.clone().imaskn(G)},Z.prototype.iaddn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.isubn(-G);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<G)return this.words[0]=G-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(G),this.negative=1,this}return this._iaddn(G)},Z.prototype._iaddn=function(G){this.words[0]+=G;for(var V=0;V<this.length&&this.words[V]>=67108864;V++)if(this.words[V]-=67108864,V===this.length-1)this.words[V+1]=1;else this.words[V+1]++;return this.length=Math.max(this.length,V+1),this},Z.prototype.isubn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.iaddn(-G);if(this.negative!==0)return this.negative=0,this.iaddn(G),this.negative=1,this;if(this.words[0]-=G,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var V=0;V<this.length&&this.words[V]<0;V++)this.words[V]+=67108864,this.words[V+1]-=1;return this.strip()},Z.prototype.addn=function(G){return this.clone().iaddn(G)},Z.prototype.subn=function(G){return this.clone().isubn(G)},Z.prototype.iabs=function(){return this.negative=0,this},Z.prototype.abs=function(){return this.clone().iabs()},Z.prototype._ishlnsubmul=function(G,V,D){var O=G.length+D,F;this._expand(O);var R,j=0;for(F=0;F<G.length;F++){R=(this.words[F+D]|0)+j;var C=(G.words[F]|0)*V;R-=C&67108863,j=(R>>26)-(C/67108864|0),this.words[F+D]=R&67108863}for(;F<this.length-D;F++)R=(this.words[F+D]|0)+j,j=R>>26,this.words[F+D]=R&67108863;if(j===0)return this.strip();X(j===-1),j=0;for(F=0;F<this.length;F++)R=-(this.words[F]|0)+j,j=R>>26,this.words[F]=R&67108863;return this.negative=1,this.strip()},Z.prototype._wordDiv=function(G,V){var D=this.length-G.length,O=this.clone(),F=G,R=F.words[F.length-1]|0,j=this._countBits(R);if(D=26-j,D!==0)F=F.ushln(D),O.iushln(D),R=F.words[F.length-1]|0;var C=O.length-F.length,z;if(V!=="mod"){z=new Z(null),z.length=C+1,z.words=Array(z.length);for(var T=0;T<z.length;T++)z.words[T]=0}var x=O.clone()._ishlnsubmul(F,1,C);if(x.negative===0){if(O=x,z)z.words[C]=1}for(var v=C-1;v>=0;v--){var h=(O.words[F.length+v]|0)*67108864+(O.words[F.length+v-1]|0);h=Math.min(h/R|0,67108863),O._ishlnsubmul(F,h,v);while(O.negative!==0)if(h--,O.negative=0,O._ishlnsubmul(F,1,v),!O.isZero())O.negative^=1;if(z)z.words[v]=h}if(z)z.strip();if(O.strip(),V!=="div"&&D!==0)O.iushrn(D);return{div:z||null,mod:O}},Z.prototype.divmod=function(G,V,D){if(X(!G.isZero()),this.isZero())return{div:new Z(0),mod:new Z(0)};var O,F,R;if(this.negative!==0&&G.negative===0){if(R=this.neg().divmod(G,V),V!=="mod")O=R.div.neg();if(V!=="div"){if(F=R.mod.neg(),D&&F.negative!==0)F.iadd(G)}return{div:O,mod:F}}if(this.negative===0&&G.negative!==0){if(R=this.divmod(G.neg(),V),V!=="mod")O=R.div.neg();return{div:O,mod:R.mod}}if((this.negative&G.negative)!==0){if(R=this.neg().divmod(G.neg(),V),V!=="div"){if(F=R.mod.neg(),D&&F.negative!==0)F.isub(G)}return{div:R.div,mod:F}}if(G.length>this.length||this.cmp(G)<0)return{div:new Z(0),mod:this};if(G.length===1){if(V==="div")return{div:this.divn(G.words[0]),mod:null};if(V==="mod")return{div:null,mod:new Z(this.modn(G.words[0]))};return{div:this.divn(G.words[0]),mod:new Z(this.modn(G.words[0]))}}return this._wordDiv(G,V)},Z.prototype.div=function(G){return this.divmod(G,"div",!1).div},Z.prototype.mod=function(G){return this.divmod(G,"mod",!1).mod},Z.prototype.umod=function(G){return this.divmod(G,"mod",!0).mod},Z.prototype.divRound=function(G){var V=this.divmod(G);if(V.mod.isZero())return V.div;var D=V.div.negative!==0?V.mod.isub(G):V.mod,O=G.ushrn(1),F=G.andln(1),R=D.cmp(O);if(R<0||F===1&&R===0)return V.div;return V.div.negative!==0?V.div.isubn(1):V.div.iaddn(1)},Z.prototype.modn=function(G){X(G<=67108863);var V=67108864%G,D=0;for(var O=this.length-1;O>=0;O--)D=(V*D+(this.words[O]|0))%G;return D},Z.prototype.idivn=function(G){X(G<=67108863);var V=0;for(var D=this.length-1;D>=0;D--){var O=(this.words[D]|0)+V*67108864;this.words[D]=O/G|0,V=O%G}return this.strip()},Z.prototype.divn=function(G){return this.clone().idivn(G)},Z.prototype.egcd=function(G){X(G.negative===0),X(!G.isZero());var V=this,D=G.clone();if(V.negative!==0)V=V.umod(G);else V=V.clone();var O=new Z(1),F=new Z(0),R=new Z(0),j=new Z(1),C=0;while(V.isEven()&&D.isEven())V.iushrn(1),D.iushrn(1),++C;var z=D.clone(),T=V.clone();while(!V.isZero()){for(var x=0,v=1;(V.words[0]&v)===0&&x<26;++x,v<<=1);if(x>0){V.iushrn(x);while(x-- >0){if(O.isOdd()||F.isOdd())O.iadd(z),F.isub(T);O.iushrn(1),F.iushrn(1)}}for(var h=0,r=1;(D.words[0]&r)===0&&h<26;++h,r<<=1);if(h>0){D.iushrn(h);while(h-- >0){if(R.isOdd()||j.isOdd())R.iadd(z),j.isub(T);R.iushrn(1),j.iushrn(1)}}if(V.cmp(D)>=0)V.isub(D),O.isub(R),F.isub(j);else D.isub(V),R.isub(O),j.isub(F)}return{a:R,b:j,gcd:D.iushln(C)}},Z.prototype._invmp=function(G){X(G.negative===0),X(!G.isZero());var V=this,D=G.clone();if(V.negative!==0)V=V.umod(G);else V=V.clone();var O=new Z(1),F=new Z(0),R=D.clone();while(V.cmpn(1)>0&&D.cmpn(1)>0){for(var j=0,C=1;(V.words[0]&C)===0&&j<26;++j,C<<=1);if(j>0){V.iushrn(j);while(j-- >0){if(O.isOdd())O.iadd(R);O.iushrn(1)}}for(var z=0,T=1;(D.words[0]&T)===0&&z<26;++z,T<<=1);if(z>0){D.iushrn(z);while(z-- >0){if(F.isOdd())F.iadd(R);F.iushrn(1)}}if(V.cmp(D)>=0)V.isub(D),O.isub(F);else D.isub(V),F.isub(O)}var x;if(V.cmpn(1)===0)x=O;else x=F;if(x.cmpn(0)<0)x.iadd(G);return x},Z.prototype.gcd=function(G){if(this.isZero())return G.abs();if(G.isZero())return this.abs();var V=this.clone(),D=G.clone();V.negative=0,D.negative=0;for(var O=0;V.isEven()&&D.isEven();O++)V.iushrn(1),D.iushrn(1);do{while(V.isEven())V.iushrn(1);while(D.isEven())D.iushrn(1);var F=V.cmp(D);if(F<0){var R=V;V=D,D=R}else if(F===0||D.cmpn(1)===0)break;V.isub(D)}while(!0);return D.iushln(O)},Z.prototype.invm=function(G){return this.egcd(G).a.umod(G)},Z.prototype.isEven=function(){return(this.words[0]&1)===0},Z.prototype.isOdd=function(){return(this.words[0]&1)===1},Z.prototype.andln=function(G){return this.words[0]&G},Z.prototype.bincn=function(G){X(typeof G==="number");var V=G%26,D=(G-V)/26,O=1<<V;if(this.length<=D)return this._expand(D+1),this.words[D]|=O,this;var F=O;for(var R=D;F!==0&&R<this.length;R++){var j=this.words[R]|0;j+=F,F=j>>>26,j&=67108863,this.words[R]=j}if(F!==0)this.words[R]=F,this.length++;return this},Z.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Z.prototype.cmpn=function(G){var V=G<0;if(this.negative!==0&&!V)return-1;if(this.negative===0&&V)return 1;this.strip();var D;if(this.length>1)D=1;else{if(V)G=-G;X(G<=67108863,"Number is too big");var O=this.words[0]|0;D=O===G?0:O<G?-1:1}if(this.negative!==0)return-D|0;return D},Z.prototype.cmp=function(G){if(this.negative!==0&&G.negative===0)return-1;if(this.negative===0&&G.negative!==0)return 1;var V=this.ucmp(G);if(this.negative!==0)return-V|0;return V},Z.prototype.ucmp=function(G){if(this.length>G.length)return 1;if(this.length<G.length)return-1;var V=0;for(var D=this.length-1;D>=0;D--){var O=this.words[D]|0,F=G.words[D]|0;if(O===F)continue;if(O<F)V=-1;else if(O>F)V=1;break}return V},Z.prototype.gtn=function(G){return this.cmpn(G)===1},Z.prototype.gt=function(G){return this.cmp(G)===1},Z.prototype.gten=function(G){return this.cmpn(G)>=0},Z.prototype.gte=function(G){return this.cmp(G)>=0},Z.prototype.ltn=function(G){return this.cmpn(G)===-1},Z.prototype.lt=function(G){return this.cmp(G)===-1},Z.prototype.lten=function(G){return this.cmpn(G)<=0},Z.prototype.lte=function(G){return this.cmp(G)<=0},Z.prototype.eqn=function(G){return this.cmpn(G)===0},Z.prototype.eq=function(G){return this.cmp(G)===0},Z.red=function(G){return new t(G)},Z.prototype.toRed=function(G){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),G.convertTo(this)._forceRed(G)},Z.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Z.prototype._forceRed=function(G){return this.red=G,this},Z.prototype.forceRed=function(G){return X(!this.red,"Already a number in reduction context"),this._forceRed(G)},Z.prototype.redAdd=function(G){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,G)},Z.prototype.redIAdd=function(G){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,G)},Z.prototype.redSub=function(G){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,G)},Z.prototype.redISub=function(G){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,G)},Z.prototype.redShl=function(G){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,G)},Z.prototype.redMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.mul(this,G)},Z.prototype.redIMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.imul(this,G)},Z.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Z.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Z.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Z.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Z.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Z.prototype.redPow=function(G){return X(this.red&&!G.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,G)};var p={k256:null,p224:null,p192:null,p25519:null};function n(G,V){this.name=G,this.p=new Z(V,16),this.n=this.p.bitLength(),this.k=new Z(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}n.prototype._tmp=function(){var G=new Z(null);return G.words=Array(Math.ceil(this.n/13)),G},n.prototype.ireduce=function(G){var V=G,D;do this.split(V,this.tmp),V=this.imulK(V),V=V.iadd(this.tmp),D=V.bitLength();while(D>this.n);var O=D<this.n?-1:V.ucmp(this.p);if(O===0)V.words[0]=0,V.length=1;else if(O>0)V.isub(this.p);else if(V.strip!==void 0)V.strip();else V._strip();return V},n.prototype.split=function(G,V){G.iushrn(this.n,0,V)},n.prototype.imulK=function(G){return G.imul(this.k)};function a(){n.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}K(a,n),a.prototype.split=function(G,V){var D=4194303,O=Math.min(G.length,9);for(var F=0;F<O;F++)V.words[F]=G.words[F];if(V.length=O,G.length<=9){G.words[0]=0,G.length=1;return}var R=G.words[9];V.words[V.length++]=R&D;for(F=10;F<G.length;F++){var j=G.words[F]|0;G.words[F-10]=(j&D)<<4|R>>>22,R=j}if(R>>>=22,G.words[F-10]=R,R===0&&G.length>10)G.length-=10;else G.length-=9},a.prototype.imulK=function(G){G.words[G.length]=0,G.words[G.length+1]=0,G.length+=2;var V=0;for(var D=0;D<G.length;D++){var O=G.words[D]|0;V+=O*977,G.words[D]=V&67108863,V=O*64+(V/67108864|0)}if(G.words[G.length-1]===0){if(G.length--,G.words[G.length-1]===0)G.length--}return G};function D0(){n.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}K(D0,n);function M0(){n.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}K(M0,n);function S0(){n.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}K(S0,n),S0.prototype.imulK=function(G){var V=0;for(var D=0;D<G.length;D++){var O=(G.words[D]|0)*19+V,F=O&67108863;O>>>=26,G.words[D]=F,V=O}if(V!==0)G.words[G.length++]=V;return G},Z._prime=function(G){if(p[G])return p[G];var V;if(G==="k256")V=new a;else if(G==="p224")V=new D0;else if(G==="p192")V=new M0;else if(G==="p25519")V=new S0;else throw Error("Unknown prime "+G);return p[G]=V,V};function t(G){if(typeof G==="string"){var V=Z._prime(G);this.m=V.p,this.prime=V}else X(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}t.prototype._verify1=function(G){X(G.negative===0,"red works only with positives"),X(G.red,"red works only with red numbers")},t.prototype._verify2=function(G,V){X((G.negative|V.negative)===0,"red works only with positives"),X(G.red&&G.red===V.red,"red works only with red numbers")},t.prototype.imod=function(G){if(this.prime)return this.prime.ireduce(G)._forceRed(this);return G.umod(this.m)._forceRed(this)},t.prototype.neg=function(G){if(G.isZero())return G.clone();return this.m.sub(G)._forceRed(this)},t.prototype.add=function(G,V){this._verify2(G,V);var D=G.add(V);if(D.cmp(this.m)>=0)D.isub(this.m);return D._forceRed(this)},t.prototype.iadd=function(G,V){this._verify2(G,V);var D=G.iadd(V);if(D.cmp(this.m)>=0)D.isub(this.m);return D},t.prototype.sub=function(G,V){this._verify2(G,V);var D=G.sub(V);if(D.cmpn(0)<0)D.iadd(this.m);return D._forceRed(this)},t.prototype.isub=function(G,V){this._verify2(G,V);var D=G.isub(V);if(D.cmpn(0)<0)D.iadd(this.m);return D},t.prototype.shl=function(G,V){return this._verify1(G),this.imod(G.ushln(V))},t.prototype.imul=function(G,V){return this._verify2(G,V),this.imod(G.imul(V))},t.prototype.mul=function(G,V){return this._verify2(G,V),this.imod(G.mul(V))},t.prototype.isqr=function(G){return this.imul(G,G.clone())},t.prototype.sqr=function(G){return this.mul(G,G)},t.prototype.sqrt=function(G){if(G.isZero())return G.clone();var V=this.m.andln(3);if(X(V%2===1),V===3){var D=this.m.add(new Z(1)).iushrn(2);return this.pow(G,D)}var O=this.m.subn(1),F=0;while(!O.isZero()&&O.andln(1)===0)F++,O.iushrn(1);X(!O.isZero());var R=new Z(1).toRed(this),j=R.redNeg(),C=this.m.subn(1).iushrn(1),z=this.m.bitLength();z=new Z(2*z*z).toRed(this);while(this.pow(z,C).cmp(j)!==0)z.redIAdd(j);var T=this.pow(z,O),x=this.pow(G,O.addn(1).iushrn(1)),v=this.pow(G,O),h=F;while(v.cmp(R)!==0){var r=v;for(var U0=0;r.cmp(R)!==0;U0++)r=r.redSqr();X(U0<h);var K0=this.pow(T,new Z(1).iushln(h-U0-1));x=x.redMul(K0),T=K0.redSqr(),v=v.redMul(T),h=U0}return x},t.prototype.invm=function(G){var V=G._invmp(this.m);if(V.negative!==0)return V.negative=0,this.imod(V).redNeg();else return this.imod(V)},t.prototype.pow=function(G,V){if(V.isZero())return new Z(1).toRed(this);if(V.cmpn(1)===0)return G.clone();var D=4,O=Array(1<<D);O[0]=new Z(1).toRed(this),O[1]=G;for(var F=2;F<O.length;F++)O[F]=this.mul(O[F-1],G);var R=O[0],j=0,C=0,z=V.bitLength()%26;if(z===0)z=26;for(F=V.length-1;F>=0;F--){var T=V.words[F];for(var x=z-1;x>=0;x--){var v=T>>x&1;if(R!==O[0])R=this.sqr(R);if(v===0&&j===0){C=0;continue}if(j<<=1,j|=v,C++,C!==D&&(F!==0||x!==0))continue;R=this.mul(R,O[j]),C=0,j=0}z=26}return R},t.prototype.convertTo=function(G){var V=G.umod(this.m);return V===G?V.clone():V},t.prototype.convertFrom=function(G){var V=G.clone();return V.red=null,V},Z.mont=function(G){return new R0(G)};function R0(G){if(t.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Z(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)}K(R0,t),R0.prototype.convertTo=function(G){return this.imod(G.ushln(this.shift))},R0.prototype.convertFrom=function(G){var V=this.imod(G.mul(this.rinv));return V.red=null,V},R0.prototype.imul=function(G,V){if(G.isZero()||V.isZero())return G.words[0]=0,G.length=1,G;var D=G.imul(V),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=D.isub(O).iushrn(this.shift),R=F;if(F.cmp(this.m)>=0)R=F.isub(this.m);else if(F.cmpn(0)<0)R=F.iadd(this.m);return R._forceRed(this)},R0.prototype.mul=function(G,V){if(G.isZero()||V.isZero())return new Z(0)._forceRed(this);var D=G.mul(V),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=D.isub(O).iushrn(this.shift),R=F;if(F.cmp(this.m)>=0)R=F.isub(this.m);else if(F.cmpn(0)<0)R=F.iadd(this.m);return R._forceRed(this)},R0.prototype.invm=function(G){var V=this.imod(G._invmp(this.m).mul(this.r2));return V._forceRed(this)}})(typeof I>"u"||I,J)}),qj=u0((J,I)=>{var Y=PH(),W=y6().Buffer;function X(K,Z){return W.from(K.toRed(Y.mont(Z.modulus)).redPow(new Y(Z.publicExponent)).fromRed().toArray())}I.exports=X}),Yy=u0((J,I)=>{(function(Y,W){function X(O,F){if(!O)throw Error(F||"Assertion failed")}function K(O,F){O.super_=F;var R=function(){};R.prototype=F.prototype,O.prototype=new R,O.prototype.constructor=O}function Z(O,F,R){if(Z.isBN(O))return O;if(this.negative=0,this.words=null,this.length=0,this.red=null,O!==null){if(F==="le"||F==="be")R=F,F=10;this._init(O||0,F||10,R||"be")}}if(typeof Y==="object")Y.exports=Z;else W.BN=Z;Z.BN=Z,Z.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(iU(),E$(oU)).Buffer}catch(O){}Z.isBN=function(O){if(O instanceof Z)return!0;return O!==null&&typeof O==="object"&&O.constructor.wordSize===Z.wordSize&&Array.isArray(O.words)},Z.max=function(O,F){if(O.cmp(F)>0)return O;return F},Z.min=function(O,F){if(O.cmp(F)<0)return O;return F},Z.prototype._init=function(O,F,R){if(typeof O==="number")return this._initNumber(O,F,R);if(typeof O==="object")return this._initArray(O,F,R);if(F==="hex")F=16;X(F===(F|0)&&F>=2&&F<=36),O=O.toString().replace(/\s+/g,"");var j=0;if(O[0]==="-")j++,this.negative=1;if(j<O.length){if(F===16)this._parseHex(O,j,R);else if(this._parseBase(O,F,j),R==="le")this._initArray(this.toArray(),F,R)}},Z.prototype._initNumber=function(O,F,R){if(O<0)this.negative=1,O=-O;if(O<67108864)this.words=[O&67108863],this.length=1;else if(O<4503599627370496)this.words=[O&67108863,O/67108864&67108863],this.length=2;else X(O<9007199254740992),this.words=[O&67108863,O/67108864&67108863,1],this.length=3;if(R!=="le")return;this._initArray(this.toArray(),F,R)},Z.prototype._initArray=function(O,F,R){if(X(typeof O.length==="number"),O.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(O.length/3),this.words=Array(this.length);for(var j=0;j<this.length;j++)this.words[j]=0;var C,z,T=0;if(R==="be"){for(j=O.length-1,C=0;j>=0;j-=3)if(z=O[j]|O[j-1]<<8|O[j-2]<<16,this.words[C]|=z<<T&67108863,this.words[C+1]=z>>>26-T&67108863,T+=24,T>=26)T-=26,C++}else if(R==="le"){for(j=0,C=0;j<O.length;j+=3)if(z=O[j]|O[j+1]<<8|O[j+2]<<16,this.words[C]|=z<<T&67108863,this.words[C+1]=z>>>26-T&67108863,T+=24,T>=26)T-=26,C++}return this._strip()};function E(O,F){var R=O.charCodeAt(F);if(R>=48&&R<=57)return R-48;else if(R>=65&&R<=70)return R-55;else if(R>=97&&R<=102)return R-87;else X(!1,"Invalid character in "+O)}function _(O,F,R){var j=E(O,R);if(R-1>=F)j|=E(O,R-1)<<4;return j}Z.prototype._parseHex=function(O,F,R){this.length=Math.ceil((O.length-F)/6),this.words=Array(this.length);for(var j=0;j<this.length;j++)this.words[j]=0;var C=0,z=0,T;if(R==="be")for(j=O.length-1;j>=F;j-=2)if(T=_(O,F,j)<<C,this.words[z]|=T&67108863,C>=18)C-=18,z+=1,this.words[z]|=T>>>26;else C+=8;else{var x=O.length-F;for(j=x%2===0?F+1:F;j<O.length;j+=2)if(T=_(O,F,j)<<C,this.words[z]|=T&67108863,C>=18)C-=18,z+=1,this.words[z]|=T>>>26;else C+=8}this._strip()};function S(O,F,R,j){var C=0,z=0,T=Math.min(O.length,R);for(var x=F;x<T;x++){var v=O.charCodeAt(x)-48;if(C*=j,v>=49)z=v-49+10;else if(v>=17)z=v-17+10;else z=v;X(v>=0&&z<j,"Invalid character"),C+=z}return C}Z.prototype._parseBase=function(O,F,R){this.words=[0],this.length=1;for(var j=0,C=1;C<=67108863;C*=F)j++;j--,C=C/F|0;var z=O.length-R,T=z%j,x=Math.min(z,z-T)+R,v=0;for(var h=R;h<x;h+=j)if(v=S(O,h,h+j,F),this.imuln(C),this.words[0]+v<67108864)this.words[0]+=v;else this._iaddn(v);if(T!==0){var r=1;v=S(O,h,O.length,F);for(h=0;h<T;h++)r*=F;if(this.imuln(r),this.words[0]+v<67108864)this.words[0]+=v;else this._iaddn(v)}this._strip()},Z.prototype.copy=function(O){O.words=Array(this.length);for(var F=0;F<this.length;F++)O.words[F]=this.words[F];O.length=this.length,O.negative=this.negative,O.red=this.red};function A(O,F){O.words=F.words,O.length=F.length,O.negative=F.negative,O.red=F.red}if(Z.prototype._move=function(O){A(O,this)},Z.prototype.clone=function(){var O=new Z(null);return this.copy(O),O},Z.prototype._expand=function(O){while(this.length<O)this.words[this.length++]=0;return this},Z.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Z.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{Z.prototype[Symbol.for("nodejs.util.inspect.custom")]=q}catch(O){Z.prototype.inspect=q}else Z.prototype.inspect=q;function q(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var B=["","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"],N=[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],f=[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(Z.prototype.toString=function(O,F){O=O||10,F=F|0||1;var R;if(O===16||O==="hex"){R="";var j=0,C=0;for(var z=0;z<this.length;z++){var T=this.words[z],x=((T<<j|C)&16777215).toString(16);if(C=T>>>24-j&16777215,j+=2,j>=26)j-=26,z--;if(C!==0||z!==this.length-1)R=B[6-x.length]+x+R;else R=x+R}if(C!==0)R=C.toString(16)+R;while(R.length%F!==0)R="0"+R;if(this.negative!==0)R="-"+R;return R}if(O===(O|0)&&O>=2&&O<=36){var v=N[O],h=f[O];R="";var r=this.clone();r.negative=0;while(!r.isZero()){var U0=r.modrn(h).toString(O);if(r=r.idivn(h),!r.isZero())R=B[v-U0.length]+U0+R;else R=U0+R}if(this.isZero())R="0"+R;while(R.length%F!==0)R="0"+R;if(this.negative!==0)R="-"+R;return R}X(!1,"Base should be between 2 and 36")},Z.prototype.toNumber=function(){var O=this.words[0];if(this.length===2)O+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)O+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-O:O},Z.prototype.toJSON=function(){return this.toString(16,2)},L)Z.prototype.toBuffer=function(O,F){return this.toArrayLike(L,O,F)};Z.prototype.toArray=function(O,F){return this.toArrayLike(Array,O,F)};var w=function(O,F){if(O.allocUnsafe)return O.allocUnsafe(F);return new O(F)};if(Z.prototype.toArrayLike=function(O,F,R){this._strip();var j=this.byteLength(),C=R||Math.max(1,j);X(j<=C,"byte array longer than desired length"),X(C>0,"Requested array length <= 0");var z=w(O,C),T=F==="le"?"LE":"BE";return this["_toArrayLike"+T](z,j),z},Z.prototype._toArrayLikeLE=function(O,F){var R=0,j=0;for(var C=0,z=0;C<this.length;C++){var T=this.words[C]<<z|j;if(O[R++]=T&255,R<O.length)O[R++]=T>>8&255;if(R<O.length)O[R++]=T>>16&255;if(z===6){if(R<O.length)O[R++]=T>>24&255;j=0,z=0}else j=T>>>24,z+=2}if(R<O.length){O[R++]=j;while(R<O.length)O[R++]=0}},Z.prototype._toArrayLikeBE=function(O,F){var R=O.length-1,j=0;for(var C=0,z=0;C<this.length;C++){var T=this.words[C]<<z|j;if(O[R--]=T&255,R>=0)O[R--]=T>>8&255;if(R>=0)O[R--]=T>>16&255;if(z===6){if(R>=0)O[R--]=T>>24&255;j=0,z=0}else j=T>>>24,z+=2}if(R>=0){O[R--]=j;while(R>=0)O[R--]=0}},Math.clz32)Z.prototype._countBits=function(O){return 32-Math.clz32(O)};else Z.prototype._countBits=function(O){var F=O,R=0;if(F>=4096)R+=13,F>>>=13;if(F>=64)R+=7,F>>>=7;if(F>=8)R+=4,F>>>=4;if(F>=2)R+=2,F>>>=2;return R+F};Z.prototype._zeroBits=function(O){if(O===0)return 26;var F=O,R=0;if((F&8191)===0)R+=13,F>>>=13;if((F&127)===0)R+=7,F>>>=7;if((F&15)===0)R+=4,F>>>=4;if((F&3)===0)R+=2,F>>>=2;if((F&1)===0)R++;return R},Z.prototype.bitLength=function(){var O=this.words[this.length-1],F=this._countBits(O);return(this.length-1)*26+F};function u(O){var F=Array(O.bitLength());for(var R=0;R<F.length;R++){var j=R/26|0,C=R%26;F[R]=O.words[j]>>>C&1}return F}Z.prototype.zeroBits=function(){if(this.isZero())return 0;var O=0;for(var F=0;F<this.length;F++){var R=this._zeroBits(this.words[F]);if(O+=R,R!==26)break}return O},Z.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Z.prototype.toTwos=function(O){if(this.negative!==0)return this.abs().inotn(O).iaddn(1);return this.clone()},Z.prototype.fromTwos=function(O){if(this.testn(O-1))return this.notn(O).iaddn(1).ineg();return this.clone()},Z.prototype.isNeg=function(){return this.negative!==0},Z.prototype.neg=function(){return this.clone().ineg()},Z.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Z.prototype.iuor=function(O){while(this.length<O.length)this.words[this.length++]=0;for(var F=0;F<O.length;F++)this.words[F]=this.words[F]|O.words[F];return this._strip()},Z.prototype.ior=function(O){return X((this.negative|O.negative)===0),this.iuor(O)},Z.prototype.or=function(O){if(this.length>O.length)return this.clone().ior(O);return O.clone().ior(this)},Z.prototype.uor=function(O){if(this.length>O.length)return this.clone().iuor(O);return O.clone().iuor(this)},Z.prototype.iuand=function(O){var F;if(this.length>O.length)F=O;else F=this;for(var R=0;R<F.length;R++)this.words[R]=this.words[R]&O.words[R];return this.length=F.length,this._strip()},Z.prototype.iand=function(O){return X((this.negative|O.negative)===0),this.iuand(O)},Z.prototype.and=function(O){if(this.length>O.length)return this.clone().iand(O);return O.clone().iand(this)},Z.prototype.uand=function(O){if(this.length>O.length)return this.clone().iuand(O);return O.clone().iuand(this)},Z.prototype.iuxor=function(O){var F,R;if(this.length>O.length)F=this,R=O;else F=O,R=this;for(var j=0;j<R.length;j++)this.words[j]=F.words[j]^R.words[j];if(this!==F)for(;j<F.length;j++)this.words[j]=F.words[j];return this.length=F.length,this._strip()},Z.prototype.ixor=function(O){return X((this.negative|O.negative)===0),this.iuxor(O)},Z.prototype.xor=function(O){if(this.length>O.length)return this.clone().ixor(O);return O.clone().ixor(this)},Z.prototype.uxor=function(O){if(this.length>O.length)return this.clone().iuxor(O);return O.clone().iuxor(this)},Z.prototype.inotn=function(O){X(typeof O==="number"&&O>=0);var F=Math.ceil(O/26)|0,R=O%26;if(this._expand(F),R>0)F--;for(var j=0;j<F;j++)this.words[j]=~this.words[j]&67108863;if(R>0)this.words[j]=~this.words[j]&67108863>>26-R;return this._strip()},Z.prototype.notn=function(O){return this.clone().inotn(O)},Z.prototype.setn=function(O,F){X(typeof O==="number"&&O>=0);var R=O/26|0,j=O%26;if(this._expand(R+1),F)this.words[R]=this.words[R]|1<<j;else this.words[R]=this.words[R]&~(1<<j);return this._strip()},Z.prototype.iadd=function(O){var F;if(this.negative!==0&&O.negative===0)return this.negative=0,F=this.isub(O),this.negative^=1,this._normSign();else if(this.negative===0&&O.negative!==0)return O.negative=0,F=this.isub(O),O.negative=1,F._normSign();var R,j;if(this.length>O.length)R=this,j=O;else R=O,j=this;var C=0;for(var z=0;z<j.length;z++)F=(R.words[z]|0)+(j.words[z]|0)+C,this.words[z]=F&67108863,C=F>>>26;for(;C!==0&&z<R.length;z++)F=(R.words[z]|0)+C,this.words[z]=F&67108863,C=F>>>26;if(this.length=R.length,C!==0)this.words[this.length]=C,this.length++;else if(R!==this)for(;z<R.length;z++)this.words[z]=R.words[z];return this},Z.prototype.add=function(O){var F;if(O.negative!==0&&this.negative===0)return O.negative=0,F=this.sub(O),O.negative^=1,F;else if(O.negative===0&&this.negative!==0)return this.negative=0,F=O.sub(this),this.negative=1,F;if(this.length>O.length)return this.clone().iadd(O);return O.clone().iadd(this)},Z.prototype.isub=function(O){if(O.negative!==0){O.negative=0;var F=this.iadd(O);return O.negative=1,F._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(O),this.negative=1,this._normSign();var R=this.cmp(O);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;var j,C;if(R>0)j=this,C=O;else j=O,C=this;var z=0;for(var T=0;T<C.length;T++)F=(j.words[T]|0)-(C.words[T]|0)+z,z=F>>26,this.words[T]=F&67108863;for(;z!==0&&T<j.length;T++)F=(j.words[T]|0)+z,z=F>>26,this.words[T]=F&67108863;if(z===0&&T<j.length&&j!==this)for(;T<j.length;T++)this.words[T]=j.words[T];if(this.length=Math.max(this.length,T),j!==this)this.negative=1;return this._strip()},Z.prototype.sub=function(O){return this.clone().isub(O)};function g(O,F,R){R.negative=F.negative^O.negative;var j=O.length+F.length|0;R.length=j,j=j-1|0;var C=O.words[0]|0,z=F.words[0]|0,T=C*z,x=T&67108863,v=T/67108864|0;R.words[0]=x;for(var h=1;h<j;h++){var r=v>>>26,U0=v&67108863,K0=Math.min(h,F.length-1);for(var Q0=Math.max(0,h-O.length+1);Q0<=K0;Q0++){var s=h-Q0|0;C=O.words[s]|0,z=F.words[Q0]|0,T=C*z+U0,r+=T/67108864|0,U0=T&67108863}R.words[h]=U0|0,v=r|0}if(v!==0)R.words[h]=v|0;else R.length--;return R._strip()}var b=function(O,F,R){var j=O.words,C=F.words,z=R.words,T=0,x,v,h,r=j[0]|0,U0=r&8191,K0=r>>>13,Q0=j[1]|0,s=Q0&8191,e=Q0>>>13,I0=j[2]|0,Z0=I0&8191,C0=I0>>>13,$0=j[3]|0,c=$0&8191,d=$0>>>13,L0=j[4]|0,Y0=L0&8191,V0=L0>>>13,k0=j[5]|0,J0=k0&8191,O0=k0>>>13,J$=j[6]|0,A0=J$&8191,v0=J$>>>13,M$=j[7]|0,m0=M$&8191,p0=M$>>>13,r$=j[8]|0,h0=r$&8191,c0=r$>>>13,YU=j[9]|0,t0=YU&8191,i0=YU>>>13,PU=C[0]|0,m=PU&8191,X0=PU>>>13,e0=C[1]|0,E0=e0&8191,N0=e0>>>13,D$=C[2]|0,x0=D$&8191,y0=D$>>>13,V$=C[3]|0,o0=V$&8191,r0=V$>>>13,OU=C[4]|0,s0=OU&8191,i=OU>>>13,G0=C[5]|0,q0=G0&8191,j0=G0>>>13,K$=C[6]|0,d0=K$&8191,a0=K$>>>13,LU=C[7]|0,X$=LU&8191,U$=LU>>>13,$U=C[8]|0,I$=$U&8191,$$=$U>>>13,_U=C[9]|0,B$=_U&8191,j$=_U>>>13;R.negative=O.negative^F.negative,R.length=19,x=Math.imul(U0,m),v=Math.imul(U0,X0),v=v+Math.imul(K0,m)|0,h=Math.imul(K0,X0);var UU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(UU>>>26)|0,UU&=67108863,x=Math.imul(s,m),v=Math.imul(s,X0),v=v+Math.imul(e,m)|0,h=Math.imul(e,X0),x=x+Math.imul(U0,E0)|0,v=v+Math.imul(U0,N0)|0,v=v+Math.imul(K0,E0)|0,h=h+Math.imul(K0,N0)|0;var n$=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(n$>>>26)|0,n$&=67108863,x=Math.imul(Z0,m),v=Math.imul(Z0,X0),v=v+Math.imul(C0,m)|0,h=Math.imul(C0,X0),x=x+Math.imul(s,E0)|0,v=v+Math.imul(s,N0)|0,v=v+Math.imul(e,E0)|0,h=h+Math.imul(e,N0)|0,x=x+Math.imul(U0,x0)|0,v=v+Math.imul(U0,y0)|0,v=v+Math.imul(K0,x0)|0,h=h+Math.imul(K0,y0)|0;var uU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(uU>>>26)|0,uU&=67108863,x=Math.imul(c,m),v=Math.imul(c,X0),v=v+Math.imul(d,m)|0,h=Math.imul(d,X0),x=x+Math.imul(Z0,E0)|0,v=v+Math.imul(Z0,N0)|0,v=v+Math.imul(C0,E0)|0,h=h+Math.imul(C0,N0)|0,x=x+Math.imul(s,x0)|0,v=v+Math.imul(s,y0)|0,v=v+Math.imul(e,x0)|0,h=h+Math.imul(e,y0)|0,x=x+Math.imul(U0,o0)|0,v=v+Math.imul(U0,r0)|0,v=v+Math.imul(K0,o0)|0,h=h+Math.imul(K0,r0)|0;var hU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(hU>>>26)|0,hU&=67108863,x=Math.imul(Y0,m),v=Math.imul(Y0,X0),v=v+Math.imul(V0,m)|0,h=Math.imul(V0,X0),x=x+Math.imul(c,E0)|0,v=v+Math.imul(c,N0)|0,v=v+Math.imul(d,E0)|0,h=h+Math.imul(d,N0)|0,x=x+Math.imul(Z0,x0)|0,v=v+Math.imul(Z0,y0)|0,v=v+Math.imul(C0,x0)|0,h=h+Math.imul(C0,y0)|0,x=x+Math.imul(s,o0)|0,v=v+Math.imul(s,r0)|0,v=v+Math.imul(e,o0)|0,h=h+Math.imul(e,r0)|0,x=x+Math.imul(U0,s0)|0,v=v+Math.imul(U0,i)|0,v=v+Math.imul(K0,s0)|0,h=h+Math.imul(K0,i)|0;var cU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(cU>>>26)|0,cU&=67108863,x=Math.imul(J0,m),v=Math.imul(J0,X0),v=v+Math.imul(O0,m)|0,h=Math.imul(O0,X0),x=x+Math.imul(Y0,E0)|0,v=v+Math.imul(Y0,N0)|0,v=v+Math.imul(V0,E0)|0,h=h+Math.imul(V0,N0)|0,x=x+Math.imul(c,x0)|0,v=v+Math.imul(c,y0)|0,v=v+Math.imul(d,x0)|0,h=h+Math.imul(d,y0)|0,x=x+Math.imul(Z0,o0)|0,v=v+Math.imul(Z0,r0)|0,v=v+Math.imul(C0,o0)|0,h=h+Math.imul(C0,r0)|0,x=x+Math.imul(s,s0)|0,v=v+Math.imul(s,i)|0,v=v+Math.imul(e,s0)|0,h=h+Math.imul(e,i)|0,x=x+Math.imul(U0,q0)|0,v=v+Math.imul(U0,j0)|0,v=v+Math.imul(K0,q0)|0,h=h+Math.imul(K0,j0)|0;var pU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(pU>>>26)|0,pU&=67108863,x=Math.imul(A0,m),v=Math.imul(A0,X0),v=v+Math.imul(v0,m)|0,h=Math.imul(v0,X0),x=x+Math.imul(J0,E0)|0,v=v+Math.imul(J0,N0)|0,v=v+Math.imul(O0,E0)|0,h=h+Math.imul(O0,N0)|0,x=x+Math.imul(Y0,x0)|0,v=v+Math.imul(Y0,y0)|0,v=v+Math.imul(V0,x0)|0,h=h+Math.imul(V0,y0)|0,x=x+Math.imul(c,o0)|0,v=v+Math.imul(c,r0)|0,v=v+Math.imul(d,o0)|0,h=h+Math.imul(d,r0)|0,x=x+Math.imul(Z0,s0)|0,v=v+Math.imul(Z0,i)|0,v=v+Math.imul(C0,s0)|0,h=h+Math.imul(C0,i)|0,x=x+Math.imul(s,q0)|0,v=v+Math.imul(s,j0)|0,v=v+Math.imul(e,q0)|0,h=h+Math.imul(e,j0)|0,x=x+Math.imul(U0,d0)|0,v=v+Math.imul(U0,a0)|0,v=v+Math.imul(K0,d0)|0,h=h+Math.imul(K0,a0)|0;var mU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(mU>>>26)|0,mU&=67108863,x=Math.imul(m0,m),v=Math.imul(m0,X0),v=v+Math.imul(p0,m)|0,h=Math.imul(p0,X0),x=x+Math.imul(A0,E0)|0,v=v+Math.imul(A0,N0)|0,v=v+Math.imul(v0,E0)|0,h=h+Math.imul(v0,N0)|0,x=x+Math.imul(J0,x0)|0,v=v+Math.imul(J0,y0)|0,v=v+Math.imul(O0,x0)|0,h=h+Math.imul(O0,y0)|0,x=x+Math.imul(Y0,o0)|0,v=v+Math.imul(Y0,r0)|0,v=v+Math.imul(V0,o0)|0,h=h+Math.imul(V0,r0)|0,x=x+Math.imul(c,s0)|0,v=v+Math.imul(c,i)|0,v=v+Math.imul(d,s0)|0,h=h+Math.imul(d,i)|0,x=x+Math.imul(Z0,q0)|0,v=v+Math.imul(Z0,j0)|0,v=v+Math.imul(C0,q0)|0,h=h+Math.imul(C0,j0)|0,x=x+Math.imul(s,d0)|0,v=v+Math.imul(s,a0)|0,v=v+Math.imul(e,d0)|0,h=h+Math.imul(e,a0)|0,x=x+Math.imul(U0,X$)|0,v=v+Math.imul(U0,U$)|0,v=v+Math.imul(K0,X$)|0,h=h+Math.imul(K0,U$)|0;var t$=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(t$>>>26)|0,t$&=67108863,x=Math.imul(h0,m),v=Math.imul(h0,X0),v=v+Math.imul(c0,m)|0,h=Math.imul(c0,X0),x=x+Math.imul(m0,E0)|0,v=v+Math.imul(m0,N0)|0,v=v+Math.imul(p0,E0)|0,h=h+Math.imul(p0,N0)|0,x=x+Math.imul(A0,x0)|0,v=v+Math.imul(A0,y0)|0,v=v+Math.imul(v0,x0)|0,h=h+Math.imul(v0,y0)|0,x=x+Math.imul(J0,o0)|0,v=v+Math.imul(J0,r0)|0,v=v+Math.imul(O0,o0)|0,h=h+Math.imul(O0,r0)|0,x=x+Math.imul(Y0,s0)|0,v=v+Math.imul(Y0,i)|0,v=v+Math.imul(V0,s0)|0,h=h+Math.imul(V0,i)|0,x=x+Math.imul(c,q0)|0,v=v+Math.imul(c,j0)|0,v=v+Math.imul(d,q0)|0,h=h+Math.imul(d,j0)|0,x=x+Math.imul(Z0,d0)|0,v=v+Math.imul(Z0,a0)|0,v=v+Math.imul(C0,d0)|0,h=h+Math.imul(C0,a0)|0,x=x+Math.imul(s,X$)|0,v=v+Math.imul(s,U$)|0,v=v+Math.imul(e,X$)|0,h=h+Math.imul(e,U$)|0,x=x+Math.imul(U0,I$)|0,v=v+Math.imul(U0,$$)|0,v=v+Math.imul(K0,I$)|0,h=h+Math.imul(K0,$$)|0;var MU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(MU>>>26)|0,MU&=67108863,x=Math.imul(t0,m),v=Math.imul(t0,X0),v=v+Math.imul(i0,m)|0,h=Math.imul(i0,X0),x=x+Math.imul(h0,E0)|0,v=v+Math.imul(h0,N0)|0,v=v+Math.imul(c0,E0)|0,h=h+Math.imul(c0,N0)|0,x=x+Math.imul(m0,x0)|0,v=v+Math.imul(m0,y0)|0,v=v+Math.imul(p0,x0)|0,h=h+Math.imul(p0,y0)|0,x=x+Math.imul(A0,o0)|0,v=v+Math.imul(A0,r0)|0,v=v+Math.imul(v0,o0)|0,h=h+Math.imul(v0,r0)|0,x=x+Math.imul(J0,s0)|0,v=v+Math.imul(J0,i)|0,v=v+Math.imul(O0,s0)|0,h=h+Math.imul(O0,i)|0,x=x+Math.imul(Y0,q0)|0,v=v+Math.imul(Y0,j0)|0,v=v+Math.imul(V0,q0)|0,h=h+Math.imul(V0,j0)|0,x=x+Math.imul(c,d0)|0,v=v+Math.imul(c,a0)|0,v=v+Math.imul(d,d0)|0,h=h+Math.imul(d,a0)|0,x=x+Math.imul(Z0,X$)|0,v=v+Math.imul(Z0,U$)|0,v=v+Math.imul(C0,X$)|0,h=h+Math.imul(C0,U$)|0,x=x+Math.imul(s,I$)|0,v=v+Math.imul(s,$$)|0,v=v+Math.imul(e,I$)|0,h=h+Math.imul(e,$$)|0,x=x+Math.imul(U0,B$)|0,v=v+Math.imul(U0,j$)|0,v=v+Math.imul(K0,B$)|0,h=h+Math.imul(K0,j$)|0;var VU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(VU>>>26)|0,VU&=67108863,x=Math.imul(t0,E0),v=Math.imul(t0,N0),v=v+Math.imul(i0,E0)|0,h=Math.imul(i0,N0),x=x+Math.imul(h0,x0)|0,v=v+Math.imul(h0,y0)|0,v=v+Math.imul(c0,x0)|0,h=h+Math.imul(c0,y0)|0,x=x+Math.imul(m0,o0)|0,v=v+Math.imul(m0,r0)|0,v=v+Math.imul(p0,o0)|0,h=h+Math.imul(p0,r0)|0,x=x+Math.imul(A0,s0)|0,v=v+Math.imul(A0,i)|0,v=v+Math.imul(v0,s0)|0,h=h+Math.imul(v0,i)|0,x=x+Math.imul(J0,q0)|0,v=v+Math.imul(J0,j0)|0,v=v+Math.imul(O0,q0)|0,h=h+Math.imul(O0,j0)|0,x=x+Math.imul(Y0,d0)|0,v=v+Math.imul(Y0,a0)|0,v=v+Math.imul(V0,d0)|0,h=h+Math.imul(V0,a0)|0,x=x+Math.imul(c,X$)|0,v=v+Math.imul(c,U$)|0,v=v+Math.imul(d,X$)|0,h=h+Math.imul(d,U$)|0,x=x+Math.imul(Z0,I$)|0,v=v+Math.imul(Z0,$$)|0,v=v+Math.imul(C0,I$)|0,h=h+Math.imul(C0,$$)|0,x=x+Math.imul(s,B$)|0,v=v+Math.imul(s,j$)|0,v=v+Math.imul(e,B$)|0,h=h+Math.imul(e,j$)|0;var lU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(lU>>>26)|0,lU&=67108863,x=Math.imul(t0,x0),v=Math.imul(t0,y0),v=v+Math.imul(i0,x0)|0,h=Math.imul(i0,y0),x=x+Math.imul(h0,o0)|0,v=v+Math.imul(h0,r0)|0,v=v+Math.imul(c0,o0)|0,h=h+Math.imul(c0,r0)|0,x=x+Math.imul(m0,s0)|0,v=v+Math.imul(m0,i)|0,v=v+Math.imul(p0,s0)|0,h=h+Math.imul(p0,i)|0,x=x+Math.imul(A0,q0)|0,v=v+Math.imul(A0,j0)|0,v=v+Math.imul(v0,q0)|0,h=h+Math.imul(v0,j0)|0,x=x+Math.imul(J0,d0)|0,v=v+Math.imul(J0,a0)|0,v=v+Math.imul(O0,d0)|0,h=h+Math.imul(O0,a0)|0,x=x+Math.imul(Y0,X$)|0,v=v+Math.imul(Y0,U$)|0,v=v+Math.imul(V0,X$)|0,h=h+Math.imul(V0,U$)|0,x=x+Math.imul(c,I$)|0,v=v+Math.imul(c,$$)|0,v=v+Math.imul(d,I$)|0,h=h+Math.imul(d,$$)|0,x=x+Math.imul(Z0,B$)|0,v=v+Math.imul(Z0,j$)|0,v=v+Math.imul(C0,B$)|0,h=h+Math.imul(C0,j$)|0;var qU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(qU>>>26)|0,qU&=67108863,x=Math.imul(t0,o0),v=Math.imul(t0,r0),v=v+Math.imul(i0,o0)|0,h=Math.imul(i0,r0),x=x+Math.imul(h0,s0)|0,v=v+Math.imul(h0,i)|0,v=v+Math.imul(c0,s0)|0,h=h+Math.imul(c0,i)|0,x=x+Math.imul(m0,q0)|0,v=v+Math.imul(m0,j0)|0,v=v+Math.imul(p0,q0)|0,h=h+Math.imul(p0,j0)|0,x=x+Math.imul(A0,d0)|0,v=v+Math.imul(A0,a0)|0,v=v+Math.imul(v0,d0)|0,h=h+Math.imul(v0,a0)|0,x=x+Math.imul(J0,X$)|0,v=v+Math.imul(J0,U$)|0,v=v+Math.imul(O0,X$)|0,h=h+Math.imul(O0,U$)|0,x=x+Math.imul(Y0,I$)|0,v=v+Math.imul(Y0,$$)|0,v=v+Math.imul(V0,I$)|0,h=h+Math.imul(V0,$$)|0,x=x+Math.imul(c,B$)|0,v=v+Math.imul(c,j$)|0,v=v+Math.imul(d,B$)|0,h=h+Math.imul(d,j$)|0;var NU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(NU>>>26)|0,NU&=67108863,x=Math.imul(t0,s0),v=Math.imul(t0,i),v=v+Math.imul(i0,s0)|0,h=Math.imul(i0,i),x=x+Math.imul(h0,q0)|0,v=v+Math.imul(h0,j0)|0,v=v+Math.imul(c0,q0)|0,h=h+Math.imul(c0,j0)|0,x=x+Math.imul(m0,d0)|0,v=v+Math.imul(m0,a0)|0,v=v+Math.imul(p0,d0)|0,h=h+Math.imul(p0,a0)|0,x=x+Math.imul(A0,X$)|0,v=v+Math.imul(A0,U$)|0,v=v+Math.imul(v0,X$)|0,h=h+Math.imul(v0,U$)|0,x=x+Math.imul(J0,I$)|0,v=v+Math.imul(J0,$$)|0,v=v+Math.imul(O0,I$)|0,h=h+Math.imul(O0,$$)|0,x=x+Math.imul(Y0,B$)|0,v=v+Math.imul(Y0,j$)|0,v=v+Math.imul(V0,B$)|0,h=h+Math.imul(V0,j$)|0;var xU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(xU>>>26)|0,xU&=67108863,x=Math.imul(t0,q0),v=Math.imul(t0,j0),v=v+Math.imul(i0,q0)|0,h=Math.imul(i0,j0),x=x+Math.imul(h0,d0)|0,v=v+Math.imul(h0,a0)|0,v=v+Math.imul(c0,d0)|0,h=h+Math.imul(c0,a0)|0,x=x+Math.imul(m0,X$)|0,v=v+Math.imul(m0,U$)|0,v=v+Math.imul(p0,X$)|0,h=h+Math.imul(p0,U$)|0,x=x+Math.imul(A0,I$)|0,v=v+Math.imul(A0,$$)|0,v=v+Math.imul(v0,I$)|0,h=h+Math.imul(v0,$$)|0,x=x+Math.imul(J0,B$)|0,v=v+Math.imul(J0,j$)|0,v=v+Math.imul(O0,B$)|0,h=h+Math.imul(O0,j$)|0;var SU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(SU>>>26)|0,SU&=67108863,x=Math.imul(t0,d0),v=Math.imul(t0,a0),v=v+Math.imul(i0,d0)|0,h=Math.imul(i0,a0),x=x+Math.imul(h0,X$)|0,v=v+Math.imul(h0,U$)|0,v=v+Math.imul(c0,X$)|0,h=h+Math.imul(c0,U$)|0,x=x+Math.imul(m0,I$)|0,v=v+Math.imul(m0,$$)|0,v=v+Math.imul(p0,I$)|0,h=h+Math.imul(p0,$$)|0,x=x+Math.imul(A0,B$)|0,v=v+Math.imul(A0,j$)|0,v=v+Math.imul(v0,B$)|0,h=h+Math.imul(v0,j$)|0;var AU=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(AU>>>26)|0,AU&=67108863,x=Math.imul(t0,X$),v=Math.imul(t0,U$),v=v+Math.imul(i0,X$)|0,h=Math.imul(i0,U$),x=x+Math.imul(h0,I$)|0,v=v+Math.imul(h0,$$)|0,v=v+Math.imul(c0,I$)|0,h=h+Math.imul(c0,$$)|0,x=x+Math.imul(m0,B$)|0,v=v+Math.imul(m0,j$)|0,v=v+Math.imul(p0,B$)|0,h=h+Math.imul(p0,j$)|0;var FX=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(FX>>>26)|0,FX&=67108863,x=Math.imul(t0,I$),v=Math.imul(t0,$$),v=v+Math.imul(i0,I$)|0,h=Math.imul(i0,$$),x=x+Math.imul(h0,B$)|0,v=v+Math.imul(h0,j$)|0,v=v+Math.imul(c0,B$)|0,h=h+Math.imul(c0,j$)|0;var MY=(T+x|0)+((v&8191)<<13)|0;T=(h+(v>>>13)|0)+(MY>>>26)|0,MY&=67108863,x=Math.imul(t0,B$),v=Math.imul(t0,j$),v=v+Math.imul(i0,B$)|0,h=Math.imul(i0,j$);var AY=(T+x|0)+((v&8191)<<13)|0;if(T=(h+(v>>>13)|0)+(AY>>>26)|0,AY&=67108863,z[0]=UU,z[1]=n$,z[2]=uU,z[3]=hU,z[4]=cU,z[5]=pU,z[6]=mU,z[7]=t$,z[8]=MU,z[9]=VU,z[10]=lU,z[11]=qU,z[12]=NU,z[13]=xU,z[14]=SU,z[15]=AU,z[16]=FX,z[17]=MY,z[18]=AY,T!==0)z[19]=T,R.length++;return R};if(!Math.imul)b=g;function p(O,F,R){R.negative=F.negative^O.negative,R.length=O.length+F.length;var j=0,C=0;for(var z=0;z<R.length-1;z++){var T=C;C=0;var x=j&67108863,v=Math.min(z,F.length-1);for(var h=Math.max(0,z-O.length+1);h<=v;h++){var r=z-h,U0=O.words[r]|0,K0=F.words[h]|0,Q0=U0*K0,s=Q0&67108863;T=T+(Q0/67108864|0)|0,s=s+x|0,x=s&67108863,T=T+(s>>>26)|0,C+=T>>>26,T&=67108863}R.words[z]=x,j=T,T=C}if(j!==0)R.words[z]=j;else R.length--;return R._strip()}function n(O,F,R){return p(O,F,R)}Z.prototype.mulTo=function(O,F){var R,j=this.length+O.length;if(this.length===10&&O.length===10)R=b(this,O,F);else if(j<63)R=g(this,O,F);else if(j<1024)R=p(this,O,F);else R=n(this,O,F);return R};function a(O,F){this.x=O,this.y=F}a.prototype.makeRBT=function(O){var F=Array(O),R=Z.prototype._countBits(O)-1;for(var j=0;j<O;j++)F[j]=this.revBin(j,R,O);return F},a.prototype.revBin=function(O,F,R){if(O===0||O===R-1)return O;var j=0;for(var C=0;C<F;C++)j|=(O&1)<<F-C-1,O>>=1;return j},a.prototype.permute=function(O,F,R,j,C,z){for(var T=0;T<z;T++)j[T]=F[O[T]],C[T]=R[O[T]]},a.prototype.transform=function(O,F,R,j,C,z){this.permute(z,O,F,R,j,C);for(var T=1;T<C;T<<=1){var x=T<<1,v=Math.cos(2*Math.PI/x),h=Math.sin(2*Math.PI/x);for(var r=0;r<C;r+=x){var U0=v,K0=h;for(var Q0=0;Q0<T;Q0++){var s=R[r+Q0],e=j[r+Q0],I0=R[r+Q0+T],Z0=j[r+Q0+T],C0=U0*I0-K0*Z0;if(Z0=U0*Z0+K0*I0,I0=C0,R[r+Q0]=s+I0,j[r+Q0]=e+Z0,R[r+Q0+T]=s-I0,j[r+Q0+T]=e-Z0,Q0!==x)C0=v*U0-h*K0,K0=v*K0+h*U0,U0=C0}}}},a.prototype.guessLen13b=function(O,F){var R=Math.max(F,O)|1,j=R&1,C=0;for(R=R/2|0;R;R=R>>>1)C++;return 1<<C+1+j},a.prototype.conjugate=function(O,F,R){if(R<=1)return;for(var j=0;j<R/2;j++){var C=O[j];O[j]=O[R-j-1],O[R-j-1]=C,C=F[j],F[j]=-F[R-j-1],F[R-j-1]=-C}},a.prototype.normalize13b=function(O,F){var R=0;for(var j=0;j<F/2;j++){var C=Math.round(O[2*j+1]/F)*8192+Math.round(O[2*j]/F)+R;if(O[j]=C&67108863,C<67108864)R=0;else R=C/67108864|0}return O},a.prototype.convert13b=function(O,F,R,j){var C=0;for(var z=0;z<F;z++)C=C+(O[z]|0),R[2*z]=C&8191,C=C>>>13,R[2*z+1]=C&8191,C=C>>>13;for(z=2*F;z<j;++z)R[z]=0;X(C===0),X((C&-8192)===0)},a.prototype.stub=function(O){var F=Array(O);for(var R=0;R<O;R++)F[R]=0;return F},a.prototype.mulp=function(O,F,R){var j=2*this.guessLen13b(O.length,F.length),C=this.makeRBT(j),z=this.stub(j),T=Array(j),x=Array(j),v=Array(j),h=Array(j),r=Array(j),U0=Array(j),K0=R.words;K0.length=j,this.convert13b(O.words,O.length,T,j),this.convert13b(F.words,F.length,h,j),this.transform(T,z,x,v,j,C),this.transform(h,z,r,U0,j,C);for(var Q0=0;Q0<j;Q0++){var s=x[Q0]*r[Q0]-v[Q0]*U0[Q0];v[Q0]=x[Q0]*U0[Q0]+v[Q0]*r[Q0],x[Q0]=s}return this.conjugate(x,v,j),this.transform(x,v,K0,z,j,C),this.conjugate(K0,z,j),this.normalize13b(K0,j),R.negative=O.negative^F.negative,R.length=O.length+F.length,R._strip()},Z.prototype.mul=function(O){var F=new Z(null);return F.words=Array(this.length+O.length),this.mulTo(O,F)},Z.prototype.mulf=function(O){var F=new Z(null);return F.words=Array(this.length+O.length),n(this,O,F)},Z.prototype.imul=function(O){return this.clone().mulTo(O,this)},Z.prototype.imuln=function(O){var F=O<0;if(F)O=-O;X(typeof O==="number"),X(O<67108864);var R=0;for(var j=0;j<this.length;j++){var C=(this.words[j]|0)*O,z=(C&67108863)+(R&67108863);R>>=26,R+=C/67108864|0,R+=z>>>26,this.words[j]=z&67108863}if(R!==0)this.words[j]=R,this.length++;return this.length=O===0?1:this.length,F?this.ineg():this},Z.prototype.muln=function(O){return this.clone().imuln(O)},Z.prototype.sqr=function(){return this.mul(this)},Z.prototype.isqr=function(){return this.imul(this.clone())},Z.prototype.pow=function(O){var F=u(O);if(F.length===0)return new Z(1);var R=this;for(var j=0;j<F.length;j++,R=R.sqr())if(F[j]!==0)break;if(++j<F.length)for(var C=R.sqr();j<F.length;j++,C=C.sqr()){if(F[j]===0)continue;R=R.mul(C)}return R},Z.prototype.iushln=function(O){X(typeof O==="number"&&O>=0);var F=O%26,R=(O-F)/26,j=67108863>>>26-F<<26-F,C;if(F!==0){var z=0;for(C=0;C<this.length;C++){var T=this.words[C]&j,x=(this.words[C]|0)-T<<F;this.words[C]=x|z,z=T>>>26-F}if(z)this.words[C]=z,this.length++}if(R!==0){for(C=this.length-1;C>=0;C--)this.words[C+R]=this.words[C];for(C=0;C<R;C++)this.words[C]=0;this.length+=R}return this._strip()},Z.prototype.ishln=function(O){return X(this.negative===0),this.iushln(O)},Z.prototype.iushrn=function(O,F,R){X(typeof O==="number"&&O>=0);var j;if(F)j=(F-F%26)/26;else j=0;var C=O%26,z=Math.min((O-C)/26,this.length),T=67108863^67108863>>>C<<C,x=R;if(j-=z,j=Math.max(0,j),x){for(var v=0;v<z;v++)x.words[v]=this.words[v];x.length=z}if(z===0);else if(this.length>z){this.length-=z;for(v=0;v<this.length;v++)this.words[v]=this.words[v+z]}else this.words[0]=0,this.length=1;var h=0;for(v=this.length-1;v>=0&&(h!==0||v>=j);v--){var r=this.words[v]|0;this.words[v]=h<<26-C|r>>>C,h=r&T}if(x&&h!==0)x.words[x.length++]=h;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},Z.prototype.ishrn=function(O,F,R){return X(this.negative===0),this.iushrn(O,F,R)},Z.prototype.shln=function(O){return this.clone().ishln(O)},Z.prototype.ushln=function(O){return this.clone().iushln(O)},Z.prototype.shrn=function(O){return this.clone().ishrn(O)},Z.prototype.ushrn=function(O){return this.clone().iushrn(O)},Z.prototype.testn=function(O){X(typeof O==="number"&&O>=0);var F=O%26,R=(O-F)/26,j=1<<F;if(this.length<=R)return!1;var C=this.words[R];return!!(C&j)},Z.prototype.imaskn=function(O){X(typeof O==="number"&&O>=0);var F=O%26,R=(O-F)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=R)return this;if(F!==0)R++;if(this.length=Math.min(R,this.length),F!==0){var j=67108863^67108863>>>F<<F;this.words[this.length-1]&=j}return this._strip()},Z.prototype.maskn=function(O){return this.clone().imaskn(O)},Z.prototype.iaddn=function(O){if(X(typeof O==="number"),X(O<67108864),O<0)return this.isubn(-O);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=O)return this.words[0]=O-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(O),this.negative=1,this}return this._iaddn(O)},Z.prototype._iaddn=function(O){this.words[0]+=O;for(var F=0;F<this.length&&this.words[F]>=67108864;F++)if(this.words[F]-=67108864,F===this.length-1)this.words[F+1]=1;else this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},Z.prototype.isubn=function(O){if(X(typeof O==="number"),X(O<67108864),O<0)return this.iaddn(-O);if(this.negative!==0)return this.negative=0,this.iaddn(O),this.negative=1,this;if(this.words[0]-=O,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F<this.length&&this.words[F]<0;F++)this.words[F]+=67108864,this.words[F+1]-=1;return this._strip()},Z.prototype.addn=function(O){return this.clone().iaddn(O)},Z.prototype.subn=function(O){return this.clone().isubn(O)},Z.prototype.iabs=function(){return this.negative=0,this},Z.prototype.abs=function(){return this.clone().iabs()},Z.prototype._ishlnsubmul=function(O,F,R){var j=O.length+R,C;this._expand(j);var z,T=0;for(C=0;C<O.length;C++){z=(this.words[C+R]|0)+T;var x=(O.words[C]|0)*F;z-=x&67108863,T=(z>>26)-(x/67108864|0),this.words[C+R]=z&67108863}for(;C<this.length-R;C++)z=(this.words[C+R]|0)+T,T=z>>26,this.words[C+R]=z&67108863;if(T===0)return this._strip();X(T===-1),T=0;for(C=0;C<this.length;C++)z=-(this.words[C]|0)+T,T=z>>26,this.words[C]=z&67108863;return this.negative=1,this._strip()},Z.prototype._wordDiv=function(O,F){var R=this.length-O.length,j=this.clone(),C=O,z=C.words[C.length-1]|0,T=this._countBits(z);if(R=26-T,R!==0)C=C.ushln(R),j.iushln(R),z=C.words[C.length-1]|0;var x=j.length-C.length,v;if(F!=="mod"){v=new Z(null),v.length=x+1,v.words=Array(v.length);for(var h=0;h<v.length;h++)v.words[h]=0}var r=j.clone()._ishlnsubmul(C,1,x);if(r.negative===0){if(j=r,v)v.words[x]=1}for(var U0=x-1;U0>=0;U0--){var K0=(j.words[C.length+U0]|0)*67108864+(j.words[C.length+U0-1]|0);K0=Math.min(K0/z|0,67108863),j._ishlnsubmul(C,K0,U0);while(j.negative!==0)if(K0--,j.negative=0,j._ishlnsubmul(C,1,U0),!j.isZero())j.negative^=1;if(v)v.words[U0]=K0}if(v)v._strip();if(j._strip(),F!=="div"&&R!==0)j.iushrn(R);return{div:v||null,mod:j}},Z.prototype.divmod=function(O,F,R){if(X(!O.isZero()),this.isZero())return{div:new Z(0),mod:new Z(0)};var j,C,z;if(this.negative!==0&&O.negative===0){if(z=this.neg().divmod(O,F),F!=="mod")j=z.div.neg();if(F!=="div"){if(C=z.mod.neg(),R&&C.negative!==0)C.iadd(O)}return{div:j,mod:C}}if(this.negative===0&&O.negative!==0){if(z=this.divmod(O.neg(),F),F!=="mod")j=z.div.neg();return{div:j,mod:z.mod}}if((this.negative&O.negative)!==0){if(z=this.neg().divmod(O.neg(),F),F!=="div"){if(C=z.mod.neg(),R&&C.negative!==0)C.isub(O)}return{div:z.div,mod:C}}if(O.length>this.length||this.cmp(O)<0)return{div:new Z(0),mod:this};if(O.length===1){if(F==="div")return{div:this.divn(O.words[0]),mod:null};if(F==="mod")return{div:null,mod:new Z(this.modrn(O.words[0]))};return{div:this.divn(O.words[0]),mod:new Z(this.modrn(O.words[0]))}}return this._wordDiv(O,F)},Z.prototype.div=function(O){return this.divmod(O,"div",!1).div},Z.prototype.mod=function(O){return this.divmod(O,"mod",!1).mod},Z.prototype.umod=function(O){return this.divmod(O,"mod",!0).mod},Z.prototype.divRound=function(O){var F=this.divmod(O);if(F.mod.isZero())return F.div;var R=F.div.negative!==0?F.mod.isub(O):F.mod,j=O.ushrn(1),C=O.andln(1),z=R.cmp(j);if(z<0||C===1&&z===0)return F.div;return F.div.negative!==0?F.div.isubn(1):F.div.iaddn(1)},Z.prototype.modrn=function(O){var F=O<0;if(F)O=-O;X(O<=67108863);var R=67108864%O,j=0;for(var C=this.length-1;C>=0;C--)j=(R*j+(this.words[C]|0))%O;return F?-j:j},Z.prototype.modn=function(O){return this.modrn(O)},Z.prototype.idivn=function(O){var F=O<0;if(F)O=-O;X(O<=67108863);var R=0;for(var j=this.length-1;j>=0;j--){var C=(this.words[j]|0)+R*67108864;this.words[j]=C/O|0,R=C%O}return this._strip(),F?this.ineg():this},Z.prototype.divn=function(O){return this.clone().idivn(O)},Z.prototype.egcd=function(O){X(O.negative===0),X(!O.isZero());var F=this,R=O.clone();if(F.negative!==0)F=F.umod(O);else F=F.clone();var j=new Z(1),C=new Z(0),z=new Z(0),T=new Z(1),x=0;while(F.isEven()&&R.isEven())F.iushrn(1),R.iushrn(1),++x;var v=R.clone(),h=F.clone();while(!F.isZero()){for(var r=0,U0=1;(F.words[0]&U0)===0&&r<26;++r,U0<<=1);if(r>0){F.iushrn(r);while(r-- >0){if(j.isOdd()||C.isOdd())j.iadd(v),C.isub(h);j.iushrn(1),C.iushrn(1)}}for(var K0=0,Q0=1;(R.words[0]&Q0)===0&&K0<26;++K0,Q0<<=1);if(K0>0){R.iushrn(K0);while(K0-- >0){if(z.isOdd()||T.isOdd())z.iadd(v),T.isub(h);z.iushrn(1),T.iushrn(1)}}if(F.cmp(R)>=0)F.isub(R),j.isub(z),C.isub(T);else R.isub(F),z.isub(j),T.isub(C)}return{a:z,b:T,gcd:R.iushln(x)}},Z.prototype._invmp=function(O){X(O.negative===0),X(!O.isZero());var F=this,R=O.clone();if(F.negative!==0)F=F.umod(O);else F=F.clone();var j=new Z(1),C=new Z(0),z=R.clone();while(F.cmpn(1)>0&&R.cmpn(1)>0){for(var T=0,x=1;(F.words[0]&x)===0&&T<26;++T,x<<=1);if(T>0){F.iushrn(T);while(T-- >0){if(j.isOdd())j.iadd(z);j.iushrn(1)}}for(var v=0,h=1;(R.words[0]&h)===0&&v<26;++v,h<<=1);if(v>0){R.iushrn(v);while(v-- >0){if(C.isOdd())C.iadd(z);C.iushrn(1)}}if(F.cmp(R)>=0)F.isub(R),j.isub(C);else R.isub(F),C.isub(j)}var r;if(F.cmpn(1)===0)r=j;else r=C;if(r.cmpn(0)<0)r.iadd(O);return r},Z.prototype.gcd=function(O){if(this.isZero())return O.abs();if(O.isZero())return this.abs();var F=this.clone(),R=O.clone();F.negative=0,R.negative=0;for(var j=0;F.isEven()&&R.isEven();j++)F.iushrn(1),R.iushrn(1);do{while(F.isEven())F.iushrn(1);while(R.isEven())R.iushrn(1);var C=F.cmp(R);if(C<0){var z=F;F=R,R=z}else if(C===0||R.cmpn(1)===0)break;F.isub(R)}while(!0);return R.iushln(j)},Z.prototype.invm=function(O){return this.egcd(O).a.umod(O)},Z.prototype.isEven=function(){return(this.words[0]&1)===0},Z.prototype.isOdd=function(){return(this.words[0]&1)===1},Z.prototype.andln=function(O){return this.words[0]&O},Z.prototype.bincn=function(O){X(typeof O==="number");var F=O%26,R=(O-F)/26,j=1<<F;if(this.length<=R)return this._expand(R+1),this.words[R]|=j,this;var C=j;for(var z=R;C!==0&&z<this.length;z++){var T=this.words[z]|0;T+=C,C=T>>>26,T&=67108863,this.words[z]=T}if(C!==0)this.words[z]=C,this.length++;return this},Z.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Z.prototype.cmpn=function(O){var F=O<0;if(this.negative!==0&&!F)return-1;if(this.negative===0&&F)return 1;this._strip();var R;if(this.length>1)R=1;else{if(F)O=-O;X(O<=67108863,"Number is too big");var j=this.words[0]|0;R=j===O?0:j<O?-1:1}if(this.negative!==0)return-R|0;return R},Z.prototype.cmp=function(O){if(this.negative!==0&&O.negative===0)return-1;if(this.negative===0&&O.negative!==0)return 1;var F=this.ucmp(O);if(this.negative!==0)return-F|0;return F},Z.prototype.ucmp=function(O){if(this.length>O.length)return 1;if(this.length<O.length)return-1;var F=0;for(var R=this.length-1;R>=0;R--){var j=this.words[R]|0,C=O.words[R]|0;if(j===C)continue;if(j<C)F=-1;else if(j>C)F=1;break}return F},Z.prototype.gtn=function(O){return this.cmpn(O)===1},Z.prototype.gt=function(O){return this.cmp(O)===1},Z.prototype.gten=function(O){return this.cmpn(O)>=0},Z.prototype.gte=function(O){return this.cmp(O)>=0},Z.prototype.ltn=function(O){return this.cmpn(O)===-1},Z.prototype.lt=function(O){return this.cmp(O)===-1},Z.prototype.lten=function(O){return this.cmpn(O)<=0},Z.prototype.lte=function(O){return this.cmp(O)<=0},Z.prototype.eqn=function(O){return this.cmpn(O)===0},Z.prototype.eq=function(O){return this.cmp(O)===0},Z.red=function(O){return new V(O)},Z.prototype.toRed=function(O){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),O.convertTo(this)._forceRed(O)},Z.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Z.prototype._forceRed=function(O){return this.red=O,this},Z.prototype.forceRed=function(O){return X(!this.red,"Already a number in reduction context"),this._forceRed(O)},Z.prototype.redAdd=function(O){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,O)},Z.prototype.redIAdd=function(O){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,O)},Z.prototype.redSub=function(O){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,O)},Z.prototype.redISub=function(O){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,O)},Z.prototype.redShl=function(O){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,O)},Z.prototype.redMul=function(O){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.mul(this,O)},Z.prototype.redIMul=function(O){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.imul(this,O)},Z.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Z.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Z.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Z.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Z.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Z.prototype.redPow=function(O){return X(this.red&&!O.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,O)};var D0={k256:null,p224:null,p192:null,p25519:null};function M0(O,F){this.name=O,this.p=new Z(F,16),this.n=this.p.bitLength(),this.k=new Z(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}M0.prototype._tmp=function(){var O=new Z(null);return O.words=Array(Math.ceil(this.n/13)),O},M0.prototype.ireduce=function(O){var F=O,R;do this.split(F,this.tmp),F=this.imulK(F),F=F.iadd(this.tmp),R=F.bitLength();while(R>this.n);var j=R<this.n?-1:F.ucmp(this.p);if(j===0)F.words[0]=0,F.length=1;else if(j>0)F.isub(this.p);else if(F.strip!==void 0)F.strip();else F._strip();return F},M0.prototype.split=function(O,F){O.iushrn(this.n,0,F)},M0.prototype.imulK=function(O){return O.imul(this.k)};function S0(){M0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}K(S0,M0),S0.prototype.split=function(O,F){var R=4194303,j=Math.min(O.length,9);for(var C=0;C<j;C++)F.words[C]=O.words[C];if(F.length=j,O.length<=9){O.words[0]=0,O.length=1;return}var z=O.words[9];F.words[F.length++]=z&R;for(C=10;C<O.length;C++){var T=O.words[C]|0;O.words[C-10]=(T&R)<<4|z>>>22,z=T}if(z>>>=22,O.words[C-10]=z,z===0&&O.length>10)O.length-=10;else O.length-=9},S0.prototype.imulK=function(O){O.words[O.length]=0,O.words[O.length+1]=0,O.length+=2;var F=0;for(var R=0;R<O.length;R++){var j=O.words[R]|0;F+=j*977,O.words[R]=F&67108863,F=j*64+(F/67108864|0)}if(O.words[O.length-1]===0){if(O.length--,O.words[O.length-1]===0)O.length--}return O};function t(){M0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}K(t,M0);function R0(){M0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}K(R0,M0);function G(){M0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}K(G,M0),G.prototype.imulK=function(O){var F=0;for(var R=0;R<O.length;R++){var j=(O.words[R]|0)*19+F,C=j&67108863;j>>>=26,O.words[R]=C,F=j}if(F!==0)O.words[O.length++]=F;return O},Z._prime=function(O){if(D0[O])return D0[O];var F;if(O==="k256")F=new S0;else if(O==="p224")F=new t;else if(O==="p192")F=new R0;else if(O==="p25519")F=new G;else throw Error("Unknown prime "+O);return D0[O]=F,F};function V(O){if(typeof O==="string"){var F=Z._prime(O);this.m=F.p,this.prime=F}else X(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}V.prototype._verify1=function(O){X(O.negative===0,"red works only with positives"),X(O.red,"red works only with red numbers")},V.prototype._verify2=function(O,F){X((O.negative|F.negative)===0,"red works only with positives"),X(O.red&&O.red===F.red,"red works only with red numbers")},V.prototype.imod=function(O){if(this.prime)return this.prime.ireduce(O)._forceRed(this);return A(O,O.umod(this.m)._forceRed(this)),O},V.prototype.neg=function(O){if(O.isZero())return O.clone();return this.m.sub(O)._forceRed(this)},V.prototype.add=function(O,F){this._verify2(O,F);var R=O.add(F);if(R.cmp(this.m)>=0)R.isub(this.m);return R._forceRed(this)},V.prototype.iadd=function(O,F){this._verify2(O,F);var R=O.iadd(F);if(R.cmp(this.m)>=0)R.isub(this.m);return R},V.prototype.sub=function(O,F){this._verify2(O,F);var R=O.sub(F);if(R.cmpn(0)<0)R.iadd(this.m);return R._forceRed(this)},V.prototype.isub=function(O,F){this._verify2(O,F);var R=O.isub(F);if(R.cmpn(0)<0)R.iadd(this.m);return R},V.prototype.shl=function(O,F){return this._verify1(O),this.imod(O.ushln(F))},V.prototype.imul=function(O,F){return this._verify2(O,F),this.imod(O.imul(F))},V.prototype.mul=function(O,F){return this._verify2(O,F),this.imod(O.mul(F))},V.prototype.isqr=function(O){return this.imul(O,O.clone())},V.prototype.sqr=function(O){return this.mul(O,O)},V.prototype.sqrt=function(O){if(O.isZero())return O.clone();var F=this.m.andln(3);if(X(F%2===1),F===3){var R=this.m.add(new Z(1)).iushrn(2);return this.pow(O,R)}var j=this.m.subn(1),C=0;while(!j.isZero()&&j.andln(1)===0)C++,j.iushrn(1);X(!j.isZero());var z=new Z(1).toRed(this),T=z.redNeg(),x=this.m.subn(1).iushrn(1),v=this.m.bitLength();v=new Z(2*v*v).toRed(this);while(this.pow(v,x).cmp(T)!==0)v.redIAdd(T);var h=this.pow(v,j),r=this.pow(O,j.addn(1).iushrn(1)),U0=this.pow(O,j),K0=C;while(U0.cmp(z)!==0){var Q0=U0;for(var s=0;Q0.cmp(z)!==0;s++)Q0=Q0.redSqr();X(s<K0);var e=this.pow(h,new Z(1).iushln(K0-s-1));r=r.redMul(e),h=e.redSqr(),U0=U0.redMul(h),K0=s}return r},V.prototype.invm=function(O){var F=O._invmp(this.m);if(F.negative!==0)return F.negative=0,this.imod(F).redNeg();else return this.imod(F)},V.prototype.pow=function(O,F){if(F.isZero())return new Z(1).toRed(this);if(F.cmpn(1)===0)return O.clone();var R=4,j=Array(1<<R);j[0]=new Z(1).toRed(this),j[1]=O;for(var C=2;C<j.length;C++)j[C]=this.mul(j[C-1],O);var z=j[0],T=0,x=0,v=F.bitLength()%26;if(v===0)v=26;for(C=F.length-1;C>=0;C--){var h=F.words[C];for(var r=v-1;r>=0;r--){var U0=h>>r&1;if(z!==j[0])z=this.sqr(z);if(U0===0&&T===0){x=0;continue}if(T<<=1,T|=U0,x++,x!==R&&(C!==0||r!==0))continue;z=this.mul(z,j[T]),x=0,T=0}v=26}return z},V.prototype.convertTo=function(O){var F=O.umod(this.m);return F===O?F.clone():F},V.prototype.convertFrom=function(O){var F=O.clone();return F.red=null,F},Z.mont=function(O){return new D(O)};function D(O){if(V.call(this,O),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Z(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)}K(D,V),D.prototype.convertTo=function(O){return this.imod(O.ushln(this.shift))},D.prototype.convertFrom=function(O){var F=this.imod(O.mul(this.rinv));return F.red=null,F},D.prototype.imul=function(O,F){if(O.isZero()||F.isZero())return O.words[0]=0,O.length=1,O;var R=O.imul(F),j=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=R.isub(j).iushrn(this.shift),z=C;if(C.cmp(this.m)>=0)z=C.isub(this.m);else if(C.cmpn(0)<0)z=C.iadd(this.m);return z._forceRed(this)},D.prototype.mul=function(O,F){if(O.isZero()||F.isZero())return new Z(0)._forceRed(this);var R=O.mul(F),j=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=R.isub(j).iushrn(this.shift),z=C;if(C.cmp(this.m)>=0)z=C.isub(this.m);else if(C.cmpn(0)<0)z=C.iadd(this.m);return z._forceRed(this)},D.prototype.invm=function(O){var F=this.imod(O._invmp(this.m).mul(this.r2));return F._forceRed(this)}})(typeof I>"u"||I,J)}),Sj=u0((J,I)=>{var Y=Yy(),W=R8(),X=y6().Buffer;function K(E){var _=E.modulus.byteLength(),S;do S=new Y(W(_));while(S.cmp(E.modulus)>=0||!S.umod(E.prime1)||!S.umod(E.prime2));return S}function Z(E){var _=K(E),S=_.toRed(Y.mont(E.modulus)).redPow(new Y(E.publicExponent)).fromRed();return{blinder:S,unblinder:_.invm(E.modulus)}}function L(E,_){var S=Z(_),A=_.modulus.byteLength(),q=new Y(E).mul(S.blinder).umod(_.modulus),B=q.toRed(Y.mont(_.prime1)),N=q.toRed(Y.mont(_.prime2)),f=_.coefficient,w=_.prime1,u=_.prime2,g=B.redPow(_.exponent1).fromRed(),b=N.redPow(_.exponent2).fromRed(),p=g.isub(b).imul(f).umod(w).imul(u);return b.iadd(p).imul(S.unblinder).umod(_.modulus).toArrayLike(X,"be",A)}L.getr=K,I.exports=L}),Gy=u0((J,I)=>{var Y=Rj(),W=R8(),X=P8(),K=Pj(),Z=_j(),L=PH(),E=qj(),_=Sj(),S=y6().Buffer;I.exports=function(N,f,w){var u;if(N.padding)u=N.padding;else if(w)u=1;else u=4;var g=Y(N),b;if(u===4)b=A(g,f);else if(u===1)b=q(g,f,w);else if(u===3){if(b=new L(f),b.cmp(g.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(w)return _(b,g);else return E(b,g)};function A(N,f){var w=N.modulus.byteLength(),u=f.length,g=X("sha1").update(S.alloc(0)).digest(),b=g.length,p=2*b;if(u>w-p-2)throw Error("message too long");var n=S.alloc(w-u-p-2),a=w-b-1,D0=W(b),M0=Z(S.concat([g,n,S.alloc(1,1),f],a),K(D0,a)),S0=Z(D0,K(M0,b));return new L(S.concat([S.alloc(1),S0,M0],w))}function q(N,f,w){var u=f.length,g=N.modulus.byteLength();if(u>g-11)throw Error("message too long");var b;if(w)b=S.alloc(g-u-3,255);else b=B(g-u-3);return new L(S.concat([S.from([0,w?1:2]),b,S.alloc(1),f],g))}function B(N){var f=S.allocUnsafe(N),w=0,u=W(N*2),g=0,b;while(w<N){if(g===u.length)u=W(N*2),g=0;if(b=u[g++],b)f[w++]=b}return f}}),Zy=u0((J,I)=>{var Y=Rj(),W=Pj(),X=_j(),K=PH(),Z=Sj(),L=P8(),E=qj(),_=y6().Buffer;I.exports=function(B,N,f){var w;if(B.padding)w=B.padding;else if(f)w=1;else w=4;var u=Y(B),g=u.modulus.byteLength();if(N.length>g||new K(N).cmp(u.modulus)>=0)throw Error("decryption error");var b;if(f)b=E(new K(N),u);else b=Z(N,u);var p=_.alloc(g-b.length);if(b=_.concat([p,b],g),w===4)return S(u,b);else if(w===1)return A(u,b,f);else if(w===3)return b;else throw Error("unknown padding")};function S(B,N){var f=B.modulus.byteLength(),w=L("sha1").update(_.alloc(0)).digest(),u=w.length;if(N[0]!==0)throw Error("decryption error");var g=N.slice(1,u+1),b=N.slice(u+1),p=X(g,W(b,u)),n=X(b,W(p,f-u-1));if(q(w,n.slice(0,u)))throw Error("decryption error");var a=u;while(n[a]===0)a++;if(n[a++]!==1)throw Error("decryption error");return n.slice(a)}function A(B,N,f){var w=N.slice(0,2),u=2,g=0;while(N[u++]!==0)if(u>=N.length){g++;break}var b=N.slice(2,u-1);if(w.toString("hex")!=="0002"&&!f||w.toString("hex")!=="0001"&&f)g++;if(b.length<8)g++;if(g)throw Error("decryption error");return N.slice(u)}function q(B,N){B=_.from(B),N=_.from(N);var f=0,w=B.length;if(B.length!==N.length)f++,w=Math.min(B.length,N.length);var u=-1;while(++u<w)f+=B[u]^N[u];return f}}),HH=u0((J)=>{J.publicEncrypt=Gy(),J.privateDecrypt=Zy(),J.privateEncrypt=function(I,Y){return J.publicEncrypt(I,Y,!0)},J.publicDecrypt=function(I,Y){return J.privateDecrypt(I,Y,!0)}}),zy=u0((J)=>{var I=(bU(),E$(A1));if(typeof I.publicEncrypt!=="function")I=HH();if(J.publicEncrypt=I.publicEncrypt,J.privateDecrypt=I.privateDecrypt,typeof I.privateEncrypt!=="function")J.privateEncrypt=HH().privateEncrypt;else J.privateEncrypt=I.privateEncrypt;if(typeof I.publicDecrypt!=="function")J.publicDecrypt=HH().publicDecrypt;else J.publicDecrypt=I.publicDecrypt}),Ky=u0((J)=>{var I=y6(),Y=R8(),W=I.Buffer,X=I.kMaxLength,K=globalThis.crypto||globalThis.msCrypto,Z=Math.pow(2,32)-1;function L(q,B){if(typeof q!=="number"||q!==q)throw TypeError("offset must be a number");if(q>Z||q<0)throw TypeError("offset must be a uint32");if(q>X||q>B)throw RangeError("offset out of range")}function E(q,B,N){if(typeof q!=="number"||q!==q)throw TypeError("size must be a number");if(q>Z||q<0)throw TypeError("size must be a uint32");if(q+B>N||q>X)throw RangeError("buffer too small")}K&&K.getRandomValues,J.randomFill=_,J.randomFillSync=A;function _(q,B,N,f){if(!W.isBuffer(q)&&!(q instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof B==="function")f=B,B=0,N=q.length;else if(typeof N==="function")f=N,N=q.length-B;else if(typeof f!=="function")throw TypeError('"cb" argument must be a function');return L(B,q.length),E(N,B,q.length),S(q,B,N,f)}function S(q,B,N,f){if(!1)var w,u;if(f){Y(N,function(b,p){if(b)return f(b);p.copy(q,B),f(null,q)});return}var g=Y(N);return g.copy(q,B),q}function A(q,B,N){if(typeof B>"u")B=0;if(!W.isBuffer(q)&&!(q instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(L(B,q.length),N===void 0)N=q.length-B;return E(N,B,q.length),S(q,B,N)}}),Wy=u0((J,I)=>{var Y=(bU(),E$(A1));if(typeof Y.randomFill==="function"&&typeof Y.randomFillSync==="function")J.randomFill=Y.randomFill,J.randomFillSync=Y.randomFillSync;else I.exports=Ky()}),Oy=u0((J)=>{J.randomBytes=J.rng=J.pseudoRandomBytes=J.prng=R8(),J.createHash=J.Hash=P8(),J.createHmac=J.Hmac=$j();var I=ww(),Y=Object.keys(I),W=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Y);J.getHashes=function(){return W};var X=Wj();J.pbkdf2=X.pbkdf2,J.pbkdf2Sync=X.pbkdf2Sync;var K=Lf();J.Cipher=K.Cipher,J.createCipher=K.createCipher,J.Cipheriv=K.Cipheriv,J.createCipheriv=K.createCipheriv,J.Decipher=K.Decipher,J.createDecipher=K.createDecipher,J.Decipheriv=K.Decipheriv,J.createDecipheriv=K.createDecipheriv,J.getCiphers=K.getCiphers,J.listCiphers=K.listCiphers;var Z=Mf();J.DiffieHellmanGroup=Z.DiffieHellmanGroup,J.createDiffieHellmanGroup=Z.createDiffieHellmanGroup,J.getDiffieHellman=Z.getDiffieHellman,J.createDiffieHellman=Z.createDiffieHellman,J.DiffieHellman=Z.DiffieHellman;var L=Af();J.createSign=L.createSign,J.Sign=L.Sign,J.createVerify=L.createVerify,J.Verify=L.Verify,J.createECDH=pf();var E=zy();J.publicEncrypt=E.publicEncrypt,J.privateEncrypt=E.privateEncrypt,J.publicDecrypt=E.publicDecrypt,J.privateDecrypt=E.privateDecrypt;var _=Wy();J.randomFill=_.randomFill,J.randomFillSync=_.randomFillSync,J.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
|
|
244
|
+
we accept pull requests
|
|
245
|
+
https://github.com/browserify/crypto-browserify`)},J.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}}),h$=xw(Oy(),1),Vy=h$.prng,Hy=h$.pseudoRandomBytes,Fy=h$.rng,Dy=h$.randomBytes,Ly=h$.Hash,M1=h$.createHash,My=h$.Hmac,Ay=h$.createHmac,Cy=h$.getHashes,Ty=h$.pbkdf2,Ry=h$.pbkdf2Sync,Py=h$.Cipher,_y=h$.createCipher,qy=h$.Cipheriv,Sy=h$.createCipheriv,jy=h$.Decipher,Ey=h$.createDecipher,By=h$.Decipheriv,vy=h$.createDecipheriv,Ny=h$.getCiphers,ky=h$.listCiphers,gy=h$.DiffieHellmanGroup,xy=h$.createDiffieHellmanGroup,wy=h$.getDiffieHellman,fy=h$.createDiffieHellman,yy=h$.DiffieHellman,by=h$.createSign,uy=h$.Sign,hy=h$.createVerify,cy=h$.Verify,py=h$.createECDH,my=h$.publicEncrypt,ly=h$.privateEncrypt,ny=h$.publicDecrypt,dy=h$.privateDecrypt,oy=h$.randomFill,iy=h$.randomFillSync,ry=h$.createCredentials,ty=h$.constants,ey=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];Ub=crypto,Jb=crypto});var fv={};w6(fv,{resolveObject:()=>wv,resolve:()=>xv,parse:()=>VY,format:()=>gv,default:()=>yp,Url:()=>R1,URLSearchParams:()=>Nv,URL:()=>sM});function eM(J){return typeof J==="string"}function kv(J){return typeof J==="object"&&J!==null}function KW(J){return J===null}function Ep(J){return J==null}function R1(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function VY(J,I,Y){if(J&&kv(J)&&J instanceof R1)return J;var W=new R1;return W.parse(J,I,Y),W}function gv(J){if(eM(J))J=VY(J);if(!(J instanceof R1))return R1.prototype.format.call(J);return J.format()}function xv(J,I){return VY(J,!1,!0).resolve(I)}function wv(J,I){if(!J)return I;return VY(J,!1,!0).resolveObject(I)}var sM,Nv,Bp,vp,Np,kp,gp,rM,Ev,Bv,xp=255,vv,wp,fp,tM,OY,aM,yp;var yv=CQ(()=>{({URL:sM,URLSearchParams:Nv}=globalThis);Bp=/^([a-z0-9.+-]+:)/i,vp=/:[0-9]*$/,Np=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,kp=["<",">",'"',"`"," ","\r",`
|
|
246
|
+
`,"\t"],gp=["{","}","|","\\","^","`"].concat(kp),rM=["'"].concat(gp),Ev=["%","/","?",";","#"].concat(rM),Bv=["/","?","#"],vv=/^[+a-z0-9A-Z_-]{0,63}$/,wp=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,fp={javascript:!0,"javascript:":!0},tM={javascript:!0,"javascript:":!0},OY={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},aM={parse(J){var I=decodeURIComponent;return(J+"").replace(/\+/g," ").split("&").filter(Boolean).reduce(function(Y,W,X){var K=W.split("="),Z=I(K[0]||""),L=I(K[1]||""),E=Y[Z];return Y[Z]=E===void 0?L:[].concat(E,L),Y},{})},stringify(J){var I=encodeURIComponent;return Object.keys(J||{}).reduce(function(Y,W){return[].concat(J[W]).forEach(function(X){Y.push(I(W)+"="+I(X))}),Y},[]).join("&").replace(/\s/g,"+")}};R1.prototype.parse=function(J,I,Y){if(!eM(J))throw TypeError("Parameter 'url' must be a string, not "+typeof J);var W=J.indexOf("?"),X=W!==-1&&W<J.indexOf("#")?"?":"#",K=J.split(X),Z=/\\/g;K[0]=K[0].replace(Z,"/"),J=K.join(X);var L=J;if(L=L.trim(),!Y&&J.split("#").length===1){var E=Np.exec(L);if(E){if(this.path=L,this.href=L,this.pathname=E[1],E[2])if(this.search=E[2],I)this.query=aM.parse(this.search.substr(1));else this.query=this.search.substr(1);else if(I)this.search="",this.query={};return this}}var _=Bp.exec(L);if(_){_=_[0];var S=_.toLowerCase();this.protocol=S,L=L.substr(_.length)}if(Y||_||L.match(/^\/\/[^@\/]+@[^@\/]+/)){var A=L.substr(0,2)==="//";if(A&&!(_&&tM[_]))L=L.substr(2),this.slashes=!0}if(!tM[_]&&(A||_&&!OY[_])){var q=-1;for(var B=0;B<Bv.length;B++){var N=L.indexOf(Bv[B]);if(N!==-1&&(q===-1||N<q))q=N}var f,w;if(q===-1)w=L.lastIndexOf("@");else w=L.lastIndexOf("@",q);if(w!==-1)f=L.slice(0,w),L=L.slice(w+1),this.auth=decodeURIComponent(f);q=-1;for(var B=0;B<Ev.length;B++){var N=L.indexOf(Ev[B]);if(N!==-1&&(q===-1||N<q))q=N}if(q===-1)q=L.length;this.host=L.slice(0,q),L=L.slice(q),this.parseHost(),this.hostname=this.hostname||"";var u=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!u){var g=this.hostname.split(/\./);for(var B=0,b=g.length;B<b;B++){var p=g[B];if(!p)continue;if(!p.match(vv)){var n="";for(var a=0,D0=p.length;a<D0;a++)if(p.charCodeAt(a)>127)n+="x";else n+=p[a];if(!n.match(vv)){var M0=g.slice(0,B),S0=g.slice(B+1),t=p.match(wp);if(t)M0.push(t[1]),S0.unshift(t[2]);if(S0.length)L="/"+S0.join(".")+L;this.hostname=M0.join(".");break}}}}if(this.hostname.length>xp)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!u)this.hostname=new sM(`https://${this.hostname}`).hostname;var R0=this.port?":"+this.port:"",G=this.hostname||"";if(this.host=G+R0,this.href+=this.host,u){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/")L="/"+L}}if(!fp[S])for(var B=0,b=rM.length;B<b;B++){var V=rM[B];if(L.indexOf(V)===-1)continue;var D=encodeURIComponent(V);if(D===V)D=escape(V);L=L.split(V).join(D)}var O=L.indexOf("#");if(O!==-1)this.hash=L.substr(O),L=L.slice(0,O);var F=L.indexOf("?");if(F!==-1){if(this.search=L.substr(F),this.query=L.substr(F+1),I)this.query=aM.parse(this.query);L=L.slice(0,F)}else if(I)this.search="",this.query={};if(L)this.pathname=L;if(OY[S]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var R0=this.pathname||"",R=this.search||"";this.path=R0+R}return this.href=this.format(),this};R1.prototype.format=function(){var J=this.auth||"";if(J)J=encodeURIComponent(J),J=J.replace(/%3A/i,":"),J+="@";var I=this.protocol||"",Y=this.pathname||"",W=this.hash||"",X=!1,K="";if(this.host)X=J+this.host;else if(this.hostname){if(X=J+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)X+=":"+this.port}if(this.query&&kv(this.query)&&Object.keys(this.query).length)K=aM.stringify(this.query);var Z=this.search||K&&"?"+K||"";if(I&&I.substr(-1)!==":")I+=":";if(this.slashes||(!I||OY[I])&&X!==!1){if(X="//"+(X||""),Y&&Y.charAt(0)!=="/")Y="/"+Y}else if(!X)X="";if(W&&W.charAt(0)!=="#")W="#"+W;if(Z&&Z.charAt(0)!=="?")Z="?"+Z;return Y=Y.replace(/[?#]/g,function(L){return encodeURIComponent(L)}),Z=Z.replace("#","%23"),I+X+Y+Z+W};R1.prototype.resolve=function(J){return this.resolveObject(VY(J,!1,!0)).format()};R1.prototype.resolveObject=function(J){if(eM(J)){var I=new R1;I.parse(J,!1,!0),J=I}var Y=new R1,W=Object.keys(this);for(var X=0;X<W.length;X++){var K=W[X];Y[K]=this[K]}if(Y.hash=J.hash,J.href==="")return Y.href=Y.format(),Y;if(J.slashes&&!J.protocol){var Z=Object.keys(J);for(var L=0;L<Z.length;L++){var E=Z[L];if(E!=="protocol")Y[E]=J[E]}if(OY[Y.protocol]&&Y.hostname&&!Y.pathname)Y.path=Y.pathname="/";return Y.href=Y.format(),Y}if(J.protocol&&J.protocol!==Y.protocol){if(!OY[J.protocol]){var _=Object.keys(J);for(var S=0;S<_.length;S++){var A=_[S];Y[A]=J[A]}return Y.href=Y.format(),Y}if(Y.protocol=J.protocol,!J.host&&!tM[J.protocol]){var b=(J.pathname||"").split("/");while(b.length&&!(J.host=b.shift()));if(!J.host)J.host="";if(!J.hostname)J.hostname="";if(b[0]!=="")b.unshift("");if(b.length<2)b.unshift("");Y.pathname=b.join("/")}else Y.pathname=J.pathname;if(Y.search=J.search,Y.query=J.query,Y.host=J.host||"",Y.auth=J.auth,Y.hostname=J.hostname||J.host,Y.port=J.port,Y.pathname||Y.search){var q=Y.pathname||"",B=Y.search||"";Y.path=q+B}return Y.slashes=Y.slashes||J.slashes,Y.href=Y.format(),Y}var N=Y.pathname&&Y.pathname.charAt(0)==="/",f=J.host||J.pathname&&J.pathname.charAt(0)==="/",w=f||N||Y.host&&J.pathname,u=w,g=Y.pathname&&Y.pathname.split("/")||[],b=J.pathname&&J.pathname.split("/")||[],p=Y.protocol&&!OY[Y.protocol];if(p){if(Y.hostname="",Y.port=null,Y.host)if(g[0]==="")g[0]=Y.host;else g.unshift(Y.host);if(Y.host="",J.protocol){if(J.hostname=null,J.port=null,J.host)if(b[0]==="")b[0]=J.host;else b.unshift(J.host);J.host=null}w=w&&(b[0]===""||g[0]==="")}if(f)Y.host=J.host||J.host===""?J.host:Y.host,Y.hostname=J.hostname||J.hostname===""?J.hostname:Y.hostname,Y.search=J.search,Y.query=J.query,g=b;else if(b.length){if(!g)g=[];g.pop(),g=g.concat(b),Y.search=J.search,Y.query=J.query}else if(!Ep(J.search)){if(p){Y.hostname=Y.host=g.shift();var n=Y.host&&Y.host.indexOf("@")>0?Y.host.split("@"):!1;if(n)Y.auth=n.shift(),Y.host=Y.hostname=n.shift()}if(Y.search=J.search,Y.query=J.query,!KW(Y.pathname)||!KW(Y.search))Y.path=(Y.pathname?Y.pathname:"")+(Y.search?Y.search:"");return Y.href=Y.format(),Y}if(!g.length){if(Y.pathname=null,Y.search)Y.path="/"+Y.search;else Y.path=null;return Y.href=Y.format(),Y}var a=g.slice(-1)[0],D0=(Y.host||J.host||g.length>1)&&(a==="."||a==="..")||a==="",M0=0;for(var S0=g.length;S0>=0;S0--)if(a=g[S0],a===".")g.splice(S0,1);else if(a==="..")g.splice(S0,1),M0++;else if(M0)g.splice(S0,1),M0--;if(!w&&!u)for(;M0--;M0)g.unshift("..");if(w&&g[0]!==""&&(!g[0]||g[0].charAt(0)!=="/"))g.unshift("");if(D0&&g.join("/").substr(-1)!=="/")g.push("");var t=g[0]===""||g[0]&&g[0].charAt(0)==="/";if(p){Y.hostname=Y.host=t?"":g.length?g.shift():"";var n=Y.host&&Y.host.indexOf("@")>0?Y.host.split("@"):!1;if(n)Y.auth=n.shift(),Y.host=Y.hostname=n.shift()}if(w=w||Y.host&&g.length,w&&!t)g.unshift("");if(!g.length)Y.pathname=null,Y.path=null;else Y.pathname=g.join("/");if(!KW(Y.pathname)||!KW(Y.search))Y.path=(Y.pathname?Y.pathname:"")+(Y.search?Y.search:"");return Y.auth=J.auth||Y.auth,Y.slashes=Y.slashes||J.slashes,Y.href=Y.format(),Y};R1.prototype.parseHost=function(){var J=this.host,I=vp.exec(J);if(I){if(I=I[0],I!==":")this.port=I.substr(1);J=J.substr(0,J.length-I.length)}if(J)this.hostname=J};yp={parse:VY,resolve:xv,resolveObject:wv,format:gv,Url:R1,URL:sM,URLSearchParams:Nv}});var tv={};w6(tv,{request:()=>Um,globalAgent:()=>Ym,get:()=>Jm,default:()=>rv,STATUS_CODES:()=>Gm,METHODS:()=>Zm,IncomingMessage:()=>Im,ClientRequest:()=>Xm,Agent:()=>Qm});var bp,up,bv,hp,cp,pp=(J,I,Y)=>{Y=J!=null?bp(up(J)):{};let W=I||!J||!J.__esModule?bv(Y,"default",{value:J,enumerable:!0}):Y;for(let X of hp(J))if(!cp.call(W,X))bv(W,X,{get:()=>J[X],enumerable:!0});return W},vU=(J,I)=>()=>(I||J((I={exports:{}}).exports,I),I.exports),hv,mp,MI,lp,cv,AI,pv,np,mv,HY,dp,uv,$A,op,ip,lv,nv,rp,tp,dv,ov,ap,sp,ep,$m,iv,Um,Jm,Xm,Im,Qm,Ym,Gm,Zm,rv;var UA=CQ(()=>{bp=Object.create,{getPrototypeOf:up,defineProperty:bv,getOwnPropertyNames:hp}=Object,cp=Object.prototype.hasOwnProperty,hv=vU((J)=>{J.fetch=X(globalThis.fetch)&&X(globalThis.ReadableStream),J.writableStream=X(globalThis.WritableStream),J.abortController=X(globalThis.AbortController);var I;function Y(){if(I!==void 0)return I;if(globalThis.XMLHttpRequest){I=new globalThis.XMLHttpRequest;try{I.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch(K){I=null}}else I=null;return I}function W(K){var Z=Y();if(!Z)return!1;try{return Z.responseType=K,Z.responseType===K}catch(L){}return!1}J.arraybuffer=J.fetch||W("arraybuffer"),J.msstream=!J.fetch&&W("ms-stream"),J.mozchunkedarraybuffer=!J.fetch&&W("moz-chunked-arraybuffer"),J.overrideMimeType=J.fetch||(Y()?X(Y().overrideMimeType):!1);function X(K){return typeof K==="function"}I=null}),mp=vU((J,I)=>{if(typeof Object.create==="function")I.exports=function(Y,W){if(W)Y.super_=W,Y.prototype=Object.create(W.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(Y,W){if(W){Y.super_=W;var X=function(){};X.prototype=W.prototype,Y.prototype=new X,Y.prototype.constructor=Y}}}),MI=vU((J,I)=>{try{if(Y=(SQ(),E$(qQ)),typeof Y.inherits!=="function")throw"";I.exports=Y.inherits}catch(W){I.exports=mp()}var Y}),lp=vU((J,I)=>{function Y(w,u){var g=Object.keys(w);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(w);u&&(b=b.filter(function(p){return Object.getOwnPropertyDescriptor(w,p).enumerable})),g.push.apply(g,b)}return g}function W(w){for(var u=1;u<arguments.length;u++){var g=arguments[u]!=null?arguments[u]:{};u%2?Y(Object(g),!0).forEach(function(b){X(w,b,g[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(g)):Y(Object(g)).forEach(function(b){Object.defineProperty(w,b,Object.getOwnPropertyDescriptor(g,b))})}return w}function X(w,u,g){if(u=E(u),u in w)Object.defineProperty(w,u,{value:g,enumerable:!0,configurable:!0,writable:!0});else w[u]=g;return w}function K(w,u){if(!(w instanceof u))throw TypeError("Cannot call a class as a function")}function Z(w,u){for(var g=0;g<u.length;g++){var b=u[g];if(b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b)b.writable=!0;Object.defineProperty(w,E(b.key),b)}}function L(w,u,g){if(u)Z(w.prototype,u);if(g)Z(w,g);return Object.defineProperty(w,"prototype",{writable:!1}),w}function E(w){var u=_(w,"string");return typeof u==="symbol"?u:String(u)}function _(w,u){if(typeof w!=="object"||w===null)return w;var g=w[Symbol.toPrimitive];if(g!==void 0){var b=g.call(w,u||"default");if(typeof b!=="object")return b;throw TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(w)}var S=(iU(),E$(oU)),A=S.Buffer,q=(SQ(),E$(qQ)),B=q.inspect,N=B&&B.custom||"inspect";function f(w,u,g){A.prototype.copy.call(w,u,g)}I.exports=function(){function w(){K(this,w),this.head=null,this.tail=null,this.length=0}return L(w,[{key:"push",value:function(u){var g={data:u,next:null};if(this.length>0)this.tail.next=g;else this.head=g;this.tail=g,++this.length}},{key:"unshift",value:function(u){var g={data:u,next:this.head};if(this.length===0)this.tail=g;this.head=g,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var u=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,u}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(u){if(this.length===0)return"";var g=this.head,b=""+g.data;while(g=g.next)b+=u+g.data;return b}},{key:"concat",value:function(u){if(this.length===0)return A.alloc(0);var g=A.allocUnsafe(u>>>0),b=this.head,p=0;while(b)f(b.data,g,p),p+=b.data.length,b=b.next;return g}},{key:"consume",value:function(u,g){var b;if(u<this.head.data.length)b=this.head.data.slice(0,u),this.head.data=this.head.data.slice(u);else if(u===this.head.data.length)b=this.shift();else b=g?this._getString(u):this._getBuffer(u);return b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(u){var g=this.head,b=1,p=g.data;u-=p.length;while(g=g.next){var n=g.data,a=u>n.length?n.length:u;if(a===n.length)p+=n;else p+=n.slice(0,u);if(u-=a,u===0){if(a===n.length)if(++b,g.next)this.head=g.next;else this.head=this.tail=null;else this.head=g,g.data=n.slice(a);break}++b}return this.length-=b,p}},{key:"_getBuffer",value:function(u){var g=A.allocUnsafe(u),b=this.head,p=1;b.data.copy(g),u-=b.data.length;while(b=b.next){var n=b.data,a=u>n.length?n.length:u;if(n.copy(g,g.length-u,0,a),u-=a,u===0){if(a===n.length)if(++p,b.next)this.head=b.next;else this.head=this.tail=null;else this.head=b,b.data=n.slice(a);break}++p}return this.length-=p,g}},{key:N,value:function(u,g){return B(this,W(W({},g),{},{depth:0,customInspect:!1}))}}]),w}()}),cv=vU((J,I)=>{function Y(E,_){var S=this,A=this._readableState&&this._readableState.destroyed,q=this._writableState&&this._writableState.destroyed;if(A||q){if(_)_(E);else if(E){if(!this._writableState)process.nextTick(Z,this,E);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(Z,this,E)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(E||null,function(B){if(!_&&B)if(!S._writableState)process.nextTick(W,S,B);else if(!S._writableState.errorEmitted)S._writableState.errorEmitted=!0,process.nextTick(W,S,B);else process.nextTick(X,S);else if(_)process.nextTick(X,S),_(B);else process.nextTick(X,S)}),this}function W(E,_){Z(E,_),X(E)}function X(E){if(E._writableState&&!E._writableState.emitClose)return;if(E._readableState&&!E._readableState.emitClose)return;E.emit("close")}function K(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function Z(E,_){E.emit("error",_)}function L(E,_){var{_readableState:S,_writableState:A}=E;if(S&&S.autoDestroy||A&&A.autoDestroy)E.destroy(_);else E.emit("error",_)}I.exports={destroy:Y,undestroy:K,errorOrDestroy:L}}),AI=vU((J,I)=>{var Y={};function W(E,_,S){if(!S)S=Error;function A(B,N,f){if(typeof _==="string")return _;else return _(B,N,f)}class q extends S{constructor(B,N,f){super(A(B,N,f))}}q.prototype.name=S.name,q.prototype.code=E,Y[E]=q}function X(E,_){if(Array.isArray(E)){let S=E.length;if(E=E.map((A)=>String(A)),S>2)return`one of ${_} ${E.slice(0,S-1).join(", ")}, or `+E[S-1];else if(S===2)return`one of ${_} ${E[0]} or ${E[1]}`;else return`of ${_} ${E[0]}`}else return`of ${_} ${String(E)}`}function K(E,_,S){return E.substr(!S||S<0?0:+S,_.length)===_}function Z(E,_,S){if(S===void 0||S>E.length)S=E.length;return E.substring(S-_.length,S)===_}function L(E,_,S){if(typeof S!=="number")S=0;if(S+_.length>E.length)return!1;else return E.indexOf(_,S)!==-1}W("ERR_INVALID_OPT_VALUE",function(E,_){return'The value "'+_+'" is invalid for option "'+E+'"'},TypeError),W("ERR_INVALID_ARG_TYPE",function(E,_,S){let A;if(typeof _==="string"&&K(_,"not "))A="must not be",_=_.replace(/^not /,"");else A="must be";let q;if(Z(E," argument"))q=`The ${E} ${A} ${X(_,"type")}`;else{let B=L(E,".")?"property":"argument";q=`The "${E}" ${B} ${A} ${X(_,"type")}`}return q+=`. Received type ${typeof S}`,q},TypeError),W("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),W("ERR_METHOD_NOT_IMPLEMENTED",function(E){return"The "+E+" method is not implemented"}),W("ERR_STREAM_PREMATURE_CLOSE","Premature close"),W("ERR_STREAM_DESTROYED",function(E){return"Cannot call "+E+" after a stream was destroyed"}),W("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),W("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),W("ERR_STREAM_WRITE_AFTER_END","write after end"),W("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),W("ERR_UNKNOWN_ENCODING",function(E){return"Unknown encoding: "+E},TypeError),W("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),J.codes=Y}),pv=vU((J,I)=>{var Y=AI().codes.ERR_INVALID_OPT_VALUE;function W(K,Z,L){return K.highWaterMark!=null?K.highWaterMark:Z?K[L]:null}function X(K,Z,L,E){var _=W(Z,E,L);if(_!=null){if(!(isFinite(_)&&Math.floor(_)===_)||_<0){var S=E?L:"highWaterMark";throw new Y(S,_)}return Math.floor(_)}return K.objectMode?16:16384}I.exports={getHighWaterMark:X}}),np=vU((J,I)=>{I.exports=(SQ(),E$(qQ)).deprecate}),mv=vU((J,I)=>{I.exports=t;function Y(Q0){var s=this;this.next=null,this.entry=null,this.finish=function(){K0(s,Q0)}}var W;t.WritableState=M0;var X={deprecate:np()},K=NQ(),Z=(iU(),E$(oU)).Buffer,L=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E(Q0){return Z.from(Q0)}function _(Q0){return Z.isBuffer(Q0)||Q0 instanceof L}var S=cv(),A=pv(),q=A.getHighWaterMark,B=AI().codes,N=B.ERR_INVALID_ARG_TYPE,f=B.ERR_METHOD_NOT_IMPLEMENTED,w=B.ERR_MULTIPLE_CALLBACK,u=B.ERR_STREAM_CANNOT_PIPE,g=B.ERR_STREAM_DESTROYED,b=B.ERR_STREAM_NULL_VALUES,p=B.ERR_STREAM_WRITE_AFTER_END,n=B.ERR_UNKNOWN_ENCODING,a=S.errorOrDestroy;MI()(t,K);function D0(){}function M0(Q0,s,e){if(W=W||HY(),Q0=Q0||{},typeof e!=="boolean")e=s instanceof W;if(this.objectMode=!!Q0.objectMode,e)this.objectMode=this.objectMode||!!Q0.writableObjectMode;this.highWaterMark=q(this,Q0,"writableHighWaterMark",e),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var I0=Q0.decodeStrings===!1;this.decodeStrings=!I0,this.defaultEncoding=Q0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z0){j(s,Z0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q0.emitClose!==!1,this.autoDestroy=!!Q0.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Y(this)}M0.prototype.getBuffer=function(){var Q0=this.bufferedRequest,s=[];while(Q0)s.push(Q0),Q0=Q0.next;return s},function(){try{Object.defineProperty(M0.prototype,"buffer",{get:X.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q0){}}();var S0;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")S0=Function.prototype[Symbol.hasInstance],Object.defineProperty(t,Symbol.hasInstance,{value:function(Q0){if(S0.call(this,Q0))return!0;if(this!==t)return!1;return Q0&&Q0._writableState instanceof M0}});else S0=function(Q0){return Q0 instanceof this};function t(Q0){W=W||HY();var s=this instanceof W;if(!s&&!S0.call(t,this))return new t(Q0);if(this._writableState=new M0(Q0,this,s),this.writable=!0,Q0){if(typeof Q0.write==="function")this._write=Q0.write;if(typeof Q0.writev==="function")this._writev=Q0.writev;if(typeof Q0.destroy==="function")this._destroy=Q0.destroy;if(typeof Q0.final==="function")this._final=Q0.final}K.call(this)}t.prototype.pipe=function(){a(this,new u)};function R0(Q0,s){var e=new p;a(Q0,e),process.nextTick(s,e)}function G(Q0,s,e,I0){var Z0;if(e===null)Z0=new b;else if(typeof e!=="string"&&!s.objectMode)Z0=new N("chunk",["string","Buffer"],e);if(Z0)return a(Q0,Z0),process.nextTick(I0,Z0),!1;return!0}t.prototype.write=function(Q0,s,e){var I0=this._writableState,Z0=!1,C0=!I0.objectMode&&_(Q0);if(C0&&!Z.isBuffer(Q0))Q0=E(Q0);if(typeof s==="function")e=s,s=null;if(C0)s="buffer";else if(!s)s=I0.defaultEncoding;if(typeof e!=="function")e=D0;if(I0.ending)R0(this,e);else if(C0||G(this,I0,Q0,e))I0.pendingcb++,Z0=D(this,I0,C0,Q0,s,e);return Z0},t.prototype.cork=function(){this._writableState.corked++},t.prototype.uncork=function(){var Q0=this._writableState;if(Q0.corked){if(Q0.corked--,!Q0.writing&&!Q0.corked&&!Q0.bufferProcessing&&Q0.bufferedRequest)T(this,Q0)}},t.prototype.setDefaultEncoding=function(Q0){if(typeof Q0==="string")Q0=Q0.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q0+"").toLowerCase())>-1))throw new n(Q0);return this._writableState.defaultEncoding=Q0,this},Object.defineProperty(t.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function V(Q0,s,e){if(!Q0.objectMode&&Q0.decodeStrings!==!1&&typeof s==="string")s=Z.from(s,e);return s}Object.defineProperty(t.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function D(Q0,s,e,I0,Z0,C0){if(!e){var $0=V(s,I0,Z0);if(I0!==$0)e=!0,Z0="buffer",I0=$0}var c=s.objectMode?1:I0.length;s.length+=c;var d=s.length<s.highWaterMark;if(!d)s.needDrain=!0;if(s.writing||s.corked){var L0=s.lastBufferedRequest;if(s.lastBufferedRequest={chunk:I0,encoding:Z0,isBuf:e,callback:C0,next:null},L0)L0.next=s.lastBufferedRequest;else s.bufferedRequest=s.lastBufferedRequest;s.bufferedRequestCount+=1}else O(Q0,s,!1,c,I0,Z0,C0);return d}function O(Q0,s,e,I0,Z0,C0,$0){if(s.writelen=I0,s.writecb=$0,s.writing=!0,s.sync=!0,s.destroyed)s.onwrite(new g("write"));else if(e)Q0._writev(Z0,s.onwrite);else Q0._write(Z0,C0,s.onwrite);s.sync=!1}function F(Q0,s,e,I0,Z0){if(--s.pendingcb,e)process.nextTick(Z0,I0),process.nextTick(r,Q0,s),Q0._writableState.errorEmitted=!0,a(Q0,I0);else Z0(I0),Q0._writableState.errorEmitted=!0,a(Q0,I0),r(Q0,s)}function R(Q0){Q0.writing=!1,Q0.writecb=null,Q0.length-=Q0.writelen,Q0.writelen=0}function j(Q0,s){var e=Q0._writableState,I0=e.sync,Z0=e.writecb;if(typeof Z0!=="function")throw new w;if(R(e),s)F(Q0,e,I0,s,Z0);else{var C0=x(e)||Q0.destroyed;if(!C0&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)T(Q0,e);if(I0)process.nextTick(C,Q0,e,C0,Z0);else C(Q0,e,C0,Z0)}}function C(Q0,s,e,I0){if(!e)z(Q0,s);s.pendingcb--,I0(),r(Q0,s)}function z(Q0,s){if(s.length===0&&s.needDrain)s.needDrain=!1,Q0.emit("drain")}function T(Q0,s){s.bufferProcessing=!0;var e=s.bufferedRequest;if(Q0._writev&&e&&e.next){var I0=s.bufferedRequestCount,Z0=Array(I0),C0=s.corkedRequestsFree;C0.entry=e;var $0=0,c=!0;while(e){if(Z0[$0]=e,!e.isBuf)c=!1;e=e.next,$0+=1}if(Z0.allBuffers=c,O(Q0,s,!0,s.length,Z0,"",C0.finish),s.pendingcb++,s.lastBufferedRequest=null,C0.next)s.corkedRequestsFree=C0.next,C0.next=null;else s.corkedRequestsFree=new Y(s);s.bufferedRequestCount=0}else{while(e){var{chunk:d,encoding:L0,callback:Y0}=e,V0=s.objectMode?1:d.length;if(O(Q0,s,!1,V0,d,L0,Y0),e=e.next,s.bufferedRequestCount--,s.writing)break}if(e===null)s.lastBufferedRequest=null}s.bufferedRequest=e,s.bufferProcessing=!1}t.prototype._write=function(Q0,s,e){e(new f("_write()"))},t.prototype._writev=null,t.prototype.end=function(Q0,s,e){var I0=this._writableState;if(typeof Q0==="function")e=Q0,Q0=null,s=null;else if(typeof s==="function")e=s,s=null;if(Q0!==null&&Q0!==void 0)this.write(Q0,s);if(I0.corked)I0.corked=1,this.uncork();if(!I0.ending)U0(this,I0,e);return this},Object.defineProperty(t.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function x(Q0){return Q0.ending&&Q0.length===0&&Q0.bufferedRequest===null&&!Q0.finished&&!Q0.writing}function v(Q0,s){Q0._final(function(e){if(s.pendingcb--,e)a(Q0,e);s.prefinished=!0,Q0.emit("prefinish"),r(Q0,s)})}function h(Q0,s){if(!s.prefinished&&!s.finalCalled)if(typeof Q0._final==="function"&&!s.destroyed)s.pendingcb++,s.finalCalled=!0,process.nextTick(v,Q0,s);else s.prefinished=!0,Q0.emit("prefinish")}function r(Q0,s){var e=x(s);if(e){if(h(Q0,s),s.pendingcb===0){if(s.finished=!0,Q0.emit("finish"),s.autoDestroy){var I0=Q0._readableState;if(!I0||I0.autoDestroy&&I0.endEmitted)Q0.destroy()}}}return e}function U0(Q0,s,e){if(s.ending=!0,r(Q0,s),e)if(s.finished)process.nextTick(e);else Q0.once("finish",e);s.ended=!0,Q0.writable=!1}function K0(Q0,s,e){var I0=Q0.entry;Q0.entry=null;while(I0){var Z0=I0.callback;s.pendingcb--,Z0(e),I0=I0.next}s.corkedRequestsFree.next=Q0}Object.defineProperty(t.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(Q0){if(!this._writableState)return;this._writableState.destroyed=Q0}}),t.prototype.destroy=S.destroy,t.prototype._undestroy=S.undestroy,t.prototype._destroy=function(Q0,s){s(Q0)}}),HY=vU((J,I)=>{var Y=Object.keys||function(A){var q=[];for(var B in A)q.push(B);return q};I.exports=E;var W=lv(),X=mv();MI()(E,W);{K=Y(X.prototype);for(L=0;L<K.length;L++)if(Z=K[L],!E.prototype[Z])E.prototype[Z]=X.prototype[Z]}var K,Z,L;function E(A){if(!(this instanceof E))return new E(A);if(W.call(this,A),X.call(this,A),this.allowHalfOpen=!0,A){if(A.readable===!1)this.readable=!1;if(A.writable===!1)this.writable=!1;if(A.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",_)}}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function _(){if(this._writableState.ended)return;process.nextTick(S,this)}function S(A){A.end()}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(A){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=A,this._writableState.destroyed=A}})}),dp=vU((J,I)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Y=(iU(),E$(oU)),W=Y.Buffer;function X(Z,L){for(var E in Z)L[E]=Z[E]}if(W.from&&W.alloc&&W.allocUnsafe&&W.allocUnsafeSlow)I.exports=Y;else X(Y,J),J.Buffer=K;function K(Z,L,E){return W(Z,L,E)}K.prototype=Object.create(W.prototype),X(W,K),K.from=function(Z,L,E){if(typeof Z==="number")throw TypeError("Argument must not be a number");return W(Z,L,E)},K.alloc=function(Z,L,E){if(typeof Z!=="number")throw TypeError("Argument must be a number");var _=W(Z);if(L!==void 0)if(typeof E==="string")_.fill(L,E);else _.fill(L);else _.fill(0);return _},K.allocUnsafe=function(Z){if(typeof Z!=="number")throw TypeError("Argument must be a number");return W(Z)},K.allocUnsafeSlow=function(Z){if(typeof Z!=="number")throw TypeError("Argument must be a number");return Y.SlowBuffer(Z)}}),uv=vU((J)=>{var I=dp().Buffer,Y=I.isEncoding||function(g){switch(g=""+g,g&&g.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 W(g){if(!g)return"utf8";var b;while(!0)switch(g){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 g;default:if(b)return;g=(""+g).toLowerCase(),b=!0}}function X(g){var b=W(g);if(typeof b!=="string"&&(I.isEncoding===Y||!Y(g)))throw Error("Unknown encoding: "+g);return b||g}J.StringDecoder=K;function K(g){this.encoding=X(g);var b;switch(this.encoding){case"utf16le":this.text=q,this.end=B,b=4;break;case"utf8":this.fillLast=_,b=4;break;case"base64":this.text=N,this.end=f,b=3;break;default:this.write=w,this.end=u;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(b)}K.prototype.write=function(g){if(g.length===0)return"";var b,p;if(this.lastNeed){if(b=this.fillLast(g),b===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;if(p<g.length)return b?b+this.text(g,p):this.text(g,p);return b||""},K.prototype.end=A,K.prototype.text=S,K.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function Z(g){if(g<=127)return 0;else if(g>>5===6)return 2;else if(g>>4===14)return 3;else if(g>>3===30)return 4;return g>>6===2?-1:-2}function L(g,b,p){var n=b.length-1;if(n<p)return 0;var a=Z(b[n]);if(a>=0){if(a>0)g.lastNeed=a-1;return a}if(--n<p||a===-2)return 0;if(a=Z(b[n]),a>=0){if(a>0)g.lastNeed=a-2;return a}if(--n<p||a===-2)return 0;if(a=Z(b[n]),a>=0){if(a>0)if(a===2)a=0;else g.lastNeed=a-3;return a}return 0}function E(g,b,p){if((b[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&b.length>2){if((b[2]&192)!==128)return g.lastNeed=2,"�"}}}function _(g){var b=this.lastTotal-this.lastNeed,p=E(this,g,b);if(p!==void 0)return p;if(this.lastNeed<=g.length)return g.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,b,0,g.length),this.lastNeed-=g.length}function S(g,b){var p=L(this,g,b);if(!this.lastNeed)return g.toString("utf8",b);this.lastTotal=p;var n=g.length-(p-this.lastNeed);return g.copy(this.lastChar,0,n),g.toString("utf8",b,n)}function A(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+"�";return b}function q(g,b){if((g.length-b)%2===0){var p=g.toString("utf16le",b);if(p){var n=p.charCodeAt(p.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",b,g.length-1)}function B(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,p)}return b}function N(g,b){var p=(g.length-b)%3;if(p===0)return g.toString("base64",b);if(this.lastNeed=3-p,this.lastTotal=3,p===1)this.lastChar[0]=g[g.length-1];else this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1];return g.toString("base64",b,g.length-p)}function f(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+this.lastChar.toString("base64",0,3-this.lastNeed);return b}function w(g){return g.toString(this.encoding)}function u(g){return g&&g.length?this.write(g):""}}),$A=vU((J,I)=>{var Y=AI().codes.ERR_STREAM_PREMATURE_CLOSE;function W(L){var E=!1;return function(){if(E)return;E=!0;for(var _=arguments.length,S=Array(_),A=0;A<_;A++)S[A]=arguments[A];L.apply(this,S)}}function X(){}function K(L){return L.setHeader&&typeof L.abort==="function"}function Z(L,E,_){if(typeof E==="function")return Z(L,null,E);if(!E)E={};_=W(_||X);var S=E.readable||E.readable!==!1&&L.readable,A=E.writable||E.writable!==!1&&L.writable,q=function(){if(!L.writable)N()},B=L._writableState&&L._writableState.finished,N=function(){if(A=!1,B=!0,!S)_.call(L)},f=L._readableState&&L._readableState.endEmitted,w=function(){if(S=!1,f=!0,!A)_.call(L)},u=function(p){_.call(L,p)},g=function(){var p;if(S&&!f){if(!L._readableState||!L._readableState.ended)p=new Y;return _.call(L,p)}if(A&&!B){if(!L._writableState||!L._writableState.ended)p=new Y;return _.call(L,p)}},b=function(){L.req.on("finish",N)};if(K(L))if(L.on("complete",N),L.on("abort",g),L.req)b();else L.on("request",b);else if(A&&!L._writableState)L.on("end",q),L.on("close",q);if(L.on("end",w),L.on("finish",N),E.error!==!1)L.on("error",u);return L.on("close",g),function(){if(L.removeListener("complete",N),L.removeListener("abort",g),L.removeListener("request",b),L.req)L.req.removeListener("finish",N);L.removeListener("end",q),L.removeListener("close",q),L.removeListener("finish",N),L.removeListener("end",w),L.removeListener("error",u),L.removeListener("close",g)}}I.exports=Z}),op=vU((J,I)=>{var Y;function W(n,a,D0){if(a=X(a),a in n)Object.defineProperty(n,a,{value:D0,enumerable:!0,configurable:!0,writable:!0});else n[a]=D0;return n}function X(n){var a=K(n,"string");return typeof a==="symbol"?a:String(a)}function K(n,a){if(typeof n!=="object"||n===null)return n;var D0=n[Symbol.toPrimitive];if(D0!==void 0){var M0=D0.call(n,a||"default");if(typeof M0!=="object")return M0;throw TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}var Z=$A(),L=Symbol("lastResolve"),E=Symbol("lastReject"),_=Symbol("error"),S=Symbol("ended"),A=Symbol("lastPromise"),q=Symbol("handlePromise"),B=Symbol("stream");function N(n,a){return{value:n,done:a}}function f(n){var a=n[L];if(a!==null){var D0=n[B].read();if(D0!==null)n[A]=null,n[L]=null,n[E]=null,a(N(D0,!1))}}function w(n){process.nextTick(f,n)}function u(n,a){return function(D0,M0){n.then(function(){if(a[S]){D0(N(void 0,!0));return}a[q](D0,M0)},M0)}}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((Y={get stream(){return this[B]},next:function(){var n=this,a=this[_];if(a!==null)return Promise.reject(a);if(this[S])return Promise.resolve(N(void 0,!0));if(this[B].destroyed)return new Promise(function(t,R0){process.nextTick(function(){if(n[_])R0(n[_]);else t(N(void 0,!0))})});var D0=this[A],M0;if(D0)M0=new Promise(u(D0,this));else{var S0=this[B].read();if(S0!==null)return Promise.resolve(N(S0,!1));M0=new Promise(this[q])}return this[A]=M0,M0}},W(Y,Symbol.asyncIterator,function(){return this}),W(Y,"return",function(){var n=this;return new Promise(function(a,D0){n[B].destroy(null,function(M0){if(M0){D0(M0);return}a(N(void 0,!0))})})}),Y),g),p=function(n){var a,D0=Object.create(b,(a={},W(a,B,{value:n,writable:!0}),W(a,L,{value:null,writable:!0}),W(a,E,{value:null,writable:!0}),W(a,_,{value:null,writable:!0}),W(a,S,{value:n._readableState.endEmitted,writable:!0}),W(a,q,{value:function(M0,S0){var t=D0[B].read();if(t)D0[A]=null,D0[L]=null,D0[E]=null,M0(N(t,!1));else D0[L]=M0,D0[E]=S0},writable:!0}),a));return D0[A]=null,Z(n,function(M0){if(M0&&M0.code!=="ERR_STREAM_PREMATURE_CLOSE"){var S0=D0[E];if(S0!==null)D0[A]=null,D0[L]=null,D0[E]=null,S0(M0);D0[_]=M0;return}var t=D0[L];if(t!==null)D0[A]=null,D0[L]=null,D0[E]=null,t(N(void 0,!0));D0[S]=!0}),n.on("readable",w.bind(null,D0)),D0};I.exports=p}),ip=vU((J,I)=>{function Y(A,q,B,N,f,w,u){try{var g=A[w](u),b=g.value}catch(p){B(p);return}if(g.done)q(b);else Promise.resolve(b).then(N,f)}function W(A){return function(){var q=this,B=arguments;return new Promise(function(N,f){var w=A.apply(q,B);function u(b){Y(w,N,f,u,g,"next",b)}function g(b){Y(w,N,f,u,g,"throw",b)}u(void 0)})}}function X(A,q){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(A);q&&(N=N.filter(function(f){return Object.getOwnPropertyDescriptor(A,f).enumerable})),B.push.apply(B,N)}return B}function K(A){for(var q=1;q<arguments.length;q++){var B=arguments[q]!=null?arguments[q]:{};q%2?X(Object(B),!0).forEach(function(N){Z(A,N,B[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(B)):X(Object(B)).forEach(function(N){Object.defineProperty(A,N,Object.getOwnPropertyDescriptor(B,N))})}return A}function Z(A,q,B){if(q=L(q),q in A)Object.defineProperty(A,q,{value:B,enumerable:!0,configurable:!0,writable:!0});else A[q]=B;return A}function L(A){var q=E(A,"string");return typeof q==="symbol"?q:String(q)}function E(A,q){if(typeof A!=="object"||A===null)return A;var B=A[Symbol.toPrimitive];if(B!==void 0){var N=B.call(A,q||"default");if(typeof N!=="object")return N;throw TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(A)}var _=AI().codes.ERR_INVALID_ARG_TYPE;function S(A,q,B){var N;if(q&&typeof q.next==="function")N=q;else if(q&&q[Symbol.asyncIterator])N=q[Symbol.asyncIterator]();else if(q&&q[Symbol.iterator])N=q[Symbol.iterator]();else throw new _("iterable",["Iterable"],q);var f=new A(K({objectMode:!0},B)),w=!1;f._read=function(){if(!w)w=!0,u()};function u(){return g.apply(this,arguments)}function g(){return g=W(function*(){try{var b=yield N.next(),p=b.value,n=b.done;if(n)f.push(null);else if(f.push(yield p))u();else w=!1}catch(a){f.destroy(a)}}),g.apply(this,arguments)}return f}I.exports=S}),lv=vU((J,I)=>{I.exports=G;var Y;G.ReadableState=R0;var W=(BQ(),E$(EQ)).EventEmitter,X=function($0,c){return $0.listeners(c).length},K=NQ(),Z=(iU(),E$(oU)).Buffer,L=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E($0){return Z.from($0)}function _($0){return Z.isBuffer($0)||$0 instanceof L}var S=(SQ(),E$(qQ)),A;if(S&&S.debuglog)A=S.debuglog("stream");else A=function(){};var q=lp(),B=cv(),N=pv(),f=N.getHighWaterMark,w=AI().codes,u=w.ERR_INVALID_ARG_TYPE,g=w.ERR_STREAM_PUSH_AFTER_EOF,b=w.ERR_METHOD_NOT_IMPLEMENTED,p=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,n,a,D0;MI()(G,K);var M0=B.errorOrDestroy,S0=["error","close","destroy","pause","resume"];function t($0,c,d){if(typeof $0.prependListener==="function")return $0.prependListener(c,d);if(!$0._events||!$0._events[c])$0.on(c,d);else if(Array.isArray($0._events[c]))$0._events[c].unshift(d);else $0._events[c]=[d,$0._events[c]]}function R0($0,c,d){if(Y=Y||HY(),$0=$0||{},typeof d!=="boolean")d=c instanceof Y;if(this.objectMode=!!$0.objectMode,d)this.objectMode=this.objectMode||!!$0.readableObjectMode;if(this.highWaterMark=f(this,$0,"readableHighWaterMark",d),this.buffer=new q,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=$0.emitClose!==!1,this.autoDestroy=!!$0.autoDestroy,this.destroyed=!1,this.defaultEncoding=$0.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$0.encoding){if(!n)n=uv().StringDecoder;this.decoder=new n($0.encoding),this.encoding=$0.encoding}}function G($0){if(Y=Y||HY(),!(this instanceof G))return new G($0);var c=this instanceof Y;if(this._readableState=new R0($0,this,c),this.readable=!0,$0){if(typeof $0.read==="function")this._read=$0.read;if(typeof $0.destroy==="function")this._destroy=$0.destroy}K.call(this)}Object.defineProperty(G.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($0){if(!this._readableState)return;this._readableState.destroyed=$0}}),G.prototype.destroy=B.destroy,G.prototype._undestroy=B.undestroy,G.prototype._destroy=function($0,c){c($0)},G.prototype.push=function($0,c){var d=this._readableState,L0;if(!d.objectMode){if(typeof $0==="string"){if(c=c||d.defaultEncoding,c!==d.encoding)$0=Z.from($0,c),c="";L0=!0}}else L0=!0;return V(this,$0,c,!1,L0)},G.prototype.unshift=function($0){return V(this,$0,null,!0,!1)};function V($0,c,d,L0,Y0){A("readableAddChunk",c);var V0=$0._readableState;if(c===null)V0.reading=!1,C($0,V0);else{var k0;if(!Y0)k0=O(V0,c);if(k0)M0($0,k0);else if(V0.objectMode||c&&c.length>0){if(typeof c!=="string"&&!V0.objectMode&&Object.getPrototypeOf(c)!==Z.prototype)c=E(c);if(L0)if(V0.endEmitted)M0($0,new p);else D($0,V0,c,!0);else if(V0.ended)M0($0,new g);else if(V0.destroyed)return!1;else if(V0.reading=!1,V0.decoder&&!d)if(c=V0.decoder.write(c),V0.objectMode||c.length!==0)D($0,V0,c,!1);else x($0,V0);else D($0,V0,c,!1)}else if(!L0)V0.reading=!1,x($0,V0)}return!V0.ended&&(V0.length<V0.highWaterMark||V0.length===0)}function D($0,c,d,L0){if(c.flowing&&c.length===0&&!c.sync)c.awaitDrain=0,$0.emit("data",d);else{if(c.length+=c.objectMode?1:d.length,L0)c.buffer.unshift(d);else c.buffer.push(d);if(c.needReadable)z($0)}x($0,c)}function O($0,c){var d;if(!_(c)&&typeof c!=="string"&&c!==void 0&&!$0.objectMode)d=new u("chunk",["string","Buffer","Uint8Array"],c);return d}G.prototype.isPaused=function(){return this._readableState.flowing===!1},G.prototype.setEncoding=function($0){if(!n)n=uv().StringDecoder;var c=new n($0);this._readableState.decoder=c,this._readableState.encoding=this._readableState.decoder.encoding;var d=this._readableState.buffer.head,L0="";while(d!==null)L0+=c.write(d.data),d=d.next;if(this._readableState.buffer.clear(),L0!=="")this._readableState.buffer.push(L0);return this._readableState.length=L0.length,this};var F=1073741824;function R($0){if($0>=F)$0=F;else $0--,$0|=$0>>>1,$0|=$0>>>2,$0|=$0>>>4,$0|=$0>>>8,$0|=$0>>>16,$0++;return $0}function j($0,c){if($0<=0||c.length===0&&c.ended)return 0;if(c.objectMode)return 1;if($0!==$0)if(c.flowing&&c.length)return c.buffer.head.data.length;else return c.length;if($0>c.highWaterMark)c.highWaterMark=R($0);if($0<=c.length)return $0;if(!c.ended)return c.needReadable=!0,0;return c.length}G.prototype.read=function($0){A("read",$0),$0=parseInt($0,10);var c=this._readableState,d=$0;if($0!==0)c.emittedReadable=!1;if($0===0&&c.needReadable&&((c.highWaterMark!==0?c.length>=c.highWaterMark:c.length>0)||c.ended)){if(A("read: emitReadable",c.length,c.ended),c.length===0&&c.ended)I0(this);else z(this);return null}if($0=j($0,c),$0===0&&c.ended){if(c.length===0)I0(this);return null}var L0=c.needReadable;if(A("need readable",L0),c.length===0||c.length-$0<c.highWaterMark)L0=!0,A("length less than watermark",L0);if(c.ended||c.reading)L0=!1,A("reading or ended",L0);else if(L0){if(A("do read"),c.reading=!0,c.sync=!0,c.length===0)c.needReadable=!0;if(this._read(c.highWaterMark),c.sync=!1,!c.reading)$0=j(d,c)}var Y0;if($0>0)Y0=e($0,c);else Y0=null;if(Y0===null)c.needReadable=c.length<=c.highWaterMark,$0=0;else c.length-=$0,c.awaitDrain=0;if(c.length===0){if(!c.ended)c.needReadable=!0;if(d!==$0&&c.ended)I0(this)}if(Y0!==null)this.emit("data",Y0);return Y0};function C($0,c){if(A("onEofChunk"),c.ended)return;if(c.decoder){var d=c.decoder.end();if(d&&d.length)c.buffer.push(d),c.length+=c.objectMode?1:d.length}if(c.ended=!0,c.sync)z($0);else if(c.needReadable=!1,!c.emittedReadable)c.emittedReadable=!0,T($0)}function z($0){var c=$0._readableState;if(A("emitReadable",c.needReadable,c.emittedReadable),c.needReadable=!1,!c.emittedReadable)A("emitReadable",c.flowing),c.emittedReadable=!0,process.nextTick(T,$0)}function T($0){var c=$0._readableState;if(A("emitReadable_",c.destroyed,c.length,c.ended),!c.destroyed&&(c.length||c.ended))$0.emit("readable"),c.emittedReadable=!1;c.needReadable=!c.flowing&&!c.ended&&c.length<=c.highWaterMark,s($0)}function x($0,c){if(!c.readingMore)c.readingMore=!0,process.nextTick(v,$0,c)}function v($0,c){while(!c.reading&&!c.ended&&(c.length<c.highWaterMark||c.flowing&&c.length===0)){var d=c.length;if(A("maybeReadMore read 0"),$0.read(0),d===c.length)break}c.readingMore=!1}G.prototype._read=function($0){M0(this,new b("_read()"))},G.prototype.pipe=function($0,c){var d=this,L0=this._readableState;switch(L0.pipesCount){case 0:L0.pipes=$0;break;case 1:L0.pipes=[L0.pipes,$0];break;default:L0.pipes.push($0);break}L0.pipesCount+=1,A("pipe count=%d opts=%j",L0.pipesCount,c);var Y0=(!c||c.end!==!1)&&$0!==process.stdout&&$0!==process.stderr,V0=Y0?J0:r$;if(L0.endEmitted)process.nextTick(V0);else d.once("end",V0);$0.on("unpipe",k0);function k0(h0,c0){if(A("onunpipe"),h0===d){if(c0&&c0.hasUnpiped===!1)c0.hasUnpiped=!0,A0()}}function J0(){A("onend"),$0.end()}var O0=h(d);$0.on("drain",O0);var J$=!1;function A0(){if(A("cleanup"),$0.removeListener("close",m0),$0.removeListener("finish",p0),$0.removeListener("drain",O0),$0.removeListener("error",M$),$0.removeListener("unpipe",k0),d.removeListener("end",J0),d.removeListener("end",r$),d.removeListener("data",v0),J$=!0,L0.awaitDrain&&(!$0._writableState||$0._writableState.needDrain))O0()}d.on("data",v0);function v0(h0){A("ondata");var c0=$0.write(h0);if(A("dest.write",c0),c0===!1){if((L0.pipesCount===1&&L0.pipes===$0||L0.pipesCount>1&&C0(L0.pipes,$0)!==-1)&&!J$)A("false write response, pause",L0.awaitDrain),L0.awaitDrain++;d.pause()}}function M$(h0){if(A("onerror",h0),r$(),$0.removeListener("error",M$),X($0,"error")===0)M0($0,h0)}t($0,"error",M$);function m0(){$0.removeListener("finish",p0),r$()}$0.once("close",m0);function p0(){A("onfinish"),$0.removeListener("close",m0),r$()}$0.once("finish",p0);function r$(){A("unpipe"),d.unpipe($0)}if($0.emit("pipe",d),!L0.flowing)A("pipe resume"),d.resume();return $0};function h($0){return function(){var c=$0._readableState;if(A("pipeOnDrain",c.awaitDrain),c.awaitDrain)c.awaitDrain--;if(c.awaitDrain===0&&X($0,"data"))c.flowing=!0,s($0)}}G.prototype.unpipe=function($0){var c=this._readableState,d={hasUnpiped:!1};if(c.pipesCount===0)return this;if(c.pipesCount===1){if($0&&$0!==c.pipes)return this;if(!$0)$0=c.pipes;if(c.pipes=null,c.pipesCount=0,c.flowing=!1,$0)$0.emit("unpipe",this,d);return this}if(!$0){var{pipes:L0,pipesCount:Y0}=c;c.pipes=null,c.pipesCount=0,c.flowing=!1;for(var V0=0;V0<Y0;V0++)L0[V0].emit("unpipe",this,{hasUnpiped:!1});return this}var k0=C0(c.pipes,$0);if(k0===-1)return this;if(c.pipes.splice(k0,1),c.pipesCount-=1,c.pipesCount===1)c.pipes=c.pipes[0];return $0.emit("unpipe",this,d),this},G.prototype.on=function($0,c){var d=K.prototype.on.call(this,$0,c),L0=this._readableState;if($0==="data"){if(L0.readableListening=this.listenerCount("readable")>0,L0.flowing!==!1)this.resume()}else if($0==="readable"){if(!L0.endEmitted&&!L0.readableListening){if(L0.readableListening=L0.needReadable=!0,L0.flowing=!1,L0.emittedReadable=!1,A("on readable",L0.length,L0.reading),L0.length)z(this);else if(!L0.reading)process.nextTick(U0,this)}}return d},G.prototype.addListener=G.prototype.on,G.prototype.removeListener=function($0,c){var d=K.prototype.removeListener.call(this,$0,c);if($0==="readable")process.nextTick(r,this);return d},G.prototype.removeAllListeners=function($0){var c=K.prototype.removeAllListeners.apply(this,arguments);if($0==="readable"||$0===void 0)process.nextTick(r,this);return c};function r($0){var c=$0._readableState;if(c.readableListening=$0.listenerCount("readable")>0,c.resumeScheduled&&!c.paused)c.flowing=!0;else if($0.listenerCount("data")>0)$0.resume()}function U0($0){A("readable nexttick read 0"),$0.read(0)}G.prototype.resume=function(){var $0=this._readableState;if(!$0.flowing)A("resume"),$0.flowing=!$0.readableListening,K0(this,$0);return $0.paused=!1,this};function K0($0,c){if(!c.resumeScheduled)c.resumeScheduled=!0,process.nextTick(Q0,$0,c)}function Q0($0,c){if(A("resume",c.reading),!c.reading)$0.read(0);if(c.resumeScheduled=!1,$0.emit("resume"),s($0),c.flowing&&!c.reading)$0.read(0)}G.prototype.pause=function(){if(A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)A("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function s($0){var c=$0._readableState;A("flow",c.flowing);while(c.flowing&&$0.read()!==null);}if(G.prototype.wrap=function($0){var c=this,d=this._readableState,L0=!1;$0.on("end",function(){if(A("wrapped end"),d.decoder&&!d.ended){var k0=d.decoder.end();if(k0&&k0.length)c.push(k0)}c.push(null)}),$0.on("data",function(k0){if(A("wrapped data"),d.decoder)k0=d.decoder.write(k0);if(d.objectMode&&(k0===null||k0===void 0))return;else if(!d.objectMode&&(!k0||!k0.length))return;var J0=c.push(k0);if(!J0)L0=!0,$0.pause()});for(var Y0 in $0)if(this[Y0]===void 0&&typeof $0[Y0]==="function")this[Y0]=function(k0){return function(){return $0[k0].apply($0,arguments)}}(Y0);for(var V0=0;V0<S0.length;V0++)$0.on(S0[V0],this.emit.bind(this,S0[V0]));return this._read=function(k0){if(A("wrapped _read",k0),L0)L0=!1,$0.resume()},this},typeof Symbol==="function")G.prototype[Symbol.asyncIterator]=function(){if(a===void 0)a=op();return a(this)};Object.defineProperty(G.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(G.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(G.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function($0){if(this._readableState)this._readableState.flowing=$0}}),G._fromList=e,Object.defineProperty(G.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function e($0,c){if(c.length===0)return null;var d;if(c.objectMode)d=c.buffer.shift();else if(!$0||$0>=c.length){if(c.decoder)d=c.buffer.join("");else if(c.buffer.length===1)d=c.buffer.first();else d=c.buffer.concat(c.length);c.buffer.clear()}else d=c.buffer.consume($0,c.decoder);return d}function I0($0){var c=$0._readableState;if(A("endReadable",c.endEmitted),!c.endEmitted)c.ended=!0,process.nextTick(Z0,c,$0)}function Z0($0,c){if(A("endReadableNT",$0.endEmitted,$0.length),!$0.endEmitted&&$0.length===0){if($0.endEmitted=!0,c.readable=!1,c.emit("end"),$0.autoDestroy){var d=c._writableState;if(!d||d.autoDestroy&&d.finished)c.destroy()}}}if(typeof Symbol==="function")G.from=function($0,c){if(D0===void 0)D0=ip();return D0(G,$0,c)};function C0($0,c){for(var d=0,L0=$0.length;d<L0;d++)if($0[d]===c)return d;return-1}}),nv=vU((J,I)=>{I.exports=_;var Y=AI().codes,W=Y.ERR_METHOD_NOT_IMPLEMENTED,X=Y.ERR_MULTIPLE_CALLBACK,K=Y.ERR_TRANSFORM_ALREADY_TRANSFORMING,Z=Y.ERR_TRANSFORM_WITH_LENGTH_0,L=HY();MI()(_,L);function E(q,B){var N=this._transformState;N.transforming=!1;var f=N.writecb;if(f===null)return this.emit("error",new X);if(N.writechunk=null,N.writecb=null,B!=null)this.push(B);f(q);var w=this._readableState;if(w.reading=!1,w.needReadable||w.length<w.highWaterMark)this._read(w.highWaterMark)}function _(q){if(!(this instanceof _))return new _(q);if(L.call(this,q),this._transformState={afterTransform:E.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,q){if(typeof q.transform==="function")this._transform=q.transform;if(typeof q.flush==="function")this._flush=q.flush}this.on("prefinish",S)}function S(){var q=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(B,N){A(q,B,N)});else A(this,null,null)}_.prototype.push=function(q,B){return this._transformState.needTransform=!1,L.prototype.push.call(this,q,B)},_.prototype._transform=function(q,B,N){N(new W("_transform()"))},_.prototype._write=function(q,B,N){var f=this._transformState;if(f.writecb=N,f.writechunk=q,f.writeencoding=B,!f.transforming){var w=this._readableState;if(f.needTransform||w.needReadable||w.length<w.highWaterMark)this._read(w.highWaterMark)}},_.prototype._read=function(q){var B=this._transformState;if(B.writechunk!==null&&!B.transforming)B.transforming=!0,this._transform(B.writechunk,B.writeencoding,B.afterTransform);else B.needTransform=!0},_.prototype._destroy=function(q,B){L.prototype._destroy.call(this,q,function(N){B(N)})};function A(q,B,N){if(B)return q.emit("error",B);if(N!=null)q.push(N);if(q._writableState.length)throw new Z;if(q._transformState.transforming)throw new K;return q.push(null)}}),rp=vU((J,I)=>{I.exports=W;var Y=nv();MI()(W,Y);function W(X){if(!(this instanceof W))return new W(X);Y.call(this,X)}W.prototype._transform=function(X,K,Z){Z(null,X)}}),tp=vU((J,I)=>{var Y;function W(N){var f=!1;return function(){if(f)return;f=!0,N.apply(void 0,arguments)}}var X=AI().codes,K=X.ERR_MISSING_ARGS,Z=X.ERR_STREAM_DESTROYED;function L(N){if(N)throw N}function E(N){return N.setHeader&&typeof N.abort==="function"}function _(N,f,w,u){u=W(u);var g=!1;if(N.on("close",function(){g=!0}),Y===void 0)Y=$A();Y(N,{readable:f,writable:w},function(p){if(p)return u(p);g=!0,u()});var b=!1;return function(p){if(g)return;if(b)return;if(b=!0,E(N))return N.abort();if(typeof N.destroy==="function")return N.destroy();u(p||new Z("pipe"))}}function S(N){N()}function A(N,f){return N.pipe(f)}function q(N){if(!N.length)return L;if(typeof N[N.length-1]!=="function")return L;return N.pop()}function B(){for(var N=arguments.length,f=Array(N),w=0;w<N;w++)f[w]=arguments[w];var u=q(f);if(Array.isArray(f[0]))f=f[0];if(f.length<2)throw new K("streams");var g,b=f.map(function(p,n){var a=n<f.length-1,D0=n>0;return _(p,a,D0,function(M0){if(!g)g=M0;if(M0)b.forEach(S);if(a)return;b.forEach(S),u(g)})});return f.reduce(A)}I.exports=B}),dv=vU((J,I)=>{var Y=NQ();J=I.exports=lv(),J.Stream=Y||J,J.Readable=J,J.Writable=mv(),J.Duplex=HY(),J.Transform=nv(),J.PassThrough=rp(),J.finished=$A(),J.pipeline=tp()}),ov=vU((J)=>{var I=hv(),Y=MI(),W=dv(),X=J.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},K=J.IncomingMessage=function(Z,L,E,_){var S=this;if(W.Readable.call(S),S._mode=E,S.headers={},S.rawHeaders=[],S.trailers={},S.rawTrailers=[],S.on("end",function(){process.nextTick(function(){S.emit("close")})}),E==="fetch"){let u=function(){B.read().then(function(g){if(S._destroyed)return;if(_(g.done),g.done){S.push(null);return}S.push(Buffer.from(g.value)),u()}).catch(function(g){if(_(!0),!S._destroyed)S.emit("error",g)})};var A=u;if(S._fetchResponse=L,S.url=L.url,S.statusCode=L.status,S.statusMessage=L.statusText,L.headers.forEach(function(g,b){S.headers[b.toLowerCase()]=g,S.rawHeaders.push(b,g)}),I.writableStream){var q=new WritableStream({write:function(g){return _(!1),new Promise(function(b,p){if(S._destroyed)p();else if(S.push(Buffer.from(g)))b();else S._resumeFetch=b})},close:function(){if(_(!0),!S._destroyed)S.push(null)},abort:function(g){if(_(!0),!S._destroyed)S.emit("error",g)}});try{L.body.pipeTo(q).catch(function(g){if(_(!0),!S._destroyed)S.emit("error",g)});return}catch(g){}}var B=L.body.getReader();u()}else{S._xhr=Z,S._pos=0,S.url=Z.responseURL,S.statusCode=Z.status,S.statusMessage=Z.statusText;var N=Z.getAllResponseHeaders().split(/\r?\n/);if(N.forEach(function(u){var g=u.match(/^([^:]+):\s*(.*)/);if(g){var b=g[1].toLowerCase();if(b==="set-cookie"){if(S.headers[b]===void 0)S.headers[b]=[];S.headers[b].push(g[2])}else if(S.headers[b]!==void 0)S.headers[b]+=", "+g[2];else S.headers[b]=g[2];S.rawHeaders.push(g[1],g[2])}}),S._charset="x-user-defined",!I.overrideMimeType){var f=S.rawHeaders["mime-type"];if(f){var w=f.match(/;\s*charset=([^;])(;|$)/);if(w)S._charset=w[1].toLowerCase()}if(!S._charset)S._charset="utf-8"}}};Y(K,W.Readable),K.prototype._read=function(){var Z=this,L=Z._resumeFetch;if(L)Z._resumeFetch=null,L()},K.prototype._onXHRProgress=function(Z){var L=this,E=L._xhr,_=null;switch(L._mode){case"text":if(_=E.responseText,_.length>L._pos){var S=_.substr(L._pos);if(L._charset==="x-user-defined"){var A=Buffer.alloc(S.length);for(var q=0;q<S.length;q++)A[q]=S.charCodeAt(q)&255;L.push(A)}else L.push(S,L._charset);L._pos=_.length}break;case"arraybuffer":if(E.readyState!==X.DONE||!E.response)break;_=E.response,L.push(Buffer.from(new Uint8Array(_)));break;case"moz-chunked-arraybuffer":if(_=E.response,E.readyState!==X.LOADING||!_)break;L.push(Buffer.from(new Uint8Array(_)));break;case"ms-stream":if(_=E.response,E.readyState!==X.LOADING)break;var B=new globalThis.MSStreamReader;B.onprogress=function(){if(B.result.byteLength>L._pos)L.push(Buffer.from(new Uint8Array(B.result.slice(L._pos)))),L._pos=B.result.byteLength},B.onload=function(){Z(!0),L.push(null)},B.readAsArrayBuffer(_);break}if(L._xhr.readyState===X.DONE&&L._mode!=="ms-stream")Z(!0),L.push(null)}}),ap=vU((J,I)=>{var Y=hv(),W=MI(),X=ov(),K=dv(),Z=X.IncomingMessage,L=X.readyStates;function E(q,B){if(Y.fetch&&B)return"fetch";else if(Y.mozchunkedarraybuffer)return"moz-chunked-arraybuffer";else if(Y.msstream)return"ms-stream";else if(Y.arraybuffer&&q)return"arraybuffer";else return"text"}var _=I.exports=function(q){var B=this;if(K.Writable.call(B),B._opts=q,B._body=[],B._headers={},q.auth)B.setHeader("Authorization","Basic "+Buffer.from(q.auth).toString("base64"));Object.keys(q.headers).forEach(function(w){B.setHeader(w,q.headers[w])});var N,f=!0;if(q.mode==="disable-fetch"||"requestTimeout"in q&&!Y.abortController)f=!1,N=!0;else if(q.mode==="prefer-streaming")N=!1;else if(q.mode==="allow-wrong-content-type")N=!Y.overrideMimeType;else if(!q.mode||q.mode==="default"||q.mode==="prefer-fast")N=!0;else throw Error("Invalid value for opts.mode");B._mode=E(N,f),B._fetchTimer=null,B._socketTimeout=null,B._socketTimer=null,B.on("finish",function(){B._onFinish()})};W(_,K.Writable),_.prototype.setHeader=function(q,B){var N=this,f=q.toLowerCase();if(A.indexOf(f)!==-1)return;N._headers[f]={name:q,value:B}},_.prototype.getHeader=function(q){var B=this._headers[q.toLowerCase()];if(B)return B.value;return null},_.prototype.removeHeader=function(q){var B=this;delete B._headers[q.toLowerCase()]},_.prototype._onFinish=function(){var q=this;if(q._destroyed)return;var B=q._opts;if("timeout"in B&&B.timeout!==0)q.setTimeout(B.timeout);var N=q._headers,f=null;if(B.method!=="GET"&&B.method!=="HEAD")f=new Blob(q._body,{type:(N["content-type"]||{}).value||""});var w=[];if(Object.keys(N).forEach(function(p){var n=N[p].name,a=N[p].value;if(Array.isArray(a))a.forEach(function(D0){w.push([n,D0])});else w.push([n,a])}),q._mode==="fetch"){var u=null;if(Y.abortController){var g=new AbortController;if(u=g.signal,q._fetchAbortController=g,"requestTimeout"in B&&B.requestTimeout!==0)q._fetchTimer=globalThis.setTimeout(function(){if(q.emit("requestTimeout"),q._fetchAbortController)q._fetchAbortController.abort()},B.requestTimeout)}globalThis.fetch(q._opts.url,{method:q._opts.method,headers:w,body:f||void 0,mode:"cors",credentials:B.withCredentials?"include":"same-origin",signal:u}).then(function(p){q._fetchResponse=p,q._resetTimers(!1),q._connect()},function(p){if(q._resetTimers(!0),!q._destroyed)q.emit("error",p)})}else{var b=q._xhr=new globalThis.XMLHttpRequest;try{b.open(q._opts.method,q._opts.url,!0)}catch(p){process.nextTick(function(){q.emit("error",p)});return}if("responseType"in b)b.responseType=q._mode;if("withCredentials"in b)b.withCredentials=!!B.withCredentials;if(q._mode==="text"&&"overrideMimeType"in b)b.overrideMimeType("text/plain; charset=x-user-defined");if("requestTimeout"in B)b.timeout=B.requestTimeout,b.ontimeout=function(){q.emit("requestTimeout")};if(w.forEach(function(p){b.setRequestHeader(p[0],p[1])}),q._response=null,b.onreadystatechange=function(){switch(b.readyState){case L.LOADING:case L.DONE:q._onXHRProgress();break}},q._mode==="moz-chunked-arraybuffer")b.onprogress=function(){q._onXHRProgress()};b.onerror=function(){if(q._destroyed)return;q._resetTimers(!0),q.emit("error",Error("XHR error"))};try{b.send(f)}catch(p){process.nextTick(function(){q.emit("error",p)});return}}};function S(q){try{var B=q.status;return B!==null&&B!==0}catch(N){return!1}}_.prototype._onXHRProgress=function(){var q=this;if(q._resetTimers(!1),!S(q._xhr)||q._destroyed)return;if(!q._response)q._connect();q._response._onXHRProgress(q._resetTimers.bind(q))},_.prototype._connect=function(){var q=this;if(q._destroyed)return;q._response=new Z(q._xhr,q._fetchResponse,q._mode,q._resetTimers.bind(q)),q._response.on("error",function(B){q.emit("error",B)}),q.emit("response",q._response)},_.prototype._write=function(q,B,N){var f=this;f._body.push(q),N()},_.prototype._resetTimers=function(q){var B=this;if(globalThis.clearTimeout(B._socketTimer),B._socketTimer=null,q)globalThis.clearTimeout(B._fetchTimer),B._fetchTimer=null;else if(B._socketTimeout)B._socketTimer=globalThis.setTimeout(function(){B.emit("timeout")},B._socketTimeout)},_.prototype.abort=_.prototype.destroy=function(q){var B=this;if(B._destroyed=!0,B._resetTimers(!0),B._response)B._response._destroyed=!0;if(B._xhr)B._xhr.abort();else if(B._fetchAbortController)B._fetchAbortController.abort();if(q)B.emit("error",q)},_.prototype.end=function(q,B,N){var f=this;if(typeof q==="function")N=q,q=void 0;K.Writable.prototype.end.call(f,q,B,N)},_.prototype.setTimeout=function(q,B){var N=this;if(B)N.once("timeout",B);N._socketTimeout=q,N._resetTimers(!1)},_.prototype.flushHeaders=function(){},_.prototype.setNoDelay=function(){},_.prototype.setSocketKeepAlive=function(){};var A=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}),sp=vU((J,I)=>{I.exports=W;var Y=Object.prototype.hasOwnProperty;function W(){var X={};for(var K=0;K<arguments.length;K++){var Z=arguments[K];for(var L in Z)if(Y.call(Z,L))X[L]=Z[L]}return X}}),ep=vU((J,I)=>{I.exports=(UA(),E$(tv)).STATUS_CODES}),$m=vU((J)=>{var I=ap(),Y=ov(),W=sp(),X=ep(),K=(yv(),E$(fv)),Z=J;Z.request=function(L,E){if(typeof L==="string")L=K.parse(L);else L=W(L);var _=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",S=L.protocol||_,A=L.hostname||L.host,q=L.port,B=L.path||"/";if(A&&A.indexOf(":")!==-1)A="["+A+"]";L.url=(A?S+"//"+A:"")+(q?":"+q:"")+B,L.method=(L.method||"GET").toUpperCase(),L.headers=L.headers||{};var N=new I(L);if(E)N.on("response",E);return N},Z.get=function(L,E){var _=Z.request(L,E);return _.end(),_},Z.ClientRequest=I,Z.IncomingMessage=Y.IncomingMessage,Z.Agent=function(){},Z.Agent.defaultMaxSockets=4,Z.globalAgent=new Z.Agent,Z.STATUS_CODES=X,Z.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}),iv=pp($m(),1),{request:Um,get:Jm,ClientRequest:Xm,IncomingMessage:Im,Agent:Qm,globalAgent:Ym,STATUS_CODES:Gm,METHODS:Zm}=iv.default,rv=iv.default});var WA=UX((vm)=>{var CI=t1(rG());(function(){function J(z){if(z==null)return null;if(typeof z==="function")return z.$$typeof===t?null:z.displayName||z.name||null;if(typeof z==="string")return z;switch(z){case f:return"Fragment";case u:return"Profiler";case w:return"StrictMode";case n:return"Suspense";case a:return"SuspenseList";case S0:return"Activity"}if(typeof z==="object")switch(typeof z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),z.$$typeof){case N:return"Portal";case b:return z.displayName||"Context";case g:return(z._context.displayName||"Context")+".Consumer";case p:var T=z.render;return z=z.displayName,z||(z=T.displayName||T.name||"",z=z!==""?"ForwardRef("+z+")":"ForwardRef"),z;case D0:return T=z.displayName||null,T!==null?T:J(z.type)||"Memo";case M0:T=z._payload,z=z._init;try{return J(z(T))}catch(x){}}return null}function I(z){return""+z}function Y(z){try{I(z);var T=!1}catch(h){T=!0}if(T){T=console;var x=T.error,v=typeof Symbol==="function"&&Symbol.toStringTag&&z[Symbol.toStringTag]||z.constructor.name||"Object";return x.call(T,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),I(z)}}function W(z){if(z===f)return"<>";if(typeof z==="object"&&z!==null&&z.$$typeof===M0)return"<...>";try{var T=J(z);return T?"<"+T+">":"<...>"}catch(x){return"<...>"}}function X(){var z=R0.A;return z===null?null:z.getOwner()}function K(){return Error("react-stack-top-frame")}function Z(z){if(G.call(z,"key")){var T=Object.getOwnPropertyDescriptor(z,"key").get;if(T&&T.isReactWarning)return!1}return z.key!==void 0}function L(z,T){function x(){O||(O=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",T))}x.isReactWarning=!0,Object.defineProperty(z,"key",{get:x,configurable:!0})}function E(){var z=J(this.type);return F[z]||(F[z]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),z=this.props.ref,z!==void 0?z:null}function _(z,T,x,v,h,r){var U0=x.ref;return z={$$typeof:B,type:z,key:T,props:x,_owner:v},(U0!==void 0?U0:null)!==null?Object.defineProperty(z,"ref",{enumerable:!1,get:E}):Object.defineProperty(z,"ref",{enumerable:!1,value:null}),z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.defineProperty(z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z}function S(z,T,x,v,h,r){var U0=T.children;if(U0!==void 0)if(v)if(V(U0)){for(v=0;v<U0.length;v++)A(U0[v]);Object.freeze&&Object.freeze(U0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(U0);if(G.call(T,"key")){U0=J(z);var K0=Object.keys(T).filter(function(s){return s!=="key"});v=0<K0.length?"{key: someKey, "+K0.join(": ..., ")+": ...}":"{key: someKey}",C[U0+v]||(K0=0<K0.length?"{"+K0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
247
|
+
let props = %s;
|
|
248
|
+
<%s {...props} />
|
|
249
|
+
React keys must be passed directly to JSX without using spread:
|
|
250
|
+
let props = %s;
|
|
251
|
+
<%s key={someKey} {...props} />`,v,U0,K0,U0),C[U0+v]=!0)}if(U0=null,x!==void 0&&(Y(x),U0=""+x),Z(T)&&(Y(T.key),U0=""+T.key),"key"in T){x={};for(var Q0 in T)Q0!=="key"&&(x[Q0]=T[Q0])}else x=T;return U0&&L(x,typeof z==="function"?z.displayName||z.name||"Unknown":z),_(z,U0,x,X(),h,r)}function A(z){q(z)?z._store&&(z._store.validated=1):typeof z==="object"&&z!==null&&z.$$typeof===M0&&(z._payload.status==="fulfilled"?q(z._payload.value)&&z._payload.value._store&&(z._payload.value._store.validated=1):z._store&&(z._store.validated=1))}function q(z){return typeof z==="object"&&z!==null&&z.$$typeof===B}var B=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),b=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),n=Symbol.for("react.suspense"),a=Symbol.for("react.suspense_list"),D0=Symbol.for("react.memo"),M0=Symbol.for("react.lazy"),S0=Symbol.for("react.activity"),t=Symbol.for("react.client.reference"),R0=CI.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,V=Array.isArray,D=console.createTask?console.createTask:function(){return null};CI={react_stack_bottom_frame:function(z){return z()}};var O,F={},R=CI.react_stack_bottom_frame.bind(CI,K)(),j=D(W(K)),C={};vm.Fragment=f,vm.jsxDEV=function(z,T,x,v){var h=1e4>R0.recentlyCreatedOwnerStacks++;return S(z,T,x,v,h?Error("react-stack-top-frame"):R,h?D(W(z)):j)}})()});var KN=t1(sq(),1),a$=t1(rG(),1);var{readFile:d10}=(()=>({}));bU();var{closeSync:kr,existsSync:gr,fstatSync:xr,mkdirSync:wr,openSync:fr,readFileSync:yr,renameSync:br,rmSync:ur,statSync:hr,writeFileSync:cr,writeSync:pr}=(()=>({}));var S8=function(){if(typeof location<"u")return location.hostname;else return""};var _H=function(){return"/"};function v4(J){if(typeof J!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(J))}function jj(J,I){var Y="",W=0,X=-1,K=0,Z;for(var L=0;L<=J.length;++L){if(L<J.length)Z=J.charCodeAt(L);else if(Z===47)break;else Z=47;if(Z===47){if(X===L-1||K===1);else if(X!==L-1&&K===2){if(Y.length<2||W!==2||Y.charCodeAt(Y.length-1)!==46||Y.charCodeAt(Y.length-2)!==46){if(Y.length>2){var E=Y.lastIndexOf("/");if(E!==Y.length-1){if(E===-1)Y="",W=0;else Y=Y.slice(0,E),W=Y.length-1-Y.lastIndexOf("/");X=L,K=0;continue}}else if(Y.length===2||Y.length===1){Y="",W=0,X=L,K=0;continue}}if(I){if(Y.length>0)Y+="/..";else Y="..";W=2}}else{if(Y.length>0)Y+="/"+J.slice(X+1,L);else Y=J.slice(X+1,L);W=L-X-1}X=L,K=0}else if(Z===46&&K!==-1)++K;else K=-1}return Y}function Xb(J,I){var Y=I.dir||I.root,W=I.base||(I.name||"")+(I.ext||"");if(!Y)return W;if(Y===I.root)return Y+W;return Y+J+W}function a1(){var J="",I=!1,Y;for(var W=arguments.length-1;W>=-1&&!I;W--){var X;if(W>=0)X=arguments[W];else{if(Y===void 0)Y=process.cwd();X=Y}if(v4(X),X.length===0)continue;J=X+"/"+J,I=X.charCodeAt(0)===47}if(J=jj(J,!I),I)if(J.length>0)return"/"+J;else return"/";else if(J.length>0)return J;else return"."}function Ej(J){if(v4(J),J.length===0)return".";var I=J.charCodeAt(0)===47,Y=J.charCodeAt(J.length-1)===47;if(J=jj(J,!I),J.length===0&&!I)J=".";if(J.length>0&&Y)J+="/";if(I)return"/"+J;return J}function gQ(J){return v4(J),J.length>0&&J.charCodeAt(0)===47}function i$(){if(arguments.length===0)return".";var J;for(var I=0;I<arguments.length;++I){var Y=arguments[I];if(v4(Y),Y.length>0)if(J===void 0)J=Y;else J+="/"+Y}if(J===void 0)return".";return Ej(J)}function Bj(J,I){if(v4(J),v4(I),J===I)return"";if(J=a1(J),I=a1(I),J===I)return"";var Y=1;for(;Y<J.length;++Y)if(J.charCodeAt(Y)!==47)break;var W=J.length,X=W-Y,K=1;for(;K<I.length;++K)if(I.charCodeAt(K)!==47)break;var Z=I.length,L=Z-K,E=X<L?X:L,_=-1,S=0;for(;S<=E;++S){if(S===E){if(L>E){if(I.charCodeAt(K+S)===47)return I.slice(K+S+1);else if(S===0)return I.slice(K+S)}else if(X>E){if(J.charCodeAt(Y+S)===47)_=S;else if(S===0)_=0}break}var A=J.charCodeAt(Y+S),q=I.charCodeAt(K+S);if(A!==q)break;else if(A===47)_=S}var B="";for(S=Y+_+1;S<=W;++S)if(S===W||J.charCodeAt(S)===47)if(B.length===0)B+="..";else B+="/..";if(B.length>0)return B+I.slice(K+_);else{if(K+=_,I.charCodeAt(K)===47)++K;return I.slice(K)}}function Ib(J){return J}function rU(J){if(v4(J),J.length===0)return".";var I=J.charCodeAt(0),Y=I===47,W=-1,X=!0;for(var K=J.length-1;K>=1;--K)if(I=J.charCodeAt(K),I===47){if(!X){W=K;break}}else X=!1;if(W===-1)return Y?"/":".";if(Y&&W===1)return"//";return J.slice(0,W)}function G2(J,I){if(I!==void 0&&typeof I!=="string")throw TypeError('"ext" argument must be a string');v4(J);var Y=0,W=-1,X=!0,K;if(I!==void 0&&I.length>0&&I.length<=J.length){if(I.length===J.length&&I===J)return"";var Z=I.length-1,L=-1;for(K=J.length-1;K>=0;--K){var E=J.charCodeAt(K);if(E===47){if(!X){Y=K+1;break}}else{if(L===-1)X=!1,L=K+1;if(Z>=0)if(E===I.charCodeAt(Z)){if(--Z===-1)W=K}else Z=-1,W=L}}if(Y===W)W=L;else if(W===-1)W=J.length;return J.slice(Y,W)}else{for(K=J.length-1;K>=0;--K)if(J.charCodeAt(K)===47){if(!X){Y=K+1;break}}else if(W===-1)X=!1,W=K+1;if(W===-1)return"";return J.slice(Y,W)}}function Qb(J){v4(J);var I=-1,Y=0,W=-1,X=!0,K=0;for(var Z=J.length-1;Z>=0;--Z){var L=J.charCodeAt(Z);if(L===47){if(!X){Y=Z+1;break}continue}if(W===-1)X=!1,W=Z+1;if(L===46){if(I===-1)I=Z;else if(K!==1)K=1}else if(I!==-1)K=-1}if(I===-1||W===-1||K===0||K===1&&I===W-1&&I===Y+1)return"";return J.slice(I,W)}function Yb(J){if(J===null||typeof J!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof J);return Xb("/",J)}function Gb(J){v4(J);var I={root:"",dir:"",base:"",ext:"",name:""};if(J.length===0)return I;var Y=J.charCodeAt(0),W=Y===47,X;if(W)I.root="/",X=1;else X=0;var K=-1,Z=0,L=-1,E=!0,_=J.length-1,S=0;for(;_>=X;--_){if(Y=J.charCodeAt(_),Y===47){if(!E){Z=_+1;break}continue}if(L===-1)E=!1,L=_+1;if(Y===46){if(K===-1)K=_;else if(S!==1)S=1}else if(K!==-1)S=-1}if(K===-1||L===-1||S===0||S===1&&K===L-1&&K===Z+1){if(L!==-1)if(Z===0&&W)I.base=I.name=J.slice(1,L);else I.base=I.name=J.slice(Z,L)}else{if(Z===0&&W)I.name=J.slice(1,K),I.base=J.slice(1,L);else I.name=J.slice(Z,K),I.base=J.slice(Z,L);I.ext=J.slice(K,L)}if(Z>0)I.dir=J.slice(0,Z-1);else if(W)I.dir="/";return I}var vj="/",Zb=":",yn=((J)=>(J.posix=J,J))({resolve:a1,normalize:Ej,isAbsolute:gQ,join:i$,relative:Bj,_makeLong:Ib,dirname:rU,basename:G2,extname:Qb,format:Yb,parse:Gb,sep:vj,delimiter:Zb,win32:null,posix:null});function Z2(){let J=process.env.VOLTER_HOME;return J!==void 0&&J!==""?J:i$(_H(),".volter")}bU();bU();var{appendFileSync:zb,chmodSync:Nj,closeSync:j8,existsSync:z2,fsyncSync:Kb,fstatSync:kj,lstatSync:gj,mkdirSync:K2,openSync:E8,readdirSync:Wb,readSync:Ob,realpathSync:Vb,readFileSync:SH,renameSync:xj,rmSync:wj,statSync:bj,unlinkSync:qH,writeFileSync:W2}=(()=>({}));var Hb=0,Fb=60000;function jH(J){try{return JSON.parse(SH(J,"utf8"))}catch{return null}}function Db(J){try{return process.kill(J,0),!0}catch(I){return I.code==="EPERM"}}function fj(J,I=!1){let Y=jH(J);if(Y&&Y.hostname===S8()&&Number.isInteger(Y.pid)&&!Db(Y.pid))return!0;if(I)return!1;let X=Y&&typeof Y.at==="string"?Date.parse(Y.at):NaN;if(!Number.isFinite(X))try{X=bj(J).mtimeMs}catch{return!1}return Date.now()-X>Fb}function yj(J){Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,J)}class EH{read(J){if(!z2(J))return null;return SH(J,"utf8")}readLines(J){if(!z2(J))return[];return SH(J,"utf8").split(`
|
|
252
|
+
`)}readRange(J,I){let Y;try{Y=E8(J,"r")}catch(W){if(W.code==="ENOENT")return null;throw W}try{let W=kj(Y).size;if(I>=W)return"";let X=Buffer.allocUnsafe(W-I),K=0;while(K<X.length){let Z=Ob(Y,X,K,X.length-K,I+K);if(Z===0)break;K+=Z}return X.toString("utf8",0,K)}finally{j8(Y)}}append(J,I){let Y=E8(J,"a");try{if(zb(Y,I),process.env.VOLTER_DURABLE==="1")Kb(Y)}finally{j8(Y)}}write(J,I,Y={}){if(!Y.secret){K2(rU(J),{recursive:!0}),W2(J,I);return}K2(rU(J),{recursive:!0,mode:448}),W2(J,I,{mode:384}),Nj(J,384)}writeAtomic(J,I,Y={}){K2(rU(J),{recursive:!0});let W=`${J}.${process.pid}.${Date.now()}.${Hb++}.tmp`;try{if(W2(W,I,Y.secret?{mode:384}:void 0),xj(W,J),Y.secret)Nj(J,384)}finally{wj(W,{force:!0})}}exists(J){return z2(J)}remove(J){wj(J,{recursive:!0,force:!0})}mkdir(J){K2(J,{recursive:!0})}list(J){if(!z2(J))return[];return Wb(J)}canonicalPath(J){let I=a1(J);try{return Vb(I)}catch(Y){if(Y.code!=="ENOENT"||rU(I)===I)throw Y;return i$(this.canonicalPath(rU(I)),G2(I))}}stat(J){if(!z2(J))return null;let I=bj(J);return{size:I.size,mtimeMs:I.mtimeMs,isDirectory:I.isDirectory(),...gj(J).isSymbolicLink()?{isSymbolicLink:!0}:{}}}withLock(J,I,Y={}){K2(rU(J),{recursive:!0});let W=Date.now(),X=null;while(X===null)try{X=E8(J,"wx")}catch(Z){if(Z.code!=="EEXIST")throw Z;if(fj(J,Y.retainLiveOwner)){let E=`${J}.recovery`,_;try{_=E8(E,"wx")}catch(S){if(S.code!=="EEXIST")throw S;if(Date.now()-W>1e4)throw Error(`Lock recovery is active or interrupted: ${E}. Inspect its owner before removing the recovery record.`);yj(25);continue}try{if(W2(_,JSON.stringify({pid:process.pid,hostname:S8()})),fj(J,Y.retainLiveOwner)){let S=jH(J),A=`${J}.stale.${process.pid}.${Date.now()}`;try{xj(J,A),console.warn(`[world] reclaiming stale storage lock ${J} (held by pid ${S?.pid??"?"} on ${S?.hostname??"?"})`),qH(A)}catch(q){if(q.code!=="ENOENT")throw q}}}finally{j8(_),qH(E)}continue}if(Date.now()-W>1e4){let E=jH(J),_=E&&typeof E.at==="string"?Date.parse(E.at):NaN;throw Error(`Timed out waiting for world storage lock: ${J}${E?` (held by pid ${E.pid} on ${E.hostname}${Number.isFinite(_)?` for ${Date.now()-_}ms`:""})`:""}`)}yj(25)}try{W2(X,`${JSON.stringify({pid:process.pid,hostname:S8(),at:new Date().toISOString()})}
|
|
253
|
+
`)}catch{}let K=Date.now();try{return I()}finally{let Z=Date.now()-K;if(Z>2000)console.warn(`[world] held storage lock ${J} for ${Z}ms (pid ${process.pid})
|
|
254
|
+
${Error().stack?.split(`
|
|
255
|
+
`).slice(2,8).join(`
|
|
256
|
+
`)??""}`);let L=kj(X);j8(X);try{let E=gj(J);if(L.dev===E.dev&&L.ino===E.ino)qH(J)}catch{}}}}var Lb=new EH,Mb=(()=>{try{let J=globalThis.process?.getBuiltinModule?.("node:async_hooks");return J?.AsyncLocalStorage?new J.AsyncLocalStorage:null}catch{return null}})();function b6(){return Mb?.getStore()??Lb}bU();var q$={};w6(q$,{xor:()=>TB,xid:()=>lE,void:()=>FB,uuidv7:()=>fE,uuidv6:()=>wE,uuidv4:()=>xE,uuid:()=>gE,util:()=>Z$,url:()=>yE,uppercase:()=>dQ,unknown:()=>FI,union:()=>IW,undefined:()=>VB,ulid:()=>mE,uint64:()=>WB,uint32:()=>ZB,tuple:()=>XM,trim:()=>sQ,treeifyError:()=>iH,transform:()=>YW,toUpperCase:()=>$Y,toLowerCase:()=>eQ,toJSONSchema:()=>NK,templateLiteral:()=>wB,symbol:()=>OB,superRefine:()=>NM,success:()=>NB,stringbool:()=>mB,stringFormat:()=>UB,string:()=>w2,strictObject:()=>AB,startsWith:()=>iQ,slugify:()=>UY,size:()=>OI,setErrorMap:()=>Yc,set:()=>SB,safeParseAsync:()=>NL,safeParse:()=>vL,safeEncodeAsync:()=>bL,safeEncode:()=>fL,safeDecodeAsync:()=>uL,safeDecode:()=>yL,registry:()=>JK,regexes:()=>C1,regex:()=>lQ,refine:()=>vM,record:()=>IM,readonly:()=>_M,property:()=>jK,promise:()=>fB,prettifyError:()=>rH,preprocess:()=>nB,prefault:()=>DM,positive:()=>PK,pipe:()=>bK,partialRecord:()=>PB,parseAsync:()=>BL,parse:()=>EL,overwrite:()=>s1,optional:()=>y2,object:()=>MB,number:()=>cL,nullish:()=>vB,nullable:()=>b2,null:()=>dL,normalize:()=>aQ,nonpositive:()=>qK,nonoptional:()=>LM,nonnegative:()=>SK,never:()=>XW,negative:()=>_K,nativeEnum:()=>jB,nanoid:()=>hE,nan:()=>kB,multipleOf:()=>KX,minSize:()=>x4,minLength:()=>OJ,mime:()=>tQ,meta:()=>cB,maxSize:()=>WX,maxLength:()=>VI,map:()=>qB,mac:()=>oE,lte:()=>T1,lt:()=>k4,lowercase:()=>nQ,looseRecord:()=>_B,looseObject:()=>CB,locales:()=>N2,literal:()=>EB,length:()=>HI,lazy:()=>jM,ksuid:()=>nE,keyof:()=>LB,jwt:()=>$B,json:()=>lB,iso:()=>IY,ipv6:()=>iE,ipv4:()=>dE,invertCodec:()=>xB,intersection:()=>UM,int64:()=>KB,int32:()=>GB,int:()=>yK,instanceof:()=>pB,includes:()=>oQ,httpUrl:()=>bE,hostname:()=>JB,hex:()=>XB,hash:()=>IB,guid:()=>kE,gte:()=>c6,gt:()=>g4,globalRegistry:()=>T6,getErrorMap:()=>Gc,function:()=>yB,fromJSONSchema:()=>oB,formatError:()=>C2,float64:()=>YB,float32:()=>QB,flattenError:()=>A2,file:()=>BB,exactOptional:()=>WM,enum:()=>QW,endsWith:()=>rQ,encodeAsync:()=>xL,encode:()=>kL,emoji:()=>uE,email:()=>NE,e164:()=>eE,discriminatedUnion:()=>RB,describe:()=>hB,decodeAsync:()=>wL,decode:()=>gL,date:()=>DB,custom:()=>uB,cuid2:()=>pE,cuid:()=>cE,core:()=>VJ,config:()=>tU,coerce:()=>gM,codec:()=>gB,clone:()=>u6,cidrv6:()=>tE,cidrv4:()=>rE,check:()=>bB,catch:()=>CM,boolean:()=>pL,bigint:()=>zB,base64url:()=>sE,base64:()=>aE,array:()=>p2,any:()=>HB,_function:()=>yB,_default:()=>HM,_ZodString:()=>uK,ZodXor:()=>sL,ZodXID:()=>dK,ZodVoid:()=>tL,ZodUnknown:()=>iL,ZodUnion:()=>l2,ZodUndefined:()=>lL,ZodUUID:()=>w4,ZodURL:()=>h2,ZodULID:()=>nK,ZodType:()=>x$,ZodTuple:()=>JM,ZodTransform:()=>zM,ZodTemplateLiteral:()=>qM,ZodSymbol:()=>mL,ZodSuccess:()=>MM,ZodStringFormat:()=>WU,ZodString:()=>GY,ZodSet:()=>YM,ZodRecord:()=>QY,ZodRealError:()=>U1,ZodReadonly:()=>PM,ZodPromise:()=>EM,ZodPreprocess:()=>RM,ZodPrefault:()=>FM,ZodPipe:()=>n2,ZodOptional:()=>GW,ZodObject:()=>m2,ZodNumberFormat:()=>DI,ZodNumber:()=>zY,ZodNullable:()=>OM,ZodNull:()=>nL,ZodNonOptional:()=>ZW,ZodNever:()=>rL,ZodNanoID:()=>pK,ZodNaN:()=>TM,ZodMap:()=>QM,ZodMAC:()=>hL,ZodLiteral:()=>GM,ZodLazy:()=>SM,ZodKSUID:()=>oK,ZodJWT:()=>UW,ZodIssueCode:()=>Qc,ZodIntersection:()=>$M,ZodISOTime:()=>wK,ZodISODuration:()=>fK,ZodISODateTime:()=>gK,ZodISODate:()=>xK,ZodIPv6:()=>rK,ZodIPv4:()=>iK,ZodGUID:()=>f2,ZodFunction:()=>BM,ZodFirstPartyTypeKind:()=>kM,ZodFile:()=>ZM,ZodExactOptional:()=>KM,ZodError:()=>Xc,ZodEnum:()=>YY,ZodEmoji:()=>cK,ZodEmail:()=>hK,ZodE164:()=>$W,ZodDiscriminatedUnion:()=>eL,ZodDefault:()=>VM,ZodDate:()=>c2,ZodCustomStringFormat:()=>ZY,ZodCustom:()=>o2,ZodCodec:()=>d2,ZodCatch:()=>AM,ZodCUID2:()=>lK,ZodCUID:()=>mK,ZodCIDRv6:()=>aK,ZodCIDRv4:()=>tK,ZodBoolean:()=>KY,ZodBigIntFormat:()=>JW,ZodBigInt:()=>WY,ZodBase64URL:()=>eK,ZodBase64:()=>sK,ZodArray:()=>aL,ZodAny:()=>oL,TimePrecision:()=>X7,NEVER:()=>fH,$output:()=>aD,$input:()=>sD,$brand:()=>yH});var VJ={};w6(VJ,{version:()=>nF,util:()=>Z$,treeifyError:()=>iH,toJSONSchema:()=>NK,toDotPath:()=>tj,safeParseAsync:()=>aH,safeParse:()=>tH,safeEncodeAsync:()=>Qu,safeEncode:()=>Xu,safeDecodeAsync:()=>Yu,safeDecode:()=>Iu,registry:()=>JK,regexes:()=>C1,process:()=>QU,prettifyError:()=>rH,parseAsync:()=>x8,parse:()=>g8,meta:()=>y7,locales:()=>N2,isValidJWT:()=>ME,isValidBase64URL:()=>LE,isValidBase64:()=>V5,initializeContext:()=>OX,globalRegistry:()=>T6,globalConfig:()=>GI,formatError:()=>C2,flattenError:()=>A2,finalize:()=>HX,extractDefs:()=>VX,encodeAsync:()=>Uu,encode:()=>eb,describe:()=>f7,decodeAsync:()=>Ju,decode:()=>$u,createToJSONSchemaMethod:()=>u7,createStandardJSONSchemaMethod:()=>XY,config:()=>tU,clone:()=>u6,_xor:()=>gh,_xid:()=>VK,_void:()=>j7,_uuidv7:()=>GK,_uuidv6:()=>YK,_uuidv4:()=>QK,_uuid:()=>IK,_url:()=>g2,_uppercase:()=>dQ,_unknown:()=>q7,_union:()=>kh,_undefined:()=>R7,_ulid:()=>OK,_uint64:()=>C7,_uint32:()=>H7,_tuple:()=>fh,_trim:()=>sQ,_transform:()=>mh,_toUpperCase:()=>$Y,_toLowerCase:()=>eQ,_templateLiteral:()=>sh,_symbol:()=>T7,_superRefine:()=>w7,_success:()=>ih,_stringbool:()=>b7,_stringFormat:()=>JY,_string:()=>$7,_startsWith:()=>iQ,_slugify:()=>UY,_size:()=>OI,_set:()=>uh,_safeParseAsync:()=>cQ,_safeParse:()=>hQ,_safeEncodeAsync:()=>c8,_safeEncode:()=>u8,_safeDecodeAsync:()=>p8,_safeDecode:()=>h8,_regex:()=>lQ,_refine:()=>x7,_record:()=>yh,_readonly:()=>ah,_property:()=>jK,_promise:()=>$c,_positive:()=>PK,_pipe:()=>th,_parseAsync:()=>uQ,_parse:()=>bQ,_overwrite:()=>s1,_optional:()=>lh,_number:()=>Z7,_nullable:()=>nh,_null:()=>P7,_normalize:()=>aQ,_nonpositive:()=>qK,_nonoptional:()=>oh,_nonnegative:()=>SK,_never:()=>S7,_negative:()=>_K,_nativeEnum:()=>ch,_nanoid:()=>zK,_nan:()=>v7,_multipleOf:()=>KX,_minSize:()=>x4,_minLength:()=>OJ,_min:()=>c6,_mime:()=>tQ,_maxSize:()=>WX,_maxLength:()=>VI,_max:()=>T1,_map:()=>bh,_mac:()=>J7,_lte:()=>T1,_lt:()=>k4,_lowercase:()=>nQ,_literal:()=>ph,_length:()=>HI,_lazy:()=>eh,_ksuid:()=>HK,_jwt:()=>RK,_isoTime:()=>Y7,_isoDuration:()=>G7,_isoDateTime:()=>I7,_isoDate:()=>Q7,_ipv6:()=>DK,_ipv4:()=>FK,_intersection:()=>wh,_int64:()=>A7,_int32:()=>V7,_int:()=>K7,_includes:()=>oQ,_guid:()=>k2,_gte:()=>c6,_gt:()=>g4,_float64:()=>O7,_float32:()=>W7,_file:()=>k7,_enum:()=>hh,_endsWith:()=>rQ,_encodeAsync:()=>y8,_encode:()=>w8,_emoji:()=>ZK,_email:()=>XK,_e164:()=>TK,_discriminatedUnion:()=>xh,_default:()=>dh,_decodeAsync:()=>b8,_decode:()=>f8,_date:()=>E7,_custom:()=>g7,_cuid2:()=>WK,_cuid:()=>KK,_coercedString:()=>U7,_coercedNumber:()=>z7,_coercedDate:()=>B7,_coercedBoolean:()=>D7,_coercedBigint:()=>M7,_cidrv6:()=>MK,_cidrv4:()=>LK,_check:()=>jE,_catch:()=>rh,_boolean:()=>F7,_bigint:()=>L7,_base64url:()=>CK,_base64:()=>AK,_array:()=>N7,_any:()=>_7,TimePrecision:()=>X7,NEVER:()=>fH,JSONSchemaGenerator:()=>PL,JSONSchema:()=>EE,Doc:()=>d8,$output:()=>aD,$input:()=>sD,$constructor:()=>B0,$brand:()=>yH,$ZodXor:()=>N5,$ZodXID:()=>J5,$ZodVoid:()=>j5,$ZodUnknown:()=>q5,$ZodUnion:()=>q2,$ZodUndefined:()=>R5,$ZodUUID:()=>iF,$ZodURL:()=>tF,$ZodULID:()=>U5,$ZodType:()=>S$,$ZodTuple:()=>e8,$ZodTransform:()=>h5,$ZodTemplateLiteral:()=>a5,$ZodSymbol:()=>T5,$ZodSuccess:()=>d5,$ZodStringFormat:()=>KU,$ZodString:()=>WI,$ZodSet:()=>f5,$ZodRegistry:()=>eD,$ZodRecord:()=>x5,$ZodRealError:()=>$1,$ZodReadonly:()=>t5,$ZodPromise:()=>e5,$ZodPreprocess:()=>r5,$ZodPrefault:()=>l5,$ZodPipe:()=>UK,$ZodOptional:()=>$K,$ZodObjectJIT:()=>v5,$ZodObject:()=>TE,$ZodNumberFormat:()=>A5,$ZodNumber:()=>a8,$ZodNullable:()=>p5,$ZodNull:()=>P5,$ZodNonOptional:()=>n5,$ZodNever:()=>S5,$ZodNanoID:()=>sF,$ZodNaN:()=>i5,$ZodMap:()=>w5,$ZodMAC:()=>K5,$ZodLiteral:()=>b5,$ZodLazy:()=>$D,$ZodKSUID:()=>X5,$ZodJWT:()=>L5,$ZodIntersection:()=>g5,$ZodISOTime:()=>Y5,$ZodISODuration:()=>G5,$ZodISODateTime:()=>I5,$ZodISODate:()=>Q5,$ZodIPv6:()=>z5,$ZodIPv4:()=>Z5,$ZodGUID:()=>oF,$ZodFunction:()=>s5,$ZodFile:()=>u5,$ZodExactOptional:()=>c5,$ZodError:()=>M2,$ZodEnum:()=>y5,$ZodEncodeError:()=>ZI,$ZodEmoji:()=>aF,$ZodEmail:()=>rF,$ZodE164:()=>D5,$ZodDiscriminatedUnion:()=>k5,$ZodDefault:()=>m5,$ZodDate:()=>E5,$ZodCustomStringFormat:()=>M5,$ZodCustom:()=>UD,$ZodCodec:()=>S2,$ZodCheckUpperCase:()=>bF,$ZodCheckStringFormat:()=>pQ,$ZodCheckStartsWith:()=>hF,$ZodCheckSizeEquals:()=>kF,$ZodCheckRegex:()=>fF,$ZodCheckProperty:()=>pF,$ZodCheckOverwrite:()=>lF,$ZodCheckNumberFormat:()=>EF,$ZodCheckMultipleOf:()=>jF,$ZodCheckMinSize:()=>NF,$ZodCheckMinLength:()=>xF,$ZodCheckMimeType:()=>mF,$ZodCheckMaxSize:()=>vF,$ZodCheckMaxLength:()=>gF,$ZodCheckLowerCase:()=>yF,$ZodCheckLessThan:()=>l8,$ZodCheckLengthEquals:()=>wF,$ZodCheckIncludes:()=>uF,$ZodCheckGreaterThan:()=>n8,$ZodCheckEndsWith:()=>cF,$ZodCheckBigIntFormat:()=>BF,$ZodCheck:()=>DU,$ZodCatch:()=>o5,$ZodCUID2:()=>$5,$ZodCUID:()=>eF,$ZodCIDRv6:()=>O5,$ZodCIDRv4:()=>W5,$ZodBoolean:()=>_2,$ZodBigIntFormat:()=>C5,$ZodBigInt:()=>s8,$ZodBase64URL:()=>F5,$ZodBase64:()=>H5,$ZodAsyncError:()=>N4,$ZodArray:()=>B5,$ZodAny:()=>_5});var lj,fH=Object.freeze({status:"aborted"});function B0(J,I,Y){function W(L,E){if(!L._zod)Object.defineProperty(L,"_zod",{value:{def:E,constr:Z,traits:new Set},enumerable:!1});if(L._zod.traits.has(J))return;L._zod.traits.add(J),I(L,E);let _=Z.prototype,S=Object.keys(_);for(let A=0;A<S.length;A++){let q=S[A];if(!(q in L))L[q]=_[q].bind(L)}}let X=Y?.Parent??Object;class K extends X{}Object.defineProperty(K,"name",{value:J});function Z(L){var E;let _=Y?.Parent?new K:this;W(_,L),(E=_._zod).deferred??(E.deferred=[]);for(let S of _._zod.deferred)S();return _}return Object.defineProperty(Z,"init",{value:W}),Object.defineProperty(Z,Symbol.hasInstance,{value:(L)=>{if(Y?.Parent&&L instanceof Y.Parent)return!0;return L?._zod?.traits?.has(J)}}),Object.defineProperty(Z,"name",{value:J}),Z}var yH=Symbol("zod_brand");class N4 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ZI extends Error{constructor(J){super(`Encountered unidirectional transform during encode: ${J}`);this.name="ZodEncodeError"}}(lj=globalThis).__zod_globalConfig??(lj.__zod_globalConfig={});var GI=globalThis.__zod_globalConfig;function tU(J){if(J)Object.assign(GI,J);return GI}var Z$={};w6(Z$,{unwrapMessage:()=>O2,uint8ArrayToHex:()=>ab,uint8ArrayToBase64url:()=>rb,uint8ArrayToBase64:()=>oj,stringifyPrimitive:()=>Q$,slugify:()=>hH,shallowClone:()=>pH,safeExtend:()=>mb,required:()=>db,randomString:()=>fb,propertyKeyTypes:()=>F2,promiseAllObject:()=>wb,primitiveTypes:()=>mH,prefixIssues:()=>e6,pick:()=>hb,partial:()=>nb,parsedType:()=>Y$,optionalKeys:()=>lH,omit:()=>cb,objectClone:()=>kb,numKeys:()=>yb,nullish:()=>YX,normalizeParams:()=>z$,mergeDefs:()=>WJ,merge:()=>lb,jsonStringifyReplacer:()=>wQ,joinValues:()=>w0,issue:()=>yQ,isPlainObject:()=>ZX,isObject:()=>zI,hexToUint8Array:()=>tb,getSizableOrigin:()=>D2,getParsedType:()=>bb,getLengthableOrigin:()=>L2,getEnumValues:()=>V2,getElementAtPath:()=>xb,floatSafeRemainder:()=>uH,finalizeIssue:()=>h6,extend:()=>pb,explicitlyAborted:()=>oH,escapeRegex:()=>b1,esc:()=>N8,defineLazy:()=>c$,createTransparentProxy:()=>ub,cloneDef:()=>gb,clone:()=>u6,cleanRegex:()=>H2,cleanEnum:()=>ob,captureStackTrace:()=>k8,cached:()=>fQ,base64urlToUint8Array:()=>ib,base64ToUint8Array:()=>dj,assignProp:()=>GX,assertNotEqual:()=>Eb,assertNever:()=>vb,assertIs:()=>Bb,assertEqual:()=>jb,assert:()=>Nb,allowsEval:()=>cH,aborted:()=>zX,NUMBER_FORMAT_RANGES:()=>nH,Class:()=>ij,BIGINT_FORMAT_RANGES:()=>dH});function jb(J){return J}function Eb(J){return J}function Bb(J){}function vb(J){throw Error("Unexpected value in exhaustive check")}function Nb(J){}function V2(J){let I=Object.values(J).filter((W)=>typeof W==="number");return Object.entries(J).filter(([W,X])=>I.indexOf(+W)===-1).map(([W,X])=>X)}function w0(J,I="|"){return J.map((Y)=>Q$(Y)).join(I)}function wQ(J,I){if(typeof I==="bigint")return I.toString();return I}function fQ(J){return{get value(){{let Y=J();return Object.defineProperty(this,"value",{value:Y}),Y}throw Error("cached value already set")}}}function YX(J){return J===null||J===void 0}function H2(J){let I=J.startsWith("^")?1:0,Y=J.endsWith("$")?J.length-1:J.length;return J.slice(I,Y)}function uH(J,I){let Y=J/I,W=Math.round(Y),X=Number.EPSILON*Math.max(Math.abs(Y),1);if(Math.abs(Y-W)<X)return 0;return Y-W}var nj=Symbol("evaluating");function c$(J,I,Y){let W=void 0;Object.defineProperty(J,I,{get(){if(W===nj)return;if(W===void 0)W=nj,W=Y();return W},set(X){Object.defineProperty(J,I,{value:X})},configurable:!0})}function kb(J){return Object.create(Object.getPrototypeOf(J),Object.getOwnPropertyDescriptors(J))}function GX(J,I,Y){Object.defineProperty(J,I,{value:Y,writable:!0,enumerable:!0,configurable:!0})}function WJ(...J){let I={};for(let Y of J){let W=Object.getOwnPropertyDescriptors(Y);Object.assign(I,W)}return Object.defineProperties({},I)}function gb(J){return WJ(J._zod.def)}function xb(J,I){if(!I)return J;return I.reduce((Y,W)=>Y?.[W],J)}function wb(J){let I=Object.keys(J),Y=I.map((W)=>J[W]);return Promise.all(Y).then((W)=>{let X={};for(let K=0;K<I.length;K++)X[I[K]]=W[K];return X})}function fb(J=10){let Y="";for(let W=0;W<J;W++)Y+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return Y}function N8(J){return JSON.stringify(J)}function hH(J){return J.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var k8="captureStackTrace"in Error?Error.captureStackTrace:(...J)=>{};function zI(J){return typeof J==="object"&&J!==null&&!Array.isArray(J)}var cH=fQ(()=>{if(GI.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(J){return!1}});function ZX(J){if(zI(J)===!1)return!1;let I=J.constructor;if(I===void 0)return!0;if(typeof I!=="function")return!0;let Y=I.prototype;if(zI(Y)===!1)return!1;if(Object.prototype.hasOwnProperty.call(Y,"isPrototypeOf")===!1)return!1;return!0}function pH(J){if(ZX(J))return{...J};if(Array.isArray(J))return[...J];if(J instanceof Map)return new Map(J);if(J instanceof Set)return new Set(J);return J}function yb(J){let I=0;for(let Y in J)if(Object.prototype.hasOwnProperty.call(J,Y))I++;return I}var bb=(J)=>{let I=typeof J;switch(I){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(J)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(J))return"array";if(J===null)return"null";if(J.then&&typeof J.then==="function"&&J.catch&&typeof J.catch==="function")return"promise";if(typeof Map<"u"&&J instanceof Map)return"map";if(typeof Set<"u"&&J instanceof Set)return"set";if(typeof Date<"u"&&J instanceof Date)return"date";if(typeof File<"u"&&J instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${I}`)}},F2=new Set(["string","number","symbol"]),mH=new Set(["string","number","bigint","boolean","symbol","undefined"]);function b1(J){return J.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u6(J,I,Y){let W=new J._zod.constr(I??J._zod.def);if(!I||Y?.parent)W._zod.parent=J;return W}function z$(J){let I=J;if(!I)return{};if(typeof I==="string")return{error:()=>I};if(I?.message!==void 0){if(I?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");I.error=I.message}if(delete I.message,typeof I.error==="string")return{...I,error:()=>I.error};return I}function ub(J){let I;return new Proxy({},{get(Y,W,X){return I??(I=J()),Reflect.get(I,W,X)},set(Y,W,X,K){return I??(I=J()),Reflect.set(I,W,X,K)},has(Y,W){return I??(I=J()),Reflect.has(I,W)},deleteProperty(Y,W){return I??(I=J()),Reflect.deleteProperty(I,W)},ownKeys(Y){return I??(I=J()),Reflect.ownKeys(I)},getOwnPropertyDescriptor(Y,W){return I??(I=J()),Reflect.getOwnPropertyDescriptor(I,W)},defineProperty(Y,W,X){return I??(I=J()),Reflect.defineProperty(I,W,X)}})}function Q$(J){if(typeof J==="bigint")return J.toString()+"n";if(typeof J==="string")return`"${J}"`;return`${J}`}function lH(J){return Object.keys(J).filter((I)=>{return J[I]._zod.optin==="optional"&&J[I]._zod.optout==="optional"})}var nH={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]},dH={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function hb(J,I){let Y=J._zod.def,W=Y.checks;if(W&&W.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let K=WJ(J._zod.def,{get shape(){let Z={};for(let L in I){if(!(L in Y.shape))throw Error(`Unrecognized key: "${L}"`);if(!I[L])continue;Z[L]=Y.shape[L]}return GX(this,"shape",Z),Z},checks:[]});return u6(J,K)}function cb(J,I){let Y=J._zod.def,W=Y.checks;if(W&&W.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let K=WJ(J._zod.def,{get shape(){let Z={...J._zod.def.shape};for(let L in I){if(!(L in Y.shape))throw Error(`Unrecognized key: "${L}"`);if(!I[L])continue;delete Z[L]}return GX(this,"shape",Z),Z},checks:[]});return u6(J,K)}function pb(J,I){if(!ZX(I))throw Error("Invalid input to extend: expected a plain object");let Y=J._zod.def.checks;if(Y&&Y.length>0){let K=J._zod.def.shape;for(let Z in I)if(Object.getOwnPropertyDescriptor(K,Z)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let X=WJ(J._zod.def,{get shape(){let K={...J._zod.def.shape,...I};return GX(this,"shape",K),K}});return u6(J,X)}function mb(J,I){if(!ZX(I))throw Error("Invalid input to safeExtend: expected a plain object");let Y=WJ(J._zod.def,{get shape(){let W={...J._zod.def.shape,...I};return GX(this,"shape",W),W}});return u6(J,Y)}function lb(J,I){if(J._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let Y=WJ(J._zod.def,{get shape(){let W={...J._zod.def.shape,...I._zod.def.shape};return GX(this,"shape",W),W},get catchall(){return I._zod.def.catchall},checks:I._zod.def.checks??[]});return u6(J,Y)}function nb(J,I,Y){let X=I._zod.def.checks;if(X&&X.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let Z=WJ(I._zod.def,{get shape(){let L=I._zod.def.shape,E={...L};if(Y)for(let _ in Y){if(!(_ in L))throw Error(`Unrecognized key: "${_}"`);if(!Y[_])continue;E[_]=J?new J({type:"optional",innerType:L[_]}):L[_]}else for(let _ in L)E[_]=J?new J({type:"optional",innerType:L[_]}):L[_];return GX(this,"shape",E),E},checks:[]});return u6(I,Z)}function db(J,I,Y){let W=WJ(I._zod.def,{get shape(){let X=I._zod.def.shape,K={...X};if(Y)for(let Z in Y){if(!(Z in K))throw Error(`Unrecognized key: "${Z}"`);if(!Y[Z])continue;K[Z]=new J({type:"nonoptional",innerType:X[Z]})}else for(let Z in X)K[Z]=new J({type:"nonoptional",innerType:X[Z]});return GX(this,"shape",K),K}});return u6(I,W)}function zX(J,I=0){if(J.aborted===!0)return!0;for(let Y=I;Y<J.issues.length;Y++)if(J.issues[Y]?.continue!==!0)return!0;return!1}function oH(J,I=0){if(J.aborted===!0)return!0;for(let Y=I;Y<J.issues.length;Y++)if(J.issues[Y]?.continue===!1)return!0;return!1}function e6(J,I){return I.map((Y)=>{var W;return(W=Y).path??(W.path=[]),Y.path.unshift(J),Y})}function O2(J){return typeof J==="string"?J:J?.message}function h6(J,I,Y){let W=J.message?J.message:O2(J.inst?._zod.def?.error?.(J))??O2(I?.error?.(J))??O2(Y.customError?.(J))??O2(Y.localeError?.(J))??"Invalid input",{inst:X,continue:K,input:Z,...L}=J;if(L.path??(L.path=[]),L.message=W,I?.reportInput)L.input=Z;return L}function D2(J){if(J instanceof Set)return"set";if(J instanceof Map)return"map";if(J instanceof File)return"file";return"unknown"}function L2(J){if(Array.isArray(J))return"array";if(typeof J==="string")return"string";return"unknown"}function Y$(J){let I=typeof J;switch(I){case"number":return Number.isNaN(J)?"nan":"number";case"object":{if(J===null)return"null";if(Array.isArray(J))return"array";let Y=J;if(Y&&Object.getPrototypeOf(Y)!==Object.prototype&&"constructor"in Y&&Y.constructor)return Y.constructor.name}}return I}function yQ(...J){let[I,Y,W]=J;if(typeof I==="string")return{message:I,code:"custom",input:Y,inst:W};return{...I}}function ob(J){return Object.entries(J).filter(([I,Y])=>{return Number.isNaN(Number.parseInt(I,10))}).map((I)=>I[1])}function dj(J){let I=atob(J),Y=new Uint8Array(I.length);for(let W=0;W<I.length;W++)Y[W]=I.charCodeAt(W);return Y}function oj(J){let I="";for(let Y=0;Y<J.length;Y++)I+=String.fromCharCode(J[Y]);return btoa(I)}function ib(J){let I=J.replace(/-/g,"+").replace(/_/g,"/"),Y="=".repeat((4-I.length%4)%4);return dj(I+Y)}function rb(J){return oj(J).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function tb(J){let I=J.replace(/^0x/,"");if(I.length%2!==0)throw Error("Invalid hex string length");let Y=new Uint8Array(I.length/2);for(let W=0;W<I.length;W+=2)Y[W/2]=Number.parseInt(I.slice(W,W+2),16);return Y}function ab(J){return Array.from(J).map((I)=>I.toString(16).padStart(2,"0")).join("")}class ij{constructor(...J){}}var rj=(J,I)=>{J.name="$ZodError",Object.defineProperty(J,"_zod",{value:J._zod,enumerable:!1}),Object.defineProperty(J,"issues",{value:I,enumerable:!1}),J.message=JSON.stringify(I,wQ,2),Object.defineProperty(J,"toString",{value:()=>J.message,enumerable:!1})},M2=B0("$ZodError",rj),$1=B0("$ZodError",rj,{Parent:Error});function A2(J,I=(Y)=>Y.message){let Y={},W=[];for(let X of J.issues)if(X.path.length>0)Y[X.path[0]]=Y[X.path[0]]||[],Y[X.path[0]].push(I(X));else W.push(I(X));return{formErrors:W,fieldErrors:Y}}function C2(J,I=(Y)=>Y.message){let Y={_errors:[]},W=(X,K=[])=>{for(let Z of X.issues)if(Z.code==="invalid_union"&&Z.errors.length)Z.errors.map((L)=>W({issues:L},[...K,...Z.path]));else if(Z.code==="invalid_key")W({issues:Z.issues},[...K,...Z.path]);else if(Z.code==="invalid_element")W({issues:Z.issues},[...K,...Z.path]);else{let L=[...K,...Z.path];if(L.length===0)Y._errors.push(I(Z));else{let E=Y,_=0;while(_<L.length){let S=L[_];if(_!==L.length-1)E[S]=E[S]||{_errors:[]};else E[S]=E[S]||{_errors:[]},E[S]._errors.push(I(Z));E=E[S],_++}}}};return W(J),Y}function iH(J,I=(Y)=>Y.message){let Y={errors:[]},W=(X,K=[])=>{var Z,L;for(let E of X.issues)if(E.code==="invalid_union"&&E.errors.length)E.errors.map((_)=>W({issues:_},[...K,...E.path]));else if(E.code==="invalid_key")W({issues:E.issues},[...K,...E.path]);else if(E.code==="invalid_element")W({issues:E.issues},[...K,...E.path]);else{let _=[...K,...E.path];if(_.length===0){Y.errors.push(I(E));continue}let S=Y,A=0;while(A<_.length){let q=_[A],B=A===_.length-1;if(typeof q==="string")S.properties??(S.properties={}),(Z=S.properties)[q]??(Z[q]={errors:[]}),S=S.properties[q];else S.items??(S.items=[]),(L=S.items)[q]??(L[q]={errors:[]}),S=S.items[q];if(B)S.errors.push(I(E));A++}}};return W(J),Y}function tj(J){let I=[],Y=J.map((W)=>typeof W==="object"?W.key:W);for(let W of Y)if(typeof W==="number")I.push(`[${W}]`);else if(typeof W==="symbol")I.push(`[${JSON.stringify(String(W))}]`);else if(/[^\w$]/.test(W))I.push(`[${JSON.stringify(W)}]`);else{if(I.length)I.push(".");I.push(W)}return I.join("")}function rH(J){let I=[],Y=[...J.issues].sort((W,X)=>(W.path??[]).length-(X.path??[]).length);for(let W of Y)if(I.push(`✖ ${W.message}`),W.path?.length)I.push(` → at ${tj(W.path)}`);return I.join(`
|
|
257
|
+
`)}var bQ=(J)=>(I,Y,W,X)=>{let K=W?{...W,async:!1}:{async:!1},Z=I._zod.run({value:Y,issues:[]},K);if(Z instanceof Promise)throw new N4;if(Z.issues.length){let L=new(X?.Err??J)(Z.issues.map((E)=>h6(E,K,tU())));throw k8(L,X?.callee),L}return Z.value},g8=bQ($1),uQ=(J)=>async(I,Y,W,X)=>{let K=W?{...W,async:!0}:{async:!0},Z=I._zod.run({value:Y,issues:[]},K);if(Z instanceof Promise)Z=await Z;if(Z.issues.length){let L=new(X?.Err??J)(Z.issues.map((E)=>h6(E,K,tU())));throw k8(L,X?.callee),L}return Z.value},x8=uQ($1),hQ=(J)=>(I,Y,W)=>{let X=W?{...W,async:!1}:{async:!1},K=I._zod.run({value:Y,issues:[]},X);if(K instanceof Promise)throw new N4;return K.issues.length?{success:!1,error:new(J??M2)(K.issues.map((Z)=>h6(Z,X,tU())))}:{success:!0,data:K.value}},tH=hQ($1),cQ=(J)=>async(I,Y,W)=>{let X=W?{...W,async:!0}:{async:!0},K=I._zod.run({value:Y,issues:[]},X);if(K instanceof Promise)K=await K;return K.issues.length?{success:!1,error:new J(K.issues.map((Z)=>h6(Z,X,tU())))}:{success:!0,data:K.value}},aH=cQ($1),w8=(J)=>(I,Y,W)=>{let X=W?{...W,direction:"backward"}:{direction:"backward"};return bQ(J)(I,Y,X)},eb=w8($1),f8=(J)=>(I,Y,W)=>{return bQ(J)(I,Y,W)},$u=f8($1),y8=(J)=>async(I,Y,W)=>{let X=W?{...W,direction:"backward"}:{direction:"backward"};return uQ(J)(I,Y,X)},Uu=y8($1),b8=(J)=>async(I,Y,W)=>{return uQ(J)(I,Y,W)},Ju=b8($1),u8=(J)=>(I,Y,W)=>{let X=W?{...W,direction:"backward"}:{direction:"backward"};return hQ(J)(I,Y,X)},Xu=u8($1),h8=(J)=>(I,Y,W)=>{return hQ(J)(I,Y,W)},Iu=h8($1),c8=(J)=>async(I,Y,W)=>{let X=W?{...W,direction:"backward"}:{direction:"backward"};return cQ(J)(I,Y,X)},Qu=c8($1),p8=(J)=>async(I,Y,W)=>{return cQ(J)(I,Y,W)},Yu=p8($1);var C1={};w6(C1,{xid:()=>UF,uuid7:()=>Ku,uuid6:()=>zu,uuid4:()=>Zu,uuid:()=>KI,uppercase:()=>SF,unicodeEmail:()=>aj,undefined:()=>_F,ulid:()=>$F,time:()=>LF,string:()=>AF,sha512_hex:()=>Nu,sha512_base64url:()=>gu,sha512_base64:()=>ku,sha384_hex:()=>Eu,sha384_base64url:()=>vu,sha384_base64:()=>Bu,sha256_hex:()=>qu,sha256_base64url:()=>ju,sha256_base64:()=>Su,sha1_hex:()=>Ru,sha1_base64url:()=>_u,sha1_base64:()=>Pu,rfc5322Email:()=>Ou,number:()=>T2,null:()=>PF,nanoid:()=>XF,md5_hex:()=>Au,md5_base64url:()=>Tu,md5_base64:()=>Cu,mac:()=>KF,lowercase:()=>qF,ksuid:()=>JF,ipv6:()=>zF,ipv4:()=>ZF,integer:()=>TF,idnEmail:()=>Vu,httpProtocol:()=>HF,html5Email:()=>Wu,hostname:()=>Du,hex:()=>Mu,guid:()=>QF,extendedDuration:()=>Gu,emoji:()=>GF,email:()=>YF,e164:()=>FF,duration:()=>IF,domain:()=>Lu,datetime:()=>MF,date:()=>DF,cuid2:()=>eH,cuid:()=>sH,cidrv6:()=>OF,cidrv4:()=>WF,browserEmail:()=>Hu,boolean:()=>RF,bigint:()=>CF,base64url:()=>m8,base64:()=>VF});var sH=/^[cC][0-9a-z]{6,}$/,eH=/^[0-9a-z]+$/,$F=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,UF=/^[0-9a-vA-V]{20}$/,JF=/^[A-Za-z0-9]{27}$/,XF=/^[a-zA-Z0-9_-]{21}$/,IF=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Gu=/^[-+]?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)?)??$/,QF=/^([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})$/,KI=(J)=>{if(!J)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}-${J}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},Zu=KI(4),zu=KI(6),Ku=KI(7),YF=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Wu=/^[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])?)*$/,Ou=/^(([^<>()\[\]\\.,;:\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,}))$/,aj=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Vu=aj,Hu=/^[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])?)*$/,Fu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function GF(){return new RegExp(Fu,"u")}var ZF=/^(?:(?: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])$/,zF=/^(([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}|:))$/,KF=(J)=>{let I=b1(J??":");return new RegExp(`^(?:[0-9A-F]{2}${I}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${I}){5}[0-9a-f]{2}$`)},WF=/^((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])$/,OF=/^(([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])$/,VF=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,m8=/^[A-Za-z0-9_-]*$/,Du=/^(?=.{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])?)*\.?$/,Lu=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,HF=/^https?$/,FF=/^\+[1-9]\d{6,14}$/,sj="(?:(?:\\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])))",DF=new RegExp(`^${sj}$`);function ej(J){return typeof J.precision==="number"?J.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":J.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{${J.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function LF(J){return new RegExp(`^${ej(J)}$`)}function MF(J){let I=ej({precision:J.precision}),Y=["Z"];if(J.local)Y.push("");if(J.offset)Y.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let W=`${I}(?:${Y.join("|")})`;return new RegExp(`^${sj}T(?:${W})$`)}var AF=(J)=>{let I=J?`[\\s\\S]{${J?.minimum??0},${J?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${I}$`)},CF=/^-?\d+n?$/,TF=/^-?\d+$/,T2=/^-?\d+(?:\.\d+)?$/,RF=/^(?:true|false)$/i,PF=/^null$/i;var _F=/^undefined$/i;var qF=/^[^A-Z]*$/,SF=/^[^a-z]*$/,Mu=/^[0-9a-fA-F]*$/;function R2(J,I){return new RegExp(`^[A-Za-z0-9+/]{${J}}${I}$`)}function P2(J){return new RegExp(`^[A-Za-z0-9_-]{${J}}$`)}var Au=/^[0-9a-fA-F]{32}$/,Cu=R2(22,"=="),Tu=P2(22),Ru=/^[0-9a-fA-F]{40}$/,Pu=R2(27,"="),_u=P2(27),qu=/^[0-9a-fA-F]{64}$/,Su=R2(43,"="),ju=P2(43),Eu=/^[0-9a-fA-F]{96}$/,Bu=R2(64,""),vu=P2(64),Nu=/^[0-9a-fA-F]{128}$/,ku=R2(86,"=="),gu=P2(86);var DU=B0("$ZodCheck",(J,I)=>{var Y;J._zod??(J._zod={}),J._zod.def=I,(Y=J._zod).onattach??(Y.onattach=[])}),UE={number:"number",bigint:"bigint",object:"date"},l8=B0("$ZodCheckLessThan",(J,I)=>{DU.init(J,I);let Y=UE[typeof I.value];J._zod.onattach.push((W)=>{let X=W._zod.bag,K=(I.inclusive?X.maximum:X.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(I.value<K)if(I.inclusive)X.maximum=I.value;else X.exclusiveMaximum=I.value}),J._zod.check=(W)=>{if(I.inclusive?W.value<=I.value:W.value<I.value)return;W.issues.push({origin:Y,code:"too_big",maximum:typeof I.value==="object"?I.value.getTime():I.value,input:W.value,inclusive:I.inclusive,inst:J,continue:!I.abort})}}),n8=B0("$ZodCheckGreaterThan",(J,I)=>{DU.init(J,I);let Y=UE[typeof I.value];J._zod.onattach.push((W)=>{let X=W._zod.bag,K=(I.inclusive?X.minimum:X.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(I.value>K)if(I.inclusive)X.minimum=I.value;else X.exclusiveMinimum=I.value}),J._zod.check=(W)=>{if(I.inclusive?W.value>=I.value:W.value>I.value)return;W.issues.push({origin:Y,code:"too_small",minimum:typeof I.value==="object"?I.value.getTime():I.value,input:W.value,inclusive:I.inclusive,inst:J,continue:!I.abort})}}),jF=B0("$ZodCheckMultipleOf",(J,I)=>{DU.init(J,I),J._zod.onattach.push((Y)=>{var W;(W=Y._zod.bag).multipleOf??(W.multipleOf=I.value)}),J._zod.check=(Y)=>{if(typeof Y.value!==typeof I.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof Y.value==="bigint"?Y.value%I.value===BigInt(0):uH(Y.value,I.value)===0)return;Y.issues.push({origin:typeof Y.value,code:"not_multiple_of",divisor:I.value,input:Y.value,inst:J,continue:!I.abort})}}),EF=B0("$ZodCheckNumberFormat",(J,I)=>{DU.init(J,I),I.format=I.format||"float64";let Y=I.format?.includes("int"),W=Y?"int":"number",[X,K]=nH[I.format];J._zod.onattach.push((Z)=>{let L=Z._zod.bag;if(L.format=I.format,L.minimum=X,L.maximum=K,Y)L.pattern=TF}),J._zod.check=(Z)=>{let L=Z.value;if(Y){if(!Number.isInteger(L)){Z.issues.push({expected:W,format:I.format,code:"invalid_type",continue:!1,input:L,inst:J});return}if(!Number.isSafeInteger(L)){if(L>0)Z.issues.push({input:L,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:J,origin:W,inclusive:!0,continue:!I.abort});else Z.issues.push({input:L,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:J,origin:W,inclusive:!0,continue:!I.abort});return}}if(L<X)Z.issues.push({origin:"number",input:L,code:"too_small",minimum:X,inclusive:!0,inst:J,continue:!I.abort});if(L>K)Z.issues.push({origin:"number",input:L,code:"too_big",maximum:K,inclusive:!0,inst:J,continue:!I.abort})}}),BF=B0("$ZodCheckBigIntFormat",(J,I)=>{DU.init(J,I);let[Y,W]=dH[I.format];J._zod.onattach.push((X)=>{let K=X._zod.bag;K.format=I.format,K.minimum=Y,K.maximum=W}),J._zod.check=(X)=>{let K=X.value;if(K<Y)X.issues.push({origin:"bigint",input:K,code:"too_small",minimum:Y,inclusive:!0,inst:J,continue:!I.abort});if(K>W)X.issues.push({origin:"bigint",input:K,code:"too_big",maximum:W,inclusive:!0,inst:J,continue:!I.abort})}}),vF=B0("$ZodCheckMaxSize",(J,I)=>{var Y;DU.init(J,I),(Y=J._zod.def).when??(Y.when=(W)=>{let X=W.value;return!YX(X)&&X.size!==void 0}),J._zod.onattach.push((W)=>{let X=W._zod.bag.maximum??Number.POSITIVE_INFINITY;if(I.maximum<X)W._zod.bag.maximum=I.maximum}),J._zod.check=(W)=>{let X=W.value;if(X.size<=I.maximum)return;W.issues.push({origin:D2(X),code:"too_big",maximum:I.maximum,inclusive:!0,input:X,inst:J,continue:!I.abort})}}),NF=B0("$ZodCheckMinSize",(J,I)=>{var Y;DU.init(J,I),(Y=J._zod.def).when??(Y.when=(W)=>{let X=W.value;return!YX(X)&&X.size!==void 0}),J._zod.onattach.push((W)=>{let X=W._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(I.minimum>X)W._zod.bag.minimum=I.minimum}),J._zod.check=(W)=>{let X=W.value;if(X.size>=I.minimum)return;W.issues.push({origin:D2(X),code:"too_small",minimum:I.minimum,inclusive:!0,input:X,inst:J,continue:!I.abort})}}),kF=B0("$ZodCheckSizeEquals",(J,I)=>{var Y;DU.init(J,I),(Y=J._zod.def).when??(Y.when=(W)=>{let X=W.value;return!YX(X)&&X.size!==void 0}),J._zod.onattach.push((W)=>{let X=W._zod.bag;X.minimum=I.size,X.maximum=I.size,X.size=I.size}),J._zod.check=(W)=>{let X=W.value,K=X.size;if(K===I.size)return;let Z=K>I.size;W.issues.push({origin:D2(X),...Z?{code:"too_big",maximum:I.size}:{code:"too_small",minimum:I.size},inclusive:!0,exact:!0,input:W.value,inst:J,continue:!I.abort})}}),gF=B0("$ZodCheckMaxLength",(J,I)=>{var Y;DU.init(J,I),(Y=J._zod.def).when??(Y.when=(W)=>{let X=W.value;return!YX(X)&&X.length!==void 0}),J._zod.onattach.push((W)=>{let X=W._zod.bag.maximum??Number.POSITIVE_INFINITY;if(I.maximum<X)W._zod.bag.maximum=I.maximum}),J._zod.check=(W)=>{let X=W.value;if(X.length<=I.maximum)return;let Z=L2(X);W.issues.push({origin:Z,code:"too_big",maximum:I.maximum,inclusive:!0,input:X,inst:J,continue:!I.abort})}}),xF=B0("$ZodCheckMinLength",(J,I)=>{var Y;DU.init(J,I),(Y=J._zod.def).when??(Y.when=(W)=>{let X=W.value;return!YX(X)&&X.length!==void 0}),J._zod.onattach.push((W)=>{let X=W._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(I.minimum>X)W._zod.bag.minimum=I.minimum}),J._zod.check=(W)=>{let X=W.value;if(X.length>=I.minimum)return;let Z=L2(X);W.issues.push({origin:Z,code:"too_small",minimum:I.minimum,inclusive:!0,input:X,inst:J,continue:!I.abort})}}),wF=B0("$ZodCheckLengthEquals",(J,I)=>{var Y;DU.init(J,I),(Y=J._zod.def).when??(Y.when=(W)=>{let X=W.value;return!YX(X)&&X.length!==void 0}),J._zod.onattach.push((W)=>{let X=W._zod.bag;X.minimum=I.length,X.maximum=I.length,X.length=I.length}),J._zod.check=(W)=>{let X=W.value,K=X.length;if(K===I.length)return;let Z=L2(X),L=K>I.length;W.issues.push({origin:Z,...L?{code:"too_big",maximum:I.length}:{code:"too_small",minimum:I.length},inclusive:!0,exact:!0,input:W.value,inst:J,continue:!I.abort})}}),pQ=B0("$ZodCheckStringFormat",(J,I)=>{var Y,W;if(DU.init(J,I),J._zod.onattach.push((X)=>{let K=X._zod.bag;if(K.format=I.format,I.pattern)K.patterns??(K.patterns=new Set),K.patterns.add(I.pattern)}),I.pattern)(Y=J._zod).check??(Y.check=(X)=>{if(I.pattern.lastIndex=0,I.pattern.test(X.value))return;X.issues.push({origin:"string",code:"invalid_format",format:I.format,input:X.value,...I.pattern?{pattern:I.pattern.toString()}:{},inst:J,continue:!I.abort})});else(W=J._zod).check??(W.check=()=>{})}),fF=B0("$ZodCheckRegex",(J,I)=>{pQ.init(J,I),J._zod.check=(Y)=>{if(I.pattern.lastIndex=0,I.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:"regex",input:Y.value,pattern:I.pattern.toString(),inst:J,continue:!I.abort})}}),yF=B0("$ZodCheckLowerCase",(J,I)=>{I.pattern??(I.pattern=qF),pQ.init(J,I)}),bF=B0("$ZodCheckUpperCase",(J,I)=>{I.pattern??(I.pattern=SF),pQ.init(J,I)}),uF=B0("$ZodCheckIncludes",(J,I)=>{DU.init(J,I);let Y=b1(I.includes),W=new RegExp(typeof I.position==="number"?`^.{${I.position}}${Y}`:Y);I.pattern=W,J._zod.onattach.push((X)=>{let K=X._zod.bag;K.patterns??(K.patterns=new Set),K.patterns.add(W)}),J._zod.check=(X)=>{if(X.value.includes(I.includes,I.position))return;X.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:I.includes,input:X.value,inst:J,continue:!I.abort})}}),hF=B0("$ZodCheckStartsWith",(J,I)=>{DU.init(J,I);let Y=new RegExp(`^${b1(I.prefix)}.*`);I.pattern??(I.pattern=Y),J._zod.onattach.push((W)=>{let X=W._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(Y)}),J._zod.check=(W)=>{if(W.value.startsWith(I.prefix))return;W.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:I.prefix,input:W.value,inst:J,continue:!I.abort})}}),cF=B0("$ZodCheckEndsWith",(J,I)=>{DU.init(J,I);let Y=new RegExp(`.*${b1(I.suffix)}$`);I.pattern??(I.pattern=Y),J._zod.onattach.push((W)=>{let X=W._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(Y)}),J._zod.check=(W)=>{if(W.value.endsWith(I.suffix))return;W.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:I.suffix,input:W.value,inst:J,continue:!I.abort})}});function $E(J,I,Y){if(J.issues.length)I.issues.push(...e6(Y,J.issues))}var pF=B0("$ZodCheckProperty",(J,I)=>{DU.init(J,I),J._zod.check=(Y)=>{let W=I.schema._zod.run({value:Y.value[I.property],issues:[]},{});if(W instanceof Promise)return W.then((X)=>$E(X,Y,I.property));$E(W,Y,I.property);return}}),mF=B0("$ZodCheckMimeType",(J,I)=>{DU.init(J,I);let Y=new Set(I.mime);J._zod.onattach.push((W)=>{W._zod.bag.mime=I.mime}),J._zod.check=(W)=>{if(Y.has(W.value.type))return;W.issues.push({code:"invalid_value",values:I.mime,input:W.value.type,inst:J,continue:!I.abort})}}),lF=B0("$ZodCheckOverwrite",(J,I)=>{DU.init(J,I),J._zod.check=(Y)=>{Y.value=I.tx(Y.value)}});class d8{constructor(J=[]){if(this.content=[],this.indent=0,this)this.args=J}indented(J){this.indent+=1,J(this),this.indent-=1}write(J){if(typeof J==="function"){J(this,{execution:"sync"}),J(this,{execution:"async"});return}let Y=J.split(`
|
|
258
|
+
`).filter((K)=>K),W=Math.min(...Y.map((K)=>K.length-K.trimStart().length)),X=Y.map((K)=>K.slice(W)).map((K)=>" ".repeat(this.indent*2)+K);for(let K of X)this.content.push(K)}compile(){let J=Function,I=this?.args,W=[...(this?.content??[""]).map((X)=>` ${X}`)];return new J(...I,W.join(`
|
|
259
|
+
`))}}var nF={major:4,minor:4,patch:3};var S$=B0("$ZodType",(J,I)=>{var Y;J??(J={}),J._zod.def=I,J._zod.bag=J._zod.bag||{},J._zod.version=nF;let W=[...J._zod.def.checks??[]];if(J._zod.traits.has("$ZodCheck"))W.unshift(J);for(let X of W)for(let K of X._zod.onattach)K(J);if(W.length===0)(Y=J._zod).deferred??(Y.deferred=[]),J._zod.deferred?.push(()=>{J._zod.run=J._zod.parse});else{let X=(Z,L,E)=>{let _=zX(Z),S;for(let A of L){if(A._zod.def.when){if(oH(Z))continue;if(!A._zod.def.when(Z))continue}else if(_)continue;let q=Z.issues.length,B=A._zod.check(Z);if(B instanceof Promise&&E?.async===!1)throw new N4;if(S||B instanceof Promise)S=(S??Promise.resolve()).then(async()=>{if(await B,Z.issues.length===q)return;if(!_)_=zX(Z,q)});else{if(Z.issues.length===q)continue;if(!_)_=zX(Z,q)}}if(S)return S.then(()=>{return Z});return Z},K=(Z,L,E)=>{if(zX(Z))return Z.aborted=!0,Z;let _=X(L,W,E);if(_ instanceof Promise){if(E.async===!1)throw new N4;return _.then((S)=>J._zod.parse(S,E))}return J._zod.parse(_,E)};J._zod.run=(Z,L)=>{if(L.skipChecks)return J._zod.parse(Z,L);if(L.direction==="backward"){let _=J._zod.parse({value:Z.value,issues:[]},{...L,skipChecks:!0});if(_ instanceof Promise)return _.then((S)=>{return K(S,Z,L)});return K(_,Z,L)}let E=J._zod.parse(Z,L);if(E instanceof Promise){if(L.async===!1)throw new N4;return E.then((_)=>X(_,W,L))}return X(E,W,L)}}c$(J,"~standard",()=>({validate:(X)=>{try{let K=tH(J,X);return K.success?{value:K.data}:{issues:K.error?.issues}}catch(K){return aH(J,X).then((Z)=>Z.success?{value:Z.data}:{issues:Z.error?.issues})}},vendor:"zod",version:1}))}),WI=B0("$ZodString",(J,I)=>{S$.init(J,I),J._zod.pattern=[...J?._zod.bag?.patterns??[]].pop()??AF(J._zod.bag),J._zod.parse=(Y,W)=>{if(I.coerce)try{Y.value=String(Y.value)}catch(X){}if(typeof Y.value==="string")return Y;return Y.issues.push({expected:"string",code:"invalid_type",input:Y.value,inst:J}),Y}}),KU=B0("$ZodStringFormat",(J,I)=>{pQ.init(J,I),WI.init(J,I)}),oF=B0("$ZodGUID",(J,I)=>{I.pattern??(I.pattern=QF),KU.init(J,I)}),iF=B0("$ZodUUID",(J,I)=>{if(I.version){let W={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[I.version];if(W===void 0)throw Error(`Invalid UUID version: "${I.version}"`);I.pattern??(I.pattern=KI(W))}else I.pattern??(I.pattern=KI());KU.init(J,I)}),rF=B0("$ZodEmail",(J,I)=>{I.pattern??(I.pattern=YF),KU.init(J,I)}),tF=B0("$ZodURL",(J,I)=>{KU.init(J,I),J._zod.check=(Y)=>{try{let W=Y.value.trim();if(!I.normalize&&I.protocol?.source===HF.source){if(!/^https?:\/\//i.test(W)){Y.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:Y.value,inst:J,continue:!I.abort});return}}let X=new URL(W);if(I.hostname){if(I.hostname.lastIndex=0,!I.hostname.test(X.hostname))Y.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:I.hostname.source,input:Y.value,inst:J,continue:!I.abort})}if(I.protocol){if(I.protocol.lastIndex=0,!I.protocol.test(X.protocol.endsWith(":")?X.protocol.slice(0,-1):X.protocol))Y.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:I.protocol.source,input:Y.value,inst:J,continue:!I.abort})}if(I.normalize)Y.value=X.href;else Y.value=W;return}catch(W){Y.issues.push({code:"invalid_format",format:"url",input:Y.value,inst:J,continue:!I.abort})}}}),aF=B0("$ZodEmoji",(J,I)=>{I.pattern??(I.pattern=GF()),KU.init(J,I)}),sF=B0("$ZodNanoID",(J,I)=>{I.pattern??(I.pattern=XF),KU.init(J,I)}),eF=B0("$ZodCUID",(J,I)=>{I.pattern??(I.pattern=sH),KU.init(J,I)}),$5=B0("$ZodCUID2",(J,I)=>{I.pattern??(I.pattern=eH),KU.init(J,I)}),U5=B0("$ZodULID",(J,I)=>{I.pattern??(I.pattern=$F),KU.init(J,I)}),J5=B0("$ZodXID",(J,I)=>{I.pattern??(I.pattern=UF),KU.init(J,I)}),X5=B0("$ZodKSUID",(J,I)=>{I.pattern??(I.pattern=JF),KU.init(J,I)}),I5=B0("$ZodISODateTime",(J,I)=>{I.pattern??(I.pattern=MF(I)),KU.init(J,I)}),Q5=B0("$ZodISODate",(J,I)=>{I.pattern??(I.pattern=DF),KU.init(J,I)}),Y5=B0("$ZodISOTime",(J,I)=>{I.pattern??(I.pattern=LF(I)),KU.init(J,I)}),G5=B0("$ZodISODuration",(J,I)=>{I.pattern??(I.pattern=IF),KU.init(J,I)}),Z5=B0("$ZodIPv4",(J,I)=>{I.pattern??(I.pattern=ZF),KU.init(J,I),J._zod.bag.format="ipv4"}),z5=B0("$ZodIPv6",(J,I)=>{I.pattern??(I.pattern=zF),KU.init(J,I),J._zod.bag.format="ipv6",J._zod.check=(Y)=>{try{new URL(`http://[${Y.value}]`)}catch{Y.issues.push({code:"invalid_format",format:"ipv6",input:Y.value,inst:J,continue:!I.abort})}}}),K5=B0("$ZodMAC",(J,I)=>{I.pattern??(I.pattern=KF(I.delimiter)),KU.init(J,I),J._zod.bag.format="mac"}),W5=B0("$ZodCIDRv4",(J,I)=>{I.pattern??(I.pattern=WF),KU.init(J,I)}),O5=B0("$ZodCIDRv6",(J,I)=>{I.pattern??(I.pattern=OF),KU.init(J,I),J._zod.check=(Y)=>{let W=Y.value.split("/");try{if(W.length!==2)throw Error();let[X,K]=W;if(!K)throw Error();let Z=Number(K);if(`${Z}`!==K)throw Error();if(Z<0||Z>128)throw Error();new URL(`http://[${X}]`)}catch{Y.issues.push({code:"invalid_format",format:"cidrv6",input:Y.value,inst:J,continue:!I.abort})}}});function V5(J){if(J==="")return!0;if(/\s/.test(J))return!1;if(J.length%4!==0)return!1;try{return atob(J),!0}catch{return!1}}var H5=B0("$ZodBase64",(J,I)=>{I.pattern??(I.pattern=VF),KU.init(J,I),J._zod.bag.contentEncoding="base64",J._zod.check=(Y)=>{if(V5(Y.value))return;Y.issues.push({code:"invalid_format",format:"base64",input:Y.value,inst:J,continue:!I.abort})}});function LE(J){if(!m8.test(J))return!1;let I=J.replace(/[-_]/g,(W)=>W==="-"?"+":"/"),Y=I.padEnd(Math.ceil(I.length/4)*4,"=");return V5(Y)}var F5=B0("$ZodBase64URL",(J,I)=>{I.pattern??(I.pattern=m8),KU.init(J,I),J._zod.bag.contentEncoding="base64url",J._zod.check=(Y)=>{if(LE(Y.value))return;Y.issues.push({code:"invalid_format",format:"base64url",input:Y.value,inst:J,continue:!I.abort})}}),D5=B0("$ZodE164",(J,I)=>{I.pattern??(I.pattern=FF),KU.init(J,I)});function ME(J,I=null){try{let Y=J.split(".");if(Y.length!==3)return!1;let[W]=Y;if(!W)return!1;let X=JSON.parse(atob(W));if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(I&&(!("alg"in X)||X.alg!==I))return!1;return!0}catch{return!1}}var L5=B0("$ZodJWT",(J,I)=>{KU.init(J,I),J._zod.check=(Y)=>{if(ME(Y.value,I.alg))return;Y.issues.push({code:"invalid_format",format:"jwt",input:Y.value,inst:J,continue:!I.abort})}}),M5=B0("$ZodCustomStringFormat",(J,I)=>{KU.init(J,I),J._zod.check=(Y)=>{if(I.fn(Y.value))return;Y.issues.push({code:"invalid_format",format:I.format,input:Y.value,inst:J,continue:!I.abort})}}),a8=B0("$ZodNumber",(J,I)=>{S$.init(J,I),J._zod.pattern=J._zod.bag.pattern??T2,J._zod.parse=(Y,W)=>{if(I.coerce)try{Y.value=Number(Y.value)}catch(Z){}let X=Y.value;if(typeof X==="number"&&!Number.isNaN(X)&&Number.isFinite(X))return Y;let K=typeof X==="number"?Number.isNaN(X)?"NaN":!Number.isFinite(X)?"Infinity":void 0:void 0;return Y.issues.push({expected:"number",code:"invalid_type",input:X,inst:J,...K?{received:K}:{}}),Y}}),A5=B0("$ZodNumberFormat",(J,I)=>{EF.init(J,I),a8.init(J,I)}),_2=B0("$ZodBoolean",(J,I)=>{S$.init(J,I),J._zod.pattern=RF,J._zod.parse=(Y,W)=>{if(I.coerce)try{Y.value=Boolean(Y.value)}catch(K){}let X=Y.value;if(typeof X==="boolean")return Y;return Y.issues.push({expected:"boolean",code:"invalid_type",input:X,inst:J}),Y}}),s8=B0("$ZodBigInt",(J,I)=>{S$.init(J,I),J._zod.pattern=CF,J._zod.parse=(Y,W)=>{if(I.coerce)try{Y.value=BigInt(Y.value)}catch(X){}if(typeof Y.value==="bigint")return Y;return Y.issues.push({expected:"bigint",code:"invalid_type",input:Y.value,inst:J}),Y}}),C5=B0("$ZodBigIntFormat",(J,I)=>{BF.init(J,I),s8.init(J,I)}),T5=B0("$ZodSymbol",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{let X=Y.value;if(typeof X==="symbol")return Y;return Y.issues.push({expected:"symbol",code:"invalid_type",input:X,inst:J}),Y}}),R5=B0("$ZodUndefined",(J,I)=>{S$.init(J,I),J._zod.pattern=_F,J._zod.values=new Set([void 0]),J._zod.parse=(Y,W)=>{let X=Y.value;if(typeof X>"u")return Y;return Y.issues.push({expected:"undefined",code:"invalid_type",input:X,inst:J}),Y}}),P5=B0("$ZodNull",(J,I)=>{S$.init(J,I),J._zod.pattern=PF,J._zod.values=new Set([null]),J._zod.parse=(Y,W)=>{let X=Y.value;if(X===null)return Y;return Y.issues.push({expected:"null",code:"invalid_type",input:X,inst:J}),Y}}),_5=B0("$ZodAny",(J,I)=>{S$.init(J,I),J._zod.parse=(Y)=>Y}),q5=B0("$ZodUnknown",(J,I)=>{S$.init(J,I),J._zod.parse=(Y)=>Y}),S5=B0("$ZodNever",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{return Y.issues.push({expected:"never",code:"invalid_type",input:Y.value,inst:J}),Y}}),j5=B0("$ZodVoid",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{let X=Y.value;if(typeof X>"u")return Y;return Y.issues.push({expected:"void",code:"invalid_type",input:X,inst:J}),Y}}),E5=B0("$ZodDate",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{if(I.coerce)try{Y.value=new Date(Y.value)}catch(L){}let X=Y.value,K=X instanceof Date;if(K&&!Number.isNaN(X.getTime()))return Y;return Y.issues.push({expected:"date",code:"invalid_type",input:X,...K?{received:"Invalid Date"}:{},inst:J}),Y}});function XE(J,I,Y){if(J.issues.length)I.issues.push(...e6(Y,J.issues));I.value[Y]=J.value}var B5=B0("$ZodArray",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{let X=Y.value;if(!Array.isArray(X))return Y.issues.push({expected:"array",code:"invalid_type",input:X,inst:J}),Y;Y.value=Array(X.length);let K=[];for(let Z=0;Z<X.length;Z++){let L=X[Z],E=I.element._zod.run({value:L,issues:[]},W);if(E instanceof Promise)K.push(E.then((_)=>XE(_,Y,Z)));else XE(E,Y,Z)}if(K.length)return Promise.all(K).then(()=>Y);return Y}});function t8(J,I,Y,W,X,K){let Z=Y in W;if(J.issues.length){if(X&&K&&!Z)return;I.issues.push(...e6(Y,J.issues))}if(!Z&&!X){if(!J.issues.length)I.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[Y]});return}if(J.value===void 0){if(Z)I.value[Y]=void 0}else I.value[Y]=J.value}function AE(J){let I=Object.keys(J.shape);for(let W of I)if(!J.shape?.[W]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${W}": expected a Zod schema`);let Y=lH(J.shape);return{...J,keys:I,keySet:new Set(I),numKeys:I.length,optionalKeys:new Set(Y)}}function CE(J,I,Y,W,X,K){let Z=[],L=X.keySet,E=X.catchall._zod,_=E.def.type,S=E.optin==="optional",A=E.optout==="optional";for(let q in I){if(q==="__proto__")continue;if(L.has(q))continue;if(_==="never"){Z.push(q);continue}let B=E.run({value:I[q],issues:[]},W);if(B instanceof Promise)J.push(B.then((N)=>t8(N,Y,q,I,S,A)));else t8(B,Y,q,I,S,A)}if(Z.length)Y.issues.push({code:"unrecognized_keys",keys:Z,input:I,inst:K});if(!J.length)return Y;return Promise.all(J).then(()=>{return Y})}var TE=B0("$ZodObject",(J,I)=>{if(S$.init(J,I),!Object.getOwnPropertyDescriptor(I,"shape")?.get){let L=I.shape;Object.defineProperty(I,"shape",{get:()=>{let E={...L};return Object.defineProperty(I,"shape",{value:E}),E}})}let W=fQ(()=>AE(I));c$(J._zod,"propValues",()=>{let L=I.shape,E={};for(let _ in L){let S=L[_]._zod;if(S.values){E[_]??(E[_]=new Set);for(let A of S.values)E[_].add(A)}}return E});let X=zI,K=I.catchall,Z;J._zod.parse=(L,E)=>{Z??(Z=W.value);let _=L.value;if(!X(_))return L.issues.push({expected:"object",code:"invalid_type",input:_,inst:J}),L;L.value={};let S=[],A=Z.shape;for(let q of Z.keys){let B=A[q],N=B._zod.optin==="optional",f=B._zod.optout==="optional",w=B._zod.run({value:_[q],issues:[]},E);if(w instanceof Promise)S.push(w.then((u)=>t8(u,L,q,_,N,f)));else t8(w,L,q,_,N,f)}if(!K)return S.length?Promise.all(S).then(()=>L):L;return CE(S,_,L,E,W.value,J)}}),v5=B0("$ZodObjectJIT",(J,I)=>{TE.init(J,I);let Y=J._zod.parse,W=fQ(()=>AE(I)),X=(q)=>{let B=new d8(["shape","payload","ctx"]),N=W.value,f=(b)=>{let p=N8(b);return`shape[${p}]._zod.run({ value: input[${p}], issues: [] }, ctx)`};B.write("const input = payload.value;");let w=Object.create(null),u=0;for(let b of N.keys)w[b]=`key_${u++}`;B.write("const newResult = {};");for(let b of N.keys){let p=w[b],n=N8(b),a=q[b],D0=a?._zod?.optin==="optional",M0=a?._zod?.optout==="optional";if(B.write(`const ${p} = ${f(b)};`),D0&&M0)B.write(`
|
|
260
|
+
if (${p}.issues.length) {
|
|
261
|
+
if (${n} in input) {
|
|
262
|
+
payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
|
|
263
|
+
...iss,
|
|
264
|
+
path: iss.path ? [${n}, ...iss.path] : [${n}]
|
|
265
|
+
})));
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (${p}.value === undefined) {
|
|
270
|
+
if (${n} in input) {
|
|
271
|
+
newResult[${n}] = undefined;
|
|
272
|
+
}
|
|
273
|
+
} else {
|
|
274
|
+
newResult[${n}] = ${p}.value;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
`);else if(!D0)B.write(`
|
|
278
|
+
const ${p}_present = ${n} in input;
|
|
279
|
+
if (${p}.issues.length) {
|
|
280
|
+
payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
|
|
281
|
+
...iss,
|
|
282
|
+
path: iss.path ? [${n}, ...iss.path] : [${n}]
|
|
283
|
+
})));
|
|
284
|
+
}
|
|
285
|
+
if (!${p}_present && !${p}.issues.length) {
|
|
286
|
+
payload.issues.push({
|
|
287
|
+
code: "invalid_type",
|
|
288
|
+
expected: "nonoptional",
|
|
289
|
+
input: undefined,
|
|
290
|
+
path: [${n}]
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
if (${p}_present) {
|
|
295
|
+
if (${p}.value === undefined) {
|
|
296
|
+
newResult[${n}] = undefined;
|
|
297
|
+
} else {
|
|
298
|
+
newResult[${n}] = ${p}.value;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
`);else B.write(`
|
|
303
|
+
if (${p}.issues.length) {
|
|
304
|
+
payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
|
|
305
|
+
...iss,
|
|
306
|
+
path: iss.path ? [${n}, ...iss.path] : [${n}]
|
|
307
|
+
})));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if (${p}.value === undefined) {
|
|
311
|
+
if (${n} in input) {
|
|
312
|
+
newResult[${n}] = undefined;
|
|
313
|
+
}
|
|
314
|
+
} else {
|
|
315
|
+
newResult[${n}] = ${p}.value;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
`)}B.write("payload.value = newResult;"),B.write("return payload;");let g=B.compile();return(b,p)=>g(q,b,p)},K,Z=zI,L=!GI.jitless,_=L&&cH.value,S=I.catchall,A;J._zod.parse=(q,B)=>{A??(A=W.value);let N=q.value;if(!Z(N))return q.issues.push({expected:"object",code:"invalid_type",input:N,inst:J}),q;if(L&&_&&B?.async===!1&&B.jitless!==!0){if(!K)K=X(I.shape);if(q=K(q,B),!S)return q;return CE([],N,q,B,A,J)}return Y(q,B)}});function IE(J,I,Y,W){for(let K of J)if(K.issues.length===0)return I.value=K.value,I;let X=J.filter((K)=>!zX(K));if(X.length===1)return I.value=X[0].value,X[0];return I.issues.push({code:"invalid_union",input:I.value,inst:Y,errors:J.map((K)=>K.issues.map((Z)=>h6(Z,W,tU())))}),I}var q2=B0("$ZodUnion",(J,I)=>{S$.init(J,I),c$(J._zod,"optin",()=>I.options.some((W)=>W._zod.optin==="optional")?"optional":void 0),c$(J._zod,"optout",()=>I.options.some((W)=>W._zod.optout==="optional")?"optional":void 0),c$(J._zod,"values",()=>{if(I.options.every((W)=>W._zod.values))return new Set(I.options.flatMap((W)=>Array.from(W._zod.values)));return}),c$(J._zod,"pattern",()=>{if(I.options.every((W)=>W._zod.pattern)){let W=I.options.map((X)=>X._zod.pattern);return new RegExp(`^(${W.map((X)=>H2(X.source)).join("|")})$`)}return});let Y=I.options.length===1?I.options[0]._zod.run:null;J._zod.parse=(W,X)=>{if(Y)return Y(W,X);let K=!1,Z=[];for(let L of I.options){let E=L._zod.run({value:W.value,issues:[]},X);if(E instanceof Promise)Z.push(E),K=!0;else{if(E.issues.length===0)return E;Z.push(E)}}if(!K)return IE(Z,W,J,X);return Promise.all(Z).then((L)=>{return IE(L,W,J,X)})}});function QE(J,I,Y,W){let X=J.filter((K)=>K.issues.length===0);if(X.length===1)return I.value=X[0].value,I;if(X.length===0)I.issues.push({code:"invalid_union",input:I.value,inst:Y,errors:J.map((K)=>K.issues.map((Z)=>h6(Z,W,tU())))});else I.issues.push({code:"invalid_union",input:I.value,inst:Y,errors:[],inclusive:!1});return I}var N5=B0("$ZodXor",(J,I)=>{q2.init(J,I),I.inclusive=!1;let Y=I.options.length===1?I.options[0]._zod.run:null;J._zod.parse=(W,X)=>{if(Y)return Y(W,X);let K=!1,Z=[];for(let L of I.options){let E=L._zod.run({value:W.value,issues:[]},X);if(E instanceof Promise)Z.push(E),K=!0;else Z.push(E)}if(!K)return QE(Z,W,J,X);return Promise.all(Z).then((L)=>{return QE(L,W,J,X)})}}),k5=B0("$ZodDiscriminatedUnion",(J,I)=>{I.inclusive=!1,q2.init(J,I);let Y=J._zod.parse;c$(J._zod,"propValues",()=>{let X={};for(let K of I.options){let Z=K._zod.propValues;if(!Z||Object.keys(Z).length===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(K)}"`);for(let[L,E]of Object.entries(Z)){if(!X[L])X[L]=new Set;for(let _ of E)X[L].add(_)}}return X});let W=fQ(()=>{let X=I.options,K=new Map;for(let Z of X){let L=Z._zod.propValues?.[I.discriminator];if(!L||L.size===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(Z)}"`);for(let E of L){if(K.has(E))throw Error(`Duplicate discriminator value "${String(E)}"`);K.set(E,Z)}}return K});J._zod.parse=(X,K)=>{let Z=X.value;if(!zI(Z))return X.issues.push({code:"invalid_type",expected:"object",input:Z,inst:J}),X;let L=W.value.get(Z?.[I.discriminator]);if(L)return L._zod.run(X,K);if(I.unionFallback||K.direction==="backward")return Y(X,K);return X.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:I.discriminator,options:Array.from(W.value.keys()),input:Z,path:[I.discriminator],inst:J}),X}}),g5=B0("$ZodIntersection",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{let X=Y.value,K=I.left._zod.run({value:X,issues:[]},W),Z=I.right._zod.run({value:X,issues:[]},W);if(K instanceof Promise||Z instanceof Promise)return Promise.all([K,Z]).then(([E,_])=>{return YE(Y,E,_)});return YE(Y,K,Z)}});function dF(J,I){if(J===I)return{valid:!0,data:J};if(J instanceof Date&&I instanceof Date&&+J===+I)return{valid:!0,data:J};if(ZX(J)&&ZX(I)){let Y=Object.keys(I),W=Object.keys(J).filter((K)=>Y.indexOf(K)!==-1),X={...J,...I};for(let K of W){let Z=dF(J[K],I[K]);if(!Z.valid)return{valid:!1,mergeErrorPath:[K,...Z.mergeErrorPath]};X[K]=Z.data}return{valid:!0,data:X}}if(Array.isArray(J)&&Array.isArray(I)){if(J.length!==I.length)return{valid:!1,mergeErrorPath:[]};let Y=[];for(let W=0;W<J.length;W++){let X=J[W],K=I[W],Z=dF(X,K);if(!Z.valid)return{valid:!1,mergeErrorPath:[W,...Z.mergeErrorPath]};Y.push(Z.data)}return{valid:!0,data:Y}}return{valid:!1,mergeErrorPath:[]}}function YE(J,I,Y){let W=new Map,X;for(let L of I.issues)if(L.code==="unrecognized_keys"){X??(X=L);for(let E of L.keys){if(!W.has(E))W.set(E,{});W.get(E).l=!0}}else J.issues.push(L);for(let L of Y.issues)if(L.code==="unrecognized_keys")for(let E of L.keys){if(!W.has(E))W.set(E,{});W.get(E).r=!0}else J.issues.push(L);let K=[...W].filter(([,L])=>L.l&&L.r).map(([L])=>L);if(K.length&&X)J.issues.push({...X,keys:K});if(zX(J))return J;let Z=dF(I.value,Y.value);if(!Z.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(Z.mergeErrorPath)}`);return J.value=Z.data,J}var e8=B0("$ZodTuple",(J,I)=>{S$.init(J,I);let Y=I.items;J._zod.parse=(W,X)=>{let K=W.value;if(!Array.isArray(K))return W.issues.push({input:K,inst:J,expected:"tuple",code:"invalid_type"}),W;W.value=[];let Z=[],L=GE(Y,"optin"),E=GE(Y,"optout");if(!I.rest){if(K.length<L)return W.issues.push({code:"too_small",minimum:L,inclusive:!0,input:K,inst:J,origin:"array"}),W;if(K.length>Y.length)W.issues.push({code:"too_big",maximum:Y.length,inclusive:!0,input:K,inst:J,origin:"array"})}let _=Array(Y.length);for(let S=0;S<Y.length;S++){let A=Y[S]._zod.run({value:K[S],issues:[]},X);if(A instanceof Promise)Z.push(A.then((q)=>{_[S]=q}));else _[S]=A}if(I.rest){let S=Y.length-1,A=K.slice(Y.length);for(let q of A){S++;let B=I.rest._zod.run({value:q,issues:[]},X);if(B instanceof Promise)Z.push(B.then((N)=>ZE(N,W,S)));else ZE(B,W,S)}}if(Z.length)return Promise.all(Z).then(()=>zE(_,W,Y,K,E));return zE(_,W,Y,K,E)}});function GE(J,I){for(let Y=J.length-1;Y>=0;Y--)if(J[Y]._zod[I]!=="optional")return Y+1;return 0}function ZE(J,I,Y){if(J.issues.length)I.issues.push(...e6(Y,J.issues));I.value[Y]=J.value}function zE(J,I,Y,W,X){for(let K=0;K<Y.length;K++){let Z=J[K],L=K<W.length;if(Z.issues.length){if(!L&&K>=X){I.value.length=K;break}I.issues.push(...e6(K,Z.issues))}I.value[K]=Z.value}for(let K=I.value.length-1;K>=W.length;K--)if(Y[K]._zod.optout==="optional"&&I.value[K]===void 0)I.value.length=K;else break;return I}var x5=B0("$ZodRecord",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{let X=Y.value;if(!ZX(X))return Y.issues.push({expected:"record",code:"invalid_type",input:X,inst:J}),Y;let K=[],Z=I.keyType._zod.values;if(Z){Y.value={};let L=new Set;for(let _ of Z)if(typeof _==="string"||typeof _==="number"||typeof _==="symbol"){L.add(typeof _==="number"?_.toString():_);let S=I.keyType._zod.run({value:_,issues:[]},W);if(S instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(S.issues.length){Y.issues.push({code:"invalid_key",origin:"record",issues:S.issues.map((B)=>h6(B,W,tU())),input:_,path:[_],inst:J});continue}let A=S.value,q=I.valueType._zod.run({value:X[_],issues:[]},W);if(q instanceof Promise)K.push(q.then((B)=>{if(B.issues.length)Y.issues.push(...e6(_,B.issues));Y.value[A]=B.value}));else{if(q.issues.length)Y.issues.push(...e6(_,q.issues));Y.value[A]=q.value}}let E;for(let _ in X)if(!L.has(_))E=E??[],E.push(_);if(E&&E.length>0)Y.issues.push({code:"unrecognized_keys",input:X,inst:J,keys:E})}else{Y.value={};for(let L of Reflect.ownKeys(X)){if(L==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(X,L))continue;let E=I.keyType._zod.run({value:L,issues:[]},W);if(E instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof L==="string"&&T2.test(L)&&E.issues.length){let A=I.keyType._zod.run({value:Number(L),issues:[]},W);if(A instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(A.issues.length===0)E=A}if(E.issues.length){if(I.mode==="loose")Y.value[L]=X[L];else Y.issues.push({code:"invalid_key",origin:"record",issues:E.issues.map((A)=>h6(A,W,tU())),input:L,path:[L],inst:J});continue}let S=I.valueType._zod.run({value:X[L],issues:[]},W);if(S instanceof Promise)K.push(S.then((A)=>{if(A.issues.length)Y.issues.push(...e6(L,A.issues));Y.value[E.value]=A.value}));else{if(S.issues.length)Y.issues.push(...e6(L,S.issues));Y.value[E.value]=S.value}}}if(K.length)return Promise.all(K).then(()=>Y);return Y}}),w5=B0("$ZodMap",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{let X=Y.value;if(!(X instanceof Map))return Y.issues.push({expected:"map",code:"invalid_type",input:X,inst:J}),Y;let K=[];Y.value=new Map;for(let[Z,L]of X){let E=I.keyType._zod.run({value:Z,issues:[]},W),_=I.valueType._zod.run({value:L,issues:[]},W);if(E instanceof Promise||_ instanceof Promise)K.push(Promise.all([E,_]).then(([S,A])=>{KE(S,A,Y,Z,X,J,W)}));else KE(E,_,Y,Z,X,J,W)}if(K.length)return Promise.all(K).then(()=>Y);return Y}});function KE(J,I,Y,W,X,K,Z){if(J.issues.length)if(F2.has(typeof W))Y.issues.push(...e6(W,J.issues));else Y.issues.push({code:"invalid_key",origin:"map",input:X,inst:K,issues:J.issues.map((L)=>h6(L,Z,tU()))});if(I.issues.length)if(F2.has(typeof W))Y.issues.push(...e6(W,I.issues));else Y.issues.push({origin:"map",code:"invalid_element",input:X,inst:K,key:W,issues:I.issues.map((L)=>h6(L,Z,tU()))});Y.value.set(J.value,I.value)}var f5=B0("$ZodSet",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{let X=Y.value;if(!(X instanceof Set))return Y.issues.push({input:X,inst:J,expected:"set",code:"invalid_type"}),Y;let K=[];Y.value=new Set;for(let Z of X){let L=I.valueType._zod.run({value:Z,issues:[]},W);if(L instanceof Promise)K.push(L.then((E)=>WE(E,Y)));else WE(L,Y)}if(K.length)return Promise.all(K).then(()=>Y);return Y}});function WE(J,I){if(J.issues.length)I.issues.push(...J.issues);I.value.add(J.value)}var y5=B0("$ZodEnum",(J,I)=>{S$.init(J,I);let Y=V2(I.entries),W=new Set(Y);J._zod.values=W,J._zod.pattern=new RegExp(`^(${Y.filter((X)=>F2.has(typeof X)).map((X)=>typeof X==="string"?b1(X):X.toString()).join("|")})$`),J._zod.parse=(X,K)=>{let Z=X.value;if(W.has(Z))return X;return X.issues.push({code:"invalid_value",values:Y,input:Z,inst:J}),X}}),b5=B0("$ZodLiteral",(J,I)=>{if(S$.init(J,I),I.values.length===0)throw Error("Cannot create literal schema with no valid values");let Y=new Set(I.values);J._zod.values=Y,J._zod.pattern=new RegExp(`^(${I.values.map((W)=>typeof W==="string"?b1(W):W?b1(W.toString()):String(W)).join("|")})$`),J._zod.parse=(W,X)=>{let K=W.value;if(Y.has(K))return W;return W.issues.push({code:"invalid_value",values:I.values,input:K,inst:J}),W}}),u5=B0("$ZodFile",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{let X=Y.value;if(X instanceof File)return Y;return Y.issues.push({expected:"file",code:"invalid_type",input:X,inst:J}),Y}}),h5=B0("$ZodTransform",(J,I)=>{S$.init(J,I),J._zod.optin="optional",J._zod.parse=(Y,W)=>{if(W.direction==="backward")throw new ZI(J.constructor.name);let X=I.transform(Y.value,Y);if(W.async)return(X instanceof Promise?X:Promise.resolve(X)).then((Z)=>{return Y.value=Z,Y.fallback=!0,Y});if(X instanceof Promise)throw new N4;return Y.value=X,Y.fallback=!0,Y}});function OE(J,I){if(I===void 0&&(J.issues.length||J.fallback))return{issues:[],value:void 0};return J}var $K=B0("$ZodOptional",(J,I)=>{S$.init(J,I),J._zod.optin="optional",J._zod.optout="optional",c$(J._zod,"values",()=>{return I.innerType._zod.values?new Set([...I.innerType._zod.values,void 0]):void 0}),c$(J._zod,"pattern",()=>{let Y=I.innerType._zod.pattern;return Y?new RegExp(`^(${H2(Y.source)})?$`):void 0}),J._zod.parse=(Y,W)=>{if(I.innerType._zod.optin==="optional"){let X=Y.value,K=I.innerType._zod.run(Y,W);if(K instanceof Promise)return K.then((Z)=>OE(Z,X));return OE(K,X)}if(Y.value===void 0)return Y;return I.innerType._zod.run(Y,W)}}),c5=B0("$ZodExactOptional",(J,I)=>{$K.init(J,I),c$(J._zod,"values",()=>I.innerType._zod.values),c$(J._zod,"pattern",()=>I.innerType._zod.pattern),J._zod.parse=(Y,W)=>{return I.innerType._zod.run(Y,W)}}),p5=B0("$ZodNullable",(J,I)=>{S$.init(J,I),c$(J._zod,"optin",()=>I.innerType._zod.optin),c$(J._zod,"optout",()=>I.innerType._zod.optout),c$(J._zod,"pattern",()=>{let Y=I.innerType._zod.pattern;return Y?new RegExp(`^(${H2(Y.source)}|null)$`):void 0}),c$(J._zod,"values",()=>{return I.innerType._zod.values?new Set([...I.innerType._zod.values,null]):void 0}),J._zod.parse=(Y,W)=>{if(Y.value===null)return Y;return I.innerType._zod.run(Y,W)}}),m5=B0("$ZodDefault",(J,I)=>{S$.init(J,I),J._zod.optin="optional",c$(J._zod,"values",()=>I.innerType._zod.values),J._zod.parse=(Y,W)=>{if(W.direction==="backward")return I.innerType._zod.run(Y,W);if(Y.value===void 0)return Y.value=I.defaultValue,Y;let X=I.innerType._zod.run(Y,W);if(X instanceof Promise)return X.then((K)=>VE(K,I));return VE(X,I)}});function VE(J,I){if(J.value===void 0)J.value=I.defaultValue;return J}var l5=B0("$ZodPrefault",(J,I)=>{S$.init(J,I),J._zod.optin="optional",c$(J._zod,"values",()=>I.innerType._zod.values),J._zod.parse=(Y,W)=>{if(W.direction==="backward")return I.innerType._zod.run(Y,W);if(Y.value===void 0)Y.value=I.defaultValue;return I.innerType._zod.run(Y,W)}}),n5=B0("$ZodNonOptional",(J,I)=>{S$.init(J,I),c$(J._zod,"values",()=>{let Y=I.innerType._zod.values;return Y?new Set([...Y].filter((W)=>W!==void 0)):void 0}),J._zod.parse=(Y,W)=>{let X=I.innerType._zod.run(Y,W);if(X instanceof Promise)return X.then((K)=>HE(K,J));return HE(X,J)}});function HE(J,I){if(!J.issues.length&&J.value===void 0)J.issues.push({code:"invalid_type",expected:"nonoptional",input:J.value,inst:I});return J}var d5=B0("$ZodSuccess",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{if(W.direction==="backward")throw new ZI("ZodSuccess");let X=I.innerType._zod.run(Y,W);if(X instanceof Promise)return X.then((K)=>{return Y.value=K.issues.length===0,Y});return Y.value=X.issues.length===0,Y}}),o5=B0("$ZodCatch",(J,I)=>{S$.init(J,I),J._zod.optin="optional",c$(J._zod,"optout",()=>I.innerType._zod.optout),c$(J._zod,"values",()=>I.innerType._zod.values),J._zod.parse=(Y,W)=>{if(W.direction==="backward")return I.innerType._zod.run(Y,W);let X=I.innerType._zod.run(Y,W);if(X instanceof Promise)return X.then((K)=>{if(Y.value=K.value,K.issues.length)Y.value=I.catchValue({...Y,error:{issues:K.issues.map((Z)=>h6(Z,W,tU()))},input:Y.value}),Y.issues=[],Y.fallback=!0;return Y});if(Y.value=X.value,X.issues.length)Y.value=I.catchValue({...Y,error:{issues:X.issues.map((K)=>h6(K,W,tU()))},input:Y.value}),Y.issues=[],Y.fallback=!0;return Y}}),i5=B0("$ZodNaN",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{if(typeof Y.value!=="number"||!Number.isNaN(Y.value))return Y.issues.push({input:Y.value,inst:J,expected:"nan",code:"invalid_type"}),Y;return Y}}),UK=B0("$ZodPipe",(J,I)=>{S$.init(J,I),c$(J._zod,"values",()=>I.in._zod.values),c$(J._zod,"optin",()=>I.in._zod.optin),c$(J._zod,"optout",()=>I.out._zod.optout),c$(J._zod,"propValues",()=>I.in._zod.propValues),J._zod.parse=(Y,W)=>{if(W.direction==="backward"){let K=I.out._zod.run(Y,W);if(K instanceof Promise)return K.then((Z)=>o8(Z,I.in,W));return o8(K,I.in,W)}let X=I.in._zod.run(Y,W);if(X instanceof Promise)return X.then((K)=>o8(K,I.out,W));return o8(X,I.out,W)}});function o8(J,I,Y){if(J.issues.length)return J.aborted=!0,J;return I._zod.run({value:J.value,issues:J.issues,fallback:J.fallback},Y)}var S2=B0("$ZodCodec",(J,I)=>{S$.init(J,I),c$(J._zod,"values",()=>I.in._zod.values),c$(J._zod,"optin",()=>I.in._zod.optin),c$(J._zod,"optout",()=>I.out._zod.optout),c$(J._zod,"propValues",()=>I.in._zod.propValues),J._zod.parse=(Y,W)=>{if((W.direction||"forward")==="forward"){let K=I.in._zod.run(Y,W);if(K instanceof Promise)return K.then((Z)=>i8(Z,I,W));return i8(K,I,W)}else{let K=I.out._zod.run(Y,W);if(K instanceof Promise)return K.then((Z)=>i8(Z,I,W));return i8(K,I,W)}}});function i8(J,I,Y){if(J.issues.length)return J.aborted=!0,J;if((Y.direction||"forward")==="forward"){let X=I.transform(J.value,J);if(X instanceof Promise)return X.then((K)=>r8(J,K,I.out,Y));return r8(J,X,I.out,Y)}else{let X=I.reverseTransform(J.value,J);if(X instanceof Promise)return X.then((K)=>r8(J,K,I.in,Y));return r8(J,X,I.in,Y)}}function r8(J,I,Y,W){if(J.issues.length)return J.aborted=!0,J;return Y._zod.run({value:I,issues:J.issues},W)}var r5=B0("$ZodPreprocess",(J,I)=>{UK.init(J,I)}),t5=B0("$ZodReadonly",(J,I)=>{S$.init(J,I),c$(J._zod,"propValues",()=>I.innerType._zod.propValues),c$(J._zod,"values",()=>I.innerType._zod.values),c$(J._zod,"optin",()=>I.innerType?._zod?.optin),c$(J._zod,"optout",()=>I.innerType?._zod?.optout),J._zod.parse=(Y,W)=>{if(W.direction==="backward")return I.innerType._zod.run(Y,W);let X=I.innerType._zod.run(Y,W);if(X instanceof Promise)return X.then(FE);return FE(X)}});function FE(J){return J.value=Object.freeze(J.value),J}var a5=B0("$ZodTemplateLiteral",(J,I)=>{S$.init(J,I);let Y=[];for(let W of I.parts)if(typeof W==="object"&&W!==null){if(!W._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...W._zod.traits].shift()}`);let X=W._zod.pattern instanceof RegExp?W._zod.pattern.source:W._zod.pattern;if(!X)throw Error(`Invalid template literal part: ${W._zod.traits}`);let K=X.startsWith("^")?1:0,Z=X.endsWith("$")?X.length-1:X.length;Y.push(X.slice(K,Z))}else if(W===null||mH.has(typeof W))Y.push(b1(`${W}`));else throw Error(`Invalid template literal part: ${W}`);J._zod.pattern=new RegExp(`^${Y.join("")}$`),J._zod.parse=(W,X)=>{if(typeof W.value!=="string")return W.issues.push({input:W.value,inst:J,expected:"string",code:"invalid_type"}),W;if(J._zod.pattern.lastIndex=0,!J._zod.pattern.test(W.value))return W.issues.push({input:W.value,inst:J,code:"invalid_format",format:I.format??"template_literal",pattern:J._zod.pattern.source}),W;return W}}),s5=B0("$ZodFunction",(J,I)=>{return S$.init(J,I),J._def=I,J._zod.def=I,J.implement=(Y)=>{if(typeof Y!=="function")throw Error("implement() must be called with a function");return function(...W){let X=J._def.input?g8(J._def.input,W):W,K=Reflect.apply(Y,this,X);if(J._def.output)return g8(J._def.output,K);return K}},J.implementAsync=(Y)=>{if(typeof Y!=="function")throw Error("implementAsync() must be called with a function");return async function(...W){let X=J._def.input?await x8(J._def.input,W):W,K=await Reflect.apply(Y,this,X);if(J._def.output)return await x8(J._def.output,K);return K}},J._zod.parse=(Y,W)=>{if(typeof Y.value!=="function")return Y.issues.push({code:"invalid_type",expected:"function",input:Y.value,inst:J}),Y;if(J._def.output&&J._def.output._zod.def.type==="promise")Y.value=J.implementAsync(Y.value);else Y.value=J.implement(Y.value);return Y},J.input=(...Y)=>{let W=J.constructor;if(Array.isArray(Y[0]))return new W({type:"function",input:new e8({type:"tuple",items:Y[0],rest:Y[1]}),output:J._def.output});return new W({type:"function",input:Y[0],output:J._def.output})},J.output=(Y)=>{return new J.constructor({type:"function",input:J._def.input,output:Y})},J}),e5=B0("$ZodPromise",(J,I)=>{S$.init(J,I),J._zod.parse=(Y,W)=>{return Promise.resolve(Y.value).then((X)=>I.innerType._zod.run({value:X,issues:[]},W))}}),$D=B0("$ZodLazy",(J,I)=>{S$.init(J,I),c$(J._zod,"innerType",()=>{let Y=I;if(!Y._cachedInner)Y._cachedInner=I.getter();return Y._cachedInner}),c$(J._zod,"pattern",()=>J._zod.innerType?._zod?.pattern),c$(J._zod,"propValues",()=>J._zod.innerType?._zod?.propValues),c$(J._zod,"optin",()=>J._zod.innerType?._zod?.optin??void 0),c$(J._zod,"optout",()=>J._zod.innerType?._zod?.optout??void 0),J._zod.parse=(Y,W)=>{return J._zod.innerType._zod.run(Y,W)}}),UD=B0("$ZodCustom",(J,I)=>{DU.init(J,I),S$.init(J,I),J._zod.parse=(Y,W)=>{return Y},J._zod.check=(Y)=>{let W=Y.value,X=I.fn(W);if(X instanceof Promise)return X.then((K)=>DE(K,Y,W,J));DE(X,Y,W,J);return}});function DE(J,I,Y,W){if(!J){let X={code:"custom",input:Y,inst:W,path:[...W._zod.def.path??[]],continue:!W._zod.def.abort};if(W._zod.def.params)X.params=W._zod.def.params;I.issues.push(yQ(X))}}var N2={};w6(N2,{zhTW:()=>rD,zhCN:()=>iD,yo:()=>tD,vi:()=>oD,uz:()=>dD,ur:()=>nD,uk:()=>v2,ua:()=>lD,tr:()=>mD,th:()=>pD,ta:()=>cD,sv:()=>hD,sl:()=>uD,ru:()=>bD,ro:()=>yD,pt:()=>fD,ps:()=>xD,pl:()=>wD,ota:()=>gD,no:()=>kD,nl:()=>ND,ms:()=>vD,mk:()=>BD,lt:()=>ED,ko:()=>jD,km:()=>E2,kh:()=>SD,ka:()=>qD,ja:()=>_D,it:()=>PD,is:()=>RD,id:()=>TD,hy:()=>CD,hu:()=>AD,hr:()=>MD,he:()=>LD,frCA:()=>DD,fr:()=>FD,fi:()=>HD,fa:()=>VD,es:()=>OD,eo:()=>WD,en:()=>j2,el:()=>KD,de:()=>zD,da:()=>ZD,cs:()=>GD,ca:()=>YD,bg:()=>QD,be:()=>ID,az:()=>XD,ar:()=>JD});var wu=()=>{let J={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function I(X){return J[X]??null}let Y={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${X.expected}، ولكن تم إدخال ${L}`;return`مدخلات غير مقبولة: يفترض إدخال ${K}، ولكن تم إدخال ${L}`}case"invalid_value":if(X.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${Q$(X.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return` أكبر من اللازم: يفترض أن تكون ${X.origin??"القيمة"} ${K} ${X.maximum.toString()} ${Z.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${X.origin??"القيمة"} ${K} ${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`أصغر من اللازم: يفترض لـ ${X.origin} أن يكون ${K} ${X.minimum.toString()} ${Z.unit}`;return`أصغر من اللازم: يفترض لـ ${X.origin} أن يكون ${K} ${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${X.prefix}"`;if(K.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${K.suffix}"`;if(K.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${K.includes}"`;if(K.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${K.pattern}`;return`${Y[K.format]??X.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${X.divisor}`;case"unrecognized_keys":return`معرف${X.keys.length>1?"ات":""} غريب${X.keys.length>1?"ة":""}: ${w0(X.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${X.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${X.origin}`;default:return"مدخل غير مقبول"}}};function JD(){return{localeError:wu()}}var fu=()=>{let J={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function I(X){return J[X]??null}let Y={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Yanlış dəyər: gözlənilən instanceof ${X.expected}, daxil olan ${L}`;return`Yanlış dəyər: gözlənilən ${K}, daxil olan ${L}`}case"invalid_value":if(X.values.length===1)return`Yanlış dəyər: gözlənilən ${Q$(X.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Çox böyük: gözlənilən ${X.origin??"dəyər"} ${K}${X.maximum.toString()} ${Z.unit??"element"}`;return`Çox böyük: gözlənilən ${X.origin??"dəyər"} ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Çox kiçik: gözlənilən ${X.origin} ${K}${X.minimum.toString()} ${Z.unit}`;return`Çox kiçik: gözlənilən ${X.origin} ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Yanlış mətn: "${K.prefix}" ilə başlamalıdır`;if(K.format==="ends_with")return`Yanlış mətn: "${K.suffix}" ilə bitməlidir`;if(K.format==="includes")return`Yanlış mətn: "${K.includes}" daxil olmalıdır`;if(K.format==="regex")return`Yanlış mətn: ${K.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${Y[K.format]??X.format}`}case"not_multiple_of":return`Yanlış ədəd: ${X.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${X.keys.length>1?"lar":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`${X.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${X.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function XD(){return{localeError:fu()}}function RE(J,I,Y,W){let X=Math.abs(J),K=X%10,Z=X%100;if(Z>=11&&Z<=19)return W;if(K===1)return I;if(K>=2&&K<=4)return Y;return W}var yu=()=>{let J={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function I(X){return J[X]??null}let Y={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},W={nan:"NaN",number:"лік",array:"масіў"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Няправільны ўвод: чакаўся instanceof ${X.expected}, атрымана ${L}`;return`Няправільны ўвод: чакаўся ${K}, атрымана ${L}`}case"invalid_value":if(X.values.length===1)return`Няправільны ўвод: чакалася ${Q$(X.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z){let L=Number(X.maximum),E=RE(L,Z.unit.one,Z.unit.few,Z.unit.many);return`Занадта вялікі: чакалася, што ${X.origin??"значэнне"} павінна ${Z.verb} ${K}${X.maximum.toString()} ${E}`}return`Занадта вялікі: чакалася, што ${X.origin??"значэнне"} павінна быць ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z){let L=Number(X.minimum),E=RE(L,Z.unit.one,Z.unit.few,Z.unit.many);return`Занадта малы: чакалася, што ${X.origin} павінна ${Z.verb} ${K}${X.minimum.toString()} ${E}`}return`Занадта малы: чакалася, што ${X.origin} павінна быць ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${K.prefix}"`;if(K.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${K.suffix}"`;if(K.format==="includes")return`Няправільны радок: павінен змяшчаць "${K.includes}"`;if(K.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${K.pattern}`;return`Няправільны ${Y[K.format]??X.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${X.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${X.keys.length>1?"ключы":"ключ"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${X.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${X.origin}`;default:return"Няправільны ўвод"}}};function ID(){return{localeError:yu()}}var bu=()=>{let J={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function I(X){return J[X]??null}let Y={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},W={nan:"NaN",number:"число",array:"масив"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Невалиден вход: очакван instanceof ${X.expected}, получен ${L}`;return`Невалиден вход: очакван ${K}, получен ${L}`}case"invalid_value":if(X.values.length===1)return`Невалиден вход: очакван ${Q$(X.values[0])}`;return`Невалидна опция: очаквано едно от ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Твърде голямо: очаква се ${X.origin??"стойност"} да съдържа ${K}${X.maximum.toString()} ${Z.unit??"елемента"}`;return`Твърде голямо: очаква се ${X.origin??"стойност"} да бъде ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Твърде малко: очаква се ${X.origin} да съдържа ${K}${X.minimum.toString()} ${Z.unit}`;return`Твърде малко: очаква се ${X.origin} да бъде ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Невалиден низ: трябва да започва с "${K.prefix}"`;if(K.format==="ends_with")return`Невалиден низ: трябва да завършва с "${K.suffix}"`;if(K.format==="includes")return`Невалиден низ: трябва да включва "${K.includes}"`;if(K.format==="regex")return`Невалиден низ: трябва да съвпада с ${K.pattern}`;let Z="Невалиден";if(K.format==="emoji")Z="Невалидно";if(K.format==="datetime")Z="Невалидно";if(K.format==="date")Z="Невалидна";if(K.format==="time")Z="Невалидно";if(K.format==="duration")Z="Невалидна";return`${Z} ${Y[K.format]??X.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${X.divisor}`;case"unrecognized_keys":return`Неразпознат${X.keys.length>1?"и":""} ключ${X.keys.length>1?"ове":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${X.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${X.origin}`;default:return"Невалиден вход"}}};function QD(){return{localeError:bu()}}var uu=()=>{let J={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function I(X){return J[X]??null}let Y={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Tipus invàlid: s'esperava instanceof ${X.expected}, s'ha rebut ${L}`;return`Tipus invàlid: s'esperava ${K}, s'ha rebut ${L}`}case"invalid_value":if(X.values.length===1)return`Valor invàlid: s'esperava ${Q$(X.values[0])}`;return`Opció invàlida: s'esperava una de ${w0(X.values," o ")}`;case"too_big":{let K=X.inclusive?"com a màxim":"menys de",Z=I(X.origin);if(Z)return`Massa gran: s'esperava que ${X.origin??"el valor"} contingués ${K} ${X.maximum.toString()} ${Z.unit??"elements"}`;return`Massa gran: s'esperava que ${X.origin??"el valor"} fos ${K} ${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?"com a mínim":"més de",Z=I(X.origin);if(Z)return`Massa petit: s'esperava que ${X.origin} contingués ${K} ${X.minimum.toString()} ${Z.unit}`;return`Massa petit: s'esperava que ${X.origin} fos ${K} ${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Format invàlid: ha de començar amb "${K.prefix}"`;if(K.format==="ends_with")return`Format invàlid: ha d'acabar amb "${K.suffix}"`;if(K.format==="includes")return`Format invàlid: ha d'incloure "${K.includes}"`;if(K.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${K.pattern}`;return`Format invàlid per a ${Y[K.format]??X.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${X.divisor}`;case"unrecognized_keys":return`Clau${X.keys.length>1?"s":""} no reconeguda${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${X.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${X.origin}`;default:return"Entrada invàlida"}}};function YD(){return{localeError:uu()}}var hu=()=>{let J={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function I(X){return J[X]??null}let Y={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},W={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Neplatný vstup: očekáváno instanceof ${X.expected}, obdrženo ${L}`;return`Neplatný vstup: očekáváno ${K}, obdrženo ${L}`}case"invalid_value":if(X.values.length===1)return`Neplatný vstup: očekáváno ${Q$(X.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Hodnota je příliš velká: ${X.origin??"hodnota"} musí mít ${K}${X.maximum.toString()} ${Z.unit??"prvků"}`;return`Hodnota je příliš velká: ${X.origin??"hodnota"} musí být ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Hodnota je příliš malá: ${X.origin??"hodnota"} musí mít ${K}${X.minimum.toString()} ${Z.unit??"prvků"}`;return`Hodnota je příliš malá: ${X.origin??"hodnota"} musí být ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Neplatný řetězec: musí začínat na "${K.prefix}"`;if(K.format==="ends_with")return`Neplatný řetězec: musí končit na "${K.suffix}"`;if(K.format==="includes")return`Neplatný řetězec: musí obsahovat "${K.includes}"`;if(K.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${K.pattern}`;return`Neplatný formát ${Y[K.format]??X.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${X.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${w0(X.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${X.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${X.origin}`;default:return"Neplatný vstup"}}};function GD(){return{localeError:hu()}}var cu=()=>{let J={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function I(X){return J[X]??null}let Y={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},W={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Ugyldigt input: forventede instanceof ${X.expected}, fik ${L}`;return`Ugyldigt input: forventede ${K}, fik ${L}`}case"invalid_value":if(X.values.length===1)return`Ugyldig værdi: forventede ${Q$(X.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin),L=W[X.origin]??X.origin;if(Z)return`For stor: forventede ${L??"value"} ${Z.verb} ${K} ${X.maximum.toString()} ${Z.unit??"elementer"}`;return`For stor: forventede ${L??"value"} havde ${K} ${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin),L=W[X.origin]??X.origin;if(Z)return`For lille: forventede ${L} ${Z.verb} ${K} ${X.minimum.toString()} ${Z.unit}`;return`For lille: forventede ${L} havde ${K} ${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Ugyldig streng: skal starte med "${K.prefix}"`;if(K.format==="ends_with")return`Ugyldig streng: skal ende med "${K.suffix}"`;if(K.format==="includes")return`Ugyldig streng: skal indeholde "${K.includes}"`;if(K.format==="regex")return`Ugyldig streng: skal matche mønsteret ${K.pattern}`;return`Ugyldig ${Y[K.format]??X.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${X.divisor}`;case"unrecognized_keys":return`${X.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${X.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${X.origin}`;default:return"Ugyldigt input"}}};function ZD(){return{localeError:cu()}}var pu=()=>{let J={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function I(X){return J[X]??null}let Y={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},W={nan:"NaN",number:"Zahl",array:"Array"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Ungültige Eingabe: erwartet instanceof ${X.expected}, erhalten ${L}`;return`Ungültige Eingabe: erwartet ${K}, erhalten ${L}`}case"invalid_value":if(X.values.length===1)return`Ungültige Eingabe: erwartet ${Q$(X.values[0])}`;return`Ungültige Option: erwartet eine von ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Zu groß: erwartet, dass ${X.origin??"Wert"} ${K}${X.maximum.toString()} ${Z.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${X.origin??"Wert"} ${K}${X.maximum.toString()} ist`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Zu klein: erwartet, dass ${X.origin} ${K}${X.minimum.toString()} ${Z.unit} hat`;return`Zu klein: erwartet, dass ${X.origin} ${K}${X.minimum.toString()} ist`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Ungültiger String: muss mit "${K.prefix}" beginnen`;if(K.format==="ends_with")return`Ungültiger String: muss mit "${K.suffix}" enden`;if(K.format==="includes")return`Ungültiger String: muss "${K.includes}" enthalten`;if(K.format==="regex")return`Ungültiger String: muss dem Muster ${K.pattern} entsprechen`;return`Ungültig: ${Y[K.format]??X.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${X.divisor} sein`;case"unrecognized_keys":return`${X.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${X.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${X.origin}`;default:return"Ungültige Eingabe"}}};function zD(){return{localeError:pu()}}var mu=()=>{let J={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function I(X){return J[X]??null}let Y={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(typeof X.expected==="string"&&/^[A-Z]/.test(X.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${X.expected}, λήφθηκε ${L}`;return`Μη έγκυρη είσοδος: αναμενόταν ${K}, λήφθηκε ${L}`}case"invalid_value":if(X.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${Q$(X.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Πολύ μεγάλο: αναμενόταν ${X.origin??"τιμή"} να έχει ${K}${X.maximum.toString()} ${Z.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${X.origin??"τιμή"} να είναι ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Πολύ μικρό: αναμενόταν ${X.origin} να έχει ${K}${X.minimum.toString()} ${Z.unit}`;return`Πολύ μικρό: αναμενόταν ${X.origin} να είναι ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${K.prefix}"`;if(K.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${K.suffix}"`;if(K.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${K.includes}"`;if(K.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${K.pattern}`;return`Μη έγκυρο: ${Y[K.format]??X.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${X.divisor}`;case"unrecognized_keys":return`Άγνωστ${X.keys.length>1?"α":"ο"} κλειδ${X.keys.length>1?"ιά":"ί"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${X.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${X.origin}`;default:return"Μη έγκυρη είσοδος"}}};function KD(){return{localeError:mu()}}var lu=()=>{let J={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function I(X){return J[X]??null}let Y={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;return`Invalid input: expected ${K}, received ${L}`}case"invalid_value":if(X.values.length===1)return`Invalid input: expected ${Q$(X.values[0])}`;return`Invalid option: expected one of ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Too big: expected ${X.origin??"value"} to have ${K}${X.maximum.toString()} ${Z.unit??"elements"}`;return`Too big: expected ${X.origin??"value"} to be ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Too small: expected ${X.origin} to have ${K}${X.minimum.toString()} ${Z.unit}`;return`Too small: expected ${X.origin} to be ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Invalid string: must start with "${K.prefix}"`;if(K.format==="ends_with")return`Invalid string: must end with "${K.suffix}"`;if(K.format==="includes")return`Invalid string: must include "${K.includes}"`;if(K.format==="regex")return`Invalid string: must match pattern ${K.pattern}`;return`Invalid ${Y[K.format]??X.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${X.divisor}`;case"unrecognized_keys":return`Unrecognized key${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Invalid key in ${X.origin}`;case"invalid_union":if(X.options&&Array.isArray(X.options)&&X.options.length>0)return`Invalid discriminator value. Expected ${X.options.map((Z)=>`'${Z}'`).join(" | ")}`;return"Invalid input";case"invalid_element":return`Invalid value in ${X.origin}`;default:return"Invalid input"}}};function j2(){return{localeError:lu()}}var nu=()=>{let J={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function I(X){return J[X]??null}let Y={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},W={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Nevalida enigo: atendiĝis instanceof ${X.expected}, riceviĝis ${L}`;return`Nevalida enigo: atendiĝis ${K}, riceviĝis ${L}`}case"invalid_value":if(X.values.length===1)return`Nevalida enigo: atendiĝis ${Q$(X.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Tro granda: atendiĝis ke ${X.origin??"valoro"} havu ${K}${X.maximum.toString()} ${Z.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${X.origin??"valoro"} havu ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Tro malgranda: atendiĝis ke ${X.origin} havu ${K}${X.minimum.toString()} ${Z.unit}`;return`Tro malgranda: atendiĝis ke ${X.origin} estu ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${K.prefix}"`;if(K.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${K.suffix}"`;if(K.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${K.includes}"`;if(K.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${K.pattern}`;return`Nevalida ${Y[K.format]??X.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${X.divisor}`;case"unrecognized_keys":return`Nekonata${X.keys.length>1?"j":""} ŝlosilo${X.keys.length>1?"j":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${X.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${X.origin}`;default:return"Nevalida enigo"}}};function WD(){return{localeError:nu()}}var du=()=>{let J={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function I(X){return J[X]??null}let Y={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},W={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Entrada inválida: se esperaba instanceof ${X.expected}, recibido ${L}`;return`Entrada inválida: se esperaba ${K}, recibido ${L}`}case"invalid_value":if(X.values.length===1)return`Entrada inválida: se esperaba ${Q$(X.values[0])}`;return`Opción inválida: se esperaba una de ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin),L=W[X.origin]??X.origin;if(Z)return`Demasiado grande: se esperaba que ${L??"valor"} tuviera ${K}${X.maximum.toString()} ${Z.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${L??"valor"} fuera ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin),L=W[X.origin]??X.origin;if(Z)return`Demasiado pequeño: se esperaba que ${L} tuviera ${K}${X.minimum.toString()} ${Z.unit}`;return`Demasiado pequeño: se esperaba que ${L} fuera ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Cadena inválida: debe comenzar con "${K.prefix}"`;if(K.format==="ends_with")return`Cadena inválida: debe terminar en "${K.suffix}"`;if(K.format==="includes")return`Cadena inválida: debe incluir "${K.includes}"`;if(K.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${K.pattern}`;return`Inválido ${Y[K.format]??X.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${X.divisor}`;case"unrecognized_keys":return`Llave${X.keys.length>1?"s":""} desconocida${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Llave inválida en ${W[X.origin]??X.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${W[X.origin]??X.origin}`;default:return"Entrada inválida"}}};function OD(){return{localeError:du()}}var ou=()=>{let J={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function I(X){return J[X]??null}let Y={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},W={nan:"NaN",number:"عدد",array:"آرایه"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`ورودی نامعتبر: میبایست instanceof ${X.expected} میبود، ${L} دریافت شد`;return`ورودی نامعتبر: میبایست ${K} میبود، ${L} دریافت شد`}case"invalid_value":if(X.values.length===1)return`ورودی نامعتبر: میبایست ${Q$(X.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${w0(X.values,"|")} میبود`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`خیلی بزرگ: ${X.origin??"مقدار"} باید ${K}${X.maximum.toString()} ${Z.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${X.origin??"مقدار"} باید ${K}${X.maximum.toString()} باشد`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`خیلی کوچک: ${X.origin} باید ${K}${X.minimum.toString()} ${Z.unit} باشد`;return`خیلی کوچک: ${X.origin} باید ${K}${X.minimum.toString()} باشد`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`رشته نامعتبر: باید با "${K.prefix}" شروع شود`;if(K.format==="ends_with")return`رشته نامعتبر: باید با "${K.suffix}" تمام شود`;if(K.format==="includes")return`رشته نامعتبر: باید شامل "${K.includes}" باشد`;if(K.format==="regex")return`رشته نامعتبر: باید با الگوی ${K.pattern} مطابقت داشته باشد`;return`${Y[K.format]??X.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${X.divisor} باشد`;case"unrecognized_keys":return`کلید${X.keys.length>1?"های":""} ناشناس: ${w0(X.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${X.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${X.origin}`;default:return"ورودی نامعتبر"}}};function VD(){return{localeError:ou()}}var iu=()=>{let J={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function I(X){return J[X]??null}let Y={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Virheellinen tyyppi: odotettiin instanceof ${X.expected}, oli ${L}`;return`Virheellinen tyyppi: odotettiin ${K}, oli ${L}`}case"invalid_value":if(X.values.length===1)return`Virheellinen syöte: täytyy olla ${Q$(X.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Liian suuri: ${Z.subject} täytyy olla ${K}${X.maximum.toString()} ${Z.unit}`.trim();return`Liian suuri: arvon täytyy olla ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Liian pieni: ${Z.subject} täytyy olla ${K}${X.minimum.toString()} ${Z.unit}`.trim();return`Liian pieni: arvon täytyy olla ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${K.prefix}"`;if(K.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${K.suffix}"`;if(K.format==="includes")return`Virheellinen syöte: täytyy sisältää "${K.includes}"`;if(K.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${K.pattern}`;return`Virheellinen ${Y[K.format]??X.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${X.divisor} monikerta`;case"unrecognized_keys":return`${X.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w0(X.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function HD(){return{localeError:iu()}}var ru=()=>{let J={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function I(X){return J[X]??null}let Y={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},W={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Entrée invalide : instanceof ${X.expected} attendu, ${L} reçu`;return`Entrée invalide : ${K} attendu, ${L} reçu`}case"invalid_value":if(X.values.length===1)return`Entrée invalide : ${Q$(X.values[0])} attendu`;return`Option invalide : une valeur parmi ${w0(X.values,"|")} attendue`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Trop grand : ${W[X.origin]??"valeur"} doit ${Z.verb} ${K}${X.maximum.toString()} ${Z.unit??"élément(s)"}`;return`Trop grand : ${W[X.origin]??"valeur"} doit être ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Trop petit : ${W[X.origin]??"valeur"} doit ${Z.verb} ${K}${X.minimum.toString()} ${Z.unit}`;return`Trop petit : ${W[X.origin]??"valeur"} doit être ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Chaîne invalide : doit commencer par "${K.prefix}"`;if(K.format==="ends_with")return`Chaîne invalide : doit se terminer par "${K.suffix}"`;if(K.format==="includes")return`Chaîne invalide : doit inclure "${K.includes}"`;if(K.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${K.pattern}`;return`${Y[K.format]??X.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${X.divisor}`;case"unrecognized_keys":return`Clé${X.keys.length>1?"s":""} non reconnue${X.keys.length>1?"s":""} : ${w0(X.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${X.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${X.origin}`;default:return"Entrée invalide"}}};function FD(){return{localeError:ru()}}var tu=()=>{let J={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function I(X){return J[X]??null}let Y={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Entrée invalide : attendu instanceof ${X.expected}, reçu ${L}`;return`Entrée invalide : attendu ${K}, reçu ${L}`}case"invalid_value":if(X.values.length===1)return`Entrée invalide : attendu ${Q$(X.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"≤":"<",Z=I(X.origin);if(Z)return`Trop grand : attendu que ${X.origin??"la valeur"} ait ${K}${X.maximum.toString()} ${Z.unit}`;return`Trop grand : attendu que ${X.origin??"la valeur"} soit ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?"≥":">",Z=I(X.origin);if(Z)return`Trop petit : attendu que ${X.origin} ait ${K}${X.minimum.toString()} ${Z.unit}`;return`Trop petit : attendu que ${X.origin} soit ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Chaîne invalide : doit commencer par "${K.prefix}"`;if(K.format==="ends_with")return`Chaîne invalide : doit se terminer par "${K.suffix}"`;if(K.format==="includes")return`Chaîne invalide : doit inclure "${K.includes}"`;if(K.format==="regex")return`Chaîne invalide : doit correspondre au motif ${K.pattern}`;return`${Y[K.format]??X.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${X.divisor}`;case"unrecognized_keys":return`Clé${X.keys.length>1?"s":""} non reconnue${X.keys.length>1?"s":""} : ${w0(X.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${X.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${X.origin}`;default:return"Entrée invalide"}}};function DD(){return{localeError:tu()}}var au=()=>{let J={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},I={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},Y=(_)=>_?J[_]:void 0,W=(_)=>{let S=Y(_);if(S)return S.label;return _??J.unknown.label},X=(_)=>`ה${W(_)}`,K=(_)=>{return(Y(_)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},Z=(_)=>{if(!_)return null;return I[_]??null},L={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},E={nan:"NaN"};return(_)=>{switch(_.code){case"invalid_type":{let S=_.expected,A=E[S??""]??W(S),q=Y$(_.input),B=E[q]??J[q]?.label??q;if(/^[A-Z]/.test(_.expected))return`קלט לא תקין: צריך להיות instanceof ${_.expected}, התקבל ${B}`;return`קלט לא תקין: צריך להיות ${A}, התקבל ${B}`}case"invalid_value":{if(_.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Q$(_.values[0])}`;let S=_.values.map((B)=>Q$(B));if(_.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${S[0]} או ${S[1]}`;let A=S[S.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${S.slice(0,-1).join(", ")} או ${A}`}case"too_big":{let S=Z(_.origin),A=X(_.origin??"value");if(_.origin==="string")return`${S?.longLabel??"ארוך"} מדי: ${A} צריכה להכיל ${_.maximum.toString()} ${S?.unit??""} ${_.inclusive?"או פחות":"לכל היותר"}`.trim();if(_.origin==="number"){let N=_.inclusive?`קטן או שווה ל-${_.maximum}`:`קטן מ-${_.maximum}`;return`גדול מדי: ${A} צריך להיות ${N}`}if(_.origin==="array"||_.origin==="set"){let N=_.origin==="set"?"צריכה":"צריך",f=_.inclusive?`${_.maximum} ${S?.unit??""} או פחות`:`פחות מ-${_.maximum} ${S?.unit??""}`;return`גדול מדי: ${A} ${N} להכיל ${f}`.trim()}let q=_.inclusive?"<=":"<",B=K(_.origin??"value");if(S?.unit)return`${S.longLabel} מדי: ${A} ${B} ${q}${_.maximum.toString()} ${S.unit}`;return`${S?.longLabel??"גדול"} מדי: ${A} ${B} ${q}${_.maximum.toString()}`}case"too_small":{let S=Z(_.origin),A=X(_.origin??"value");if(_.origin==="string")return`${S?.shortLabel??"קצר"} מדי: ${A} צריכה להכיל ${_.minimum.toString()} ${S?.unit??""} ${_.inclusive?"או יותר":"לפחות"}`.trim();if(_.origin==="number"){let N=_.inclusive?`גדול או שווה ל-${_.minimum}`:`גדול מ-${_.minimum}`;return`קטן מדי: ${A} צריך להיות ${N}`}if(_.origin==="array"||_.origin==="set"){let N=_.origin==="set"?"צריכה":"צריך";if(_.minimum===1&&_.inclusive){let w=_.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${A} ${N} להכיל ${w}`}let f=_.inclusive?`${_.minimum} ${S?.unit??""} או יותר`:`יותר מ-${_.minimum} ${S?.unit??""}`;return`קטן מדי: ${A} ${N} להכיל ${f}`.trim()}let q=_.inclusive?">=":">",B=K(_.origin??"value");if(S?.unit)return`${S.shortLabel} מדי: ${A} ${B} ${q}${_.minimum.toString()} ${S.unit}`;return`${S?.shortLabel??"קטן"} מדי: ${A} ${B} ${q}${_.minimum.toString()}`}case"invalid_format":{let S=_;if(S.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${S.prefix}"`;if(S.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${S.suffix}"`;if(S.format==="includes")return`המחרוזת חייבת לכלול "${S.includes}"`;if(S.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${S.pattern}`;let A=L[S.format],q=A?.label??S.format,N=(A?.gender??"m")==="f"?"תקינה":"תקין";return`${q} לא ${N}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${_.divisor}`;case"unrecognized_keys":return`מפתח${_.keys.length>1?"ות":""} לא מזוה${_.keys.length>1?"ים":"ה"}: ${w0(_.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${X(_.origin??"array")}`;default:return"קלט לא תקין"}}};function LD(){return{localeError:au()}}var su=()=>{let J={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function I(X){return J[X]??null}let Y={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},W={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Neispravan unos: očekuje se instanceof ${X.expected}, a primljeno je ${L}`;return`Neispravan unos: očekuje se ${K}, a primljeno je ${L}`}case"invalid_value":if(X.values.length===1)return`Neispravna vrijednost: očekivano ${Q$(X.values[0])}`;return`Neispravna opcija: očekivano jedno od ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin),L=W[X.origin]??X.origin;if(Z)return`Preveliko: očekivano da ${L??"vrijednost"} ima ${K}${X.maximum.toString()} ${Z.unit??"elemenata"}`;return`Preveliko: očekivano da ${L??"vrijednost"} bude ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin),L=W[X.origin]??X.origin;if(Z)return`Premalo: očekivano da ${L} ima ${K}${X.minimum.toString()} ${Z.unit}`;return`Premalo: očekivano da ${L} bude ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Neispravan tekst: mora započinjati s "${K.prefix}"`;if(K.format==="ends_with")return`Neispravan tekst: mora završavati s "${K.suffix}"`;if(K.format==="includes")return`Neispravan tekst: mora sadržavati "${K.includes}"`;if(K.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${K.pattern}`;return`Neispravna ${Y[K.format]??X.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${X.divisor}`;case"unrecognized_keys":return`Neprepoznat${X.keys.length>1?"i ključevi":" ključ"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${W[X.origin]??X.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${W[X.origin]??X.origin}`;default:return"Neispravan unos"}}};function MD(){return{localeError:su()}}var eu=()=>{let J={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function I(X){return J[X]??null}let Y={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},W={nan:"NaN",number:"szám",array:"tömb"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Érvénytelen bemenet: a várt érték instanceof ${X.expected}, a kapott érték ${L}`;return`Érvénytelen bemenet: a várt érték ${K}, a kapott érték ${L}`}case"invalid_value":if(X.values.length===1)return`Érvénytelen bemenet: a várt érték ${Q$(X.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Túl nagy: ${X.origin??"érték"} mérete túl nagy ${K}${X.maximum.toString()} ${Z.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${X.origin??"érték"} túl nagy: ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Túl kicsi: a bemeneti érték ${X.origin} mérete túl kicsi ${K}${X.minimum.toString()} ${Z.unit}`;return`Túl kicsi: a bemeneti érték ${X.origin} túl kicsi ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Érvénytelen string: "${K.prefix}" értékkel kell kezdődnie`;if(K.format==="ends_with")return`Érvénytelen string: "${K.suffix}" értékkel kell végződnie`;if(K.format==="includes")return`Érvénytelen string: "${K.includes}" értéket kell tartalmaznia`;if(K.format==="regex")return`Érvénytelen string: ${K.pattern} mintának kell megfelelnie`;return`Érvénytelen ${Y[K.format]??X.format}`}case"not_multiple_of":return`Érvénytelen szám: ${X.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${X.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${X.origin}`;default:return"Érvénytelen bemenet"}}};function AD(){return{localeError:eu()}}function PE(J,I,Y){return Math.abs(J)===1?I:Y}function mQ(J){if(!J)return"";let I=["ա","ե","ը","ի","ո","ու","օ"],Y=J[J.length-1];return J+(I.includes(Y)?"ն":"ը")}var $h=()=>{let J={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function I(X){return J[X]??null}let Y={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},W={nan:"NaN",number:"թիվ",array:"զանգված"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${X.expected}, ստացվել է ${L}`;return`Սխալ մուտքագրում․ սպասվում էր ${K}, ստացվել է ${L}`}case"invalid_value":if(X.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${Q$(X.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z){let L=Number(X.maximum),E=PE(L,Z.unit.one,Z.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${mQ(X.origin??"արժեք")} կունենա ${K}${X.maximum.toString()} ${E}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${mQ(X.origin??"արժեք")} լինի ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z){let L=Number(X.minimum),E=PE(L,Z.unit.one,Z.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${mQ(X.origin)} կունենա ${K}${X.minimum.toString()} ${E}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${mQ(X.origin)} լինի ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${K.prefix}"-ով`;if(K.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${K.suffix}"-ով`;if(K.format==="includes")return`Սխալ տող․ պետք է պարունակի "${K.includes}"`;if(K.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${K.pattern} ձևաչափին`;return`Սխալ ${Y[K.format]??X.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${X.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${X.keys.length>1?"ներ":""}. ${w0(X.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${mQ(X.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${mQ(X.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function CD(){return{localeError:$h()}}var Uh=()=>{let J={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function I(X){return J[X]??null}let Y={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Input tidak valid: diharapkan instanceof ${X.expected}, diterima ${L}`;return`Input tidak valid: diharapkan ${K}, diterima ${L}`}case"invalid_value":if(X.values.length===1)return`Input tidak valid: diharapkan ${Q$(X.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Terlalu besar: diharapkan ${X.origin??"value"} memiliki ${K}${X.maximum.toString()} ${Z.unit??"elemen"}`;return`Terlalu besar: diharapkan ${X.origin??"value"} menjadi ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Terlalu kecil: diharapkan ${X.origin} memiliki ${K}${X.minimum.toString()} ${Z.unit}`;return`Terlalu kecil: diharapkan ${X.origin} menjadi ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`String tidak valid: harus dimulai dengan "${K.prefix}"`;if(K.format==="ends_with")return`String tidak valid: harus berakhir dengan "${K.suffix}"`;if(K.format==="includes")return`String tidak valid: harus menyertakan "${K.includes}"`;if(K.format==="regex")return`String tidak valid: harus sesuai pola ${K.pattern}`;return`${Y[K.format]??X.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${X.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${X.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${X.origin}`;default:return"Input tidak valid"}}};function TD(){return{localeError:Uh()}}var Jh=()=>{let J={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function I(X){return J[X]??null}let Y={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},W={nan:"NaN",number:"númer",array:"fylki"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Rangt gildi: Þú slóst inn ${L} þar sem á að vera instanceof ${X.expected}`;return`Rangt gildi: Þú slóst inn ${L} þar sem á að vera ${K}`}case"invalid_value":if(X.values.length===1)return`Rangt gildi: gert ráð fyrir ${Q$(X.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Of stórt: gert er ráð fyrir að ${X.origin??"gildi"} hafi ${K}${X.maximum.toString()} ${Z.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${X.origin??"gildi"} sé ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Of lítið: gert er ráð fyrir að ${X.origin} hafi ${K}${X.minimum.toString()} ${Z.unit}`;return`Of lítið: gert er ráð fyrir að ${X.origin} sé ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Ógildur strengur: verður að byrja á "${K.prefix}"`;if(K.format==="ends_with")return`Ógildur strengur: verður að enda á "${K.suffix}"`;if(K.format==="includes")return`Ógildur strengur: verður að innihalda "${K.includes}"`;if(K.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${K.pattern}`;return`Rangt ${Y[K.format]??X.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${X.divisor}`;case"unrecognized_keys":return`Óþekkt ${X.keys.length>1?"ir lyklar":"ur lykill"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${X.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${X.origin}`;default:return"Rangt gildi"}}};function RD(){return{localeError:Jh()}}var Xh=()=>{let J={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function I(X){return J[X]??null}let Y={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},W={nan:"NaN",number:"numero",array:"vettore"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Input non valido: atteso instanceof ${X.expected}, ricevuto ${L}`;return`Input non valido: atteso ${K}, ricevuto ${L}`}case"invalid_value":if(X.values.length===1)return`Input non valido: atteso ${Q$(X.values[0])}`;return`Opzione non valida: atteso uno tra ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Troppo grande: ${X.origin??"valore"} deve avere ${K}${X.maximum.toString()} ${Z.unit??"elementi"}`;return`Troppo grande: ${X.origin??"valore"} deve essere ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Troppo piccolo: ${X.origin} deve avere ${K}${X.minimum.toString()} ${Z.unit}`;return`Troppo piccolo: ${X.origin} deve essere ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Stringa non valida: deve iniziare con "${K.prefix}"`;if(K.format==="ends_with")return`Stringa non valida: deve terminare con "${K.suffix}"`;if(K.format==="includes")return`Stringa non valida: deve includere "${K.includes}"`;if(K.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${K.pattern}`;return`Input non valido: ${Y[K.format]??X.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${X.divisor}`;case"unrecognized_keys":return`Chiav${X.keys.length>1?"i":"e"} non riconosciut${X.keys.length>1?"e":"a"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${X.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${X.origin}`;default:return"Input non valido"}}};function PD(){return{localeError:Xh()}}var Ih=()=>{let J={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function I(X){return J[X]??null}let Y={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},W={nan:"NaN",number:"数値",array:"配列"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`無効な入力: instanceof ${X.expected}が期待されましたが、${L}が入力されました`;return`無効な入力: ${K}が期待されましたが、${L}が入力されました`}case"invalid_value":if(X.values.length===1)return`無効な入力: ${Q$(X.values[0])}が期待されました`;return`無効な選択: ${w0(X.values,"、")}のいずれかである必要があります`;case"too_big":{let K=X.inclusive?"以下である":"より小さい",Z=I(X.origin);if(Z)return`大きすぎる値: ${X.origin??"値"}は${X.maximum.toString()}${Z.unit??"要素"}${K}必要があります`;return`大きすぎる値: ${X.origin??"値"}は${X.maximum.toString()}${K}必要があります`}case"too_small":{let K=X.inclusive?"以上である":"より大きい",Z=I(X.origin);if(Z)return`小さすぎる値: ${X.origin}は${X.minimum.toString()}${Z.unit}${K}必要があります`;return`小さすぎる値: ${X.origin}は${X.minimum.toString()}${K}必要があります`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`無効な文字列: "${K.prefix}"で始まる必要があります`;if(K.format==="ends_with")return`無効な文字列: "${K.suffix}"で終わる必要があります`;if(K.format==="includes")return`無効な文字列: "${K.includes}"を含む必要があります`;if(K.format==="regex")return`無効な文字列: パターン${K.pattern}に一致する必要があります`;return`無効な${Y[K.format]??X.format}`}case"not_multiple_of":return`無効な数値: ${X.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${X.keys.length>1?"群":""}: ${w0(X.keys,"、")}`;case"invalid_key":return`${X.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${X.origin}内の無効な値`;default:return"無効な入力"}}};function _D(){return{localeError:Ih()}}var Qh=()=>{let J={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function I(X){return J[X]??null}let Y={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},W={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${X.expected}, მიღებული ${L}`;return`არასწორი შეყვანა: მოსალოდნელი ${K}, მიღებული ${L}`}case"invalid_value":if(X.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${Q$(X.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${w0(X.values,"|")}-დან`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`ზედმეტად დიდი: მოსალოდნელი ${X.origin??"მნიშვნელობა"} ${Z.verb} ${K}${X.maximum.toString()} ${Z.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${X.origin??"მნიშვნელობა"} იყოს ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`ზედმეტად პატარა: მოსალოდნელი ${X.origin} ${Z.verb} ${K}${X.minimum.toString()} ${Z.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${X.origin} იყოს ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${K.prefix}"-ით`;if(K.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${K.suffix}"-ით`;if(K.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${K.includes}"-ს`;if(K.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${K.pattern}`;return`არასწორი ${Y[K.format]??X.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${X.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${X.keys.length>1?"ები":"ი"}: ${w0(X.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${X.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${X.origin}-ში`;default:return"არასწორი შეყვანა"}}};function qD(){return{localeError:Qh()}}var Yh=()=>{let J={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function I(X){return J[X]??null}let Y={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},W={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${X.expected} ប៉ុន្តែទទួលបាន ${L}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${K} ប៉ុន្តែទទួលបាន ${L}`}case"invalid_value":if(X.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Q$(X.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`ធំពេក៖ ត្រូវការ ${X.origin??"តម្លៃ"} ${K} ${X.maximum.toString()} ${Z.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${X.origin??"តម្លៃ"} ${K} ${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`តូចពេក៖ ត្រូវការ ${X.origin} ${K} ${X.minimum.toString()} ${Z.unit}`;return`តូចពេក៖ ត្រូវការ ${X.origin} ${K} ${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${K.prefix}"`;if(K.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${K.suffix}"`;if(K.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${K.includes}"`;if(K.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${K.pattern}`;return`មិនត្រឹមត្រូវ៖ ${Y[K.format]??X.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${X.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${w0(X.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${X.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${X.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function E2(){return{localeError:Yh()}}function SD(){return E2()}var Gh=()=>{let J={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function I(X){return J[X]??null}let Y={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`잘못된 입력: 예상 타입은 instanceof ${X.expected}, 받은 타입은 ${L}입니다`;return`잘못된 입력: 예상 타입은 ${K}, 받은 타입은 ${L}입니다`}case"invalid_value":if(X.values.length===1)return`잘못된 입력: 값은 ${Q$(X.values[0])} 이어야 합니다`;return`잘못된 옵션: ${w0(X.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let K=X.inclusive?"이하":"미만",Z=K==="미만"?"이어야 합니다":"여야 합니다",L=I(X.origin),E=L?.unit??"요소";if(L)return`${X.origin??"값"}이 너무 큽니다: ${X.maximum.toString()}${E} ${K}${Z}`;return`${X.origin??"값"}이 너무 큽니다: ${X.maximum.toString()} ${K}${Z}`}case"too_small":{let K=X.inclusive?"이상":"초과",Z=K==="이상"?"이어야 합니다":"여야 합니다",L=I(X.origin),E=L?.unit??"요소";if(L)return`${X.origin??"값"}이 너무 작습니다: ${X.minimum.toString()}${E} ${K}${Z}`;return`${X.origin??"값"}이 너무 작습니다: ${X.minimum.toString()} ${K}${Z}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`잘못된 문자열: "${K.prefix}"(으)로 시작해야 합니다`;if(K.format==="ends_with")return`잘못된 문자열: "${K.suffix}"(으)로 끝나야 합니다`;if(K.format==="includes")return`잘못된 문자열: "${K.includes}"을(를) 포함해야 합니다`;if(K.format==="regex")return`잘못된 문자열: 정규식 ${K.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${Y[K.format]??X.format}`}case"not_multiple_of":return`잘못된 숫자: ${X.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${w0(X.keys,", ")}`;case"invalid_key":return`잘못된 키: ${X.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${X.origin}`;default:return"잘못된 입력"}}};function jD(){return{localeError:Gh()}}var B2=(J)=>{return J.charAt(0).toUpperCase()+J.slice(1)};function _E(J){let I=Math.abs(J),Y=I%10,W=I%100;if(W>=11&&W<=19||Y===0)return"many";if(Y===1)return"one";return"few"}var Zh=()=>{let J={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function I(X,K,Z,L){let E=J[X]??null;if(E===null)return E;return{unit:E.unit[K],verb:E.verb[L][Z?"inclusive":"notInclusive"]}}let Y={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},W={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Gautas tipas ${L}, o tikėtasi - instanceof ${X.expected}`;return`Gautas tipas ${L}, o tikėtasi - ${K}`}case"invalid_value":if(X.values.length===1)return`Privalo būti ${Q$(X.values[0])}`;return`Privalo būti vienas iš ${w0(X.values,"|")} pasirinkimų`;case"too_big":{let K=W[X.origin]??X.origin,Z=I(X.origin,_E(Number(X.maximum)),X.inclusive??!1,"smaller");if(Z?.verb)return`${B2(K??X.origin??"reikšmė")} ${Z.verb} ${X.maximum.toString()} ${Z.unit??"elementų"}`;let L=X.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${B2(K??X.origin??"reikšmė")} turi būti ${L} ${X.maximum.toString()} ${Z?.unit}`}case"too_small":{let K=W[X.origin]??X.origin,Z=I(X.origin,_E(Number(X.minimum)),X.inclusive??!1,"bigger");if(Z?.verb)return`${B2(K??X.origin??"reikšmė")} ${Z.verb} ${X.minimum.toString()} ${Z.unit??"elementų"}`;let L=X.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${B2(K??X.origin??"reikšmė")} turi būti ${L} ${X.minimum.toString()} ${Z?.unit}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Eilutė privalo prasidėti "${K.prefix}"`;if(K.format==="ends_with")return`Eilutė privalo pasibaigti "${K.suffix}"`;if(K.format==="includes")return`Eilutė privalo įtraukti "${K.includes}"`;if(K.format==="regex")return`Eilutė privalo atitikti ${K.pattern}`;return`Neteisingas ${Y[K.format]??X.format}`}case"not_multiple_of":return`Skaičius privalo būti ${X.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${X.keys.length>1?"i":"as"} rakt${X.keys.length>1?"ai":"as"}: ${w0(X.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let K=W[X.origin]??X.origin;return`${B2(K??X.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function ED(){return{localeError:Zh()}}var zh=()=>{let J={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function I(X){return J[X]??null}let Y={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},W={nan:"NaN",number:"број",array:"низа"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Грешен внес: се очекува instanceof ${X.expected}, примено ${L}`;return`Грешен внес: се очекува ${K}, примено ${L}`}case"invalid_value":if(X.values.length===1)return`Invalid input: expected ${Q$(X.values[0])}`;return`Грешана опција: се очекува една ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Премногу голем: се очекува ${X.origin??"вредноста"} да има ${K}${X.maximum.toString()} ${Z.unit??"елементи"}`;return`Премногу голем: се очекува ${X.origin??"вредноста"} да биде ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Премногу мал: се очекува ${X.origin} да има ${K}${X.minimum.toString()} ${Z.unit}`;return`Премногу мал: се очекува ${X.origin} да биде ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Неважечка низа: мора да започнува со "${K.prefix}"`;if(K.format==="ends_with")return`Неважечка низа: мора да завршува со "${K.suffix}"`;if(K.format==="includes")return`Неважечка низа: мора да вклучува "${K.includes}"`;if(K.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${K.pattern}`;return`Invalid ${Y[K.format]??X.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${X.divisor}`;case"unrecognized_keys":return`${X.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${X.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${X.origin}`;default:return"Грешен внес"}}};function BD(){return{localeError:zh()}}var Kh=()=>{let J={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function I(X){return J[X]??null}let Y={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},W={nan:"NaN",number:"nombor"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Input tidak sah: dijangka instanceof ${X.expected}, diterima ${L}`;return`Input tidak sah: dijangka ${K}, diterima ${L}`}case"invalid_value":if(X.values.length===1)return`Input tidak sah: dijangka ${Q$(X.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Terlalu besar: dijangka ${X.origin??"nilai"} ${Z.verb} ${K}${X.maximum.toString()} ${Z.unit??"elemen"}`;return`Terlalu besar: dijangka ${X.origin??"nilai"} adalah ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Terlalu kecil: dijangka ${X.origin} ${Z.verb} ${K}${X.minimum.toString()} ${Z.unit}`;return`Terlalu kecil: dijangka ${X.origin} adalah ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`String tidak sah: mesti bermula dengan "${K.prefix}"`;if(K.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${K.suffix}"`;if(K.format==="includes")return`String tidak sah: mesti mengandungi "${K.includes}"`;if(K.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${K.pattern}`;return`${Y[K.format]??X.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${X.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w0(X.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${X.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${X.origin}`;default:return"Input tidak sah"}}};function vD(){return{localeError:Kh()}}var Wh=()=>{let J={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function I(X){return J[X]??null}let Y={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},W={nan:"NaN",number:"getal"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Ongeldige invoer: verwacht instanceof ${X.expected}, ontving ${L}`;return`Ongeldige invoer: verwacht ${K}, ontving ${L}`}case"invalid_value":if(X.values.length===1)return`Ongeldige invoer: verwacht ${Q$(X.values[0])}`;return`Ongeldige optie: verwacht één van ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin),L=X.origin==="date"?"laat":X.origin==="string"?"lang":"groot";if(Z)return`Te ${L}: verwacht dat ${X.origin??"waarde"} ${K}${X.maximum.toString()} ${Z.unit??"elementen"} ${Z.verb}`;return`Te ${L}: verwacht dat ${X.origin??"waarde"} ${K}${X.maximum.toString()} is`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin),L=X.origin==="date"?"vroeg":X.origin==="string"?"kort":"klein";if(Z)return`Te ${L}: verwacht dat ${X.origin} ${K}${X.minimum.toString()} ${Z.unit} ${Z.verb}`;return`Te ${L}: verwacht dat ${X.origin} ${K}${X.minimum.toString()} is`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Ongeldige tekst: moet met "${K.prefix}" beginnen`;if(K.format==="ends_with")return`Ongeldige tekst: moet op "${K.suffix}" eindigen`;if(K.format==="includes")return`Ongeldige tekst: moet "${K.includes}" bevatten`;if(K.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${K.pattern}`;return`Ongeldig: ${Y[K.format]??X.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${X.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${X.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${X.origin}`;default:return"Ongeldige invoer"}}};function ND(){return{localeError:Wh()}}var Oh=()=>{let J={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function I(X){return J[X]??null}let Y={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},W={nan:"NaN",number:"tall",array:"liste"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Ugyldig input: forventet instanceof ${X.expected}, fikk ${L}`;return`Ugyldig input: forventet ${K}, fikk ${L}`}case"invalid_value":if(X.values.length===1)return`Ugyldig verdi: forventet ${Q$(X.values[0])}`;return`Ugyldig valg: forventet en av ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`For stor(t): forventet ${X.origin??"value"} til å ha ${K}${X.maximum.toString()} ${Z.unit??"elementer"}`;return`For stor(t): forventet ${X.origin??"value"} til å ha ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`For lite(n): forventet ${X.origin} til å ha ${K}${X.minimum.toString()} ${Z.unit}`;return`For lite(n): forventet ${X.origin} til å ha ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Ugyldig streng: må starte med "${K.prefix}"`;if(K.format==="ends_with")return`Ugyldig streng: må ende med "${K.suffix}"`;if(K.format==="includes")return`Ugyldig streng: må inneholde "${K.includes}"`;if(K.format==="regex")return`Ugyldig streng: må matche mønsteret ${K.pattern}`;return`Ugyldig ${Y[K.format]??X.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${X.divisor}`;case"unrecognized_keys":return`${X.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${X.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${X.origin}`;default:return"Ugyldig input"}}};function kD(){return{localeError:Oh()}}var Vh=()=>{let J={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function I(X){return J[X]??null}let Y={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},W={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Fâsit giren: umulan instanceof ${X.expected}, alınan ${L}`;return`Fâsit giren: umulan ${K}, alınan ${L}`}case"invalid_value":if(X.values.length===1)return`Fâsit giren: umulan ${Q$(X.values[0])}`;return`Fâsit tercih: mûteberler ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Fazla büyük: ${X.origin??"value"}, ${K}${X.maximum.toString()} ${Z.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${X.origin??"value"}, ${K}${X.maximum.toString()} olmalıydı.`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Fazla küçük: ${X.origin}, ${K}${X.minimum.toString()} ${Z.unit} sahip olmalıydı.`;return`Fazla küçük: ${X.origin}, ${K}${X.minimum.toString()} olmalıydı.`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Fâsit metin: "${K.prefix}" ile başlamalı.`;if(K.format==="ends_with")return`Fâsit metin: "${K.suffix}" ile bitmeli.`;if(K.format==="includes")return`Fâsit metin: "${K.includes}" ihtivâ etmeli.`;if(K.format==="regex")return`Fâsit metin: ${K.pattern} nakşına uymalı.`;return`Fâsit ${Y[K.format]??X.format}`}case"not_multiple_of":return`Fâsit sayı: ${X.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`${X.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${X.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function gD(){return{localeError:Vh()}}var Hh=()=>{let J={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function I(X){return J[X]??null}let Y={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},W={nan:"NaN",number:"عدد",array:"ارې"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`ناسم ورودي: باید instanceof ${X.expected} وای, مګر ${L} ترلاسه شو`;return`ناسم ورودي: باید ${K} وای, مګر ${L} ترلاسه شو`}case"invalid_value":if(X.values.length===1)return`ناسم ورودي: باید ${Q$(X.values[0])} وای`;return`ناسم انتخاب: باید یو له ${w0(X.values,"|")} څخه وای`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`ډیر لوی: ${X.origin??"ارزښت"} باید ${K}${X.maximum.toString()} ${Z.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${X.origin??"ارزښت"} باید ${K}${X.maximum.toString()} وي`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`ډیر کوچنی: ${X.origin} باید ${K}${X.minimum.toString()} ${Z.unit} ولري`;return`ډیر کوچنی: ${X.origin} باید ${K}${X.minimum.toString()} وي`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`ناسم متن: باید د "${K.prefix}" سره پیل شي`;if(K.format==="ends_with")return`ناسم متن: باید د "${K.suffix}" سره پای ته ورسيږي`;if(K.format==="includes")return`ناسم متن: باید "${K.includes}" ولري`;if(K.format==="regex")return`ناسم متن: باید د ${K.pattern} سره مطابقت ولري`;return`${Y[K.format]??X.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${X.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${X.keys.length>1?"کلیډونه":"کلیډ"}: ${w0(X.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${X.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${X.origin} کې`;default:return"ناسمه ورودي"}}};function xD(){return{localeError:Hh()}}var Fh=()=>{let J={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function I(X){return J[X]??null}let Y={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},W={nan:"NaN",number:"liczba",array:"tablica"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${X.expected}, otrzymano ${L}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${K}, otrzymano ${L}`}case"invalid_value":if(X.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${Q$(X.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Za duża wartość: oczekiwano, że ${X.origin??"wartość"} będzie mieć ${K}${X.maximum.toString()} ${Z.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${X.origin??"wartość"} będzie wynosić ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Za mała wartość: oczekiwano, że ${X.origin??"wartość"} będzie mieć ${K}${X.minimum.toString()} ${Z.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${X.origin??"wartość"} będzie wynosić ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${K.prefix}"`;if(K.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${K.suffix}"`;if(K.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${K.includes}"`;if(K.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${K.pattern}`;return`Nieprawidłow(y/a/e) ${Y[K.format]??X.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${X.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${X.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${X.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function wD(){return{localeError:Fh()}}var Dh=()=>{let J={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function I(X){return J[X]??null}let Y={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},W={nan:"NaN",number:"número",null:"nulo"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Tipo inválido: esperado instanceof ${X.expected}, recebido ${L}`;return`Tipo inválido: esperado ${K}, recebido ${L}`}case"invalid_value":if(X.values.length===1)return`Entrada inválida: esperado ${Q$(X.values[0])}`;return`Opção inválida: esperada uma das ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Muito grande: esperado que ${X.origin??"valor"} tivesse ${K}${X.maximum.toString()} ${Z.unit??"elementos"}`;return`Muito grande: esperado que ${X.origin??"valor"} fosse ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Muito pequeno: esperado que ${X.origin} tivesse ${K}${X.minimum.toString()} ${Z.unit}`;return`Muito pequeno: esperado que ${X.origin} fosse ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Texto inválido: deve começar com "${K.prefix}"`;if(K.format==="ends_with")return`Texto inválido: deve terminar com "${K.suffix}"`;if(K.format==="includes")return`Texto inválido: deve incluir "${K.includes}"`;if(K.format==="regex")return`Texto inválido: deve corresponder ao padrão ${K.pattern}`;return`${Y[K.format]??X.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${X.divisor}`;case"unrecognized_keys":return`Chave${X.keys.length>1?"s":""} desconhecida${X.keys.length>1?"s":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Chave inválida em ${X.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${X.origin}`;default:return"Campo inválido"}}};function fD(){return{localeError:Dh()}}var Lh=()=>{let J={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function I(X){return J[X]??null}let Y={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},W={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;return`Intrare invalidă: așteptat ${K}, primit ${L}`}case"invalid_value":if(X.values.length===1)return`Intrare invalidă: așteptat ${Q$(X.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Prea mare: așteptat ca ${X.origin??"valoarea"} ${Z.verb} ${K}${X.maximum.toString()} ${Z.unit??"elemente"}`;return`Prea mare: așteptat ca ${X.origin??"valoarea"} să fie ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Prea mic: așteptat ca ${X.origin} ${Z.verb} ${K}${X.minimum.toString()} ${Z.unit}`;return`Prea mic: așteptat ca ${X.origin} să fie ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${K.prefix}"`;if(K.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${K.suffix}"`;if(K.format==="includes")return`Șir invalid: trebuie să includă "${K.includes}"`;if(K.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${K.pattern}`;return`Format invalid: ${Y[K.format]??X.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${X.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${w0(X.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${X.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${X.origin}`;default:return"Intrare invalidă"}}};function yD(){return{localeError:Lh()}}function qE(J,I,Y,W){let X=Math.abs(J),K=X%10,Z=X%100;if(Z>=11&&Z<=19)return W;if(K===1)return I;if(K>=2&&K<=4)return Y;return W}var Mh=()=>{let J={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function I(X){return J[X]??null}let Y={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},W={nan:"NaN",number:"число",array:"массив"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Неверный ввод: ожидалось instanceof ${X.expected}, получено ${L}`;return`Неверный ввод: ожидалось ${K}, получено ${L}`}case"invalid_value":if(X.values.length===1)return`Неверный ввод: ожидалось ${Q$(X.values[0])}`;return`Неверный вариант: ожидалось одно из ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z){let L=Number(X.maximum),E=qE(L,Z.unit.one,Z.unit.few,Z.unit.many);return`Слишком большое значение: ожидалось, что ${X.origin??"значение"} будет иметь ${K}${X.maximum.toString()} ${E}`}return`Слишком большое значение: ожидалось, что ${X.origin??"значение"} будет ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z){let L=Number(X.minimum),E=qE(L,Z.unit.one,Z.unit.few,Z.unit.many);return`Слишком маленькое значение: ожидалось, что ${X.origin} будет иметь ${K}${X.minimum.toString()} ${E}`}return`Слишком маленькое значение: ожидалось, что ${X.origin} будет ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Неверная строка: должна начинаться с "${K.prefix}"`;if(K.format==="ends_with")return`Неверная строка: должна заканчиваться на "${K.suffix}"`;if(K.format==="includes")return`Неверная строка: должна содержать "${K.includes}"`;if(K.format==="regex")return`Неверная строка: должна соответствовать шаблону ${K.pattern}`;return`Неверный ${Y[K.format]??X.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${X.divisor}`;case"unrecognized_keys":return`Нераспознанн${X.keys.length>1?"ые":"ый"} ключ${X.keys.length>1?"и":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${X.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${X.origin}`;default:return"Неверные входные данные"}}};function bD(){return{localeError:Mh()}}var Ah=()=>{let J={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function I(X){return J[X]??null}let Y={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},W={nan:"NaN",number:"število",array:"tabela"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Neveljaven vnos: pričakovano instanceof ${X.expected}, prejeto ${L}`;return`Neveljaven vnos: pričakovano ${K}, prejeto ${L}`}case"invalid_value":if(X.values.length===1)return`Neveljaven vnos: pričakovano ${Q$(X.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Preveliko: pričakovano, da bo ${X.origin??"vrednost"} imelo ${K}${X.maximum.toString()} ${Z.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${X.origin??"vrednost"} ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Premajhno: pričakovano, da bo ${X.origin} imelo ${K}${X.minimum.toString()} ${Z.unit}`;return`Premajhno: pričakovano, da bo ${X.origin} ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Neveljaven niz: mora se začeti z "${K.prefix}"`;if(K.format==="ends_with")return`Neveljaven niz: mora se končati z "${K.suffix}"`;if(K.format==="includes")return`Neveljaven niz: mora vsebovati "${K.includes}"`;if(K.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${K.pattern}`;return`Neveljaven ${Y[K.format]??X.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${X.divisor}`;case"unrecognized_keys":return`Neprepoznan${X.keys.length>1?"i ključi":" ključ"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${X.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${X.origin}`;default:return"Neveljaven vnos"}}};function uD(){return{localeError:Ah()}}var Ch=()=>{let J={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function I(X){return J[X]??null}let Y={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},W={nan:"NaN",number:"antal",array:"lista"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Ogiltig inmatning: förväntat instanceof ${X.expected}, fick ${L}`;return`Ogiltig inmatning: förväntat ${K}, fick ${L}`}case"invalid_value":if(X.values.length===1)return`Ogiltig inmatning: förväntat ${Q$(X.values[0])}`;return`Ogiltigt val: förväntade en av ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`För stor(t): förväntade ${X.origin??"värdet"} att ha ${K}${X.maximum.toString()} ${Z.unit??"element"}`;return`För stor(t): förväntat ${X.origin??"värdet"} att ha ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`För lite(t): förväntade ${X.origin??"värdet"} att ha ${K}${X.minimum.toString()} ${Z.unit}`;return`För lite(t): förväntade ${X.origin??"värdet"} att ha ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Ogiltig sträng: måste börja med "${K.prefix}"`;if(K.format==="ends_with")return`Ogiltig sträng: måste sluta med "${K.suffix}"`;if(K.format==="includes")return`Ogiltig sträng: måste innehålla "${K.includes}"`;if(K.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${K.pattern}"`;return`Ogiltig(t) ${Y[K.format]??X.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${X.divisor}`;case"unrecognized_keys":return`${X.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${w0(X.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${X.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${X.origin??"värdet"}`;default:return"Ogiltig input"}}};function hD(){return{localeError:Ch()}}var Th=()=>{let J={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function I(X){return J[X]??null}let Y={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},W={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${X.expected}, பெறப்பட்டது ${L}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${K}, பெறப்பட்டது ${L}`}case"invalid_value":if(X.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Q$(X.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${w0(X.values,"|")} இல் ஒன்று`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${X.origin??"மதிப்பு"} ${K}${X.maximum.toString()} ${Z.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${X.origin??"மதிப்பு"} ${K}${X.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${X.origin} ${K}${X.minimum.toString()} ${Z.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${X.origin} ${K}${X.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`தவறான சரம்: "${K.prefix}" இல் தொடங்க வேண்டும்`;if(K.format==="ends_with")return`தவறான சரம்: "${K.suffix}" இல் முடிவடைய வேண்டும்`;if(K.format==="includes")return`தவறான சரம்: "${K.includes}" ஐ உள்ளடக்க வேண்டும்`;if(K.format==="regex")return`தவறான சரம்: ${K.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${Y[K.format]??X.format}`}case"not_multiple_of":return`தவறான எண்: ${X.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${X.keys.length>1?"கள்":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`${X.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${X.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function cD(){return{localeError:Th()}}var Rh=()=>{let J={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function I(X){return J[X]??null}let Y={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},W={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${X.expected} แต่ได้รับ ${L}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${K} แต่ได้รับ ${L}`}case"invalid_value":if(X.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${Q$(X.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"ไม่เกิน":"น้อยกว่า",Z=I(X.origin);if(Z)return`เกินกำหนด: ${X.origin??"ค่า"} ควรมี${K} ${X.maximum.toString()} ${Z.unit??"รายการ"}`;return`เกินกำหนด: ${X.origin??"ค่า"} ควรมี${K} ${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?"อย่างน้อย":"มากกว่า",Z=I(X.origin);if(Z)return`น้อยกว่ากำหนด: ${X.origin} ควรมี${K} ${X.minimum.toString()} ${Z.unit}`;return`น้อยกว่ากำหนด: ${X.origin} ควรมี${K} ${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${K.prefix}"`;if(K.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${K.suffix}"`;if(K.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${K.includes}" อยู่ในข้อความ`;if(K.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${K.pattern}`;return`รูปแบบไม่ถูกต้อง: ${Y[K.format]??X.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${X.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${w0(X.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${X.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${X.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function pD(){return{localeError:Rh()}}var Ph=()=>{let J={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function I(X){return J[X]??null}let Y={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Geçersiz değer: beklenen instanceof ${X.expected}, alınan ${L}`;return`Geçersiz değer: beklenen ${K}, alınan ${L}`}case"invalid_value":if(X.values.length===1)return`Geçersiz değer: beklenen ${Q$(X.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Çok büyük: beklenen ${X.origin??"değer"} ${K}${X.maximum.toString()} ${Z.unit??"öğe"}`;return`Çok büyük: beklenen ${X.origin??"değer"} ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Çok küçük: beklenen ${X.origin} ${K}${X.minimum.toString()} ${Z.unit}`;return`Çok küçük: beklenen ${X.origin} ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Geçersiz metin: "${K.prefix}" ile başlamalı`;if(K.format==="ends_with")return`Geçersiz metin: "${K.suffix}" ile bitmeli`;if(K.format==="includes")return`Geçersiz metin: "${K.includes}" içermeli`;if(K.format==="regex")return`Geçersiz metin: ${K.pattern} desenine uymalı`;return`Geçersiz ${Y[K.format]??X.format}`}case"not_multiple_of":return`Geçersiz sayı: ${X.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${X.keys.length>1?"lar":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`${X.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${X.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function mD(){return{localeError:Ph()}}var _h=()=>{let J={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function I(X){return J[X]??null}let Y={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},W={nan:"NaN",number:"число",array:"масив"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Неправильні вхідні дані: очікується instanceof ${X.expected}, отримано ${L}`;return`Неправильні вхідні дані: очікується ${K}, отримано ${L}`}case"invalid_value":if(X.values.length===1)return`Неправильні вхідні дані: очікується ${Q$(X.values[0])}`;return`Неправильна опція: очікується одне з ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Занадто велике: очікується, що ${X.origin??"значення"} ${Z.verb} ${K}${X.maximum.toString()} ${Z.unit??"елементів"}`;return`Занадто велике: очікується, що ${X.origin??"значення"} буде ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Занадто мале: очікується, що ${X.origin} ${Z.verb} ${K}${X.minimum.toString()} ${Z.unit}`;return`Занадто мале: очікується, що ${X.origin} буде ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Неправильний рядок: повинен починатися з "${K.prefix}"`;if(K.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${K.suffix}"`;if(K.format==="includes")return`Неправильний рядок: повинен містити "${K.includes}"`;if(K.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${K.pattern}`;return`Неправильний ${Y[K.format]??X.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${X.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${X.keys.length>1?"і":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${X.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${X.origin}`;default:return"Неправильні вхідні дані"}}};function v2(){return{localeError:_h()}}function lD(){return v2()}var qh=()=>{let J={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function I(X){return J[X]??null}let Y={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},W={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`غلط ان پٹ: instanceof ${X.expected} متوقع تھا، ${L} موصول ہوا`;return`غلط ان پٹ: ${K} متوقع تھا، ${L} موصول ہوا`}case"invalid_value":if(X.values.length===1)return`غلط ان پٹ: ${Q$(X.values[0])} متوقع تھا`;return`غلط آپشن: ${w0(X.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`بہت بڑا: ${X.origin??"ویلیو"} کے ${K}${X.maximum.toString()} ${Z.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${X.origin??"ویلیو"} کا ${K}${X.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`بہت چھوٹا: ${X.origin} کے ${K}${X.minimum.toString()} ${Z.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${X.origin} کا ${K}${X.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`غلط سٹرنگ: "${K.prefix}" سے شروع ہونا چاہیے`;if(K.format==="ends_with")return`غلط سٹرنگ: "${K.suffix}" پر ختم ہونا چاہیے`;if(K.format==="includes")return`غلط سٹرنگ: "${K.includes}" شامل ہونا چاہیے`;if(K.format==="regex")return`غلط سٹرنگ: پیٹرن ${K.pattern} سے میچ ہونا چاہیے`;return`غلط ${Y[K.format]??X.format}`}case"not_multiple_of":return`غلط نمبر: ${X.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${X.keys.length>1?"ز":""}: ${w0(X.keys,"، ")}`;case"invalid_key":return`${X.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${X.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function nD(){return{localeError:qh()}}var Sh=()=>{let J={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function I(X){return J[X]??null}let Y={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},W={nan:"NaN",number:"raqam",array:"massiv"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${X.expected}, qabul qilingan ${L}`;return`Noto‘g‘ri kirish: kutilgan ${K}, qabul qilingan ${L}`}case"invalid_value":if(X.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${Q$(X.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Juda katta: kutilgan ${X.origin??"qiymat"} ${K}${X.maximum.toString()} ${Z.unit} ${Z.verb}`;return`Juda katta: kutilgan ${X.origin??"qiymat"} ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Juda kichik: kutilgan ${X.origin} ${K}${X.minimum.toString()} ${Z.unit} ${Z.verb}`;return`Juda kichik: kutilgan ${X.origin} ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Noto‘g‘ri satr: "${K.prefix}" bilan boshlanishi kerak`;if(K.format==="ends_with")return`Noto‘g‘ri satr: "${K.suffix}" bilan tugashi kerak`;if(K.format==="includes")return`Noto‘g‘ri satr: "${K.includes}" ni o‘z ichiga olishi kerak`;if(K.format==="regex")return`Noto‘g‘ri satr: ${K.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${Y[K.format]??X.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${X.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${X.keys.length>1?"lar":""}: ${w0(X.keys,", ")}`;case"invalid_key":return`${X.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${X.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function dD(){return{localeError:Sh()}}var jh=()=>{let J={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function I(X){return J[X]??null}let Y={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},W={nan:"NaN",number:"số",array:"mảng"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${X.expected}, nhận được ${L}`;return`Đầu vào không hợp lệ: mong đợi ${K}, nhận được ${L}`}case"invalid_value":if(X.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${Q$(X.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Quá lớn: mong đợi ${X.origin??"giá trị"} ${Z.verb} ${K}${X.maximum.toString()} ${Z.unit??"phần tử"}`;return`Quá lớn: mong đợi ${X.origin??"giá trị"} ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Quá nhỏ: mong đợi ${X.origin} ${Z.verb} ${K}${X.minimum.toString()} ${Z.unit}`;return`Quá nhỏ: mong đợi ${X.origin} ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${K.prefix}"`;if(K.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${K.suffix}"`;if(K.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${K.includes}"`;if(K.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${K.pattern}`;return`${Y[K.format]??X.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${X.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${w0(X.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${X.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${X.origin}`;default:return"Đầu vào không hợp lệ"}}};function oD(){return{localeError:jh()}}var Eh=()=>{let J={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function I(X){return J[X]??null}let Y={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},W={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`无效输入:期望 instanceof ${X.expected},实际接收 ${L}`;return`无效输入:期望 ${K},实际接收 ${L}`}case"invalid_value":if(X.values.length===1)return`无效输入:期望 ${Q$(X.values[0])}`;return`无效选项:期望以下之一 ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`数值过大:期望 ${X.origin??"值"} ${K}${X.maximum.toString()} ${Z.unit??"个元素"}`;return`数值过大:期望 ${X.origin??"值"} ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`数值过小:期望 ${X.origin} ${K}${X.minimum.toString()} ${Z.unit}`;return`数值过小:期望 ${X.origin} ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`无效字符串:必须以 "${K.prefix}" 开头`;if(K.format==="ends_with")return`无效字符串:必须以 "${K.suffix}" 结尾`;if(K.format==="includes")return`无效字符串:必须包含 "${K.includes}"`;if(K.format==="regex")return`无效字符串:必须满足正则表达式 ${K.pattern}`;return`无效${Y[K.format]??X.format}`}case"not_multiple_of":return`无效数字:必须是 ${X.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${w0(X.keys,", ")}`;case"invalid_key":return`${X.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${X.origin} 中包含无效值(value)`;default:return"无效输入"}}};function iD(){return{localeError:Eh()}}var Bh=()=>{let J={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function I(X){return J[X]??null}let Y={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},W={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`無效的輸入值:預期為 instanceof ${X.expected},但收到 ${L}`;return`無效的輸入值:預期為 ${K},但收到 ${L}`}case"invalid_value":if(X.values.length===1)return`無效的輸入值:預期為 ${Q$(X.values[0])}`;return`無效的選項:預期為以下其中之一 ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`數值過大:預期 ${X.origin??"值"} 應為 ${K}${X.maximum.toString()} ${Z.unit??"個元素"}`;return`數值過大:預期 ${X.origin??"值"} 應為 ${K}${X.maximum.toString()}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`數值過小:預期 ${X.origin} 應為 ${K}${X.minimum.toString()} ${Z.unit}`;return`數值過小:預期 ${X.origin} 應為 ${K}${X.minimum.toString()}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`無效的字串:必須以 "${K.prefix}" 開頭`;if(K.format==="ends_with")return`無效的字串:必須以 "${K.suffix}" 結尾`;if(K.format==="includes")return`無效的字串:必須包含 "${K.includes}"`;if(K.format==="regex")return`無效的字串:必須符合格式 ${K.pattern}`;return`無效的 ${Y[K.format]??X.format}`}case"not_multiple_of":return`無效的數字:必須為 ${X.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${X.keys.length>1?"們":""}:${w0(X.keys,"、")}`;case"invalid_key":return`${X.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${X.origin} 中有無效的值`;default:return"無效的輸入值"}}};function rD(){return{localeError:Bh()}}var vh=()=>{let J={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function I(X){return J[X]??null}let Y={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},W={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(X)=>{switch(X.code){case"invalid_type":{let K=W[X.expected]??X.expected,Z=Y$(X.input),L=W[Z]??Z;if(/^[A-Z]/.test(X.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${X.expected}, àmọ̀ a rí ${L}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${K}, àmọ̀ a rí ${L}`}case"invalid_value":if(X.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${Q$(X.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${w0(X.values,"|")}`;case"too_big":{let K=X.inclusive?"<=":"<",Z=I(X.origin);if(Z)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${X.origin??"iye"} ${Z.verb} ${K}${X.maximum} ${Z.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${K}${X.maximum}`}case"too_small":{let K=X.inclusive?">=":">",Z=I(X.origin);if(Z)return`Kéré ju: a ní láti jẹ́ pé ${X.origin} ${Z.verb} ${K}${X.minimum} ${Z.unit}`;return`Kéré ju: a ní láti jẹ́ ${K}${X.minimum}`}case"invalid_format":{let K=X;if(K.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${K.prefix}"`;if(K.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${K.suffix}"`;if(K.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${K.includes}"`;if(K.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${K.pattern}`;return`Aṣìṣe: ${Y[K.format]??X.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${X.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${w0(X.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${X.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${X.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function tD(){return{localeError:vh()}}var SE,aD=Symbol("ZodOutput"),sD=Symbol("ZodInput");class eD{constructor(){this._map=new WeakMap,this._idmap=new Map}add(J,...I){let Y=I[0];if(this._map.set(J,Y),Y&&typeof Y==="object"&&"id"in Y)this._idmap.set(Y.id,J);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(J){let I=this._map.get(J);if(I&&typeof I==="object"&&"id"in I)this._idmap.delete(I.id);return this._map.delete(J),this}get(J){let I=J._zod.parent;if(I){let Y={...this.get(I)??{}};delete Y.id;let W={...Y,...this._map.get(J)};return Object.keys(W).length?W:void 0}return this._map.get(J)}has(J){return this._map.has(J)}}function JK(){return new eD}(SE=globalThis).__zod_globalRegistry??(SE.__zod_globalRegistry=JK());var T6=globalThis.__zod_globalRegistry;function $7(J,I){return new J({type:"string",...z$(I)})}function U7(J,I){return new J({type:"string",coerce:!0,...z$(I)})}function XK(J,I){return new J({type:"string",format:"email",check:"string_format",abort:!1,...z$(I)})}function k2(J,I){return new J({type:"string",format:"guid",check:"string_format",abort:!1,...z$(I)})}function IK(J,I){return new J({type:"string",format:"uuid",check:"string_format",abort:!1,...z$(I)})}function QK(J,I){return new J({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...z$(I)})}function YK(J,I){return new J({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...z$(I)})}function GK(J,I){return new J({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...z$(I)})}function g2(J,I){return new J({type:"string",format:"url",check:"string_format",abort:!1,...z$(I)})}function ZK(J,I){return new J({type:"string",format:"emoji",check:"string_format",abort:!1,...z$(I)})}function zK(J,I){return new J({type:"string",format:"nanoid",check:"string_format",abort:!1,...z$(I)})}function KK(J,I){return new J({type:"string",format:"cuid",check:"string_format",abort:!1,...z$(I)})}function WK(J,I){return new J({type:"string",format:"cuid2",check:"string_format",abort:!1,...z$(I)})}function OK(J,I){return new J({type:"string",format:"ulid",check:"string_format",abort:!1,...z$(I)})}function VK(J,I){return new J({type:"string",format:"xid",check:"string_format",abort:!1,...z$(I)})}function HK(J,I){return new J({type:"string",format:"ksuid",check:"string_format",abort:!1,...z$(I)})}function FK(J,I){return new J({type:"string",format:"ipv4",check:"string_format",abort:!1,...z$(I)})}function DK(J,I){return new J({type:"string",format:"ipv6",check:"string_format",abort:!1,...z$(I)})}function J7(J,I){return new J({type:"string",format:"mac",check:"string_format",abort:!1,...z$(I)})}function LK(J,I){return new J({type:"string",format:"cidrv4",check:"string_format",abort:!1,...z$(I)})}function MK(J,I){return new J({type:"string",format:"cidrv6",check:"string_format",abort:!1,...z$(I)})}function AK(J,I){return new J({type:"string",format:"base64",check:"string_format",abort:!1,...z$(I)})}function CK(J,I){return new J({type:"string",format:"base64url",check:"string_format",abort:!1,...z$(I)})}function TK(J,I){return new J({type:"string",format:"e164",check:"string_format",abort:!1,...z$(I)})}function RK(J,I){return new J({type:"string",format:"jwt",check:"string_format",abort:!1,...z$(I)})}var X7={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function I7(J,I){return new J({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...z$(I)})}function Q7(J,I){return new J({type:"string",format:"date",check:"string_format",...z$(I)})}function Y7(J,I){return new J({type:"string",format:"time",check:"string_format",precision:null,...z$(I)})}function G7(J,I){return new J({type:"string",format:"duration",check:"string_format",...z$(I)})}function Z7(J,I){return new J({type:"number",checks:[],...z$(I)})}function z7(J,I){return new J({type:"number",coerce:!0,checks:[],...z$(I)})}function K7(J,I){return new J({type:"number",check:"number_format",abort:!1,format:"safeint",...z$(I)})}function W7(J,I){return new J({type:"number",check:"number_format",abort:!1,format:"float32",...z$(I)})}function O7(J,I){return new J({type:"number",check:"number_format",abort:!1,format:"float64",...z$(I)})}function V7(J,I){return new J({type:"number",check:"number_format",abort:!1,format:"int32",...z$(I)})}function H7(J,I){return new J({type:"number",check:"number_format",abort:!1,format:"uint32",...z$(I)})}function F7(J,I){return new J({type:"boolean",...z$(I)})}function D7(J,I){return new J({type:"boolean",coerce:!0,...z$(I)})}function L7(J,I){return new J({type:"bigint",...z$(I)})}function M7(J,I){return new J({type:"bigint",coerce:!0,...z$(I)})}function A7(J,I){return new J({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...z$(I)})}function C7(J,I){return new J({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...z$(I)})}function T7(J,I){return new J({type:"symbol",...z$(I)})}function R7(J,I){return new J({type:"undefined",...z$(I)})}function P7(J,I){return new J({type:"null",...z$(I)})}function _7(J){return new J({type:"any"})}function q7(J){return new J({type:"unknown"})}function S7(J,I){return new J({type:"never",...z$(I)})}function j7(J,I){return new J({type:"void",...z$(I)})}function E7(J,I){return new J({type:"date",...z$(I)})}function B7(J,I){return new J({type:"date",coerce:!0,...z$(I)})}function v7(J,I){return new J({type:"nan",...z$(I)})}function k4(J,I){return new l8({check:"less_than",...z$(I),value:J,inclusive:!1})}function T1(J,I){return new l8({check:"less_than",...z$(I),value:J,inclusive:!0})}function g4(J,I){return new n8({check:"greater_than",...z$(I),value:J,inclusive:!1})}function c6(J,I){return new n8({check:"greater_than",...z$(I),value:J,inclusive:!0})}function PK(J){return g4(0,J)}function _K(J){return k4(0,J)}function qK(J){return T1(0,J)}function SK(J){return c6(0,J)}function KX(J,I){return new jF({check:"multiple_of",...z$(I),value:J})}function WX(J,I){return new vF({check:"max_size",...z$(I),maximum:J})}function x4(J,I){return new NF({check:"min_size",...z$(I),minimum:J})}function OI(J,I){return new kF({check:"size_equals",...z$(I),size:J})}function VI(J,I){return new gF({check:"max_length",...z$(I),maximum:J})}function OJ(J,I){return new xF({check:"min_length",...z$(I),minimum:J})}function HI(J,I){return new wF({check:"length_equals",...z$(I),length:J})}function lQ(J,I){return new fF({check:"string_format",format:"regex",...z$(I),pattern:J})}function nQ(J){return new yF({check:"string_format",format:"lowercase",...z$(J)})}function dQ(J){return new bF({check:"string_format",format:"uppercase",...z$(J)})}function oQ(J,I){return new uF({check:"string_format",format:"includes",...z$(I),includes:J})}function iQ(J,I){return new hF({check:"string_format",format:"starts_with",...z$(I),prefix:J})}function rQ(J,I){return new cF({check:"string_format",format:"ends_with",...z$(I),suffix:J})}function jK(J,I,Y){return new pF({check:"property",property:J,schema:I,...z$(Y)})}function tQ(J,I){return new mF({check:"mime_type",mime:J,...z$(I)})}function s1(J){return new lF({check:"overwrite",tx:J})}function aQ(J){return s1((I)=>I.normalize(J))}function sQ(){return s1((J)=>J.trim())}function eQ(){return s1((J)=>J.toLowerCase())}function $Y(){return s1((J)=>J.toUpperCase())}function UY(){return s1((J)=>hH(J))}function N7(J,I,Y){return new J({type:"array",element:I,...z$(Y)})}function kh(J,I,Y){return new J({type:"union",options:I,...z$(Y)})}function gh(J,I,Y){return new J({type:"union",options:I,inclusive:!1,...z$(Y)})}function xh(J,I,Y,W){return new J({type:"union",options:Y,discriminator:I,...z$(W)})}function wh(J,I,Y){return new J({type:"intersection",left:I,right:Y})}function fh(J,I,Y,W){let X=Y instanceof S$;return new J({type:"tuple",items:I,rest:X?Y:null,...z$(X?W:Y)})}function yh(J,I,Y,W){return new J({type:"record",keyType:I,valueType:Y,...z$(W)})}function bh(J,I,Y,W){return new J({type:"map",keyType:I,valueType:Y,...z$(W)})}function uh(J,I,Y){return new J({type:"set",valueType:I,...z$(Y)})}function hh(J,I,Y){let W=Array.isArray(I)?Object.fromEntries(I.map((X)=>[X,X])):I;return new J({type:"enum",entries:W,...z$(Y)})}function ch(J,I,Y){return new J({type:"enum",entries:I,...z$(Y)})}function ph(J,I,Y){return new J({type:"literal",values:Array.isArray(I)?I:[I],...z$(Y)})}function k7(J,I){return new J({type:"file",...z$(I)})}function mh(J,I){return new J({type:"transform",transform:I})}function lh(J,I){return new J({type:"optional",innerType:I})}function nh(J,I){return new J({type:"nullable",innerType:I})}function dh(J,I,Y){return new J({type:"default",innerType:I,get defaultValue(){return typeof Y==="function"?Y():pH(Y)}})}function oh(J,I,Y){return new J({type:"nonoptional",innerType:I,...z$(Y)})}function ih(J,I){return new J({type:"success",innerType:I})}function rh(J,I,Y){return new J({type:"catch",innerType:I,catchValue:typeof Y==="function"?Y:()=>Y})}function th(J,I,Y){return new J({type:"pipe",in:I,out:Y})}function ah(J,I){return new J({type:"readonly",innerType:I})}function sh(J,I,Y){return new J({type:"template_literal",parts:I,...z$(Y)})}function eh(J,I){return new J({type:"lazy",getter:I})}function $c(J,I){return new J({type:"promise",innerType:I})}function g7(J,I,Y){let W=z$(Y);return W.abort??(W.abort=!0),new J({type:"custom",check:"custom",fn:I,...W})}function x7(J,I,Y){return new J({type:"custom",check:"custom",fn:I,...z$(Y)})}function w7(J,I){let Y=jE((W)=>{return W.addIssue=(X)=>{if(typeof X==="string")W.issues.push(yQ(X,W.value,Y._zod.def));else{let K=X;if(K.fatal)K.continue=!1;K.code??(K.code="custom"),K.input??(K.input=W.value),K.inst??(K.inst=Y),K.continue??(K.continue=!Y._zod.def.abort),W.issues.push(yQ(K))}},J(W.value,W)},I);return Y}function jE(J,I){let Y=new DU({check:"custom",...z$(I)});return Y._zod.check=J,Y}function f7(J){let I=new DU({check:"describe"});return I._zod.onattach=[(Y)=>{let W=T6.get(Y)??{};T6.add(Y,{...W,description:J})}],I._zod.check=()=>{},I}function y7(J){let I=new DU({check:"meta"});return I._zod.onattach=[(Y)=>{let W=T6.get(Y)??{};T6.add(Y,{...W,...J})}],I._zod.check=()=>{},I}function b7(J,I){let Y=z$(I),W=Y.truthy??["true","1","yes","on","y","enabled"],X=Y.falsy??["false","0","no","off","n","disabled"];if(Y.case!=="sensitive")W=W.map((B)=>typeof B==="string"?B.toLowerCase():B),X=X.map((B)=>typeof B==="string"?B.toLowerCase():B);let K=new Set(W),Z=new Set(X),L=J.Codec??S2,E=J.Boolean??_2,S=new(J.String??WI)({type:"string",error:Y.error}),A=new E({type:"boolean",error:Y.error}),q=new L({type:"pipe",in:S,out:A,transform:(B,N)=>{let f=B;if(Y.case!=="sensitive")f=f.toLowerCase();if(K.has(f))return!0;else if(Z.has(f))return!1;else return N.issues.push({code:"invalid_value",expected:"stringbool",values:[...K,...Z],input:N.value,inst:q,continue:!1}),{}},reverseTransform:(B,N)=>{if(B===!0)return W[0]||"true";else return X[0]||"false"},error:Y.error});return q}function JY(J,I,Y,W={}){let X=z$(W),K={...z$(W),check:"string_format",type:"string",format:I,fn:typeof Y==="function"?Y:(L)=>Y.test(L),...X};if(Y instanceof RegExp)K.pattern=Y;return new J(K)}function OX(J){let I=J?.target??"draft-2020-12";if(I==="draft-4")I="draft-04";if(I==="draft-7")I="draft-07";return{processors:J.processors??{},metadataRegistry:J?.metadata??T6,target:I,unrepresentable:J?.unrepresentable??"throw",override:J?.override??(()=>{}),io:J?.io??"output",counter:0,seen:new Map,cycles:J?.cycles??"ref",reused:J?.reused??"inline",external:J?.external??void 0}}function QU(J,I,Y={path:[],schemaPath:[]}){var W;let X=J._zod.def,K=I.seen.get(J);if(K){if(K.count++,Y.schemaPath.includes(J))K.cycle=Y.path;return K.schema}let Z={schema:{},count:1,cycle:void 0,path:Y.path};I.seen.set(J,Z);let L=J._zod.toJSONSchema?.();if(L)Z.schema=L;else{let S={...Y,schemaPath:[...Y.schemaPath,J],path:Y.path};if(J._zod.processJSONSchema)J._zod.processJSONSchema(I,Z.schema,S);else{let q=Z.schema,B=I.processors[X.type];if(!B)throw Error(`[toJSONSchema]: Non-representable type encountered: ${X.type}`);B(J,I,q,S)}let A=J._zod.parent;if(A){if(!Z.ref)Z.ref=A;QU(A,I,S),I.seen.get(A).isParent=!0}}let E=I.metadataRegistry.get(J);if(E)Object.assign(Z.schema,E);if(I.io==="input"&&p6(J))delete Z.schema.examples,delete Z.schema.default;if(I.io==="input"&&"_prefault"in Z.schema)(W=Z.schema).default??(W.default=Z.schema._prefault);return delete Z.schema._prefault,I.seen.get(J).schema}function VX(J,I){let Y=J.seen.get(I);if(!Y)throw Error("Unprocessed schema. This is a bug in Zod.");let W=new Map;for(let Z of J.seen.entries()){let L=J.metadataRegistry.get(Z[0])?.id;if(L){let E=W.get(L);if(E&&E!==Z[0])throw Error(`Duplicate schema id "${L}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);W.set(L,Z[0])}}let X=(Z)=>{let L=J.target==="draft-2020-12"?"$defs":"definitions";if(J.external){let A=J.external.registry.get(Z[0])?.id,q=J.external.uri??((N)=>N);if(A)return{ref:q(A)};let B=Z[1].defId??Z[1].schema.id??`schema${J.counter++}`;return Z[1].defId=B,{defId:B,ref:`${q("__shared")}#/${L}/${B}`}}if(Z[1]===Y)return{ref:"#"};let _=`${"#"}/${L}/`,S=Z[1].schema.id??`__schema${J.counter++}`;return{defId:S,ref:_+S}},K=(Z)=>{if(Z[1].schema.$ref)return;let L=Z[1],{ref:E,defId:_}=X(Z);if(L.def={...L.schema},_)L.defId=_;let S=L.schema;for(let A in S)delete S[A];S.$ref=E};if(J.cycles==="throw")for(let Z of J.seen.entries()){let L=Z[1];if(L.cycle)throw Error(`Cycle detected: #/${L.cycle?.join("/")}/<root>
|
|
319
|
+
|
|
320
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let Z of J.seen.entries()){let L=Z[1];if(I===Z[0]){K(Z);continue}if(J.external){let _=J.external.registry.get(Z[0])?.id;if(I!==Z[0]&&_){K(Z);continue}}if(J.metadataRegistry.get(Z[0])?.id){K(Z);continue}if(L.cycle){K(Z);continue}if(L.count>1){if(J.reused==="ref"){K(Z);continue}}}}function HX(J,I){let Y=J.seen.get(I);if(!Y)throw Error("Unprocessed schema. This is a bug in Zod.");let W=(L)=>{let E=J.seen.get(L);if(E.ref===null)return;let _=E.def??E.schema,S={..._},A=E.ref;if(E.ref=null,A){W(A);let B=J.seen.get(A),N=B.schema;if(N.$ref&&(J.target==="draft-07"||J.target==="draft-04"||J.target==="openapi-3.0"))_.allOf=_.allOf??[],_.allOf.push(N);else Object.assign(_,N);if(Object.assign(_,S),L._zod.parent===A)for(let w in _){if(w==="$ref"||w==="allOf")continue;if(!(w in S))delete _[w]}if(N.$ref&&B.def)for(let w in _){if(w==="$ref"||w==="allOf")continue;if(w in B.def&&JSON.stringify(_[w])===JSON.stringify(B.def[w]))delete _[w]}}let q=L._zod.parent;if(q&&q!==A){W(q);let B=J.seen.get(q);if(B?.schema.$ref){if(_.$ref=B.schema.$ref,B.def)for(let N in _){if(N==="$ref"||N==="allOf")continue;if(N in B.def&&JSON.stringify(_[N])===JSON.stringify(B.def[N]))delete _[N]}}}J.override({zodSchema:L,jsonSchema:_,path:E.path??[]})};for(let L of[...J.seen.entries()].reverse())W(L[0]);let X={};if(J.target==="draft-2020-12")X.$schema="https://json-schema.org/draft/2020-12/schema";else if(J.target==="draft-07")X.$schema="http://json-schema.org/draft-07/schema#";else if(J.target==="draft-04")X.$schema="http://json-schema.org/draft-04/schema#";else if(J.target==="openapi-3.0");if(J.external?.uri){let L=J.external.registry.get(I)?.id;if(!L)throw Error("Schema is missing an `id` property");X.$id=J.external.uri(L)}Object.assign(X,Y.def??Y.schema);let K=J.metadataRegistry.get(I)?.id;if(K!==void 0&&X.id===K)delete X.id;let Z=J.external?.defs??{};for(let L of J.seen.entries()){let E=L[1];if(E.def&&E.defId){if(E.def.id===E.defId)delete E.def.id;Z[E.defId]=E.def}}if(J.external);else if(Object.keys(Z).length>0)if(J.target==="draft-2020-12")X.$defs=Z;else X.definitions=Z;try{let L=JSON.parse(JSON.stringify(X));return Object.defineProperty(L,"~standard",{value:{...I["~standard"],jsonSchema:{input:XY(I,"input",J.processors),output:XY(I,"output",J.processors)}},enumerable:!1,writable:!1}),L}catch(L){throw Error("Error converting schema to JSON.")}}function p6(J,I){let Y=I??{seen:new Set};if(Y.seen.has(J))return!1;Y.seen.add(J);let W=J._zod.def;if(W.type==="transform")return!0;if(W.type==="array")return p6(W.element,Y);if(W.type==="set")return p6(W.valueType,Y);if(W.type==="lazy")return p6(W.getter(),Y);if(W.type==="promise"||W.type==="optional"||W.type==="nonoptional"||W.type==="nullable"||W.type==="readonly"||W.type==="default"||W.type==="prefault")return p6(W.innerType,Y);if(W.type==="intersection")return p6(W.left,Y)||p6(W.right,Y);if(W.type==="record"||W.type==="map")return p6(W.keyType,Y)||p6(W.valueType,Y);if(W.type==="pipe"){if(J._zod.traits.has("$ZodCodec"))return!0;return p6(W.in,Y)||p6(W.out,Y)}if(W.type==="object"){for(let X in W.shape)if(p6(W.shape[X],Y))return!0;return!1}if(W.type==="union"){for(let X of W.options)if(p6(X,Y))return!0;return!1}if(W.type==="tuple"){for(let X of W.items)if(p6(X,Y))return!0;if(W.rest&&p6(W.rest,Y))return!0;return!1}return!1}var u7=(J,I={})=>(Y)=>{let W=OX({...Y,processors:I});return QU(J,W),VX(W,J),HX(W,J)},XY=(J,I,Y={})=>(W)=>{let{libraryOptions:X,target:K}=W??{},Z=OX({...X??{},target:K,io:I,processors:Y});return QU(J,Z),VX(Z,J),HX(Z,J)};var Uc={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},h7=(J,I,Y,W)=>{let X=Y;X.type="string";let{minimum:K,maximum:Z,format:L,patterns:E,contentEncoding:_}=J._zod.bag;if(typeof K==="number")X.minLength=K;if(typeof Z==="number")X.maxLength=Z;if(L){if(X.format=Uc[L]??L,X.format==="")delete X.format;if(L==="time")delete X.format}if(_)X.contentEncoding=_;if(E&&E.size>0){let S=[...E];if(S.length===1)X.pattern=S[0].source;else if(S.length>1)X.allOf=[...S.map((A)=>({...I.target==="draft-07"||I.target==="draft-04"||I.target==="openapi-3.0"?{type:"string"}:{},pattern:A.source}))]}},c7=(J,I,Y,W)=>{let X=Y,{minimum:K,maximum:Z,format:L,multipleOf:E,exclusiveMaximum:_,exclusiveMinimum:S}=J._zod.bag;if(typeof L==="string"&&L.includes("int"))X.type="integer";else X.type="number";let A=typeof S==="number"&&S>=(K??Number.NEGATIVE_INFINITY),q=typeof _==="number"&&_<=(Z??Number.POSITIVE_INFINITY),B=I.target==="draft-04"||I.target==="openapi-3.0";if(A)if(B)X.minimum=S,X.exclusiveMinimum=!0;else X.exclusiveMinimum=S;else if(typeof K==="number")X.minimum=K;if(q)if(B)X.maximum=_,X.exclusiveMaximum=!0;else X.exclusiveMaximum=_;else if(typeof Z==="number")X.maximum=Z;if(typeof E==="number")X.multipleOf=E},p7=(J,I,Y,W)=>{Y.type="boolean"},m7=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},l7=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},n7=(J,I,Y,W)=>{if(I.target==="openapi-3.0")Y.type="string",Y.nullable=!0,Y.enum=[null];else Y.type="null"},d7=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},o7=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},i7=(J,I,Y,W)=>{Y.not={}},r7=(J,I,Y,W)=>{},t7=(J,I,Y,W)=>{},a7=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},s7=(J,I,Y,W)=>{let X=J._zod.def,K=V2(X.entries);if(K.every((Z)=>typeof Z==="number"))Y.type="number";if(K.every((Z)=>typeof Z==="string"))Y.type="string";Y.enum=K},e7=(J,I,Y,W)=>{let X=J._zod.def,K=[];for(let Z of X.values)if(Z===void 0){if(I.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Z==="bigint")if(I.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else K.push(Number(Z));else K.push(Z);if(K.length===0);else if(K.length===1){let Z=K[0];if(Y.type=Z===null?"null":typeof Z,I.target==="draft-04"||I.target==="openapi-3.0")Y.enum=[Z];else Y.const=Z}else{if(K.every((Z)=>typeof Z==="number"))Y.type="number";if(K.every((Z)=>typeof Z==="string"))Y.type="string";if(K.every((Z)=>typeof Z==="boolean"))Y.type="boolean";if(K.every((Z)=>Z===null))Y.type="null";Y.enum=K}},$L=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},UL=(J,I,Y,W)=>{let X=Y,K=J._zod.pattern;if(!K)throw Error("Pattern not found in template literal");X.type="string",X.pattern=K.source},JL=(J,I,Y,W)=>{let X=Y,K={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Z,maximum:L,mime:E}=J._zod.bag;if(Z!==void 0)K.minLength=Z;if(L!==void 0)K.maxLength=L;if(E)if(E.length===1)K.contentMediaType=E[0],Object.assign(X,K);else Object.assign(X,K),X.anyOf=E.map((_)=>({contentMediaType:_}));else Object.assign(X,K)},XL=(J,I,Y,W)=>{Y.type="boolean"},IL=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},QL=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},YL=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},GL=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},ZL=(J,I,Y,W)=>{if(I.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},zL=(J,I,Y,W)=>{let X=Y,K=J._zod.def,{minimum:Z,maximum:L}=J._zod.bag;if(typeof Z==="number")X.minItems=Z;if(typeof L==="number")X.maxItems=L;X.type="array",X.items=QU(K.element,I,{...W,path:[...W.path,"items"]})},KL=(J,I,Y,W)=>{let X=Y,K=J._zod.def;X.type="object",X.properties={};let Z=K.shape;for(let _ in Z)X.properties[_]=QU(Z[_],I,{...W,path:[...W.path,"properties",_]});let L=new Set(Object.keys(Z)),E=new Set([...L].filter((_)=>{let S=K.shape[_]._zod;if(I.io==="input")return S.optin===void 0;else return S.optout===void 0}));if(E.size>0)X.required=Array.from(E);if(K.catchall?._zod.def.type==="never")X.additionalProperties=!1;else if(!K.catchall){if(I.io==="output")X.additionalProperties=!1}else if(K.catchall)X.additionalProperties=QU(K.catchall,I,{...W,path:[...W.path,"additionalProperties"]})},BK=(J,I,Y,W)=>{let X=J._zod.def,K=X.inclusive===!1,Z=X.options.map((L,E)=>QU(L,I,{...W,path:[...W.path,K?"oneOf":"anyOf",E]}));if(K)Y.oneOf=Z;else Y.anyOf=Z},WL=(J,I,Y,W)=>{let X=J._zod.def,K=QU(X.left,I,{...W,path:[...W.path,"allOf",0]}),Z=QU(X.right,I,{...W,path:[...W.path,"allOf",1]}),L=(_)=>("allOf"in _)&&Object.keys(_).length===1,E=[...L(K)?K.allOf:[K],...L(Z)?Z.allOf:[Z]];Y.allOf=E},OL=(J,I,Y,W)=>{let X=Y,K=J._zod.def;X.type="array";let Z=I.target==="draft-2020-12"?"prefixItems":"items",L=I.target==="draft-2020-12"?"items":I.target==="openapi-3.0"?"items":"additionalItems",E=K.items.map((q,B)=>QU(q,I,{...W,path:[...W.path,Z,B]})),_=K.rest?QU(K.rest,I,{...W,path:[...W.path,L,...I.target==="openapi-3.0"?[K.items.length]:[]]}):null;if(I.target==="draft-2020-12"){if(X.prefixItems=E,_)X.items=_}else if(I.target==="openapi-3.0"){if(X.items={anyOf:E},_)X.items.anyOf.push(_);if(X.minItems=E.length,!_)X.maxItems=E.length}else if(X.items=E,_)X.additionalItems=_;let{minimum:S,maximum:A}=J._zod.bag;if(typeof S==="number")X.minItems=S;if(typeof A==="number")X.maxItems=A},VL=(J,I,Y,W)=>{let X=Y,K=J._zod.def;X.type="object";let Z=K.keyType,E=Z._zod.bag?.patterns;if(K.mode==="loose"&&E&&E.size>0){let S=QU(K.valueType,I,{...W,path:[...W.path,"patternProperties","*"]});X.patternProperties={};for(let A of E)X.patternProperties[A.source]=S}else{if(I.target==="draft-07"||I.target==="draft-2020-12")X.propertyNames=QU(K.keyType,I,{...W,path:[...W.path,"propertyNames"]});X.additionalProperties=QU(K.valueType,I,{...W,path:[...W.path,"additionalProperties"]})}let _=Z._zod.values;if(_){let S=[..._].filter((A)=>typeof A==="string"||typeof A==="number");if(S.length>0)X.required=S}},HL=(J,I,Y,W)=>{let X=J._zod.def,K=QU(X.innerType,I,W),Z=I.seen.get(J);if(I.target==="openapi-3.0")Z.ref=X.innerType,Y.nullable=!0;else Y.anyOf=[K,{type:"null"}]},FL=(J,I,Y,W)=>{let X=J._zod.def;QU(X.innerType,I,W);let K=I.seen.get(J);K.ref=X.innerType},DL=(J,I,Y,W)=>{let X=J._zod.def;QU(X.innerType,I,W);let K=I.seen.get(J);K.ref=X.innerType,Y.default=JSON.parse(JSON.stringify(X.defaultValue))},LL=(J,I,Y,W)=>{let X=J._zod.def;QU(X.innerType,I,W);let K=I.seen.get(J);if(K.ref=X.innerType,I.io==="input")Y._prefault=JSON.parse(JSON.stringify(X.defaultValue))},ML=(J,I,Y,W)=>{let X=J._zod.def;QU(X.innerType,I,W);let K=I.seen.get(J);K.ref=X.innerType;let Z;try{Z=X.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}Y.default=Z},AL=(J,I,Y,W)=>{let X=J._zod.def,K=X.in._zod.traits.has("$ZodTransform"),Z=I.io==="input"?K?X.out:X.in:X.out;QU(Z,I,W);let L=I.seen.get(J);L.ref=Z},CL=(J,I,Y,W)=>{let X=J._zod.def;QU(X.innerType,I,W);let K=I.seen.get(J);K.ref=X.innerType,Y.readOnly=!0},TL=(J,I,Y,W)=>{let X=J._zod.def;QU(X.innerType,I,W);let K=I.seen.get(J);K.ref=X.innerType},vK=(J,I,Y,W)=>{let X=J._zod.def;QU(X.innerType,I,W);let K=I.seen.get(J);K.ref=X.innerType},RL=(J,I,Y,W)=>{let X=J._zod.innerType;QU(X,I,W);let K=I.seen.get(J);K.ref=X},EK={string:h7,number:c7,boolean:p7,bigint:m7,symbol:l7,null:n7,undefined:d7,void:o7,never:i7,any:r7,unknown:t7,date:a7,enum:s7,literal:e7,nan:$L,template_literal:UL,file:JL,success:XL,custom:IL,function:QL,transform:YL,map:GL,set:ZL,array:zL,object:KL,union:BK,intersection:WL,tuple:OL,record:VL,nullable:HL,nonoptional:FL,default:DL,prefault:LL,catch:ML,pipe:AL,readonly:CL,promise:TL,optional:vK,lazy:RL};function NK(J,I){if("_idmap"in J){let W=J,X=OX({...I,processors:EK}),K={};for(let E of W._idmap.entries()){let[_,S]=E;QU(S,X)}let Z={},L={registry:W,uri:I?.uri,defs:K};X.external=L;for(let E of W._idmap.entries()){let[_,S]=E;VX(X,S),Z[_]=HX(X,S)}if(Object.keys(K).length>0){let E=X.target==="draft-2020-12"?"$defs":"definitions";Z.__shared={[E]:K}}return{schemas:Z}}let Y=OX({...I,processors:EK});return QU(J,Y),VX(Y,J),HX(Y,J)}class PL{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(J){this.ctx.counter=J}get seen(){return this.ctx.seen}constructor(J){let I=J?.target??"draft-2020-12";if(I==="draft-4")I="draft-04";if(I==="draft-7")I="draft-07";this.ctx=OX({processors:EK,target:I,...J?.metadata&&{metadata:J.metadata},...J?.unrepresentable&&{unrepresentable:J.unrepresentable},...J?.override&&{override:J.override},...J?.io&&{io:J.io}})}process(J,I={path:[],schemaPath:[]}){return QU(J,this.ctx,I)}emit(J,I){if(I){if(I.cycles)this.ctx.cycles=I.cycles;if(I.reused)this.ctx.reused=I.reused;if(I.external)this.ctx.external=I.external}VX(this.ctx,J);let Y=HX(this.ctx,J),{"~standard":W,...X}=Y;return X}}var EE={};var x2={};w6(x2,{xor:()=>TB,xid:()=>lE,void:()=>FB,uuidv7:()=>fE,uuidv6:()=>wE,uuidv4:()=>xE,uuid:()=>gE,url:()=>yE,unknown:()=>FI,union:()=>IW,undefined:()=>VB,ulid:()=>mE,uint64:()=>WB,uint32:()=>ZB,tuple:()=>XM,transform:()=>YW,templateLiteral:()=>wB,symbol:()=>OB,superRefine:()=>NM,success:()=>NB,stringbool:()=>mB,stringFormat:()=>UB,string:()=>w2,strictObject:()=>AB,set:()=>SB,refine:()=>vM,record:()=>IM,readonly:()=>_M,promise:()=>fB,preprocess:()=>nB,prefault:()=>DM,pipe:()=>bK,partialRecord:()=>PB,optional:()=>y2,object:()=>MB,number:()=>cL,nullish:()=>vB,nullable:()=>b2,null:()=>dL,nonoptional:()=>LM,never:()=>XW,nativeEnum:()=>jB,nanoid:()=>hE,nan:()=>kB,meta:()=>cB,map:()=>qB,mac:()=>oE,looseRecord:()=>_B,looseObject:()=>CB,literal:()=>EB,lazy:()=>jM,ksuid:()=>nE,keyof:()=>LB,jwt:()=>$B,json:()=>lB,ipv6:()=>iE,ipv4:()=>dE,invertCodec:()=>xB,intersection:()=>UM,int64:()=>KB,int32:()=>GB,int:()=>yK,instanceof:()=>pB,httpUrl:()=>bE,hostname:()=>JB,hex:()=>XB,hash:()=>IB,guid:()=>kE,function:()=>yB,float64:()=>YB,float32:()=>QB,file:()=>BB,exactOptional:()=>WM,enum:()=>QW,emoji:()=>uE,email:()=>NE,e164:()=>eE,discriminatedUnion:()=>RB,describe:()=>hB,date:()=>DB,custom:()=>uB,cuid2:()=>pE,cuid:()=>cE,codec:()=>gB,cidrv6:()=>tE,cidrv4:()=>rE,check:()=>bB,catch:()=>CM,boolean:()=>pL,bigint:()=>zB,base64url:()=>sE,base64:()=>aE,array:()=>p2,any:()=>HB,_function:()=>yB,_default:()=>HM,_ZodString:()=>uK,ZodXor:()=>sL,ZodXID:()=>dK,ZodVoid:()=>tL,ZodUnknown:()=>iL,ZodUnion:()=>l2,ZodUndefined:()=>lL,ZodUUID:()=>w4,ZodURL:()=>h2,ZodULID:()=>nK,ZodType:()=>x$,ZodTuple:()=>JM,ZodTransform:()=>zM,ZodTemplateLiteral:()=>qM,ZodSymbol:()=>mL,ZodSuccess:()=>MM,ZodStringFormat:()=>WU,ZodString:()=>GY,ZodSet:()=>YM,ZodRecord:()=>QY,ZodReadonly:()=>PM,ZodPromise:()=>EM,ZodPreprocess:()=>RM,ZodPrefault:()=>FM,ZodPipe:()=>n2,ZodOptional:()=>GW,ZodObject:()=>m2,ZodNumberFormat:()=>DI,ZodNumber:()=>zY,ZodNullable:()=>OM,ZodNull:()=>nL,ZodNonOptional:()=>ZW,ZodNever:()=>rL,ZodNanoID:()=>pK,ZodNaN:()=>TM,ZodMap:()=>QM,ZodMAC:()=>hL,ZodLiteral:()=>GM,ZodLazy:()=>SM,ZodKSUID:()=>oK,ZodJWT:()=>UW,ZodIntersection:()=>$M,ZodIPv6:()=>rK,ZodIPv4:()=>iK,ZodGUID:()=>f2,ZodFunction:()=>BM,ZodFile:()=>ZM,ZodExactOptional:()=>KM,ZodEnum:()=>YY,ZodEmoji:()=>cK,ZodEmail:()=>hK,ZodE164:()=>$W,ZodDiscriminatedUnion:()=>eL,ZodDefault:()=>VM,ZodDate:()=>c2,ZodCustomStringFormat:()=>ZY,ZodCustom:()=>o2,ZodCodec:()=>d2,ZodCatch:()=>AM,ZodCUID2:()=>lK,ZodCUID:()=>mK,ZodCIDRv6:()=>aK,ZodCIDRv4:()=>tK,ZodBoolean:()=>KY,ZodBigIntFormat:()=>JW,ZodBigInt:()=>WY,ZodBase64URL:()=>eK,ZodBase64:()=>sK,ZodArray:()=>aL,ZodAny:()=>oL});var kK={};w6(kK,{uppercase:()=>dQ,trim:()=>sQ,toUpperCase:()=>$Y,toLowerCase:()=>eQ,startsWith:()=>iQ,slugify:()=>UY,size:()=>OI,regex:()=>lQ,property:()=>jK,positive:()=>PK,overwrite:()=>s1,normalize:()=>aQ,nonpositive:()=>qK,nonnegative:()=>SK,negative:()=>_K,multipleOf:()=>KX,minSize:()=>x4,minLength:()=>OJ,mime:()=>tQ,maxSize:()=>WX,maxLength:()=>VI,lte:()=>T1,lt:()=>k4,lowercase:()=>nQ,length:()=>HI,includes:()=>oQ,gte:()=>c6,gt:()=>g4,endsWith:()=>rQ});var IY={};w6(IY,{time:()=>SL,duration:()=>jL,datetime:()=>_L,date:()=>qL,ZodISOTime:()=>wK,ZodISODuration:()=>fK,ZodISODateTime:()=>gK,ZodISODate:()=>xK});var gK=B0("ZodISODateTime",(J,I)=>{I5.init(J,I),WU.init(J,I)});function _L(J){return I7(gK,J)}var xK=B0("ZodISODate",(J,I)=>{Q5.init(J,I),WU.init(J,I)});function qL(J){return Q7(xK,J)}var wK=B0("ZodISOTime",(J,I)=>{Y5.init(J,I),WU.init(J,I)});function SL(J){return Y7(wK,J)}var fK=B0("ZodISODuration",(J,I)=>{G5.init(J,I),WU.init(J,I)});function jL(J){return G7(fK,J)}var BE=(J,I)=>{M2.init(J,I),J.name="ZodError",Object.defineProperties(J,{format:{value:(Y)=>C2(J,Y)},flatten:{value:(Y)=>A2(J,Y)},addIssue:{value:(Y)=>{J.issues.push(Y),J.message=JSON.stringify(J.issues,wQ,2)}},addIssues:{value:(Y)=>{J.issues.push(...Y),J.message=JSON.stringify(J.issues,wQ,2)}},isEmpty:{get(){return J.issues.length===0}}})},Xc=B0("ZodError",BE),U1=B0("ZodError",BE,{Parent:Error});var EL=bQ(U1),BL=uQ(U1),vL=hQ(U1),NL=cQ(U1),kL=w8(U1),gL=f8(U1),xL=y8(U1),wL=b8(U1),fL=u8(U1),yL=h8(U1),bL=c8(U1),uL=p8(U1);var vE=new WeakMap;function u2(J,I,Y){let W=Object.getPrototypeOf(J),X=vE.get(W);if(!X)X=new Set,vE.set(W,X);if(X.has(I))return;X.add(I);for(let K in Y){let Z=Y[K];Object.defineProperty(W,K,{configurable:!0,enumerable:!1,get(){let L=Z.bind(this);return Object.defineProperty(this,K,{configurable:!0,writable:!0,enumerable:!0,value:L}),L},set(L){Object.defineProperty(this,K,{configurable:!0,writable:!0,enumerable:!0,value:L})}})}}var x$=B0("ZodType",(J,I)=>{return S$.init(J,I),Object.assign(J["~standard"],{jsonSchema:{input:XY(J,"input"),output:XY(J,"output")}}),J.toJSONSchema=u7(J,{}),J.def=I,J.type=I.type,Object.defineProperty(J,"_def",{value:I}),J.parse=(Y,W)=>EL(J,Y,W,{callee:J.parse}),J.safeParse=(Y,W)=>vL(J,Y,W),J.parseAsync=async(Y,W)=>BL(J,Y,W,{callee:J.parseAsync}),J.safeParseAsync=async(Y,W)=>NL(J,Y,W),J.spa=J.safeParseAsync,J.encode=(Y,W)=>kL(J,Y,W),J.decode=(Y,W)=>gL(J,Y,W),J.encodeAsync=async(Y,W)=>xL(J,Y,W),J.decodeAsync=async(Y,W)=>wL(J,Y,W),J.safeEncode=(Y,W)=>fL(J,Y,W),J.safeDecode=(Y,W)=>yL(J,Y,W),J.safeEncodeAsync=async(Y,W)=>bL(J,Y,W),J.safeDecodeAsync=async(Y,W)=>uL(J,Y,W),u2(J,"ZodType",{check(...Y){let W=this.def;return this.clone(Z$.mergeDefs(W,{checks:[...W.checks??[],...Y.map((X)=>typeof X==="function"?{_zod:{check:X,def:{check:"custom"},onattach:[]}}:X)]}),{parent:!0})},with(...Y){return this.check(...Y)},clone(Y,W){return u6(this,Y,W)},brand(){return this},register(Y,W){return Y.add(this,W),this},refine(Y,W){return this.check(vM(Y,W))},superRefine(Y,W){return this.check(NM(Y,W))},overwrite(Y){return this.check(s1(Y))},optional(){return y2(this)},exactOptional(){return WM(this)},nullable(){return b2(this)},nullish(){return y2(b2(this))},nonoptional(Y){return LM(this,Y)},array(){return p2(this)},or(Y){return IW([this,Y])},and(Y){return UM(this,Y)},transform(Y){return bK(this,YW(Y))},default(Y){return HM(this,Y)},prefault(Y){return DM(this,Y)},catch(Y){return CM(this,Y)},pipe(Y){return bK(this,Y)},readonly(){return _M(this)},describe(Y){let W=this.clone();return T6.add(W,{description:Y}),W},meta(...Y){if(Y.length===0)return T6.get(this);let W=this.clone();return T6.add(W,Y[0]),W},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(Y){return Y(this)}}),Object.defineProperty(J,"description",{get(){return T6.get(J)?.description},configurable:!0}),J}),uK=B0("_ZodString",(J,I)=>{WI.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(W,X,K)=>h7(J,W,X,K);let Y=J._zod.bag;J.format=Y.format??null,J.minLength=Y.minimum??null,J.maxLength=Y.maximum??null,u2(J,"_ZodString",{regex(...W){return this.check(lQ(...W))},includes(...W){return this.check(oQ(...W))},startsWith(...W){return this.check(iQ(...W))},endsWith(...W){return this.check(rQ(...W))},min(...W){return this.check(OJ(...W))},max(...W){return this.check(VI(...W))},length(...W){return this.check(HI(...W))},nonempty(...W){return this.check(OJ(1,...W))},lowercase(W){return this.check(nQ(W))},uppercase(W){return this.check(dQ(W))},trim(){return this.check(sQ())},normalize(...W){return this.check(aQ(...W))},toLowerCase(){return this.check(eQ())},toUpperCase(){return this.check($Y())},slugify(){return this.check(UY())}})}),GY=B0("ZodString",(J,I)=>{WI.init(J,I),uK.init(J,I),J.email=(Y)=>J.check(XK(hK,Y)),J.url=(Y)=>J.check(g2(h2,Y)),J.jwt=(Y)=>J.check(RK(UW,Y)),J.emoji=(Y)=>J.check(ZK(cK,Y)),J.guid=(Y)=>J.check(k2(f2,Y)),J.uuid=(Y)=>J.check(IK(w4,Y)),J.uuidv4=(Y)=>J.check(QK(w4,Y)),J.uuidv6=(Y)=>J.check(YK(w4,Y)),J.uuidv7=(Y)=>J.check(GK(w4,Y)),J.nanoid=(Y)=>J.check(zK(pK,Y)),J.guid=(Y)=>J.check(k2(f2,Y)),J.cuid=(Y)=>J.check(KK(mK,Y)),J.cuid2=(Y)=>J.check(WK(lK,Y)),J.ulid=(Y)=>J.check(OK(nK,Y)),J.base64=(Y)=>J.check(AK(sK,Y)),J.base64url=(Y)=>J.check(CK(eK,Y)),J.xid=(Y)=>J.check(VK(dK,Y)),J.ksuid=(Y)=>J.check(HK(oK,Y)),J.ipv4=(Y)=>J.check(FK(iK,Y)),J.ipv6=(Y)=>J.check(DK(rK,Y)),J.cidrv4=(Y)=>J.check(LK(tK,Y)),J.cidrv6=(Y)=>J.check(MK(aK,Y)),J.e164=(Y)=>J.check(TK($W,Y)),J.datetime=(Y)=>J.check(_L(Y)),J.date=(Y)=>J.check(qL(Y)),J.time=(Y)=>J.check(SL(Y)),J.duration=(Y)=>J.check(jL(Y))});function w2(J){return $7(GY,J)}var WU=B0("ZodStringFormat",(J,I)=>{KU.init(J,I),uK.init(J,I)}),hK=B0("ZodEmail",(J,I)=>{rF.init(J,I),WU.init(J,I)});function NE(J){return XK(hK,J)}var f2=B0("ZodGUID",(J,I)=>{oF.init(J,I),WU.init(J,I)});function kE(J){return k2(f2,J)}var w4=B0("ZodUUID",(J,I)=>{iF.init(J,I),WU.init(J,I)});function gE(J){return IK(w4,J)}function xE(J){return QK(w4,J)}function wE(J){return YK(w4,J)}function fE(J){return GK(w4,J)}var h2=B0("ZodURL",(J,I)=>{tF.init(J,I),WU.init(J,I)});function yE(J){return g2(h2,J)}function bE(J){return g2(h2,{protocol:C1.httpProtocol,hostname:C1.domain,...Z$.normalizeParams(J)})}var cK=B0("ZodEmoji",(J,I)=>{aF.init(J,I),WU.init(J,I)});function uE(J){return ZK(cK,J)}var pK=B0("ZodNanoID",(J,I)=>{sF.init(J,I),WU.init(J,I)});function hE(J){return zK(pK,J)}var mK=B0("ZodCUID",(J,I)=>{eF.init(J,I),WU.init(J,I)});function cE(J){return KK(mK,J)}var lK=B0("ZodCUID2",(J,I)=>{$5.init(J,I),WU.init(J,I)});function pE(J){return WK(lK,J)}var nK=B0("ZodULID",(J,I)=>{U5.init(J,I),WU.init(J,I)});function mE(J){return OK(nK,J)}var dK=B0("ZodXID",(J,I)=>{J5.init(J,I),WU.init(J,I)});function lE(J){return VK(dK,J)}var oK=B0("ZodKSUID",(J,I)=>{X5.init(J,I),WU.init(J,I)});function nE(J){return HK(oK,J)}var iK=B0("ZodIPv4",(J,I)=>{Z5.init(J,I),WU.init(J,I)});function dE(J){return FK(iK,J)}var hL=B0("ZodMAC",(J,I)=>{K5.init(J,I),WU.init(J,I)});function oE(J){return J7(hL,J)}var rK=B0("ZodIPv6",(J,I)=>{z5.init(J,I),WU.init(J,I)});function iE(J){return DK(rK,J)}var tK=B0("ZodCIDRv4",(J,I)=>{W5.init(J,I),WU.init(J,I)});function rE(J){return LK(tK,J)}var aK=B0("ZodCIDRv6",(J,I)=>{O5.init(J,I),WU.init(J,I)});function tE(J){return MK(aK,J)}var sK=B0("ZodBase64",(J,I)=>{H5.init(J,I),WU.init(J,I)});function aE(J){return AK(sK,J)}var eK=B0("ZodBase64URL",(J,I)=>{F5.init(J,I),WU.init(J,I)});function sE(J){return CK(eK,J)}var $W=B0("ZodE164",(J,I)=>{D5.init(J,I),WU.init(J,I)});function eE(J){return TK($W,J)}var UW=B0("ZodJWT",(J,I)=>{L5.init(J,I),WU.init(J,I)});function $B(J){return RK(UW,J)}var ZY=B0("ZodCustomStringFormat",(J,I)=>{M5.init(J,I),WU.init(J,I)});function UB(J,I,Y={}){return JY(ZY,J,I,Y)}function JB(J){return JY(ZY,"hostname",C1.hostname,J)}function XB(J){return JY(ZY,"hex",C1.hex,J)}function IB(J,I){let Y=I?.enc??"hex",W=`${J}_${Y}`,X=C1[W];if(!X)throw Error(`Unrecognized hash format: ${W}`);return JY(ZY,W,X,I)}var zY=B0("ZodNumber",(J,I)=>{a8.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(W,X,K)=>c7(J,W,X,K),u2(J,"ZodNumber",{gt(W,X){return this.check(g4(W,X))},gte(W,X){return this.check(c6(W,X))},min(W,X){return this.check(c6(W,X))},lt(W,X){return this.check(k4(W,X))},lte(W,X){return this.check(T1(W,X))},max(W,X){return this.check(T1(W,X))},int(W){return this.check(yK(W))},safe(W){return this.check(yK(W))},positive(W){return this.check(g4(0,W))},nonnegative(W){return this.check(c6(0,W))},negative(W){return this.check(k4(0,W))},nonpositive(W){return this.check(T1(0,W))},multipleOf(W,X){return this.check(KX(W,X))},step(W,X){return this.check(KX(W,X))},finite(){return this}});let Y=J._zod.bag;J.minValue=Math.max(Y.minimum??Number.NEGATIVE_INFINITY,Y.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,J.maxValue=Math.min(Y.maximum??Number.POSITIVE_INFINITY,Y.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,J.isInt=(Y.format??"").includes("int")||Number.isSafeInteger(Y.multipleOf??0.5),J.isFinite=!0,J.format=Y.format??null});function cL(J){return Z7(zY,J)}var DI=B0("ZodNumberFormat",(J,I)=>{A5.init(J,I),zY.init(J,I)});function yK(J){return K7(DI,J)}function QB(J){return W7(DI,J)}function YB(J){return O7(DI,J)}function GB(J){return V7(DI,J)}function ZB(J){return H7(DI,J)}var KY=B0("ZodBoolean",(J,I)=>{_2.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>p7(J,Y,W,X)});function pL(J){return F7(KY,J)}var WY=B0("ZodBigInt",(J,I)=>{s8.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(W,X,K)=>m7(J,W,X,K),J.gte=(W,X)=>J.check(c6(W,X)),J.min=(W,X)=>J.check(c6(W,X)),J.gt=(W,X)=>J.check(g4(W,X)),J.gte=(W,X)=>J.check(c6(W,X)),J.min=(W,X)=>J.check(c6(W,X)),J.lt=(W,X)=>J.check(k4(W,X)),J.lte=(W,X)=>J.check(T1(W,X)),J.max=(W,X)=>J.check(T1(W,X)),J.positive=(W)=>J.check(g4(BigInt(0),W)),J.negative=(W)=>J.check(k4(BigInt(0),W)),J.nonpositive=(W)=>J.check(T1(BigInt(0),W)),J.nonnegative=(W)=>J.check(c6(BigInt(0),W)),J.multipleOf=(W,X)=>J.check(KX(W,X));let Y=J._zod.bag;J.minValue=Y.minimum??null,J.maxValue=Y.maximum??null,J.format=Y.format??null});function zB(J){return L7(WY,J)}var JW=B0("ZodBigIntFormat",(J,I)=>{C5.init(J,I),WY.init(J,I)});function KB(J){return A7(JW,J)}function WB(J){return C7(JW,J)}var mL=B0("ZodSymbol",(J,I)=>{T5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>l7(J,Y,W,X)});function OB(J){return T7(mL,J)}var lL=B0("ZodUndefined",(J,I)=>{R5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>d7(J,Y,W,X)});function VB(J){return R7(lL,J)}var nL=B0("ZodNull",(J,I)=>{P5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>n7(J,Y,W,X)});function dL(J){return P7(nL,J)}var oL=B0("ZodAny",(J,I)=>{_5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>r7(J,Y,W,X)});function HB(){return _7(oL)}var iL=B0("ZodUnknown",(J,I)=>{q5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>t7(J,Y,W,X)});function FI(){return q7(iL)}var rL=B0("ZodNever",(J,I)=>{S5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>i7(J,Y,W,X)});function XW(J){return S7(rL,J)}var tL=B0("ZodVoid",(J,I)=>{j5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>o7(J,Y,W,X)});function FB(J){return j7(tL,J)}var c2=B0("ZodDate",(J,I)=>{E5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(W,X,K)=>a7(J,W,X,K),J.min=(W,X)=>J.check(c6(W,X)),J.max=(W,X)=>J.check(T1(W,X));let Y=J._zod.bag;J.minDate=Y.minimum?new Date(Y.minimum):null,J.maxDate=Y.maximum?new Date(Y.maximum):null});function DB(J){return E7(c2,J)}var aL=B0("ZodArray",(J,I)=>{B5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>zL(J,Y,W,X),J.element=I.element,u2(J,"ZodArray",{min(Y,W){return this.check(OJ(Y,W))},nonempty(Y){return this.check(OJ(1,Y))},max(Y,W){return this.check(VI(Y,W))},length(Y,W){return this.check(HI(Y,W))},unwrap(){return this.element}})});function p2(J,I){return N7(aL,J,I)}function LB(J){let I=J._zod.def.shape;return QW(Object.keys(I))}var m2=B0("ZodObject",(J,I)=>{v5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>KL(J,Y,W,X),Z$.defineLazy(J,"shape",()=>{return I.shape}),u2(J,"ZodObject",{keyof(){return QW(Object.keys(this._zod.def.shape))},catchall(Y){return this.clone({...this._zod.def,catchall:Y})},passthrough(){return this.clone({...this._zod.def,catchall:FI()})},loose(){return this.clone({...this._zod.def,catchall:FI()})},strict(){return this.clone({...this._zod.def,catchall:XW()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(Y){return Z$.extend(this,Y)},safeExtend(Y){return Z$.safeExtend(this,Y)},merge(Y){return Z$.merge(this,Y)},pick(Y){return Z$.pick(this,Y)},omit(Y){return Z$.omit(this,Y)},partial(...Y){return Z$.partial(GW,this,Y[0])},required(...Y){return Z$.required(ZW,this,Y[0])}})});function MB(J,I){let Y={type:"object",shape:J??{},...Z$.normalizeParams(I)};return new m2(Y)}function AB(J,I){return new m2({type:"object",shape:J,catchall:XW(),...Z$.normalizeParams(I)})}function CB(J,I){return new m2({type:"object",shape:J,catchall:FI(),...Z$.normalizeParams(I)})}var l2=B0("ZodUnion",(J,I)=>{q2.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>BK(J,Y,W,X),J.options=I.options});function IW(J,I){return new l2({type:"union",options:J,...Z$.normalizeParams(I)})}var sL=B0("ZodXor",(J,I)=>{l2.init(J,I),N5.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>BK(J,Y,W,X),J.options=I.options});function TB(J,I){return new sL({type:"union",options:J,inclusive:!1,...Z$.normalizeParams(I)})}var eL=B0("ZodDiscriminatedUnion",(J,I)=>{l2.init(J,I),k5.init(J,I)});function RB(J,I,Y){return new eL({type:"union",options:I,discriminator:J,...Z$.normalizeParams(Y)})}var $M=B0("ZodIntersection",(J,I)=>{g5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>WL(J,Y,W,X)});function UM(J,I){return new $M({type:"intersection",left:J,right:I})}var JM=B0("ZodTuple",(J,I)=>{e8.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>OL(J,Y,W,X),J.rest=(Y)=>J.clone({...J._zod.def,rest:Y})});function XM(J,I,Y){let W=I instanceof S$,X=W?Y:I;return new JM({type:"tuple",items:J,rest:W?I:null,...Z$.normalizeParams(X)})}var QY=B0("ZodRecord",(J,I)=>{x5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>VL(J,Y,W,X),J.keyType=I.keyType,J.valueType=I.valueType});function IM(J,I,Y){if(!I||!I._zod)return new QY({type:"record",keyType:w2(),valueType:J,...Z$.normalizeParams(I)});return new QY({type:"record",keyType:J,valueType:I,...Z$.normalizeParams(Y)})}function PB(J,I,Y){let W=u6(J);return W._zod.values=void 0,new QY({type:"record",keyType:W,valueType:I,...Z$.normalizeParams(Y)})}function _B(J,I,Y){return new QY({type:"record",keyType:J,valueType:I,mode:"loose",...Z$.normalizeParams(Y)})}var QM=B0("ZodMap",(J,I)=>{w5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>GL(J,Y,W,X),J.keyType=I.keyType,J.valueType=I.valueType,J.min=(...Y)=>J.check(x4(...Y)),J.nonempty=(Y)=>J.check(x4(1,Y)),J.max=(...Y)=>J.check(WX(...Y)),J.size=(...Y)=>J.check(OI(...Y))});function qB(J,I,Y){return new QM({type:"map",keyType:J,valueType:I,...Z$.normalizeParams(Y)})}var YM=B0("ZodSet",(J,I)=>{f5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>ZL(J,Y,W,X),J.min=(...Y)=>J.check(x4(...Y)),J.nonempty=(Y)=>J.check(x4(1,Y)),J.max=(...Y)=>J.check(WX(...Y)),J.size=(...Y)=>J.check(OI(...Y))});function SB(J,I){return new YM({type:"set",valueType:J,...Z$.normalizeParams(I)})}var YY=B0("ZodEnum",(J,I)=>{y5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(W,X,K)=>s7(J,W,X,K),J.enum=I.entries,J.options=Object.values(I.entries);let Y=new Set(Object.keys(I.entries));J.extract=(W,X)=>{let K={};for(let Z of W)if(Y.has(Z))K[Z]=I.entries[Z];else throw Error(`Key ${Z} not found in enum`);return new YY({...I,checks:[],...Z$.normalizeParams(X),entries:K})},J.exclude=(W,X)=>{let K={...I.entries};for(let Z of W)if(Y.has(Z))delete K[Z];else throw Error(`Key ${Z} not found in enum`);return new YY({...I,checks:[],...Z$.normalizeParams(X),entries:K})}});function QW(J,I){let Y=Array.isArray(J)?Object.fromEntries(J.map((W)=>[W,W])):J;return new YY({type:"enum",entries:Y,...Z$.normalizeParams(I)})}function jB(J,I){return new YY({type:"enum",entries:J,...Z$.normalizeParams(I)})}var GM=B0("ZodLiteral",(J,I)=>{b5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>e7(J,Y,W,X),J.values=new Set(I.values),Object.defineProperty(J,"value",{get(){if(I.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return I.values[0]}})});function EB(J,I){return new GM({type:"literal",values:Array.isArray(J)?J:[J],...Z$.normalizeParams(I)})}var ZM=B0("ZodFile",(J,I)=>{u5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>JL(J,Y,W,X),J.min=(Y,W)=>J.check(x4(Y,W)),J.max=(Y,W)=>J.check(WX(Y,W)),J.mime=(Y,W)=>J.check(tQ(Array.isArray(Y)?Y:[Y],W))});function BB(J){return k7(ZM,J)}var zM=B0("ZodTransform",(J,I)=>{h5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>YL(J,Y,W,X),J._zod.parse=(Y,W)=>{if(W.direction==="backward")throw new ZI(J.constructor.name);Y.addIssue=(K)=>{if(typeof K==="string")Y.issues.push(Z$.issue(K,Y.value,I));else{let Z=K;if(Z.fatal)Z.continue=!1;Z.code??(Z.code="custom"),Z.input??(Z.input=Y.value),Z.inst??(Z.inst=J),Y.issues.push(Z$.issue(Z))}};let X=I.transform(Y.value,Y);if(X instanceof Promise)return X.then((K)=>{return Y.value=K,Y.fallback=!0,Y});return Y.value=X,Y.fallback=!0,Y}});function YW(J){return new zM({type:"transform",transform:J})}var GW=B0("ZodOptional",(J,I)=>{$K.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>vK(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType});function y2(J){return new GW({type:"optional",innerType:J})}var KM=B0("ZodExactOptional",(J,I)=>{c5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>vK(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType});function WM(J){return new KM({type:"optional",innerType:J})}var OM=B0("ZodNullable",(J,I)=>{p5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>HL(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType});function b2(J){return new OM({type:"nullable",innerType:J})}function vB(J){return y2(b2(J))}var VM=B0("ZodDefault",(J,I)=>{m5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>DL(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType,J.removeDefault=J.unwrap});function HM(J,I){return new VM({type:"default",innerType:J,get defaultValue(){return typeof I==="function"?I():Z$.shallowClone(I)}})}var FM=B0("ZodPrefault",(J,I)=>{l5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>LL(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType});function DM(J,I){return new FM({type:"prefault",innerType:J,get defaultValue(){return typeof I==="function"?I():Z$.shallowClone(I)}})}var ZW=B0("ZodNonOptional",(J,I)=>{n5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>FL(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType});function LM(J,I){return new ZW({type:"nonoptional",innerType:J,...Z$.normalizeParams(I)})}var MM=B0("ZodSuccess",(J,I)=>{d5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>XL(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType});function NB(J){return new MM({type:"success",innerType:J})}var AM=B0("ZodCatch",(J,I)=>{o5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>ML(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType,J.removeCatch=J.unwrap});function CM(J,I){return new AM({type:"catch",innerType:J,catchValue:typeof I==="function"?I:()=>I})}var TM=B0("ZodNaN",(J,I)=>{i5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>$L(J,Y,W,X)});function kB(J){return v7(TM,J)}var n2=B0("ZodPipe",(J,I)=>{UK.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>AL(J,Y,W,X),J.in=I.in,J.out=I.out});function bK(J,I){return new n2({type:"pipe",in:J,out:I})}var d2=B0("ZodCodec",(J,I)=>{n2.init(J,I),S2.init(J,I)});function gB(J,I,Y){return new d2({type:"pipe",in:J,out:I,transform:Y.decode,reverseTransform:Y.encode})}function xB(J){let I=J._zod.def;return new d2({type:"pipe",in:I.out,out:I.in,transform:I.reverseTransform,reverseTransform:I.transform})}var RM=B0("ZodPreprocess",(J,I)=>{n2.init(J,I),r5.init(J,I)}),PM=B0("ZodReadonly",(J,I)=>{t5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>CL(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType});function _M(J){return new PM({type:"readonly",innerType:J})}var qM=B0("ZodTemplateLiteral",(J,I)=>{a5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>UL(J,Y,W,X)});function wB(J,I){return new qM({type:"template_literal",parts:J,...Z$.normalizeParams(I)})}var SM=B0("ZodLazy",(J,I)=>{$D.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>RL(J,Y,W,X),J.unwrap=()=>J._zod.def.getter()});function jM(J){return new SM({type:"lazy",getter:J})}var EM=B0("ZodPromise",(J,I)=>{e5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>TL(J,Y,W,X),J.unwrap=()=>J._zod.def.innerType});function fB(J){return new EM({type:"promise",innerType:J})}var BM=B0("ZodFunction",(J,I)=>{s5.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>QL(J,Y,W,X)});function yB(J){return new BM({type:"function",input:Array.isArray(J?.input)?XM(J?.input):J?.input??p2(FI()),output:J?.output??FI()})}var o2=B0("ZodCustom",(J,I)=>{UD.init(J,I),x$.init(J,I),J._zod.processJSONSchema=(Y,W,X)=>IL(J,Y,W,X)});function bB(J){let I=new DU({check:"custom"});return I._zod.check=J,I}function uB(J,I){return g7(o2,J??(()=>!0),I)}function vM(J,I={}){return x7(o2,J,I)}function NM(J,I){return w7(J,I)}var hB=f7,cB=y7;function pB(J,I={}){let Y=new o2({type:"custom",check:"custom",fn:(W)=>W instanceof J,abort:!0,...Z$.normalizeParams(I)});return Y._zod.bag.Class=J,Y._zod.check=(W)=>{if(!(W.value instanceof J))W.issues.push({code:"invalid_type",expected:J.name,input:W.value,inst:Y,path:[...Y._zod.def.path??[]]})},Y}var mB=(...J)=>b7({Codec:d2,Boolean:KY,String:GY},...J);function lB(J){let I=jM(()=>{return IW([w2(J),cL(),pL(),dL(),p2(I),IM(w2(),I)])});return I}function nB(J,I){return new RM({type:"pipe",in:YW(J),out:I})}var Qc={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Yc(J){tU({customError:J})}function Gc(){return tU().customError}var kM;(function(J){})(kM||(kM={}));var H$={...x2,...kK,iso:IY},Zc=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function zc(J,I){let Y=J.$schema;if(Y==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(Y==="http://json-schema.org/draft-07/schema#")return"draft-7";if(Y==="http://json-schema.org/draft-04/schema#")return"draft-4";return I??"draft-2020-12"}function Kc(J,I){if(!J.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let Y=J.slice(1).split("/").filter(Boolean);if(Y.length===0)return I.rootSchema;let W=I.version==="draft-2020-12"?"$defs":"definitions";if(Y[0]===W){let X=Y[1];if(!X||!I.defs[X])throw Error(`Reference not found: ${J}`);return I.defs[X]}throw Error(`Reference not found: ${J}`)}function dB(J,I){if(J.not!==void 0){if(typeof J.not==="object"&&Object.keys(J.not).length===0)return H$.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(J.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(J.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(J.if!==void 0||J.then!==void 0||J.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(J.dependentSchemas!==void 0||J.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(J.$ref){let X=J.$ref;if(I.refs.has(X))return I.refs.get(X);if(I.processing.has(X))return H$.lazy(()=>{if(!I.refs.has(X))throw Error(`Circular reference not resolved: ${X}`);return I.refs.get(X)});I.processing.add(X);let K=Kc(X,I),Z=q6(K,I);return I.refs.set(X,Z),I.processing.delete(X),Z}if(J.enum!==void 0){let X=J.enum;if(I.version==="openapi-3.0"&&J.nullable===!0&&X.length===1&&X[0]===null)return H$.null();if(X.length===0)return H$.never();if(X.length===1)return H$.literal(X[0]);if(X.every((Z)=>typeof Z==="string"))return H$.enum(X);let K=X.map((Z)=>H$.literal(Z));if(K.length<2)return K[0];return H$.union([K[0],K[1],...K.slice(2)])}if(J.const!==void 0)return H$.literal(J.const);let Y=J.type;if(Array.isArray(Y)){let X=Y.map((K)=>{let Z={...J,type:K};return dB(Z,I)});if(X.length===0)return H$.never();if(X.length===1)return X[0];return H$.union(X)}if(!Y)return H$.any();let W;switch(Y){case"string":{let X=H$.string();if(J.format){let K=J.format;if(K==="email")X=X.check(H$.email());else if(K==="uri"||K==="uri-reference")X=X.check(H$.url());else if(K==="uuid"||K==="guid")X=X.check(H$.uuid());else if(K==="date-time")X=X.check(H$.iso.datetime());else if(K==="date")X=X.check(H$.iso.date());else if(K==="time")X=X.check(H$.iso.time());else if(K==="duration")X=X.check(H$.iso.duration());else if(K==="ipv4")X=X.check(H$.ipv4());else if(K==="ipv6")X=X.check(H$.ipv6());else if(K==="mac")X=X.check(H$.mac());else if(K==="cidr")X=X.check(H$.cidrv4());else if(K==="cidr-v6")X=X.check(H$.cidrv6());else if(K==="base64")X=X.check(H$.base64());else if(K==="base64url")X=X.check(H$.base64url());else if(K==="e164")X=X.check(H$.e164());else if(K==="jwt")X=X.check(H$.jwt());else if(K==="emoji")X=X.check(H$.emoji());else if(K==="nanoid")X=X.check(H$.nanoid());else if(K==="cuid")X=X.check(H$.cuid());else if(K==="cuid2")X=X.check(H$.cuid2());else if(K==="ulid")X=X.check(H$.ulid());else if(K==="xid")X=X.check(H$.xid());else if(K==="ksuid")X=X.check(H$.ksuid())}if(typeof J.minLength==="number")X=X.min(J.minLength);if(typeof J.maxLength==="number")X=X.max(J.maxLength);if(J.pattern)X=X.regex(new RegExp(J.pattern));W=X;break}case"number":case"integer":{let X=Y==="integer"?H$.number().int():H$.number();if(typeof J.minimum==="number")X=X.min(J.minimum);if(typeof J.maximum==="number")X=X.max(J.maximum);if(typeof J.exclusiveMinimum==="number")X=X.gt(J.exclusiveMinimum);else if(J.exclusiveMinimum===!0&&typeof J.minimum==="number")X=X.gt(J.minimum);if(typeof J.exclusiveMaximum==="number")X=X.lt(J.exclusiveMaximum);else if(J.exclusiveMaximum===!0&&typeof J.maximum==="number")X=X.lt(J.maximum);if(typeof J.multipleOf==="number")X=X.multipleOf(J.multipleOf);W=X;break}case"boolean":{W=H$.boolean();break}case"null":{W=H$.null();break}case"object":{let X={},K=J.properties||{},Z=new Set(J.required||[]);for(let[E,_]of Object.entries(K)){let S=q6(_,I);X[E]=Z.has(E)?S:S.optional()}if(J.propertyNames){let E=q6(J.propertyNames,I),_=J.additionalProperties&&typeof J.additionalProperties==="object"?q6(J.additionalProperties,I):H$.any();if(Object.keys(X).length===0){W=H$.record(E,_);break}let S=H$.object(X).passthrough(),A=H$.looseRecord(E,_);W=H$.intersection(S,A);break}if(J.patternProperties){let E=J.patternProperties,_=Object.keys(E),S=[];for(let q of _){let B=q6(E[q],I),N=H$.string().regex(new RegExp(q));S.push(H$.looseRecord(N,B))}let A=[];if(Object.keys(X).length>0)A.push(H$.object(X).passthrough());if(A.push(...S),A.length===0)W=H$.object({}).passthrough();else if(A.length===1)W=A[0];else{let q=H$.intersection(A[0],A[1]);for(let B=2;B<A.length;B++)q=H$.intersection(q,A[B]);W=q}break}let L=H$.object(X);if(J.additionalProperties===!1)W=L.strict();else if(typeof J.additionalProperties==="object")W=L.catchall(q6(J.additionalProperties,I));else W=L.passthrough();break}case"array":{let{prefixItems:X,items:K}=J;if(X&&Array.isArray(X)){let Z=X.map((E)=>q6(E,I)),L=K&&typeof K==="object"&&!Array.isArray(K)?q6(K,I):void 0;if(L)W=H$.tuple(Z).rest(L);else W=H$.tuple(Z);if(typeof J.minItems==="number")W=W.check(H$.minLength(J.minItems));if(typeof J.maxItems==="number")W=W.check(H$.maxLength(J.maxItems))}else if(Array.isArray(K)){let Z=K.map((E)=>q6(E,I)),L=J.additionalItems&&typeof J.additionalItems==="object"?q6(J.additionalItems,I):void 0;if(L)W=H$.tuple(Z).rest(L);else W=H$.tuple(Z);if(typeof J.minItems==="number")W=W.check(H$.minLength(J.minItems));if(typeof J.maxItems==="number")W=W.check(H$.maxLength(J.maxItems))}else if(K!==void 0){let Z=q6(K,I),L=H$.array(Z);if(typeof J.minItems==="number")L=L.min(J.minItems);if(typeof J.maxItems==="number")L=L.max(J.maxItems);W=L}else W=H$.array(H$.any());break}default:throw Error(`Unsupported type: ${Y}`)}return W}function q6(J,I){if(typeof J==="boolean")return J?H$.any():H$.never();let Y=dB(J,I),W=J.type||J.enum!==void 0||J.const!==void 0;if(J.anyOf&&Array.isArray(J.anyOf)){let L=J.anyOf.map((_)=>q6(_,I)),E=H$.union(L);Y=W?H$.intersection(Y,E):E}if(J.oneOf&&Array.isArray(J.oneOf)){let L=J.oneOf.map((_)=>q6(_,I)),E=H$.xor(L);Y=W?H$.intersection(Y,E):E}if(J.allOf&&Array.isArray(J.allOf))if(J.allOf.length===0)Y=W?Y:H$.any();else{let L=W?Y:q6(J.allOf[0],I),E=W?0:1;for(let _=E;_<J.allOf.length;_++)L=H$.intersection(L,q6(J.allOf[_],I));Y=L}if(J.nullable===!0&&I.version==="openapi-3.0")Y=H$.nullable(Y);if(J.readOnly===!0)Y=H$.readonly(Y);if(J.default!==void 0)Y=Y.default(J.default);let X={},K=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let L of K)if(L in J)X[L]=J[L];let Z=["contentEncoding","contentMediaType","contentSchema"];for(let L of Z)if(L in J)X[L]=J[L];for(let L of Object.keys(J))if(!Zc.has(L))X[L]=J[L];if(Object.keys(X).length>0)I.registry.add(Y,X);if(J.description)Y=Y.describe(J.description);return Y}function oB(J,I){if(typeof J==="boolean")return J?H$.any():H$.never();let Y;try{Y=JSON.parse(JSON.stringify(J))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let W=zc(Y,I?.defaultTarget),X=Y.$defs||Y.definitions||{},K={version:W,defs:X,refs:new Map,processing:new Set,rootSchema:Y,registry:I?.registry??T6};return q6(Y,K)}var gM={};w6(gM,{string:()=>Wc,number:()=>Oc,date:()=>Fc,boolean:()=>Vc,bigint:()=>Hc});function Wc(J){return U7(GY,J)}function Oc(J){return z7(zY,J)}function Vc(J){return D7(KY,J)}function Hc(J){return M7(WY,J)}function Fc(J){return B7(c2,J)}tU(j2());var iB=q$.object({id:q$.string().min(1).optional(),name:q$.string().min(1).optional(),kind:q$.enum(["human","agent","bot","system"])}),rB=q$.object({type:q$.string().min(1),id:q$.string().min(1)}),tB=q$.object({provider:q$.string().min(1),id:q$.string().min(1).optional(),url:q$.string().min(1).optional(),cursor:q$.string().min(1).optional(),rawRef:q$.string().min(1).optional()}),xM=q$.object({id:q$.string().min(1),service:q$.string().min(1),type:q$.string().min(1),schemaVersion:q$.number().int().positive(),idempotencyKey:q$.string().min(1),occurredAt:q$.string().min(1),observedAt:q$.string().min(1),origin:q$.enum(["virtual","external","agent","connector","replay","migration"]),actor:iB.optional(),subject:rB,causationId:q$.string().min(1).optional(),correlationId:q$.string().min(1).optional(),external:tB.optional(),data:q$.record(q$.string(),q$.unknown()),raw:q$.record(q$.string(),q$.unknown()).optional()}),aB=q$.object({version:q$.literal(1),service:q$.string().min(1),rebuiltAt:q$.string().min(1),eventCount:q$.number().int().nonnegative(),latestEventId:q$.string().min(1).optional(),subjects:q$.record(q$.string(),q$.object({type:q$.string().min(1),id:q$.string().min(1),latestEventId:q$.string().min(1),latestType:q$.string().min(1),updatedAt:q$.string().min(1)}))});function sB(J){return a1(J||process.env.PROJECT_ROOT||process.cwd())}function B8(){let J=process.env.VOLTER_STATE_DIR||".volter";if(gQ(J)||J.split(/[\\/]/).includes(".."))throw Error("VOLTER_STATE_DIR must be a relative directory without .. segments");return J}function zW(J){return i$(sB(J),B8(),"world")}function Mc(J){if(!/^[A-Za-z0-9_-]+$/.test(J))throw Error(`Invalid world service name: ${J}`);return J}var eB;function $v(J){eB=J}function s6(J,I){let Y=Mc(J);eB?.(Y,I);let W=sB(I),X=i$(zW(I),Y);return{root:W,service:Y,dir:X,events:i$(X,"events.jsonl"),state:i$(X,"state.json"),resources:i$(X,"resources"),cursors:i$(X,"cursors"),ingests:i$(X,"ingests"),eventQueue:i$(X,"event-queue.jsonl")}}var Ac={windowMs:60000,ceiling:60,defaultWeight:2,maxRetryAfterSeconds:300,rules:[],reason:"no pack declared a budget for this vendor — this is the conservative fallback (30 calls/min at "+"the default weight), not a considered limit. Declare one on the pack with the vendor's real limits."};var Uv="2.0",_c=Number(Uv.split(".")[0]);bU();var{AsyncLocalStorage:Lt}=(()=>({}));var{AsyncLocalStorage:rc}=(()=>({}));var xc;function Iv(J){xc=J}var yM="/__volter/world-boot";var{chmodSync:wt,existsSync:ft,mkdirSync:yt,readFileSync:bt,writeFileSync:ut}=(()=>({}));bU();var tc=1e6,ac=/(?:^|[-_.])(?:auth|authorization|token|jwt|key|apikey|secret|credential|credentials|signature|sig|password|passwd|pwd|session|sessionid|cookie|access[-_]?token|refresh[-_]?token)(?:[-_.]|$)/i,sc=/^(Bearer|Basic|Digest|Token|Negotiate|NTLM|OAuth|Signature|Hawk|AWS4-HMAC-SHA256|SharedKey|SharedKeyLite|GoogleLogin)\s+(\S[\s\S]*)$/i;function Gv(J){return`sha256:${M1("sha256").update(J,"utf8").digest("hex").slice(0,16)}`}function ec(J,I,Y){let W=sc.exec(I);if(!W&&!ac.test(J))return;let X=J.toLowerCase();if(I==="")return{name:X,in:Y,empty:!0};if(W)return{name:X,in:Y,scheme:W[1],fp:Gv(W[2])};return{name:X,in:Y,fp:Gv(I)}}function Ov(J,I){let Y=[],W=new Set,X=(K,Z,L)=>{let E=ec(K,Z,L);if(!E)return;let _=`${E.in}:${E.name}`;if(W.has(_))return;W.add(_),Y.push(E)};try{if(typeof J.forEach==="function")J.forEach((K,Z)=>X(Z,K,"header"));else for(let[K,Z]of Object.entries(J))X(K,String(Z),"header")}catch{}try{if(I!==void 0){let K=typeof I==="string"?new URL(I,"http://twin.invalid").search:I.search;for(let[Z,L]of new URLSearchParams(K))X(Z,L,"query")}}catch{}return Y.sort((K,Z)=>K.in===Z.in?K.name.localeCompare(Z.name):K.in.localeCompare(Z.in))}function cM(J=process.env){return J.VOLTER_TWIN_REQUEST_JOURNAL==="1"}function Vv(J,I){return i$(rU(s6(J,I).events),"requests.jsonl")}function Hv(J,I,Y){if(!cM())return;try{let W=b6(),X=Vv(J,Y);if(W.mkdir(rU(X)),(W.stat(X)?.size??0)>=tc)W.writeAtomic(`${X}.1`,W.read(X)??""),W.write(X,"");let Z=JSON.stringify({at:I.at??new Date().toISOString(),method:I.method.toUpperCase(),path:I.path.split("?")[0],status:I.status,...typeof I.ms==="number"?{ms:I.ms}:{},...I.credentials?.length?{credentials:I.credentials}:{}});W.append(X,`${Z}
|
|
321
|
+
`)}catch{}}var Fv=Symbol.for("volter.twin.requestJournal.identity"),Zv=Symbol.for("volter.twin.requestJournal.installed"),bM;function $p(){return bM??=new rc,bM}function Up(){$v((J,I)=>{let Y=bM?.getStore();if(!Y||Y.identity!==void 0)return;Y.identity=I===void 0?{service:J}:{service:J,root:I}})}function Jp(J=process.argv){let I=J.indexOf("--root"),Y=I>=0?J[I+1]:void 0;return Y&&!Y.startsWith("--")?Y:void 0}var Xp=new Set(["world-runtime","world-tooling","world-attach","world-browser-assets","world-host"]);function zv(J){if(!J)return;let I=/(?:packages[\\/]twin[\\/]|@volter[\\/]twin-)([A-Za-z0-9_-]+)/g;for(let Y of J.matchAll(I)){let W=Y[1];if(!Xp.has(W))return W}return}function Ip(){if(typeof window<"u"||typeof document<"u")return!1;let J=globalThis.Bun,I=J&&typeof J.serve==="function"?J.serve:void 0;if(I&&I[Zv])return!0;if(Up(),Iv((W)=>Kv(W,zv(Error().stack))),!I)return!1;let Y=function(X,...K){let Z=X;if(!Z||typeof Z.fetch!=="function")return I.apply(this,[X,...K]);let L=Z[Fv]?void 0:zv(Error().stack);return I.apply(this,[{...Z,fetch:Kv(Z,L)},...K])};return Object.defineProperty(Y,Zv,{value:!0}),J.serve=Y,!0}function Kv(J,I){if(J.twinRequestJournal===!1)return J.fetch;{let W=J[Fv],X=J.fetch;return async function(Z,L){if(!cM()||new URL(Z.url).pathname===yM)return X.call(this,Z,L);let E={},_=500,S=Date.now();try{let A=await $p().run(E,()=>X.call(this,Z,L));if(A instanceof Response)_=A.status;else if(A===void 0)return A;return A}finally{W??=E.identity;let A=W??Qp(I);if(A){let q=new URL(Z.url);Hv(A.service,{method:Z.method,path:q.pathname,status:_,ms:Date.now()-S,credentials:Ov(Z.headers,q)},A.root)}}}}}function Qp(J){let I=process.env.VOLTER_TWIN_JOURNAL_SERVICE||J;if(!I||!/^[A-Za-z0-9_-]+$/.test(I))return;let Y=Jp();return Y===void 0?{service:I}:{service:I,root:Y}}Ip();bU();var Ta=Symbol("absent");bU();var{closeSync:Cp,existsSync:r2,mkdirSync:Tp,openSync:Rp,readdirSync:Pp,readFileSync:_p,readSync:qp,renameSync:Sp,rmSync:jv,statSync:dM,writeFileSync:jp}=(()=>({}));bU();var{closeSync:lM,constants:LI,fstatSync:Tv,ftruncateSync:Vp,linkSync:Hp,lstatSync:mM,mkdirSync:Fp,openSync:nM,readFileSync:Dp,readSync:Mv,rmSync:Lp,writeFileSync:Mp}=(()=>({}));var Rv=131072,Pv=32,_v=4;function qv(J){return J.isFile()&&J.nlink===1&&(!process.getuid||J.uid===process.getuid())&&(J.mode&63)===0}function Av(J){try{let I=mM(J);return I.isDirectory()&&(I.mode&63)===0&&(!process.getuid||I.uid===process.getuid())}catch{return!1}}function Cv(J){let I;try{I=nM(J,LI.O_RDONLY|LI.O_NONBLOCK|(LI.O_NOFOLLOW??0));let Y=Tv(I);if(!qv(Y)||Y.size>Rv)return{};let W=JSON.parse(Dp(I,"utf8"));if(!W||typeof W!=="object"||Array.isArray(W))return{};let X={};for(let[K,Z]of Object.entries(W).slice(-Pv)){if(!/^\d+:[a-f0-9]{64}$/.test(K)||!Array.isArray(Z))continue;X[K]=Z.filter((L)=>typeof L==="string"&&L.length<=4096&&gQ(L)).slice(0,_v)}return X}catch{return{}}finally{if(I!==void 0)lM(I)}}function Ap(J,I){let Y=nM(J,"r");try{let W=M1("sha256"),X=Buffer.allocUnsafe(65536),K=I;while(K>0){let Z=Mv(Y,X,0,Math.min(X.length,K),null);if(!Z)return null;W.update(X.subarray(0,Z)),K-=Z}if(Mv(Y,X,0,1,null))return null;return W.digest("hex")}finally{lM(Y)}}function Sv(J,I,Y){let W=i$(J,`${Y.slice(0,2)}.json`),X=`${I}:${Y}`;return{reuse(K,Z){if(!Av(J))return!1;for(let L of Cv(W)[X]??[]){try{let E=mM(L);if(!E.isFile()||E.dev!==I||E.size!==Z||process.getuid&&E.uid!==process.getuid())continue;Hp(L,K);let _=mM(K);if(_.isFile()&&_.dev===I&&_.size===Z&&(!process.getuid||_.uid===process.getuid())&&Ap(K,Z)===Y)return!0}catch{}Lp(K,{force:!0})}return!1},record(K){try{let Z=a1(K);if(Z.length>4096)return;let L=Cv(W),E=[Z,...(L[X]??[]).filter((A)=>A!==Z)].slice(0,_v);delete L[X],L[X]=E;let _=JSON.stringify(L);while(Object.keys(L).length>Pv||Buffer.byteLength(_)>Rv)delete L[Object.keys(L)[0]],_=JSON.stringify(L);if(Fp(J,{recursive:!0,mode:448}),!Av(J))return;let S=nM(W,LI.O_WRONLY|LI.O_CREAT|LI.O_NONBLOCK|(LI.O_NOFOLLOW??0),384);try{if(!qv(Tv(S)))return;Vp(S,0),Mp(S,_)}finally{lM(S)}}catch{}}}}class oM{options;constructor(J={}){this.options=J}async get(J){if(!r2(J))return null;return new Uint8Array(_p(J))}async put(J,I){Tp(rU(J),{recursive:!0});let Y=`${J}.tmp.${kQ()}`,W;try{if(this.options.sharedIndexRoot!==!1)try{W=Sv(this.options.sharedIndexRoot??i$(Z2(),"blob-index-v1"),dM(rU(J)).dev,iM(I))}catch{}if(!W?.reuse(Y,I.byteLength))jp(Y,I,{flag:"wx"});Sp(Y,J),W?.record(J)}finally{jv(Y,{force:!0})}}async exists(J){return r2(J)}async remove(J){jv(J,{force:!0,recursive:J.endsWith("/")})}async list(J){let I=[],Y=(W)=>{if(!r2(W))return;for(let X of Pp(W,{withFileTypes:!0})){let K=i$(W,X.name);if(X.isDirectory())Y(K);else if(!X.name.includes(".tmp."))I.push(K)}};return Y(J.replace(/\/$/,"")),I.sort()}async size(J){if(!r2(J))return null;return dM(J).size}async getRange(J,I,Y){if(!r2(J))return null;let W=dM(J).size,X=Math.max(0,I),K=Math.min(Y,W-1);if(K<X)return new Uint8Array(0);let Z=new Uint8Array(K-X+1),L=Rp(J,"r"),E=0;try{while(E<Z.length){let _=qp(L,Z,E,Z.length-E,X+E);if(_===0)break;E+=_}}finally{Cp(L)}return E===Z.length?Z:Z.subarray(0,E)}}function iM(J){return M1("sha256").update(J).digest("hex")}var ba=new oM;UA();var ha=new RegExp("^(?:(?: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])$"),ca=new RegExp("^(?:(?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:(?:(?: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-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::(?:(?: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-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(?::(?:[0-9a-fA-F]{1,4})){0,1}:(?:(?: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-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(?::(?:[0-9a-fA-F]{1,4})){0,2}:(?:(?: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-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(?::(?:[0-9a-fA-F]{1,4})){0,3}:(?:(?: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-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(?::(?:[0-9a-fA-F]{1,4})){0,4}:(?:(?: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-9a-fA-F]{1,4})){1,6}|:)|(?::(?:(?::(?:[0-9a-fA-F]{1,4})){0,5}:(?:(?: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-9a-fA-F]{1,4})){1,7}|:)))(?:%[0-9a-zA-Z-.:]{1,})?$");bU();var{existsSync:Ls,readFileSync:Ms,statSync:As}=(()=>({}));class Hm{buf=new Uint8Array(65536);len=0;push(J){if(this.len===this.buf.length){let I=new Uint8Array(this.buf.length*2);I.set(this.buf),this.buf=I}this.buf[this.len++]=J}copy(J,I){if(J>this.len)throw Error("inflate: distance too far back");for(let Y=0;Y<I;Y++)this.push(this.buf[this.len-J])}bytes(){return this.buf.slice(0,this.len)}}var us="0".repeat(40),hs=new Uint8Array([48,48,48,48]);var{AsyncLocalStorage:es}=(()=>({}));var{AsyncLocalStorage:Qe}=(()=>({}));var{existsSync:Ze,readFileSync:ze,statSync:Ke}=(()=>({}));var{existsSync:Ve,readFileSync:He}=(()=>({}));var{existsSync:Le}=(()=>({}));var Sm={"cache-control":"no-cache, no-store, max-age=0"},J10={...Sm,"content-type":"application/problem+json"};var Em=new Set(["amplify_video","dm_gif","dm_image","dm_video","subtitles","tweet_gif","tweet_image","tweet_video"]),x10=new Set([...Em].filter((J)=>J!=="amplify_video"));var ev=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bm=["January","February","March","April","May","June","July","August","September","October","November","December"];function WW(J,I){let Y=new Intl.DateTimeFormat("en-US",{...I?{timeZone:I}:{},year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",hourCycle:"h23"}).formatToParts(new Date(J)),W=(X)=>Number(Y.find((K)=>K.type===X)?.value??0);return{year:W("year"),month:W("month")-1,day:W("day"),hour:W("hour")%24,minute:W("minute")}}function JA(J,I,Y){if(typeof J!=="string")return"";let W=Date.parse(J);if(Number.isNaN(W))return"";let X=Math.max(0,Math.floor((I-W)/1000));if(X<60)return X<5?"now":`${X}s`;if(X<3600)return`${Math.floor(X/60)}m`;if(X<86400)return`${Math.floor(X/3600)}h`;let K=WW(W,Y),Z=`${ev[K.month]} ${K.day}`;return K.year===WW(I,Y).year?Z:`${Z}, ${K.year}`}function XA(J,I){if(typeof J!=="string")return"";let Y=Date.parse(J);if(Number.isNaN(Y))return"";let W=WW(Y,I);return`${W.hour%12===0?12:W.hour%12}:${String(W.minute).padStart(2,"0")} ${W.hour<12?"AM":"PM"} · ${ev[W.month]} ${W.day}, ${W.year}`}function $N(J,I){if(typeof J!=="string")return"";let Y=Date.parse(J);if(Number.isNaN(Y))return"";let W=WW(Y,I);return`Joined ${Bm[W.month]} ${W.year}`}function UN(J,I){let Y=new Set,W=[];for(let X of I){let K=String(X.id);if(Y.has(K)||FY(X,"replied_to")!==J)continue;Y.add(K),W.push(X)}return W.sort((X,K)=>BigInt(String(X.id))<BigInt(String(K.id))?-1:1)}function JN(J){let I=typeof J==="string"?J:"",Y=[],W=/(https?:\/\/[^\s]+|\b(?:www\.)?(?:[A-Za-z0-9-]+\.)+(?:com|org|net|dev|app|xyz)\b(?:\/[^\s]*)?|\b(?:www\.(?:[A-Za-z0-9-]+\.)+(?:ai|io|co|sh|me|so|gg|tv)\b(?:\/[^\s]*)?|(?:[A-Za-z0-9-]+\.)+(?:ai|io|co|sh|me|so|gg|tv)\/[^\s]*))|(@[A-Za-z0-9_]{1,15})|(#[\p{L}\p{N}_]+)/gu,X=0;for(let K of I.matchAll(W)){let Z=K.index??0;if((K[2]||K[3])&&Z>0&&/[A-Za-z0-9_]/.test(I[Z-1]))continue;if(Z>X)Y.push({kind:"text",value:I.slice(X,Z)});let L=K[1]?K[0].replace(/[.,;:!?\]'"]+$/,""):K[0];while(K[1]&&L.endsWith(")")&&(L.match(/\(/g)?.length??0)<(L.match(/\)/g)?.length??0))L=L.slice(0,-1).replace(/[.,;:!?\]'"]+$/,"");Y.push({kind:K[1]?"url":K[2]?"mention":"hashtag",value:L}),X=Z+L.length}if(X<I.length)Y.push({kind:"text",value:I.slice(X)});return Y}function IA(J){return/^https?:\/\//i.test(J)?J:`https://${J}`}function QA(J){let I=J.replace(/^https?:\/\/(www\.)?/,"");return I.length>30?`${I.slice(0,29)}…`:I}function XN(J){let I=String(J??"").toLowerCase(),Y=0;for(let W=0;W<I.length;W+=1)Y=(Y*31+I.charCodeAt(W))%360;return Y}function IN(J){let I=String(J?.name??J?.username??"?").trim();return(Array.from(I)[0]??"?").toUpperCase()}function YA(J){let I=new Map,Y=J?.users;if(Array.isArray(Y))for(let W of Y)I.set(String(W.id),W);return I}function GA(J){let I=new Map,Y=J?.tweets;if(Array.isArray(Y))for(let W of Y)I.set(String(W.id),W);return I}function FY(J,I){let Y=J.referenced_tweets;if(!Array.isArray(Y))return;let W=Y.find((X)=>X?.type===I);return W?String(W.id):void 0}function ZA(J){let I=new Map,Y=J?.media;if(Array.isArray(Y))for(let W of Y)I.set(String(W.media_key),W);return I}function zA(J,I){let Y=J.attachments?.media_keys;if(!Array.isArray(Y))return[];return Y.map((W)=>I.get(String(W))).filter((W)=>W!==void 0)}function QN(J){let Y=(Array.isArray(J.variants)?J.variants:[]).filter((W)=>W.content_type==="video/mp4"&&typeof W.url==="string");return Y.sort((W,X)=>Number(X.bit_rate??0)-Number(W.bit_rate??0)),Y[0]?.url}function KA(J){if(typeof J!=="number"||!Number.isFinite(J)||J<0)return"";let I=Math.round(J/1000);return`${Math.floor(I/60)}:${String(I%60).padStart(2,"0")}`}var t2="tweet.fields=created_at,author_id,conversation_id,in_reply_to_user_id,referenced_tweets&expansions=author_id,in_reply_to_user_id,referenced_tweets.id,referenced_tweets.id.author_id,attachments.media_keys&user.fields=verified,protected&media.fields=url,type,width,height,duration_ms,preview_image_url,variants",YN="user.fields=created_at,description,location,url,verified,protected,most_recent_tweet_id";var W0=t1(WA(),1),Nm=typeof document>"u"||document.querySelector("base[href]")===null?"":new URL(".",document.baseURI).pathname.replace(/\/$/,""),OA="x-mirror.handle",VA="x-mirror.token";function km(){if(typeof sessionStorage>"u")return null;let J=sessionStorage.getItem(OA),I=sessionStorage.getItem(VA);return J&&I?{handle:J,token:I}:null}async function HJ(J,I,Y){let W=await fetch(`${Nm}${I}`,{method:Y?.method??"GET",headers:{authorization:`Bearer ${J}`,...Y?.body!==void 0?{"content-type":"application/json"}:{}},...Y?.body!==void 0?{body:JSON.stringify(Y.body)}:{}}),X={};try{X=await W.json()}catch{X={}}return{status:W.status,body:X}}function DY(J){let I=J.body,Y=Array.isArray(I.errors)?I.errors[0]:void 0;return String(Y?.message??Y?.detail??I.detail??I.title??`HTTP ${J.status}`)}function GN(J){let I=J.replace(/^#\/?/,"").split("/").filter(Boolean);if(I.length===0)return null;if(I[0]==="i"&&I[1]==="flow"&&I[2]==="login")return{page:"login"};if(I[0]==="home")return{page:"home"};if(I[0]==="notifications")return{page:"notifications"};if(I[1]==="status"&&I[2])return{page:"status",handle:I[0],id:I[2]};return{page:"profile",handle:I[0],tab:I[1]==="with_replies"?"replies":"posts"}}var a2=(J)=>{location.hash=`#/${J}`};function Y6({d:J,fill:I=!1,size:Y=18,className:W}){return W0.jsxDEV("svg",{className:W,viewBox:"0 0 24 24",width:Y,height:Y,"aria-hidden":"true",fill:I?"currentColor":"none",stroke:I?"none":"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:J.map((X)=>W0.jsxDEV("path",{d:X},X,!1,void 0,this))},void 0,!1,void 0,this)}var WN=["M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"],HA=["M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"],gm=["M7.9 20A9 9 0 1 0 4 16.1L2 22Z"],xm=["m2 9 3-3 3 3","M13 18H7a2 2 0 0 1-2-2V6","m22 15-3 3-3-3","M11 6h6a2 2 0 0 1 2 2v10"],wm=["M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"],fm=["M18 20V10","M12 20V4","M6 20v-6"],ym=["m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"],bm=["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","M17 8l-5-5-5 5","M12 3v12"],um=["M3 9.5 12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z"],hm=["M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9","M10.3 21a1.94 1.94 0 0 0 3.4 0"],cm=["M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2","M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"],pm=["m12 19-7-7 7-7","M19 12H5"],mm=["M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z","M16 2v4","M8 2v4","M3 10h18"],lm=["M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z","M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"],nm=["M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71","M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"],ON=["M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2z","M7 11V7a5 5 0 0 1 10 0v4"];function LY({user:J,size:I=40}){let Y=XN(J?.username);return W0.jsxDEV("div",{className:"avatar",style:{width:I,height:I,fontSize:I*0.42,background:`hsl(${Y} 45% 38%)`},"aria-hidden":"true",children:IN(J)},void 0,!1,void 0,this)}function OW({text:J,big:I=!1}){return W0.jsxDEV("div",{className:I?"post-text post-text-big":"post-text",children:JN(J).map((Y,W)=>{if(Y.kind==="text")return W0.jsxDEV("span",{children:Y.value},W,!1,void 0,this);if(Y.kind==="url")return W0.jsxDEV("a",{className:"entity",href:IA(Y.value),target:"_blank",rel:"noreferrer",onClick:(X)=>X.stopPropagation(),children:QA(Y.value)},W,!1,void 0,this);if(Y.kind==="mention")return W0.jsxDEV("a",{className:"entity",href:`#/${Y.value.slice(1)}`,onClick:(X)=>X.stopPropagation(),children:Y.value},W,!1,void 0,this);return W0.jsxDEV("span",{className:"entity",children:Y.value},W,!1,void 0,this)})},void 0,!1,void 0,this)}function VN({user:J,children:I}){return W0.jsxDEV("div",{className:"name-line",children:[W0.jsxDEV("span",{className:"display-name",children:String(J?.name??"Unknown")},void 0,!1,void 0,this),J?.verified===!0?W0.jsxDEV(Y6,{d:HA,fill:!0,size:17,className:"badge"},void 0,!1,void 0,this):null,J?.protected===!0?W0.jsxDEV(Y6,{d:ON,size:15,className:"lock"},void 0,!1,void 0,this):null,W0.jsxDEV("span",{className:"muted handle",children:["@",String(J?.username??"unknown")]},void 0,!0,void 0,this),I]},void 0,!0,void 0,this)}function HN({big:J=!1}){return W0.jsxDEV("div",{className:J?"actions actions-big":"actions",children:[W0.jsxDEV("span",{className:"action reply",title:"Reply",children:W0.jsxDEV(Y6,{d:gm},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV("span",{className:"action repost",title:"Repost",children:W0.jsxDEV(Y6,{d:xm},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV("span",{className:"action like",title:"Like",children:W0.jsxDEV(Y6,{d:wm},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV("span",{className:"action views",title:"View post analytics",children:W0.jsxDEV(Y6,{d:fm},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV("span",{className:"action-end",children:[W0.jsxDEV("span",{className:"action",title:"Bookmark",children:W0.jsxDEV(Y6,{d:ym},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV("span",{className:"action",title:"Share post",children:W0.jsxDEV(Y6,{d:bm},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function FN({quoted:J,users:I,nowMs:Y}){let W=I.get(String(J.author_id));return W0.jsxDEV("div",{className:"quote",onClick:(X)=>{X.stopPropagation(),a2(`${W?.username??"i"}/status/${J.id}`)},children:[W0.jsxDEV("div",{className:"quote-head",children:[W0.jsxDEV(LY,{user:W,size:20},void 0,!1,void 0,this),W0.jsxDEV(VN,{user:W,children:[W0.jsxDEV("span",{className:"muted",children:"·"},void 0,!1,void 0,this),W0.jsxDEV("span",{className:"muted",children:JA(J.created_at,Y)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV(OW,{text:J.text},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function DN({media:J,big:I=!1}){if(J.length===0)return null;let Y=J.find((K)=>K.type==="video");if(Y)return W0.jsxDEV(dm,{video:Y,big:I},void 0,!1,void 0,this);let W=J.filter((K)=>K.type==="photo"&&typeof K.url==="string").slice(0,4);if(W.length===0)return null;let X=W.length===1?W[0]:void 0;return W0.jsxDEV("div",{className:`${I?"media media-big":"media"} media-${W.length}`,children:W.map((K)=>W0.jsxDEV("img",{className:"media-img",src:String(K.url),alt:"Image",loading:"lazy",style:X&&Number(K.width)>0&&Number(K.height)>0?{aspectRatio:`${K.width} / ${K.height}`}:void 0},String(K.media_key),!1,void 0,this))},void 0,!1,void 0,this)}function dm({video:J,big:I}){let[Y,W]=a$.useState(!1),X=QN(J),K=Number(J.width)>0&&Number(J.height)>0?`${J.width} / ${J.height}`:"16 / 9",Z=(L)=>{L.stopPropagation();let E=L.currentTarget.closest(".media")?.querySelector("video");W(!0),E?.play().catch(()=>{return})};return W0.jsxDEV("div",{className:I?"media media-big":"media","data-media-key":String(J.media_key),onClick:(L)=>L.stopPropagation(),children:[X?W0.jsxDEV("video",{className:"media-video",style:{aspectRatio:K},src:`${X}#t=0.001`,controls:Y,playsInline:!0,preload:"metadata"},void 0,!1,void 0,this):null,!Y&&X?W0.jsxDEV("button",{className:"media-play","aria-label":"Play",onClick:Z,children:W0.jsxDEV("svg",{viewBox:"0 0 24 24",width:"30",height:"30","aria-hidden":"true",children:W0.jsxDEV("path",{d:"M8 5v14l11-7z",fill:"currentColor"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,!Y&&KA(J.duration_ms)?W0.jsxDEV("span",{className:"media-badge",children:KA(J.duration_ms)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function LN({post:J,users:I,tweets:Y,media:W=new Map,nowMs:X}){let K=I.get(String(J.author_id)),Z=J.in_reply_to_user_id?I.get(String(J.in_reply_to_user_id)):void 0,L=FY(J,"quoted"),E=L?Y.get(L):void 0;return W0.jsxDEV("article",{className:"post-row","data-post-id":String(J.id),onClick:()=>a2(`${K?.username??"i"}/status/${J.id}`),children:[W0.jsxDEV(LY,{user:K},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"post-body",children:[W0.jsxDEV(VN,{user:K,children:[W0.jsxDEV("span",{className:"muted",children:"·"},void 0,!1,void 0,this),W0.jsxDEV("time",{className:"muted",dateTime:String(J.created_at??""),title:XA(J.created_at),children:JA(J.created_at,X)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z?W0.jsxDEV("div",{className:"muted replying",children:["Replying to ",W0.jsxDEV("span",{className:"entity",children:["@",String(Z.username)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,J.text?W0.jsxDEV(OW,{text:J.text},void 0,!1,void 0,this):null,W0.jsxDEV(DN,{media:zA(J,W)},void 0,!1,void 0,this),E?W0.jsxDEV(FN,{quoted:E,users:I,nowMs:X},void 0,!1,void 0,this):null,W0.jsxDEV(HN,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var s2={rows:[],users:new Map,tweets:new Map,media:new Map};function MN(J,I){let Y=Array.isArray(I.data)?I.data:[],W=new Map(J.users);for(let[L,E]of YA(I.includes))W.set(L,E);let X=new Map(J.tweets);for(let[L,E]of GA(I.includes))X.set(L,E);let K=new Map(J.media);for(let[L,E]of ZA(I.includes))K.set(L,E);let Z=typeof I.meta?.next_token==="string"?I.meta.next_token:void 0;return{rows:[...J.rows,...Y],users:W,tweets:X,media:K,...Z?{next:Z}:{}}}function VW({page:J,nowMs:I,empty:Y,filter:W}){let X=W?J.rows.filter(W):J.rows;if(X.length===0)return Y===null?null:W0.jsxDEV("div",{className:"empty",children:Y},void 0,!1,void 0,this);return W0.jsxDEV("div",{className:"timeline",children:X.map((K)=>W0.jsxDEV(LN,{post:K,users:J.users,tweets:J.tweets,media:J.media,nowMs:I},String(K.id),!1,void 0,this))},void 0,!1,void 0,this)}function FA(J,I,Y){let[W,X]=a$.useState(s2),[K,Z]=a$.useState(null),[L,E]=a$.useState(!1),_=a$.useCallback(async(S,A)=>{if(I===null)return;E(!0);let q=await HJ(J.token,`${I}${I.includes("?")?"&":"?"}max_results=50&${t2}${S?`&pagination_token=${encodeURIComponent(S)}`:""}`);if(E(!1),q.status!==200){Z(DY(q));return}Z(null),X(MN(A,q.body))},[I,J.token]);return a$.useEffect(()=>{X(s2),_(void 0,s2)},[_,Y]),{page:W,error:K,loading:L,more:()=>{if(W.next)_(W.next,W)}}}function DA({read:J}){if(!J.page.next)return null;return W0.jsxDEV("button",{className:"show-more",disabled:J.loading,onClick:J.more,children:"Show more posts"},void 0,!1,void 0,this)}var ZN=280;function AN({session:J,me:I,onPosted:Y,replyTo:W}){let[X,K]=a$.useState(""),[Z,L]=a$.useState(null),[E,_]=a$.useState(!1),S=Array.from(X).length,A=ZN-S,q=async()=>{if(X.trim()===""||E)return;_(!0);let N=W?{text:X,reply:{in_reply_to_tweet_id:W.id}}:{text:X},f=await HJ(J.token,"/2/tweets",{method:"POST",body:N});if(_(!1),f.status!==201&&f.status!==200){L(DY(f));return}L(null),K(""),Y(String(f.body.data?.id??""))},B=Math.min(1,S/ZN);return W0.jsxDEV("div",{className:W?"composer composer-reply":"composer",children:[W0.jsxDEV(LY,{user:I??{username:J.handle}},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"composer-body",children:[W?W0.jsxDEV("div",{className:"muted replying",children:["Replying to ",W0.jsxDEV("span",{className:"entity",children:["@",W.handle]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,W0.jsxDEV("textarea",{className:"composer-input",placeholder:W?"Post your reply":"What is happening?!",value:X,rows:W?1:2,onChange:(N)=>K(N.target.value),onKeyDown:(N)=>{if(N.key==="Enter"&&(N.metaKey||N.ctrlKey))q()}},void 0,!1,void 0,this),Z?W0.jsxDEV("div",{className:"composer-error",role:"alert",children:Z},void 0,!1,void 0,this):null,W0.jsxDEV("div",{className:"composer-bar",children:[W0.jsxDEV("span",{className:"composer-reach",children:W?"":"Everyone can reply"},void 0,!1,void 0,this),W0.jsxDEV("span",{className:"composer-right",children:[S>0?W0.jsxDEV("span",{className:A<0?"counter over":A<=20?"counter warn":"counter",children:[W0.jsxDEV("svg",{viewBox:"0 0 20 20",width:"20",height:"20","aria-hidden":"true",children:[W0.jsxDEV("circle",{cx:"10",cy:"10",r:"8",fill:"none",stroke:"#2f3336",strokeWidth:"2"},void 0,!1,void 0,this),W0.jsxDEV("circle",{cx:"10",cy:"10",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:`${B*50.27} 50.27`,transform:"rotate(-90 10 10)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A<=20?W0.jsxDEV("span",{className:"counter-num",children:A},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,W0.jsxDEV("button",{className:"btn-post",disabled:X.trim()===""||E,onClick:()=>void q(),children:W?"Reply":"Post"},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)}function TI({title:J,sub:I,back:Y}){return W0.jsxDEV("div",{className:"col-header",children:[Y?W0.jsxDEV("button",{className:"back","aria-label":"Back",onClick:()=>history.back(),children:W0.jsxDEV(Y6,{d:pm,size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,W0.jsxDEV("div",{children:[W0.jsxDEV("div",{className:"col-title",children:J},void 0,!1,void 0,this),I?W0.jsxDEV("div",{className:"muted col-sub",children:I},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function om({user:J}){return W0.jsxDEV("div",{className:"profile",children:[W0.jsxDEV("div",{className:"banner"},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"profile-top",children:W0.jsxDEV("div",{className:"profile-avatar",children:W0.jsxDEV(LY,{user:J,size:134},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"profile-info",children:[W0.jsxDEV("div",{className:"profile-name",children:[W0.jsxDEV("span",{children:String(J.name??"")},void 0,!1,void 0,this),J.verified===!0?W0.jsxDEV(Y6,{d:HA,fill:!0,size:22,className:"badge"},void 0,!1,void 0,this):null,J.protected===!0?W0.jsxDEV(Y6,{d:ON,size:18,className:"lock"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"muted profile-handle",children:["@",String(J.username??"")]},void 0,!0,void 0,this),typeof J.description==="string"&&J.description!==""?W0.jsxDEV("div",{className:"profile-bio",children:W0.jsxDEV(OW,{text:J.description},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,W0.jsxDEV("div",{className:"muted profile-meta",children:[typeof J.location==="string"&&J.location!==""?W0.jsxDEV("span",{children:[W0.jsxDEV(Y6,{d:lm,size:16},void 0,!1,void 0,this),J.location]},void 0,!0,void 0,this):null,typeof J.url==="string"&&J.url!==""?W0.jsxDEV("span",{children:[W0.jsxDEV(Y6,{d:nm,size:16},void 0,!1,void 0,this),W0.jsxDEV("a",{className:"entity",href:IA(J.url),target:"_blank",rel:"noreferrer",children:QA(J.url)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J.created_at?W0.jsxDEV("span",{children:[W0.jsxDEV(Y6,{d:mm,size:16},void 0,!1,void 0,this),$N(J.created_at)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function im({session:J,handle:I,tab:Y,nowMs:W,reloadKey:X}){let[K,Z]=a$.useState(null),[L,E]=a$.useState(null);a$.useEffect(()=>{Z(null),E(null),HJ(J.token,`/2/users/by/username/${encodeURIComponent(I)}?${YN}`).then((A)=>{if(A.status===200&&A.body.data)Z(A.body.data);else E(A.status===200?"This account doesn’t exist":DY(A))})},[I,J.token,X]);let _=FA(J,K?`/2/users/${K.id}/tweets`:null,X);if(L)return W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV(TI,{title:I,back:!0},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"empty",children:[W0.jsxDEV("div",{className:"empty-title",children:L},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"muted",children:"Try searching for another."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!K)return W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV(TI,{title:I,back:!0},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"loading"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let S=(A)=>FY(A,"replied_to")!==void 0;return W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV(TI,{title:String(K.name??I),sub:`${_.page.rows.length}${_.page.next?"+":""} ${_.page.rows.length===1&&!_.page.next?"post":"posts"}`,back:!0},void 0,!1,void 0,this),W0.jsxDEV(om,{user:K},void 0,!1,void 0,this),W0.jsxDEV("nav",{className:"tabs",children:[W0.jsxDEV("a",{className:Y==="posts"?"tab active":"tab",href:`#/${K.username}`,children:"Posts"},void 0,!1,void 0,this),W0.jsxDEV("a",{className:Y==="replies"?"tab active":"tab",href:`#/${K.username}/with_replies`,children:"Replies"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_.error?W0.jsxDEV("div",{className:"empty",children:_.error},void 0,!1,void 0,this):null,W0.jsxDEV(VW,{page:_.page,nowMs:W,filter:Y==="posts"?(A)=>!S(A):void 0,empty:W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV("div",{className:"empty-title",children:`@${K.username} hasn’t posted`},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"muted",children:"When they do, their posts will show up here."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV(DA,{read:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function rm(J,I,Y,W){let[X,K]=a$.useState(s2);return a$.useEffect(()=>{if(!I)return;let Z=!0;return Promise.all([HJ(J.token,`/2/users/${I.id}/tweets?max_results=100&${t2}`),HJ(J.token,`/2/users/${I.id}/mentions?max_results=100&${t2}`)]).then(([L,E])=>{if(!Z)return;let _=[L,E].reduce((S,A)=>A.status===200?MN(S,A.body):S,s2);K({rows:UN(Y,_.rows),users:_.users,tweets:_.tweets,media:_.media})}),()=>{Z=!1}},[J.token,I,Y,W]),X}function tm({session:J,me:I,id:Y,nowMs:W,reloadKey:X,onPosted:K}){let[Z,L]=a$.useState(null);a$.useEffect(()=>{L(null),HJ(J.token,`/2/tweets/${encodeURIComponent(Y)}?${t2}`).then(L)},[Y,J.token,X]);let E=rm(J,I,Y,X);if(Z===null)return W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV(TI,{title:"Post",back:!0},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"loading"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let _=Z.body.data;if(Z.status!==200||!_)return W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV(TI,{title:"Post",back:!0},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"empty",children:[W0.jsxDEV("div",{className:"empty-title",children:"Hmm...this page doesn’t exist."},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"muted",children:DY(Z)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);let S=YA(Z.body.includes),A=GA(Z.body.includes),q=ZA(Z.body.includes),B=S.get(String(_.author_id)),N=FY(_,"replied_to"),f=N?A.get(N):void 0,w=FY(_,"quoted"),u=w?A.get(w):void 0;return W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV(TI,{title:"Post",back:!0},void 0,!1,void 0,this),f?W0.jsxDEV(LN,{post:f,users:S,tweets:A,media:q,nowMs:W},void 0,!1,void 0,this):null,W0.jsxDEV("article",{className:"status","data-post-id":String(_.id),children:[W0.jsxDEV("div",{className:"status-head",children:[W0.jsxDEV(LY,{user:B},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"status-names",children:[W0.jsxDEV("div",{className:"name-line",children:[W0.jsxDEV("span",{className:"display-name",children:String(B?.name??"Unknown")},void 0,!1,void 0,this),B?.verified===!0?W0.jsxDEV(Y6,{d:HA,fill:!0,size:17,className:"badge"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"muted",children:["@",String(B?.username??"unknown")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_.in_reply_to_user_id&&S.get(String(_.in_reply_to_user_id))?W0.jsxDEV("div",{className:"muted replying",children:["Replying to ",W0.jsxDEV("span",{className:"entity",children:["@",String(S.get(String(_.in_reply_to_user_id)).username)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,_.text?W0.jsxDEV(OW,{text:_.text,big:!0},void 0,!1,void 0,this):null,W0.jsxDEV(DN,{media:zA(_,q),big:!0},void 0,!1,void 0,this),u?W0.jsxDEV(FN,{quoted:u,users:S,nowMs:W},void 0,!1,void 0,this):null,W0.jsxDEV("div",{className:"muted status-time",children:W0.jsxDEV("time",{dateTime:String(_.created_at??""),children:XA(_.created_at)},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV(HN,{big:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV(AN,{session:J,me:I,onPosted:K,replyTo:{id:String(_.id),handle:String(B?.username??"")}},void 0,!1,void 0,this),W0.jsxDEV(VW,{page:E,nowMs:W,empty:null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function am({session:J,me:I,nowMs:Y,reloadKey:W,onPosted:X}){let K=FA(J,I?`/2/users/${I.id}/timelines/reverse_chronological`:null,W);return W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV("nav",{className:"tabs tabs-top",children:W0.jsxDEV("span",{className:"tab active",children:"Following"},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV(AN,{session:J,me:I,onPosted:X},void 0,!1,void 0,this),K.error?W0.jsxDEV("div",{className:"empty",children:K.error},void 0,!1,void 0,this):null,W0.jsxDEV(VW,{page:K.page,nowMs:Y,empty:W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV("div",{className:"empty-title",children:"Welcome to X!"},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"muted",children:"Posts from you and the accounts you follow show up here."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV(DA,{read:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sm({session:J,me:I,nowMs:Y,reloadKey:W}){let X=FA(J,I?`/2/users/${I.id}/mentions`:null,W);return W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV(TI,{title:"Notifications"},void 0,!1,void 0,this),W0.jsxDEV("nav",{className:"tabs",children:W0.jsxDEV("span",{className:"tab active",children:"Mentions"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X.error?W0.jsxDEV("div",{className:"empty",children:X.error},void 0,!1,void 0,this):null,W0.jsxDEV(VW,{page:X.page,nowMs:Y,empty:W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV("div",{className:"empty-title",children:"Nothing to see here — yet"},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"muted",children:"When someone mentions you, you’ll find it here."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV(DA,{read:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function em({onSignedIn:J}){let[I,Y]=a$.useState("handle"),[W,X]=a$.useState(""),[K,Z]=a$.useState(""),[L,E]=a$.useState(null),[_,S]=a$.useState(!1),A=W.trim().replace(/^@/,""),q=()=>{if(!/^[A-Za-z0-9_]{1,15}$/.test(A)){E("Sorry, we could not find your account.");return}E(null),Y("token")},B=async()=>{S(!0);let N=await HJ(K.trim(),`/2/users/by/username/${encodeURIComponent(A)}`);if(N.status===401){S(!1),E("Wrong token!");return}if(N.status!==200||!N.body.data){S(!1),E(N.status===200?"Sorry, we could not find your account.":DY(N));return}let f=N.body.data,w=await HJ(K.trim(),`/2/users/${f.id}/timelines/reverse_chronological?max_results=5`);if(S(!1),w.status===403){E(`That token does not sign in as @${f.username}.`);return}if(w.status!==200){E(DY(w));return}J({handle:String(f.username),token:K.trim()},f)};return W0.jsxDEV("div",{className:"login-backdrop",children:W0.jsxDEV("div",{className:"login",children:[W0.jsxDEV("div",{className:"login-logo",children:W0.jsxDEV(Y6,{d:WN,fill:!0,size:32},void 0,!1,void 0,this)},void 0,!1,void 0,this),I==="handle"?W0.jsxDEV("form",{className:"login-form",onSubmit:(N)=>{N.preventDefault(),q()},children:[W0.jsxDEV("h1",{children:"Sign in to X"},void 0,!1,void 0,this),W0.jsxDEV("label",{className:"field",children:[W0.jsxDEV("span",{children:"Phone, email, or username"},void 0,!1,void 0,this),W0.jsxDEV("input",{autoFocus:!0,name:"handle",value:W,onChange:(N)=>X(N.target.value),autoComplete:"username"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L?W0.jsxDEV("div",{className:"login-error",role:"alert",children:L},void 0,!1,void 0,this):null,W0.jsxDEV("button",{className:"btn-white",type:"submit",disabled:A==="",children:"Next"},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"muted login-note",children:["This twin signs you in with the access token it issued for the account (",W0.jsxDEV("code",{children:"/_twin/tokens"},void 0,!1,void 0,this),"), in place of a password."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):W0.jsxDEV("form",{className:"login-form",onSubmit:(N)=>{N.preventDefault(),B()},children:[W0.jsxDEV("h1",{children:"Enter your password"},void 0,!1,void 0,this),W0.jsxDEV("label",{className:"field field-disabled",children:[W0.jsxDEV("span",{children:"Username"},void 0,!1,void 0,this),W0.jsxDEV("input",{value:`@${A}`,disabled:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("label",{className:"field",children:[W0.jsxDEV("span",{children:"Access token"},void 0,!1,void 0,this),W0.jsxDEV("input",{autoFocus:!0,name:"token",type:"password",value:K,onChange:(N)=>Z(N.target.value),autoComplete:"current-password"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L?W0.jsxDEV("div",{className:"login-error",role:"alert",children:L},void 0,!1,void 0,this):null,W0.jsxDEV("button",{className:"btn-white",type:"submit",disabled:K.trim()===""||_,children:"Log in"},void 0,!1,void 0,this),W0.jsxDEV("button",{className:"btn-link",type:"button",onClick:()=>{Y("handle"),E(null)},children:"Use another account"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function $l(){let[J,I]=a$.useState(km),[Y,W]=a$.useState(null),[X,K]=a$.useState(()=>GN(typeof location>"u"?"":location.hash)),[Z,L]=a$.useState(0),[E,_]=a$.useState(null),[S,A]=a$.useState(()=>Date.now());a$.useEffect(()=>{let b=()=>{K(GN(location.hash)),A(Date.now()),window.scrollTo(0,0)},p=(n)=>{let a=n.target?.closest?.('a[href^="#/"]');if(!a||n.defaultPrevented||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey)return;n.preventDefault(),location.hash=a.getAttribute("href")};return window.addEventListener("hashchange",b),document.addEventListener("click",p,!0),()=>{window.removeEventListener("hashchange",b),document.removeEventListener("click",p,!0)}},[]),a$.useEffect(()=>{let b=setInterval(()=>A(Date.now()),30000);return()=>clearInterval(b)},[]),a$.useEffect(()=>{if(!J){W(null);return}HJ(J.token,`/2/users/by/username/${encodeURIComponent(J.handle)}?user.fields=verified,protected`).then((b)=>{if(b.status===200&&b.body.data)W(b.body.data);else if(b.status===401)B()})},[J]);let q=(b,p)=>{sessionStorage.setItem(OA,b.handle),sessionStorage.setItem(VA,b.token),W(p),I(b),a2(b.handle)},B=()=>{sessionStorage.removeItem(OA),sessionStorage.removeItem(VA),I(null),W(null),a2("i/flow/login")},N=(b)=>{L((p)=>p+1),A(Date.now()),_({id:b}),setTimeout(()=>_(null),6000)};if(!J||X?.page==="login")return W0.jsxDEV(em,{onSignedIn:q},void 0,!1,void 0,this);let f=X??{page:"profile",handle:J.handle,tab:"posts"},w=Y?.username?String(Y.username):J.handle,u;if(f.page==="home")u=W0.jsxDEV(am,{session:J,me:Y,nowMs:S,reloadKey:Z,onPosted:N},void 0,!1,void 0,this);else if(f.page==="notifications")u=W0.jsxDEV(sm,{session:J,me:Y,nowMs:S,reloadKey:Z},void 0,!1,void 0,this);else if(f.page==="status")u=W0.jsxDEV(tm,{session:J,me:Y,id:f.id,nowMs:S,reloadKey:Z,onPosted:N},void 0,!1,void 0,this);else u=W0.jsxDEV(im,{session:J,handle:f.page==="profile"?f.handle:w,tab:f.page==="profile"?f.tab:"posts",nowMs:S,reloadKey:Z},void 0,!1,void 0,this);let g=f.page==="profile"&&f.handle.toLowerCase()===w.toLowerCase();return W0.jsxDEV("div",{className:"layout",children:[W0.jsxDEV("header",{className:"sidenav",children:[W0.jsxDEV("a",{className:"nav-logo",href:"#/home","aria-label":"X",children:W0.jsxDEV(Y6,{d:WN,fill:!0,size:30},void 0,!1,void 0,this)},void 0,!1,void 0,this),W0.jsxDEV("a",{className:f.page==="home"?"nav-item active":"nav-item",href:"#/home",children:[W0.jsxDEV(Y6,{d:um,size:26},void 0,!1,void 0,this),W0.jsxDEV("span",{children:"Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("a",{className:f.page==="notifications"?"nav-item active":"nav-item",href:"#/notifications",children:[W0.jsxDEV(Y6,{d:hm,size:26},void 0,!1,void 0,this),W0.jsxDEV("span",{children:"Notifications"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("a",{className:g?"nav-item active":"nav-item",href:`#/${w}`,children:[W0.jsxDEV(Y6,{d:cm,size:26},void 0,!1,void 0,this),W0.jsxDEV("span",{children:"Profile"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("button",{className:"btn-nav-post",onClick:()=>a2("home"),children:"Post"},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"nav-account",title:"Log out",onClick:B,children:[W0.jsxDEV(LY,{user:Y??{username:J.handle}},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"nav-account-names",children:[W0.jsxDEV("div",{className:"display-name",children:String(Y?.name??J.handle)},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"muted",children:["@",w]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("span",{className:"muted nav-logout",children:"Log out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("main",{className:"column",children:u},void 0,!1,void 0,this),W0.jsxDEV("aside",{className:"rail"},void 0,!1,void 0,this),E?W0.jsxDEV("div",{className:"toast",role:"status",children:[W0.jsxDEV("span",{children:"Your post was sent."},void 0,!1,void 0,this),E.id?W0.jsxDEV("a",{href:`#/${w}/status/${E.id}`,children:"View"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}var zN=typeof document<"u"?document.getElementById("root"):null;if(zN)KN.createRoot(zN).render(W0.jsxDEV($l,{},void 0,!1,void 0,this));export{VW as Timeline,om as ProfileHeader,OW as PostText,LN as PostRow,DN as MediaBlock,LY as Avatar};
|