rmapi-js 13.0.0 → 14.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/README.md +14 -0
- package/dist/codes.d.ts +35 -0
- package/dist/codes.js +61 -0
- package/dist/index.d.ts +77 -2
- package/dist/index.js +160 -2
- package/dist/raw.d.ts +15 -1
- package/dist/raw.js +49 -33
- package/dist/rm5.d.ts +6 -30
- package/dist/rm5.js +3 -43
- package/dist/rm6.d.ts +7 -6
- package/dist/rm6.js +4 -3
- package/dist/rmapi-js.esm.min.js +85 -12
- package/package.json +7 -7
package/dist/rmapi-js.esm.min.js
CHANGED
|
@@ -1,13 +1,86 @@
|
|
|
1
|
-
var NB=Object.create;var{getPrototypeOf:DB,defineProperty:o6,getOwnPropertyNames:SJ,getOwnPropertyDescriptor:CB}=Object,ZJ=Object.prototype.hasOwnProperty;function vJ(Q){return this[Q]}var OB,PB,X1=(Q,J,$)=>{var q=Q!=null&&typeof Q==="object";if(q){var X=J?OB??=new WeakMap:PB??=new WeakMap,Y=X.get(Q);if(Y)return Y}$=Q!=null?NB(DB(Q)):{};let W=J||!Q||!Q.__esModule?o6($,"default",{value:Q,enumerable:!0}):$;for(let U of SJ(Q))if(!ZJ.call(W,U))o6(W,U,{get:vJ.bind(Q,U),enumerable:!0});if(q)X.set(Q,W);return W},B2=(Q)=>{var J=(IJ??=new WeakMap).get(Q),$;if(J)return J;if(J=o6({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function"){for(var q of SJ(Q))if(!ZJ.call(J,q))o6(J,q,{get:vJ.bind(Q,q),enumerable:!($=CB(Q,q))||$.enumerable})}return IJ.set(Q,J),J},IJ,f=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var AB=(Q)=>Q;function RB(Q,J){this[Q]=AB.bind(null,J)}var O4=(Q,J)=>{for(var $ in J)o6(Q,$,{get:J[$],enumerable:!0,configurable:!0,set:RB.bind(J,$)})};var EJ=(Q,J)=>()=>(Q&&(J=Q(Q=0)),J);var wB=Symbol.dispose||Symbol.for("Symbol.dispose"),IB=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),_0=(Q,J,$)=>{if(J!=null){if(typeof J!=="object"&&typeof J!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var q;if($)q=J[IB];if(q===void 0)q=J[wB];if(typeof q!=="function")throw TypeError("Object not disposable");Q.push([$,q,J])}else if($)Q.push([$]);return J},$2=(Q,J,$)=>{var q=typeof SuppressedError==="function"?SuppressedError:function(W,U,G,B){return B=Error(G),B.name="SuppressedError",B.error=W,B.suppressed=U,B},X=(W)=>J=$?new q(W,J,"An error was suppressed during disposal"):($=!0,W),Y=(W)=>{while(W=Q.pop())try{var U=W[1]&&W[1].call(W[2]);if(W[0])return Promise.resolve(U).then(Y,(G)=>(X(G),Y()))}catch(G){X(G)}if($)throw J};return Y()};var l2={};O4(l2,{transcode:()=>VK,resolveObjectURL:()=>GK,kStringMaxLength:()=>bJ,kMaxLength:()=>r6,isUtf8:()=>BK,isAscii:()=>KK,default:()=>HK,constants:()=>fB,btoa:()=>TB,atob:()=>xB,INSPECT_MAX_BYTES:()=>hJ,File:()=>gB,Buffer:()=>b,Blob:()=>_B});function SB(Q){var J=Q.length;if(J%4>0)throw Error("Invalid string. Length must be a multiple of 4");var $=Q.indexOf("=");if($===-1)$=J;var q=$===J?0:4-$%4;return[$,q]}function ZB(Q,J){return(Q+J)*3/4-J}function vB(Q){var J,$=SB(Q),q=$[0],X=$[1],Y=new Uint8Array(ZB(q,X)),W=0,U=X>0?q-4:q,G;for(G=0;G<U;G+=4)J=K2[Q.charCodeAt(G)]<<18|K2[Q.charCodeAt(G+1)]<<12|K2[Q.charCodeAt(G+2)]<<6|K2[Q.charCodeAt(G+3)],Y[W++]=J>>16&255,Y[W++]=J>>8&255,Y[W++]=J&255;if(X===2)J=K2[Q.charCodeAt(G)]<<2|K2[Q.charCodeAt(G+1)]>>4,Y[W++]=J&255;if(X===1)J=K2[Q.charCodeAt(G)]<<10|K2[Q.charCodeAt(G+1)]<<4|K2[Q.charCodeAt(G+2)]>>2,Y[W++]=J>>8&255,Y[W++]=J&255;return Y}function EB(Q){return S2[Q>>18&63]+S2[Q>>12&63]+S2[Q>>6&63]+S2[Q&63]}function kB(Q,J,$){var q,X=[];for(var Y=J;Y<$;Y+=3)q=(Q[Y]<<16&16711680)+(Q[Y+1]<<8&65280)+(Q[Y+2]&255),X.push(EB(q));return X.join("")}function TJ(Q){var J,$=Q.length,q=$%3,X=[],Y=16383;for(var W=0,U=$-q;W<U;W+=Y)X.push(kB(Q,W,W+Y>U?U:W+Y));if(q===1)J=Q[$-1],X.push(S2[J>>2]+S2[J<<4&63]+"==");else if(q===2)J=(Q[$-2]<<8)+Q[$-1],X.push(S2[J>>10]+S2[J>>4&63]+S2[J<<2&63]+"=");return X.join("")}function c8(Q,J,$,q,X){var Y,W,U=X*8-q-1,G=(1<<U)-1,B=G>>1,K=-7,j=$?X-1:0,F=$?-1:1,H=Q[J+j];j+=F,Y=H&(1<<-K)-1,H>>=-K,K+=U;for(;K>0;Y=Y*256+Q[J+j],j+=F,K-=8);W=Y&(1<<-K)-1,Y>>=-K,K+=q;for(;K>0;W=W*256+Q[J+j],j+=F,K-=8);if(Y===0)Y=1-B;else if(Y===G)return W?NaN:(H?-1:1)*(1/0);else W=W+Math.pow(2,q),Y=Y-B;return(H?-1:1)*W*Math.pow(2,Y-q)}function yJ(Q,J,$,q,X,Y){var W,U,G,B=Y*8-X-1,K=(1<<B)-1,j=K>>1,F=X===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=q?0:Y-1,E=q?1:-1,g=J<0||J===0&&1/J<0?1:0;if(J=Math.abs(J),isNaN(J)||J===1/0)U=isNaN(J)?1:0,W=K;else{if(W=Math.floor(Math.log(J)/Math.LN2),J*(G=Math.pow(2,-W))<1)W--,G*=2;if(W+j>=1)J+=F/G;else J+=F*Math.pow(2,1-j);if(J*G>=2)W++,G/=2;if(W+j>=K)U=0,W=K;else if(W+j>=1)U=(J*G-1)*Math.pow(2,X),W=W+j;else U=J*Math.pow(2,j-1)*Math.pow(2,X),W=0}for(;X>=8;Q[$+H]=U&255,H+=E,U/=256,X-=8);W=W<<X|U,B+=X;for(;B>0;Q[$+H]=W&255,H+=E,W/=256,B-=8);Q[$+H-E]|=g*128}function p2(Q){if(Q>r6)throw RangeError('The value "'+Q+'" is invalid for option "size"');let J=new Uint8Array(Q);return Object.setPrototypeOf(J,b.prototype),J}function S4(Q,J,$){return class extends ${constructor(){super();Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function b(Q,J,$){if(typeof Q==="number"){if(typeof J==="string")throw TypeError('The "string" argument must be of type string. Received type number');return Z4(Q)}return mJ(Q,J,$)}function mJ(Q,J,$){if(typeof Q==="string")return mB(Q,J);if(ArrayBuffer.isView(Q))return uB(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(Z2(Q,ArrayBuffer)||Q&&Z2(Q.buffer,ArrayBuffer))return w4(Q,J,$);if(typeof SharedArrayBuffer<"u"&&(Z2(Q,SharedArrayBuffer)||Q&&Z2(Q.buffer,SharedArrayBuffer)))return w4(Q,J,$);if(typeof Q==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let q=Q.valueOf&&Q.valueOf();if(q!=null&&q!==Q)return b.from(q,J,$);let X=cB(Q);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return b.from(Q[Symbol.toPrimitive]("string"),J,$);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function uJ(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function bB(Q,J,$){if(uJ(Q),Q<=0)return p2(Q);if(J!==void 0)return typeof $==="string"?p2(Q).fill(J,$):p2(Q).fill(J);return p2(Q)}function Z4(Q){return uJ(Q),p2(Q<0?0:v4(Q)|0)}function mB(Q,J){if(typeof J!=="string"||J==="")J="utf8";if(!b.isEncoding(J))throw TypeError("Unknown encoding: "+J);let $=cJ(Q,J)|0,q=p2($),X=q.write(Q,J);if(X!==$)q=q.slice(0,X);return q}function R4(Q){let J=Q.length<0?0:v4(Q.length)|0,$=p2(J);for(let q=0;q<J;q+=1)$[q]=Q[q]&255;return $}function uB(Q){if(Z2(Q,Uint8Array)){let J=new Uint8Array(Q);return w4(J.buffer,J.byteOffset,J.byteLength)}return R4(Q)}function w4(Q,J,$){if(J<0||Q.byteLength<J)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<J+($||0))throw RangeError('"length" is outside of buffer bounds');let q;if(J===void 0&&$===void 0)q=new Uint8Array(Q);else if($===void 0)q=new Uint8Array(Q,J);else q=new Uint8Array(Q,J,$);return Object.setPrototypeOf(q,b.prototype),q}function cB(Q){if(b.isBuffer(Q)){let J=v4(Q.length)|0,$=p2(J);if($.length===0)return $;return Q.copy($,0,0,J),$}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return p2(0);return R4(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return R4(Q.data)}function v4(Q){if(Q>=r6)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r6.toString(16)+" bytes");return Q|0}function cJ(Q,J){if(b.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||Z2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let $=Q.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&$===0)return 0;let X=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return I4(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return sJ(Q).length;default:if(X)return q?-1:I4(Q).length;J=(""+J).toLowerCase(),X=!0}}function pB(Q,J,$){let q=!1;if(J===void 0||J<0)J=0;if(J>this.length)return"";if($===void 0||$>this.length)$=this.length;if($<=0)return"";if($>>>=0,J>>>=0,$<=J)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return eB(this,J,$);case"utf8":case"utf-8":return lJ(this,J,$);case"ascii":return sB(this,J,$);case"latin1":case"binary":return tB(this,J,$);case"base64":return rB(this,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return QK(this,J,$);default:if(q)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),q=!0}}function T1(Q,J,$){let q=Q[J];Q[J]=Q[$],Q[$]=q}function pJ(Q,J,$,q,X){if(Q.length===0)return-1;if(typeof $==="string")q=$,$=0;else if($>2147483647)$=2147483647;else if($<-2147483648)$=-2147483648;if($=+$,Number.isNaN($))$=X?0:Q.length-1;if($<0)$=Q.length+$;if($>=Q.length)if(X)return-1;else $=Q.length-1;else if($<0)if(X)$=0;else return-1;if(typeof J==="string")J=b.from(J,q);if(b.isBuffer(J)){if(J.length===0)return-1;return gJ(Q,J,$,q,X)}else if(typeof J==="number"){if(J=J&255,typeof Uint8Array.prototype.indexOf==="function")if(X)return Uint8Array.prototype.indexOf.call(Q,J,$);else return Uint8Array.prototype.lastIndexOf.call(Q,J,$);return gJ(Q,[J],$,q,X)}throw TypeError("val must be string, number or Buffer")}function gJ(Q,J,$,q,X){let Y=1,W=Q.length,U=J.length;if(q!==void 0){if(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le"){if(Q.length<2||J.length<2)return-1;Y=2,W/=2,U/=2,$/=2}}function G(K,j){if(Y===1)return K[j];else return K.readUInt16BE(j*Y)}let B;if(X){let K=-1;for(B=$;B<W;B++)if(G(Q,B)===G(J,K===-1?0:B-K)){if(K===-1)K=B;if(B-K+1===U)return K*Y}else{if(K!==-1)B-=B-K;K=-1}}else{if($+U>W)$=W-U;for(B=$;B>=0;B--){let K=!0;for(let j=0;j<U;j++)if(G(Q,B+j)!==G(J,j)){K=!1;break}if(K)return B}}return-1}function lB(Q,J,$,q){$=Number($)||0;let X=Q.length-$;if(!q)q=X;else if(q=Number(q),q>X)q=X;let Y=J.length;if(q>Y/2)q=Y/2;let W;for(W=0;W<q;++W){let U=parseInt(J.substr(W*2,2),16);if(Number.isNaN(U))return W;Q[$+W]=U}return W}function dB(Q,J,$,q){return p8(I4(J,Q.length-$),Q,$,q)}function iB(Q,J,$,q){return p8(XK(J),Q,$,q)}function nB(Q,J,$,q){return p8(sJ(J),Q,$,q)}function oB(Q,J,$,q){return p8(YK(J,Q.length-$),Q,$,q)}function rB(Q,J,$){if(J===0&&$===Q.length)return TJ(Q);else return TJ(Q.slice(J,$))}function lJ(Q,J,$){$=Math.min(Q.length,$);let q=[],X=J;while(X<$){let Y=Q[X],W=null,U=Y>239?4:Y>223?3:Y>191?2:1;if(X+U<=$){let G,B,K,j;switch(U){case 1:if(Y<128)W=Y;break;case 2:if(G=Q[X+1],(G&192)===128){if(j=(Y&31)<<6|G&63,j>127)W=j}break;case 3:if(G=Q[X+1],B=Q[X+2],(G&192)===128&&(B&192)===128){if(j=(Y&15)<<12|(G&63)<<6|B&63,j>2047&&(j<55296||j>57343))W=j}break;case 4:if(G=Q[X+1],B=Q[X+2],K=Q[X+3],(G&192)===128&&(B&192)===128&&(K&192)===128){if(j=(Y&15)<<18|(G&63)<<12|(B&63)<<6|K&63,j>65535&&j<1114112)W=j}}}if(W===null)W=65533,U=1;else if(W>65535)W-=65536,q.push(W>>>10&1023|55296),W=56320|W&1023;q.push(W),X+=U}return aB(q)}function aB(Q){let J=Q.length;if(J<=_J)return String.fromCharCode.apply(String,Q);let $="",q=0;while(q<J)$+=String.fromCharCode.apply(String,Q.slice(q,q+=_J));return $}function sB(Q,J,$){let q="";$=Math.min(Q.length,$);for(let X=J;X<$;++X)q+=String.fromCharCode(Q[X]&127);return q}function tB(Q,J,$){let q="";$=Math.min(Q.length,$);for(let X=J;X<$;++X)q+=String.fromCharCode(Q[X]);return q}function eB(Q,J,$){let q=Q.length;if(!J||J<0)J=0;if(!$||$<0||$>q)$=q;let X="";for(let Y=J;Y<$;++Y)X+=WK[Q[Y]];return X}function QK(Q,J,$){let q=Q.slice(J,$),X="";for(let Y=0;Y<q.length-1;Y+=2)X+=String.fromCharCode(q[Y]+q[Y+1]*256);return X}function b0(Q,J,$){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+J>$)throw RangeError("Trying to access beyond buffer length")}function t0(Q,J,$,q,X,Y){if(!b.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(J>X||J<Y)throw RangeError('"value" argument is out of bounds');if($+q>Q.length)throw RangeError("Index out of range")}function dJ(Q,J,$,q,X){aJ(J,q,X,Q,$,7);let Y=Number(J&BigInt(4294967295));Q[$++]=Y,Y=Y>>8,Q[$++]=Y,Y=Y>>8,Q[$++]=Y,Y=Y>>8,Q[$++]=Y;let W=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$++]=W,W=W>>8,Q[$++]=W,W=W>>8,Q[$++]=W,W=W>>8,Q[$++]=W,$}function iJ(Q,J,$,q,X){aJ(J,q,X,Q,$,7);let Y=Number(J&BigInt(4294967295));Q[$+7]=Y,Y=Y>>8,Q[$+6]=Y,Y=Y>>8,Q[$+5]=Y,Y=Y>>8,Q[$+4]=Y;let W=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$+3]=W,W=W>>8,Q[$+2]=W,W=W>>8,Q[$+1]=W,W=W>>8,Q[$]=W,$+8}function nJ(Q,J,$,q,X,Y){if($+q>Q.length)throw RangeError("Index out of range");if($<0)throw RangeError("Index out of range")}function oJ(Q,J,$,q,X){if(J=+J,$=$>>>0,!X)nJ(Q,J,$,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return yJ(Q,J,$,q,23,4),$+4}function rJ(Q,J,$,q,X){if(J=+J,$=$>>>0,!X)nJ(Q,J,$,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return yJ(Q,J,$,q,52,8),$+8}function fJ(Q){let J="",$=Q.length,q=Q[0]==="-"?1:0;for(;$>=q+4;$-=3)J=`_${Q.slice($-3,$)}${J}`;return`${Q.slice(0,$)}${J}`}function JK(Q,J,$){if(Y6(J,"offset"),Q[J]===void 0||Q[J+$]===void 0)a6(J,Q.length-($+1))}function aJ(Q,J,$,q,X,Y){if(Q>$||Q<J){let W=typeof J==="bigint"?"n":"",U;if(Y>3)if(J===0||J===BigInt(0))U=`>= 0${W} and < 2${W} ** ${(Y+1)*8}${W}`;else U=`>= -(2${W} ** ${(Y+1)*8-1}${W}) and < 2 ** ${(Y+1)*8-1}${W}`;else U=`>= ${J}${W} and <= ${$}${W}`;throw new A4("value",U,Q)}JK(q,X,Y)}function Y6(Q,J){if(typeof Q!=="number")throw new hB(J,"number",Q)}function a6(Q,J,$){if(Math.floor(Q)!==Q)throw Y6(Q,$),new A4($||"offset","an integer",Q);if(J<0)throw new yB;throw new A4($||"offset",`>= ${$?1:0} and <= ${J}`,Q)}function qK(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace($K,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function I4(Q,J){J=J||1/0;let $,q=Q.length,X=null,Y=[];for(let W=0;W<q;++W){if($=Q.charCodeAt(W),$>55295&&$<57344){if(!X){if($>56319){if((J-=3)>-1)Y.push(239,191,189);continue}else if(W+1===q){if((J-=3)>-1)Y.push(239,191,189);continue}X=$;continue}if($<56320){if((J-=3)>-1)Y.push(239,191,189);X=$;continue}$=(X-55296<<10|$-56320)+65536}else if(X){if((J-=3)>-1)Y.push(239,191,189)}if(X=null,$<128){if((J-=1)<0)break;Y.push($)}else if($<2048){if((J-=2)<0)break;Y.push($>>6|192,$&63|128)}else if($<65536){if((J-=3)<0)break;Y.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((J-=4)<0)break;Y.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw Error("Invalid code point")}return Y}function XK(Q){let J=[];for(let $=0;$<Q.length;++$)J.push(Q.charCodeAt($)&255);return J}function YK(Q,J){let $,q,X,Y=[];for(let W=0;W<Q.length;++W){if((J-=2)<0)break;$=Q.charCodeAt(W),q=$>>8,X=$%256,Y.push(X),Y.push(q)}return Y}function sJ(Q){return vB(qK(Q))}function p8(Q,J,$,q){let X;for(X=0;X<q;++X){if(X+$>=J.length||X>=Q.length)break;J[X+$]=Q[X]}return X}function Z2(Q,J){return Q instanceof J||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===J.name}function Y1(Q){return typeof BigInt>"u"?UK:Q}function UK(){throw Error("BigInt not supported")}function E4(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var S2,K2,P4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k1,kJ,xJ,hJ=50,r6=2147483647,bJ=536870888,TB,xB,gB,_B,fB,yB,hB,A4,_J=4096,$K,WK,GK,BK,KK=(Q)=>{for(let J of Q)if(J.charCodeAt(0)>127)return!1;return!0},VK,HK;var d2=EJ(()=>{S2=[],K2=[];for(k1=0,kJ=P4.length;k1<kJ;++k1)S2[k1]=P4[k1],K2[P4.charCodeAt(k1)]=k1;K2[45]=62;K2[95]=63;xJ=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,TB=globalThis.btoa,xB=globalThis.atob,gB=globalThis.File,_B=globalThis.Blob,fB={MAX_LENGTH:r6,MAX_STRING_LENGTH:bJ};yB=S4("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){if(Q)return`${Q} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),hB=S4("ERR_INVALID_ARG_TYPE",function(Q,J){return`The "${Q}" argument must be of type number. Received type ${typeof J}`},TypeError),A4=S4("ERR_OUT_OF_RANGE",function(Q,J,$){let q=`The value of "${Q}" is out of range.`,X=$;if(Number.isInteger($)&&Math.abs($)>4294967296)X=fJ(String($));else if(typeof $==="bigint"){if(X=String($),$>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))X=fJ(X);X+="n"}return q+=` It must be ${J}. Received ${X}`,q},RangeError);Object.defineProperty(b.prototype,"parent",{enumerable:!0,get:function(){if(!b.isBuffer(this))return;return this.buffer}});Object.defineProperty(b.prototype,"offset",{enumerable:!0,get:function(){if(!b.isBuffer(this))return;return this.byteOffset}});b.poolSize=8192;b.from=function(Q,J,$){return mJ(Q,J,$)};Object.setPrototypeOf(b.prototype,Uint8Array.prototype);Object.setPrototypeOf(b,Uint8Array);b.alloc=function(Q,J,$){return bB(Q,J,$)};b.allocUnsafe=function(Q){return Z4(Q)};b.allocUnsafeSlow=function(Q){return Z4(Q)};b.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==b.prototype};b.compare=function(Q,J){if(Z2(Q,Uint8Array))Q=b.from(Q,Q.offset,Q.byteLength);if(Z2(J,Uint8Array))J=b.from(J,J.offset,J.byteLength);if(!b.isBuffer(Q)||!b.isBuffer(J))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===J)return 0;let $=Q.length,q=J.length;for(let X=0,Y=Math.min($,q);X<Y;++X)if(Q[X]!==J[X]){$=Q[X],q=J[X];break}if($<q)return-1;if(q<$)return 1;return 0};b.isEncoding=function(Q){switch(String(Q).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}};b.concat=function(Q,J){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return b.alloc(0);let $;if(J===void 0){J=0;for($=0;$<Q.length;++$)J+=Q[$].length}let q=b.allocUnsafe(J),X=0;for($=0;$<Q.length;++$){let Y=Q[$];if(Z2(Y,Uint8Array))if(X+Y.length>q.length){if(!b.isBuffer(Y))Y=b.from(Y);Y.copy(q,X)}else Uint8Array.prototype.set.call(q,Y,X);else if(!b.isBuffer(Y))throw TypeError('"list" argument must be an Array of Buffers');else Y.copy(q,X);X+=Y.length}return q};b.byteLength=cJ;b.prototype._isBuffer=!0;b.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<Q;J+=2)T1(this,J,J+1);return this};b.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<Q;J+=4)T1(this,J,J+3),T1(this,J+1,J+2);return this};b.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<Q;J+=8)T1(this,J,J+7),T1(this,J+1,J+6),T1(this,J+2,J+5),T1(this,J+3,J+4);return this};b.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return lJ(this,0,Q);return pB.apply(this,arguments)};b.prototype.toLocaleString=b.prototype.toString;b.prototype.equals=function(Q){if(!b.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return b.compare(this,Q)===0};b.prototype.inspect=function(){let Q="",J=hJ;if(Q=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J)Q+=" ... ";return"<Buffer "+Q+">"};if(xJ)b.prototype[xJ]=b.prototype.inspect;b.prototype.compare=function(Q,J,$,q,X){if(Z2(Q,Uint8Array))Q=b.from(Q,Q.offset,Q.byteLength);if(!b.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(J===void 0)J=0;if($===void 0)$=Q?Q.length:0;if(q===void 0)q=0;if(X===void 0)X=this.length;if(J<0||$>Q.length||q<0||X>this.length)throw RangeError("out of range index");if(q>=X&&J>=$)return 0;if(q>=X)return-1;if(J>=$)return 1;if(J>>>=0,$>>>=0,q>>>=0,X>>>=0,this===Q)return 0;let Y=X-q,W=$-J,U=Math.min(Y,W),G=this.slice(q,X),B=Q.slice(J,$);for(let K=0;K<U;++K)if(G[K]!==B[K]){Y=G[K],W=B[K];break}if(Y<W)return-1;if(W<Y)return 1;return 0};b.prototype.includes=function(Q,J,$){return this.indexOf(Q,J,$)!==-1};b.prototype.indexOf=function(Q,J,$){return pJ(this,Q,J,$,!0)};b.prototype.lastIndexOf=function(Q,J,$){return pJ(this,Q,J,$,!1)};b.prototype.write=function(Q,J,$,q){if(J===void 0)q="utf8",$=this.length,J=0;else if($===void 0&&typeof J==="string")q=J,$=this.length,J=0;else if(isFinite(J))if(J=J>>>0,isFinite($)){if($=$>>>0,q===void 0)q="utf8"}else q=$,$=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let X=this.length-J;if($===void 0||$>X)$=X;if(Q.length>0&&($<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!q)q="utf8";let Y=!1;for(;;)switch(q){case"hex":return lB(this,Q,J,$);case"utf8":case"utf-8":return dB(this,Q,J,$);case"ascii":case"latin1":case"binary":return iB(this,Q,J,$);case"base64":return nB(this,Q,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oB(this,Q,J,$);default:if(Y)throw TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),Y=!0}};b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};b.prototype.slice=function(Q,J){let $=this.length;if(Q=~~Q,J=J===void 0?$:~~J,Q<0){if(Q+=$,Q<0)Q=0}else if(Q>$)Q=$;if(J<0){if(J+=$,J<0)J=0}else if(J>$)J=$;if(J<Q)J=Q;let q=this.subarray(Q,J);return Object.setPrototypeOf(q,b.prototype),q};b.prototype.readUintLE=b.prototype.readUIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)b0(Q,J,this.length);let q=this[Q],X=1,Y=0;while(++Y<J&&(X*=256))q+=this[Q+Y]*X;return q};b.prototype.readUintBE=b.prototype.readUIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)b0(Q,J,this.length);let q=this[Q+--J],X=1;while(J>0&&(X*=256))q+=this[Q+--J]*X;return q};b.prototype.readUint8=b.prototype.readUInt8=function(Q,J){if(Q=Q>>>0,!J)b0(Q,1,this.length);return this[Q]};b.prototype.readUint16LE=b.prototype.readUInt16LE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,2,this.length);return this[Q]|this[Q+1]<<8};b.prototype.readUint16BE=b.prototype.readUInt16BE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,2,this.length);return this[Q]<<8|this[Q+1]};b.prototype.readUint32LE=b.prototype.readUInt32LE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};b.prototype.readUint32BE=b.prototype.readUInt32BE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};b.prototype.readBigUInt64LE=Y1(function(Q){Q=Q>>>0,Y6(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)a6(Q,this.length-8);let q=J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,X=this[++Q]+this[++Q]*256+this[++Q]*65536+$*16777216;return BigInt(q)+(BigInt(X)<<BigInt(32))});b.prototype.readBigUInt64BE=Y1(function(Q){Q=Q>>>0,Y6(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)a6(Q,this.length-8);let q=J*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],X=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$;return(BigInt(q)<<BigInt(32))+BigInt(X)});b.prototype.readIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)b0(Q,J,this.length);let q=this[Q],X=1,Y=0;while(++Y<J&&(X*=256))q+=this[Q+Y]*X;if(X*=128,q>=X)q-=Math.pow(2,8*J);return q};b.prototype.readIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)b0(Q,J,this.length);let q=J,X=1,Y=this[Q+--q];while(q>0&&(X*=256))Y+=this[Q+--q]*X;if(X*=128,Y>=X)Y-=Math.pow(2,8*J);return Y};b.prototype.readInt8=function(Q,J){if(Q=Q>>>0,!J)b0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};b.prototype.readInt16LE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,2,this.length);let $=this[Q]|this[Q+1]<<8;return $&32768?$|4294901760:$};b.prototype.readInt16BE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,2,this.length);let $=this[Q+1]|this[Q]<<8;return $&32768?$|4294901760:$};b.prototype.readInt32LE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};b.prototype.readInt32BE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};b.prototype.readBigInt64LE=Y1(function(Q){Q=Q>>>0,Y6(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)a6(Q,this.length-8);let q=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+($<<24);return(BigInt(q)<<BigInt(32))+BigInt(J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});b.prototype.readBigInt64BE=Y1(function(Q){Q=Q>>>0,Y6(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)a6(Q,this.length-8);let q=(J<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(q)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$)});b.prototype.readFloatLE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return c8(this,Q,!0,23,4)};b.prototype.readFloatBE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return c8(this,Q,!1,23,4)};b.prototype.readDoubleLE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,8,this.length);return c8(this,Q,!0,52,8)};b.prototype.readDoubleBE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,8,this.length);return c8(this,Q,!1,52,8)};b.prototype.writeUintLE=b.prototype.writeUIntLE=function(Q,J,$,q){if(Q=+Q,J=J>>>0,$=$>>>0,!q){let W=Math.pow(2,8*$)-1;t0(this,Q,J,$,W,0)}let X=1,Y=0;this[J]=Q&255;while(++Y<$&&(X*=256))this[J+Y]=Q/X&255;return J+$};b.prototype.writeUintBE=b.prototype.writeUIntBE=function(Q,J,$,q){if(Q=+Q,J=J>>>0,$=$>>>0,!q){let W=Math.pow(2,8*$)-1;t0(this,Q,J,$,W,0)}let X=$-1,Y=1;this[J+X]=Q&255;while(--X>=0&&(Y*=256))this[J+X]=Q/Y&255;return J+$};b.prototype.writeUint8=b.prototype.writeUInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,1,255,0);return this[J]=Q&255,J+1};b.prototype.writeUint16LE=b.prototype.writeUInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,2,65535,0);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};b.prototype.writeUint16BE=b.prototype.writeUInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,2,65535,0);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};b.prototype.writeUint32LE=b.prototype.writeUInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,4,4294967295,0);return this[J+3]=Q>>>24,this[J+2]=Q>>>16,this[J+1]=Q>>>8,this[J]=Q&255,J+4};b.prototype.writeUint32BE=b.prototype.writeUInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,4,4294967295,0);return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};b.prototype.writeBigUInt64LE=Y1(function(Q,J=0){return dJ(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});b.prototype.writeBigUInt64BE=Y1(function(Q,J=0){return iJ(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});b.prototype.writeIntLE=function(Q,J,$,q){if(Q=+Q,J=J>>>0,!q){let U=Math.pow(2,8*$-1);t0(this,Q,J,$,U-1,-U)}let X=0,Y=1,W=0;this[J]=Q&255;while(++X<$&&(Y*=256)){if(Q<0&&W===0&&this[J+X-1]!==0)W=1;this[J+X]=(Q/Y>>0)-W&255}return J+$};b.prototype.writeIntBE=function(Q,J,$,q){if(Q=+Q,J=J>>>0,!q){let U=Math.pow(2,8*$-1);t0(this,Q,J,$,U-1,-U)}let X=$-1,Y=1,W=0;this[J+X]=Q&255;while(--X>=0&&(Y*=256)){if(Q<0&&W===0&&this[J+X+1]!==0)W=1;this[J+X]=(Q/Y>>0)-W&255}return J+$};b.prototype.writeInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,1,127,-128);if(Q<0)Q=255+Q+1;return this[J]=Q&255,J+1};b.prototype.writeInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,2,32767,-32768);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};b.prototype.writeInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,2,32767,-32768);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};b.prototype.writeInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,4,2147483647,-2147483648);return this[J]=Q&255,this[J+1]=Q>>>8,this[J+2]=Q>>>16,this[J+3]=Q>>>24,J+4};b.prototype.writeInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)t0(this,Q,J,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};b.prototype.writeBigInt64LE=Y1(function(Q,J=0){return dJ(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});b.prototype.writeBigInt64BE=Y1(function(Q,J=0){return iJ(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});b.prototype.writeFloatLE=function(Q,J,$){return oJ(this,Q,J,!0,$)};b.prototype.writeFloatBE=function(Q,J,$){return oJ(this,Q,J,!1,$)};b.prototype.writeDoubleLE=function(Q,J,$){return rJ(this,Q,J,!0,$)};b.prototype.writeDoubleBE=function(Q,J,$){return rJ(this,Q,J,!1,$)};b.prototype.copy=function(Q,J,$,q){if(!b.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!$)$=0;if(!q&&q!==0)q=this.length;if(J>=Q.length)J=Q.length;if(!J)J=0;if(q>0&&q<$)q=$;if(q===$)return 0;if(Q.length===0||this.length===0)return 0;if(J<0)throw RangeError("targetStart out of bounds");if($<0||$>=this.length)throw RangeError("Index out of range");if(q<0)throw RangeError("sourceEnd out of bounds");if(q>this.length)q=this.length;if(Q.length-J<q-$)q=Q.length-J+$;let X=q-$;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(J,$,q);else Uint8Array.prototype.set.call(Q,this.subarray($,q),J);return X};b.prototype.fill=function(Q,J,$,q){if(typeof Q==="string"){if(typeof J==="string")q=J,J=0,$=this.length;else if(typeof $==="string")q=$,$=this.length;if(q!==void 0&&typeof q!=="string")throw TypeError("encoding must be a string");if(typeof q==="string"&&!b.isEncoding(q))throw TypeError("Unknown encoding: "+q);if(Q.length===1){let Y=Q.charCodeAt(0);if(q==="utf8"&&Y<128||q==="latin1")Q=Y}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if(J<0||this.length<J||this.length<$)throw RangeError("Out of range index");if($<=J)return this;if(J=J>>>0,$=$===void 0?this.length:$>>>0,!Q)Q=0;let X;if(typeof Q==="number")for(X=J;X<$;++X)this[X]=Q;else{let Y=b.isBuffer(Q)?Q:b.from(Q,q),W=Y.length;if(W===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(X=0;X<$-J;++X)this[X+J]=Y[X%W]}return this};$K=/[^+/0-9A-Za-z-_]/g;WK=function(){let Q=Array(256);for(let J=0;J<16;++J){let $=J*16;for(let q=0;q<16;++q)Q[$+q]="0123456789abcdef"[J]+"0123456789abcdef"[q]}return Q}();GK=E4("resolveObjectURL"),BK=E4("isUtf8"),VK=E4("transcode"),HK=b});var t6={};O4(t6,{setMaxListeners:()=>G$,once:()=>W$,listenerCount:()=>B$,init:()=>W1,getMaxListeners:()=>V$,getEventListeners:()=>U$,default:()=>OK,captureRejectionSymbol:()=>$$,addAbortListener:()=>H$,EventEmitter:()=>W1});function q$(Q,J){var{_events:$}=Q;if(J[0]??=Error("Unhandled error."),!$)throw J[0];var q=$[J$];if(q)for(var X of eJ.call(q))X.apply(Q,J);var Y=$.error;if(!Y)throw J[0];for(var X of eJ.call(Y))X.apply(Q,J);return!0}function FK(Q,J,$,q){J.then(void 0,function(X){queueMicrotask(()=>zK(Q,X,$,q))})}function zK(Q,J,$,q){if(typeof Q[tJ]==="function")Q[tJ](J,$,...q);else try{Q[x1]=!1,Q.emit("error",J)}finally{Q[x1]=!0}}function X$(Q,J,$){$.warned=!0;let q=Error(`Possible EventEmitter memory leak detected. ${$.length} ${String(J)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);q.name="MaxListenersExceededWarning",q.emitter=Q,q.type=J,q.count=$.length,console.warn(q)}function Y$(Q,J,...$){this.removeListener(Q,J),J.apply(this,$)}function W$(Q,J,$){var q=$?.signal;if(K$(q,"options.signal"),q?.aborted)throw new k4(void 0,{cause:q?.reason});let{resolve:X,reject:Y,promise:W}=$newPromiseCapability(Promise),U=(K)=>{if(Q.removeListener(J,G),q!=null)l8(q,"abort",B);Y(K)},G=(...K)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",U);if(q!=null)l8(q,"abort",B);X(K)};if(Q$(Q,J,G,{once:!0}),J!=="error"&&typeof Q.once==="function")Q.once("error",U);function B(){l8(Q,J,G),l8(Q,"error",U),Y(new k4(void 0,{cause:q?.reason}))}if(q!=null)Q$(q,"abort",B,{once:!0});return W}function U$(Q,J){return Q.listeners(J)}function G$(Q,...J){x4(Q,"setMaxListeners",0);var $;if(J&&($=J.length))for(let q=0;q<$;q++)J[q].setMaxListeners(Q);else g1=Q}function B$(Q,J){return Q.listenerCount(J)}function l8(Q,J,$,q){if(typeof Q.removeListener==="function")Q.removeListener(J,$);else Q.removeEventListener(J,$,q)}function Q$(Q,J,$,q){if(typeof Q.on==="function")if(q.once)Q.once(J,$);else Q.on(J,$);else Q.addEventListener(J,$,q)}function W6(Q,J,$){let q=TypeError(`The "${Q}" argument must be of type ${J}. Received ${$}`);return q.code="ERR_INVALID_ARG_TYPE",q}function DK(Q,J,$){let q=RangeError(`The "${Q}" argument is out of range. It must be ${J}. Received ${$}`);return q.code="ERR_OUT_OF_RANGE",q}function K$(Q,J){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw W6(J,"AbortSignal",Q)}function x4(Q,J,$,q){if(typeof Q!=="number")throw W6(J,"number",Q);if($!=null&&Q<$||q!=null&&Q>q||($!=null||q!=null)&&Number.isNaN(Q))throw DK(J,`${$!=null?`>= ${$}`:""}${$!=null&&q!=null?" && ":""}${q!=null?`<= ${q}`:""}`,Q)}function s6(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function CK(Q,J){if(typeof Q!=="boolean")throw W6(J,"boolean",Q)}function V$(Q){return Q?._maxListeners??g1}function H$(Q,J){if(Q===void 0)throw W6("signal","AbortSignal",Q);if(K$(Q,"signal"),typeof J!=="function")throw W6("listener","function",J);let $;if(Q.aborted)queueMicrotask(()=>J());else Q.addEventListener("abort",J,{__proto__:null,once:!0}),$=()=>{Q.removeEventListener("abort",J)};return{__proto__:null,[Symbol.dispose](){$?.()}}}var T4,x1,J$,jK,MK,tJ,$$,eJ,g1=10,W1=function(Q){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[x1]=Q?.captureRejections?Boolean(Q?.captureRejections):E0[x1])this.emit=NK},E0,LK=function(Q,...J){if(Q==="error")return q$(this,J);var{_events:$}=this;if($===void 0)return!1;var q=$[Q];if(q===void 0)return!1;let X=q.length>1?q.slice():q;for(let Y=0,{length:W}=X;Y<W;Y++){let U=X[Y];switch(J.length){case 0:U.call(this);break;case 1:U.call(this,J[0]);break;case 2:U.call(this,J[0],J[1]);break;case 3:U.call(this,J[0],J[1],J[2]);break;default:U.apply(this,J);break}}return!0},NK=function(Q,...J){if(Q==="error")return q$(this,J);var{_events:$}=this;if($===void 0)return!1;var q=$[Q];if(q===void 0)return!1;let X=q.length>1?q.slice():q;for(let Y=0,{length:W}=X;Y<W;Y++){let U=X[Y],G;switch(J.length){case 0:G=U.call(this);break;case 1:G=U.call(this,J[0]);break;case 2:G=U.call(this,J[0],J[1]);break;case 3:G=U.call(this,J[0],J[1],J[2]);break;default:G=U.apply(this,J);break}if(G!==void 0&&typeof G?.then==="function"&&G.then===Promise.prototype.then)FK(this,G,Q,J)}return!0},k4,OK;var e6=EJ(()=>{T4=Symbol.for,x1=Symbol("kCapture"),J$=T4("events.errorMonitor"),jK=Symbol("events.maxEventTargetListeners"),MK=Symbol("events.maxEventTargetListenersWarned"),tJ=T4("nodejs.rejection"),$$=T4("nodejs.rejection"),eJ=Array.prototype.slice,E0=W1.prototype={};E0._events=void 0;E0._eventsCount=0;E0._maxListeners=void 0;E0.setMaxListeners=function(Q){return x4(Q,"setMaxListeners",0),this._maxListeners=Q,this};E0.constructor=W1;E0.getMaxListeners=function(){return this?._maxListeners??g1};E0.emit=LK;E0.addListener=function(Q,J){s6(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var q=$[Q];if(!q)$[Q]=[J],this._eventsCount++;else{q.push(J);var X=this._maxListeners??g1;if(X>0&&q.length>X&&!q.warned)X$(this,Q,q)}return this};E0.on=E0.addListener;E0.prependListener=function(Q,J){s6(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var q=$[Q];if(!q)$[Q]=[J],this._eventsCount++;else{q.unshift(J);var X=this._maxListeners??g1;if(X>0&&q.length>X&&!q.warned)X$(this,Q,q)}return this};E0.once=function(Q,J){s6(J);let $=Y$.bind(this,Q,J);return $.listener=J,this.addListener(Q,$),this};E0.prependOnceListener=function(Q,J){s6(J);let $=Y$.bind(this,Q,J);return $.listener=J,this.prependListener(Q,$),this};E0.removeListener=function(Q,J){s6(J);var{_events:$}=this;if(!$)return this;var q=$[Q];if(!q)return this;var X=q.length;let Y=-1;for(let W=X-1;W>=0;W--)if(q[W]===J||q[W].listener===J){Y=W;break}if(Y<0)return this;if(Y===0)q.shift();else q.splice(Y,1);if(q.length===0)delete $[Q],this._eventsCount--;return this};E0.off=E0.removeListener;E0.removeAllListeners=function(Q){var{_events:J}=this;if(Q&&J){if(J[Q])delete J[Q],this._eventsCount--}else this._events={__proto__:null};return this};E0.listeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.map((q)=>q.listener??q)};E0.rawListeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.slice()};E0.listenerCount=function(Q){var{_events:J}=this;if(!J)return 0;return J[Q]?.length??0};E0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};E0[x1]=!1;k4=class k4 extends Error{constructor(Q="The operation was aborted",J=void 0){if(J!==void 0&&typeof J!=="object")throw W6("options","Object",J);super(Q,J);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(W1,{captureRejections:{get(){return E0[x1]},set(Q){CK(Q,"EventEmitter.captureRejections"),E0[x1]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return g1},set:(Q)=>{x4(Q,"defaultMaxListeners",0),g1=Q}},kMaxEventTargetListeners:{value:jK,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:MK,enumerable:!1,configurable:!1,writable:!1}});Object.assign(W1,{once:W$,getEventListeners:U$,getMaxListeners:V$,setMaxListeners:G$,EventEmitter:W1,usingDomains:!1,captureRejectionSymbol:$$,errorMonitor:J$,addAbortListener:H$,init:W1,listenerCount:B$});OK=W1});var o8=f((qP,C$)=>{var S0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports),T0=S0((Q,J)=>{class $ extends Error{constructor(q){if(!Array.isArray(q))throw TypeError(`Expected input to be an Array, got ${typeof q}`);let X="";for(let Y=0;Y<q.length;Y++)X+=` ${q[Y].stack}
|
|
2
|
-
`;super(X);this.name="AggregateError",this.errors=q}}J.exports={AggregateError:$,ArrayIsArray(q){return Array.isArray(q)},ArrayPrototypeIncludes(q,X){return q.includes(X)},ArrayPrototypeIndexOf(q,X){return q.indexOf(X)},ArrayPrototypeJoin(q,X){return q.join(X)},ArrayPrototypeMap(q,X){return q.map(X)},ArrayPrototypePop(q,X){return q.pop(X)},ArrayPrototypePush(q,X){return q.push(X)},ArrayPrototypeSlice(q,X,Y){return q.slice(X,Y)},Error,FunctionPrototypeCall(q,X,...Y){return q.call(X,...Y)},FunctionPrototypeSymbolHasInstance(q,X){return Function.prototype[Symbol.hasInstance].call(q,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(q,X){return Object.defineProperties(q,X)},ObjectDefineProperty(q,X,Y){return Object.defineProperty(q,X,Y)},ObjectGetOwnPropertyDescriptor(q,X){return Object.getOwnPropertyDescriptor(q,X)},ObjectKeys(q){return Object.keys(q)},ObjectSetPrototypeOf(q,X){return Object.setPrototypeOf(q,X)},Promise,PromisePrototypeCatch(q,X){return q.catch(X)},PromisePrototypeThen(q,X,Y){return q.then(X,Y)},PromiseReject(q){return Promise.reject(q)},PromiseResolve(q){return Promise.resolve(q)},ReflectApply:Reflect.apply,RegExpPrototypeTest(q,X){return q.test(X)},SafeSet:Set,String,StringPrototypeSlice(q,X,Y){return q.slice(X,Y)},StringPrototypeToLowerCase(q){return q.toLowerCase()},StringPrototypeToUpperCase(q){return q.toUpperCase()},StringPrototypeTrim(q){return q.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(q,X,Y){return q.set(X,Y)},Boolean,Uint8Array}}),j$=S0((Q,J)=>{J.exports={format($,...q){return $.replace(/%([sdifj])/g,function(...[X,Y]){let W=q.shift();if(Y==="f")return W.toFixed(6);else if(Y==="j")return JSON.stringify(W);else if(Y==="s"&&typeof W==="object")return`${W.constructor!==Object?W.constructor.name:""} {}`.trim();else return W.toString()})},inspect($){switch(typeof $){case"string":if($.includes("'")){if(!$.includes('"'))return`"${$}"`;else if(!$.includes("`")&&!$.includes("${"))return`\`${$}\``}return`'${$}'`;case"number":if(isNaN($))return"NaN";else if(Object.is($,-0))return String($);return $;case"bigint":return`${String($)}n`;case"boolean":case"undefined":return String($);case"object":return"{}"}}}}),r0=S0((Q,J)=>{var{format:$,inspect:q}=j$(),{AggregateError:X}=T0(),Y=globalThis.AggregateError||X,W=Symbol("kIsNodeError"),U=["string","function","number","object","Function","Object","boolean","bigint","symbol"],G=/^([A-Z][a-z0-9]*)+$/,B={};function K(D,V){if(!D)throw new B.ERR_INTERNAL_ASSERTION(V)}function j(D){let V="",z=D.length,L=D[0]==="-"?1:0;for(;z>=L+4;z-=3)V=`_${D.slice(z-3,z)}${V}`;return`${D.slice(0,z)}${V}`}function F(D,V,z){if(typeof V==="function")return K(V.length<=z.length,`Code: ${D}; The provided arguments length (${z.length}) does not match the required ones (${V.length}).`),V(...z);let L=(V.match(/%[dfijoOs]/g)||[]).length;if(K(L===z.length,`Code: ${D}; The provided arguments length (${z.length}) does not match the required ones (${L}).`),z.length===0)return V;return $(V,...z)}function H(D,V,z){if(!z)z=Error;class L extends z{constructor(...A){super(F(D,V,A))}toString(){return`${this.name} [${D}]: ${this.message}`}}Object.defineProperties(L.prototype,{name:{value:z.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${D}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),L.prototype.code=D,L.prototype[W]=!0,B[D]=L}function E(D){let V="__node_internal_"+D.name;return Object.defineProperty(D,"name",{value:V}),D}function g(D,V){if(D&&V&&D!==V){if(Array.isArray(V.errors))return V.errors.push(D),V;let z=new Y([V,D],V.message);return z.code=V.code,z}return D||V}class P extends Error{constructor(D="The operation was aborted",V=void 0){if(V!==void 0&&typeof V!=="object")throw new B.ERR_INVALID_ARG_TYPE("options","Object",V);super(D,V);this.code="ABORT_ERR",this.name="AbortError"}}H("ERR_ASSERTION","%s",Error),H("ERR_INVALID_ARG_TYPE",(D,V,z)=>{if(K(typeof D==="string","'name' must be a string"),!Array.isArray(V))V=[V];let L="The ";if(D.endsWith(" argument"))L+=`${D} `;else L+=`"${D}" ${D.includes(".")?"property":"argument"} `;L+="must be ";let A=[],y=[],T=[];for(let S of V)if(K(typeof S==="string","All expected entries have to be of type string"),U.includes(S))A.push(S.toLowerCase());else if(G.test(S))y.push(S);else K(S!=="object",'The value "object" should be written as "Object"'),T.push(S);if(y.length>0){let S=A.indexOf("object");if(S!==-1)A.splice(A,S,1),y.push("Object")}if(A.length>0){switch(A.length){case 1:L+=`of type ${A[0]}`;break;case 2:L+=`one of type ${A[0]} or ${A[1]}`;break;default:{let S=A.pop();L+=`one of type ${A.join(", ")}, or ${S}`}}if(y.length>0||T.length>0)L+=" or "}if(y.length>0){switch(y.length){case 1:L+=`an instance of ${y[0]}`;break;case 2:L+=`an instance of ${y[0]} or ${y[1]}`;break;default:{let S=y.pop();L+=`an instance of ${y.join(", ")}, or ${S}`}}if(T.length>0)L+=" or "}switch(T.length){case 0:break;case 1:if(T[0].toLowerCase()!==T[0])L+="an ";L+=`${T[0]}`;break;case 2:L+=`one of ${T[0]} or ${T[1]}`;break;default:{let S=T.pop();L+=`one of ${T.join(", ")}, or ${S}`}}if(z==null)L+=`. Received ${z}`;else if(typeof z==="function"&&z.name)L+=`. Received function ${z.name}`;else if(typeof z==="object"){var d;if((d=z.constructor)!==null&&d!==void 0&&d.name)L+=`. Received an instance of ${z.constructor.name}`;else{let S=q(z,{depth:-1});L+=`. Received ${S}`}}else{let S=q(z,{colors:!1});if(S.length>25)S=`${S.slice(0,25)}...`;L+=`. Received type ${typeof z} (${S})`}return L},TypeError),H("ERR_INVALID_ARG_VALUE",(D,V,z="is invalid")=>{let L=q(V);if(L.length>128)L=L.slice(0,128)+"...";return`The ${D.includes(".")?"property":"argument"} '${D}' ${z}. Received ${L}`},TypeError),H("ERR_INVALID_RETURN_VALUE",(D,V,z)=>{var L;let A=z!==null&&z!==void 0&&(L=z.constructor)!==null&&L!==void 0&&L.name?`instance of ${z.constructor.name}`:`type ${typeof z}`;return`Expected ${D} to be returned from the "${V}" function but got ${A}.`},TypeError),H("ERR_MISSING_ARGS",(...D)=>{K(D.length>0,"At least one arg needs to be specified");let V,z=D.length;switch(D=(Array.isArray(D)?D:[D]).map((L)=>`"${L}"`).join(" or "),z){case 1:V+=`The ${D[0]} argument`;break;case 2:V+=`The ${D[0]} and ${D[1]} arguments`;break;default:{let L=D.pop();V+=`The ${D.join(", ")}, and ${L} arguments`}break}return`${V} must be specified`},TypeError),H("ERR_OUT_OF_RANGE",(D,V,z)=>{K(V,'Missing "range" argument');let L;if(Number.isInteger(z)&&Math.abs(z)>4294967296)L=j(String(z));else if(typeof z==="bigint"){L=String(z);let A=BigInt(2)**BigInt(32);if(z>A||z<-A)L=j(L);L+="n"}else L=q(z);return`The value of "${D}" is out of range. It must be ${V}. Received ${L}`},RangeError),H("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),H("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),H("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),H("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),H("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),H("ERR_STREAM_WRITE_AFTER_END","write after end",Error),H("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),J.exports={AbortError:P,aggregateTwoErrors:E(g),hideStackFrames:E,codes:B}}),PK=S0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=new WeakMap,q=new WeakMap;function X(v){let R=$.get(v);return console.assert(R!=null,"'this' is expected an Event object, but got",v),R}function Y(v){if(v.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",v.passiveListener);return}if(!v.event.cancelable)return;if(v.canceled=!0,typeof v.event.preventDefault==="function")v.event.preventDefault()}function W(v,R){$.set(this,{eventTarget:v,event:R,eventPhase:2,currentTarget:v,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:R.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let O=Object.keys(R);for(let _=0;_<O.length;++_){let h=O[_];if(!(h in this))Object.defineProperty(this,h,U(h))}}if(W.prototype={get type(){return X(this).event.type},get target(){return X(this).eventTarget},get currentTarget(){return X(this).currentTarget},composedPath(){let v=X(this).currentTarget;if(v==null)return[];return[v]},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 v=X(this);if(v.stopped=!0,typeof v.event.stopPropagation==="function")v.event.stopPropagation()},stopImmediatePropagation(){let v=X(this);if(v.stopped=!0,v.immediateStopped=!0,typeof v.event.stopImmediatePropagation==="function")v.event.stopImmediatePropagation()},get bubbles(){return Boolean(X(this).event.bubbles)},get cancelable(){return Boolean(X(this).event.cancelable)},preventDefault(){Y(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(v){if(!v)return;let R=X(this);if(R.stopped=!0,typeof R.event.cancelBubble==="boolean")R.event.cancelBubble=!0},get returnValue(){return!X(this).canceled},set returnValue(v){if(!v)Y(X(this))},initEvent(){}},Object.defineProperty(W.prototype,"constructor",{value:W,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(W.prototype,window.Event.prototype),q.set(window.Event.prototype,W);function U(v){return{get(){return X(this).event[v]},set(R){X(this).event[v]=R},configurable:!0,enumerable:!0}}function G(v){return{value(){let R=X(this).event;return R[v].apply(R,arguments)},configurable:!0,enumerable:!0}}function B(v,R){let O=Object.keys(R);if(O.length===0)return v;function _(h,x){v.call(this,h,x)}_.prototype=Object.create(v.prototype,{constructor:{value:_,configurable:!0,writable:!0}});for(let h=0;h<O.length;++h){let x=O[h];if(!(x in v.prototype)){let a=typeof Object.getOwnPropertyDescriptor(R,x).value==="function";Object.defineProperty(_.prototype,x,a?G(x):U(x))}}return _}function K(v){if(v==null||v===Object.prototype)return W;let R=q.get(v);if(R==null)R=B(K(Object.getPrototypeOf(v)),v),q.set(v,R);return R}function j(v,R){return new(K(Object.getPrototypeOf(R)))(v,R)}function F(v){return X(v).immediateStopped}function H(v,R){X(v).eventPhase=R}function E(v,R){X(v).currentTarget=R}function g(v,R){X(v).passiveListener=R}var P=new WeakMap,D=1,V=2,z=3;function L(v){return v!==null&&typeof v==="object"}function A(v){let R=P.get(v);if(R==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return R}function y(v){return{get(){let R=A(this).get(v);while(R!=null){if(R.listenerType===z)return R.listener;R=R.next}return null},set(R){if(typeof R!=="function"&&!L(R))R=null;let O=A(this),_=null,h=O.get(v);while(h!=null){if(h.listenerType===z)if(_!==null)_.next=h.next;else if(h.next!==null)O.set(v,h.next);else O.delete(v);else _=h;h=h.next}if(R!==null){let x={listener:R,listenerType:z,passive:!1,once:!1,next:null};if(_===null)O.set(v,x);else _.next=x}},configurable:!0,enumerable:!0}}function T(v,R){Object.defineProperty(v,`on${R}`,y(R))}function d(v){function R(){S.call(this)}R.prototype=Object.create(S.prototype,{constructor:{value:R,configurable:!0,writable:!0}});for(let O=0;O<v.length;++O)T(R.prototype,v[O]);return R}function S(){if(this instanceof S){P.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return d(arguments[0]);if(arguments.length>0){let v=Array(arguments.length);for(let R=0;R<arguments.length;++R)v[R]=arguments[R];return d(v)}throw TypeError("Cannot call a class as a function")}if(S.prototype={addEventListener(v,R,O){if(R==null)return;if(typeof R!=="function"&&!L(R))throw TypeError("'listener' should be a function or an object.");let _=A(this),h=L(O),x=(h?Boolean(O.capture):Boolean(O))?D:V,a={listener:R,listenerType:x,passive:h&&Boolean(O.passive),once:h&&Boolean(O.once),next:null},$0=_.get(v);if($0===void 0){_.set(v,a);return}let G0=null;while($0!=null){if($0.listener===R&&$0.listenerType===x)return;G0=$0,$0=$0.next}G0.next=a},removeEventListener(v,R,O){if(R==null)return;let _=A(this),h=(L(O)?Boolean(O.capture):Boolean(O))?D:V,x=null,a=_.get(v);while(a!=null){if(a.listener===R&&a.listenerType===h){if(x!==null)x.next=a.next;else if(a.next!==null)_.set(v,a.next);else _.delete(v);return}x=a,a=a.next}},dispatchEvent(v){if(v==null||typeof v.type!=="string")throw TypeError('"event.type" should be a string.');let R=A(this),O=v.type,_=R.get(O);if(_==null)return!0;let h=j(this,v),x=null;while(_!=null){if(_.once)if(x!==null)x.next=_.next;else if(_.next!==null)R.set(O,_.next);else R.delete(O);else x=_;if(g(h,_.passive?_.listener:null),typeof _.listener==="function")try{_.listener.call(this,h)}catch(a){if(typeof console<"u"&&typeof console.error==="function")console.error(a)}else if(_.listenerType!==z&&typeof _.listener.handleEvent==="function")_.listener.handleEvent(h);if(F(h))break;_=_.next}return g(h,null),H(h,0),E(h,null),!h.defaultPrevented}},Object.defineProperty(S.prototype,"constructor",{value:S,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(S.prototype,window.EventTarget.prototype);Q.defineEventAttribute=T,Q.EventTarget=S,Q.default=S,J.exports=S,J.exports.EventTarget=J.exports.default=S,J.exports.defineEventAttribute=T}),Q8=S0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=PK();class q extends $.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let K=W.get(this);if(typeof K!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return K}}$.defineEventAttribute(q.prototype,"abort");function X(){let K=Object.create(q.prototype);return $.EventTarget.call(K),W.set(K,!1),K}function Y(K){if(W.get(K)!==!1)return;W.set(K,!0),K.dispatchEvent({type:"abort"})}var W=new WeakMap;if(Object.defineProperties(q.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(q.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class U{constructor(){G.set(this,X())}get signal(){return B(this)}abort(){Y(B(this))}}var G=new WeakMap;function B(K){let j=G.get(K);if(j==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${K===null?"null":typeof K}`);return j}if(Object.defineProperties(U.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(U.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=U,Q.AbortSignal=q,Q.default=U,J.exports=U,J.exports.AbortController=J.exports.default=U,J.exports.AbortSignal=q}),e0=S0((Q,J)=>{var $=(d2(),B2(l2)),{format:q,inspect:X}=j$(),{codes:{ERR_INVALID_ARG_TYPE:Y}}=r0(),{kResistStopPropagation:W,AggregateError:U,SymbolDispose:G}=T0(),B=globalThis.AbortSignal||Q8().AbortSignal,K=globalThis.AbortController||Q8().AbortController,j=Object.getPrototypeOf(async function(){}).constructor,F=globalThis.Blob||$.Blob,H=typeof F<"u"?function(P){return P instanceof F}:function(P){return!1},E=(P,D)=>{if(P!==void 0&&(P===null||typeof P!=="object"||!("aborted"in P)))throw new Y(D,"AbortSignal",P)},g=(P,D)=>{if(typeof P!=="function")throw new Y(D,"Function",P)};J.exports={AggregateError:U,kEmptyObject:Object.freeze({}),once(P){let D=!1;return function(...V){if(D)return;D=!0,P.apply(this,V)}},createDeferredPromise:function(){let P,D;return{promise:new Promise((V,z)=>{P=V,D=z}),resolve:P,reject:D}},promisify(P){return new Promise((D,V)=>{P((z,...L)=>{if(z)return V(z);return D(...L)})})},debuglog(){return function(){}},format:q,inspect:X,types:{isAsyncFunction(P){return P instanceof j},isArrayBufferView(P){return ArrayBuffer.isView(P)}},isBlob:H,deprecate(P,D){return P},addAbortListener:(e6(),B2(t6)).addAbortListener||function(P,D){if(P===void 0)throw new Y("signal","AbortSignal",P);E(P,"signal"),g(D,"listener");let V;if(P.aborted)queueMicrotask(()=>D());else P.addEventListener("abort",D,{__proto__:null,once:!0,[W]:!0}),V=()=>{P.removeEventListener("abort",D)};return{__proto__:null,[G](){var z;(z=V)===null||z===void 0||z()}}},AbortSignalAny:B.any||function(P){if(P.length===1)return P[0];let D=new K,V=()=>D.abort();return P.forEach((z)=>{E(z,"signals"),z.addEventListener("abort",V,{once:!0})}),D.signal.addEventListener("abort",()=>{P.forEach((z)=>z.removeEventListener("abort",V))},{once:!0}),D.signal}},J.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),J8=S0((Q,J)=>{var{ArrayIsArray:$,ArrayPrototypeIncludes:q,ArrayPrototypeJoin:X,ArrayPrototypeMap:Y,NumberIsInteger:W,NumberIsNaN:U,NumberMAX_SAFE_INTEGER:G,NumberMIN_SAFE_INTEGER:B,NumberParseInt:K,ObjectPrototypeHasOwnProperty:j,RegExpPrototypeExec:F,String:H,StringPrototypeToUpperCase:E,StringPrototypeTrim:g}=T0(),{hideStackFrames:P,codes:{ERR_SOCKET_BAD_PORT:D,ERR_INVALID_ARG_TYPE:V,ERR_INVALID_ARG_VALUE:z,ERR_OUT_OF_RANGE:L,ERR_UNKNOWN_SIGNAL:A}}=r0(),{normalizeEncoding:y}=e0(),{isAsyncFunction:T,isArrayBufferView:d}=e0().types,S={};function v(I){return I===(I|0)}function R(I){return I===I>>>0}var O=/^[0-7]+$/,_="must be a 32-bit unsigned integer or an octal string";function h(I,n,X0){if(typeof I>"u")I=X0;if(typeof I==="string"){if(F(O,I)===null)throw new z(n,I,_);I=K(I,8)}return $0(I,n),I}var x=P((I,n,X0=B,o=G)=>{if(typeof I!=="number")throw new V(n,"number",I);if(!W(I))throw new L(n,"an integer",I);if(I<X0||I>o)throw new L(n,`>= ${X0} && <= ${o}`,I)}),a=P((I,n,X0=-2147483648,o=2147483647)=>{if(typeof I!=="number")throw new V(n,"number",I);if(!W(I))throw new L(n,"an integer",I);if(I<X0||I>o)throw new L(n,`>= ${X0} && <= ${o}`,I)}),$0=P((I,n,X0=!1)=>{if(typeof I!=="number")throw new V(n,"number",I);if(!W(I))throw new L(n,"an integer",I);let o=X0?1:0,j0=4294967295;if(I<o||I>j0)throw new L(n,`>= ${o} && <= ${j0}`,I)});function G0(I,n){if(typeof I!=="string")throw new V(n,"string",I)}function C0(I,n,X0=void 0,o){if(typeof I!=="number")throw new V(n,"number",I);if(X0!=null&&I<X0||o!=null&&I>o||(X0!=null||o!=null)&&U(I))throw new L(n,`${X0!=null?`>= ${X0}`:""}${X0!=null&&o!=null?" && ":""}${o!=null?`<= ${o}`:""}`,I)}var p=P((I,n,X0)=>{if(!q(X0,I)){let o="must be one of: "+X(Y(X0,(j0)=>typeof j0==="string"?`'${j0}'`:H(j0)),", ");throw new z(n,I,o)}});function H0(I,n){if(typeof I!=="boolean")throw new V(n,"boolean",I)}function C(I,n,X0){return I==null||!j(I,n)?X0:I[n]}var i=P((I,n,X0=null)=>{let o=C(X0,"allowArray",!1),j0=C(X0,"allowFunction",!1);if(!C(X0,"nullable",!1)&&I===null||!o&&$(I)||typeof I!=="object"&&(!j0||typeof I!=="function"))throw new V(n,"Object",I)}),W0=P((I,n)=>{if(I!=null&&typeof I!=="object"&&typeof I!=="function")throw new V(n,"a dictionary",I)}),u=P((I,n,X0=0)=>{if(!$(I))throw new V(n,"Array",I);if(I.length<X0){let o=`must be longer than ${X0}`;throw new z(n,I,o)}});function B0(I,n){u(I,n);for(let X0=0;X0<I.length;X0++)G0(I[X0],`${n}[${X0}]`)}function M0(I,n){u(I,n);for(let X0=0;X0<I.length;X0++)H0(I[X0],`${n}[${X0}]`)}function A0(I,n){u(I,n);for(let X0=0;X0<I.length;X0++){let o=I[X0],j0=`${n}[${X0}]`;if(o==null)throw new V(j0,"AbortSignal",o);L0(o,j0)}}function N0(I,n="signal"){if(G0(I,n),S[I]===void 0){if(S[E(I)]!==void 0)throw new A(I+" (signals must use all capital letters)");throw new A(I)}}var c=P((I,n="buffer")=>{if(!d(I))throw new V(n,["Buffer","TypedArray","DataView"],I)});function l(I,n){let X0=y(n),o=I.length;if(X0==="hex"&&o%2!==0)throw new z("encoding",n,`is invalid for data of length ${o}`)}function e(I,n="Port",X0=!0){if(typeof I!=="number"&&typeof I!=="string"||typeof I==="string"&&g(I).length===0||+I!==+I>>>0||I>65535||I===0&&!X0)throw new D(n,I,X0);return I|0}var L0=P((I,n)=>{if(I!==void 0&&(I===null||typeof I!=="object"||!("aborted"in I)))throw new V(n,"AbortSignal",I)}),D0=P((I,n)=>{if(typeof I!=="function")throw new V(n,"Function",I)}),w=P((I,n)=>{if(typeof I!=="function"||T(I))throw new V(n,"Function",I)}),k=P((I,n)=>{if(I!==void 0)throw new V(n,"undefined",I)});function m(I,n,X0){if(!q(X0,I))throw new V(n,`('${X(X0,"|")}')`,I)}var t=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function q0(I,n){if(typeof I>"u"||!F(t,I))throw new z(n,I,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Q0(I){if(typeof I==="string")return q0(I,"hints"),I;else if($(I)){let n=I.length,X0="";if(n===0)return X0;for(let o=0;o<n;o++){let j0=I[o];if(q0(j0,"hints"),X0+=j0,o!==n-1)X0+=", "}return X0}throw new z("hints",I,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}J.exports={isInt32:v,isUint32:R,parseFileMode:h,validateArray:u,validateStringArray:B0,validateBooleanArray:M0,validateAbortSignalArray:A0,validateBoolean:H0,validateBuffer:c,validateDictionary:W0,validateEncoding:l,validateFunction:D0,validateInt32:a,validateInteger:x,validateNumber:C0,validateObject:i,validateOneOf:p,validatePlainFunction:w,validatePort:e,validateSignalName:N0,validateString:G0,validateUint32:$0,validateUndefined:k,validateUnion:m,validateAbortSignal:L0,validateLinkHeaderValue:Q0}}),_1=S0((Q,J)=>{J.exports=globalThis.process}),n2=S0((Q,J)=>{var{SymbolAsyncIterator:$,SymbolIterator:q,SymbolFor:X}=T0(),Y=X("nodejs.stream.destroyed"),W=X("nodejs.stream.errored"),U=X("nodejs.stream.readable"),G=X("nodejs.stream.writable"),B=X("nodejs.stream.disturbed"),K=X("nodejs.webstream.isClosedPromise"),j=X("nodejs.webstream.controllerErrorFunction");function F(C,i=!1){var W0;return!!(C&&typeof C.pipe==="function"&&typeof C.on==="function"&&(!i||typeof C.pause==="function"&&typeof C.resume==="function")&&(!C._writableState||((W0=C._readableState)===null||W0===void 0?void 0:W0.readable)!==!1)&&(!C._writableState||C._readableState))}function H(C){var i;return!!(C&&typeof C.write==="function"&&typeof C.on==="function"&&(!C._readableState||((i=C._writableState)===null||i===void 0?void 0:i.writable)!==!1))}function E(C){return!!(C&&typeof C.pipe==="function"&&C._readableState&&typeof C.on==="function"&&typeof C.write==="function")}function g(C){return C&&(C._readableState||C._writableState||typeof C.write==="function"&&typeof C.on==="function"||typeof C.pipe==="function"&&typeof C.on==="function")}function P(C){return!!(C&&!g(C)&&typeof C.pipeThrough==="function"&&typeof C.getReader==="function"&&typeof C.cancel==="function")}function D(C){return!!(C&&!g(C)&&typeof C.getWriter==="function"&&typeof C.abort==="function")}function V(C){return!!(C&&!g(C)&&typeof C.readable==="object"&&typeof C.writable==="object")}function z(C){return P(C)||D(C)||V(C)}function L(C,i){if(C==null)return!1;if(i===!0)return typeof C[$]==="function";if(i===!1)return typeof C[q]==="function";return typeof C[$]==="function"||typeof C[q]==="function"}function A(C){if(!g(C))return null;let{_writableState:i,_readableState:W0}=C,u=i||W0;return!!(C.destroyed||C[Y]||u!==null&&u!==void 0&&u.destroyed)}function y(C){if(!H(C))return null;if(C.writableEnded===!0)return!0;let i=C._writableState;if(i!==null&&i!==void 0&&i.errored)return!1;if(typeof(i===null||i===void 0?void 0:i.ended)!=="boolean")return null;return i.ended}function T(C,i){if(!H(C))return null;if(C.writableFinished===!0)return!0;let W0=C._writableState;if(W0!==null&&W0!==void 0&&W0.errored)return!1;if(typeof(W0===null||W0===void 0?void 0:W0.finished)!=="boolean")return null;return!!(W0.finished||i===!1&&W0.ended===!0&&W0.length===0)}function d(C){if(!F(C))return null;if(C.readableEnded===!0)return!0;let i=C._readableState;if(!i||i.errored)return!1;if(typeof(i===null||i===void 0?void 0:i.ended)!=="boolean")return null;return i.ended}function S(C,i){if(!F(C))return null;let W0=C._readableState;if(W0!==null&&W0!==void 0&&W0.errored)return!1;if(typeof(W0===null||W0===void 0?void 0:W0.endEmitted)!=="boolean")return null;return!!(W0.endEmitted||i===!1&&W0.ended===!0&&W0.length===0)}function v(C){if(C&&C[U]!=null)return C[U];if(typeof(C===null||C===void 0?void 0:C.readable)!=="boolean")return null;if(A(C))return!1;return F(C)&&C.readable&&!S(C)}function R(C){if(C&&C[G]!=null)return C[G];if(typeof(C===null||C===void 0?void 0:C.writable)!=="boolean")return null;if(A(C))return!1;return H(C)&&C.writable&&!y(C)}function O(C,i){if(!g(C))return null;if(A(C))return!0;if((i===null||i===void 0?void 0:i.readable)!==!1&&v(C))return!1;if((i===null||i===void 0?void 0:i.writable)!==!1&&R(C))return!1;return!0}function _(C){var i,W0;if(!g(C))return null;if(C.writableErrored)return C.writableErrored;return(i=(W0=C._writableState)===null||W0===void 0?void 0:W0.errored)!==null&&i!==void 0?i:null}function h(C){var i,W0;if(!g(C))return null;if(C.readableErrored)return C.readableErrored;return(i=(W0=C._readableState)===null||W0===void 0?void 0:W0.errored)!==null&&i!==void 0?i:null}function x(C){if(!g(C))return null;if(typeof C.closed==="boolean")return C.closed;let{_writableState:i,_readableState:W0}=C;if(typeof(i===null||i===void 0?void 0:i.closed)==="boolean"||typeof(W0===null||W0===void 0?void 0:W0.closed)==="boolean")return(i===null||i===void 0?void 0:i.closed)||(W0===null||W0===void 0?void 0:W0.closed);if(typeof C._closed==="boolean"&&a(C))return C._closed;return null}function a(C){return typeof C._closed==="boolean"&&typeof C._defaultKeepAlive==="boolean"&&typeof C._removedConnection==="boolean"&&typeof C._removedContLen==="boolean"}function $0(C){return typeof C._sent100==="boolean"&&a(C)}function G0(C){var i;return typeof C._consuming==="boolean"&&typeof C._dumped==="boolean"&&((i=C.req)===null||i===void 0?void 0:i.upgradeOrConnect)===void 0}function C0(C){if(!g(C))return null;let{_writableState:i,_readableState:W0}=C,u=i||W0;return!u&&$0(C)||!!(u&&u.autoDestroy&&u.emitClose&&u.closed===!1)}function p(C){var i;return!!(C&&((i=C[B])!==null&&i!==void 0?i:C.readableDidRead||C.readableAborted))}function H0(C){var i,W0,u,B0,M0,A0,N0,c,l,e;return!!(C&&((i=(W0=(u=(B0=(M0=(A0=C[W])!==null&&A0!==void 0?A0:C.readableErrored)!==null&&M0!==void 0?M0:C.writableErrored)!==null&&B0!==void 0?B0:(N0=C._readableState)===null||N0===void 0?void 0:N0.errorEmitted)!==null&&u!==void 0?u:(c=C._writableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&W0!==void 0?W0:(l=C._readableState)===null||l===void 0?void 0:l.errored)!==null&&i!==void 0?i:(e=C._writableState)===null||e===void 0?void 0:e.errored))}J.exports={isDestroyed:A,kIsDestroyed:Y,isDisturbed:p,kIsDisturbed:B,isErrored:H0,kIsErrored:W,isReadable:v,kIsReadable:U,kIsClosedPromise:K,kControllerErrorFunction:j,kIsWritable:G,isClosed:x,isDuplexNodeStream:E,isFinished:O,isIterable:L,isReadableNodeStream:F,isReadableStream:P,isReadableEnded:d,isReadableFinished:S,isReadableErrored:h,isNodeStream:g,isWebStream:z,isWritable:R,isWritableNodeStream:H,isWritableStream:D,isWritableEnded:y,isWritableFinished:T,isWritableErrored:_,isServerRequest:G0,isServerResponse:$0,willEmitClose:C0,isTransformStream:V}}),U1=S0((Q,J)=>{var $=_1(),{AbortError:q,codes:X}=r0(),{ERR_INVALID_ARG_TYPE:Y,ERR_STREAM_PREMATURE_CLOSE:W}=X,{kEmptyObject:U,once:G}=e0(),{validateAbortSignal:B,validateFunction:K,validateObject:j,validateBoolean:F}=J8(),{Promise:H,PromisePrototypeThen:E,SymbolDispose:g}=T0(),{isClosed:P,isReadable:D,isReadableNodeStream:V,isReadableStream:z,isReadableFinished:L,isReadableErrored:A,isWritable:y,isWritableNodeStream:T,isWritableStream:d,isWritableFinished:S,isWritableErrored:v,isNodeStream:R,willEmitClose:O,kIsClosedPromise:_}=n2(),h;function x(p){return p.setHeader&&typeof p.abort==="function"}var a=()=>{};function $0(p,H0,C){var i,W0;if(arguments.length===2)C=H0,H0=U;else if(H0==null)H0=U;else j(H0,"options");if(K(C,"callback"),B(H0.signal,"options.signal"),C=G(C),z(p)||d(p))return G0(p,H0,C);if(!R(p))throw new Y("stream",["ReadableStream","WritableStream","Stream"],p);let u=(i=H0.readable)!==null&&i!==void 0?i:V(p),B0=(W0=H0.writable)!==null&&W0!==void 0?W0:T(p),M0=p._writableState,A0=p._readableState,N0=()=>{if(!p.writable)e()},c=O(p)&&V(p)===u&&T(p)===B0,l=S(p,!1),e=()=>{if(l=!0,p.destroyed)c=!1;if(c&&(!p.readable||u))return;if(!u||L0)C.call(p)},L0=L(p,!1),D0=()=>{if(L0=!0,p.destroyed)c=!1;if(c&&(!p.writable||B0))return;if(!B0||l)C.call(p)},w=(I)=>{C.call(p,I)},k=P(p),m=()=>{k=!0;let I=v(p)||A(p);if(I&&typeof I!=="boolean")return C.call(p,I);if(u&&!L0&&V(p,!0)){if(!L(p,!1))return C.call(p,new W)}if(B0&&!l){if(!S(p,!1))return C.call(p,new W)}C.call(p)},t=()=>{k=!0;let I=v(p)||A(p);if(I&&typeof I!=="boolean")return C.call(p,I);C.call(p)},q0=()=>{p.req.on("finish",e)};if(x(p)){if(p.on("complete",e),!c)p.on("abort",m);if(p.req)q0();else p.on("request",q0)}else if(B0&&!M0)p.on("end",N0),p.on("close",N0);if(!c&&typeof p.aborted==="boolean")p.on("aborted",m);if(p.on("end",D0),p.on("finish",e),H0.error!==!1)p.on("error",w);if(p.on("close",m),k)$.nextTick(m);else if(M0!==null&&M0!==void 0&&M0.errorEmitted||A0!==null&&A0!==void 0&&A0.errorEmitted){if(!c)$.nextTick(t)}else if(!u&&(!c||D(p))&&(l||y(p)===!1))$.nextTick(t);else if(!B0&&(!c||y(p))&&(L0||D(p)===!1))$.nextTick(t);else if(A0&&p.req&&p.aborted)$.nextTick(t);let Q0=()=>{if(C=a,p.removeListener("aborted",m),p.removeListener("complete",e),p.removeListener("abort",m),p.removeListener("request",q0),p.req)p.req.removeListener("finish",e);p.removeListener("end",N0),p.removeListener("close",N0),p.removeListener("finish",e),p.removeListener("end",D0),p.removeListener("error",w),p.removeListener("close",m)};if(H0.signal&&!k){let I=()=>{let n=C;Q0(),n.call(p,new q(void 0,{cause:H0.signal.reason}))};if(H0.signal.aborted)$.nextTick(I);else{h=h||e0().addAbortListener;let n=h(H0.signal,I),X0=C;C=G((...o)=>{n[g](),X0.apply(p,o)})}}return Q0}function G0(p,H0,C){let i=!1,W0=a;if(H0.signal)if(W0=()=>{i=!0,C.call(p,new q(void 0,{cause:H0.signal.reason}))},H0.signal.aborted)$.nextTick(W0);else{h=h||e0().addAbortListener;let B0=h(H0.signal,W0),M0=C;C=G((...A0)=>{B0[g](),M0.apply(p,A0)})}let u=(...B0)=>{if(!i)$.nextTick(()=>C.apply(p,B0))};return E(p[_].promise,u,u),a}function C0(p,H0){var C;let i=!1;if(H0===null)H0=U;if((C=H0)!==null&&C!==void 0&&C.cleanup)F(H0.cleanup,"cleanup"),i=H0.cleanup;return new H((W0,u)=>{let B0=$0(p,H0,(M0)=>{if(i)B0();if(M0)u(M0);else W0()})})}J.exports=$0,J.exports.finished=C0}),U6=S0((Q,J)=>{var $=_1(),{aggregateTwoErrors:q,codes:{ERR_MULTIPLE_CALLBACK:X},AbortError:Y}=r0(),{Symbol:W}=T0(),{kIsDestroyed:U,isDestroyed:G,isFinished:B,isServerRequest:K}=n2(),j=W("kDestroy"),F=W("kConstruct");function H(O,_,h){if(O){if(O.stack,_&&!_.errored)_.errored=O;if(h&&!h.errored)h.errored=O}}function E(O,_){let h=this._readableState,x=this._writableState,a=x||h;if(x!==null&&x!==void 0&&x.destroyed||h!==null&&h!==void 0&&h.destroyed){if(typeof _==="function")_();return this}if(H(O,x,h),x)x.destroyed=!0;if(h)h.destroyed=!0;if(!a.constructed)this.once(j,function($0){g(this,q($0,O),_)});else g(this,O,_);return this}function g(O,_,h){let x=!1;function a($0){if(x)return;x=!0;let{_readableState:G0,_writableState:C0}=O;if(H($0,C0,G0),C0)C0.closed=!0;if(G0)G0.closed=!0;if(typeof h==="function")h($0);if($0)$.nextTick(P,O,$0);else $.nextTick(D,O)}try{O._destroy(_||null,a)}catch($0){a($0)}}function P(O,_){V(O,_),D(O)}function D(O){let{_readableState:_,_writableState:h}=O;if(h)h.closeEmitted=!0;if(_)_.closeEmitted=!0;if(h!==null&&h!==void 0&&h.emitClose||_!==null&&_!==void 0&&_.emitClose)O.emit("close")}function V(O,_){let{_readableState:h,_writableState:x}=O;if(x!==null&&x!==void 0&&x.errorEmitted||h!==null&&h!==void 0&&h.errorEmitted)return;if(x)x.errorEmitted=!0;if(h)h.errorEmitted=!0;O.emit("error",_)}function z(){let O=this._readableState,_=this._writableState;if(O)O.constructed=!0,O.closed=!1,O.closeEmitted=!1,O.destroyed=!1,O.errored=null,O.errorEmitted=!1,O.reading=!1,O.ended=O.readable===!1,O.endEmitted=O.readable===!1;if(_)_.constructed=!0,_.destroyed=!1,_.closed=!1,_.closeEmitted=!1,_.errored=null,_.errorEmitted=!1,_.finalCalled=!1,_.prefinished=!1,_.ended=_.writable===!1,_.ending=_.writable===!1,_.finished=_.writable===!1}function L(O,_,h){let{_readableState:x,_writableState:a}=O;if(a!==null&&a!==void 0&&a.destroyed||x!==null&&x!==void 0&&x.destroyed)return this;if(x!==null&&x!==void 0&&x.autoDestroy||a!==null&&a!==void 0&&a.autoDestroy)O.destroy(_);else if(_){if(_.stack,a&&!a.errored)a.errored=_;if(x&&!x.errored)x.errored=_;if(h)$.nextTick(V,O,_);else V(O,_)}}function A(O,_){if(typeof O._construct!=="function")return;let{_readableState:h,_writableState:x}=O;if(h)h.constructed=!1;if(x)x.constructed=!1;if(O.once(F,_),O.listenerCount(F)>1)return;$.nextTick(y,O)}function y(O){let _=!1;function h(x){if(_){L(O,x!==null&&x!==void 0?x:new X);return}_=!0;let{_readableState:a,_writableState:$0}=O,G0=$0||a;if(a)a.constructed=!0;if($0)$0.constructed=!0;if(G0.destroyed)O.emit(j,x);else if(x)L(O,x,!0);else $.nextTick(T,O)}try{O._construct((x)=>{$.nextTick(h,x)})}catch(x){$.nextTick(h,x)}}function T(O){O.emit(F)}function d(O){return(O===null||O===void 0?void 0:O.setHeader)&&typeof O.abort==="function"}function S(O){O.emit("close")}function v(O,_){O.emit("error",_),$.nextTick(S,O)}function R(O,_){if(!O||G(O))return;if(!_&&!B(O))_=new Y;if(K(O))O.socket=null,O.destroy(_);else if(d(O))O.abort();else if(d(O.req))O.req.abort();else if(typeof O.destroy==="function")O.destroy(_);else if(typeof O.close==="function")O.close();else if(_)$.nextTick(v,O,_);else $.nextTick(S,O);if(!O.destroyed)O[U]=!0}J.exports={construct:A,destroyer:R,destroy:E,undestroy:z,errorOrDestroy:L}}),g4=S0((Q,J)=>{var{ArrayIsArray:$,ObjectSetPrototypeOf:q}=T0(),{EventEmitter:X}=(e6(),B2(t6));function Y(U){X.call(this,U)}q(Y.prototype,X.prototype),q(Y,X),Y.prototype.pipe=function(U,G){let B=this;function K(D){if(U.writable&&U.write(D)===!1&&B.pause)B.pause()}B.on("data",K);function j(){if(B.readable&&B.resume)B.resume()}if(U.on("drain",j),!U._isStdio&&(!G||G.end!==!1))B.on("end",H),B.on("close",E);let F=!1;function H(){if(F)return;F=!0,U.end()}function E(){if(F)return;if(F=!0,typeof U.destroy==="function")U.destroy()}function g(D){if(P(),X.listenerCount(this,"error")===0)this.emit("error",D)}W(B,"error",g),W(U,"error",g);function P(){B.removeListener("data",K),U.removeListener("drain",j),B.removeListener("end",H),B.removeListener("close",E),B.removeListener("error",g),U.removeListener("error",g),B.removeListener("end",P),B.removeListener("close",P),U.removeListener("close",P)}return B.on("end",P),B.on("close",P),U.on("close",P),U.emit("pipe",B),U};function W(U,G,B){if(typeof U.prependListener==="function")return U.prependListener(G,B);if(!U._events||!U._events[G])U.on(G,B);else if($(U._events[G]))U._events[G].unshift(B);else U._events[G]=[B,U._events[G]]}J.exports={Stream:Y,prependListener:W}}),d8=S0((Q,J)=>{var{SymbolDispose:$}=T0(),{AbortError:q,codes:X}=r0(),{isNodeStream:Y,isWebStream:W,kControllerErrorFunction:U}=n2(),G=U1(),{ERR_INVALID_ARG_TYPE:B}=X,K,j=(F,H)=>{if(typeof F!=="object"||!("aborted"in F))throw new B(H,"AbortSignal",F)};J.exports.addAbortSignal=function(F,H){if(j(F,"signal"),!Y(H)&&!W(H))throw new B("stream",["ReadableStream","WritableStream","Stream"],H);return J.exports.addAbortSignalNoValidate(F,H)},J.exports.addAbortSignalNoValidate=function(F,H){if(typeof F!=="object"||!("aborted"in F))return H;let E=Y(H)?()=>{H.destroy(new q(void 0,{cause:F.reason}))}:()=>{H[U](new q(void 0,{cause:F.reason}))};if(F.aborted)E();else{K=K||e0().addAbortListener;let g=K(F,E);G(H,g[$])}return H}}),AK=S0((Q,J)=>{var{StringPrototypeSlice:$,SymbolIterator:q,TypedArrayPrototypeSet:X,Uint8Array:Y}=T0(),{Buffer:W}=(d2(),B2(l2)),{inspect:U}=e0();J.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(G){let B={data:G,next:null};if(this.length>0)this.tail.next=B;else this.head=B;this.tail=B,++this.length}unshift(G){let B={data:G,next:this.head};if(this.length===0)this.tail=B;this.head=B,++this.length}shift(){if(this.length===0)return;let G=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,G}clear(){this.head=this.tail=null,this.length=0}join(G){if(this.length===0)return"";let B=this.head,K=""+B.data;while((B=B.next)!==null)K+=G+B.data;return K}concat(G){if(this.length===0)return W.alloc(0);let B=W.allocUnsafe(G>>>0),K=this.head,j=0;while(K)X(B,K.data,j),j+=K.data.length,K=K.next;return B}consume(G,B){let K=this.head.data;if(G<K.length){let j=K.slice(0,G);return this.head.data=K.slice(G),j}if(G===K.length)return this.shift();return B?this._getString(G):this._getBuffer(G)}first(){return this.head.data}*[q](){for(let G=this.head;G;G=G.next)yield G.data}_getString(G){let B="",K=this.head,j=0;do{let F=K.data;if(G>F.length)B+=F,G-=F.length;else{if(G===F.length)if(B+=F,++j,K.next)this.head=K.next;else this.head=this.tail=null;else B+=$(F,0,G),this.head=K,K.data=$(F,G);break}++j}while((K=K.next)!==null);return this.length-=j,B}_getBuffer(G){let B=W.allocUnsafe(G),K=G,j=this.head,F=0;do{let H=j.data;if(G>H.length)X(B,H,K-G),G-=H.length;else{if(G===H.length)if(X(B,H,K-G),++F,j.next)this.head=j.next;else this.head=this.tail=null;else X(B,new Y(H.buffer,H.byteOffset,G),K-G),this.head=j,j.data=H.slice(G);break}++F}while((j=j.next)!==null);return this.length-=F,B}[Symbol.for("nodejs.util.inspect.custom")](G,B){return U(this,{...B,depth:0,customInspect:!1})}}}),i8=S0((Q,J)=>{var{MathFloor:$,NumberIsInteger:q}=T0(),{validateInteger:X}=J8(),{ERR_INVALID_ARG_VALUE:Y}=r0().codes,W=16384,U=16;function G(F,H,E){return F.highWaterMark!=null?F.highWaterMark:H?F[E]:null}function B(F){return F?U:W}function K(F,H){if(X(H,"value",0),F)U=H;else W=H}function j(F,H,E,g){let P=G(H,g,E);if(P!=null){if(!q(P)||P<0){let D=g?`options.${E}`:"options.highWaterMark";throw new Y(D,P)}return $(P)}return B(F.objectMode)}J.exports={getHighWaterMark:j,getDefaultHighWaterMark:B,setDefaultHighWaterMark:K}}),RK=S0((Q,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $=(d2(),B2(l2)),q=$.Buffer;function X(W,U){for(var G in W)U[G]=W[G]}if(q.from&&q.alloc&&q.allocUnsafe&&q.allocUnsafeSlow)J.exports=$;else X($,Q),Q.Buffer=Y;function Y(W,U,G){return q(W,U,G)}Y.prototype=Object.create(q.prototype),X(q,Y),Y.from=function(W,U,G){if(typeof W==="number")throw TypeError("Argument must not be a number");return q(W,U,G)},Y.alloc=function(W,U,G){if(typeof W!=="number")throw TypeError("Argument must be a number");var B=q(W);if(U!==void 0)if(typeof G==="string")B.fill(U,G);else B.fill(U);else B.fill(0);return B},Y.allocUnsafe=function(W){if(typeof W!=="number")throw TypeError("Argument must be a number");return q(W)},Y.allocUnsafeSlow=function(W){if(typeof W!=="number")throw TypeError("Argument must be a number");return $.SlowBuffer(W)}}),wK=S0((Q)=>{var J=RK().Buffer,$=J.isEncoding||function(V){switch(V=""+V,V&&V.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 q(V){if(!V)return"utf8";var z;while(!0)switch(V){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 V;default:if(z)return;V=(""+V).toLowerCase(),z=!0}}function X(V){var z=q(V);if(typeof z!=="string"&&(J.isEncoding===$||!$(V)))throw Error("Unknown encoding: "+V);return z||V}Q.StringDecoder=Y;function Y(V){this.encoding=X(V);var z;switch(this.encoding){case"utf16le":this.text=F,this.end=H,z=4;break;case"utf8":this.fillLast=B,z=4;break;case"base64":this.text=E,this.end=g,z=3;break;default:this.write=P,this.end=D;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(z)}Y.prototype.write=function(V){if(V.length===0)return"";var z,L;if(this.lastNeed){if(z=this.fillLast(V),z===void 0)return"";L=this.lastNeed,this.lastNeed=0}else L=0;if(L<V.length)return z?z+this.text(V,L):this.text(V,L);return z||""},Y.prototype.end=j,Y.prototype.text=K,Y.prototype.fillLast=function(V){if(this.lastNeed<=V.length)return V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,V.length),this.lastNeed-=V.length};function W(V){if(V<=127)return 0;else if(V>>5===6)return 2;else if(V>>4===14)return 3;else if(V>>3===30)return 4;return V>>6===2?-1:-2}function U(V,z,L){var A=z.length-1;if(A<L)return 0;var y=W(z[A]);if(y>=0){if(y>0)V.lastNeed=y-1;return y}if(--A<L||y===-2)return 0;if(y=W(z[A]),y>=0){if(y>0)V.lastNeed=y-2;return y}if(--A<L||y===-2)return 0;if(y=W(z[A]),y>=0){if(y>0)if(y===2)y=0;else V.lastNeed=y-3;return y}return 0}function G(V,z,L){if((z[0]&192)!==128)return V.lastNeed=0,"�";if(V.lastNeed>1&&z.length>1){if((z[1]&192)!==128)return V.lastNeed=1,"�";if(V.lastNeed>2&&z.length>2){if((z[2]&192)!==128)return V.lastNeed=2,"�"}}}function B(V){var z=this.lastTotal-this.lastNeed,L=G(this,V,z);if(L!==void 0)return L;if(this.lastNeed<=V.length)return V.copy(this.lastChar,z,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);V.copy(this.lastChar,z,0,V.length),this.lastNeed-=V.length}function K(V,z){var L=U(this,V,z);if(!this.lastNeed)return V.toString("utf8",z);this.lastTotal=L;var A=V.length-(L-this.lastNeed);return V.copy(this.lastChar,0,A),V.toString("utf8",z,A)}function j(V){var z=V&&V.length?this.write(V):"";if(this.lastNeed)return z+"�";return z}function F(V,z){if((V.length-z)%2===0){var L=V.toString("utf16le",z);if(L){var A=L.charCodeAt(L.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=V[V.length-1],V.toString("utf16le",z,V.length-1)}function H(V){var z=V&&V.length?this.write(V):"";if(this.lastNeed){var L=this.lastTotal-this.lastNeed;return z+this.lastChar.toString("utf16le",0,L)}return z}function E(V,z){var L=(V.length-z)%3;if(L===0)return V.toString("base64",z);if(this.lastNeed=3-L,this.lastTotal=3,L===1)this.lastChar[0]=V[V.length-1];else this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1];return V.toString("base64",z,V.length-L)}function g(V){var z=V&&V.length?this.write(V):"";if(this.lastNeed)return z+this.lastChar.toString("base64",0,3-this.lastNeed);return z}function P(V){return V.toString(this.encoding)}function D(V){return V&&V.length?this.write(V):""}}),M$=S0((Q,J)=>{var $=_1(),{PromisePrototypeThen:q,SymbolAsyncIterator:X,SymbolIterator:Y}=T0(),{Buffer:W}=(d2(),B2(l2)),{ERR_INVALID_ARG_TYPE:U,ERR_STREAM_NULL_VALUES:G}=r0().codes;function B(K,j,F){let H;if(typeof j==="string"||j instanceof W)return new K({objectMode:!0,...F,read(){this.push(j),this.push(null)}});let E;if(j&&j[X])E=!0,H=j[X]();else if(j&&j[Y])E=!1,H=j[Y]();else throw new U("iterable",["Iterable"],j);let g=new K({objectMode:!0,highWaterMark:1,...F}),P=!1;g._read=function(){if(!P)P=!0,V()},g._destroy=function(z,L){q(D(z),()=>$.nextTick(L,z),(A)=>$.nextTick(L,A||z))};async function D(z){let L=z!==void 0&&z!==null,A=typeof H.throw==="function";if(L&&A){let{value:y,done:T}=await H.throw(z);if(await y,T)return}if(typeof H.return==="function"){let{value:y}=await H.return();await y}}async function V(){for(;;){try{let{value:z,done:L}=E?await H.next():H.next();if(L)g.push(null);else{let A=z&&typeof z.then==="function"?await z:z;if(A===null)throw P=!1,new G;else if(g.push(A))continue;else P=!1}}catch(z){g.destroy(z)}break}}return g}J.exports=B}),n8=S0((Q,J)=>{var $=_1(),{ArrayPrototypeIndexOf:q,NumberIsInteger:X,NumberIsNaN:Y,NumberParseInt:W,ObjectDefineProperties:U,ObjectKeys:G,ObjectSetPrototypeOf:B,Promise:K,SafeSet:j,SymbolAsyncDispose:F,SymbolAsyncIterator:H,Symbol:E}=T0();J.exports=o,o.ReadableState=X0;var{EventEmitter:g}=(e6(),B2(t6)),{Stream:P,prependListener:D}=g4(),{Buffer:V}=(d2(),B2(l2)),{addAbortSignal:z}=d8(),L=U1(),A=e0().debuglog("stream",(M)=>{A=M}),y=AK(),T=U6(),{getHighWaterMark:d,getDefaultHighWaterMark:S}=i8(),{aggregateTwoErrors:v,codes:{ERR_INVALID_ARG_TYPE:R,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_OUT_OF_RANGE:_,ERR_STREAM_PUSH_AFTER_EOF:h,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:x},AbortError:a}=r0(),{validateObject:$0}=J8(),G0=E("kPaused"),{StringDecoder:C0}=wK(),p=M$();B(o.prototype,P.prototype),B(o,P);var H0=()=>{},{errorOrDestroy:C}=T,i=1,W0=2,u=4,B0=8,M0=16,A0=32,N0=64,c=128,l=256,e=512,L0=1024,D0=2048,w=4096,k=8192,m=16384,t=32768,q0=65536,Q0=131072,I=262144;function n(M){return{enumerable:!1,get(){return(this.state&M)!==0},set(N){if(N)this.state|=M;else this.state&=~M}}}U(X0.prototype,{objectMode:n(i),ended:n(W0),endEmitted:n(u),reading:n(B0),constructed:n(M0),sync:n(A0),needReadable:n(N0),emittedReadable:n(c),readableListening:n(l),resumeScheduled:n(e),errorEmitted:n(L0),emitClose:n(D0),autoDestroy:n(w),destroyed:n(k),closed:n(m),closeEmitted:n(t),multiAwaitDrain:n(q0),readingMore:n(Q0),dataEmitted:n(I)});function X0(M,N,s){if(typeof s!=="boolean")s=N instanceof i2();if(this.state=D0|w|M0|A0,M&&M.objectMode)this.state|=i;if(s&&M&&M.readableObjectMode)this.state|=i;if(this.highWaterMark=M?d(this,M,"readableHighWaterMark",s):S(!1),this.buffer=new y,this.length=0,this.pipes=[],this.flowing=null,this[G0]=null,M&&M.emitClose===!1)this.state&=~D0;if(M&&M.autoDestroy===!1)this.state&=~w;if(this.errored=null,this.defaultEncoding=M&&M.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,M&&M.encoding)this.decoder=new C0(M.encoding),this.encoding=M.encoding}function o(M){if(!(this instanceof o))return new o(M);let N=this instanceof i2();if(this._readableState=new X0(M,this,N),M){if(typeof M.read==="function")this._read=M.read;if(typeof M.destroy==="function")this._destroy=M.destroy;if(typeof M.construct==="function")this._construct=M.construct;if(M.signal&&!N)z(M.signal,this)}P.call(this,M),T.construct(this,()=>{if(this._readableState.needReadable)X6(this,this._readableState)})}o.prototype.destroy=T.destroy,o.prototype._undestroy=T.undestroy,o.prototype._destroy=function(M,N){N(M)},o.prototype[g.captureRejectionSymbol]=function(M){this.destroy(M)},o.prototype[F]=function(){let M;if(!this.destroyed)M=this.readableEnded?null:new a,this.destroy(M);return new K((N,s)=>L(this,(U0)=>U0&&U0!==M?s(U0):N(null)))},o.prototype.push=function(M,N){return j0(this,M,N,!1)},o.prototype.unshift=function(M,N){return j0(this,M,N,!0)};function j0(M,N,s,U0){A("readableAddChunk",N);let K0=M._readableState,d0;if((K0.state&i)===0){if(typeof N==="string"){if(s=s||K0.defaultEncoding,K0.encoding!==s)if(U0&&K0.encoding)N=V.from(N,s).toString(K0.encoding);else N=V.from(N,s),s=""}else if(N instanceof V)s="";else if(P._isUint8Array(N))N=P._uint8ArrayToBuffer(N),s="";else if(N!=null)d0=new R("chunk",["string","Buffer","Uint8Array"],N)}if(d0)C(M,d0);else if(N===null)K0.state&=~B0,l0(M,K0);else if((K0.state&i)!==0||N&&N.length>0)if(U0)if((K0.state&u)!==0)C(M,new x);else if(K0.destroyed||K0.errored)return!1;else Z0(M,K0,N,!0);else if(K0.ended)C(M,new h);else if(K0.destroyed||K0.errored)return!1;else if(K0.state&=~B0,K0.decoder&&!s)if(N=K0.decoder.write(N),K0.objectMode||N.length!==0)Z0(M,K0,N,!1);else X6(M,K0);else Z0(M,K0,N,!1);else if(!U0)K0.state&=~B0,X6(M,K0);return!K0.ended&&(K0.length<K0.highWaterMark||K0.length===0)}function Z0(M,N,s,U0){if(N.flowing&&N.length===0&&!N.sync&&M.listenerCount("data")>0){if((N.state&q0)!==0)N.awaitDrainWriters.clear();else N.awaitDrainWriters=null;N.dataEmitted=!0,M.emit("data",s)}else{if(N.length+=N.objectMode?1:s.length,U0)N.buffer.unshift(s);else N.buffer.push(s);if((N.state&N0)!==0)s0(M)}X6(M,N)}o.prototype.isPaused=function(){let M=this._readableState;return M[G0]===!0||M.flowing===!1},o.prototype.setEncoding=function(M){let N=new C0(M);this._readableState.decoder=N,this._readableState.encoding=this._readableState.decoder.encoding;let s=this._readableState.buffer,U0="";for(let K0 of s)U0+=N.write(K0);if(s.clear(),U0!=="")s.push(U0);return this._readableState.length=U0.length,this};var W2=1073741824;function U2(M){if(M>W2)throw new _("size","<= 1GiB",M);else M--,M|=M>>>1,M|=M>>>2,M|=M>>>4,M|=M>>>8,M|=M>>>16,M++;return M}function Z1(M,N){if(M<=0||N.length===0&&N.ended)return 0;if((N.state&i)!==0)return 1;if(Y(M)){if(N.flowing&&N.length)return N.buffer.first().length;return N.length}if(M<=N.length)return M;return N.ended?N.length:0}o.prototype.read=function(M){if(A("read",M),M===void 0)M=NaN;else if(!X(M))M=W(M,10);let N=this._readableState,s=M;if(M>N.highWaterMark)N.highWaterMark=U2(M);if(M!==0)N.state&=~c;if(M===0&&N.needReadable&&((N.highWaterMark!==0?N.length>=N.highWaterMark:N.length>0)||N.ended)){if(A("read: emitReadable",N.length,N.ended),N.length===0&&N.ended)z4(this);else s0(this);return null}if(M=Z1(M,N),M===0&&N.ended){if(N.length===0)z4(this);return null}let U0=(N.state&N0)!==0;if(A("need readable",U0),N.length===0||N.length-M<N.highWaterMark)U0=!0,A("length less than watermark",U0);if(N.ended||N.reading||N.destroyed||N.errored||!N.constructed)U0=!1,A("reading, ended or constructing",U0);else if(U0){if(A("do read"),N.state|=B0|A0,N.length===0)N.state|=N0;try{this._read(N.highWaterMark)}catch(d0){C(this,d0)}if(N.state&=~A0,!N.reading)M=Z1(s,N)}let K0;if(M>0)K0=OJ(M,N);else K0=null;if(K0===null)N.needReadable=N.length<=N.highWaterMark,M=0;else if(N.length-=M,N.multiAwaitDrain)N.awaitDrainWriters.clear();else N.awaitDrainWriters=null;if(N.length===0){if(!N.ended)N.needReadable=!0;if(s!==M&&N.ended)z4(this)}if(K0!==null&&!N.errorEmitted&&!N.closeEmitted)N.dataEmitted=!0,this.emit("data",K0);return K0};function l0(M,N){if(A("onEofChunk"),N.ended)return;if(N.decoder){let s=N.decoder.end();if(s&&s.length)N.buffer.push(s),N.length+=N.objectMode?1:s.length}if(N.ended=!0,N.sync)s0(M);else N.needReadable=!1,N.emittedReadable=!0,q6(M)}function s0(M){let N=M._readableState;if(A("emitReadable",N.needReadable,N.emittedReadable),N.needReadable=!1,!N.emittedReadable)A("emitReadable",N.flowing),N.emittedReadable=!0,$.nextTick(q6,M)}function q6(M){let N=M._readableState;if(A("emitReadable_",N.destroyed,N.length,N.ended),!N.destroyed&&!N.errored&&(N.length||N.ended))M.emit("readable"),N.emittedReadable=!1;N.needReadable=!N.flowing&&!N.ended&&N.length<=N.highWaterMark,DJ(M)}function X6(M,N){if(!N.readingMore&&N.constructed)N.readingMore=!0,$.nextTick(I2,M,N)}function I2(M,N){while(!N.reading&&!N.ended&&(N.length<N.highWaterMark||N.flowing&&N.length===0)){let s=N.length;if(A("maybeReadMore read 0"),M.read(0),s===N.length)break}N.readingMore=!1}o.prototype._read=function(M){throw new O("_read()")},o.prototype.pipe=function(M,N){let s=this,U0=this._readableState;if(U0.pipes.length===1){if(!U0.multiAwaitDrain)U0.multiAwaitDrain=!0,U0.awaitDrainWriters=new j(U0.awaitDrainWriters?[U0.awaitDrainWriters]:[])}U0.pipes.push(M),A("pipe count=%d opts=%j",U0.pipes.length,N);let K0=(!N||N.end!==!1)&&M!==$.stdout&&M!==$.stderr?G2:n6;if(U0.endEmitted)$.nextTick(K0);else s.once("end",K0);M.on("unpipe",d0);function d0(E1,c2){if(A("onunpipe"),E1===s){if(c2&&c2.hasUnpiped===!1)c2.hasUnpiped=!0,LB()}}function G2(){A("onend"),M.end()}let v1,AJ=!1;function LB(){if(A("cleanup"),M.removeListener("close",D4),M.removeListener("finish",C4),v1)M.removeListener("drain",v1);if(M.removeListener("error",N4),M.removeListener("unpipe",d0),s.removeListener("end",G2),s.removeListener("end",n6),s.removeListener("data",wJ),AJ=!0,v1&&U0.awaitDrainWriters&&(!M._writableState||M._writableState.needDrain))v1()}function RJ(){if(!AJ){if(U0.pipes.length===1&&U0.pipes[0]===M)A("false write response, pause",0),U0.awaitDrainWriters=M,U0.multiAwaitDrain=!1;else if(U0.pipes.length>1&&U0.pipes.includes(M))A("false write response, pause",U0.awaitDrainWriters.size),U0.awaitDrainWriters.add(M);s.pause()}if(!v1)v1=KB(s,M),M.on("drain",v1)}s.on("data",wJ);function wJ(E1){A("ondata");let c2=M.write(E1);if(A("dest.write",c2),c2===!1)RJ()}function N4(E1){if(A("onerror",E1),n6(),M.removeListener("error",N4),M.listenerCount("error")===0){let c2=M._writableState||M._readableState;if(c2&&!c2.errorEmitted)C(M,E1);else M.emit("error",E1)}}D(M,"error",N4);function D4(){M.removeListener("finish",C4),n6()}M.once("close",D4);function C4(){A("onfinish"),M.removeListener("close",D4),n6()}M.once("finish",C4);function n6(){A("unpipe"),s.unpipe(M)}if(M.emit("pipe",s),M.writableNeedDrain===!0)RJ();else if(!U0.flowing)A("pipe resume"),s.resume();return M};function KB(M,N){return function(){let s=M._readableState;if(s.awaitDrainWriters===N)A("pipeOnDrain",1),s.awaitDrainWriters=null;else if(s.multiAwaitDrain)A("pipeOnDrain",s.awaitDrainWriters.size),s.awaitDrainWriters.delete(N);if((!s.awaitDrainWriters||s.awaitDrainWriters.size===0)&&M.listenerCount("data"))M.resume()}}o.prototype.unpipe=function(M){let N=this._readableState,s={hasUnpiped:!1};if(N.pipes.length===0)return this;if(!M){let K0=N.pipes;N.pipes=[],this.pause();for(let d0=0;d0<K0.length;d0++)K0[d0].emit("unpipe",this,{hasUnpiped:!1});return this}let U0=q(N.pipes,M);if(U0===-1)return this;if(N.pipes.splice(U0,1),N.pipes.length===0)this.pause();return M.emit("unpipe",this,s),this},o.prototype.on=function(M,N){let s=P.prototype.on.call(this,M,N),U0=this._readableState;if(M==="data"){if(U0.readableListening=this.listenerCount("readable")>0,U0.flowing!==!1)this.resume()}else if(M==="readable"){if(!U0.endEmitted&&!U0.readableListening){if(U0.readableListening=U0.needReadable=!0,U0.flowing=!1,U0.emittedReadable=!1,A("on readable",U0.length,U0.reading),U0.length)s0(this);else if(!U0.reading)$.nextTick(VB,this)}}return s},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(M,N){let s=P.prototype.removeListener.call(this,M,N);if(M==="readable")$.nextTick(NJ,this);return s},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(M){let N=P.prototype.removeAllListeners.apply(this,arguments);if(M==="readable"||M===void 0)$.nextTick(NJ,this);return N};function NJ(M){let N=M._readableState;if(N.readableListening=M.listenerCount("readable")>0,N.resumeScheduled&&N[G0]===!1)N.flowing=!0;else if(M.listenerCount("data")>0)M.resume();else if(!N.readableListening)N.flowing=null}function VB(M){A("readable nexttick read 0"),M.read(0)}o.prototype.resume=function(){let M=this._readableState;if(!M.flowing)A("resume"),M.flowing=!M.readableListening,HB(this,M);return M[G0]=!1,this};function HB(M,N){if(!N.resumeScheduled)N.resumeScheduled=!0,$.nextTick(jB,M,N)}function jB(M,N){if(A("resume",N.reading),!N.reading)M.read(0);if(N.resumeScheduled=!1,M.emit("resume"),DJ(M),N.flowing&&!N.reading)M.read(0)}o.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[G0]=!0,this};function DJ(M){let N=M._readableState;A("flow",N.flowing);while(N.flowing&&M.read()!==null);}o.prototype.wrap=function(M){let N=!1;M.on("data",(U0)=>{if(!this.push(U0)&&M.pause)N=!0,M.pause()}),M.on("end",()=>{this.push(null)}),M.on("error",(U0)=>{C(this,U0)}),M.on("close",()=>{this.destroy()}),M.on("destroy",()=>{this.destroy()}),this._read=()=>{if(N&&M.resume)N=!1,M.resume()};let s=G(M);for(let U0=1;U0<s.length;U0++){let K0=s[U0];if(this[K0]===void 0&&typeof M[K0]==="function")this[K0]=M[K0].bind(M)}return this},o.prototype[H]=function(){return CJ(this)},o.prototype.iterator=function(M){if(M!==void 0)$0(M,"options");return CJ(this,M)};function CJ(M,N){if(typeof M.read!=="function")M=o.wrap(M,{objectMode:!0});let s=MB(M,N);return s.stream=M,s}async function*MB(M,N){let s=H0;function U0(G2){if(this===M)s(),s=H0;else s=G2}M.on("readable",U0);let K0,d0=L(M,{writable:!1},(G2)=>{K0=G2?v(K0,G2):null,s(),s=H0});try{while(!0){let G2=M.destroyed?null:M.read();if(G2!==null)yield G2;else if(K0)throw K0;else if(K0===null)return;else await new K(U0)}}catch(G2){throw K0=v(K0,G2),K0}finally{if((K0||(N===null||N===void 0?void 0:N.destroyOnReturn)!==!1)&&(K0===void 0||M._readableState.autoDestroy))T.destroyer(M,null);else M.off("readable",U0),d0()}}U(o.prototype,{readable:{__proto__:null,get(){let M=this._readableState;return!!M&&M.readable!==!1&&!M.destroyed&&!M.errorEmitted&&!M.endEmitted},set(M){if(this._readableState)this._readableState.readable=!!M}},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(M){if(this._readableState)this._readableState.flowing=M}},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(M){if(!this._readableState)return;this._readableState.destroyed=M}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),U(X0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[G0]!==!1},set(M){this[G0]=!!M}}}),o._fromList=OJ;function OJ(M,N){if(N.length===0)return null;let s;if(N.objectMode)s=N.buffer.shift();else if(!M||M>=N.length){if(N.decoder)s=N.buffer.join("");else if(N.buffer.length===1)s=N.buffer.first();else s=N.buffer.concat(N.length);N.buffer.clear()}else s=N.buffer.consume(M,N.decoder);return s}function z4(M){let N=M._readableState;if(A("endReadable",N.endEmitted),!N.endEmitted)N.ended=!0,$.nextTick(FB,N,M)}function FB(M,N){if(A("endReadableNT",M.endEmitted,M.length),!M.errored&&!M.closeEmitted&&!M.endEmitted&&M.length===0){if(M.endEmitted=!0,N.emit("end"),N.writable&&N.allowHalfOpen===!1)$.nextTick(zB,N);else if(M.autoDestroy){let s=N._writableState;if(!s||s.autoDestroy&&(s.finished||s.writable===!1))N.destroy()}}}function zB(M){if(M.writable&&!M.writableEnded&&!M.destroyed)M.end()}o.from=function(M,N){return p(o,M,N)};var L4;function PJ(){if(L4===void 0)L4={};return L4}o.fromWeb=function(M,N){return PJ().newStreamReadableFromReadableStream(M,N)},o.toWeb=function(M,N){return PJ().newReadableStreamFromStreamReadable(M,N)},o.wrap=function(M,N){var s,U0;return new o({objectMode:(s=(U0=M.readableObjectMode)!==null&&U0!==void 0?U0:M.objectMode)!==null&&s!==void 0?s:!0,...N,destroy(K0,d0){T.destroyer(M,K0),d0(K0)}}).wrap(M)}}),_4=S0((Q,J)=>{var $=_1(),{ArrayPrototypeSlice:q,Error:X,FunctionPrototypeSymbolHasInstance:Y,ObjectDefineProperty:W,ObjectDefineProperties:U,ObjectSetPrototypeOf:G,StringPrototypeToLowerCase:B,Symbol:K,SymbolHasInstance:j}=T0();J.exports=$0,$0.WritableState=x;var{EventEmitter:F}=(e6(),B2(t6)),H=g4().Stream,{Buffer:E}=(d2(),B2(l2)),g=U6(),{addAbortSignal:P}=d8(),{getHighWaterMark:D,getDefaultHighWaterMark:V}=i8(),{ERR_INVALID_ARG_TYPE:z,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_MULTIPLE_CALLBACK:A,ERR_STREAM_CANNOT_PIPE:y,ERR_STREAM_DESTROYED:T,ERR_STREAM_ALREADY_FINISHED:d,ERR_STREAM_NULL_VALUES:S,ERR_STREAM_WRITE_AFTER_END:v,ERR_UNKNOWN_ENCODING:R}=r0().codes,{errorOrDestroy:O}=g;G($0.prototype,H.prototype),G($0,H);function _(){}var h=K("kOnFinished");function x(w,k,m){if(typeof m!=="boolean")m=k instanceof i2();if(this.objectMode=!!(w&&w.objectMode),m)this.objectMode=this.objectMode||!!(w&&w.writableObjectMode);this.highWaterMark=w?D(this,w,"writableHighWaterMark",m):V(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let t=!!(w&&w.decodeStrings===!1);this.decodeStrings=!t,this.defaultEncoding=w&&w.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=C.bind(void 0,k),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,a(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!w||w.emitClose!==!1,this.autoDestroy=!w||w.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[h]=[]}function a(w){w.buffered=[],w.bufferedIndex=0,w.allBuffers=!0,w.allNoop=!0}x.prototype.getBuffer=function(){return q(this.buffered,this.bufferedIndex)},W(x.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function $0(w){let k=this instanceof i2();if(!k&&!Y($0,this))return new $0(w);if(this._writableState=new x(w,this,k),w){if(typeof w.write==="function")this._write=w.write;if(typeof w.writev==="function")this._writev=w.writev;if(typeof w.destroy==="function")this._destroy=w.destroy;if(typeof w.final==="function")this._final=w.final;if(typeof w.construct==="function")this._construct=w.construct;if(w.signal)P(w.signal,this)}H.call(this,w),g.construct(this,()=>{let m=this._writableState;if(!m.writing)B0(this,m);c(this,m)})}W($0,j,{__proto__:null,value:function(w){if(Y(this,w))return!0;if(this!==$0)return!1;return w&&w._writableState instanceof x}}),$0.prototype.pipe=function(){O(this,new y)};function G0(w,k,m,t){let q0=w._writableState;if(typeof m==="function")t=m,m=q0.defaultEncoding;else{if(!m)m=q0.defaultEncoding;else if(m!=="buffer"&&!E.isEncoding(m))throw new R(m);if(typeof t!=="function")t=_}if(k===null)throw new S;else if(!q0.objectMode)if(typeof k==="string"){if(q0.decodeStrings!==!1)k=E.from(k,m),m="buffer"}else if(k instanceof E)m="buffer";else if(H._isUint8Array(k))k=H._uint8ArrayToBuffer(k),m="buffer";else throw new z("chunk",["string","Buffer","Uint8Array"],k);let Q0;if(q0.ending)Q0=new v;else if(q0.destroyed)Q0=new T("write");if(Q0)return $.nextTick(t,Q0),O(w,Q0,!0),Q0;return q0.pendingcb++,C0(w,q0,k,m,t)}$0.prototype.write=function(w,k,m){return G0(this,w,k,m)===!0},$0.prototype.cork=function(){this._writableState.corked++},$0.prototype.uncork=function(){let w=this._writableState;if(w.corked){if(w.corked--,!w.writing)B0(this,w)}},$0.prototype.setDefaultEncoding=function(w){if(typeof w==="string")w=B(w);if(!E.isEncoding(w))throw new R(w);return this._writableState.defaultEncoding=w,this};function C0(w,k,m,t,q0){let Q0=k.objectMode?1:m.length;k.length+=Q0;let I=k.length<k.highWaterMark;if(!I)k.needDrain=!0;if(k.writing||k.corked||k.errored||!k.constructed){if(k.buffered.push({chunk:m,encoding:t,callback:q0}),k.allBuffers&&t!=="buffer")k.allBuffers=!1;if(k.allNoop&&q0!==_)k.allNoop=!1}else k.writelen=Q0,k.writecb=q0,k.writing=!0,k.sync=!0,w._write(m,t,k.onwrite),k.sync=!1;return I&&!k.errored&&!k.destroyed}function p(w,k,m,t,q0,Q0,I){if(k.writelen=t,k.writecb=I,k.writing=!0,k.sync=!0,k.destroyed)k.onwrite(new T("write"));else if(m)w._writev(q0,k.onwrite);else w._write(q0,Q0,k.onwrite);k.sync=!1}function H0(w,k,m,t){--k.pendingcb,t(m),u(k),O(w,m)}function C(w,k){let m=w._writableState,t=m.sync,q0=m.writecb;if(typeof q0!=="function"){O(w,new A);return}if(m.writing=!1,m.writecb=null,m.length-=m.writelen,m.writelen=0,k){if(k.stack,!m.errored)m.errored=k;if(w._readableState&&!w._readableState.errored)w._readableState.errored=k;if(t)$.nextTick(H0,w,m,k,q0);else H0(w,m,k,q0)}else{if(m.buffered.length>m.bufferedIndex)B0(w,m);if(t)if(m.afterWriteTickInfo!==null&&m.afterWriteTickInfo.cb===q0)m.afterWriteTickInfo.count++;else m.afterWriteTickInfo={count:1,cb:q0,stream:w,state:m},$.nextTick(i,m.afterWriteTickInfo);else W0(w,m,1,q0)}}function i({stream:w,state:k,count:m,cb:t}){return k.afterWriteTickInfo=null,W0(w,k,m,t)}function W0(w,k,m,t){if(!k.ending&&!w.destroyed&&k.length===0&&k.needDrain)k.needDrain=!1,w.emit("drain");while(m-- >0)k.pendingcb--,t();if(k.destroyed)u(k);c(w,k)}function u(w){if(w.writing)return;for(let q0=w.bufferedIndex;q0<w.buffered.length;++q0){var k;let{chunk:Q0,callback:I}=w.buffered[q0],n=w.objectMode?1:Q0.length;w.length-=n,I((k=w.errored)!==null&&k!==void 0?k:new T("write"))}let m=w[h].splice(0);for(let q0=0;q0<m.length;q0++){var t;m[q0]((t=w.errored)!==null&&t!==void 0?t:new T("end"))}a(w)}function B0(w,k){if(k.corked||k.bufferProcessing||k.destroyed||!k.constructed)return;let{buffered:m,bufferedIndex:t,objectMode:q0}=k,Q0=m.length-t;if(!Q0)return;let I=t;if(k.bufferProcessing=!0,Q0>1&&w._writev){k.pendingcb-=Q0-1;let n=k.allNoop?_:(o)=>{for(let j0=I;j0<m.length;++j0)m[j0].callback(o)},X0=k.allNoop&&I===0?m:q(m,I);X0.allBuffers=k.allBuffers,p(w,k,!0,k.length,X0,"",n),a(k)}else{do{let{chunk:n,encoding:X0,callback:o}=m[I];m[I++]=null;let j0=q0?1:n.length;p(w,k,!1,j0,n,X0,o)}while(I<m.length&&!k.writing);if(I===m.length)a(k);else if(I>256)m.splice(0,I),k.bufferedIndex=0;else k.bufferedIndex=I}k.bufferProcessing=!1}$0.prototype._write=function(w,k,m){if(this._writev)this._writev([{chunk:w,encoding:k}],m);else throw new L("_write()")},$0.prototype._writev=null,$0.prototype.end=function(w,k,m){let t=this._writableState;if(typeof w==="function")m=w,w=null,k=null;else if(typeof k==="function")m=k,k=null;let q0;if(w!==null&&w!==void 0){let Q0=G0(this,w,k);if(Q0 instanceof X)q0=Q0}if(t.corked)t.corked=1,this.uncork();if(q0);else if(!t.errored&&!t.ending)t.ending=!0,c(this,t,!0),t.ended=!0;else if(t.finished)q0=new d("end");else if(t.destroyed)q0=new T("end");if(typeof m==="function")if(q0||t.finished)$.nextTick(m,q0);else t[h].push(m);return this};function M0(w){return w.ending&&!w.destroyed&&w.constructed&&w.length===0&&!w.errored&&w.buffered.length===0&&!w.finished&&!w.writing&&!w.errorEmitted&&!w.closeEmitted}function A0(w,k){let m=!1;function t(q0){if(m){O(w,q0!==null&&q0!==void 0?q0:A());return}if(m=!0,k.pendingcb--,q0){let Q0=k[h].splice(0);for(let I=0;I<Q0.length;I++)Q0[I](q0);O(w,q0,k.sync)}else if(M0(k))k.prefinished=!0,w.emit("prefinish"),k.pendingcb++,$.nextTick(l,w,k)}k.sync=!0,k.pendingcb++;try{w._final(t)}catch(q0){t(q0)}k.sync=!1}function N0(w,k){if(!k.prefinished&&!k.finalCalled)if(typeof w._final==="function"&&!k.destroyed)k.finalCalled=!0,A0(w,k);else k.prefinished=!0,w.emit("prefinish")}function c(w,k,m){if(M0(k)){if(N0(w,k),k.pendingcb===0){if(m)k.pendingcb++,$.nextTick((t,q0)=>{if(M0(q0))l(t,q0);else q0.pendingcb--},w,k);else if(M0(k))k.pendingcb++,l(w,k)}}}function l(w,k){k.pendingcb--,k.finished=!0;let m=k[h].splice(0);for(let t=0;t<m.length;t++)m[t]();if(w.emit("finish"),k.autoDestroy){let t=w._readableState;if(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))w.destroy()}}U($0.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(w){if(this._writableState)this._writableState.destroyed=w}},writable:{__proto__:null,get(){let w=this._writableState;return!!w&&w.writable!==!1&&!w.destroyed&&!w.errored&&!w.ending&&!w.ended},set(w){if(this._writableState)this._writableState.writable=!!w}},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 w=this._writableState;if(!w)return!1;return!w.destroyed&&!w.ending&&w.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 e=g.destroy;$0.prototype.destroy=function(w,k){let m=this._writableState;if(!m.destroyed&&(m.bufferedIndex<m.buffered.length||m[h].length))$.nextTick(u,m);return e.call(this,w,k),this},$0.prototype._undestroy=g.undestroy,$0.prototype._destroy=function(w,k){k(w)},$0.prototype[F.captureRejectionSymbol]=function(w){this.destroy(w)};var L0;function D0(){if(L0===void 0)L0={};return L0}$0.fromWeb=function(w,k){return D0().newStreamWritableFromWritableStream(w,k)},$0.toWeb=function(w){return D0().newWritableStreamFromStreamWritable(w)}}),IK=S0((Q,J)=>{var $=_1(),q=(d2(),B2(l2)),{isReadable:X,isWritable:Y,isIterable:W,isNodeStream:U,isReadableNodeStream:G,isWritableNodeStream:B,isDuplexNodeStream:K,isReadableStream:j,isWritableStream:F}=n2(),H=U1(),{AbortError:E,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:P}}=r0(),{destroyer:D}=U6(),V=i2(),z=n8(),L=_4(),{createDeferredPromise:A}=e0(),y=M$(),T=globalThis.Blob||q.Blob,d=typeof T<"u"?function(h){return h instanceof T}:function(h){return!1},S=globalThis.AbortController||Q8().AbortController,{FunctionPrototypeCall:v}=T0();class R extends V{constructor(h){super(h);if((h===null||h===void 0?void 0:h.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((h===null||h===void 0?void 0:h.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}J.exports=function h(x,a){if(K(x))return x;if(G(x))return _({readable:x});if(B(x))return _({writable:x});if(U(x))return _({writable:!1,readable:!1});if(j(x))return _({readable:z.fromWeb(x)});if(F(x))return _({writable:L.fromWeb(x)});if(typeof x==="function"){let{value:G0,write:C0,final:p,destroy:H0}=O(x);if(W(G0))return y(R,G0,{objectMode:!0,write:C0,final:p,destroy:H0});let C=G0===null||G0===void 0?void 0:G0.then;if(typeof C==="function"){let i,W0=v(C,G0,(u)=>{if(u!=null)throw new P("nully","body",u)},(u)=>{D(i,u)});return i=new R({objectMode:!0,readable:!1,write:C0,final(u){p(async()=>{try{await W0,$.nextTick(u,null)}catch(B0){$.nextTick(u,B0)}})},destroy:H0})}throw new P("Iterable, AsyncIterable or AsyncFunction",a,G0)}if(d(x))return h(x.arrayBuffer());if(W(x))return y(R,x,{objectMode:!0,writable:!1});if(j(x===null||x===void 0?void 0:x.readable)&&F(x===null||x===void 0?void 0:x.writable))return R.fromWeb(x);if(typeof(x===null||x===void 0?void 0:x.writable)==="object"||typeof(x===null||x===void 0?void 0:x.readable)==="object"){let G0=x!==null&&x!==void 0&&x.readable?G(x===null||x===void 0?void 0:x.readable)?x===null||x===void 0?void 0:x.readable:h(x.readable):void 0,C0=x!==null&&x!==void 0&&x.writable?B(x===null||x===void 0?void 0:x.writable)?x===null||x===void 0?void 0:x.writable:h(x.writable):void 0;return _({readable:G0,writable:C0})}let $0=x===null||x===void 0?void 0:x.then;if(typeof $0==="function"){let G0;return v($0,x,(C0)=>{if(C0!=null)G0.push(C0);G0.push(null)},(C0)=>{D(G0,C0)}),G0=new R({objectMode:!0,writable:!1,read(){}})}throw new g(a,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],x)};function O(h){let{promise:x,resolve:a}=A(),$0=new S,G0=$0.signal;return{value:h(async function*(){while(!0){let C0=x;x=null;let{chunk:p,done:H0,cb:C}=await C0;if($.nextTick(C),H0)return;if(G0.aborted)throw new E(void 0,{cause:G0.reason});({promise:x,resolve:a}=A()),yield p}}(),{signal:G0}),write(C0,p,H0){let C=a;a=null,C({chunk:C0,done:!1,cb:H0})},final(C0){let p=a;a=null,p({done:!0,cb:C0})},destroy(C0,p){$0.abort(),p(C0)}}}function _(h){let x=h.readable&&typeof h.readable.read!=="function"?z.wrap(h.readable):h.readable,a=h.writable,$0=!!X(x),G0=!!Y(a),C0,p,H0,C,i;function W0(u){let B0=C;if(C=null,B0)B0(u);else if(u)i.destroy(u)}if(i=new R({readableObjectMode:!!(x!==null&&x!==void 0&&x.readableObjectMode),writableObjectMode:!!(a!==null&&a!==void 0&&a.writableObjectMode),readable:$0,writable:G0}),G0)H(a,(u)=>{if(G0=!1,u)D(x,u);W0(u)}),i._write=function(u,B0,M0){if(a.write(u,B0))M0();else C0=M0},i._final=function(u){a.end(),p=u},a.on("drain",function(){if(C0){let u=C0;C0=null,u()}}),a.on("finish",function(){if(p){let u=p;p=null,u()}});if($0)H(x,(u)=>{if($0=!1,u)D(x,u);W0(u)}),x.on("readable",function(){if(H0){let u=H0;H0=null,u()}}),x.on("end",function(){i.push(null)}),i._read=function(){while(!0){let u=x.read();if(u===null){H0=i._read;return}if(!i.push(u))return}};return i._destroy=function(u,B0){if(!u&&C!==null)u=new E;if(H0=null,C0=null,p=null,C===null)B0(u);else C=B0,D(a,u),D(x,u)},i}}),i2=S0((Q,J)=>{var{ObjectDefineProperties:$,ObjectGetOwnPropertyDescriptor:q,ObjectKeys:X,ObjectSetPrototypeOf:Y}=T0();J.exports=G;var W=n8(),U=_4();Y(G.prototype,W.prototype),Y(G,W);{let F=X(U.prototype);for(let H=0;H<F.length;H++){let E=F[H];if(!G.prototype[E])G.prototype[E]=U.prototype[E]}}function G(F){if(!(this instanceof G))return new G(F);if(W.call(this,F),U.call(this,F),F){if(this.allowHalfOpen=F.allowHalfOpen!==!1,F.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(F.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}$(G.prototype,{writable:{__proto__:null,...q(U.prototype,"writable")},writableHighWaterMark:{__proto__:null,...q(U.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...q(U.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...q(U.prototype,"writableBuffer")},writableLength:{__proto__:null,...q(U.prototype,"writableLength")},writableFinished:{__proto__:null,...q(U.prototype,"writableFinished")},writableCorked:{__proto__:null,...q(U.prototype,"writableCorked")},writableEnded:{__proto__:null,...q(U.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...q(U.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(F){if(this._readableState&&this._writableState)this._readableState.destroyed=F,this._writableState.destroyed=F}}});var B;function K(){if(B===void 0)B={};return B}G.fromWeb=function(F,H){return K().newStreamDuplexFromReadableWritablePair(F,H)},G.toWeb=function(F){return K().newReadableWritablePairFromDuplex(F)};var j;G.from=function(F){if(!j)j=IK();return j(F,"body")}}),F$=S0((Q,J)=>{var{ObjectSetPrototypeOf:$,Symbol:q}=T0();J.exports=G;var{ERR_METHOD_NOT_IMPLEMENTED:X}=r0().codes,Y=i2(),{getHighWaterMark:W}=i8();$(G.prototype,Y.prototype),$(G,Y);var U=q("kCallback");function G(j){if(!(this instanceof G))return new G(j);let F=j?W(this,j,"readableHighWaterMark",!0):null;if(F===0)j={...j,highWaterMark:null,readableHighWaterMark:F,writableHighWaterMark:j.writableHighWaterMark||0};if(Y.call(this,j),this._readableState.sync=!1,this[U]=null,j){if(typeof j.transform==="function")this._transform=j.transform;if(typeof j.flush==="function")this._flush=j.flush}this.on("prefinish",K)}function B(j){if(typeof this._flush==="function"&&!this.destroyed)this._flush((F,H)=>{if(F){if(j)j(F);else this.destroy(F);return}if(H!=null)this.push(H);if(this.push(null),j)j()});else if(this.push(null),j)j()}function K(){if(this._final!==B)B.call(this)}G.prototype._final=B,G.prototype._transform=function(j,F,H){throw new X("_transform()")},G.prototype._write=function(j,F,H){let E=this._readableState,g=this._writableState,P=E.length;this._transform(j,F,(D,V)=>{if(D){H(D);return}if(V!=null)this.push(V);if(g.ended||P===E.length||E.length<E.highWaterMark)H();else this[U]=H})},G.prototype._read=function(){if(this[U]){let j=this[U];this[U]=null,j()}}}),z$=S0((Q,J)=>{var{ObjectSetPrototypeOf:$}=T0();J.exports=X;var q=F$();$(X.prototype,q.prototype),$(X,q);function X(Y){if(!(this instanceof X))return new X(Y);q.call(this,Y)}X.prototype._transform=function(Y,W,U){U(null,Y)}}),f4=S0((Q,J)=>{var $=_1(),{ArrayIsArray:q,Promise:X,SymbolAsyncIterator:Y,SymbolDispose:W}=T0(),U=U1(),{once:G}=e0(),B=U6(),K=i2(),{aggregateTwoErrors:j,codes:{ERR_INVALID_ARG_TYPE:F,ERR_INVALID_RETURN_VALUE:H,ERR_MISSING_ARGS:E,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:P},AbortError:D}=r0(),{validateFunction:V,validateAbortSignal:z}=J8(),{isIterable:L,isReadable:A,isReadableNodeStream:y,isNodeStream:T,isTransformStream:d,isWebStream:S,isReadableStream:v,isReadableFinished:R}=n2(),O=globalThis.AbortController||Q8().AbortController,_,h,x;function a(u,B0,M0){let A0=!1;u.on("close",()=>{A0=!0});let N0=U(u,{readable:B0,writable:M0},(c)=>{A0=!c});return{destroy:(c)=>{if(A0)return;A0=!0,B.destroyer(u,c||new g("pipe"))},cleanup:N0}}function $0(u){return V(u[u.length-1],"streams[stream.length - 1]"),u.pop()}function G0(u){if(L(u))return u;else if(y(u))return C0(u);throw new F("val",["Readable","Iterable","AsyncIterable"],u)}async function*C0(u){if(!h)h=n8();yield*h.prototype[Y].call(u)}async function p(u,B0,M0,{end:A0}){let N0,c=null,l=(D0)=>{if(D0)N0=D0;if(c){let w=c;c=null,w()}},e=()=>new X((D0,w)=>{if(N0)w(N0);else c=()=>{if(N0)w(N0);else D0()}});B0.on("drain",l);let L0=U(B0,{readable:!1},l);try{if(B0.writableNeedDrain)await e();for await(let D0 of u)if(!B0.write(D0))await e();if(A0)B0.end(),await e();M0()}catch(D0){M0(N0!==D0?j(N0,D0):D0)}finally{L0(),B0.off("drain",l)}}async function H0(u,B0,M0,{end:A0}){if(d(B0))B0=B0.writable;let N0=B0.getWriter();try{for await(let c of u)await N0.ready,N0.write(c).catch(()=>{});if(await N0.ready,A0)await N0.close();M0()}catch(c){try{await N0.abort(c),M0(c)}catch(l){M0(l)}}}function C(...u){return i(u,G($0(u)))}function i(u,B0,M0){if(u.length===1&&q(u[0]))u=u[0];if(u.length<2)throw new E("streams");let A0=new O,N0=A0.signal,c=M0===null||M0===void 0?void 0:M0.signal,l=[];z(c,"options.signal");function e(){q0(new D)}x=x||e0().addAbortListener;let L0;if(c)L0=x(c,e);let D0,w,k=[],m=0;function t(o){q0(o,--m===0)}function q0(o,j0){var Z0;if(o&&(!D0||D0.code==="ERR_STREAM_PREMATURE_CLOSE"))D0=o;if(!D0&&!j0)return;while(k.length)k.shift()(D0);if((Z0=L0)===null||Z0===void 0||Z0[W](),A0.abort(),j0){if(!D0)l.forEach((W2)=>W2());$.nextTick(B0,D0,w)}}let Q0;for(let o=0;o<u.length;o++){let j0=u[o],Z0=o<u.length-1,W2=o>0,U2=Z0||(M0===null||M0===void 0?void 0:M0.end)!==!1,Z1=o===u.length-1;if(T(j0)){let l0=function(s0){if(s0&&s0.name!=="AbortError"&&s0.code!=="ERR_STREAM_PREMATURE_CLOSE")t(s0)};var I=l0;if(U2){let{destroy:s0,cleanup:q6}=a(j0,Z0,W2);if(k.push(s0),A(j0)&&Z1)l.push(q6)}if(j0.on("error",l0),A(j0)&&Z1)l.push(()=>{j0.removeListener("error",l0)})}if(o===0)if(typeof j0==="function"){if(Q0=j0({signal:N0}),!L(Q0))throw new H("Iterable, AsyncIterable or Stream","source",Q0)}else if(L(j0)||y(j0)||d(j0))Q0=j0;else Q0=K.from(j0);else if(typeof j0==="function"){if(d(Q0)){var n;Q0=G0((n=Q0)===null||n===void 0?void 0:n.readable)}else Q0=G0(Q0);if(Q0=j0(Q0,{signal:N0}),Z0){if(!L(Q0,!0))throw new H("AsyncIterable",`transform[${o-1}]`,Q0)}else{var X0;if(!_)_=z$();let l0=new _({objectMode:!0}),s0=(X0=Q0)===null||X0===void 0?void 0:X0.then;if(typeof s0==="function")m++,s0.call(Q0,(I2)=>{if(w=I2,I2!=null)l0.write(I2);if(U2)l0.end();$.nextTick(t)},(I2)=>{l0.destroy(I2),$.nextTick(t,I2)});else if(L(Q0,!0))m++,p(Q0,l0,t,{end:U2});else if(v(Q0)||d(Q0)){let I2=Q0.readable||Q0;m++,p(I2,l0,t,{end:U2})}else throw new H("AsyncIterable or Promise","destination",Q0);Q0=l0;let{destroy:q6,cleanup:X6}=a(Q0,!1,!0);if(k.push(q6),Z1)l.push(X6)}}else if(T(j0)){if(y(Q0)){m+=2;let l0=W0(Q0,j0,t,{end:U2});if(A(j0)&&Z1)l.push(l0)}else if(d(Q0)||v(Q0)){let l0=Q0.readable||Q0;m++,p(l0,j0,t,{end:U2})}else if(L(Q0))m++,p(Q0,j0,t,{end:U2});else throw new F("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Q0);Q0=j0}else if(S(j0)){if(y(Q0))m++,H0(G0(Q0),j0,t,{end:U2});else if(v(Q0)||L(Q0))m++,H0(Q0,j0,t,{end:U2});else if(d(Q0))m++,H0(Q0.readable,j0,t,{end:U2});else throw new F("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Q0);Q0=j0}else Q0=K.from(j0)}if(N0!==null&&N0!==void 0&&N0.aborted||c!==null&&c!==void 0&&c.aborted)$.nextTick(e);return Q0}function W0(u,B0,M0,{end:A0}){let N0=!1;if(B0.on("close",()=>{if(!N0)M0(new P)}),u.pipe(B0,{end:!1}),A0){let l=function(){N0=!0,B0.end()};var c=l;if(R(u))$.nextTick(l);else u.once("end",l)}else M0();return U(u,{readable:!0,writable:!1},(l)=>{let e=u._readableState;if(l&&l.code==="ERR_STREAM_PREMATURE_CLOSE"&&e&&e.ended&&!e.errored&&!e.errorEmitted)u.once("end",M0).once("error",M0);else M0(l)}),U(B0,{readable:!1,writable:!0},M0)}J.exports={pipelineImpl:i,pipeline:C}}),L$=S0((Q,J)=>{var{pipeline:$}=f4(),q=i2(),{destroyer:X}=U6(),{isNodeStream:Y,isReadable:W,isWritable:U,isWebStream:G,isTransformStream:B,isWritableStream:K,isReadableStream:j}=n2(),{AbortError:F,codes:{ERR_INVALID_ARG_VALUE:H,ERR_MISSING_ARGS:E}}=r0(),g=U1();J.exports=function(...P){if(P.length===0)throw new E("streams");if(P.length===1)return q.from(P[0]);let D=[...P];if(typeof P[0]==="function")P[0]=q.from(P[0]);if(typeof P[P.length-1]==="function"){let O=P.length-1;P[O]=q.from(P[O])}for(let O=0;O<P.length;++O){if(!Y(P[O])&&!G(P[O]))continue;if(O<P.length-1&&!(W(P[O])||j(P[O])||B(P[O])))throw new H(`streams[${O}]`,D[O],"must be readable");if(O>0&&!(U(P[O])||K(P[O])||B(P[O])))throw new H(`streams[${O}]`,D[O],"must be writable")}let V,z,L,A,y;function T(O){let _=A;if(A=null,_)_(O);else if(O)y.destroy(O);else if(!R&&!v)y.destroy()}let d=P[0],S=$(P,T),v=!!(U(d)||K(d)||B(d)),R=!!(W(S)||j(S)||B(S));if(y=new q({writableObjectMode:!!(d!==null&&d!==void 0&&d.writableObjectMode),readableObjectMode:!!(S!==null&&S!==void 0&&S.readableObjectMode),writable:v,readable:R}),v){if(Y(d))y._write=function(_,h,x){if(d.write(_,h))x();else V=x},y._final=function(_){d.end(),z=_},d.on("drain",function(){if(V){let _=V;V=null,_()}});else if(G(d)){let _=(B(d)?d.writable:d).getWriter();y._write=async function(h,x,a){try{await _.ready,_.write(h).catch(()=>{}),a()}catch($0){a($0)}},y._final=async function(h){try{await _.ready,_.close().catch(()=>{}),z=h}catch(x){h(x)}}}let O=B(S)?S.readable:S;g(O,()=>{if(z){let _=z;z=null,_()}})}if(R){if(Y(S))S.on("readable",function(){if(L){let O=L;L=null,O()}}),S.on("end",function(){y.push(null)}),y._read=function(){while(!0){let O=S.read();if(O===null){L=y._read;return}if(!y.push(O))return}};else if(G(S)){let O=(B(S)?S.readable:S).getReader();y._read=async function(){while(!0)try{let{value:_,done:h}=await O.read();if(!y.push(_))return;if(h){y.push(null);return}}catch{return}}}}return y._destroy=function(O,_){if(!O&&A!==null)O=new F;if(L=null,V=null,z=null,A===null)_(O);else if(A=_,Y(S))X(S,O)},y}}),SK=S0((Q,J)=>{var $=globalThis.AbortController||Q8().AbortController,{codes:{ERR_INVALID_ARG_VALUE:q,ERR_INVALID_ARG_TYPE:X,ERR_MISSING_ARGS:Y,ERR_OUT_OF_RANGE:W},AbortError:U}=r0(),{validateAbortSignal:G,validateInteger:B,validateObject:K}=J8(),j=T0().Symbol("kWeak"),F=T0().Symbol("kResistStopPropagation"),{finished:H}=U1(),E=L$(),{addAbortSignalNoValidate:g}=d8(),{isWritable:P,isNodeStream:D}=n2(),{deprecate:V}=e0(),{ArrayPrototypePush:z,Boolean:L,MathFloor:A,Number:y,NumberIsNaN:T,Promise:d,PromiseReject:S,PromiseResolve:v,PromisePrototypeThen:R,Symbol:O}=T0(),_=O("kEmpty"),h=O("kEof");function x(c,l){if(l!=null)K(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)G(l.signal,"options.signal");if(D(c)&&!P(c))throw new q("stream",c,"must be writable");let e=E(this,c);if(l!==null&&l!==void 0&&l.signal)g(l.signal,e);return e}function a(c,l){if(typeof c!=="function")throw new X("fn",["Function","AsyncFunction"],c);if(l!=null)K(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)G(l.signal,"options.signal");let e=1;if((l===null||l===void 0?void 0:l.concurrency)!=null)e=A(l.concurrency);let L0=e-1;if((l===null||l===void 0?void 0:l.highWaterMark)!=null)L0=A(l.highWaterMark);return B(e,"options.concurrency",1),B(L0,"options.highWaterMark",0),L0+=e,async function*(){let D0=e0().AbortSignalAny([l===null||l===void 0?void 0:l.signal].filter(L)),w=this,k=[],m={signal:D0},t,q0,Q0=!1,I=0;function n(){Q0=!0,X0()}function X0(){I-=1,o()}function o(){if(q0&&!Q0&&I<e&&k.length<L0)q0(),q0=null}async function j0(){try{for await(let Z0 of w){if(Q0)return;if(D0.aborted)throw new U;try{if(Z0=c(Z0,m),Z0===_)continue;Z0=v(Z0)}catch(W2){Z0=S(W2)}if(I+=1,R(Z0,X0,n),k.push(Z0),t)t(),t=null;if(!Q0&&(k.length>=L0||I>=e))await new d((W2)=>{q0=W2})}k.push(h)}catch(Z0){let W2=S(Z0);R(W2,X0,n),k.push(W2)}finally{if(Q0=!0,t)t(),t=null}}j0();try{while(!0){while(k.length>0){let Z0=await k[0];if(Z0===h)return;if(D0.aborted)throw new U;if(Z0!==_)yield Z0;k.shift(),o()}await new d((Z0)=>{t=Z0})}}finally{if(Q0=!0,q0)q0(),q0=null}}.call(this)}function $0(c=void 0){if(c!=null)K(c,"options");if((c===null||c===void 0?void 0:c.signal)!=null)G(c.signal,"options.signal");return async function*(){let l=0;for await(let L0 of this){var e;if(c!==null&&c!==void 0&&(e=c.signal)!==null&&e!==void 0&&e.aborted)throw new U({cause:c.signal.reason});yield[l++,L0]}}.call(this)}async function G0(c,l=void 0){for await(let e of C.call(this,c,l))return!0;return!1}async function C0(c,l=void 0){if(typeof c!=="function")throw new X("fn",["Function","AsyncFunction"],c);return!await G0.call(this,async(...e)=>{return!await c(...e)},l)}async function p(c,l){for await(let e of C.call(this,c,l))return e;return}async function H0(c,l){if(typeof c!=="function")throw new X("fn",["Function","AsyncFunction"],c);async function e(L0,D0){return await c(L0,D0),_}for await(let L0 of a.call(this,e,l));}function C(c,l){if(typeof c!=="function")throw new X("fn",["Function","AsyncFunction"],c);async function e(L0,D0){if(await c(L0,D0))return L0;return _}return a.call(this,e,l)}class i extends Y{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function W0(c,l,e){var L0;if(typeof c!=="function")throw new X("reducer",["Function","AsyncFunction"],c);if(e!=null)K(e,"options");if((e===null||e===void 0?void 0:e.signal)!=null)G(e.signal,"options.signal");let D0=arguments.length>1;if(e!==null&&e!==void 0&&(L0=e.signal)!==null&&L0!==void 0&&L0.aborted){let q0=new U(void 0,{cause:e.signal.reason});throw this.once("error",()=>{}),await H(this.destroy(q0)),q0}let w=new $,k=w.signal;if(e!==null&&e!==void 0&&e.signal){let q0={once:!0,[j]:this,[F]:!0};e.signal.addEventListener("abort",()=>w.abort(),q0)}let m=!1;try{for await(let q0 of this){var t;if(m=!0,e!==null&&e!==void 0&&(t=e.signal)!==null&&t!==void 0&&t.aborted)throw new U;if(!D0)l=q0,D0=!0;else l=await c(l,q0,{signal:k})}if(!m&&!D0)throw new i}finally{w.abort()}return l}async function u(c){if(c!=null)K(c,"options");if((c===null||c===void 0?void 0:c.signal)!=null)G(c.signal,"options.signal");let l=[];for await(let L0 of this){var e;if(c!==null&&c!==void 0&&(e=c.signal)!==null&&e!==void 0&&e.aborted)throw new U(void 0,{cause:c.signal.reason});z(l,L0)}return l}function B0(c,l){let e=a.call(this,c,l);return async function*(){for await(let L0 of e)yield*L0}.call(this)}function M0(c){if(c=y(c),T(c))return 0;if(c<0)throw new W("number",">= 0",c);return c}function A0(c,l=void 0){if(l!=null)K(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)G(l.signal,"options.signal");return c=M0(c),async function*(){var e;if(l!==null&&l!==void 0&&(e=l.signal)!==null&&e!==void 0&&e.aborted)throw new U;for await(let D0 of this){var L0;if(l!==null&&l!==void 0&&(L0=l.signal)!==null&&L0!==void 0&&L0.aborted)throw new U;if(c--<=0)yield D0}}.call(this)}function N0(c,l=void 0){if(l!=null)K(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)G(l.signal,"options.signal");return c=M0(c),async function*(){var e;if(l!==null&&l!==void 0&&(e=l.signal)!==null&&e!==void 0&&e.aborted)throw new U;for await(let D0 of this){var L0;if(l!==null&&l!==void 0&&(L0=l.signal)!==null&&L0!==void 0&&L0.aborted)throw new U;if(c-- >0)yield D0;if(c<=0)return}}.call(this)}J.exports.streamReturningOperators={asIndexedPairs:V($0,"readable.asIndexedPairs will be removed in a future version."),drop:A0,filter:C,flatMap:B0,map:a,take:N0,compose:x},J.exports.promiseReturningOperators={every:C0,forEach:H0,reduce:W0,toArray:u,some:G0,find:p}}),N$=S0((Q,J)=>{var{ArrayPrototypePop:$,Promise:q}=T0(),{isIterable:X,isNodeStream:Y,isWebStream:W}=n2(),{pipelineImpl:U}=f4(),{finished:G}=U1();D$();function B(...K){return new q((j,F)=>{let H,E,g=K[K.length-1];if(g&&typeof g==="object"&&!Y(g)&&!X(g)&&!W(g)){let P=$(K);H=P.signal,E=P.end}U(K,(P,D)=>{if(P)F(P);else j(D)},{signal:H,end:E})})}J.exports={finished:G,pipeline:B}}),D$=S0((Q,J)=>{var{Buffer:$}=(d2(),B2(l2)),{ObjectDefineProperty:q,ObjectKeys:X,ReflectApply:Y}=T0(),{promisify:{custom:W}}=e0(),{streamReturningOperators:U,promiseReturningOperators:G}=SK(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:B}}=r0(),K=L$(),{setDefaultHighWaterMark:j,getDefaultHighWaterMark:F}=i8(),{pipeline:H}=f4(),{destroyer:E}=U6(),g=U1(),P=N$(),D=n2(),V=J.exports=g4().Stream;V.isDestroyed=D.isDestroyed,V.isDisturbed=D.isDisturbed,V.isErrored=D.isErrored,V.isReadable=D.isReadable,V.isWritable=D.isWritable,V.Readable=n8();for(let L of X(U)){let A=function(...T){if(new.target)throw B();return V.Readable.from(Y(y,this,T))},y=U[L];q(A,"name",{__proto__:null,value:y.name}),q(A,"length",{__proto__:null,value:y.length}),q(V.Readable.prototype,L,{__proto__:null,value:A,enumerable:!1,configurable:!0,writable:!0})}for(let L of X(G)){let A=function(...T){if(new.target)throw B();return Y(y,this,T)},y=G[L];q(A,"name",{__proto__:null,value:y.name}),q(A,"length",{__proto__:null,value:y.length}),q(V.Readable.prototype,L,{__proto__:null,value:A,enumerable:!1,configurable:!0,writable:!0})}V.Writable=_4(),V.Duplex=i2(),V.Transform=F$(),V.PassThrough=z$(),V.pipeline=H;var{addAbortSignal:z}=d8();V.addAbortSignal=z,V.finished=g,V.destroy=E,V.compose=K,V.setDefaultHighWaterMark=j,V.getDefaultHighWaterMark=F,q(V,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return P}}),q(H,W,{__proto__:null,enumerable:!0,get(){return P.pipeline}}),q(g,W,{__proto__:null,enumerable:!0,get(){return P.finished}}),V.Stream=V,V._isUint8Array=function(L){return L instanceof Uint8Array},V._uint8ArrayToBuffer=function(L){return $.from(L.buffer,L.byteOffset,L.byteLength)}}),ZK=S0((Q,J)=>{var $=o8();{let q=D$(),X=N$(),Y=q.Readable.destroy;J.exports=q.Readable,J.exports._uint8ArrayToBuffer=q._uint8ArrayToBuffer,J.exports._isUint8Array=q._isUint8Array,J.exports.isDisturbed=q.isDisturbed,J.exports.isErrored=q.isErrored,J.exports.isReadable=q.isReadable,J.exports.Readable=q.Readable,J.exports.Writable=q.Writable,J.exports.Duplex=q.Duplex,J.exports.Transform=q.Transform,J.exports.PassThrough=q.PassThrough,J.exports.addAbortSignal=q.addAbortSignal,J.exports.finished=q.finished,J.exports.destroy=q.destroy,J.exports.destroy=Y,J.exports.pipeline=q.pipeline,J.exports.compose=q.compose,Object.defineProperty(q,"promises",{configurable:!0,enumerable:!0,get(){return X}}),J.exports.Stream=q.Stream}J.exports.default=J.exports});C$.exports=ZK()});var o2=f((EK)=>{EK.base64=!0;EK.array=!0;EK.string=!0;EK.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";EK.nodebuffer=typeof Buffer<"u";EK.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")EK.blob=!1;else{r8=new ArrayBuffer(0);try{EK.blob=new Blob([r8],{type:"application/zip"}).size===0}catch(Q){try{h4=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,a8=new h4,a8.append(r8),EK.blob=a8.getBlob("application/zip").size===0}catch(J){EK.blob=!1}}}var r8,h4,a8;try{EK.nodestream=!!o8().Readable}catch(Q){EK.nodestream=!1}});var b4=f((bK)=>{var yK=x0(),hK=o2(),v2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";bK.encode=function(Q){var J=[],$,q,X,Y,W,U,G,B=0,K=Q.length,j=K,F=yK.getTypeOf(Q)!=="string";while(B<Q.length){if(j=K-B,!F)$=Q.charCodeAt(B++),q=B<K?Q.charCodeAt(B++):0,X=B<K?Q.charCodeAt(B++):0;else $=Q[B++],q=B<K?Q[B++]:0,X=B<K?Q[B++]:0;Y=$>>2,W=($&3)<<4|q>>4,U=j>1?(q&15)<<2|X>>6:64,G=j>2?X&63:64,J.push(v2.charAt(Y)+v2.charAt(W)+v2.charAt(U)+v2.charAt(G))}return J.join("")};bK.decode=function(Q){var J,$,q,X,Y,W,U,G=0,B=0,K="data:";if(Q.substr(0,K.length)===K)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var j=Q.length*3/4;if(Q.charAt(Q.length-1)===v2.charAt(64))j--;if(Q.charAt(Q.length-2)===v2.charAt(64))j--;if(j%1!==0)throw Error("Invalid base64 input, bad content length.");var F;if(hK.uint8array)F=new Uint8Array(j|0);else F=Array(j|0);while(G<Q.length){if(X=v2.indexOf(Q.charAt(G++)),Y=v2.indexOf(Q.charAt(G++)),W=v2.indexOf(Q.charAt(G++)),U=v2.indexOf(Q.charAt(G++)),J=X<<2|Y>>4,$=(Y&15)<<4|W>>2,q=(W&3)<<6|U,F[B++]=J,W!==64)F[B++]=$;if(U!==64)F[B++]=q}return F}});var $8=f((UP,O$)=>{O$.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,J){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,J);else{if(typeof Q==="number")throw Error('The "data" argument must not be a number');return new Buffer(Q,J)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var J=new Buffer(Q);return J.fill(0),J}},isBuffer:function(Q){return Buffer.isBuffer(Q)},isStream:function(Q){return Q&&typeof Q.on==="function"&&typeof Q.pause==="function"&&typeof Q.resume==="function"}}});var R$=f((GP,A$)=>{var P$=global.MutationObserver||global.WebKitMutationObserver,q8;if(P$)t8=0,m4=new P$(s8),e8=global.document.createTextNode(""),m4.observe(e8,{characterData:!0}),q8=function(){e8.data=t8=++t8%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")Q5=new global.MessageChannel,Q5.port1.onmessage=s8,q8=function(){Q5.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))q8=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){s8(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else q8=function(){setTimeout(s8,0)};var t8,m4,e8,Q5,u4,X8=[];function s8(){u4=!0;var Q,J,$=X8.length;while($){J=X8,X8=[],Q=-1;while(++Q<$)J[Q]();$=X8.length}u4=!1}A$.exports=cK;function cK(Q){if(X8.push(Q)===1&&!u4)q8()}});var E$=f((BP,v$)=>{var pK=R$();function G6(){}var i0={},w$=["REJECTED"],c4=["FULFILLED"],I$=["PENDING"];v$.exports=G1;function G1(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=I$,this.queue=[],this.outcome=void 0,Q!==G6)S$(this,Q)}G1.prototype.finally=function(Q){if(typeof Q!=="function")return this;var J=this.constructor;return this.then($,q);function $(X){function Y(){return X}return J.resolve(Q()).then(Y)}function q(X){function Y(){throw X}return J.resolve(Q()).then(Y)}};G1.prototype.catch=function(Q){return this.then(null,Q)};G1.prototype.then=function(Q,J){if(typeof Q!=="function"&&this.state===c4||typeof J!=="function"&&this.state===w$)return this;var $=new this.constructor(G6);if(this.state!==I$){var q=this.state===c4?Q:J;p4($,q,this.outcome)}else this.queue.push(new Y8($,Q,J));return $};function Y8(Q,J,$){if(this.promise=Q,typeof J==="function")this.onFulfilled=J,this.callFulfilled=this.otherCallFulfilled;if(typeof $==="function")this.onRejected=$,this.callRejected=this.otherCallRejected}Y8.prototype.callFulfilled=function(Q){i0.resolve(this.promise,Q)};Y8.prototype.otherCallFulfilled=function(Q){p4(this.promise,this.onFulfilled,Q)};Y8.prototype.callRejected=function(Q){i0.reject(this.promise,Q)};Y8.prototype.otherCallRejected=function(Q){p4(this.promise,this.onRejected,Q)};function p4(Q,J,$){pK(function(){var q;try{q=J($)}catch(X){return i0.reject(Q,X)}if(q===Q)i0.reject(Q,TypeError("Cannot resolve promise with itself"));else i0.resolve(Q,q)})}i0.resolve=function(Q,J){var $=Z$(lK,J);if($.status==="error")return i0.reject(Q,$.value);var q=$.value;if(q)S$(Q,q);else{Q.state=c4,Q.outcome=J;var X=-1,Y=Q.queue.length;while(++X<Y)Q.queue[X].callFulfilled(J)}return Q};i0.reject=function(Q,J){Q.state=w$,Q.outcome=J;var $=-1,q=Q.queue.length;while(++$<q)Q.queue[$].callRejected(J);return Q};function lK(Q){var J=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof J==="function")return function(){J.apply(Q,arguments)}}function S$(Q,J){var $=!1;function q(U){if($)return;$=!0,i0.reject(Q,U)}function X(U){if($)return;$=!0,i0.resolve(Q,U)}function Y(){J(X,q)}var W=Z$(Y);if(W.status==="error")q(W.value)}function Z$(Q,J){var $={};try{$.value=Q(J),$.status="success"}catch(q){$.status="error",$.value=q}return $}G1.resolve=dK;function dK(Q){if(Q instanceof this)return Q;return i0.resolve(new this(G6),Q)}G1.reject=iK;function iK(Q){var J=new this(G6);return i0.reject(J,Q)}G1.all=nK;function nK(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,q=!1;if(!$)return this.resolve([]);var X=Array($),Y=0,W=-1,U=new this(G6);while(++W<$)G(Q[W],W);return U;function G(B,K){J.resolve(B).then(j,function(F){if(!q)q=!0,i0.reject(U,F)});function j(F){if(X[K]=F,++Y===$&&!q)q=!0,i0.resolve(U,X)}}}G1.race=oK;function oK(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,q=!1;if(!$)return this.resolve([]);var X=-1,Y=new this(G6);while(++X<$)W(Q[X]);return Y;function W(U){J.resolve(U).then(function(G){if(!q)q=!0,i0.resolve(Y,G)},function(G){if(!q)q=!0,i0.reject(Y,G)})}}});var B6=f((KP,k$)=>{var l4=null;if(typeof Promise<"u")l4=Promise;else l4=E$();k$.exports={Promise:l4}});var x$=f((T$)=>{(function(Q,J){if(Q.setImmediate)return;var $=1,q={},X=!1,Y=Q.document,W;function U(V){if(typeof V!=="function")V=Function(""+V);var z=Array(arguments.length-1);for(var L=0;L<z.length;L++)z[L]=arguments[L+1];var A={callback:V,args:z};return q[$]=A,W($),$++}function G(V){delete q[V]}function B(V){var{callback:z,args:L}=V;switch(L.length){case 0:z();break;case 1:z(L[0]);break;case 2:z(L[0],L[1]);break;case 3:z(L[0],L[1],L[2]);break;default:z.apply(J,L);break}}function K(V){if(X)setTimeout(K,0,V);else{var z=q[V];if(z){X=!0;try{B(z)}finally{G(V),X=!1}}}}function j(){W=function(V){process.nextTick(function(){K(V)})}}function F(){if(Q.postMessage&&!Q.importScripts){var V=!0,z=Q.onmessage;return Q.onmessage=function(){V=!1},Q.postMessage("","*"),Q.onmessage=z,V}}function H(){var V="setImmediate$"+Math.random()+"$",z=function(L){if(L.source===Q&&typeof L.data==="string"&&L.data.indexOf(V)===0)K(+L.data.slice(V.length))};if(Q.addEventListener)Q.addEventListener("message",z,!1);else Q.attachEvent("onmessage",z);W=function(L){Q.postMessage(V+L,"*")}}function E(){var V=new MessageChannel;V.port1.onmessage=function(z){var L=z.data;K(L)},W=function(z){V.port2.postMessage(z)}}function g(){var V=Y.documentElement;W=function(z){var L=Y.createElement("script");L.onreadystatechange=function(){K(z),L.onreadystatechange=null,V.removeChild(L),L=null},V.appendChild(L)}}function P(){W=function(V){setTimeout(K,0,V)}}var D=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(D=D&&D.setTimeout?D:Q,{}.toString.call(Q.process)==="[object process]")j();else if(F())H();else if(Q.MessageChannel)E();else if(Y&&"onreadystatechange"in Y.createElement("script"))g();else P();D.setImmediate=U,D.clearImmediate=G})(typeof self>"u"?typeof global>"u"?T$:global:self)});var x0=f((sK)=>{var B1=o2(),rK=b4(),K6=$8(),d4=B6();x$();function aK(Q){var J=null;if(B1.uint8array)J=new Uint8Array(Q.length);else J=Array(Q.length);return $5(Q,J)}sK.newBlob=function(Q,J){sK.checkSupport("blob");try{return new Blob([Q],{type:J})}catch(X){try{var $=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,q=new $;return q.append(Q),q.getBlob(J)}catch(Y){throw Error("Bug : can't construct the Blob.")}}};function W8(Q){return Q}function $5(Q,J){for(var $=0;$<Q.length;++$)J[$]=Q.charCodeAt($)&255;return J}var J5={stringifyByChunk:function(Q,J,$){var q=[],X=0,Y=Q.length;if(Y<=$)return String.fromCharCode.apply(null,Q);while(X<Y){if(J==="array"||J==="nodebuffer")q.push(String.fromCharCode.apply(null,Q.slice(X,Math.min(X+$,Y))));else q.push(String.fromCharCode.apply(null,Q.subarray(X,Math.min(X+$,Y))));X+=$}return q.join("")},stringifyByChar:function(Q){var J="";for(var $=0;$<Q.length;$++)J+=String.fromCharCode(Q[$]);return J},applyCanBeUsed:{uint8array:function(){try{return B1.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return B1.nodebuffer&&String.fromCharCode.apply(null,K6.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function U8(Q){var J=65536,$=sK.getTypeOf(Q),q=!0;if($==="uint8array")q=J5.applyCanBeUsed.uint8array;else if($==="nodebuffer")q=J5.applyCanBeUsed.nodebuffer;if(q)while(J>1)try{return J5.stringifyByChunk(Q,$,J)}catch(X){J=Math.floor(J/2)}return J5.stringifyByChar(Q)}sK.applyFromCharCode=U8;function q5(Q,J){for(var $=0;$<Q.length;$++)J[$]=Q[$];return J}var K1={};K1.string={string:W8,array:function(Q){return $5(Q,Array(Q.length))},arraybuffer:function(Q){return K1.string.uint8array(Q).buffer},uint8array:function(Q){return $5(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return $5(Q,K6.allocBuffer(Q.length))}};K1.array={string:U8,array:W8,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return K6.newBufferFrom(Q)}};K1.arraybuffer={string:function(Q){return U8(new Uint8Array(Q))},array:function(Q){return q5(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:W8,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return K6.newBufferFrom(new Uint8Array(Q))}};K1.uint8array={string:U8,array:function(Q){return q5(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:W8,nodebuffer:function(Q){return K6.newBufferFrom(Q)}};K1.nodebuffer={string:U8,array:function(Q){return q5(Q,Array(Q.length))},arraybuffer:function(Q){return K1.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return q5(Q,new Uint8Array(Q.length))},nodebuffer:W8};sK.transformTo=function(Q,J){if(!J)J="";if(!Q)return J;sK.checkSupport(Q);var $=sK.getTypeOf(J),q=K1[$][Q](J);return q};sK.resolve=function(Q){var J=Q.split("/"),$=[];for(var q=0;q<J.length;q++){var X=J[q];if(X==="."||X===""&&q!==0&&q!==J.length-1)continue;else if(X==="..")$.pop();else $.push(X)}return $.join("/")};sK.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(B1.nodebuffer&&K6.isBuffer(Q))return"nodebuffer";if(B1.uint8array&&Q instanceof Uint8Array)return"uint8array";if(B1.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};sK.checkSupport=function(Q){var J=B1[Q.toLowerCase()];if(!J)throw Error(Q+" is not supported by this platform")};sK.MAX_VALUE_16BITS=65535;sK.MAX_VALUE_32BITS=-1;sK.pretty=function(Q){var J="",$,q;for(q=0;q<(Q||"").length;q++)$=Q.charCodeAt(q),J+="\\x"+($<16?"0":"")+$.toString(16).toUpperCase();return J};sK.delay=function(Q,J,$){setImmediate(function(){Q.apply($||null,J||[])})};sK.inherits=function(Q,J){var $=function(){};$.prototype=J.prototype,Q.prototype=new $};sK.extend=function(){var Q={},J,$;for(J=0;J<arguments.length;J++)for($ in arguments[J])if(Object.prototype.hasOwnProperty.call(arguments[J],$)&&typeof Q[$]>"u")Q[$]=arguments[J][$];return Q};sK.prepareContent=function(Q,J,$,q,X){var Y=d4.Promise.resolve(J).then(function(W){var U=B1.blob&&(W instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(W))!==-1);if(U&&typeof FileReader<"u")return new d4.Promise(function(G,B){var K=new FileReader;K.onload=function(j){G(j.target.result)},K.onerror=function(j){B(j.target.error)},K.readAsArrayBuffer(W)});else return W});return Y.then(function(W){var U=sK.getTypeOf(W);if(!U)return d4.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(U==="arraybuffer")W=sK.transformTo("uint8array",W);else if(U==="string"){if(X)W=rK.decode(W);else if($){if(q!==!0)W=aK(W)}}return W})}});var q2=f((jP,y$)=>{function f$(Q){this.name=Q||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}f$.prototype={push:function(Q){this.emit("data",Q)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Q){this.emit("error",Q)}return!0},error:function(Q){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=Q;else{if(this.isFinished=!0,this.emit("error",Q),this.previous)this.previous.error(Q);this.cleanUp()}return!0},on:function(Q,J){return this._listeners[Q].push(J),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,J){if(this._listeners[Q])for(var $=0;$<this._listeners[Q].length;$++)this._listeners[Q][$].call(this,J)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var J=this;return Q.on("data",function($){J.processChunk($)}),Q.on("end",function(){J.end()}),Q.on("error",function($){J.error($)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var Q=!1;if(this.generatedError)this.error(this.generatedError),Q=!0;if(this.previous)this.previous.resume();return!Q},flush:function(){},processChunk:function(Q){this.push(Q)},withStreamInfo:function(Q,J){return this.extraStreamInfo[Q]=J,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Q in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Q))continue;this.streamInfo[Q]=this.extraStreamInfo[Q]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var Q="Worker "+this.name;if(this.previous)return this.previous+" -> "+Q;else return Q}};y$.exports=f$});var H6=f((HV)=>{var V6=x0(),f1=o2(),GV=$8(),X5=q2(),G8=Array(256);for(E2=0;E2<256;E2++)G8[E2]=E2>=252?6:E2>=248?5:E2>=240?4:E2>=224?3:E2>=192?2:1;var E2;G8[254]=G8[254]=1;var BV=function(Q){var J,$,q,X,Y,W=Q.length,U=0;for(X=0;X<W;X++){if($=Q.charCodeAt(X),($&64512)===55296&&X+1<W){if(q=Q.charCodeAt(X+1),(q&64512)===56320)$=65536+($-55296<<10)+(q-56320),X++}U+=$<128?1:$<2048?2:$<65536?3:4}if(f1.uint8array)J=new Uint8Array(U);else J=Array(U);for(Y=0,X=0;Y<U;X++){if($=Q.charCodeAt(X),($&64512)===55296&&X+1<W){if(q=Q.charCodeAt(X+1),(q&64512)===56320)$=65536+($-55296<<10)+(q-56320),X++}if($<128)J[Y++]=$;else if($<2048)J[Y++]=192|$>>>6,J[Y++]=128|$&63;else if($<65536)J[Y++]=224|$>>>12,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63;else J[Y++]=240|$>>>18,J[Y++]=128|$>>>12&63,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63}return J},KV=function(Q,J){var $;if(J=J||Q.length,J>Q.length)J=Q.length;$=J-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return J;if($===0)return J;return $+G8[Q[$]]>J?$:J},VV=function(Q){var J,$,q,X,Y=Q.length,W=Array(Y*2);for($=0,J=0;J<Y;){if(q=Q[J++],q<128){W[$++]=q;continue}if(X=G8[q],X>4){W[$++]=65533,J+=X-1;continue}q&=X===2?31:X===3?15:7;while(X>1&&J<Y)q=q<<6|Q[J++]&63,X--;if(X>1){W[$++]=65533;continue}if(q<65536)W[$++]=q;else q-=65536,W[$++]=55296|q>>10&1023,W[$++]=56320|q&1023}if(W.length!==$)if(W.subarray)W=W.subarray(0,$);else W.length=$;return V6.applyFromCharCode(W)};HV.utf8encode=function(J){if(f1.nodebuffer)return GV.newBufferFrom(J,"utf-8");return BV(J)};HV.utf8decode=function(J){if(f1.nodebuffer)return V6.transformTo("nodebuffer",J).toString("utf-8");return J=V6.transformTo(f1.uint8array?"uint8array":"array",J),VV(J)};function Y5(){X5.call(this,"utf-8 decode"),this.leftOver=null}V6.inherits(Y5,X5);Y5.prototype.processChunk=function(Q){var J=V6.transformTo(f1.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(f1.uint8array){var $=J;J=new Uint8Array($.length+this.leftOver.length),J.set(this.leftOver,0),J.set($,this.leftOver.length)}else J=this.leftOver.concat(J);this.leftOver=null}var q=KV(J),X=J;if(q!==J.length)if(f1.uint8array)X=J.subarray(0,q),this.leftOver=J.subarray(q,J.length);else X=J.slice(0,q),this.leftOver=J.slice(q,J.length);this.push({data:HV.utf8decode(X),meta:Q.meta})};Y5.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:HV.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};HV.Utf8DecodeWorker=Y5;function n4(){X5.call(this,"utf-8 encode")}V6.inherits(n4,X5);n4.prototype.processChunk=function(Q){this.push({data:HV.utf8encode(Q.data),meta:Q.meta})};HV.Utf8EncodeWorker=n4});var c$=f((FP,u$)=>{var b$=q2(),m$=x0();function r4(Q){b$.call(this,"ConvertWorker to "+Q),this.destType=Q}m$.inherits(r4,b$);r4.prototype.processChunk=function(Q){this.push({data:m$.transformTo(this.destType,Q.data),meta:Q.meta})};u$.exports=r4});var d$=f((zP,l$)=>{var p$=o8().Readable,FV=x0();FV.inherits(a4,p$);function a4(Q,J,$){p$.call(this,J),this._helper=Q;var q=this;Q.on("data",function(X,Y){if(!q.push(X))q._helper.pause();if($)$(Y)}).on("error",function(X){q.emit("error",X)}).on("end",function(){q.push(null)})}a4.prototype._read=function(){this._helper.resume()};l$.exports=a4});var s4=f((LP,o$)=>{var y1=x0(),zV=c$(),LV=q2(),NV=b4(),DV=o2(),CV=B6(),i$=null;if(DV.nodestream)try{i$=d$()}catch(Q){}function OV(Q,J,$){switch(Q){case"blob":return y1.newBlob(y1.transformTo("arraybuffer",J),$);case"base64":return NV.encode(J);default:return y1.transformTo(Q,J)}}function PV(Q,J){var $,q=0,X=null,Y=0;for($=0;$<J.length;$++)Y+=J[$].length;switch(Q){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":X=new Uint8Array(Y);for($=0;$<J.length;$++)X.set(J[$],q),q+=J[$].length;return X;case"nodebuffer":return Buffer.concat(J);default:throw Error("concat : unsupported type '"+Q+"'")}}function AV(Q,J){return new CV.Promise(function($,q){var X=[],Y=Q._internalType,W=Q._outputType,U=Q._mimeType;Q.on("data",function(G,B){if(X.push(G),J)J(B)}).on("error",function(G){X=[],q(G)}).on("end",function(){try{var G=OV(W,PV(Y,X),U);$(G)}catch(B){q(B)}X=[]}).resume()})}function n$(Q,J,$){var q=J;switch(J){case"blob":case"arraybuffer":q="uint8array";break;case"base64":q="string";break}try{this._internalType=q,this._outputType=J,this._mimeType=$,y1.checkSupport(q),this._worker=Q.pipe(new zV(q)),Q.lock()}catch(X){this._worker=new LV("error"),this._worker.error(X)}}n$.prototype={accumulate:function(Q){return AV(this,Q)},on:function(Q,J){var $=this;if(Q==="data")this._worker.on(Q,function(q){J.call($,q.data,q.meta)});else this._worker.on(Q,function(){y1.delay(J,arguments,$)});return this},resume:function(){return y1.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(y1.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new i$(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};o$.exports=n$});var t4=f((RV)=>{RV.base64=!1;RV.binary=!1;RV.dir=!1;RV.createFolders=!0;RV.date=null;RV.compression=null;RV.compressionOptions=null;RV.comment=null;RV.unixPermissions=null;RV.dosPermissions=null});var e4=f((DP,r$)=>{var W5=x0(),U5=q2(),_V=16384;function j6(Q){U5.call(this,"DataWorker");var J=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function($){if(J.dataIsReady=!0,J.data=$,J.max=$&&$.length||0,J.type=W5.getTypeOf($),!J.isPaused)J._tickAndRepeat()},function($){J.error($)})}W5.inherits(j6,U5);j6.prototype.cleanUp=function(){U5.prototype.cleanUp.call(this),this.data=null};j6.prototype.resume=function(){if(!U5.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,W5.delay(this._tickAndRepeat,[],this);return!0};j6.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)W5.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};j6.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=_V,J=null,$=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":J=this.data.substring(this.index,$);break;case"uint8array":J=this.data.subarray(this.index,$);break;case"array":case"nodebuffer":J=this.data.slice(this.index,$);break}return this.index=$,this.push({data:J,meta:{percent:this.max?this.index/this.max*100:0}})}};r$.exports=j6});var G5=f((CP,s$)=>{var fV=x0();function yV(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var q=0;q<8;q++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var a$=yV();function hV(Q,J,$,q){var X=a$,Y=q+$;Q=Q^-1;for(var W=q;W<Y;W++)Q=Q>>>8^X[(Q^J[W])&255];return Q^-1}function bV(Q,J,$,q){var X=a$,Y=q+$;Q=Q^-1;for(var W=q;W<Y;W++)Q=Q>>>8^X[(Q^J.charCodeAt(W))&255];return Q^-1}s$.exports=function(J,$){if(typeof J>"u"||!J.length)return 0;var q=fV.getTypeOf(J)!=="string";if(q)return hV($|0,J,J.length,0);else return bV($|0,J,J.length,0)}});var J7=f((OP,e$)=>{var t$=q2(),mV=G5(),uV=x0();function Q7(){t$.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}uV.inherits(Q7,t$);Q7.prototype.processChunk=function(Q){this.streamInfo.crc32=mV(Q.data,this.streamInfo.crc32||0),this.push(Q)};e$.exports=Q7});var Jq=f((PP,Qq)=>{var cV=x0(),$7=q2();function q7(Q){$7.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}cV.inherits(q7,$7);q7.prototype.processChunk=function(Q){if(Q){var J=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=J+Q.data.length}$7.prototype.processChunk.call(this,Q)};Qq.exports=q7});var B5=f((AP,Xq)=>{var $q=B6(),qq=e4(),pV=J7(),X7=Jq();function Y7(Q,J,$,q,X){this.compressedSize=Q,this.uncompressedSize=J,this.crc32=$,this.compression=q,this.compressedContent=X}Y7.prototype={getContentWorker:function(){var Q=new qq($q.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new X7("data_length")),J=this;return Q.on("end",function(){if(this.streamInfo.data_length!==J.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new qq($q.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};Y7.createWorkerFrom=function(Q,J,$){return Q.pipe(new pV).pipe(new X7("uncompressedSize")).pipe(J.compressWorker($)).pipe(new X7("compressedSize")).withStreamInfo("compression",J)};Xq.exports=Y7});var Gq=f((RP,Uq)=>{var lV=s4(),dV=e4(),W7=H6(),U7=B5(),Yq=q2(),G7=function(Q,J,$){this.name=Q,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=J,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}};G7.prototype={internalStream:function(Q){var J=null,$="string";try{if(!Q)throw Error("No output type specified.");$=Q.toLowerCase();var q=$==="string"||$==="text";if($==="binarystring"||$==="text")$="string";J=this._decompressWorker();var X=!this._dataBinary;if(X&&!q)J=J.pipe(new W7.Utf8EncodeWorker);if(!X&&q)J=J.pipe(new W7.Utf8DecodeWorker)}catch(Y){J=new Yq("error"),J.error(Y)}return new lV(J,$,"")},async:function(Q,J){return this.internalStream(Q).accumulate(J)},nodeStream:function(Q,J){return this.internalStream(Q||"nodebuffer").toNodejsStream(J)},_compressWorker:function(Q,J){if(this._data instanceof U7&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var $=this._decompressWorker();if(!this._dataBinary)$=$.pipe(new W7.Utf8EncodeWorker);return U7.createWorkerFrom($,Q,J)}},_decompressWorker:function(){if(this._data instanceof U7)return this._data.getContentWorker();else if(this._data instanceof Yq)return this._data;else return new dV(this._data)}};var Wq=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],iV=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(B8=0;B8<Wq.length;B8++)G7.prototype[Wq[B8]]=iV;var B8;Uq.exports=G7});var r2=f((B7)=>{var aV=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function sV(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}B7.assign=function(Q){var J=Array.prototype.slice.call(arguments,1);while(J.length){var $=J.shift();if(!$)continue;if(typeof $!=="object")throw TypeError($+"must be non-object");for(var q in $)if(sV($,q))Q[q]=$[q]}return Q};B7.shrinkBuf=function(Q,J){if(Q.length===J)return Q;if(Q.subarray)return Q.subarray(0,J);return Q.length=J,Q};var tV={arraySet:function(Q,J,$,q,X){if(J.subarray&&Q.subarray){Q.set(J.subarray($,$+q),X);return}for(var Y=0;Y<q;Y++)Q[X+Y]=J[$+Y]},flattenChunks:function(Q){var J,$,q,X,Y,W;q=0;for(J=0,$=Q.length;J<$;J++)q+=Q[J].length;W=new Uint8Array(q),X=0;for(J=0,$=Q.length;J<$;J++)Y=Q[J],W.set(Y,X),X+=Y.length;return W}},eV={arraySet:function(Q,J,$,q,X){for(var Y=0;Y<q;Y++)Q[X+Y]=J[$+Y]},flattenChunks:function(Q){return[].concat.apply([],Q)}};B7.setTyped=function(Q){if(Q)B7.Buf8=Uint8Array,B7.Buf16=Uint16Array,B7.Buf32=Int32Array,B7.assign(B7,tV);else B7.Buf8=Array,B7.Buf16=Array,B7.Buf32=Array,B7.assign(B7,eV)};B7.setTyped(aV)});var Tq=f((PH)=>{var JH=r2(),$H=4,Kq=0,Vq=1,qH=2;function F6(Q){var J=Q.length;while(--J>=0)Q[J]=0}var XH=0,Lq=1,YH=2,WH=3,UH=258,L7=29,F8=256,V8=F8+1+L7,M6=30,N7=19,Nq=2*V8+1,h1=15,V7=16,GH=7,D7=256,Dq=16,Cq=17,Oq=18,F7=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],K5=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],BH=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Pq=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],KH=512,a2=Array((V8+2)*2);F6(a2);var K8=Array(M6*2);F6(K8);var H8=Array(KH);F6(H8);var j8=Array(UH-WH+1);F6(j8);var C7=Array(L7);F6(C7);var V5=Array(M6);F6(V5);function H7(Q,J,$,q,X){this.static_tree=Q,this.extra_bits=J,this.extra_base=$,this.elems=q,this.max_length=X,this.has_stree=Q&&Q.length}var Aq,Rq,wq;function j7(Q,J){this.dyn_tree=Q,this.max_code=0,this.stat_desc=J}function Iq(Q){return Q<256?H8[Q]:H8[256+(Q>>>7)]}function M8(Q,J){Q.pending_buf[Q.pending++]=J&255,Q.pending_buf[Q.pending++]=J>>>8&255}function Q2(Q,J,$){if(Q.bi_valid>V7-$)Q.bi_buf|=J<<Q.bi_valid&65535,M8(Q,Q.bi_buf),Q.bi_buf=J>>V7-Q.bi_valid,Q.bi_valid+=$-V7;else Q.bi_buf|=J<<Q.bi_valid&65535,Q.bi_valid+=$}function k2(Q,J,$){Q2(Q,$[J*2],$[J*2+1])}function Sq(Q,J){var $=0;do $|=Q&1,Q>>>=1,$<<=1;while(--J>0);return $>>>1}function VH(Q){if(Q.bi_valid===16)M8(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0;else if(Q.bi_valid>=8)Q.pending_buf[Q.pending++]=Q.bi_buf&255,Q.bi_buf>>=8,Q.bi_valid-=8}function HH(Q,J){var{dyn_tree:$,max_code:q}=J,X=J.stat_desc.static_tree,Y=J.stat_desc.has_stree,W=J.stat_desc.extra_bits,U=J.stat_desc.extra_base,G=J.stat_desc.max_length,B,K,j,F,H,E,g=0;for(F=0;F<=h1;F++)Q.bl_count[F]=0;$[Q.heap[Q.heap_max]*2+1]=0;for(B=Q.heap_max+1;B<Nq;B++){if(K=Q.heap[B],F=$[$[K*2+1]*2+1]+1,F>G)F=G,g++;if($[K*2+1]=F,K>q)continue;if(Q.bl_count[F]++,H=0,K>=U)H=W[K-U];if(E=$[K*2],Q.opt_len+=E*(F+H),Y)Q.static_len+=E*(X[K*2+1]+H)}if(g===0)return;do{F=G-1;while(Q.bl_count[F]===0)F--;Q.bl_count[F]--,Q.bl_count[F+1]+=2,Q.bl_count[G]--,g-=2}while(g>0);for(F=G;F!==0;F--){K=Q.bl_count[F];while(K!==0){if(j=Q.heap[--B],j>q)continue;if($[j*2+1]!==F)Q.opt_len+=(F-$[j*2+1])*$[j*2],$[j*2+1]=F;K--}}}function Zq(Q,J,$){var q=Array(h1+1),X=0,Y,W;for(Y=1;Y<=h1;Y++)q[Y]=X=X+$[Y-1]<<1;for(W=0;W<=J;W++){var U=Q[W*2+1];if(U===0)continue;Q[W*2]=Sq(q[U]++,U)}}function jH(){var Q,J,$,q,X,Y=Array(h1+1);$=0;for(q=0;q<L7-1;q++){C7[q]=$;for(Q=0;Q<1<<F7[q];Q++)j8[$++]=q}j8[$-1]=q,X=0;for(q=0;q<16;q++){V5[q]=X;for(Q=0;Q<1<<K5[q];Q++)H8[X++]=q}X>>=7;for(;q<M6;q++){V5[q]=X<<7;for(Q=0;Q<1<<K5[q]-7;Q++)H8[256+X++]=q}for(J=0;J<=h1;J++)Y[J]=0;Q=0;while(Q<=143)a2[Q*2+1]=8,Q++,Y[8]++;while(Q<=255)a2[Q*2+1]=9,Q++,Y[9]++;while(Q<=279)a2[Q*2+1]=7,Q++,Y[7]++;while(Q<=287)a2[Q*2+1]=8,Q++,Y[8]++;Zq(a2,V8+1,Y);for(Q=0;Q<M6;Q++)K8[Q*2+1]=5,K8[Q*2]=Sq(Q,5);Aq=new H7(a2,F7,F8+1,V8,h1),Rq=new H7(K8,K5,0,M6,h1),wq=new H7([],BH,0,N7,GH)}function vq(Q){var J;for(J=0;J<V8;J++)Q.dyn_ltree[J*2]=0;for(J=0;J<M6;J++)Q.dyn_dtree[J*2]=0;for(J=0;J<N7;J++)Q.bl_tree[J*2]=0;Q.dyn_ltree[D7*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function Eq(Q){if(Q.bi_valid>8)M8(Q,Q.bi_buf);else if(Q.bi_valid>0)Q.pending_buf[Q.pending++]=Q.bi_buf;Q.bi_buf=0,Q.bi_valid=0}function MH(Q,J,$,q){if(Eq(Q),q)M8(Q,$),M8(Q,~$);JH.arraySet(Q.pending_buf,Q.window,J,$,Q.pending),Q.pending+=$}function Hq(Q,J,$,q){var X=J*2,Y=$*2;return Q[X]<Q[Y]||Q[X]===Q[Y]&&q[J]<=q[$]}function M7(Q,J,$){var q=Q.heap[$],X=$<<1;while(X<=Q.heap_len){if(X<Q.heap_len&&Hq(J,Q.heap[X+1],Q.heap[X],Q.depth))X++;if(Hq(J,q,Q.heap[X],Q.depth))break;Q.heap[$]=Q.heap[X],$=X,X<<=1}Q.heap[$]=q}function jq(Q,J,$){var q,X,Y=0,W,U;if(Q.last_lit!==0)do if(q=Q.pending_buf[Q.d_buf+Y*2]<<8|Q.pending_buf[Q.d_buf+Y*2+1],X=Q.pending_buf[Q.l_buf+Y],Y++,q===0)k2(Q,X,J);else{if(W=j8[X],k2(Q,W+F8+1,J),U=F7[W],U!==0)X-=C7[W],Q2(Q,X,U);if(q--,W=Iq(q),k2(Q,W,$),U=K5[W],U!==0)q-=V5[W],Q2(Q,q,U)}while(Y<Q.last_lit);k2(Q,D7,J)}function z7(Q,J){var $=J.dyn_tree,q=J.stat_desc.static_tree,X=J.stat_desc.has_stree,Y=J.stat_desc.elems,W,U,G=-1,B;Q.heap_len=0,Q.heap_max=Nq;for(W=0;W<Y;W++)if($[W*2]!==0)Q.heap[++Q.heap_len]=G=W,Q.depth[W]=0;else $[W*2+1]=0;while(Q.heap_len<2)if(B=Q.heap[++Q.heap_len]=G<2?++G:0,$[B*2]=1,Q.depth[B]=0,Q.opt_len--,X)Q.static_len-=q[B*2+1];J.max_code=G;for(W=Q.heap_len>>1;W>=1;W--)M7(Q,$,W);B=Y;do W=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],M7(Q,$,1),U=Q.heap[1],Q.heap[--Q.heap_max]=W,Q.heap[--Q.heap_max]=U,$[B*2]=$[W*2]+$[U*2],Q.depth[B]=(Q.depth[W]>=Q.depth[U]?Q.depth[W]:Q.depth[U])+1,$[W*2+1]=$[U*2+1]=B,Q.heap[1]=B++,M7(Q,$,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],HH(Q,J),Zq($,G,Q.bl_count)}function Mq(Q,J,$){var q,X=-1,Y,W=J[1],U=0,G=7,B=4;if(W===0)G=138,B=3;J[($+1)*2+1]=65535;for(q=0;q<=$;q++){if(Y=W,W=J[(q+1)*2+1],++U<G&&Y===W)continue;else if(U<B)Q.bl_tree[Y*2]+=U;else if(Y!==0){if(Y!==X)Q.bl_tree[Y*2]++;Q.bl_tree[Dq*2]++}else if(U<=10)Q.bl_tree[Cq*2]++;else Q.bl_tree[Oq*2]++;if(U=0,X=Y,W===0)G=138,B=3;else if(Y===W)G=6,B=3;else G=7,B=4}}function Fq(Q,J,$){var q,X=-1,Y,W=J[1],U=0,G=7,B=4;if(W===0)G=138,B=3;for(q=0;q<=$;q++){if(Y=W,W=J[(q+1)*2+1],++U<G&&Y===W)continue;else if(U<B)do k2(Q,Y,Q.bl_tree);while(--U!==0);else if(Y!==0){if(Y!==X)k2(Q,Y,Q.bl_tree),U--;k2(Q,Dq,Q.bl_tree),Q2(Q,U-3,2)}else if(U<=10)k2(Q,Cq,Q.bl_tree),Q2(Q,U-3,3);else k2(Q,Oq,Q.bl_tree),Q2(Q,U-11,7);if(U=0,X=Y,W===0)G=138,B=3;else if(Y===W)G=6,B=3;else G=7,B=4}}function FH(Q){var J;Mq(Q,Q.dyn_ltree,Q.l_desc.max_code),Mq(Q,Q.dyn_dtree,Q.d_desc.max_code),z7(Q,Q.bl_desc);for(J=N7-1;J>=3;J--)if(Q.bl_tree[Pq[J]*2+1]!==0)break;return Q.opt_len+=3*(J+1)+5+5+4,J}function zH(Q,J,$,q){var X;Q2(Q,J-257,5),Q2(Q,$-1,5),Q2(Q,q-4,4);for(X=0;X<q;X++)Q2(Q,Q.bl_tree[Pq[X]*2+1],3);Fq(Q,Q.dyn_ltree,J-1),Fq(Q,Q.dyn_dtree,$-1)}function LH(Q){var J=4093624447,$;for($=0;$<=31;$++,J>>>=1)if(J&1&&Q.dyn_ltree[$*2]!==0)return Kq;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return Vq;for($=32;$<F8;$++)if(Q.dyn_ltree[$*2]!==0)return Vq;return Kq}var zq=!1;function NH(Q){if(!zq)jH(),zq=!0;Q.l_desc=new j7(Q.dyn_ltree,Aq),Q.d_desc=new j7(Q.dyn_dtree,Rq),Q.bl_desc=new j7(Q.bl_tree,wq),Q.bi_buf=0,Q.bi_valid=0,vq(Q)}function kq(Q,J,$,q){Q2(Q,(XH<<1)+(q?1:0),3),MH(Q,J,$,!0)}function DH(Q){Q2(Q,Lq<<1,3),k2(Q,D7,a2),VH(Q)}function CH(Q,J,$,q){var X,Y,W=0;if(Q.level>0){if(Q.strm.data_type===qH)Q.strm.data_type=LH(Q);if(z7(Q,Q.l_desc),z7(Q,Q.d_desc),W=FH(Q),X=Q.opt_len+3+7>>>3,Y=Q.static_len+3+7>>>3,Y<=X)X=Y}else X=Y=$+5;if($+4<=X&&J!==-1)kq(Q,J,$,q);else if(Q.strategy===$H||Y===X)Q2(Q,(Lq<<1)+(q?1:0),3),jq(Q,a2,K8);else Q2(Q,(YH<<1)+(q?1:0),3),zH(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,W+1),jq(Q,Q.dyn_ltree,Q.dyn_dtree);if(vq(Q),q)Eq(Q)}function OH(Q,J,$){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=J>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=J&255,Q.pending_buf[Q.l_buf+Q.last_lit]=$&255,Q.last_lit++,J===0)Q.dyn_ltree[$*2]++;else Q.matches++,J--,Q.dyn_ltree[(j8[$]+F8+1)*2]++,Q.dyn_dtree[Iq(J)*2]++;return Q.last_lit===Q.lit_bufsize-1}PH._tr_init=NH;PH._tr_stored_block=kq;PH._tr_flush_block=CH;PH._tr_tally=OH;PH._tr_align=DH});var O7=f((SP,xq)=>{function ZH(Q,J,$,q){var X=Q&65535|0,Y=Q>>>16&65535|0,W=0;while($!==0){W=$>2000?2000:$,$-=W;do X=X+J[q++]|0,Y=Y+X|0;while(--W);X%=65521,Y%=65521}return X|Y<<16|0}xq.exports=ZH});var P7=f((ZP,gq)=>{function vH(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var q=0;q<8;q++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var EH=vH();function kH(Q,J,$,q){var X=EH,Y=q+$;Q^=-1;for(var W=q;W<Y;W++)Q=Q>>>8^X[(Q^J[W])&255];return Q^-1}gq.exports=kH});var H5=f((vP,_q)=>{_q.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var lq=f((Kj)=>{var a0=r2(),V2=Tq(),bq=O7(),V1=P7(),TH=H5(),c1=0,xH=1,gH=3,z1=4,fq=5,x2=0,yq=1,H2=-2,_H=-3,A7=-5,fH=-1,yH=1,j5=2,hH=3,bH=4,mH=0,uH=2,L5=8,cH=9,pH=15,lH=8,dH=29,iH=256,w7=iH+1+dH,nH=30,oH=19,rH=2*w7+1,aH=15,w0=3,M1=258,L2=M1+w0+1,sH=32,N5=42,I7=69,M5=73,F5=91,z5=103,b1=113,L8=666,h0=1,N8=2,m1=3,N6=4,tH=3;function F1(Q,J){return Q.msg=TH[J],J}function hq(Q){return(Q<<1)-(Q>4?9:0)}function j1(Q){var J=Q.length;while(--J>=0)Q[J]=0}function H1(Q){var J=Q.state,$=J.pending;if($>Q.avail_out)$=Q.avail_out;if($===0)return;if(a0.arraySet(Q.output,J.pending_buf,J.pending_out,$,Q.next_out),Q.next_out+=$,J.pending_out+=$,Q.total_out+=$,Q.avail_out-=$,J.pending-=$,J.pending===0)J.pending_out=0}function m0(Q,J){V2._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,J),Q.block_start=Q.strstart,H1(Q.strm)}function I0(Q,J){Q.pending_buf[Q.pending++]=J}function z8(Q,J){Q.pending_buf[Q.pending++]=J>>>8&255,Q.pending_buf[Q.pending++]=J&255}function eH(Q,J,$,q){var X=Q.avail_in;if(X>q)X=q;if(X===0)return 0;if(Q.avail_in-=X,a0.arraySet(J,Q.input,Q.next_in,X,$),Q.state.wrap===1)Q.adler=bq(Q.adler,J,X,$);else if(Q.state.wrap===2)Q.adler=V1(Q.adler,J,X,$);return Q.next_in+=X,Q.total_in+=X,X}function mq(Q,J){var{max_chain_length:$,strstart:q}=Q,X,Y,W=Q.prev_length,U=Q.nice_match,G=Q.strstart>Q.w_size-L2?Q.strstart-(Q.w_size-L2):0,B=Q.window,K=Q.w_mask,j=Q.prev,F=Q.strstart+M1,H=B[q+W-1],E=B[q+W];if(Q.prev_length>=Q.good_match)$>>=2;if(U>Q.lookahead)U=Q.lookahead;do{if(X=J,B[X+W]!==E||B[X+W-1]!==H||B[X]!==B[q]||B[++X]!==B[q+1])continue;q+=2,X++;do;while(B[++q]===B[++X]&&B[++q]===B[++X]&&B[++q]===B[++X]&&B[++q]===B[++X]&&B[++q]===B[++X]&&B[++q]===B[++X]&&B[++q]===B[++X]&&B[++q]===B[++X]&&q<F);if(Y=M1-(F-q),q=F-M1,Y>W){if(Q.match_start=J,W=Y,Y>=U)break;H=B[q+W-1],E=B[q+W]}}while((J=j[J&K])>G&&--$!==0);if(W<=Q.lookahead)return W;return Q.lookahead}function u1(Q){var J=Q.w_size,$,q,X,Y,W;do{if(Y=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=J+(J-L2)){a0.arraySet(Q.window,Q.window,J,J,0),Q.match_start-=J,Q.strstart-=J,Q.block_start-=J,q=Q.hash_size,$=q;do X=Q.head[--$],Q.head[$]=X>=J?X-J:0;while(--q);q=J,$=q;do X=Q.prev[--$],Q.prev[$]=X>=J?X-J:0;while(--q);Y+=J}if(Q.strm.avail_in===0)break;if(q=eH(Q.strm,Q.window,Q.strstart+Q.lookahead,Y),Q.lookahead+=q,Q.lookahead+Q.insert>=w0){W=Q.strstart-Q.insert,Q.ins_h=Q.window[W],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[W+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[W+w0-1])&Q.hash_mask,Q.prev[W&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=W,W++,Q.insert--,Q.lookahead+Q.insert<w0)break}}while(Q.lookahead<L2&&Q.strm.avail_in!==0)}function Qj(Q,J){var $=65535;if($>Q.pending_buf_size-5)$=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(u1(Q),Q.lookahead===0&&J===c1)return h0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var q=Q.block_start+$;if(Q.strstart===0||Q.strstart>=q){if(Q.lookahead=Q.strstart-q,Q.strstart=q,m0(Q,!1),Q.strm.avail_out===0)return h0}if(Q.strstart-Q.block_start>=Q.w_size-L2){if(m0(Q,!1),Q.strm.avail_out===0)return h0}}if(Q.insert=0,J===z1){if(m0(Q,!0),Q.strm.avail_out===0)return m1;return N6}if(Q.strstart>Q.block_start){if(m0(Q,!1),Q.strm.avail_out===0)return h0}return h0}function R7(Q,J){var $,q;for(;;){if(Q.lookahead<L2){if(u1(Q),Q.lookahead<L2&&J===c1)return h0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=w0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+w0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if($!==0&&Q.strstart-$<=Q.w_size-L2)Q.match_length=mq(Q,$);if(Q.match_length>=w0)if(q=V2._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-w0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=w0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+w0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else q=V2._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(q){if(m0(Q,!1),Q.strm.avail_out===0)return h0}}if(Q.insert=Q.strstart<w0-1?Q.strstart:w0-1,J===z1){if(m0(Q,!0),Q.strm.avail_out===0)return m1;return N6}if(Q.last_lit){if(m0(Q,!1),Q.strm.avail_out===0)return h0}return N8}function z6(Q,J){var $,q,X;for(;;){if(Q.lookahead<L2){if(u1(Q),Q.lookahead<L2&&J===c1)return h0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=w0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+w0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=w0-1,$!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-$<=Q.w_size-L2){if(Q.match_length=mq(Q,$),Q.match_length<=5&&(Q.strategy===yH||Q.match_length===w0&&Q.strstart-Q.match_start>4096))Q.match_length=w0-1}if(Q.prev_length>=w0&&Q.match_length<=Q.prev_length){X=Q.strstart+Q.lookahead-w0,q=V2._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-w0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=X)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+w0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=w0-1,Q.strstart++,q){if(m0(Q,!1),Q.strm.avail_out===0)return h0}}else if(Q.match_available){if(q=V2._tr_tally(Q,0,Q.window[Q.strstart-1]),q)m0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return h0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)q=V2._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<w0-1?Q.strstart:w0-1,J===z1){if(m0(Q,!0),Q.strm.avail_out===0)return m1;return N6}if(Q.last_lit){if(m0(Q,!1),Q.strm.avail_out===0)return h0}return N8}function Jj(Q,J){var $,q,X,Y,W=Q.window;for(;;){if(Q.lookahead<=M1){if(u1(Q),Q.lookahead<=M1&&J===c1)return h0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=w0&&Q.strstart>0){if(X=Q.strstart-1,q=W[X],q===W[++X]&&q===W[++X]&&q===W[++X]){Y=Q.strstart+M1;do;while(q===W[++X]&&q===W[++X]&&q===W[++X]&&q===W[++X]&&q===W[++X]&&q===W[++X]&&q===W[++X]&&q===W[++X]&&X<Y);if(Q.match_length=M1-(Y-X),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=w0)$=V2._tr_tally(Q,1,Q.match_length-w0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else $=V2._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(m0(Q,!1),Q.strm.avail_out===0)return h0}}if(Q.insert=0,J===z1){if(m0(Q,!0),Q.strm.avail_out===0)return m1;return N6}if(Q.last_lit){if(m0(Q,!1),Q.strm.avail_out===0)return h0}return N8}function $j(Q,J){var $;for(;;){if(Q.lookahead===0){if(u1(Q),Q.lookahead===0){if(J===c1)return h0;break}}if(Q.match_length=0,$=V2._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,$){if(m0(Q,!1),Q.strm.avail_out===0)return h0}}if(Q.insert=0,J===z1){if(m0(Q,!0),Q.strm.avail_out===0)return m1;return N6}if(Q.last_lit){if(m0(Q,!1),Q.strm.avail_out===0)return h0}return N8}function T2(Q,J,$,q,X){this.good_length=Q,this.max_lazy=J,this.nice_length=$,this.max_chain=q,this.func=X}var L6;L6=[new T2(0,0,0,0,Qj),new T2(4,4,8,4,R7),new T2(4,5,16,8,R7),new T2(4,6,32,32,R7),new T2(4,4,16,16,z6),new T2(8,16,32,32,z6),new T2(8,16,128,128,z6),new T2(8,32,128,256,z6),new T2(32,128,258,1024,z6),new T2(32,258,258,4096,z6)];function qj(Q){Q.window_size=2*Q.w_size,j1(Q.head),Q.max_lazy_match=L6[Q.level].max_lazy,Q.good_match=L6[Q.level].good_length,Q.nice_match=L6[Q.level].nice_length,Q.max_chain_length=L6[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=w0-1,Q.match_available=0,Q.ins_h=0}function Xj(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=L5,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a0.Buf16(rH*2),this.dyn_dtree=new a0.Buf16((2*nH+1)*2),this.bl_tree=new a0.Buf16((2*oH+1)*2),j1(this.dyn_ltree),j1(this.dyn_dtree),j1(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a0.Buf16(aH+1),this.heap=new a0.Buf16(2*w7+1),j1(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a0.Buf16(2*w7+1),j1(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function uq(Q){var J;if(!Q||!Q.state)return F1(Q,H2);if(Q.total_in=Q.total_out=0,Q.data_type=uH,J=Q.state,J.pending=0,J.pending_out=0,J.wrap<0)J.wrap=-J.wrap;return J.status=J.wrap?N5:b1,Q.adler=J.wrap===2?0:1,J.last_flush=c1,V2._tr_init(J),x2}function cq(Q){var J=uq(Q);if(J===x2)qj(Q.state);return J}function Yj(Q,J){if(!Q||!Q.state)return H2;if(Q.state.wrap!==2)return H2;return Q.state.gzhead=J,x2}function pq(Q,J,$,q,X,Y){if(!Q)return H2;var W=1;if(J===fH)J=6;if(q<0)W=0,q=-q;else if(q>15)W=2,q-=16;if(X<1||X>cH||$!==L5||q<8||q>15||J<0||J>9||Y<0||Y>bH)return F1(Q,H2);if(q===8)q=9;var U=new Xj;return Q.state=U,U.strm=Q,U.wrap=W,U.gzhead=null,U.w_bits=q,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=X+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+w0-1)/w0),U.window=new a0.Buf8(U.w_size*2),U.head=new a0.Buf16(U.hash_size),U.prev=new a0.Buf16(U.w_size),U.lit_bufsize=1<<X+6,U.pending_buf_size=U.lit_bufsize*4,U.pending_buf=new a0.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=J,U.strategy=Y,U.method=$,cq(Q)}function Wj(Q,J){return pq(Q,J,L5,pH,lH,mH)}function Uj(Q,J){var $,q,X,Y;if(!Q||!Q.state||J>fq||J<0)return Q?F1(Q,H2):H2;if(q=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||q.status===L8&&J!==z1)return F1(Q,Q.avail_out===0?A7:H2);if(q.strm=Q,$=q.last_flush,q.last_flush=J,q.status===N5)if(q.wrap===2)if(Q.adler=0,I0(q,31),I0(q,139),I0(q,8),!q.gzhead)I0(q,0),I0(q,0),I0(q,0),I0(q,0),I0(q,0),I0(q,q.level===9?2:q.strategy>=j5||q.level<2?4:0),I0(q,tH),q.status=b1;else{if(I0(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(!q.gzhead.extra?0:4)+(!q.gzhead.name?0:8)+(!q.gzhead.comment?0:16)),I0(q,q.gzhead.time&255),I0(q,q.gzhead.time>>8&255),I0(q,q.gzhead.time>>16&255),I0(q,q.gzhead.time>>24&255),I0(q,q.level===9?2:q.strategy>=j5||q.level<2?4:0),I0(q,q.gzhead.os&255),q.gzhead.extra&&q.gzhead.extra.length)I0(q,q.gzhead.extra.length&255),I0(q,q.gzhead.extra.length>>8&255);if(q.gzhead.hcrc)Q.adler=V1(Q.adler,q.pending_buf,q.pending,0);q.gzindex=0,q.status=I7}else{var W=L5+(q.w_bits-8<<4)<<8,U=-1;if(q.strategy>=j5||q.level<2)U=0;else if(q.level<6)U=1;else if(q.level===6)U=2;else U=3;if(W|=U<<6,q.strstart!==0)W|=sH;if(W+=31-W%31,q.status=b1,z8(q,W),q.strstart!==0)z8(q,Q.adler>>>16),z8(q,Q.adler&65535);Q.adler=1}if(q.status===I7)if(q.gzhead.extra){X=q.pending;while(q.gzindex<(q.gzhead.extra.length&65535)){if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>X)Q.adler=V1(Q.adler,q.pending_buf,q.pending-X,X);if(H1(Q),X=q.pending,q.pending===q.pending_buf_size)break}I0(q,q.gzhead.extra[q.gzindex]&255),q.gzindex++}if(q.gzhead.hcrc&&q.pending>X)Q.adler=V1(Q.adler,q.pending_buf,q.pending-X,X);if(q.gzindex===q.gzhead.extra.length)q.gzindex=0,q.status=M5}else q.status=M5;if(q.status===M5)if(q.gzhead.name){X=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>X)Q.adler=V1(Q.adler,q.pending_buf,q.pending-X,X);if(H1(Q),X=q.pending,q.pending===q.pending_buf_size){Y=1;break}}if(q.gzindex<q.gzhead.name.length)Y=q.gzhead.name.charCodeAt(q.gzindex++)&255;else Y=0;I0(q,Y)}while(Y!==0);if(q.gzhead.hcrc&&q.pending>X)Q.adler=V1(Q.adler,q.pending_buf,q.pending-X,X);if(Y===0)q.gzindex=0,q.status=F5}else q.status=F5;if(q.status===F5)if(q.gzhead.comment){X=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>X)Q.adler=V1(Q.adler,q.pending_buf,q.pending-X,X);if(H1(Q),X=q.pending,q.pending===q.pending_buf_size){Y=1;break}}if(q.gzindex<q.gzhead.comment.length)Y=q.gzhead.comment.charCodeAt(q.gzindex++)&255;else Y=0;I0(q,Y)}while(Y!==0);if(q.gzhead.hcrc&&q.pending>X)Q.adler=V1(Q.adler,q.pending_buf,q.pending-X,X);if(Y===0)q.status=z5}else q.status=z5;if(q.status===z5)if(q.gzhead.hcrc){if(q.pending+2>q.pending_buf_size)H1(Q);if(q.pending+2<=q.pending_buf_size)I0(q,Q.adler&255),I0(q,Q.adler>>8&255),Q.adler=0,q.status=b1}else q.status=b1;if(q.pending!==0){if(H1(Q),Q.avail_out===0)return q.last_flush=-1,x2}else if(Q.avail_in===0&&hq(J)<=hq($)&&J!==z1)return F1(Q,A7);if(q.status===L8&&Q.avail_in!==0)return F1(Q,A7);if(Q.avail_in!==0||q.lookahead!==0||J!==c1&&q.status!==L8){var G=q.strategy===j5?$j(q,J):q.strategy===hH?Jj(q,J):L6[q.level].func(q,J);if(G===m1||G===N6)q.status=L8;if(G===h0||G===m1){if(Q.avail_out===0)q.last_flush=-1;return x2}if(G===N8){if(J===xH)V2._tr_align(q);else if(J!==fq){if(V2._tr_stored_block(q,0,0,!1),J===gH){if(j1(q.head),q.lookahead===0)q.strstart=0,q.block_start=0,q.insert=0}}if(H1(Q),Q.avail_out===0)return q.last_flush=-1,x2}}if(J!==z1)return x2;if(q.wrap<=0)return yq;if(q.wrap===2)I0(q,Q.adler&255),I0(q,Q.adler>>8&255),I0(q,Q.adler>>16&255),I0(q,Q.adler>>24&255),I0(q,Q.total_in&255),I0(q,Q.total_in>>8&255),I0(q,Q.total_in>>16&255),I0(q,Q.total_in>>24&255);else z8(q,Q.adler>>>16),z8(q,Q.adler&65535);if(H1(Q),q.wrap>0)q.wrap=-q.wrap;return q.pending!==0?x2:yq}function Gj(Q){var J;if(!Q||!Q.state)return H2;if(J=Q.state.status,J!==N5&&J!==I7&&J!==M5&&J!==F5&&J!==z5&&J!==b1&&J!==L8)return F1(Q,H2);return Q.state=null,J===b1?F1(Q,_H):x2}function Bj(Q,J){var $=J.length,q,X,Y,W,U,G,B,K;if(!Q||!Q.state)return H2;if(q=Q.state,W=q.wrap,W===2||W===1&&q.status!==N5||q.lookahead)return H2;if(W===1)Q.adler=bq(Q.adler,J,$,0);if(q.wrap=0,$>=q.w_size){if(W===0)j1(q.head),q.strstart=0,q.block_start=0,q.insert=0;K=new a0.Buf8(q.w_size),a0.arraySet(K,J,$-q.w_size,q.w_size,0),J=K,$=q.w_size}U=Q.avail_in,G=Q.next_in,B=Q.input,Q.avail_in=$,Q.next_in=0,Q.input=J,u1(q);while(q.lookahead>=w0){X=q.strstart,Y=q.lookahead-(w0-1);do q.ins_h=(q.ins_h<<q.hash_shift^q.window[X+w0-1])&q.hash_mask,q.prev[X&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=X,X++;while(--Y);q.strstart=X,q.lookahead=w0-1,u1(q)}return q.strstart+=q.lookahead,q.block_start=q.strstart,q.insert=q.lookahead,q.lookahead=0,q.match_length=q.prev_length=w0-1,q.match_available=0,Q.next_in=G,Q.input=B,Q.avail_in=U,q.wrap=W,x2}Kj.deflateInit=Wj;Kj.deflateInit2=pq;Kj.deflateReset=cq;Kj.deflateResetKeep=uq;Kj.deflateSetHeader=Yj;Kj.deflate=Uj;Kj.deflateEnd=Gj;Kj.deflateSetDictionary=Bj;Kj.deflateInfo="pako deflate (from Nodeca project)"});var S7=f((Cj)=>{var D5=r2(),dq=!0,iq=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){dq=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){iq=!1}var D8=new D5.Buf8(256);for(g2=0;g2<256;g2++)D8[g2]=g2>=252?6:g2>=248?5:g2>=240?4:g2>=224?3:g2>=192?2:1;var g2;D8[254]=D8[254]=1;Cj.string2buf=function(Q){var J,$,q,X,Y,W=Q.length,U=0;for(X=0;X<W;X++){if($=Q.charCodeAt(X),($&64512)===55296&&X+1<W){if(q=Q.charCodeAt(X+1),(q&64512)===56320)$=65536+($-55296<<10)+(q-56320),X++}U+=$<128?1:$<2048?2:$<65536?3:4}J=new D5.Buf8(U);for(Y=0,X=0;Y<U;X++){if($=Q.charCodeAt(X),($&64512)===55296&&X+1<W){if(q=Q.charCodeAt(X+1),(q&64512)===56320)$=65536+($-55296<<10)+(q-56320),X++}if($<128)J[Y++]=$;else if($<2048)J[Y++]=192|$>>>6,J[Y++]=128|$&63;else if($<65536)J[Y++]=224|$>>>12,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63;else J[Y++]=240|$>>>18,J[Y++]=128|$>>>12&63,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63}return J};function nq(Q,J){if(J<65534){if(Q.subarray&&iq||!Q.subarray&&dq)return String.fromCharCode.apply(null,D5.shrinkBuf(Q,J))}var $="";for(var q=0;q<J;q++)$+=String.fromCharCode(Q[q]);return $}Cj.buf2binstring=function(Q){return nq(Q,Q.length)};Cj.binstring2buf=function(Q){var J=new D5.Buf8(Q.length);for(var $=0,q=J.length;$<q;$++)J[$]=Q.charCodeAt($);return J};Cj.buf2string=function(Q,J){var $,q,X,Y,W=J||Q.length,U=Array(W*2);for(q=0,$=0;$<W;){if(X=Q[$++],X<128){U[q++]=X;continue}if(Y=D8[X],Y>4){U[q++]=65533,$+=Y-1;continue}X&=Y===2?31:Y===3?15:7;while(Y>1&&$<W)X=X<<6|Q[$++]&63,Y--;if(Y>1){U[q++]=65533;continue}if(X<65536)U[q++]=X;else X-=65536,U[q++]=55296|X>>10&1023,U[q++]=56320|X&1023}return nq(U,q)};Cj.utf8border=function(Q,J){var $;if(J=J||Q.length,J>Q.length)J=Q.length;$=J-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return J;if($===0)return J;return $+D8[Q[$]]>J?$:J}});var Z7=f((TP,oq)=>{function Ij(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}oq.exports=Ij});var tq=f((gj)=>{var C8=lq(),O8=r2(),E7=S7(),k7=H5(),Sj=Z7(),sq=Object.prototype.toString,Zj=0,v7=4,D6=0,rq=1,aq=2,vj=-1,Ej=0,kj=8;function p1(Q){if(!(this instanceof p1))return new p1(Q);this.options=O8.assign({level:vj,method:kj,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ej,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>0)J.windowBits=-J.windowBits;else if(J.gzip&&J.windowBits>0&&J.windowBits<16)J.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Sj,this.strm.avail_out=0;var $=C8.deflateInit2(this.strm,J.level,J.method,J.windowBits,J.memLevel,J.strategy);if($!==D6)throw Error(k7[$]);if(J.header)C8.deflateSetHeader(this.strm,J.header);if(J.dictionary){var q;if(typeof J.dictionary==="string")q=E7.string2buf(J.dictionary);else if(sq.call(J.dictionary)==="[object ArrayBuffer]")q=new Uint8Array(J.dictionary);else q=J.dictionary;if($=C8.deflateSetDictionary(this.strm,q),$!==D6)throw Error(k7[$]);this._dict_set=!0}}p1.prototype.push=function(Q,J){var $=this.strm,q=this.options.chunkSize,X,Y;if(this.ended)return!1;if(Y=J===~~J?J:J===!0?v7:Zj,typeof Q==="string")$.input=E7.string2buf(Q);else if(sq.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new O8.Buf8(q),$.next_out=0,$.avail_out=q;if(X=C8.deflate($,Y),X!==rq&&X!==D6)return this.onEnd(X),this.ended=!0,!1;if($.avail_out===0||$.avail_in===0&&(Y===v7||Y===aq))if(this.options.to==="string")this.onData(E7.buf2binstring(O8.shrinkBuf($.output,$.next_out)));else this.onData(O8.shrinkBuf($.output,$.next_out))}while(($.avail_in>0||$.avail_out===0)&&X!==rq);if(Y===v7)return X=C8.deflateEnd(this.strm),this.onEnd(X),this.ended=!0,X===D6;if(Y===aq)return this.onEnd(D6),$.avail_out=0,!0;return!0};p1.prototype.onData=function(Q){this.chunks.push(Q)};p1.prototype.onEnd=function(Q){if(Q===D6)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=O8.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function T7(Q,J){var $=new p1(J);if($.push(Q,!0),$.err)throw $.msg||k7[$.err];return $.result}function Tj(Q,J){return J=J||{},J.raw=!0,T7(Q,J)}function xj(Q,J){return J=J||{},J.gzip=!0,T7(Q,J)}gj.Deflate=p1;gj.deflate=T7;gj.deflateRaw=Tj;gj.gzip=xj});var Q9=f((gP,eq)=>{var C5=30,bj=12;eq.exports=function(J,$){var q,X,Y,W,U,G,B,K,j,F,H,E,g,P,D,V,z,L,A,y,T,d,S,v,R;q=J.state,X=J.next_in,v=J.input,Y=X+(J.avail_in-5),W=J.next_out,R=J.output,U=W-($-J.avail_out),G=W+(J.avail_out-257),B=q.dmax,K=q.wsize,j=q.whave,F=q.wnext,H=q.window,E=q.hold,g=q.bits,P=q.lencode,D=q.distcode,V=(1<<q.lenbits)-1,z=(1<<q.distbits)-1;Q:do{if(g<15)E+=v[X++]<<g,g+=8,E+=v[X++]<<g,g+=8;L=P[E&V];J:for(;;){if(A=L>>>24,E>>>=A,g-=A,A=L>>>16&255,A===0)R[W++]=L&65535;else if(A&16){if(y=L&65535,A&=15,A){if(g<A)E+=v[X++]<<g,g+=8;y+=E&(1<<A)-1,E>>>=A,g-=A}if(g<15)E+=v[X++]<<g,g+=8,E+=v[X++]<<g,g+=8;L=D[E&z];$:for(;;){if(A=L>>>24,E>>>=A,g-=A,A=L>>>16&255,A&16){if(T=L&65535,A&=15,g<A){if(E+=v[X++]<<g,g+=8,g<A)E+=v[X++]<<g,g+=8}if(T+=E&(1<<A)-1,T>B){J.msg="invalid distance too far back",q.mode=C5;break Q}if(E>>>=A,g-=A,A=W-U,T>A){if(A=T-A,A>j){if(q.sane){J.msg="invalid distance too far back",q.mode=C5;break Q}}if(d=0,S=H,F===0){if(d+=K-A,A<y){y-=A;do R[W++]=H[d++];while(--A);d=W-T,S=R}}else if(F<A){if(d+=K+F-A,A-=F,A<y){y-=A;do R[W++]=H[d++];while(--A);if(d=0,F<y){A=F,y-=A;do R[W++]=H[d++];while(--A);d=W-T,S=R}}}else if(d+=F-A,A<y){y-=A;do R[W++]=H[d++];while(--A);d=W-T,S=R}while(y>2)R[W++]=S[d++],R[W++]=S[d++],R[W++]=S[d++],y-=3;if(y){if(R[W++]=S[d++],y>1)R[W++]=S[d++]}}else{d=W-T;do R[W++]=R[d++],R[W++]=R[d++],R[W++]=R[d++],y-=3;while(y>2);if(y){if(R[W++]=R[d++],y>1)R[W++]=R[d++]}}}else if((A&64)===0){L=D[(L&65535)+(E&(1<<A)-1)];continue $}else{J.msg="invalid distance code",q.mode=C5;break Q}break}}else if((A&64)===0){L=P[(L&65535)+(E&(1<<A)-1)];continue J}else if(A&32){q.mode=bj;break Q}else{J.msg="invalid literal/length code",q.mode=C5;break Q}break}}while(X<Y&&W<G);y=g>>3,X-=y,g-=y<<3,E&=(1<<g)-1,J.next_in=X,J.next_out=W,J.avail_in=X<Y?5+(Y-X):5-(X-Y),J.avail_out=W<G?257+(G-W):257-(W-G),q.hold=E,q.bits=g;return}});var U9=f((_P,W9)=>{var J9=r2(),C6=15,$9=852,q9=592,X9=0,x7=1,Y9=2,mj=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],uj=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],cj=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],pj=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];W9.exports=function(J,$,q,X,Y,W,U,G){var B=G.bits,K=0,j=0,F=0,H=0,E=0,g=0,P=0,D=0,V=0,z=0,L,A,y,T,d,S=null,v=0,R,O=new J9.Buf16(C6+1),_=new J9.Buf16(C6+1),h=null,x=0,a,$0,G0;for(K=0;K<=C6;K++)O[K]=0;for(j=0;j<X;j++)O[$[q+j]]++;E=B;for(H=C6;H>=1;H--)if(O[H]!==0)break;if(E>H)E=H;if(H===0)return Y[W++]=20971520,Y[W++]=20971520,G.bits=1,0;for(F=1;F<H;F++)if(O[F]!==0)break;if(E<F)E=F;D=1;for(K=1;K<=C6;K++)if(D<<=1,D-=O[K],D<0)return-1;if(D>0&&(J===X9||H!==1))return-1;_[1]=0;for(K=1;K<C6;K++)_[K+1]=_[K]+O[K];for(j=0;j<X;j++)if($[q+j]!==0)U[_[$[q+j]]++]=j;if(J===X9)S=h=U,R=19;else if(J===x7)S=mj,v-=257,h=uj,x-=257,R=256;else S=cj,h=pj,R=-1;if(z=0,j=0,K=F,d=W,g=E,P=0,y=-1,V=1<<E,T=V-1,J===x7&&V>$9||J===Y9&&V>q9)return 1;for(;;){if(a=K-P,U[j]<R)$0=0,G0=U[j];else if(U[j]>R)$0=h[x+U[j]],G0=S[v+U[j]];else $0=96,G0=0;L=1<<K-P,A=1<<g,F=A;do A-=L,Y[d+(z>>P)+A]=a<<24|$0<<16|G0|0;while(A!==0);L=1<<K-1;while(z&L)L>>=1;if(L!==0)z&=L-1,z+=L;else z=0;if(j++,--O[K]===0){if(K===H)break;K=$[q+U[j]]}if(K>E&&(z&T)!==y){if(P===0)P=E;d+=F,g=K-P,D=1<<g;while(g+P<H){if(D-=O[g+P],D<=0)break;g++,D<<=1}if(V+=1<<g,J===x7&&V>$9||J===Y9&&V>q9)return 1;y=z&T,Y[y]=E<<24|g<<16|d-W|0}}if(z!==0)Y[d+z]=K-P<<24|4194304|0;return G.bits=E,0}});var c9=f((GM)=>{var X2=r2(),b7=O7(),_2=P7(),lj=Q9(),P8=U9(),dj=0,x9=1,g9=2,G9=4,ij=5,O5=6,l1=0,nj=1,oj=2,j2=-2,_9=-3,m7=-4,rj=-5,B9=8,f9=1,K9=2,V9=3,H9=4,j9=5,M9=6,F9=7,z9=8,L9=9,N9=10,R5=11,s2=12,g7=13,D9=14,_7=15,C9=16,O9=17,P9=18,A9=19,P5=20,A5=21,R9=22,w9=23,I9=24,S9=25,Z9=26,f7=27,v9=28,E9=29,k0=30,u7=31,aj=32,sj=852,tj=592,ej=15,QM=ej;function k9(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function JM(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new X2.Buf16(320),this.work=new X2.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y9(Q){var J;if(!Q||!Q.state)return j2;if(J=Q.state,Q.total_in=Q.total_out=J.total=0,Q.msg="",J.wrap)Q.adler=J.wrap&1;return J.mode=f9,J.last=0,J.havedict=0,J.dmax=32768,J.head=null,J.hold=0,J.bits=0,J.lencode=J.lendyn=new X2.Buf32(sj),J.distcode=J.distdyn=new X2.Buf32(tj),J.sane=1,J.back=-1,l1}function h9(Q){var J;if(!Q||!Q.state)return j2;return J=Q.state,J.wsize=0,J.whave=0,J.wnext=0,y9(Q)}function b9(Q,J){var $,q;if(!Q||!Q.state)return j2;if(q=Q.state,J<0)$=0,J=-J;else if($=(J>>4)+1,J<48)J&=15;if(J&&(J<8||J>15))return j2;if(q.window!==null&&q.wbits!==J)q.window=null;return q.wrap=$,q.wbits=J,h9(Q)}function m9(Q,J){var $,q;if(!Q)return j2;if(q=new JM,Q.state=q,q.window=null,$=b9(Q,J),$!==l1)Q.state=null;return $}function $M(Q){return m9(Q,QM)}var T9=!0,y7,h7;function qM(Q){if(T9){var J;y7=new X2.Buf32(512),h7=new X2.Buf32(32),J=0;while(J<144)Q.lens[J++]=8;while(J<256)Q.lens[J++]=9;while(J<280)Q.lens[J++]=7;while(J<288)Q.lens[J++]=8;P8(x9,Q.lens,0,288,y7,0,Q.work,{bits:9}),J=0;while(J<32)Q.lens[J++]=5;P8(g9,Q.lens,0,32,h7,0,Q.work,{bits:5}),T9=!1}Q.lencode=y7,Q.lenbits=9,Q.distcode=h7,Q.distbits=5}function u9(Q,J,$,q){var X,Y=Q.state;if(Y.window===null)Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new X2.Buf8(Y.wsize);if(q>=Y.wsize)X2.arraySet(Y.window,J,$-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize;else{if(X=Y.wsize-Y.wnext,X>q)X=q;if(X2.arraySet(Y.window,J,$-q,X,Y.wnext),q-=X,q)X2.arraySet(Y.window,J,$-q,q,0),Y.wnext=q,Y.whave=Y.wsize;else{if(Y.wnext+=X,Y.wnext===Y.wsize)Y.wnext=0;if(Y.whave<Y.wsize)Y.whave+=X}}return 0}function XM(Q,J){var $,q,X,Y,W,U,G,B,K,j,F,H,E,g,P=0,D,V,z,L,A,y,T,d,S=new X2.Buf8(4),v,R,O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Q||!Q.state||!Q.output||!Q.input&&Q.avail_in!==0)return j2;if($=Q.state,$.mode===s2)$.mode=g7;W=Q.next_out,X=Q.output,G=Q.avail_out,Y=Q.next_in,q=Q.input,U=Q.avail_in,B=$.hold,K=$.bits,j=U,F=G,d=l1;Q:for(;;)switch($.mode){case f9:if($.wrap===0){$.mode=g7;break}while(K<16){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if($.wrap&2&&B===35615){$.check=0,S[0]=B&255,S[1]=B>>>8&255,$.check=_2($.check,S,2,0),B=0,K=0,$.mode=K9;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((B&255)<<8)+(B>>8))%31){Q.msg="incorrect header check",$.mode=k0;break}if((B&15)!==B9){Q.msg="unknown compression method",$.mode=k0;break}if(B>>>=4,K-=4,T=(B&15)+8,$.wbits===0)$.wbits=T;else if(T>$.wbits){Q.msg="invalid window size",$.mode=k0;break}$.dmax=1<<T,Q.adler=$.check=1,$.mode=B&512?N9:s2,B=0,K=0;break;case K9:while(K<16){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if($.flags=B,($.flags&255)!==B9){Q.msg="unknown compression method",$.mode=k0;break}if($.flags&57344){Q.msg="unknown header flags set",$.mode=k0;break}if($.head)$.head.text=B>>8&1;if($.flags&512)S[0]=B&255,S[1]=B>>>8&255,$.check=_2($.check,S,2,0);B=0,K=0,$.mode=V9;case V9:while(K<32){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if($.head)$.head.time=B;if($.flags&512)S[0]=B&255,S[1]=B>>>8&255,S[2]=B>>>16&255,S[3]=B>>>24&255,$.check=_2($.check,S,4,0);B=0,K=0,$.mode=H9;case H9:while(K<16){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if($.head)$.head.xflags=B&255,$.head.os=B>>8;if($.flags&512)S[0]=B&255,S[1]=B>>>8&255,$.check=_2($.check,S,2,0);B=0,K=0,$.mode=j9;case j9:if($.flags&1024){while(K<16){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if($.length=B,$.head)$.head.extra_len=B;if($.flags&512)S[0]=B&255,S[1]=B>>>8&255,$.check=_2($.check,S,2,0);B=0,K=0}else if($.head)$.head.extra=null;$.mode=M9;case M9:if($.flags&1024){if(H=$.length,H>U)H=U;if(H){if($.head){if(T=$.head.extra_len-$.length,!$.head.extra)$.head.extra=Array($.head.extra_len);X2.arraySet($.head.extra,q,Y,H,T)}if($.flags&512)$.check=_2($.check,q,H,Y);U-=H,Y+=H,$.length-=H}if($.length)break Q}$.length=0,$.mode=F9;case F9:if($.flags&2048){if(U===0)break Q;H=0;do if(T=q[Y+H++],$.head&&T&&$.length<65536)$.head.name+=String.fromCharCode(T);while(T&&H<U);if($.flags&512)$.check=_2($.check,q,H,Y);if(U-=H,Y+=H,T)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=z9;case z9:if($.flags&4096){if(U===0)break Q;H=0;do if(T=q[Y+H++],$.head&&T&&$.length<65536)$.head.comment+=String.fromCharCode(T);while(T&&H<U);if($.flags&512)$.check=_2($.check,q,H,Y);if(U-=H,Y+=H,T)break Q}else if($.head)$.head.comment=null;$.mode=L9;case L9:if($.flags&512){while(K<16){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if(B!==($.check&65535)){Q.msg="header crc mismatch",$.mode=k0;break}B=0,K=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;Q.adler=$.check=0,$.mode=s2;break;case N9:while(K<32){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}Q.adler=$.check=k9(B),B=0,K=0,$.mode=R5;case R5:if($.havedict===0)return Q.next_out=W,Q.avail_out=G,Q.next_in=Y,Q.avail_in=U,$.hold=B,$.bits=K,oj;Q.adler=$.check=1,$.mode=s2;case s2:if(J===ij||J===O5)break Q;case g7:if($.last){B>>>=K&7,K-=K&7,$.mode=f7;break}while(K<3){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}switch($.last=B&1,B>>>=1,K-=1,B&3){case 0:$.mode=D9;break;case 1:if(qM($),$.mode=P5,J===O5){B>>>=2,K-=2;break Q}break;case 2:$.mode=O9;break;case 3:Q.msg="invalid block type",$.mode=k0}B>>>=2,K-=2;break;case D9:B>>>=K&7,K-=K&7;while(K<32){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if((B&65535)!==(B>>>16^65535)){Q.msg="invalid stored block lengths",$.mode=k0;break}if($.length=B&65535,B=0,K=0,$.mode=_7,J===O5)break Q;case _7:$.mode=C9;case C9:if(H=$.length,H){if(H>U)H=U;if(H>G)H=G;if(H===0)break Q;X2.arraySet(X,q,Y,H,W),U-=H,Y+=H,G-=H,W+=H,$.length-=H;break}$.mode=s2;break;case O9:while(K<14){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if($.nlen=(B&31)+257,B>>>=5,K-=5,$.ndist=(B&31)+1,B>>>=5,K-=5,$.ncode=(B&15)+4,B>>>=4,K-=4,$.nlen>286||$.ndist>30){Q.msg="too many length or distance symbols",$.mode=k0;break}$.have=0,$.mode=P9;case P9:while($.have<$.ncode){while(K<3){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}$.lens[O[$.have++]]=B&7,B>>>=3,K-=3}while($.have<19)$.lens[O[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,v={bits:$.lenbits},d=P8(dj,$.lens,0,19,$.lencode,0,$.work,v),$.lenbits=v.bits,d){Q.msg="invalid code lengths set",$.mode=k0;break}$.have=0,$.mode=A9;case A9:while($.have<$.nlen+$.ndist){for(;;){if(P=$.lencode[B&(1<<$.lenbits)-1],D=P>>>24,V=P>>>16&255,z=P&65535,D<=K)break;if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if(z<16)B>>>=D,K-=D,$.lens[$.have++]=z;else{if(z===16){R=D+2;while(K<R){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if(B>>>=D,K-=D,$.have===0){Q.msg="invalid bit length repeat",$.mode=k0;break}T=$.lens[$.have-1],H=3+(B&3),B>>>=2,K-=2}else if(z===17){R=D+3;while(K<R){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}B>>>=D,K-=D,T=0,H=3+(B&7),B>>>=3,K-=3}else{R=D+7;while(K<R){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}B>>>=D,K-=D,T=0,H=11+(B&127),B>>>=7,K-=7}if($.have+H>$.nlen+$.ndist){Q.msg="invalid bit length repeat",$.mode=k0;break}while(H--)$.lens[$.have++]=T}}if($.mode===k0)break;if($.lens[256]===0){Q.msg="invalid code -- missing end-of-block",$.mode=k0;break}if($.lenbits=9,v={bits:$.lenbits},d=P8(x9,$.lens,0,$.nlen,$.lencode,0,$.work,v),$.lenbits=v.bits,d){Q.msg="invalid literal/lengths set",$.mode=k0;break}if($.distbits=6,$.distcode=$.distdyn,v={bits:$.distbits},d=P8(g9,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,v),$.distbits=v.bits,d){Q.msg="invalid distances set",$.mode=k0;break}if($.mode=P5,J===O5)break Q;case P5:$.mode=A5;case A5:if(U>=6&&G>=258){if(Q.next_out=W,Q.avail_out=G,Q.next_in=Y,Q.avail_in=U,$.hold=B,$.bits=K,lj(Q,F),W=Q.next_out,X=Q.output,G=Q.avail_out,Y=Q.next_in,q=Q.input,U=Q.avail_in,B=$.hold,K=$.bits,$.mode===s2)$.back=-1;break}$.back=0;for(;;){if(P=$.lencode[B&(1<<$.lenbits)-1],D=P>>>24,V=P>>>16&255,z=P&65535,D<=K)break;if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if(V&&(V&240)===0){L=D,A=V,y=z;for(;;){if(P=$.lencode[y+((B&(1<<L+A)-1)>>L)],D=P>>>24,V=P>>>16&255,z=P&65535,L+D<=K)break;if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}B>>>=L,K-=L,$.back+=L}if(B>>>=D,K-=D,$.back+=D,$.length=z,V===0){$.mode=Z9;break}if(V&32){$.back=-1,$.mode=s2;break}if(V&64){Q.msg="invalid literal/length code",$.mode=k0;break}$.extra=V&15,$.mode=R9;case R9:if($.extra){R=$.extra;while(K<R){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}$.length+=B&(1<<$.extra)-1,B>>>=$.extra,K-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=w9;case w9:for(;;){if(P=$.distcode[B&(1<<$.distbits)-1],D=P>>>24,V=P>>>16&255,z=P&65535,D<=K)break;if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if((V&240)===0){L=D,A=V,y=z;for(;;){if(P=$.distcode[y+((B&(1<<L+A)-1)>>L)],D=P>>>24,V=P>>>16&255,z=P&65535,L+D<=K)break;if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}B>>>=L,K-=L,$.back+=L}if(B>>>=D,K-=D,$.back+=D,V&64){Q.msg="invalid distance code",$.mode=k0;break}$.offset=z,$.extra=V&15,$.mode=I9;case I9:if($.extra){R=$.extra;while(K<R){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}$.offset+=B&(1<<$.extra)-1,B>>>=$.extra,K-=$.extra,$.back+=$.extra}if($.offset>$.dmax){Q.msg="invalid distance too far back",$.mode=k0;break}$.mode=S9;case S9:if(G===0)break Q;if(H=F-G,$.offset>H){if(H=$.offset-H,H>$.whave){if($.sane){Q.msg="invalid distance too far back",$.mode=k0;break}}if(H>$.wnext)H-=$.wnext,E=$.wsize-H;else E=$.wnext-H;if(H>$.length)H=$.length;g=$.window}else g=X,E=W-$.offset,H=$.length;if(H>G)H=G;G-=H,$.length-=H;do X[W++]=g[E++];while(--H);if($.length===0)$.mode=A5;break;case Z9:if(G===0)break Q;X[W++]=$.length,G--,$.mode=A5;break;case f7:if($.wrap){while(K<32){if(U===0)break Q;U--,B|=q[Y++]<<K,K+=8}if(F-=G,Q.total_out+=F,$.total+=F,F)Q.adler=$.check=$.flags?_2($.check,X,F,W-F):b7($.check,X,F,W-F);if(F=G,($.flags?B:k9(B))!==$.check){Q.msg="incorrect data check",$.mode=k0;break}B=0,K=0}$.mode=v9;case v9:if($.wrap&&$.flags){while(K<32){if(U===0)break Q;U--,B+=q[Y++]<<K,K+=8}if(B!==($.total&4294967295)){Q.msg="incorrect length check",$.mode=k0;break}B=0,K=0}$.mode=E9;case E9:d=nj;break Q;case k0:d=_9;break Q;case u7:return m7;case aj:default:return j2}if(Q.next_out=W,Q.avail_out=G,Q.next_in=Y,Q.avail_in=U,$.hold=B,$.bits=K,$.wsize||F!==Q.avail_out&&$.mode<k0&&($.mode<f7||J!==G9)){if(u9(Q,Q.output,Q.next_out,F-Q.avail_out))return $.mode=u7,m7}if(j-=Q.avail_in,F-=Q.avail_out,Q.total_in+=j,Q.total_out+=F,$.total+=F,$.wrap&&F)Q.adler=$.check=$.flags?_2($.check,X,F,Q.next_out-F):b7($.check,X,F,Q.next_out-F);if(Q.data_type=$.bits+($.last?64:0)+($.mode===s2?128:0)+($.mode===P5||$.mode===_7?256:0),(j===0&&F===0||J===G9)&&d===l1)d=rj;return d}function YM(Q){if(!Q||!Q.state)return j2;var J=Q.state;if(J.window)J.window=null;return Q.state=null,l1}function WM(Q,J){var $;if(!Q||!Q.state)return j2;if($=Q.state,($.wrap&2)===0)return j2;return $.head=J,J.done=!1,l1}function UM(Q,J){var $=J.length,q,X,Y;if(!Q||!Q.state)return j2;if(q=Q.state,q.wrap!==0&&q.mode!==R5)return j2;if(q.mode===R5){if(X=1,X=b7(X,J,$,0),X!==q.check)return _9}if(Y=u9(Q,J,$,$),Y)return q.mode=u7,m7;return q.havedict=1,l1}GM.inflateReset=h9;GM.inflateReset2=b9;GM.inflateResetKeep=y9;GM.inflateInit=$M;GM.inflateInit2=m9;GM.inflate=XM;GM.inflateEnd=YM;GM.inflateGetHeader=WM;GM.inflateSetDictionary=UM;GM.inflateInfo="pako inflate (from Nodeca project)"});var c7=f((yP,p9)=>{p9.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var d9=f((hP,l9)=>{function DM(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}l9.exports=DM});var n9=f((AM)=>{var O6=c9(),A8=r2(),w5=S7(),y0=c7(),p7=H5(),CM=Z7(),OM=d9(),i9=Object.prototype.toString;function d1(Q){if(!(this instanceof d1))return new d1(Q);this.options=A8.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>=0&&J.windowBits<16){if(J.windowBits=-J.windowBits,J.windowBits===0)J.windowBits=-15}if(J.windowBits>=0&&J.windowBits<16&&!(Q&&Q.windowBits))J.windowBits+=32;if(J.windowBits>15&&J.windowBits<48){if((J.windowBits&15)===0)J.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new CM,this.strm.avail_out=0;var $=O6.inflateInit2(this.strm,J.windowBits);if($!==y0.Z_OK)throw Error(p7[$]);if(this.header=new OM,O6.inflateGetHeader(this.strm,this.header),J.dictionary){if(typeof J.dictionary==="string")J.dictionary=w5.string2buf(J.dictionary);else if(i9.call(J.dictionary)==="[object ArrayBuffer]")J.dictionary=new Uint8Array(J.dictionary);if(J.raw){if($=O6.inflateSetDictionary(this.strm,J.dictionary),$!==y0.Z_OK)throw Error(p7[$])}}}d1.prototype.push=function(Q,J){var $=this.strm,q=this.options.chunkSize,X=this.options.dictionary,Y,W,U,G,B,K=!1;if(this.ended)return!1;if(W=J===~~J?J:J===!0?y0.Z_FINISH:y0.Z_NO_FLUSH,typeof Q==="string")$.input=w5.binstring2buf(Q);else if(i9.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new A8.Buf8(q),$.next_out=0,$.avail_out=q;if(Y=O6.inflate($,y0.Z_NO_FLUSH),Y===y0.Z_NEED_DICT&&X)Y=O6.inflateSetDictionary(this.strm,X);if(Y===y0.Z_BUF_ERROR&&K===!0)Y=y0.Z_OK,K=!1;if(Y!==y0.Z_STREAM_END&&Y!==y0.Z_OK)return this.onEnd(Y),this.ended=!0,!1;if($.next_out){if($.avail_out===0||Y===y0.Z_STREAM_END||$.avail_in===0&&(W===y0.Z_FINISH||W===y0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(U=w5.utf8border($.output,$.next_out),G=$.next_out-U,B=w5.buf2string($.output,U),$.next_out=G,$.avail_out=q-G,G)A8.arraySet($.output,$.output,U,G,0);this.onData(B)}else this.onData(A8.shrinkBuf($.output,$.next_out))}if($.avail_in===0&&$.avail_out===0)K=!0}while(($.avail_in>0||$.avail_out===0)&&Y!==y0.Z_STREAM_END);if(Y===y0.Z_STREAM_END)W=y0.Z_FINISH;if(W===y0.Z_FINISH)return Y=O6.inflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===y0.Z_OK;if(W===y0.Z_SYNC_FLUSH)return this.onEnd(y0.Z_OK),$.avail_out=0,!0;return!0};d1.prototype.onData=function(Q){this.chunks.push(Q)};d1.prototype.onEnd=function(Q){if(Q===y0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=A8.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function l7(Q,J){var $=new d1(J);if($.push(Q,!0),$.err)throw $.msg||p7[$.err];return $.result}function PM(Q,J){return J=J||{},J.raw=!0,l7(Q,J)}AM.Inflate=d1;AM.inflate=l7;AM.inflateRaw=PM;AM.ungzip=l7});var a9=f((mP,r9)=>{var ZM=r2().assign,vM=tq(),EM=n9(),kM=c7(),o9={};ZM(o9,vM,EM,kM);r9.exports=o9});var t9=f((_M)=>{var TM=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",xM=a9(),s9=x0(),I5=q2(),gM=TM?"uint8array":"array";_M.magic="\b\x00";function i1(Q,J){I5.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=J,this.meta={}}s9.inherits(i1,I5);i1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(s9.transformTo(gM,Q.data),!1)};i1.prototype.flush=function(){if(I5.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};i1.prototype.cleanUp=function(){I5.prototype.cleanUp.call(this),this._pako=null};i1.prototype._createPako=function(){this._pako=new xM[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(J){Q.push({data:J,meta:Q.meta})}};_M.compressWorker=function(Q){return new i1("Deflate",Q)};_M.uncompressWorker=function(){return new i1("Inflate",{})}});var d7=f((bM)=>{var e9=q2();bM.STORE={magic:"\x00\x00",compressWorker:function(){return new e9("STORE compression")},uncompressWorker:function(){return new e9("STORE decompression")}};bM.DEFLATE=t9()});var i7=f((cM)=>{cM.LOCAL_FILE_HEADER="PK\x03\x04";cM.CENTRAL_FILE_HEADER="PK\x01\x02";cM.CENTRAL_DIRECTORY_END="PK\x05\x06";cM.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";cM.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";cM.DATA_DESCRIPTOR="PK\x07\b"});var qX=f((lP,$X)=>{var P6=x0(),A6=q2(),n7=H6(),QX=G5(),S5=i7(),v0=function(Q,J){var $="",q;for(q=0;q<J;q++)$+=String.fromCharCode(Q&255),Q=Q>>>8;return $},rM=function(Q,J){var $=Q;if(!Q)$=J?16893:33204;return($&65535)<<16},aM=function(Q){return(Q||0)&63},JX=function(Q,J,$,q,X,Y){var{file:W,compression:U}=Q,G=Y!==n7.utf8encode,B=P6.transformTo("string",Y(W.name)),K=P6.transformTo("string",n7.utf8encode(W.name)),j=W.comment,F=P6.transformTo("string",Y(j)),H=P6.transformTo("string",n7.utf8encode(j)),E=K.length!==W.name.length,g=H.length!==j.length,P,D,V="",z="",L="",A=W.dir,y=W.date,T={crc32:0,compressedSize:0,uncompressedSize:0};if(!J||$)T.crc32=Q.crc32,T.compressedSize=Q.compressedSize,T.uncompressedSize=Q.uncompressedSize;var d=0;if(J)d|=8;if(!G&&(E||g))d|=2048;var S=0,v=0;if(A)S|=16;if(X==="UNIX")v=798,S|=rM(W.unixPermissions,A);else v=20,S|=aM(W.dosPermissions,A);if(P=y.getUTCHours(),P=P<<6,P=P|y.getUTCMinutes(),P=P<<5,P=P|y.getUTCSeconds()/2,D=y.getUTCFullYear()-1980,D=D<<4,D=D|y.getUTCMonth()+1,D=D<<5,D=D|y.getUTCDate(),E)z=v0(1,1)+v0(QX(B),4)+K,V+="up"+v0(z.length,2)+z;if(g)L=v0(1,1)+v0(QX(F),4)+H,V+="uc"+v0(L.length,2)+L;var R="";R+=`
|
|
3
|
-
\x00`,R+=v0(d,2),R+=U.magic,R+=v0(P,2),R+=v0(D,2),R+=v0(T.crc32,4),R+=v0(T.compressedSize,4),R+=v0(T.uncompressedSize,4),R+=v0(B.length,2),R+=v0(V.length,2);var O=S5.LOCAL_FILE_HEADER+R+B+V,_=S5.CENTRAL_FILE_HEADER+v0(v,2)+R+v0(F.length,2)+"\x00\x00\x00\x00"+v0(S,4)+v0(q,4)+B+V+F;return{fileRecord:O,dirRecord:_}},sM=function(Q,J,$,q,X){var Y="",W=P6.transformTo("string",X(q));return Y=S5.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+v0(Q,2)+v0(Q,2)+v0(J,4)+v0($,4)+v0(W.length,2)+W,Y},tM=function(Q){var J="";return J=S5.DATA_DESCRIPTOR+v0(Q.crc32,4)+v0(Q.compressedSize,4)+v0(Q.uncompressedSize,4),J};function N2(Q,J,$,q){A6.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=J,this.zipPlatform=$,this.encodeFileName=q,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}P6.inherits(N2,A6);N2.prototype.push=function(Q){var J=Q.meta.percent||0,$=this.entriesCount,q=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,A6.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:$?(J+100*($-q-1))/$:100}})};N2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var J=this.streamFiles&&!Q.file.dir;if(J){var $=JX(Q,J,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0};N2.prototype.closedSource=function(Q){this.accumulate=!1;var J=this.streamFiles&&!Q.file.dir,$=JX(Q,J,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),J)this.push({data:tM(Q),meta:{percent:100}});else{this.push({data:$.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};N2.prototype.flush=function(){var Q=this.bytesWritten;for(var J=0;J<this.dirRecords.length;J++)this.push({data:this.dirRecords[J],meta:{percent:100}});var $=this.bytesWritten-Q,q=sM(this.dirRecords.length,$,Q,this.zipComment,this.encodeFileName);this.push({data:q,meta:{percent:100}})};N2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};N2.prototype.registerPrevious=function(Q){this._sources.push(Q);var J=this;return Q.on("data",function($){J.processChunk($)}),Q.on("end",function(){if(J.closedSource(J.previous.streamInfo),J._sources.length)J.prepareNextSource();else J.end()}),Q.on("error",function($){J.error($)}),this};N2.prototype.resume=function(){if(!A6.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};N2.prototype.error=function(Q){var J=this._sources;if(!A6.prototype.error.call(this,Q))return!1;for(var $=0;$<J.length;$++)try{J[$].error(Q)}catch(q){}return!0};N2.prototype.lock=function(){A6.prototype.lock.call(this);var Q=this._sources;for(var J=0;J<Q.length;J++)Q[J].lock()};$X.exports=N2});var XX=f(($3)=>{var eM=d7(),Q3=qX(),J3=function(Q,J){var $=Q||J,q=eM[$];if(!q)throw Error($+" is not a valid compression method !");return q};$3.generateWorker=function(Q,J,$){var q=new Q3(J.streamFiles,$,J.platform,J.encodeFileName),X=0;try{Q.forEach(function(Y,W){X++;var U=J3(W.options.compression,J.compression),G=W.options.compressionOptions||J.compressionOptions||{},B=W.dir,K=W.date;W._compressWorker(U,G).withStreamInfo("file",{name:Y,dir:B,date:K,comment:W.comment||"",unixPermissions:W.unixPermissions,dosPermissions:W.dosPermissions}).pipe(q)}),q.entriesCount=X}catch(Y){q.error(Y)}return q}});var WX=f((iP,YX)=>{var X3=x0(),Z5=q2();function R8(Q,J){Z5.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(J)}X3.inherits(R8,Z5);R8.prototype._bindStream=function(Q){var J=this;this._stream=Q,Q.pause(),Q.on("data",function($){J.push({data:$,meta:{percent:0}})}).on("error",function($){if(J.isPaused)this.generatedError=$;else J.error($)}).on("end",function(){if(J.isPaused)J._upstreamEnded=!0;else J.end()})};R8.prototype.pause=function(){if(!Z5.prototype.pause.call(this))return!1;return this._stream.pause(),!0};R8.prototype.resume=function(){if(!Z5.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};YX.exports=R8});var zX=f((nP,FX)=>{var Y3=H6(),w8=x0(),KX=q2(),W3=s4(),VX=t4(),UX=B5(),U3=Gq(),G3=XX(),GX=$8(),B3=WX(),HX=function(Q,J,$){var q=w8.getTypeOf(J),X,Y=w8.extend($||{},VX);if(Y.date=Y.date||new Date,Y.compression!==null)Y.compression=Y.compression.toUpperCase();if(typeof Y.unixPermissions==="string")Y.unixPermissions=parseInt(Y.unixPermissions,8);if(Y.unixPermissions&&Y.unixPermissions&16384)Y.dir=!0;if(Y.dosPermissions&&Y.dosPermissions&16)Y.dir=!0;if(Y.dir)Q=jX(Q);if(Y.createFolders&&(X=K3(Q)))MX.call(this,X,!0);var W=q==="string"&&Y.binary===!1&&Y.base64===!1;if(!$||typeof $.binary>"u")Y.binary=!W;var U=J instanceof UX&&J.uncompressedSize===0;if(U||Y.dir||!J||J.length===0)Y.base64=!1,Y.binary=!0,J="",Y.compression="STORE",q="string";var G=null;if(J instanceof UX||J instanceof KX)G=J;else if(GX.isNode&&GX.isStream(J))G=new B3(Q,J);else G=w8.prepareContent(Q,J,Y.binary,Y.optimizedBinaryString,Y.base64);var B=new U3(Q,G,Y);this.files[Q]=B},K3=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var J=Q.lastIndexOf("/");return J>0?Q.substring(0,J):""},jX=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},MX=function(Q,J){if(J=typeof J<"u"?J:VX.createFolders,Q=jX(Q),!this.files[Q])HX.call(this,Q,null,{dir:!0,createFolders:J});return this.files[Q]};function BX(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var V3={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var J,$,q;for(J in this.files)if(q=this.files[J],$=J.slice(this.root.length,J.length),$&&J.slice(0,this.root.length)===this.root)Q($,q)},filter:function(Q){var J=[];return this.forEach(function($,q){if(Q($,q))J.push(q)}),J},file:function(Q,J,$){if(arguments.length===1)if(BX(Q)){var q=Q;return this.filter(function(Y,W){return!W.dir&&q.test(Y)})}else{var X=this.files[this.root+Q];if(X&&!X.dir)return X;else return null}else Q=this.root+Q,HX.call(this,Q,J,$);return this},folder:function(Q){if(!Q)return this;if(BX(Q))return this.filter(function(X,Y){return Y.dir&&Q.test(X)});var J=this.root+Q,$=MX.call(this,J),q=this.clone();return q.root=$.name,q},remove:function(Q){Q=this.root+Q;var J=this.files[Q];if(!J){if(Q.slice(-1)!=="/")Q+="/";J=this.files[Q]}if(J&&!J.dir)delete this.files[Q];else{var $=this.filter(function(X,Y){return Y.name.slice(0,Q.length)===Q});for(var q=0;q<$.length;q++)delete this.files[$[q].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var J,$={};try{if($=w8.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Y3.utf8encode}),$.type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring")$.type="string";if(!$.type)throw Error("No output type specified.");if(w8.checkSupport($.type),$.platform==="darwin"||$.platform==="freebsd"||$.platform==="linux"||$.platform==="sunos")$.platform="UNIX";if($.platform==="win32")$.platform="DOS";var q=$.comment||this.comment||"";J=G3.generateWorker(this,$,q)}catch(X){J=new KX("error"),J.error(X)}return new W3(J,$.type||"string",$.mimeType)},generateAsync:function(Q,J){return this.generateInternalStream(Q).accumulate(J)},generateNodeStream:function(Q,J){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream(J)}};FX.exports=V3});var o7=f((oP,NX)=>{var H3=x0();function LX(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}LX.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+Q+"). Corrupted zip ?")},setIndex:function(Q){this.checkIndex(Q),this.index=Q},skip:function(Q){this.setIndex(this.index+Q)},byteAt:function(){},readInt:function(Q){var J=0,$;this.checkOffset(Q);for($=this.index+Q-1;$>=this.index;$--)J=(J<<8)+this.byteAt($);return this.index+=Q,J},readString:function(Q){return H3.transformTo("string",this.readData(Q))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var Q=this.readInt(4);return new Date(Date.UTC((Q>>25&127)+1980,(Q>>21&15)-1,Q>>16&31,Q>>11&31,Q>>5&63,(Q&31)<<1))}};NX.exports=LX});var r7=f((rP,CX)=>{var DX=o7(),j3=x0();function R6(Q){DX.call(this,Q);for(var J=0;J<this.data.length;J++)Q[J]=Q[J]&255}j3.inherits(R6,DX);R6.prototype.byteAt=function(Q){return this.data[this.zero+Q]};R6.prototype.lastIndexOfSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),q=Q.charCodeAt(2),X=Q.charCodeAt(3);for(var Y=this.length-4;Y>=0;--Y)if(this.data[Y]===J&&this.data[Y+1]===$&&this.data[Y+2]===q&&this.data[Y+3]===X)return Y-this.zero;return-1};R6.prototype.readAndCheckSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),q=Q.charCodeAt(2),X=Q.charCodeAt(3),Y=this.readData(4);return J===Y[0]&&$===Y[1]&&q===Y[2]&&X===Y[3]};R6.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};CX.exports=R6});var AX=f((aP,PX)=>{var OX=o7(),M3=x0();function w6(Q){OX.call(this,Q)}M3.inherits(w6,OX);w6.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};w6.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};w6.prototype.readAndCheckSignature=function(Q){var J=this.readData(4);return Q===J};w6.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};PX.exports=w6});var s7=f((sP,wX)=>{var RX=r7(),F3=x0();function a7(Q){RX.call(this,Q)}F3.inherits(a7,RX);a7.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var J=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};wX.exports=a7});var ZX=f((tP,SX)=>{var IX=s7(),z3=x0();function t7(Q){IX.call(this,Q)}z3.inherits(t7,IX);t7.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};SX.exports=t7});var e7=f((eP,EX)=>{var v5=x0(),vX=o2(),L3=r7(),N3=AX(),D3=ZX(),C3=s7();EX.exports=function(Q){var J=v5.getTypeOf(Q);if(v5.checkSupport(J),J==="string"&&!vX.uint8array)return new N3(Q);if(J==="nodebuffer")return new D3(Q);if(vX.uint8array)return new C3(v5.transformTo("uint8array",Q));return new L3(v5.transformTo("array",Q))}});var gX=f((QA,xX)=>{var QQ=e7(),L1=x0(),O3=B5(),kX=G5(),E5=H6(),k5=d7(),P3=o2(),A3=0,R3=3,w3=function(Q){for(var J in k5){if(!Object.prototype.hasOwnProperty.call(k5,J))continue;if(k5[J].magic===Q)return k5[J]}return null};function TX(Q,J){this.options=Q,this.loadOptions=J}TX.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var J,$;if(Q.skip(22),this.fileNameLength=Q.readInt(2),$=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip($),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(J=w3(this.compressionMethod),J===null)throw Error("Corrupted zip : compression "+L1.pretty(this.compressionMethod)+" unknown (inner file : "+L1.transformTo("string",this.fileName)+")");this.decompressed=new O3(this.compressedSize,this.uncompressedSize,this.crc32,J,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var J=Q.readInt(2);if(this.extraFieldsLength=Q.readInt(2),this.fileCommentLength=Q.readInt(2),this.diskNumberStart=Q.readInt(2),this.internalFileAttributes=Q.readInt(2),this.externalFileAttributes=Q.readInt(4),this.localHeaderOffset=Q.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");Q.skip(J),this.readExtraFields(Q),this.parseZIP64ExtraField(Q),this.fileComment=Q.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Q=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,Q===A3)this.dosPermissions=this.externalFileAttributes&63;if(Q===R3)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var Q=QQ(this.extraFields[1].value);if(this.uncompressedSize===L1.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===L1.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===L1.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===L1.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var J=Q.index+this.extraFieldsLength,$,q,X;if(!this.extraFields)this.extraFields={};while(Q.index+4<J)$=Q.readInt(2),q=Q.readInt(2),X=Q.readData(q),this.extraFields[$]={id:$,length:q,value:X};Q.setIndex(J)},handleUTF8:function(){var Q=P3.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=E5.utf8decode(this.fileName),this.fileCommentStr=E5.utf8decode(this.fileComment);else{var J=this.findExtraFieldUnicodePath();if(J!==null)this.fileNameStr=J;else{var $=L1.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var q=this.findExtraFieldUnicodeComment();if(q!==null)this.fileCommentStr=q;else{var X=L1.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(X)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var J=QQ(Q.value);if(J.readInt(1)!==1)return null;if(kX(this.fileName)!==J.readInt(4))return null;return E5.utf8decode(J.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var J=QQ(Q.value);if(J.readInt(1)!==1)return null;if(kX(this.fileComment)!==J.readInt(4))return null;return E5.utf8decode(J.readData(Q.length-5))}return null}};xX.exports=TX});var yX=f((JA,fX)=>{var I3=e7(),t2=x0(),D2=i7(),S3=gX(),Z3=o2();function _X(Q){this.files=[],this.loadOptions=Q}_X.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var J=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+t2.pretty(J)+", expected "+t2.pretty(Q)+")")}},isSignature:function(Q,J){var $=this.reader.index;this.reader.setIndex(Q);var q=this.reader.readString(4),X=q===J;return this.reader.setIndex($),X},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var Q=this.reader.readData(this.zipCommentLength),J=Z3.uint8array?"uint8array":"array",$=t2.transformTo(J,Q);this.zipComment=this.loadOptions.decodeFileName($)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var Q=this.zip64EndOfCentralSize-44,J=0,$,q,X;while(J<Q)$=this.reader.readInt(2),q=this.reader.readInt(4),X=this.reader.readData(q),this.zip64ExtensibleData[$]={id:$,length:q,value:X}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,J;for(Q=0;Q<this.files.length;Q++)J=this.files[Q],this.reader.setIndex(J.localHeaderOffset),this.checkSignature(D2.LOCAL_FILE_HEADER),J.readLocalPart(this.reader),J.handleUTF8(),J.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(D2.CENTRAL_FILE_HEADER))Q=new S3({zip64:this.zip64},this.loadOptions),Q.readCentralPart(this.reader),this.files.push(Q);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature(D2.CENTRAL_DIRECTORY_END);if(Q<0){var J=!this.isSignature(0,D2.LOCAL_FILE_HEADER);if(J)throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var $=Q;if(this.checkSignature(D2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===t2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===t2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===t2.MAX_VALUE_16BITS||this.centralDirRecords===t2.MAX_VALUE_16BITS||this.centralDirSize===t2.MAX_VALUE_32BITS||this.centralDirOffset===t2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(D2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature(D2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,D2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(D2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(D2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var q=this.centralDirOffset+this.centralDirSize;if(this.zip64)q+=20,q+=12+this.zip64EndOfCentralSize;var X=$-q;if(X>0)if(this.isSignature($,D2.CENTRAL_FILE_HEADER));else this.reader.zero=X;else if(X<0)throw Error("Corrupted zip: missing "+Math.abs(X)+" bytes.")},prepareReader:function(Q){this.reader=I3(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};fX.exports=_X});var mX=f(($A,bX)=>{var JQ=x0(),T5=B6(),v3=H6(),E3=yX(),k3=J7(),hX=$8();function T3(Q){return new T5.Promise(function(J,$){var q=Q.decompressed.getContentWorker().pipe(new k3);q.on("error",function(X){$(X)}).on("end",function(){if(q.streamInfo.crc32!==Q.decompressed.crc32)$(Error("Corrupted zip : CRC32 mismatch"));else J()}).resume()})}bX.exports=function(Q,J){var $=this;if(J=JQ.extend(J||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:v3.utf8decode}),hX.isNode&&hX.isStream(Q))return T5.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return JQ.prepareContent("the loaded zip file",Q,!0,J.optimizedBinaryString,J.base64).then(function(q){var X=new E3(J);return X.load(q),X}).then(function(X){var Y=[T5.Promise.resolve(X)],W=X.files;if(J.checkCRC32)for(var U=0;U<W.length;U++)Y.push(T3(W[U]));return T5.Promise.all(Y)}).then(function(X){var Y=X.shift(),W=Y.files;for(var U=0;U<W.length;U++){var G=W[U],B=G.fileNameStr,K=JQ.resolve(G.fileNameStr);if($.file(K,G.decompressed,{binary:!0,optimizedBinaryString:!0,date:G.date,dir:G.dir,comment:G.fileCommentStr.length?G.fileCommentStr:null,unixPermissions:G.unixPermissions,dosPermissions:G.dosPermissions,createFolders:J.createFolders}),!G.dir)$.file(K).unsafeOriginalName=B}if(Y.zipComment.length)$.comment=Y.zipComment;return $})}});var cX=f((qA,uX)=>{function M2(){if(!(this instanceof M2))return new M2;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Q=new M2;for(var J in this)if(typeof this[J]!=="function")Q[J]=this[J];return Q}}M2.prototype=zX();M2.prototype.loadAsync=mX();M2.support=o2();M2.defaults=t4();M2.version="3.10.1";M2.loadAsync=function(Q,J){return new M2().loadAsync(Q,J)};M2.external=B6();uX.exports=M2});var f0=f((UQ,JY)=>{var g8=function(Q){return Q&&Q.Math===Math&&Q};JY.exports=g8(typeof globalThis=="object"&&globalThis)||g8(typeof window=="object"&&window)||g8(typeof self=="object"&&self)||g8(typeof global=="object"&&global)||g8(typeof UQ=="object"&&UQ)||function(){return this}()||Function("return this")()});var $1=f((VR,$Y)=>{$Y.exports=function(Q){try{return!!Q()}catch(J){return!0}}});var q1=f((HR,qY)=>{var iF=$1();qY.exports=!iF(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var y5=f((jR,XY)=>{var nF=$1();XY.exports=!nF(function(){var Q=function(){}.bind();return typeof Q!="function"||Q.hasOwnProperty("prototype")})});var _8=f((MR,YY)=>{var oF=y5(),h5=Function.prototype.call;YY.exports=oF?h5.bind(h5):function(){return h5.apply(h5,arguments)}});var GY=f((aF)=>{var WY={}.propertyIsEnumerable,UY=Object.getOwnPropertyDescriptor,rF=UY&&!WY.call({1:2},1);aF.f=rF?function(J){var $=UY(this,J);return!!$&&$.enumerable}:WY});var GQ=f((zR,BY)=>{BY.exports=function(Q,J){return{enumerable:!(Q&1),configurable:!(Q&2),writable:!(Q&4),value:J}}});var p0=f((LR,HY)=>{var KY=y5(),VY=Function.prototype,BQ=VY.call,tF=KY&&VY.bind.bind(BQ,BQ);HY.exports=KY?tF:function(Q){return function(){return BQ.apply(Q,arguments)}}});var f8=f((NR,MY)=>{var jY=p0(),eF=jY({}.toString),Qz=jY("".slice);MY.exports=function(Q){return Qz(eF(Q),8,-1)}});var zY=f((DR,FY)=>{var Jz=p0(),$z=$1(),qz=f8(),KQ=Object,Xz=Jz("".split);FY.exports=$z(function(){return!KQ("z").propertyIsEnumerable(0)})?function(Q){return qz(Q)==="String"?Xz(Q,""):KQ(Q)}:KQ});var b5=f((CR,LY)=>{LY.exports=function(Q){return Q===null||Q===void 0}});var VQ=f((OR,NY)=>{var Yz=b5(),Wz=TypeError;NY.exports=function(Q){if(Yz(Q))throw new Wz("Can't call method on "+Q);return Q}});var m5=f((PR,DY)=>{var Uz=zY(),Gz=VQ();DY.exports=function(Q){return Uz(Gz(Q))}});var F2=f((AR,CY)=>{var HQ=typeof document=="object"&&document.all;CY.exports=typeof HQ>"u"&&HQ!==void 0?function(Q){return typeof Q=="function"||Q===HQ}:function(Q){return typeof Q=="function"}});var e1=f((RR,OY)=>{var Bz=F2();OY.exports=function(Q){return typeof Q=="object"?Q!==null:Bz(Q)}});var y8=f((wR,PY)=>{var jQ=f0(),Kz=F2(),Vz=function(Q){return Kz(Q)?Q:void 0};PY.exports=function(Q,J){return arguments.length<2?Vz(jQ[Q]):jQ[Q]&&jQ[Q][J]}});var MQ=f((IR,AY)=>{var Hz=p0();AY.exports=Hz({}.isPrototypeOf)});var SY=f((SR,IY)=>{var jz=f0(),RY=jz.navigator,wY=RY&&RY.userAgent;IY.exports=wY?String(wY):""});var zQ=f((ZR,xY)=>{var TY=f0(),FQ=SY(),ZY=TY.process,vY=TY.Deno,EY=ZY&&ZY.versions||vY&&vY.version,kY=EY&&EY.v8,w2,u5;if(kY)w2=kY.split("."),u5=w2[0]>0&&w2[0]<4?1:+(w2[0]+w2[1]);if(!u5&&FQ){if(w2=FQ.match(/Edge\/(\d+)/),!w2||w2[1]>=74){if(w2=FQ.match(/Chrome\/(\d+)/),w2)u5=+w2[1]}}xY.exports=u5});var LQ=f((vR,_Y)=>{var gY=zQ(),Mz=$1(),Fz=f0(),zz=Fz.String;_Y.exports=!!Object.getOwnPropertySymbols&&!Mz(function(){var Q=Symbol("symbol detection");return!zz(Q)||!(Object(Q)instanceof Symbol)||!Symbol.sham&&gY&&gY<41})});var NQ=f((ER,fY)=>{var Lz=LQ();fY.exports=Lz&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var DQ=f((kR,yY)=>{var Nz=y8(),Dz=F2(),Cz=MQ(),Oz=NQ(),Pz=Object;yY.exports=Oz?function(Q){return typeof Q=="symbol"}:function(Q){var J=Nz("Symbol");return Dz(J)&&Cz(J.prototype,Pz(Q))}});var bY=f((TR,hY)=>{var Az=String;hY.exports=function(Q){try{return Az(Q)}catch(J){return"Object"}}});var u6=f((xR,mY)=>{var Rz=F2(),wz=bY(),Iz=TypeError;mY.exports=function(Q){if(Rz(Q))return Q;throw new Iz(wz(Q)+" is not a function")}});var CQ=f((gR,uY)=>{var Sz=u6(),Zz=b5();uY.exports=function(Q,J){var $=Q[J];return Zz($)?void 0:Sz($)}});var pY=f((_R,cY)=>{var OQ=_8(),PQ=F2(),AQ=e1(),vz=TypeError;cY.exports=function(Q,J){var $,q;if(J==="string"&&PQ($=Q.toString)&&!AQ(q=OQ($,Q)))return q;if(PQ($=Q.valueOf)&&!AQ(q=OQ($,Q)))return q;if(J!=="string"&&PQ($=Q.toString)&&!AQ(q=OQ($,Q)))return q;throw new vz("Can't convert object to primitive value")}});var dY=f((fR,lY)=>{lY.exports=!1});var c5=f((yR,nY)=>{var iY=f0(),Ez=Object.defineProperty;nY.exports=function(Q,J){try{Ez(iY,Q,{value:J,configurable:!0,writable:!0})}catch($){iY[Q]=J}return J}});var p5=f((hR,aY)=>{var kz=dY(),Tz=f0(),xz=c5(),oY="__core-js_shared__",rY=aY.exports=Tz[oY]||xz(oY,{});(rY.versions||(rY.versions=[])).push({version:"3.50.0",mode:kz?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var RQ=f((bR,tY)=>{var sY=p5(),gz=Object.create||Object;tY.exports=function(Q,J){return sY[Q]||(sY[Q]=J||gz(null))}});var QW=f((mR,eY)=>{var _z=VQ(),fz=Object;eY.exports=function(Q){return fz(_z(Q))}});var b2=f((uR,JW)=>{var yz=p0(),hz=QW(),bz=yz({}.hasOwnProperty);JW.exports=Object.hasOwn||function(J,$){return bz(hz(J),$)}});var wQ=f((cR,$W)=>{var mz=p0(),uz=0,cz=Math.random(),pz=mz(1.1 .toString);$W.exports=function(Q){return"Symbol("+(Q===void 0?"":Q)+")_"+pz(++uz+cz,36)}});var Q6=f((pR,XW)=>{var lz=f0(),dz=RQ(),qW=b2(),iz=wQ(),nz=LQ(),oz=NQ(),c6=lz.Symbol,IQ=dz("wks"),rz=oz?c6.for||c6:c6&&c6.withoutSetter||iz;XW.exports=function(Q){if(!qW(IQ,Q))IQ[Q]=nz&&qW(c6,Q)?c6[Q]:rz("Symbol."+Q);return IQ[Q]}});var GW=f((lR,UW)=>{var az=_8(),YW=e1(),WW=DQ(),sz=CQ(),tz=pY(),ez=Q6(),QL=TypeError,JL=ez("toPrimitive");UW.exports=function(Q,J){if(!YW(Q)||WW(Q))return Q;var $=sz(Q,JL),q;if($){if(J===void 0)J="default";if(q=az($,Q,J),!YW(q)||WW(q))return q;throw new QL("Can't convert object to primitive value")}if(J===void 0)J="number";return tz(Q,J)}});var SQ=f((dR,BW)=>{var $L=GW(),qL=DQ();BW.exports=function(Q){var J=$L(Q,"string");return qL(J)?J:J+""}});var HW=f((iR,VW)=>{var XL=f0(),KW=e1(),ZQ=XL.document,YL=KW(ZQ)&&KW(ZQ.createElement);VW.exports=function(Q){return YL?ZQ.createElement(Q):{}}});var vQ=f((nR,jW)=>{var WL=q1(),UL=$1(),GL=HW();jW.exports=!WL&&!UL(function(){return Object.defineProperty(GL("div"),"a",{get:function(){return 7}}).a!==7})});var l5=f((LL)=>{var BL=q1(),KL=_8(),VL=GY(),HL=GQ(),jL=m5(),ML=SQ(),FL=b2(),zL=vQ(),MW=Object.getOwnPropertyDescriptor;LL.f=BL?MW:function(J,$){if(J=jL(J),$=ML($),zL)try{return MW(J,$)}catch(q){}if(FL(J,$))return HL(!KL(VL.f,J,$),J[$])}});var zW=f((rR,FW)=>{var DL=q1(),CL=$1();FW.exports=DL&&CL(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var d5=f((aR,LW)=>{var OL=e1(),PL=String,AL=TypeError;LW.exports=function(Q){if(OL(Q))return Q;throw new AL(PL(Q)+" is not an object")}});var J6=f((vL)=>{var RL=q1(),wL=vQ(),IL=zW(),i5=d5(),NW=SQ(),SL=TypeError,EQ=Object.defineProperty,ZL=Object.getOwnPropertyDescriptor,kQ="enumerable",TQ="configurable",xQ="writable";vL.f=RL?IL?function(J,$,q){if(i5(J),$=NW($),i5(q),typeof J==="function"&&$==="prototype"&&"value"in q&&xQ in q&&!q[xQ]){var X=ZL(J,$);if(X&&X[xQ])J[$]=q.value,q={configurable:TQ in q?q[TQ]:X[TQ],enumerable:kQ in q?q[kQ]:X[kQ],writable:!1}}return EQ(J,$,q)}:EQ:function(J,$,q){if(i5(J),$=NW($),i5(q),wL)try{return EQ(J,$,q)}catch(X){}if("get"in q||"set"in q)throw new SL("Accessors not supported");if("value"in q)J[$]=q.value;return J}});var gQ=f((tR,DW)=>{var kL=q1(),TL=J6(),xL=GQ();DW.exports=kL?function(Q,J,$){return TL.f(Q,J,xL(1,$))}:function(Q,J,$){return Q[J]=$,Q}});var PW=f((eR,OW)=>{var _Q=q1(),gL=b2(),CW=Function.prototype,_L=_Q&&Object.getOwnPropertyDescriptor,fQ=gL(CW,"name"),fL=fQ&&function(){}.name==="something",yL=fQ&&(!_Q||_Q&&_L(CW,"name").configurable);OW.exports={EXISTS:fQ,PROPER:fL,CONFIGURABLE:yL}});var RW=f((Qw,AW)=>{var hL=p0(),bL=F2(),yQ=p5(),mL=hL(Function.toString);if(!bL(yQ.inspectSource))yQ.inspectSource=function(Q){return mL(Q)};AW.exports=yQ.inspectSource});var SW=f((Jw,IW)=>{var uL=f0(),cL=F2(),wW=uL.WeakMap;IW.exports=cL(wW)&&/native code/.test(String(wW))});var EW=f(($w,vW)=>{var pL=RQ(),lL=wQ(),ZW=pL("keys");vW.exports=function(Q){return ZW[Q]||(ZW[Q]=lL(Q))}});var hQ=f((qw,kW)=>{kW.exports={}});var cQ=f((Xw,gW)=>{var dL=SW(),xW=f0(),iL=e1(),nL=gQ(),bQ=b2(),mQ=p5(),oL=EW(),rL=hQ(),TW="Object already initialized",uQ=xW.TypeError,aL=xW.WeakMap,n5,h8,o5,sL=function(Q){return o5(Q)?h8(Q):n5(Q,{})},tL=function(Q){return function(J){var $;if(!iL(J)||($=h8(J)).type!==Q)throw new uQ("Incompatible receiver, "+Q+" required");return $}};if(dL||mQ.state)z2=mQ.state||(mQ.state=new aL),z2.get=z2.get,z2.has=z2.has,z2.set=z2.set,n5=function(Q,J){if(z2.has(Q))throw new uQ(TW);return J.facade=Q,z2.set(Q,J),J},h8=function(Q){return z2.get(Q)||{}},o5=function(Q){return z2.has(Q)};else A1=oL("state"),rL[A1]=!0,n5=function(Q,J){if(bQ(Q,A1))throw new uQ(TW);return J.facade=Q,nL(Q,A1,J),J},h8=function(Q){return bQ(Q,A1)?Q[A1]:{}},o5=function(Q){return bQ(Q,A1)};var z2,A1;gW.exports={set:n5,get:h8,has:o5,enforce:sL,getterFor:tL}});var dQ=f((Yw,yW)=>{var lQ=p0(),eL=$1(),QN=F2(),r5=b2(),pQ=q1(),JN=PW().CONFIGURABLE,$N=RW(),fW=cQ(),qN=fW.enforce,XN=fW.get,_W=String,a5=Object.defineProperty,YN=lQ("".slice),WN=lQ("".replace),UN=lQ([].join),GN=pQ&&!eL(function(){return a5(function(){},"length",{value:8}).length!==8}),BN=String(String).split("String"),KN=yW.exports=function(Q,J,$){if(YN(_W(J),0,7)==="Symbol(")J="["+WN(_W(J),/^Symbol\(([^)]*)\).*$/,"$1")+"]";if($&&$.getter)J="get "+J;if($&&$.setter)J="set "+J;if(!r5(Q,"name")||JN&&Q.name!==J)if(pQ)a5(Q,"name",{value:J,configurable:!0});else Q.name=J;if(GN&&$&&r5($,"arity")&&Q.length!==$.arity)a5(Q,"length",{value:$.arity});try{if($&&r5($,"constructor")&&$.constructor){if(pQ)a5(Q,"prototype",{writable:!1})}else if(Q.prototype)Q.prototype=void 0}catch(X){}var q=qN(Q);if(!r5(q,"source"))q.source=UN(BN,typeof J=="string"?J:"");return Q};Function.prototype.toString=KN(function(){return QN(this)&&XN(this).source||$N(this)},"toString")});var s5=f((Ww,hW)=>{var VN=F2(),HN=J6(),jN=dQ(),MN=c5();hW.exports=function(Q,J,$,q){if(!q)q={};var X=q.enumerable,Y=q.name!==void 0?q.name:J;if(VN($))jN($,Y,q);if(q.global)if(X)Q[J]=$;else MN(J,$);else{try{if(!q.unsafe)delete Q[J];else if(Q[J])X=!0}catch(W){}if(X)Q[J]=$;else HN.f(Q,J,{value:$,enumerable:!1,configurable:!q.nonConfigurable,writable:!q.nonWritable})}return Q}});var mW=f((Uw,bW)=>{var{ceil:FN,floor:zN}=Math;bW.exports=Math.trunc||function(J){var $=+J;return($>0?zN:FN)($)}});var iQ=f((Gw,uW)=>{var LN=mW();uW.exports=function(Q){var J=+Q;return J!==J||J===0?0:LN(J)}});var pW=f((Bw,cW)=>{var NN=iQ(),DN=Math.max,CN=Math.min;cW.exports=function(Q,J){var $=NN(Q);return $<0?DN($+J,0):CN($,J)}});var dW=f((Kw,lW)=>{var ON=iQ(),PN=Math.min;lW.exports=function(Q){var J=ON(Q);return J>0?PN(J,9007199254740991):0}});var nQ=f((Vw,iW)=>{var AN=dW();iW.exports=function(Q){return AN(Q.length)}});var rW=f((Hw,oW)=>{var RN=m5(),wN=pW(),IN=nQ(),nW=function(Q){return function(J,$,q){var X=RN(J),Y=IN(X);if(Y===0)return!Q&&-1;var W=wN(q,Y),U;if(Q&&$!==$){while(Y>W)if(U=X[W++],U!==U)return!0}else for(;Y>W;W++)if((Q||(W in X))&&X[W]===$)return Q||W||0;return!Q&&-1}};oW.exports={includes:nW(!0),indexOf:nW(!1)}});var tW=f((jw,sW)=>{var SN=p0(),oQ=b2(),ZN=m5(),vN=rW().indexOf,EN=hQ(),aW=SN([].push);sW.exports=function(Q,J){var $=ZN(Q),q=0,X=[],Y;for(Y in $)!oQ(EN,Y)&&oQ($,Y)&&aW(X,Y);while(J.length>q)if(oQ($,Y=J[q++]))~vN(X,Y)||aW(X,Y);return X}});var QU=f((Mw,eW)=>{eW.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var JU=f((gN)=>{var kN=tW(),TN=QU(),xN=TN.concat("length","prototype");gN.f=Object.getOwnPropertyNames||function(J){return kN(J,xN)}});var $U=f((fN)=>{fN.f=Object.getOwnPropertySymbols});var XU=f((Lw,qU)=>{var hN=y8(),bN=p0(),mN=JU(),uN=$U(),cN=d5(),pN=bN([].concat);qU.exports=hN("Reflect","ownKeys")||function(J){var $=mN.f(cN(J)),q=uN.f;return q?pN($,q(J)):$}});var UU=f((Nw,WU)=>{var YU=b2(),lN=XU(),dN=l5(),iN=J6();WU.exports=function(Q,J,$){var q=lN(J),X=iN.f,Y=dN.f;for(var W=0;W<q.length;W++){var U=q[W];if(!YU(Q,U)&&!($&&YU($,U)))X(Q,U,Y(J,U))}}});var BU=f((Dw,GU)=>{var nN=$1(),oN=F2(),rN=/#|\.prototype\./,b8=function(Q,J){var $=sN[aN(Q)];return $===eN?!0:$===tN?!1:oN(J)?nN(J):!!J},aN=b8.normalize=function(Q){return String(Q).replace(rN,".").toLowerCase()},sN=b8.data={},tN=b8.NATIVE="N",eN=b8.POLYFILL="P";GU.exports=b8});var p6=f((Cw,KU)=>{var t5=f0(),QD=l5().f,JD=gQ(),$D=s5(),qD=c5(),XD=UU(),YD=BU();KU.exports=function(Q,J){var{target:$,global:q,stat:X}=Q,Y,W,U,G,B,K;if(q)W=t5;else if(X)W=t5[$]||qD($,{});else W=t5[$]&&t5[$].prototype;if(W)for(U in J){if(B=J[U],Q.dontCallGetSet)K=QD(W,U),G=K&&K.value;else G=W[U];if(Y=YD(q?U:$+(X?".":"#")+U,Q.forced),!Y&&G!==void 0){if(typeof B==typeof G)continue;XD(B,G)}if(Q.sham||G&&G.sham)JD(B,"sham",!0);$D(W,U,B,Q)}}});var HU=f((Ow,VU)=>{var WD=MQ(),UD=TypeError;VU.exports=function(Q,J){if(WD(J,Q))return Q;throw new UD("Incorrect invocation")}});var MU=f((Pw,jU)=>{var GD=s5();jU.exports=function(Q,J,$){for(var q in J)GD(Q,q,J[q],$);return Q}});var LU=f((Aw,zU)=>{var FU=dQ(),BD=J6();zU.exports=function(Q,J,$){if($.get)FU($.get,J,{getter:!0});if($.set)FU($.set,J,{setter:!0});return BD.f(Q,J,$)}});var DU=f((Rw,NU)=>{var KD=f8(),VD=p0();NU.exports=function(Q){if(KD(Q)==="Function")return VD(Q)}});var PU=f((ww,OU)=>{var CU=DU(),HD=u6(),jD=y5(),MD=CU(CU.bind);OU.exports=function(Q,J){return HD(Q),J===void 0?Q:jD?MD(Q,J):function(){return Q.apply(J,arguments)}}});var ZU=f((Iw,SU)=>{var FD=y8(),zD=_8(),LD=p0(),ND=PU(),DD=d5(),CD=u6(),wU=b5(),rQ=CQ(),IU=Q6(),OD=IU("asyncDispose"),AU=IU("dispose"),PD=LD([].push),AD=function(Q,J){if(J==="async-dispose"){var $=rQ(Q,OD);if($!==void 0)return $;if($=rQ(Q,AU),$===void 0)return $;return function(){var q=this,X=FD("Promise");return new X(function(Y){zD($,q),Y(void 0)})}}return rQ(Q,AU)},RU=function(Q,J,$){if(arguments.length<3&&!wU(Q))$=CD(AD(DD(Q),J));return $===void 0?function(){return}:ND($,Q)};SU.exports=function(Q,J,$,q){var X;if(arguments.length<4){if(wU(J)&&$==="sync-dispose")return;X=RU(J,$)}else X=RU(void 0,$,q);PD(Q.stack,X)}});var fU=f(()=>{var RD=p6(),Q4=q1(),TU=y8(),vU=u6(),wD=HU(),xU=s5(),ID=MU(),SD=LU(),gU=Q6(),_U=cQ(),aQ=ZU(),EU=zQ(),kU=TU("Promise"),ZD=TU("SuppressedError"),vD=ReferenceError,ED=gU("asyncDispose"),kD=gU("toStringTag"),$4="AsyncDisposableStack",TD=_U.set,J4=_U.getterFor($4),sQ="async-dispose",m8="disposed",xD="pending",e5=function(Q){var J=J4(Q);if(J.state===m8)throw new vD($4+" already disposed");return J},tQ=function(){if(TD(wD(this,l6),{type:$4,state:xD,stack:[]}),!Q4)this.disposed=!1},l6=tQ.prototype;ID(l6,{disposeAsync:function(){var J=this;return new kU(function($,q){var X=J4(J);if(X.state===m8)return $(void 0);if(X.state=m8,!Q4)J.disposed=!0;var Y=X.stack,W=Y.length,U=!1,G,B=function(j){if(U)G=new ZD(j,G);else U=!0,G=j;K()},K=function(){if(W){var j=Y[--W];Y[W]=null;try{kU.resolve(j()).then(K,B)}catch(F){B(F)}}else X.stack=null,U?q(G):$(void 0)};K()})},use:function(J){return aQ(e5(this),J,sQ),J},adopt:function(J,$){var q=e5(this);return vU($),aQ(q,void 0,sQ,function(){return $(J)}),J},defer:function(J){var $=e5(this);vU(J),aQ($,void 0,sQ,J)},move:function(){var J=e5(this),$=new tQ;if(J4($).stack=J.stack,J.stack=[],J.state=m8,!Q4)this.disposed=!0;return $}});if(Q4)SD(l6,"disposed",{configurable:!0,get:function(){return J4(this).state===m8}});xU(l6,ED,l6.disposeAsync,{name:"disposeAsync"});xU(l6,kD,$4,{nonWritable:!0});var gD=EU&&EU<136;RD({global:!0,constructor:!0,forced:gD},{AsyncDisposableStack:tQ})});var hU=f((vw,yU)=>{var _D=f0();yU.exports=_D});var bU=f((yD)=>{var fD=Q6();yD.f=fD});var cU=f((kw,uU)=>{var mU=hU(),bD=b2(),mD=bU(),uD=J6().f;uU.exports=function(Q){var J=mU.Symbol||(mU.Symbol={});if(!bD(J,Q))uD(J,Q,{value:mD.f(Q)})}});var pU=f(()=>{var cD=f0(),pD=cU(),lD=J6().f,dD=l5().f,eQ=cD.Symbol;pD("asyncDispose");if(eQ){if(d6=dD(eQ,"asyncDispose"),d6.enumerable&&d6.configurable&&d6.writable)lD(eQ,"asyncDispose",{value:d6.value,enumerable:!1,configurable:!1,writable:!1})}var d6});var dU=f((gw,lU)=>{var iD=nQ();lU.exports=function(Q,J,$){var q=0,X=arguments.length>2?$:iD(J),Y=new Q(X);while(X>q)Y[q]=J[q++];return Y}});var QJ=f((_w,iU)=>{var nD=e1(),oD=String,rD=TypeError;iU.exports=function(Q){if(Q===void 0||nD(Q))return Q;throw new rD(oD(Q)+" is not an object or undefined")}});var JJ=f((fw,nU)=>{var aD=TypeError;nU.exports=function(Q){if(typeof Q=="string")return Q;throw new aD("Argument is not a string")}});var $J=f((yw,tU)=>{var sU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",oU=sU+"+/",rU=sU+"-_",aU=function(Q){var J={},$=0;for(;$<64;$++)J[Q.charAt($)]=$;return J};tU.exports={i2c:oU,c2i:aU(oU),i2cUrl:rU,c2iUrl:aU(rU)}});var qJ=f((hw,eU)=>{var sD=TypeError;eU.exports=function(Q){var J=Q&&Q.alphabet;if(J===void 0||J==="base64"||J==="base64url")return J||"base64";throw new sD("Incorrect `alphabet` option")}});var JG=f((bw,QG)=>{QG.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"});var qG=f((mw,$G)=>{var tD=p0(),eD=u6();$G.exports=function(Q,J,$){try{return tD(eD(Object.getOwnPropertyDescriptor(Q,J)[$]))}catch(q){}}});var UG=f((uw,WG)=>{var YG=f0(),QC=qG(),JC=f8(),XG=YG.ArrayBuffer,$C=YG.TypeError;WG.exports=XG&&QC(XG.prototype,"byteLength","get")||function(Q){if(JC(Q)!=="ArrayBuffer")throw new $C("ArrayBuffer expected");return Q.byteLength}});var BG=f((cw,GG)=>{var qC=f0(),XC=JG(),YC=UG(),WC=qC.DataView;GG.exports=function(Q){if(!XC||YC(Q)!==0)return!1;try{return new WC(Q),!1}catch(J){return!0}}});var q4=f((pw,KG)=>{var UC=BG(),GC=TypeError;KG.exports=function(Q){if(UC(Q))throw new GC("ArrayBuffer is detached");return Q}});var jG=f((lw,HG)=>{var UJ=f0(),BC=p0(),KC=QJ(),VC=JJ(),HC=b2(),VG=$J(),jC=qJ(),MC=q4(),FC=VG.c2i,zC=VG.c2iUrl,R1=UJ.SyntaxError,LC=UJ.TypeError,NC=UJ.Array,$6=BC("".charAt),DC=Math.floor,XJ=function(Q,J){var $=Q.length;for(;J<$;J++){var q=$6(Q,J);if(q!==" "&&q!=="\t"&&q!==`
|
|
4
|
-
`&&q!=="\f"&&q!=="\r")break}return J},YJ=function(Q,J,$){var q=Q.length;if(q<4)Q+=q===2?"AA":"A";var X=(J[$6(Q,0)]<<18)+(J[$6(Q,1)]<<12)+(J[$6(Q,2)]<<6)+J[$6(Q,3)],Y=[X>>16&255,X>>8&255,X&255];if(q===2){if($&&Y[1]!==0)throw new R1("Extra bits");return[Y[0]]}if(q===3){if($&&Y[2]!==0)throw new R1("Extra bits");return[Y[0],Y[1]]}return Y},WJ=function(Q,J,$){var q=J.length;for(var X=0;X<q;X++)Q[$+X]=J[X];return $+q};HG.exports=function(Q,J,$,q){VC(Q),KC(J);var X=jC(J)==="base64"?FC:zC,Y=J?J.lastChunkHandling:void 0;if(Y===void 0)Y="loose";if(Y!=="loose"&&Y!=="strict"&&Y!=="stop-before-partial")throw new LC("Incorrect `lastChunkHandling` option");if($)MC($.buffer);var W=Q.length,U=$||NC(DC(W*3/4)),G=0,B=0,K="",j=0;if(q)while(!0){if(j=XJ(Q,j),j===W){if(K.length>0){if(Y==="stop-before-partial")break;if(Y==="loose"){if(K.length===1)throw new R1("Malformed padding: exactly one additional character");G=WJ(U,YJ(K,X,!1),G)}else throw new R1("Missing padding")}B=W;break}var F=$6(Q,j);if(++j,F==="="){if(K.length<2)throw new R1("Padding is too early");if(j=XJ(Q,j),K.length===2){if(j===W){if(Y==="stop-before-partial")break;throw new R1("Malformed padding: only one =")}if($6(Q,j)==="=")++j,j=XJ(Q,j)}if(j<W)throw new R1("Unexpected character after padding");G=WJ(U,YJ(K,X,Y==="strict"),G),B=W;break}if(!HC(X,F))throw new R1("Unexpected character");var H=q-G;if(H===1&&K.length===2||H===2&&K.length===3)break;if(K+=F,K.length===4){if(G=WJ(U,YJ(K,X,!1),G),K="",B=j,G===q)break}}if(!$)U.length=G;return{bytes:U,read:B,written:G}}});var MG=f(()=>{var CC=p6(),OC=f0(),PC=dU(),AC=jG(),i6=OC.Uint8Array,RC=!i6||!i6.fromBase64||!function(){try{i6.fromBase64("a");return}catch(Q){}try{i6.fromBase64("",null)}catch(Q){return!0}}();if(i6)CC({target:"Uint8Array",stat:!0,forced:RC},{fromBase64:function(J){var $=AC(J,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return PC(i6,$.bytes)}})});var NG=f((nw,LG)=>{var zG=f0(),wC=p0(),IC=zG.Uint8Array,FG=zG.SyntaxError,SC=Math.min,ZC=wC("".match);LG.exports=function(Q,J){var $=Q.length;if($%2!==0)throw new FG("String should be an even number of characters");var q=J?SC(J.length,$/2):$/2,X=J||new IC(q),Y=ZC(Q,/[\S\s]{2}/g),W=0;for(;W<q;W++){var U=+("0x"+Y[W]+"0");if(U!==U)throw new FG("String should only contain hex characters");X[W]=U>>4}return{bytes:X,read:W<<1}}});var DG=f(()=>{var vC=p6(),EC=f0(),kC=JJ(),TC=NG();if(EC.Uint8Array)vC({target:"Uint8Array",stat:!0},{fromHex:function(J){return TC(kC(J)).bytes}})});var PG=f((aw,OG)=>{var xC=Q6(),gC=xC("toStringTag"),CG={};CG[gC]="z";OG.exports=String(CG)==="[object z]"});var RG=f((sw,AG)=>{var _C=PG(),fC=F2(),X4=f8(),yC=Q6(),hC=yC("toStringTag"),bC=Object,mC=X4(function(){return arguments}())==="Arguments",uC=function(Q,J){try{return Q[J]}catch($){}};AG.exports=_C?X4:function(Q){var J,$,q;return Q===void 0?"Undefined":Q===null?"Null":typeof($=uC(J=bC(Q),hC))=="string"?$:mC?X4(J):(q=X4(J))==="Object"&&fC(J.callee)?"Arguments":q}});var GJ=f((tw,wG)=>{var cC=RG(),pC=TypeError;wG.exports=function(Q){if(cC(Q)==="Uint8Array")return Q;throw new pC("Argument is not an Uint8Array")}});var vG=f(()=>{var lC=p6(),IG=f0(),SG=p0(),dC=QJ(),iC=GJ(),nC=q4(),ZG=$J(),oC=qJ(),rC=ZG.i2c,aC=ZG.i2cUrl,sC=Math.floor,tC=Math.ceil,eC=SG("".charAt),Y4=IG.Uint8Array,QO=IG.Array,JO=SG([].join),$O=!Y4||!Y4.prototype.toBase64||!function(){try{var Q=new Y4;Q.toBase64(null)}catch(J){return!0}}();if(Y4)lC({target:"Uint8Array",proto:!0,forced:$O},{toBase64:function(){var J=iC(this),$=arguments.length?dC(arguments[0]):void 0,q=oC($)==="base64"?rC:aC,X=!!$&&!!$.omitPadding;nC(this.buffer);var Y=0,W=J.length,U=QO(X?sC(W/3)*4+(W%3?W%3+1:0):tC(W/3)*4),G=0,B,K=function(j){return eC(q,B>>6*j&63)};for(;Y+2<W;Y+=3)B=(J[Y]<<16)+(J[Y+1]<<8)+J[Y+2],U[G++]=K(3),U[G++]=K(2),U[G++]=K(1),U[G++]=K(0);if(Y+2===W){if(B=(J[Y]<<16)+(J[Y+1]<<8),U[G++]=K(3),U[G++]=K(2),U[G++]=K(1),!X)U[G++]="="}else if(Y+1===W){if(B=J[Y]<<16,U[G++]=K(3),U[G++]=K(2),!X)U[G++]="=",U[G++]="="}return JO(U,"")}})});var kG=f(()=>{var qO=p6(),XO=f0(),EG=p0(),YO=GJ(),WO=q4(),UO=EG(1.1 .toString),GO=EG([].join),BO=Array,W4=XO.Uint8Array,KO=!W4||!W4.prototype.toHex||!function(){try{var Q=new W4([255,255,255,255,255,255,255,255]);return Q.toHex()==="ffffffffffffffff"}catch(J){return!1}}();if(W4)qO({target:"Uint8Array",proto:!0,forced:KO},{toHex:function(){YO(this),WO(this.buffer);var J=BO(this.length);for(var $=0,q=this.length;$<q;$++){var X=UO(this[$],16);J[$]=X.length===1?"0"+X:X}return GO(J,"")}})});var xG=f((BJ)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var TG;(function(Q){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof BJ==="object")Q(BJ);else if(typeof define==="function"&&define.amd)define(function(){var J={};return Q(J),J});else Q(TG={});else Q(TG={})})(function(Q){Q.version="1.2.2";function J(){var T=0,d=Array(256);for(var S=0;S!=256;++S)T=S,T=T&1?-2097792136^T>>>1:T>>>1,T=T&1?-2097792136^T>>>1:T>>>1,T=T&1?-2097792136^T>>>1:T>>>1,T=T&1?-2097792136^T>>>1:T>>>1,T=T&1?-2097792136^T>>>1:T>>>1,T=T&1?-2097792136^T>>>1:T>>>1,T=T&1?-2097792136^T>>>1:T>>>1,T=T&1?-2097792136^T>>>1:T>>>1,d[S]=T;return typeof Int32Array<"u"?new Int32Array(d):d}var $=J();function q(T){var d=0,S=0,v=0,R=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(v=0;v!=256;++v)R[v]=T[v];for(v=0;v!=256;++v){S=T[v];for(d=256+v;d<4096;d+=256)S=R[d]=S>>>8^T[S&255]}var O=[];for(v=1;v!=16;++v)O[v-1]=typeof Int32Array<"u"?R.subarray(v*256,v*256+256):R.slice(v*256,v*256+256);return O}var X=q($),Y=X[0],W=X[1],U=X[2],G=X[3],B=X[4],K=X[5],j=X[6],F=X[7],H=X[8],E=X[9],g=X[10],P=X[11],D=X[12],V=X[13],z=X[14];function L(T,d){var S=d^-1;for(var v=0,R=T.length;v<R;)S=S>>>8^$[(S^T.charCodeAt(v++))&255];return~S}function A(T,d){var S=d^-1,v=T.length-15,R=0;for(;R<v;)S=z[T[R++]^S&255]^V[T[R++]^S>>8&255]^D[T[R++]^S>>16&255]^P[T[R++]^S>>>24]^g[T[R++]]^E[T[R++]]^H[T[R++]]^F[T[R++]]^j[T[R++]]^K[T[R++]]^B[T[R++]]^G[T[R++]]^U[T[R++]]^W[T[R++]]^Y[T[R++]]^$[T[R++]];v+=15;while(R<v)S=S>>>8^$[(S^T[R++])&255];return~S}function y(T,d){var S=d^-1;for(var v=0,R=T.length,O=0,_=0;v<R;)if(O=T.charCodeAt(v++),O<128)S=S>>>8^$[(S^O)&255];else if(O<2048)S=S>>>8^$[(S^(192|O>>6&31))&255],S=S>>>8^$[(S^(128|O&63))&255];else if(O>=55296&&O<57344)O=(O&1023)+64,_=T.charCodeAt(v++)&1023,S=S>>>8^$[(S^(240|O>>8&7))&255],S=S>>>8^$[(S^(128|O>>2&63))&255],S=S>>>8^$[(S^(128|_>>6&15|(O&3)<<4))&255],S=S>>>8^$[(S^(128|_&63))&255];else S=S>>>8^$[(S^(224|O>>12&15))&255],S=S>>>8^$[(S^(128|O>>6&63))&255],S=S>>>8^$[(S^(128|O&63))&255];return~S}Q.table=$,Q.bstr=L,Q.buf=A,Q.str=y})});var zJ=X1(cX(),1);var x3=new Uint8Array(16);function $Q(){return crypto.getRandomValues(x3)}var u0=[];for(let Q=0;Q<256;++Q)u0.push((Q+256).toString(16).slice(1));function pX(Q,J=0){return(u0[Q[J+0]]+u0[Q[J+1]]+u0[Q[J+2]]+u0[Q[J+3]]+"-"+u0[Q[J+4]]+u0[Q[J+5]]+"-"+u0[Q[J+6]]+u0[Q[J+7]]+"-"+u0[Q[J+8]]+u0[Q[J+9]]+"-"+u0[Q[J+10]]+u0[Q[J+11]]+u0[Q[J+12]]+u0[Q[J+13]]+u0[Q[J+14]]+u0[Q[J+15]]).toLowerCase()}function g3(Q,J,$){if(!J&&!Q&&crypto.randomUUID)return crypto.randomUUID();return _3(Q,J,$)}function _3(Q,J,$){Q=Q||{};let q=Q.random??Q.rng?.()??$Q();if(q.length<16)throw Error("Random bytes length must be >= 16");if(q[6]=q[6]&15|64,q[8]=q[8]&63|128,J){if($=$||0,$<0||$+16>J.length)throw RangeError(`UUID byte range ${$}:${$+15} is out of buffer bounds`);for(let X=0;X<16;++X)J[$+X]=q[X];return J}return pX(q)}var n1=g3;var Z={};O4(Z,{void:()=>DF,util:()=>R0,unknown:()=>LF,union:()=>AF,undefined:()=>MF,tuple:()=>IF,transformer:()=>fF,symbol:()=>jF,string:()=>tX,strictObject:()=>PF,setErrorMap:()=>h3,set:()=>vF,record:()=>SF,quotelessJson:()=>f3,promise:()=>_F,preprocess:()=>bF,pipeline:()=>mF,ostring:()=>uF,optional:()=>yF,onumber:()=>cF,oboolean:()=>pF,objectUtil:()=>qQ,object:()=>OF,number:()=>eX,nullable:()=>hF,null:()=>FF,never:()=>NF,nativeEnum:()=>gF,nan:()=>KF,map:()=>ZF,makeIssue:()=>I8,literal:()=>TF,lazy:()=>kF,late:()=>GF,isValid:()=>N1,isDirty:()=>g5,isAsync:()=>S6,isAborted:()=>x5,intersection:()=>wF,instanceof:()=>BF,getParsedType:()=>f2,getErrorMap:()=>I6,function:()=>EF,enum:()=>xF,effect:()=>fF,discriminatedUnion:()=>RF,defaultErrorMap:()=>e2,datetimeRegex:()=>rX,date:()=>HF,custom:()=>sX,coerce:()=>lF,boolean:()=>QY,bigint:()=>VF,array:()=>CF,any:()=>zF,addIssueToContext:()=>Y0,ZodVoid:()=>Z8,ZodUnknown:()=>D1,ZodUnion:()=>x6,ZodUndefined:()=>k6,ZodType:()=>P0,ZodTuple:()=>h2,ZodTransformer:()=>R2,ZodSymbol:()=>S8,ZodString:()=>C2,ZodSet:()=>s1,ZodSchema:()=>P0,ZodRecord:()=>v8,ZodReadonly:()=>m6,ZodPromise:()=>t1,ZodPipeline:()=>T8,ZodParsedType:()=>J0,ZodOptional:()=>P2,ZodObject:()=>g0,ZodNumber:()=>C1,ZodNullable:()=>J1,ZodNull:()=>T6,ZodNever:()=>y2,ZodNativeEnum:()=>y6,ZodNaN:()=>k8,ZodMap:()=>E8,ZodLiteral:()=>f6,ZodLazy:()=>_6,ZodIssueCode:()=>r,ZodIntersection:()=>g6,ZodFunction:()=>v6,ZodFirstPartyTypeKind:()=>z0,ZodError:()=>J2,ZodEnum:()=>P1,ZodEffects:()=>R2,ZodDiscriminatedUnion:()=>_5,ZodDefault:()=>h6,ZodDate:()=>r1,ZodCatch:()=>b6,ZodBranded:()=>f5,ZodBoolean:()=>E6,ZodBigInt:()=>O1,ZodArray:()=>O2,ZodAny:()=>a1,Schema:()=>P0,ParseStatus:()=>c0,OK:()=>n0,NEVER:()=>dF,INVALID:()=>F0,EMPTY_PATH:()=>b3,DIRTY:()=>o1,BRAND:()=>UF});var R0;(function(Q){Q.assertEqual=(X)=>{};function J(X){}Q.assertIs=J;function $(X){throw Error()}Q.assertNever=$,Q.arrayToEnum=(X)=>{let Y={};for(let W of X)Y[W]=W;return Y},Q.getValidEnumValues=(X)=>{let Y=Q.objectKeys(X).filter((U)=>typeof X[X[U]]!=="number"),W={};for(let U of Y)W[U]=X[U];return Q.objectValues(W)},Q.objectValues=(X)=>{return Q.objectKeys(X).map(function(Y){return X[Y]})},Q.objectKeys=typeof Object.keys==="function"?(X)=>Object.keys(X):(X)=>{let Y=[];for(let W in X)if(Object.prototype.hasOwnProperty.call(X,W))Y.push(W);return Y},Q.find=(X,Y)=>{for(let W of X)if(Y(W))return W;return},Q.isInteger=typeof Number.isInteger==="function"?(X)=>Number.isInteger(X):(X)=>typeof X==="number"&&Number.isFinite(X)&&Math.floor(X)===X;function q(X,Y=" | "){return X.map((W)=>typeof W==="string"?`'${W}'`:W).join(Y)}Q.joinValues=q,Q.jsonStringifyReplacer=(X,Y)=>{if(typeof Y==="bigint")return Y.toString();return Y}})(R0||(R0={}));var qQ;(function(Q){Q.mergeShapes=(J,$)=>{return{...J,...$}}})(qQ||(qQ={}));var J0=R0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),f2=(Q)=>{switch(typeof Q){case"undefined":return J0.undefined;case"string":return J0.string;case"number":return Number.isNaN(Q)?J0.nan:J0.number;case"boolean":return J0.boolean;case"function":return J0.function;case"bigint":return J0.bigint;case"symbol":return J0.symbol;case"object":if(Array.isArray(Q))return J0.array;if(Q===null)return J0.null;if(Q.then&&typeof Q.then==="function"&&Q.catch&&typeof Q.catch==="function")return J0.promise;if(typeof Map<"u"&&Q instanceof Map)return J0.map;if(typeof Set<"u"&&Q instanceof Set)return J0.set;if(typeof Date<"u"&&Q instanceof Date)return J0.date;return J0.object;default:return J0.unknown}};var r=R0.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),f3=(Q)=>{return JSON.stringify(Q,null,2).replace(/"([^"]+)":/g,"$1:")};class J2 extends Error{get errors(){return this.issues}constructor(Q){super();this.issues=[],this.addIssue=($)=>{this.issues=[...this.issues,$]},this.addIssues=($=[])=>{this.issues=[...this.issues,...$]};let J=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,J);else this.__proto__=J;this.name="ZodError",this.issues=Q}format(Q){let J=Q||function(X){return X.message},$={_errors:[]},q=(X)=>{for(let Y of X.issues)if(Y.code==="invalid_union")Y.unionErrors.map(q);else if(Y.code==="invalid_return_type")q(Y.returnTypeError);else if(Y.code==="invalid_arguments")q(Y.argumentsError);else if(Y.path.length===0)$._errors.push(J(Y));else{let W=$,U=0;while(U<Y.path.length){let G=Y.path[U];if(U!==Y.path.length-1)W[G]=W[G]||{_errors:[]};else W[G]=W[G]||{_errors:[]},W[G]._errors.push(J(Y));W=W[G],U++}}};return q(this),$}static assert(Q){if(!(Q instanceof J2))throw Error(`Not a ZodError: ${Q}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,R0.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(Q=(J)=>J.message){let J={},$=[];for(let q of this.issues)if(q.path.length>0){let X=q.path[0];J[X]=J[X]||[],J[X].push(Q(q))}else $.push(Q(q));return{formErrors:$,fieldErrors:J}}get formErrors(){return this.flatten()}}J2.create=(Q)=>{return new J2(Q)};var y3=(Q,J)=>{let $;switch(Q.code){case r.invalid_type:if(Q.received===J0.undefined)$="Required";else $=`Expected ${Q.expected}, received ${Q.received}`;break;case r.invalid_literal:$=`Invalid literal value, expected ${JSON.stringify(Q.expected,R0.jsonStringifyReplacer)}`;break;case r.unrecognized_keys:$=`Unrecognized key(s) in object: ${R0.joinValues(Q.keys,", ")}`;break;case r.invalid_union:$="Invalid input";break;case r.invalid_union_discriminator:$=`Invalid discriminator value. Expected ${R0.joinValues(Q.options)}`;break;case r.invalid_enum_value:$=`Invalid enum value. Expected ${R0.joinValues(Q.options)}, received '${Q.received}'`;break;case r.invalid_arguments:$="Invalid function arguments";break;case r.invalid_return_type:$="Invalid function return type";break;case r.invalid_date:$="Invalid date";break;case r.invalid_string:if(typeof Q.validation==="object")if("includes"in Q.validation){if($=`Invalid input: must include "${Q.validation.includes}"`,typeof Q.validation.position==="number")$=`${$} at one or more positions greater than or equal to ${Q.validation.position}`}else if("startsWith"in Q.validation)$=`Invalid input: must start with "${Q.validation.startsWith}"`;else if("endsWith"in Q.validation)$=`Invalid input: must end with "${Q.validation.endsWith}"`;else R0.assertNever(Q.validation);else if(Q.validation!=="regex")$=`Invalid ${Q.validation}`;else $="Invalid";break;case r.too_small:if(Q.type==="array")$=`Array must contain ${Q.exact?"exactly":Q.inclusive?"at least":"more than"} ${Q.minimum} element(s)`;else if(Q.type==="string")$=`String must contain ${Q.exact?"exactly":Q.inclusive?"at least":"over"} ${Q.minimum} character(s)`;else if(Q.type==="number")$=`Number must be ${Q.exact?"exactly equal to ":Q.inclusive?"greater than or equal to ":"greater than "}${Q.minimum}`;else if(Q.type==="bigint")$=`Number must be ${Q.exact?"exactly equal to ":Q.inclusive?"greater than or equal to ":"greater than "}${Q.minimum}`;else if(Q.type==="date")$=`Date must be ${Q.exact?"exactly equal to ":Q.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(Q.minimum))}`;else $="Invalid input";break;case r.too_big:if(Q.type==="array")$=`Array must contain ${Q.exact?"exactly":Q.inclusive?"at most":"less than"} ${Q.maximum} element(s)`;else if(Q.type==="string")$=`String must contain ${Q.exact?"exactly":Q.inclusive?"at most":"under"} ${Q.maximum} character(s)`;else if(Q.type==="number")$=`Number must be ${Q.exact?"exactly":Q.inclusive?"less than or equal to":"less than"} ${Q.maximum}`;else if(Q.type==="bigint")$=`BigInt must be ${Q.exact?"exactly":Q.inclusive?"less than or equal to":"less than"} ${Q.maximum}`;else if(Q.type==="date")$=`Date must be ${Q.exact?"exactly":Q.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(Q.maximum))}`;else $="Invalid input";break;case r.custom:$="Invalid input";break;case r.invalid_intersection_types:$="Intersection results could not be merged";break;case r.not_multiple_of:$=`Number must be a multiple of ${Q.multipleOf}`;break;case r.not_finite:$="Number must be finite";break;default:$=J.defaultError,R0.assertNever(Q)}return{message:$}},e2=y3;var lX=e2;function h3(Q){lX=Q}function I6(){return lX}var I8=(Q)=>{let{data:J,path:$,errorMaps:q,issueData:X}=Q,Y=[...$,...X.path||[]],W={...X,path:Y};if(X.message!==void 0)return{...X,path:Y,message:X.message};let U="",G=q.filter((B)=>!!B).slice().reverse();for(let B of G)U=B(W,{data:J,defaultError:U}).message;return{...X,path:Y,message:U}},b3=[];function Y0(Q,J){let $=I6(),q=I8({issueData:J,data:Q.data,path:Q.path,errorMaps:[Q.common.contextualErrorMap,Q.schemaErrorMap,$,$===e2?void 0:e2].filter((X)=>!!X)});Q.common.issues.push(q)}class c0{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(Q,J){let $=[];for(let q of J){if(q.status==="aborted")return F0;if(q.status==="dirty")Q.dirty();$.push(q.value)}return{status:Q.value,value:$}}static async mergeObjectAsync(Q,J){let $=[];for(let q of J){let X=await q.key,Y=await q.value;$.push({key:X,value:Y})}return c0.mergeObjectSync(Q,$)}static mergeObjectSync(Q,J){let $={};for(let q of J){let{key:X,value:Y}=q;if(X.status==="aborted")return F0;if(Y.status==="aborted")return F0;if(X.status==="dirty")Q.dirty();if(Y.status==="dirty")Q.dirty();if(X.value!=="__proto__"&&(typeof Y.value<"u"||q.alwaysSet))$[X.value]=Y.value}return{status:Q.value,value:$}}}var F0=Object.freeze({status:"aborted"}),o1=(Q)=>({status:"dirty",value:Q}),n0=(Q)=>({status:"valid",value:Q}),x5=(Q)=>Q.status==="aborted",g5=(Q)=>Q.status==="dirty",N1=(Q)=>Q.status==="valid",S6=(Q)=>typeof Promise<"u"&&Q instanceof Promise;var V0;(function(Q){Q.errToObj=(J)=>typeof J==="string"?{message:J}:J||{},Q.toString=(J)=>typeof J==="string"?J:J?.message})(V0||(V0={}));class A2{constructor(Q,J,$,q){this._cachedPath=[],this.parent=Q,this.data=J,this._path=$,this._key=q}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var dX=(Q,J)=>{if(N1(J))return{success:!0,data:J.value};else{if(!Q.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let $=new J2(Q.common.issues);return this._error=$,this._error}}}};function O0(Q){if(!Q)return{};let{errorMap:J,invalid_type_error:$,required_error:q,description:X}=Q;if(J&&($||q))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(J)return{errorMap:J,description:X};return{errorMap:(W,U)=>{let{message:G}=Q;if(W.code==="invalid_enum_value")return{message:G??U.defaultError};if(typeof U.data>"u")return{message:G??q??U.defaultError};if(W.code!=="invalid_type")return{message:U.defaultError};return{message:G??$??U.defaultError}},description:X}}class P0{get description(){return this._def.description}_getType(Q){return f2(Q.data)}_getOrReturnCtx(Q,J){return J||{common:Q.parent.common,data:Q.data,parsedType:f2(Q.data),schemaErrorMap:this._def.errorMap,path:Q.path,parent:Q.parent}}_processInputParams(Q){return{status:new c0,ctx:{common:Q.parent.common,data:Q.data,parsedType:f2(Q.data),schemaErrorMap:this._def.errorMap,path:Q.path,parent:Q.parent}}}_parseSync(Q){let J=this._parse(Q);if(S6(J))throw Error("Synchronous parse encountered promise.");return J}_parseAsync(Q){let J=this._parse(Q);return Promise.resolve(J)}parse(Q,J){let $=this.safeParse(Q,J);if($.success)return $.data;throw $.error}safeParse(Q,J){let $={common:{issues:[],async:J?.async??!1,contextualErrorMap:J?.errorMap},path:J?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:Q,parsedType:f2(Q)},q=this._parseSync({data:Q,path:$.path,parent:$});return dX($,q)}"~validate"(Q){let J={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:Q,parsedType:f2(Q)};if(!this["~standard"].async)try{let $=this._parseSync({data:Q,path:[],parent:J});return N1($)?{value:$.value}:{issues:J.common.issues}}catch($){if($?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;J.common={issues:[],async:!0}}return this._parseAsync({data:Q,path:[],parent:J}).then(($)=>N1($)?{value:$.value}:{issues:J.common.issues})}async parseAsync(Q,J){let $=await this.safeParseAsync(Q,J);if($.success)return $.data;throw $.error}async safeParseAsync(Q,J){let $={common:{issues:[],contextualErrorMap:J?.errorMap,async:!0},path:J?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:Q,parsedType:f2(Q)},q=this._parse({data:Q,path:$.path,parent:$}),X=await(S6(q)?q:Promise.resolve(q));return dX($,X)}refine(Q,J){let $=(q)=>{if(typeof J==="string"||typeof J>"u")return{message:J};else if(typeof J==="function")return J(q);else return J};return this._refinement((q,X)=>{let Y=Q(q),W=()=>X.addIssue({code:r.custom,...$(q)});if(typeof Promise<"u"&&Y instanceof Promise)return Y.then((U)=>{if(!U)return W(),!1;else return!0});if(!Y)return W(),!1;else return!0})}refinement(Q,J){return this._refinement(($,q)=>{if(!Q($))return q.addIssue(typeof J==="function"?J($,q):J),!1;else return!0})}_refinement(Q){return new R2({schema:this,typeName:z0.ZodEffects,effect:{type:"refinement",refinement:Q}})}superRefine(Q){return this._refinement(Q)}constructor(Q){this.spa=this.safeParseAsync,this._def=Q,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(J)=>this["~validate"](J)}}optional(){return P2.create(this,this._def)}nullable(){return J1.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return O2.create(this)}promise(){return t1.create(this,this._def)}or(Q){return x6.create([this,Q],this._def)}and(Q){return g6.create(this,Q,this._def)}transform(Q){return new R2({...O0(this._def),schema:this,typeName:z0.ZodEffects,effect:{type:"transform",transform:Q}})}default(Q){let J=typeof Q==="function"?Q:()=>Q;return new h6({...O0(this._def),innerType:this,defaultValue:J,typeName:z0.ZodDefault})}brand(){return new f5({typeName:z0.ZodBranded,type:this,...O0(this._def)})}catch(Q){let J=typeof Q==="function"?Q:()=>Q;return new b6({...O0(this._def),innerType:this,catchValue:J,typeName:z0.ZodCatch})}describe(Q){return new this.constructor({...this._def,description:Q})}pipe(Q){return T8.create(this,Q)}readonly(){return m6.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var m3=/^c[^\s-]{8,}$/i,u3=/^[0-9a-z]+$/,c3=/^[0-9A-HJKMNP-TV-Z]{26}$/i,p3=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,l3=/^[a-z0-9_-]{21}$/i,d3=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,i3=/^[-+]?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)?)??$/,n3=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,o3="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",XQ,r3=/^(?:(?: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])$/,a3=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,s3=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,t3=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,e3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,QF=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nX="((\\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])))",JF=new RegExp(`^${nX}$`);function oX(Q){let J="[0-5]\\d";if(Q.precision)J=`${J}\\.\\d{${Q.precision}}`;else if(Q.precision==null)J=`${J}(\\.\\d+)?`;let $=Q.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${J})${$}`}function $F(Q){return new RegExp(`^${oX(Q)}$`)}function rX(Q){let J=`${nX}T${oX(Q)}`,$=[];if($.push(Q.local?"Z?":"Z"),Q.offset)$.push("([+-]\\d{2}:?\\d{2})");return J=`${J}(${$.join("|")})`,new RegExp(`^${J}$`)}function qF(Q,J){if((J==="v4"||!J)&&r3.test(Q))return!0;if((J==="v6"||!J)&&s3.test(Q))return!0;return!1}function XF(Q,J){if(!d3.test(Q))return!1;try{let[$]=Q.split(".");if(!$)return!1;let q=$.replace(/-/g,"+").replace(/_/g,"/").padEnd($.length+(4-$.length%4)%4,"="),X=JSON.parse(atob(q));if(typeof X!=="object"||X===null)return!1;if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(J&&X.alg!==J)return!1;return!0}catch{return!1}}function YF(Q,J){if((J==="v4"||!J)&&a3.test(Q))return!0;if((J==="v6"||!J)&&t3.test(Q))return!0;return!1}class C2 extends P0{_parse(Q){if(this._def.coerce)Q.data=String(Q.data);if(this._getType(Q)!==J0.string){let X=this._getOrReturnCtx(Q);return Y0(X,{code:r.invalid_type,expected:J0.string,received:X.parsedType}),F0}let $=new c0,q=void 0;for(let X of this._def.checks)if(X.kind==="min"){if(Q.data.length<X.value)q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),$.dirty()}else if(X.kind==="max"){if(Q.data.length>X.value)q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),$.dirty()}else if(X.kind==="length"){let Y=Q.data.length>X.value,W=Q.data.length<X.value;if(Y||W){if(q=this._getOrReturnCtx(Q,q),Y)Y0(q,{code:r.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});else if(W)Y0(q,{code:r.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});$.dirty()}}else if(X.kind==="email"){if(!n3.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"email",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="emoji"){if(!XQ)XQ=new RegExp(o3,"u");if(!XQ.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"emoji",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="uuid"){if(!p3.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"uuid",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="nanoid"){if(!l3.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"nanoid",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="cuid"){if(!m3.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"cuid",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="cuid2"){if(!u3.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"cuid2",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="ulid"){if(!c3.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"ulid",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="url")try{new URL(Q.data)}catch{q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"url",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="regex"){if(X.regex.lastIndex=0,!X.regex.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"regex",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="trim")Q.data=Q.data.trim();else if(X.kind==="includes"){if(!Q.data.includes(X.value,X.position))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:{includes:X.value,position:X.position},message:X.message}),$.dirty()}else if(X.kind==="toLowerCase")Q.data=Q.data.toLowerCase();else if(X.kind==="toUpperCase")Q.data=Q.data.toUpperCase();else if(X.kind==="startsWith"){if(!Q.data.startsWith(X.value))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:{startsWith:X.value},message:X.message}),$.dirty()}else if(X.kind==="endsWith"){if(!Q.data.endsWith(X.value))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:{endsWith:X.value},message:X.message}),$.dirty()}else if(X.kind==="datetime"){if(!rX(X).test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:"datetime",message:X.message}),$.dirty()}else if(X.kind==="date"){if(!JF.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:"date",message:X.message}),$.dirty()}else if(X.kind==="time"){if(!$F(X).test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:"time",message:X.message}),$.dirty()}else if(X.kind==="duration"){if(!i3.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"duration",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="ip"){if(!qF(Q.data,X.version))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"ip",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="jwt"){if(!XF(Q.data,X.alg))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"jwt",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="cidr"){if(!YF(Q.data,X.version))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"cidr",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="base64"){if(!e3.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"base64",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="base64url"){if(!QF.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"base64url",code:r.invalid_string,message:X.message}),$.dirty()}else R0.assertNever(X);return{status:$.value,value:Q.data}}_regex(Q,J,$){return this.refinement((q)=>Q.test(q),{validation:J,code:r.invalid_string,...V0.errToObj($)})}_addCheck(Q){return new C2({...this._def,checks:[...this._def.checks,Q]})}email(Q){return this._addCheck({kind:"email",...V0.errToObj(Q)})}url(Q){return this._addCheck({kind:"url",...V0.errToObj(Q)})}emoji(Q){return this._addCheck({kind:"emoji",...V0.errToObj(Q)})}uuid(Q){return this._addCheck({kind:"uuid",...V0.errToObj(Q)})}nanoid(Q){return this._addCheck({kind:"nanoid",...V0.errToObj(Q)})}cuid(Q){return this._addCheck({kind:"cuid",...V0.errToObj(Q)})}cuid2(Q){return this._addCheck({kind:"cuid2",...V0.errToObj(Q)})}ulid(Q){return this._addCheck({kind:"ulid",...V0.errToObj(Q)})}base64(Q){return this._addCheck({kind:"base64",...V0.errToObj(Q)})}base64url(Q){return this._addCheck({kind:"base64url",...V0.errToObj(Q)})}jwt(Q){return this._addCheck({kind:"jwt",...V0.errToObj(Q)})}ip(Q){return this._addCheck({kind:"ip",...V0.errToObj(Q)})}cidr(Q){return this._addCheck({kind:"cidr",...V0.errToObj(Q)})}datetime(Q){if(typeof Q==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:Q});return this._addCheck({kind:"datetime",precision:typeof Q?.precision>"u"?null:Q?.precision,offset:Q?.offset??!1,local:Q?.local??!1,...V0.errToObj(Q?.message)})}date(Q){return this._addCheck({kind:"date",message:Q})}time(Q){if(typeof Q==="string")return this._addCheck({kind:"time",precision:null,message:Q});return this._addCheck({kind:"time",precision:typeof Q?.precision>"u"?null:Q?.precision,...V0.errToObj(Q?.message)})}duration(Q){return this._addCheck({kind:"duration",...V0.errToObj(Q)})}regex(Q,J){return this._addCheck({kind:"regex",regex:Q,...V0.errToObj(J)})}includes(Q,J){return this._addCheck({kind:"includes",value:Q,position:J?.position,...V0.errToObj(J?.message)})}startsWith(Q,J){return this._addCheck({kind:"startsWith",value:Q,...V0.errToObj(J)})}endsWith(Q,J){return this._addCheck({kind:"endsWith",value:Q,...V0.errToObj(J)})}min(Q,J){return this._addCheck({kind:"min",value:Q,...V0.errToObj(J)})}max(Q,J){return this._addCheck({kind:"max",value:Q,...V0.errToObj(J)})}length(Q,J){return this._addCheck({kind:"length",value:Q,...V0.errToObj(J)})}nonempty(Q){return this.min(1,V0.errToObj(Q))}trim(){return new C2({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new C2({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new C2({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((Q)=>Q.kind==="datetime")}get isDate(){return!!this._def.checks.find((Q)=>Q.kind==="date")}get isTime(){return!!this._def.checks.find((Q)=>Q.kind==="time")}get isDuration(){return!!this._def.checks.find((Q)=>Q.kind==="duration")}get isEmail(){return!!this._def.checks.find((Q)=>Q.kind==="email")}get isURL(){return!!this._def.checks.find((Q)=>Q.kind==="url")}get isEmoji(){return!!this._def.checks.find((Q)=>Q.kind==="emoji")}get isUUID(){return!!this._def.checks.find((Q)=>Q.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((Q)=>Q.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((Q)=>Q.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((Q)=>Q.kind==="cuid2")}get isULID(){return!!this._def.checks.find((Q)=>Q.kind==="ulid")}get isIP(){return!!this._def.checks.find((Q)=>Q.kind==="ip")}get isCIDR(){return!!this._def.checks.find((Q)=>Q.kind==="cidr")}get isBase64(){return!!this._def.checks.find((Q)=>Q.kind==="base64")}get isBase64url(){return!!this._def.checks.find((Q)=>Q.kind==="base64url")}get minLength(){let Q=null;for(let J of this._def.checks)if(J.kind==="min"){if(Q===null||J.value>Q)Q=J.value}return Q}get maxLength(){let Q=null;for(let J of this._def.checks)if(J.kind==="max"){if(Q===null||J.value<Q)Q=J.value}return Q}}C2.create=(Q)=>{return new C2({checks:[],typeName:z0.ZodString,coerce:Q?.coerce??!1,...O0(Q)})};function WF(Q,J){let $=(Q.toString().split(".")[1]||"").length,q=(J.toString().split(".")[1]||"").length,X=$>q?$:q,Y=Number.parseInt(Q.toFixed(X).replace(".","")),W=Number.parseInt(J.toFixed(X).replace(".",""));return Y%W/10**X}class C1 extends P0{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(Q){if(this._def.coerce)Q.data=Number(Q.data);if(this._getType(Q)!==J0.number){let X=this._getOrReturnCtx(Q);return Y0(X,{code:r.invalid_type,expected:J0.number,received:X.parsedType}),F0}let $=void 0,q=new c0;for(let X of this._def.checks)if(X.kind==="int"){if(!R0.isInteger(Q.data))$=this._getOrReturnCtx(Q,$),Y0($,{code:r.invalid_type,expected:"integer",received:"float",message:X.message}),q.dirty()}else if(X.kind==="min"){if(X.inclusive?Q.data<X.value:Q.data<=X.value)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.too_small,minimum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),q.dirty()}else if(X.kind==="max"){if(X.inclusive?Q.data>X.value:Q.data>=X.value)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.too_big,maximum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),q.dirty()}else if(X.kind==="multipleOf"){if(WF(Q.data,X.value)!==0)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.not_multiple_of,multipleOf:X.value,message:X.message}),q.dirty()}else if(X.kind==="finite"){if(!Number.isFinite(Q.data))$=this._getOrReturnCtx(Q,$),Y0($,{code:r.not_finite,message:X.message}),q.dirty()}else R0.assertNever(X);return{status:q.value,value:Q.data}}gte(Q,J){return this.setLimit("min",Q,!0,V0.toString(J))}gt(Q,J){return this.setLimit("min",Q,!1,V0.toString(J))}lte(Q,J){return this.setLimit("max",Q,!0,V0.toString(J))}lt(Q,J){return this.setLimit("max",Q,!1,V0.toString(J))}setLimit(Q,J,$,q){return new C1({...this._def,checks:[...this._def.checks,{kind:Q,value:J,inclusive:$,message:V0.toString(q)}]})}_addCheck(Q){return new C1({...this._def,checks:[...this._def.checks,Q]})}int(Q){return this._addCheck({kind:"int",message:V0.toString(Q)})}positive(Q){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V0.toString(Q)})}negative(Q){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V0.toString(Q)})}nonpositive(Q){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V0.toString(Q)})}nonnegative(Q){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V0.toString(Q)})}multipleOf(Q,J){return this._addCheck({kind:"multipleOf",value:Q,message:V0.toString(J)})}finite(Q){return this._addCheck({kind:"finite",message:V0.toString(Q)})}safe(Q){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V0.toString(Q)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V0.toString(Q)})}get minValue(){let Q=null;for(let J of this._def.checks)if(J.kind==="min"){if(Q===null||J.value>Q)Q=J.value}return Q}get maxValue(){let Q=null;for(let J of this._def.checks)if(J.kind==="max"){if(Q===null||J.value<Q)Q=J.value}return Q}get isInt(){return!!this._def.checks.find((Q)=>Q.kind==="int"||Q.kind==="multipleOf"&&R0.isInteger(Q.value))}get isFinite(){let Q=null,J=null;for(let $ of this._def.checks)if($.kind==="finite"||$.kind==="int"||$.kind==="multipleOf")return!0;else if($.kind==="min"){if(J===null||$.value>J)J=$.value}else if($.kind==="max"){if(Q===null||$.value<Q)Q=$.value}return Number.isFinite(J)&&Number.isFinite(Q)}}C1.create=(Q)=>{return new C1({checks:[],typeName:z0.ZodNumber,coerce:Q?.coerce||!1,...O0(Q)})};class O1 extends P0{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(Q){if(this._def.coerce)try{Q.data=BigInt(Q.data)}catch{return this._getInvalidInput(Q)}if(this._getType(Q)!==J0.bigint)return this._getInvalidInput(Q);let $=void 0,q=new c0;for(let X of this._def.checks)if(X.kind==="min"){if(X.inclusive?Q.data<X.value:Q.data<=X.value)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.too_small,type:"bigint",minimum:X.value,inclusive:X.inclusive,message:X.message}),q.dirty()}else if(X.kind==="max"){if(X.inclusive?Q.data>X.value:Q.data>=X.value)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.too_big,type:"bigint",maximum:X.value,inclusive:X.inclusive,message:X.message}),q.dirty()}else if(X.kind==="multipleOf"){if(Q.data%X.value!==BigInt(0))$=this._getOrReturnCtx(Q,$),Y0($,{code:r.not_multiple_of,multipleOf:X.value,message:X.message}),q.dirty()}else R0.assertNever(X);return{status:q.value,value:Q.data}}_getInvalidInput(Q){let J=this._getOrReturnCtx(Q);return Y0(J,{code:r.invalid_type,expected:J0.bigint,received:J.parsedType}),F0}gte(Q,J){return this.setLimit("min",Q,!0,V0.toString(J))}gt(Q,J){return this.setLimit("min",Q,!1,V0.toString(J))}lte(Q,J){return this.setLimit("max",Q,!0,V0.toString(J))}lt(Q,J){return this.setLimit("max",Q,!1,V0.toString(J))}setLimit(Q,J,$,q){return new O1({...this._def,checks:[...this._def.checks,{kind:Q,value:J,inclusive:$,message:V0.toString(q)}]})}_addCheck(Q){return new O1({...this._def,checks:[...this._def.checks,Q]})}positive(Q){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V0.toString(Q)})}negative(Q){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V0.toString(Q)})}nonpositive(Q){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V0.toString(Q)})}nonnegative(Q){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V0.toString(Q)})}multipleOf(Q,J){return this._addCheck({kind:"multipleOf",value:Q,message:V0.toString(J)})}get minValue(){let Q=null;for(let J of this._def.checks)if(J.kind==="min"){if(Q===null||J.value>Q)Q=J.value}return Q}get maxValue(){let Q=null;for(let J of this._def.checks)if(J.kind==="max"){if(Q===null||J.value<Q)Q=J.value}return Q}}O1.create=(Q)=>{return new O1({checks:[],typeName:z0.ZodBigInt,coerce:Q?.coerce??!1,...O0(Q)})};class E6 extends P0{_parse(Q){if(this._def.coerce)Q.data=Boolean(Q.data);if(this._getType(Q)!==J0.boolean){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.boolean,received:$.parsedType}),F0}return n0(Q.data)}}E6.create=(Q)=>{return new E6({typeName:z0.ZodBoolean,coerce:Q?.coerce||!1,...O0(Q)})};class r1 extends P0{_parse(Q){if(this._def.coerce)Q.data=new Date(Q.data);if(this._getType(Q)!==J0.date){let X=this._getOrReturnCtx(Q);return Y0(X,{code:r.invalid_type,expected:J0.date,received:X.parsedType}),F0}if(Number.isNaN(Q.data.getTime())){let X=this._getOrReturnCtx(Q);return Y0(X,{code:r.invalid_date}),F0}let $=new c0,q=void 0;for(let X of this._def.checks)if(X.kind==="min"){if(Q.data.getTime()<X.value)q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.too_small,message:X.message,inclusive:!0,exact:!1,minimum:X.value,type:"date"}),$.dirty()}else if(X.kind==="max"){if(Q.data.getTime()>X.value)q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.too_big,message:X.message,inclusive:!0,exact:!1,maximum:X.value,type:"date"}),$.dirty()}else R0.assertNever(X);return{status:$.value,value:new Date(Q.data.getTime())}}_addCheck(Q){return new r1({...this._def,checks:[...this._def.checks,Q]})}min(Q,J){return this._addCheck({kind:"min",value:Q.getTime(),message:V0.toString(J)})}max(Q,J){return this._addCheck({kind:"max",value:Q.getTime(),message:V0.toString(J)})}get minDate(){let Q=null;for(let J of this._def.checks)if(J.kind==="min"){if(Q===null||J.value>Q)Q=J.value}return Q!=null?new Date(Q):null}get maxDate(){let Q=null;for(let J of this._def.checks)if(J.kind==="max"){if(Q===null||J.value<Q)Q=J.value}return Q!=null?new Date(Q):null}}r1.create=(Q)=>{return new r1({checks:[],coerce:Q?.coerce||!1,typeName:z0.ZodDate,...O0(Q)})};class S8 extends P0{_parse(Q){if(this._getType(Q)!==J0.symbol){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.symbol,received:$.parsedType}),F0}return n0(Q.data)}}S8.create=(Q)=>{return new S8({typeName:z0.ZodSymbol,...O0(Q)})};class k6 extends P0{_parse(Q){if(this._getType(Q)!==J0.undefined){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.undefined,received:$.parsedType}),F0}return n0(Q.data)}}k6.create=(Q)=>{return new k6({typeName:z0.ZodUndefined,...O0(Q)})};class T6 extends P0{_parse(Q){if(this._getType(Q)!==J0.null){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.null,received:$.parsedType}),F0}return n0(Q.data)}}T6.create=(Q)=>{return new T6({typeName:z0.ZodNull,...O0(Q)})};class a1 extends P0{constructor(){super(...arguments);this._any=!0}_parse(Q){return n0(Q.data)}}a1.create=(Q)=>{return new a1({typeName:z0.ZodAny,...O0(Q)})};class D1 extends P0{constructor(){super(...arguments);this._unknown=!0}_parse(Q){return n0(Q.data)}}D1.create=(Q)=>{return new D1({typeName:z0.ZodUnknown,...O0(Q)})};class y2 extends P0{_parse(Q){let J=this._getOrReturnCtx(Q);return Y0(J,{code:r.invalid_type,expected:J0.never,received:J.parsedType}),F0}}y2.create=(Q)=>{return new y2({typeName:z0.ZodNever,...O0(Q)})};class Z8 extends P0{_parse(Q){if(this._getType(Q)!==J0.undefined){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.void,received:$.parsedType}),F0}return n0(Q.data)}}Z8.create=(Q)=>{return new Z8({typeName:z0.ZodVoid,...O0(Q)})};class O2 extends P0{_parse(Q){let{ctx:J,status:$}=this._processInputParams(Q),q=this._def;if(J.parsedType!==J0.array)return Y0(J,{code:r.invalid_type,expected:J0.array,received:J.parsedType}),F0;if(q.exactLength!==null){let Y=J.data.length>q.exactLength.value,W=J.data.length<q.exactLength.value;if(Y||W)Y0(J,{code:Y?r.too_big:r.too_small,minimum:W?q.exactLength.value:void 0,maximum:Y?q.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:q.exactLength.message}),$.dirty()}if(q.minLength!==null){if(J.data.length<q.minLength.value)Y0(J,{code:r.too_small,minimum:q.minLength.value,type:"array",inclusive:!0,exact:!1,message:q.minLength.message}),$.dirty()}if(q.maxLength!==null){if(J.data.length>q.maxLength.value)Y0(J,{code:r.too_big,maximum:q.maxLength.value,type:"array",inclusive:!0,exact:!1,message:q.maxLength.message}),$.dirty()}if(J.common.async)return Promise.all([...J.data].map((Y,W)=>{return q.type._parseAsync(new A2(J,Y,J.path,W))})).then((Y)=>{return c0.mergeArray($,Y)});let X=[...J.data].map((Y,W)=>{return q.type._parseSync(new A2(J,Y,J.path,W))});return c0.mergeArray($,X)}get element(){return this._def.type}min(Q,J){return new O2({...this._def,minLength:{value:Q,message:V0.toString(J)}})}max(Q,J){return new O2({...this._def,maxLength:{value:Q,message:V0.toString(J)}})}length(Q,J){return new O2({...this._def,exactLength:{value:Q,message:V0.toString(J)}})}nonempty(Q){return this.min(1,Q)}}O2.create=(Q,J)=>{return new O2({type:Q,minLength:null,maxLength:null,exactLength:null,typeName:z0.ZodArray,...O0(J)})};function Z6(Q){if(Q instanceof g0){let J={};for(let $ in Q.shape){let q=Q.shape[$];J[$]=P2.create(Z6(q))}return new g0({...Q._def,shape:()=>J})}else if(Q instanceof O2)return new O2({...Q._def,type:Z6(Q.element)});else if(Q instanceof P2)return P2.create(Z6(Q.unwrap()));else if(Q instanceof J1)return J1.create(Z6(Q.unwrap()));else if(Q instanceof h2)return h2.create(Q.items.map((J)=>Z6(J)));else return Q}class g0 extends P0{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let Q=this._def.shape(),J=R0.objectKeys(Q);return this._cached={shape:Q,keys:J},this._cached}_parse(Q){if(this._getType(Q)!==J0.object){let G=this._getOrReturnCtx(Q);return Y0(G,{code:r.invalid_type,expected:J0.object,received:G.parsedType}),F0}let{status:$,ctx:q}=this._processInputParams(Q),{shape:X,keys:Y}=this._getCached(),W=[];if(!(this._def.catchall instanceof y2&&this._def.unknownKeys==="strip")){for(let G in q.data)if(!Y.includes(G))W.push(G)}let U=[];for(let G of Y){let B=X[G],K=q.data[G];U.push({key:{status:"valid",value:G},value:B._parse(new A2(q,K,q.path,G)),alwaysSet:G in q.data})}if(this._def.catchall instanceof y2){let G=this._def.unknownKeys;if(G==="passthrough")for(let B of W)U.push({key:{status:"valid",value:B},value:{status:"valid",value:q.data[B]}});else if(G==="strict"){if(W.length>0)Y0(q,{code:r.unrecognized_keys,keys:W}),$.dirty()}else if(G==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let G=this._def.catchall;for(let B of W){let K=q.data[B];U.push({key:{status:"valid",value:B},value:G._parse(new A2(q,K,q.path,B)),alwaysSet:B in q.data})}}if(q.common.async)return Promise.resolve().then(async()=>{let G=[];for(let B of U){let K=await B.key,j=await B.value;G.push({key:K,value:j,alwaysSet:B.alwaysSet})}return G}).then((G)=>{return c0.mergeObjectSync($,G)});else return c0.mergeObjectSync($,U)}get shape(){return this._def.shape()}strict(Q){return V0.errToObj,new g0({...this._def,unknownKeys:"strict",...Q!==void 0?{errorMap:(J,$)=>{let q=this._def.errorMap?.(J,$).message??$.defaultError;if(J.code==="unrecognized_keys")return{message:V0.errToObj(Q).message??q};return{message:q}}}:{}})}strip(){return new g0({...this._def,unknownKeys:"strip"})}passthrough(){return new g0({...this._def,unknownKeys:"passthrough"})}extend(Q){return new g0({...this._def,shape:()=>({...this._def.shape(),...Q})})}merge(Q){return new g0({unknownKeys:Q._def.unknownKeys,catchall:Q._def.catchall,shape:()=>({...this._def.shape(),...Q._def.shape()}),typeName:z0.ZodObject})}setKey(Q,J){return this.augment({[Q]:J})}catchall(Q){return new g0({...this._def,catchall:Q})}pick(Q){let J={};for(let $ of R0.objectKeys(Q))if(Q[$]&&this.shape[$])J[$]=this.shape[$];return new g0({...this._def,shape:()=>J})}omit(Q){let J={};for(let $ of R0.objectKeys(this.shape))if(!Q[$])J[$]=this.shape[$];return new g0({...this._def,shape:()=>J})}deepPartial(){return Z6(this)}partial(Q){let J={};for(let $ of R0.objectKeys(this.shape)){let q=this.shape[$];if(Q&&!Q[$])J[$]=q;else J[$]=q.optional()}return new g0({...this._def,shape:()=>J})}required(Q){let J={};for(let $ of R0.objectKeys(this.shape))if(Q&&!Q[$])J[$]=this.shape[$];else{let X=this.shape[$];while(X instanceof P2)X=X._def.innerType;J[$]=X}return new g0({...this._def,shape:()=>J})}keyof(){return aX(R0.objectKeys(this.shape))}}g0.create=(Q,J)=>{return new g0({shape:()=>Q,unknownKeys:"strip",catchall:y2.create(),typeName:z0.ZodObject,...O0(J)})};g0.strictCreate=(Q,J)=>{return new g0({shape:()=>Q,unknownKeys:"strict",catchall:y2.create(),typeName:z0.ZodObject,...O0(J)})};g0.lazycreate=(Q,J)=>{return new g0({shape:Q,unknownKeys:"strip",catchall:y2.create(),typeName:z0.ZodObject,...O0(J)})};class x6 extends P0{_parse(Q){let{ctx:J}=this._processInputParams(Q),$=this._def.options;function q(X){for(let W of X)if(W.result.status==="valid")return W.result;for(let W of X)if(W.result.status==="dirty")return J.common.issues.push(...W.ctx.common.issues),W.result;let Y=X.map((W)=>new J2(W.ctx.common.issues));return Y0(J,{code:r.invalid_union,unionErrors:Y}),F0}if(J.common.async)return Promise.all($.map(async(X)=>{let Y={...J,common:{...J.common,issues:[]},parent:null};return{result:await X._parseAsync({data:J.data,path:J.path,parent:Y}),ctx:Y}})).then(q);else{let X=void 0,Y=[];for(let U of $){let G={...J,common:{...J.common,issues:[]},parent:null},B=U._parseSync({data:J.data,path:J.path,parent:G});if(B.status==="valid")return B;else if(B.status==="dirty"&&!X)X={result:B,ctx:G};if(G.common.issues.length)Y.push(G.common.issues)}if(X)return J.common.issues.push(...X.ctx.common.issues),X.result;let W=Y.map((U)=>new J2(U));return Y0(J,{code:r.invalid_union,unionErrors:W}),F0}}get options(){return this._def.options}}x6.create=(Q,J)=>{return new x6({options:Q,typeName:z0.ZodUnion,...O0(J)})};var Q1=(Q)=>{if(Q instanceof _6)return Q1(Q.schema);else if(Q instanceof R2)return Q1(Q.innerType());else if(Q instanceof f6)return[Q.value];else if(Q instanceof P1)return Q.options;else if(Q instanceof y6)return R0.objectValues(Q.enum);else if(Q instanceof h6)return Q1(Q._def.innerType);else if(Q instanceof k6)return[void 0];else if(Q instanceof T6)return[null];else if(Q instanceof P2)return[void 0,...Q1(Q.unwrap())];else if(Q instanceof J1)return[null,...Q1(Q.unwrap())];else if(Q instanceof f5)return Q1(Q.unwrap());else if(Q instanceof m6)return Q1(Q.unwrap());else if(Q instanceof b6)return Q1(Q._def.innerType);else return[]};class _5 extends P0{_parse(Q){let{ctx:J}=this._processInputParams(Q);if(J.parsedType!==J0.object)return Y0(J,{code:r.invalid_type,expected:J0.object,received:J.parsedType}),F0;let $=this.discriminator,q=J.data[$],X=this.optionsMap.get(q);if(!X)return Y0(J,{code:r.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[$]}),F0;if(J.common.async)return X._parseAsync({data:J.data,path:J.path,parent:J});else return X._parseSync({data:J.data,path:J.path,parent:J})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(Q,J,$){let q=new Map;for(let X of J){let Y=Q1(X.shape[Q]);if(!Y.length)throw Error(`A discriminator value for key \`${Q}\` could not be extracted from all schema options`);for(let W of Y){if(q.has(W))throw Error(`Discriminator property ${String(Q)} has duplicate value ${String(W)}`);q.set(W,X)}}return new _5({typeName:z0.ZodDiscriminatedUnion,discriminator:Q,options:J,optionsMap:q,...O0($)})}}function YQ(Q,J){let $=f2(Q),q=f2(J);if(Q===J)return{valid:!0,data:Q};else if($===J0.object&&q===J0.object){let X=R0.objectKeys(J),Y=R0.objectKeys(Q).filter((U)=>X.indexOf(U)!==-1),W={...Q,...J};for(let U of Y){let G=YQ(Q[U],J[U]);if(!G.valid)return{valid:!1};W[U]=G.data}return{valid:!0,data:W}}else if($===J0.array&&q===J0.array){if(Q.length!==J.length)return{valid:!1};let X=[];for(let Y=0;Y<Q.length;Y++){let W=Q[Y],U=J[Y],G=YQ(W,U);if(!G.valid)return{valid:!1};X.push(G.data)}return{valid:!0,data:X}}else if($===J0.date&&q===J0.date&&+Q===+J)return{valid:!0,data:Q};else return{valid:!1}}class g6 extends P0{_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q),q=(X,Y)=>{if(x5(X)||x5(Y))return F0;let W=YQ(X.value,Y.value);if(!W.valid)return Y0($,{code:r.invalid_intersection_types}),F0;if(g5(X)||g5(Y))J.dirty();return{status:J.value,value:W.data}};if($.common.async)return Promise.all([this._def.left._parseAsync({data:$.data,path:$.path,parent:$}),this._def.right._parseAsync({data:$.data,path:$.path,parent:$})]).then(([X,Y])=>q(X,Y));else return q(this._def.left._parseSync({data:$.data,path:$.path,parent:$}),this._def.right._parseSync({data:$.data,path:$.path,parent:$}))}}g6.create=(Q,J,$)=>{return new g6({left:Q,right:J,typeName:z0.ZodIntersection,...O0($)})};class h2 extends P0{_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.parsedType!==J0.array)return Y0($,{code:r.invalid_type,expected:J0.array,received:$.parsedType}),F0;if($.data.length<this._def.items.length)return Y0($,{code:r.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),F0;if(!this._def.rest&&$.data.length>this._def.items.length)Y0($,{code:r.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J.dirty();let X=[...$.data].map((Y,W)=>{let U=this._def.items[W]||this._def.rest;if(!U)return null;return U._parse(new A2($,Y,$.path,W))}).filter((Y)=>!!Y);if($.common.async)return Promise.all(X).then((Y)=>{return c0.mergeArray(J,Y)});else return c0.mergeArray(J,X)}get items(){return this._def.items}rest(Q){return new h2({...this._def,rest:Q})}}h2.create=(Q,J)=>{if(!Array.isArray(Q))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new h2({items:Q,typeName:z0.ZodTuple,rest:null,...O0(J)})};class v8 extends P0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.parsedType!==J0.object)return Y0($,{code:r.invalid_type,expected:J0.object,received:$.parsedType}),F0;let q=[],X=this._def.keyType,Y=this._def.valueType;for(let W in $.data)q.push({key:X._parse(new A2($,W,$.path,W)),value:Y._parse(new A2($,$.data[W],$.path,W)),alwaysSet:W in $.data});if($.common.async)return c0.mergeObjectAsync(J,q);else return c0.mergeObjectSync(J,q)}get element(){return this._def.valueType}static create(Q,J,$){if(J instanceof P0)return new v8({keyType:Q,valueType:J,typeName:z0.ZodRecord,...O0($)});return new v8({keyType:C2.create(),valueType:Q,typeName:z0.ZodRecord,...O0(J)})}}class E8 extends P0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.parsedType!==J0.map)return Y0($,{code:r.invalid_type,expected:J0.map,received:$.parsedType}),F0;let q=this._def.keyType,X=this._def.valueType,Y=[...$.data.entries()].map(([W,U],G)=>{return{key:q._parse(new A2($,W,$.path,[G,"key"])),value:X._parse(new A2($,U,$.path,[G,"value"]))}});if($.common.async){let W=new Map;return Promise.resolve().then(async()=>{for(let U of Y){let G=await U.key,B=await U.value;if(G.status==="aborted"||B.status==="aborted")return F0;if(G.status==="dirty"||B.status==="dirty")J.dirty();W.set(G.value,B.value)}return{status:J.value,value:W}})}else{let W=new Map;for(let U of Y){let{key:G,value:B}=U;if(G.status==="aborted"||B.status==="aborted")return F0;if(G.status==="dirty"||B.status==="dirty")J.dirty();W.set(G.value,B.value)}return{status:J.value,value:W}}}}E8.create=(Q,J,$)=>{return new E8({valueType:J,keyType:Q,typeName:z0.ZodMap,...O0($)})};class s1 extends P0{_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.parsedType!==J0.set)return Y0($,{code:r.invalid_type,expected:J0.set,received:$.parsedType}),F0;let q=this._def;if(q.minSize!==null){if($.data.size<q.minSize.value)Y0($,{code:r.too_small,minimum:q.minSize.value,type:"set",inclusive:!0,exact:!1,message:q.minSize.message}),J.dirty()}if(q.maxSize!==null){if($.data.size>q.maxSize.value)Y0($,{code:r.too_big,maximum:q.maxSize.value,type:"set",inclusive:!0,exact:!1,message:q.maxSize.message}),J.dirty()}let X=this._def.valueType;function Y(U){let G=new Set;for(let B of U){if(B.status==="aborted")return F0;if(B.status==="dirty")J.dirty();G.add(B.value)}return{status:J.value,value:G}}let W=[...$.data.values()].map((U,G)=>X._parse(new A2($,U,$.path,G)));if($.common.async)return Promise.all(W).then((U)=>Y(U));else return Y(W)}min(Q,J){return new s1({...this._def,minSize:{value:Q,message:V0.toString(J)}})}max(Q,J){return new s1({...this._def,maxSize:{value:Q,message:V0.toString(J)}})}size(Q,J){return this.min(Q,J).max(Q,J)}nonempty(Q){return this.min(1,Q)}}s1.create=(Q,J)=>{return new s1({valueType:Q,minSize:null,maxSize:null,typeName:z0.ZodSet,...O0(J)})};class v6 extends P0{constructor(){super(...arguments);this.validate=this.implement}_parse(Q){let{ctx:J}=this._processInputParams(Q);if(J.parsedType!==J0.function)return Y0(J,{code:r.invalid_type,expected:J0.function,received:J.parsedType}),F0;function $(W,U){return I8({data:W,path:J.path,errorMaps:[J.common.contextualErrorMap,J.schemaErrorMap,I6(),e2].filter((G)=>!!G),issueData:{code:r.invalid_arguments,argumentsError:U}})}function q(W,U){return I8({data:W,path:J.path,errorMaps:[J.common.contextualErrorMap,J.schemaErrorMap,I6(),e2].filter((G)=>!!G),issueData:{code:r.invalid_return_type,returnTypeError:U}})}let X={errorMap:J.common.contextualErrorMap},Y=J.data;if(this._def.returns instanceof t1){let W=this;return n0(async function(...U){let G=new J2([]),B=await W._def.args.parseAsync(U,X).catch((F)=>{throw G.addIssue($(U,F)),G}),K=await Reflect.apply(Y,this,B);return await W._def.returns._def.type.parseAsync(K,X).catch((F)=>{throw G.addIssue(q(K,F)),G})})}else{let W=this;return n0(function(...U){let G=W._def.args.safeParse(U,X);if(!G.success)throw new J2([$(U,G.error)]);let B=Reflect.apply(Y,this,G.data),K=W._def.returns.safeParse(B,X);if(!K.success)throw new J2([q(B,K.error)]);return K.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...Q){return new v6({...this._def,args:h2.create(Q).rest(D1.create())})}returns(Q){return new v6({...this._def,returns:Q})}implement(Q){return this.parse(Q)}strictImplement(Q){return this.parse(Q)}static create(Q,J,$){return new v6({args:Q?Q:h2.create([]).rest(D1.create()),returns:J||D1.create(),typeName:z0.ZodFunction,...O0($)})}}class _6 extends P0{get schema(){return this._def.getter()}_parse(Q){let{ctx:J}=this._processInputParams(Q);return this._def.getter()._parse({data:J.data,path:J.path,parent:J})}}_6.create=(Q,J)=>{return new _6({getter:Q,typeName:z0.ZodLazy,...O0(J)})};class f6 extends P0{_parse(Q){if(Q.data!==this._def.value){let J=this._getOrReturnCtx(Q);return Y0(J,{received:J.data,code:r.invalid_literal,expected:this._def.value}),F0}return{status:"valid",value:Q.data}}get value(){return this._def.value}}f6.create=(Q,J)=>{return new f6({value:Q,typeName:z0.ZodLiteral,...O0(J)})};function aX(Q,J){return new P1({values:Q,typeName:z0.ZodEnum,...O0(J)})}class P1 extends P0{_parse(Q){if(typeof Q.data!=="string"){let J=this._getOrReturnCtx(Q),$=this._def.values;return Y0(J,{expected:R0.joinValues($),received:J.parsedType,code:r.invalid_type}),F0}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(Q.data)){let J=this._getOrReturnCtx(Q),$=this._def.values;return Y0(J,{received:J.data,code:r.invalid_enum_value,options:$}),F0}return n0(Q.data)}get options(){return this._def.values}get enum(){let Q={};for(let J of this._def.values)Q[J]=J;return Q}get Values(){let Q={};for(let J of this._def.values)Q[J]=J;return Q}get Enum(){let Q={};for(let J of this._def.values)Q[J]=J;return Q}extract(Q,J=this._def){return P1.create(Q,{...this._def,...J})}exclude(Q,J=this._def){return P1.create(this.options.filter(($)=>!Q.includes($)),{...this._def,...J})}}P1.create=aX;class y6 extends P0{_parse(Q){let J=R0.getValidEnumValues(this._def.values),$=this._getOrReturnCtx(Q);if($.parsedType!==J0.string&&$.parsedType!==J0.number){let q=R0.objectValues(J);return Y0($,{expected:R0.joinValues(q),received:$.parsedType,code:r.invalid_type}),F0}if(!this._cache)this._cache=new Set(R0.getValidEnumValues(this._def.values));if(!this._cache.has(Q.data)){let q=R0.objectValues(J);return Y0($,{received:$.data,code:r.invalid_enum_value,options:q}),F0}return n0(Q.data)}get enum(){return this._def.values}}y6.create=(Q,J)=>{return new y6({values:Q,typeName:z0.ZodNativeEnum,...O0(J)})};class t1 extends P0{unwrap(){return this._def.type}_parse(Q){let{ctx:J}=this._processInputParams(Q);if(J.parsedType!==J0.promise&&J.common.async===!1)return Y0(J,{code:r.invalid_type,expected:J0.promise,received:J.parsedType}),F0;let $=J.parsedType===J0.promise?J.data:Promise.resolve(J.data);return n0($.then((q)=>{return this._def.type.parseAsync(q,{path:J.path,errorMap:J.common.contextualErrorMap})}))}}t1.create=(Q,J)=>{return new t1({type:Q,typeName:z0.ZodPromise,...O0(J)})};class R2 extends P0{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===z0.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q),q=this._def.effect||null,X={addIssue:(Y)=>{if(Y0($,Y),Y.fatal)J.abort();else J.dirty()},get path(){return $.path}};if(X.addIssue=X.addIssue.bind(X),q.type==="preprocess"){let Y=q.transform($.data,X);if($.common.async)return Promise.resolve(Y).then(async(W)=>{if(J.value==="aborted")return F0;let U=await this._def.schema._parseAsync({data:W,path:$.path,parent:$});if(U.status==="aborted")return F0;if(U.status==="dirty")return o1(U.value);if(J.value==="dirty")return o1(U.value);return U});else{if(J.value==="aborted")return F0;let W=this._def.schema._parseSync({data:Y,path:$.path,parent:$});if(W.status==="aborted")return F0;if(W.status==="dirty")return o1(W.value);if(J.value==="dirty")return o1(W.value);return W}}if(q.type==="refinement"){let Y=(W)=>{let U=q.refinement(W,X);if($.common.async)return Promise.resolve(U);if(U instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return W};if($.common.async===!1){let W=this._def.schema._parseSync({data:$.data,path:$.path,parent:$});if(W.status==="aborted")return F0;if(W.status==="dirty")J.dirty();return Y(W.value),{status:J.value,value:W.value}}else return this._def.schema._parseAsync({data:$.data,path:$.path,parent:$}).then((W)=>{if(W.status==="aborted")return F0;if(W.status==="dirty")J.dirty();return Y(W.value).then(()=>{return{status:J.value,value:W.value}})})}if(q.type==="transform")if($.common.async===!1){let Y=this._def.schema._parseSync({data:$.data,path:$.path,parent:$});if(!N1(Y))return F0;let W=q.transform(Y.value,X);if(W instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:J.value,value:W}}else return this._def.schema._parseAsync({data:$.data,path:$.path,parent:$}).then((Y)=>{if(!N1(Y))return F0;return Promise.resolve(q.transform(Y.value,X)).then((W)=>({status:J.value,value:W}))});R0.assertNever(q)}}R2.create=(Q,J,$)=>{return new R2({schema:Q,typeName:z0.ZodEffects,effect:J,...O0($)})};R2.createWithPreprocess=(Q,J,$)=>{return new R2({schema:J,effect:{type:"preprocess",transform:Q},typeName:z0.ZodEffects,...O0($)})};class P2 extends P0{_parse(Q){if(this._getType(Q)===J0.undefined)return n0(void 0);return this._def.innerType._parse(Q)}unwrap(){return this._def.innerType}}P2.create=(Q,J)=>{return new P2({innerType:Q,typeName:z0.ZodOptional,...O0(J)})};class J1 extends P0{_parse(Q){if(this._getType(Q)===J0.null)return n0(null);return this._def.innerType._parse(Q)}unwrap(){return this._def.innerType}}J1.create=(Q,J)=>{return new J1({innerType:Q,typeName:z0.ZodNullable,...O0(J)})};class h6 extends P0{_parse(Q){let{ctx:J}=this._processInputParams(Q),$=J.data;if(J.parsedType===J0.undefined)$=this._def.defaultValue();return this._def.innerType._parse({data:$,path:J.path,parent:J})}removeDefault(){return this._def.innerType}}h6.create=(Q,J)=>{return new h6({innerType:Q,typeName:z0.ZodDefault,defaultValue:typeof J.default==="function"?J.default:()=>J.default,...O0(J)})};class b6 extends P0{_parse(Q){let{ctx:J}=this._processInputParams(Q),$={...J,common:{...J.common,issues:[]}},q=this._def.innerType._parse({data:$.data,path:$.path,parent:{...$}});if(S6(q))return q.then((X)=>{return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new J2($.common.issues)},input:$.data})}});else return{status:"valid",value:q.status==="valid"?q.value:this._def.catchValue({get error(){return new J2($.common.issues)},input:$.data})}}removeCatch(){return this._def.innerType}}b6.create=(Q,J)=>{return new b6({innerType:Q,typeName:z0.ZodCatch,catchValue:typeof J.catch==="function"?J.catch:()=>J.catch,...O0(J)})};class k8 extends P0{_parse(Q){if(this._getType(Q)!==J0.nan){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.nan,received:$.parsedType}),F0}return{status:"valid",value:Q.data}}}k8.create=(Q)=>{return new k8({typeName:z0.ZodNaN,...O0(Q)})};var UF=Symbol("zod_brand");class f5 extends P0{_parse(Q){let{ctx:J}=this._processInputParams(Q),$=J.data;return this._def.type._parse({data:$,path:J.path,parent:J})}unwrap(){return this._def.type}}class T8 extends P0{_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.common.async)return(async()=>{let X=await this._def.in._parseAsync({data:$.data,path:$.path,parent:$});if(X.status==="aborted")return F0;if(X.status==="dirty")return J.dirty(),o1(X.value);else return this._def.out._parseAsync({data:X.value,path:$.path,parent:$})})();else{let q=this._def.in._parseSync({data:$.data,path:$.path,parent:$});if(q.status==="aborted")return F0;if(q.status==="dirty")return J.dirty(),{status:"dirty",value:q.value};else return this._def.out._parseSync({data:q.value,path:$.path,parent:$})}}static create(Q,J){return new T8({in:Q,out:J,typeName:z0.ZodPipeline})}}class m6 extends P0{_parse(Q){let J=this._def.innerType._parse(Q),$=(q)=>{if(N1(q))q.value=Object.freeze(q.value);return q};return S6(J)?J.then((q)=>$(q)):$(J)}unwrap(){return this._def.innerType}}m6.create=(Q,J)=>{return new m6({innerType:Q,typeName:z0.ZodReadonly,...O0(J)})};function iX(Q,J){let $=typeof Q==="function"?Q(J):typeof Q==="string"?{message:Q}:Q;return typeof $==="string"?{message:$}:$}function sX(Q,J={},$){if(Q)return a1.create().superRefine((q,X)=>{let Y=Q(q);if(Y instanceof Promise)return Y.then((W)=>{if(!W){let U=iX(J,q),G=U.fatal??$??!0;X.addIssue({code:"custom",...U,fatal:G})}});if(!Y){let W=iX(J,q),U=W.fatal??$??!0;X.addIssue({code:"custom",...W,fatal:U})}return});return a1.create()}var GF={object:g0.lazycreate},z0;(function(Q){Q.ZodString="ZodString",Q.ZodNumber="ZodNumber",Q.ZodNaN="ZodNaN",Q.ZodBigInt="ZodBigInt",Q.ZodBoolean="ZodBoolean",Q.ZodDate="ZodDate",Q.ZodSymbol="ZodSymbol",Q.ZodUndefined="ZodUndefined",Q.ZodNull="ZodNull",Q.ZodAny="ZodAny",Q.ZodUnknown="ZodUnknown",Q.ZodNever="ZodNever",Q.ZodVoid="ZodVoid",Q.ZodArray="ZodArray",Q.ZodObject="ZodObject",Q.ZodUnion="ZodUnion",Q.ZodDiscriminatedUnion="ZodDiscriminatedUnion",Q.ZodIntersection="ZodIntersection",Q.ZodTuple="ZodTuple",Q.ZodRecord="ZodRecord",Q.ZodMap="ZodMap",Q.ZodSet="ZodSet",Q.ZodFunction="ZodFunction",Q.ZodLazy="ZodLazy",Q.ZodLiteral="ZodLiteral",Q.ZodEnum="ZodEnum",Q.ZodEffects="ZodEffects",Q.ZodNativeEnum="ZodNativeEnum",Q.ZodOptional="ZodOptional",Q.ZodNullable="ZodNullable",Q.ZodDefault="ZodDefault",Q.ZodCatch="ZodCatch",Q.ZodPromise="ZodPromise",Q.ZodBranded="ZodBranded",Q.ZodPipeline="ZodPipeline",Q.ZodReadonly="ZodReadonly"})(z0||(z0={}));var BF=(Q,J={message:`Input not instance of ${Q.name}`})=>sX(($)=>$ instanceof Q,J),tX=C2.create,eX=C1.create,KF=k8.create,VF=O1.create,QY=E6.create,HF=r1.create,jF=S8.create,MF=k6.create,FF=T6.create,zF=a1.create,LF=D1.create,NF=y2.create,DF=Z8.create,CF=O2.create,OF=g0.create,PF=g0.strictCreate,AF=x6.create,RF=_5.create,wF=g6.create,IF=h2.create,SF=v8.create,ZF=E8.create,vF=s1.create,EF=v6.create,kF=_6.create,TF=f6.create,xF=P1.create,gF=y6.create,_F=t1.create,fF=R2.create,yF=P2.create,hF=J1.create,bF=R2.createWithPreprocess,mF=T8.create,uF=()=>tX().optional(),cF=()=>eX().optional(),pF=()=>QY().optional(),lF={string:(Q)=>C2.create({...Q,coerce:!0}),number:(Q)=>C1.create({...Q,coerce:!0}),boolean:(Q)=>E6.create({...Q,coerce:!0}),bigint:(Q)=>O1.create({...Q,coerce:!0}),date:(Q)=>r1.create({...Q,coerce:!0})};var dF=F0;class Y2 extends Error{field;regex;constructor(Q,J,$){super($);this.field=Q,this.regex=J}}class x8 extends Error{hash;constructor(Q){super(`'${Q}' not found in the root hash`);this.hash=Q}}class WQ extends Map{#J;#Q=0;constructor(Q,J=[]){super();this.#J=Q;for(let[$,q]of J)this.set($,q)}get(Q){let J=super.get(Q);if(J!==void 0)super.delete(Q),super.set(Q,J);return J}set(Q,J){let $=super.get(Q);if($===void 0)this.#Q+=Q.length;else if($!==null)this.#Q-=$.byteLength;if(J!==null)this.#Q+=J.byteLength;super.delete(Q);let q;while(this.#Q>this.#J&&(q=this.entries().next().value)){let[X,Y]=q;if(super.delete(X),this.#Q-=X.length,Y!==null)this.#Q-=Y.byteLength}return super.set(Q,J),this}delete(Q){let J=super.get(Q);if(J===void 0)return!1;if(super.delete(Q),J!==null)this.#Q-=J.byteLength;return this.#Q-=Q.length,!0}clear(){super.clear(),this.#Q=0}}var UI=X1(fU(),1),GI=X1(pU(),1),BI=X1(MG(),1),KI=X1(DG(),1),VI=X1(vG(),1),HI=X1(kG(),1),sG=X1(xG(),1);var VO={0:"brush",12:"brush",1:"pencil",14:"pencil",2:"ballpoint",15:"ballpoint",3:"marker",16:"marker",4:"fineliner",17:"fineliner",5:"highlighter",18:"highlighter",6:"eraser",7:"mechanicalPencil",13:"mechanicalPencil",8:"eraseArea",21:"calligraphy",23:"shader"};function HO(Q){return VO[Q]}var jO={0:"black",1:"gray",2:"white"},w1=43,U4="reMarkable .lines file, version=";function gG(Q,J){let $=new DataView(Q.buffer,Q.byteOffset,Q.byteLength),q=w1,X=()=>{let G=$.getInt32(q,!0);return q+=4,G},Y=()=>{let G=$.getFloat32(q,!0);return q+=4,G},W=X(),U=[];for(let G=0;G<W;G++){let B=X(),K=[];for(let j=0;j<B;j++){let F=X(),H=X(),E=X(),g=Y(),P=J===5?X():void 0,D=X(),V=Array(D);for(let L=0;L<D;L++)V[L]={x:Y(),y:Y(),speed:Y(),direction:Y(),width:Y(),pressure:Y()};let z={brushType:F,color:H,padding:E,brushBaseSize:g,points:V};if(P!==void 0)z.unknown=P;K.push(z)}U.push({lines:K})}return{version:J,layers:U}}function _G(Q){let{version:J}=Q;if(J!==3&&J!==5)throw Error(`rendering version ${J} .lines files is not supported (only 3 and 5)`);let $=J===5?24:20,q=w1+4;for(let K of Q.layers){q+=4;for(let j of K.lines)q+=$+j.points.length*24}let X=new Uint8Array(q),Y=new DataView(X.buffer),W=`${U4}${J}`.padEnd(w1," ");for(let K=0;K<w1;K++)X[K]=W.charCodeAt(K);let U=w1,G=(K)=>{Y.setInt32(U,K,!0),U+=4},B=(K)=>{Y.setFloat32(U,K,!0),U+=4};G(Q.layers.length);for(let K of Q.layers){G(K.lines.length);for(let j of K.lines){if(G(j.brushType),G(j.color),G(j.padding??0),B(j.brushBaseSize),J===5)G(j.unknown??0);G(j.points.length);for(let F of j.points)B(F.x),B(F.y),B(F.speed),B(F.direction),B(F.width),B(F.pressure)}}return X}var fG={authorId:0,counter:1},hG={authorId:0,counter:0};function o0(Q){return`${Q.authorId}:${Q.counter}`}var KJ=43,bG="reMarkable .lines file, version=6",B4=1,m2=4,mG=8,I1=12,K4=15;class uG{#J;#Q;#$;#q=[];constructor(Q,J){this.#J=new DataView(Q.buffer,Q.byteOffset,Q.byteLength),this.#Q=J,this.#$=Q.byteLength}get offset(){return this.#Q}get atFileEnd(){return this.#Q>=this.#$}#Y(){return this.#q.length>0?this.#q[this.#q.length-1]:this.#$}bytesRemaining(){return this.#Y()-this.#Q}u8(){let Q=this.#J.getUint8(this.#Q);return this.#Q+=1,Q}u16(){let Q=this.#J.getUint16(this.#Q,!0);return this.#Q+=2,Q}u32(){let Q=this.#J.getUint32(this.#Q,!0);return this.#Q+=4,Q}f32(){let Q=this.#J.getFloat32(this.#Q,!0);return this.#Q+=4,Q}f64(){let Q=this.#J.getFloat64(this.#Q,!0);return this.#Q+=8,Q}varuint(){let Q=0,J=0,$;do $=this.u8(),Q+=($&127)*2**J,J+=7;while($&128);return Q}crdtId(){return{authorId:this.u8(),counter:this.varuint()}}bytes(Q){let J=this.#J.byteOffset+this.#Q,$=new Uint8Array(this.#J.buffer,J,Q);return this.#Q+=Q,$.slice()}peekTag(){if(this.#Q>=this.#Y())return;let Q=this.#Q,J=this.varuint();return this.#Q=Q,[Math.floor(J/16),J%16]}hasTag(Q,J){let $=this.peekTag();return $!==void 0&&$[0]===Q&&$[1]===J}#W(Q,J){let $=this.varuint();if(Math.floor($/16)!==Q||$%16!==J)throw Error(`unexpected v6 tag ${$} (wanted ${Q}/${J})`)}readInt(Q){return this.#W(Q,m2),this.u32()}readFloat(Q){return this.#W(Q,m2),this.f32()}readDouble(Q){return this.#W(Q,mG),this.f64()}readId(Q){return this.#W(Q,K4),this.crdtId()}readBool(Q){return this.#W(Q,B4),this.u8()!==0}readByte(Q){return this.#W(Q,B4),this.u8()}subblock(Q,J){this.#W(Q,I1);let $=this.u32(),q=this.#Q+$;this.#q.push(q);try{let X=J();if(this.#Q!==q)throw Error(`subblock ${Q} left ${q-this.#Q} bytes unread`);return X}finally{this.#q.pop(),this.#Q=q}}seek(Q){this.#Q=Q}bounded(Q,J){this.#q.push(Q);try{let $=J();if(this.#Q>Q)throw Error("block body overran its declared length");return[$,this.bytes(Q-this.#Q)]}finally{this.#q.pop(),this.#Q=Q}}readLww(Q,J){return this.subblock(Q,()=>{let $=this.readId(1),q=J();return{timestamp:$,value:q}})}readString(Q){return this.subblock(Q,()=>{let J=this.varuint();return this.u8(),new TextDecoder().decode(this.bytes(J))})}readStringWithFormat(Q){return this.subblock(Q,()=>{let J=this.varuint();this.u8();let $=new TextDecoder().decode(this.bytes(J));if(this.hasTag(2,m2))return this.readInt(2);else return $})}}class cG{#J=new Uint8Array(4096);#Q=new DataView(this.#J.buffer);#$=0;#q(Q){if(this.#$+Q<=this.#J.length)return;let J=this.#J.length;while(J<this.#$+Q)J*=2;let $=new Uint8Array(J);$.set(this.#J),this.#J=$,this.#Q=new DataView($.buffer)}get length(){return this.#$}u8(Q){this.#q(1),this.#Q.setUint8(this.#$,Q),this.#$+=1}u16(Q){this.#q(2),this.#Q.setUint16(this.#$,Q,!0),this.#$+=2}u32(Q){this.#q(4),this.#Q.setUint32(this.#$,Q,!0),this.#$+=4}f32(Q){this.#q(4),this.#Q.setFloat32(this.#$,Q,!0),this.#$+=4}f64(Q){this.#q(8),this.#Q.setFloat64(this.#$,Q,!0),this.#$+=8}varuint(Q){let J=Q;do{let $=J%128;if(J=Math.floor(J/128),J>0)$|=128;this.u8($)}while(J>0)}crdtId(Q){this.u8(Q.authorId),this.varuint(Q.counter)}bytes(Q){this.#q(Q.length),this.#J.set(Q,this.#$),this.#$+=Q.length}patchU32(Q,J){this.#Q.setUint32(Q,J,!0)}finish(){return this.#J.slice(0,this.#$)}tag(Q,J){this.varuint(Q*16+J)}writeInt(Q,J){this.tag(Q,m2),this.u32(J)}writeFloat(Q,J){this.tag(Q,m2),this.f32(J)}writeDouble(Q,J){this.tag(Q,mG),this.f64(J)}writeId(Q,J){this.tag(Q,K4),this.crdtId(J)}writeBool(Q,J){this.tag(Q,B4),this.u8(J?1:0)}writeByte(Q,J){this.tag(Q,B4),this.u8(J)}subblock(Q,J){this.tag(Q,I1);let $=this.length;this.u32(0),J(),this.patchU32($,this.length-$-4)}writeLww(Q,J,$){this.subblock(Q,()=>{this.writeId(1,J.timestamp),$(J.value)})}writeString(Q,J){this.subblock(Q,()=>{let $=new TextEncoder().encode(J);this.varuint($.length),this.u8(1),this.bytes($)})}}function u8(Q,J){let $=Q.readId(1),q=Q.readId(2),X=Q.readId(3),Y=Q.readId(4),W=Q.readInt(5),U;if(Q.hasTag(6,I1))U=Q.subblock(6,()=>{let G=Q.u8();return J(G)});return{parentId:$,item:{itemId:q,leftId:X,rightId:Y,deletedLength:W,value:U}}}function MO(Q,J){let $=Q.readInt(1),q=Q.readInt(2),X=Q.readDouble(3),Y=Q.readFloat(4),W=Q.subblock(5,()=>{let G=J===1?24:14,B=Q.bytesRemaining(),K=Math.floor(B/G),j=Array(K);for(let F=0;F<K;F++){let H=Q.f32(),E=Q.f32();if(J===1)j[F]={x:H,y:E,speed:Q.f32()*4,direction:Q.f32()*255/(2*Math.PI),width:Q.f32()*4,pressure:Q.f32()*255};else{let g=Q.u16(),P=Q.u16(),D=Q.u8(),V=Q.u8();j[F]={x:H,y:E,speed:g,width:P,direction:D,pressure:V}}}return j}),U={tool:$,color:q,thicknessScale:X,startingLength:Y,points:W};if(Q.hasTag(6,K4))U.timestampId=Q.readId(6);if(Q.hasTag(7,K4))U.moveId=Q.readId(7);if(Q.hasTag(8,m2))U.colorRgba=Q.readInt(8);return U}function FO(Q){let J=Q.hasTag(2,m2)?Q.readInt(2):void 0,$=Q.hasTag(3,m2)?Q.readInt(3):void 0,q=Q.readInt(4),X=Q.readString(5),Y=Q.subblock(6,()=>{let U=Q.varuint(),G=Array(U);for(let B=0;B<U;B++)G[B]={x:Q.f64(),y:Q.f64(),w:Q.f64(),h:Q.f64()};return G}),W={length:$??X.length,color:q,text:X,rectangles:Y};if(J!==void 0)W.start=J;if(Q.hasTag(10,m2))W.colorRgba=Q.readInt(10);return W}function zO(Q){let J=[],$=new Map;Q.subblock(2,()=>{Q.subblock(1,()=>{Q.subblock(1,()=>{let W=Q.varuint();for(let U=0;U<W;U++)J.push(Q.subblock(0,()=>{let G=Q.readId(2),B=Q.readId(3),K=Q.readId(4),j=Q.readInt(5),F=Q.hasTag(6,I1)?Q.readStringWithFormat(6):"";return{itemId:G,leftId:B,rightId:K,deletedLength:j,value:F}}))})}),Q.subblock(2,()=>{Q.subblock(1,()=>{let W=Q.varuint();for(let U=0;U<W;U++){let G=Q.crdtId(),B=Q.readId(1),K=Q.subblock(2,()=>{return Q.u8(),Q.u8()});$.set(o0(G),{timestamp:B,value:K})}})})});let[q,X]=Q.subblock(3,()=>[Q.f64(),Q.f64()]),Y=Q.readFloat(4);return{items:J,styles:$,posX:q,posY:X,width:Y}}function LO(Q,J,$){switch(J){case 0:return{type:"migrationInfo",migrationId:Q.readId(1),isDevice:Q.readBool(2)};case 1:return{type:"sceneTree",treeId:Q.readId(1),nodeId:Q.readId(2),isUpdate:Q.readBool(3),parentId:Q.subblock(4,()=>Q.readId(1))};case 2:{let q=Q.readId(1),X=Q.readLww(2,()=>Q.readString(2)),Y=Q.readLww(3,()=>Q.readBool(2)),W={type:"treeNode",nodeId:q,label:X,visible:Y};if(Q.bytesRemaining()>0&&Q.hasTag(7,I1))W.anchor={id:Q.readLww(7,()=>Q.readId(2)),type:Q.readLww(8,()=>Q.readByte(2)),threshold:Q.readLww(9,()=>Q.readFloat(2)),originX:Q.readLww(10,()=>Q.readFloat(2))};return W}case 3:return{type:"sceneGlyphItem",...u8(Q,(q)=>q===1?FO(Q):void 0)};case 4:return{type:"sceneGroupItem",...u8(Q,(q)=>q===2?Q.readId(2):void 0)};case 5:return{type:"sceneLineItem",...u8(Q,(q)=>q===3?MO(Q,$):void 0)};case 6:return{type:"sceneTextItem",...u8(Q,()=>{return})};case 7:return{type:"rootText",blockId:Q.readId(1),text:zO(Q)};case 8:return{type:"sceneTombstone",...u8(Q,()=>{return})};case 9:{let q=new Map,X=Q.varuint();for(let Y=0;Y<X;Y++)Q.subblock(0,()=>{let W=Q.varuint(),U=Q.bytes(W),G=Q.u16();q.set(G,DO(U))});return{type:"authorIds",authors:q}}case 10:{let q={type:"pageInfo",loadsCount:Q.readInt(1),mergesCount:Q.readInt(2),textCharsCount:Q.readInt(3),textLinesCount:Q.readInt(4)};if(Q.hasTag(5,m2))q.typeFolioUseCount=Q.readInt(5);return q}case 13:{let q={type:"sceneInfo",currentLayer:Q.readLww(1,()=>Q.readId(2))};if(Q.hasTag(2,I1))q.backgroundVisible=Q.readLww(2,()=>Q.readBool(2));if(Q.hasTag(3,I1))q.rootDocumentVisible=Q.readLww(3,()=>Q.readBool(2));if(Q.hasTag(5,I1))q.paperSize=Q.subblock(5,()=>[Q.u32(),Q.u32()]);return q}default:throw Error(`unknown v6 block type 0x${J.toString(16)}`)}}var NO=[3,2,1,0,5,4,7,6,8,9,10,11,12,13,14,15];function pG(Q){let J=new Uint8Array(16);for(let $=0;$<16;$++)J[$]=Q[NO[$]]??0;return J}function DO(Q){let J=pG(Q).toHex();return`${J.slice(0,8)}-${J.slice(8,12)}-${J.slice(12,16)}-${J.slice(16,20)}-${J.slice(20)}`}function CO(Q){let J=new TextDecoder().decode(Q.subarray(0,KJ));if(!J.startsWith(bG))throw Error(`not a version 6 .lines file: ${JSON.stringify(J)}`);let $=new uG(Q,KJ),q=[];while(!$.atFileEnd){if($.bytesRemaining()<8)break;let X=$.u32(),Y=$.u8(),W=$.u8(),U=$.u8(),G=$.u8(),B=$.offset;if(X>$.bytesRemaining()){q.push({type:"unknown",blockType:G,data:$.bytes($.bytesRemaining()),declaredLength:X,reserved:Y,minVersion:W,currentVersion:U,extraData:new Uint8Array});break}let K=B+X,j;try{let[F,H]=$.bounded(K,()=>LO($,G,U));j={...F,reserved:Y,minVersion:W,currentVersion:U,extraData:H}}catch{$.seek(B),j={type:"unknown",blockType:G,data:$.bytes(X),reserved:Y,minVersion:W,currentVersion:U,extraData:new Uint8Array}}$.seek(K),q.push(j)}return q}function OO(Q,J){let[$,q]=Q,[X,Y]=J;return $-X||q-Y}function yG(Q){if(Q.length<=1)return[...Q];let J="\x00start",$="\x00end",q=new Set(Q.map((H)=>o0(H.itemId))),X=new Map([[J,[]],[$,[]]]),Y=new Map([[J,0],[$,0]]);for(let H of Q)X.set(o0(H.itemId),[]),Y.set(o0(H.itemId),0);let W=(H,E)=>{let g=o0(H);return g===o0(hG)||!q.has(g)?E:g},U=(H,E)=>{X.get(H).push(E),Y.set(E,(Y.get(E)??0)+1)};for(let H of Q)U(W(H.leftId,J),o0(H.itemId)),U(o0(H.itemId),W(H.rightId,$));let G=new Map(Q.map((H)=>[o0(H.itemId),H])),B=(H)=>{if(H===J)return[-1/0,-1/0];if(H===$)return[1/0,1/0];let E=G.get(H);return[-E.itemId.authorId,E.itemId.counter]},K=new Set;for(let[H,E]of Y)if(E===0)K.add(H);let j=[],F=new Set;while(K.size>0){let H;for(let g of K)if(H===void 0||OO(B(g),B(H))<0)H=g;K.delete(H),F.add(H);let E=G.get(H);if(E)j.push(E);for(let g of X.get(H)??[])if(Y.set(g,Y.get(g)-1),Y.get(g)===0)K.add(g)}if(j.length<Q.length){for(let H of Q)if(!F.has(o0(H.itemId)))j.push(H)}return j}class lG{version=6;blocks;authors;paperSize;#J=new Map;#Q;constructor(Q){this.blocks=Q,this.authors=new Map;let J=($)=>{let q=this.#J.get(o0($));if(q===void 0)q={id:$,parentId:hG,children:[]},this.#J.set(o0($),q);return q};J(fG);for(let $ of Q)if($.type==="sceneTree")J($.treeId).parentId=$.parentId;else if($.type==="treeNode"){let q=J($.nodeId);q.label=$.label.value,q.visible=$.visible.value}else if($.type==="sceneGroupItem"&&$.item.value)J($.parentId).children.push({...$.item,value:{kind:"group",id:$.item.value}});else if($.type==="sceneLineItem"&&$.item.value)J($.parentId).children.push({...$.item,value:{kind:"line",line:$.item.value}});else if($.type==="sceneGlyphItem"&&$.item.value)J($.parentId).children.push({...$.item,value:{kind:"glyph",glyph:$.item.value}});else if($.type==="rootText")this.#Q=$.text;else if($.type==="authorIds")for(let[q,X]of $.authors)this.authors.set(q,X);else if($.type==="sceneInfo"&&$.paperSize)this.paperSize=$.paperSize}#$(Q){let J=[];for(let q of yG(Q.children))if(q.value.kind==="group"){let X=this.#J.get(o0(q.value.id));if(X)J.push({kind:"layer",layer:this.#$(X)})}else if(q.value.kind==="line")J.push({kind:"line",line:q.value.line});else J.push({kind:"glyph",glyph:q.value.glyph});let $={id:Q.id,items:J};if(Q.label!==void 0)$.label=Q.label;if(Q.visible!==void 0)$.visible=Q.visible;return $}layers(){let Q=this.#J.get(o0(fG));if(Q===void 0)return[];let J=[];for(let $ of yG(Q.children))if($.value.kind==="group"){let q=this.#J.get(o0($.value.id));if(q)J.push(this.#$(q))}return J}strokes(){let Q=[],J=($)=>{for(let q of $.items)if(q.kind==="line")Q.push(q.line);else if(q.kind==="layer")J(q.layer)};for(let $ of this.layers())J($);return Q}text(){return this.#Q}}function G4(Q,J,$,q,X){Q.writeId(1,J),Q.writeId(2,$.itemId),Q.writeId(3,$.leftId),Q.writeId(4,$.rightId),Q.writeInt(5,$.deletedLength);let{value:Y}=$;if(Y!==void 0)Q.subblock(6,()=>{Q.u8(q),X(Y)})}function PO(Q,J,$){if(Q.writeInt(1,J.tool),Q.writeInt(2,J.color),Q.writeDouble(3,J.thicknessScale),Q.writeFloat(4,J.startingLength),Q.subblock(5,()=>{for(let q of J.points)if(Q.f32(q.x),Q.f32(q.y),$===1)Q.f32(q.speed/4),Q.f32(q.direction*2*Math.PI/255),Q.f32(q.width/4),Q.f32(q.pressure/255);else Q.u16(q.speed),Q.u16(q.width),Q.u8(q.direction),Q.u8(q.pressure)}),J.timestampId!==void 0)Q.writeId(6,J.timestampId);if(J.moveId!==void 0)Q.writeId(7,J.moveId);if(J.colorRgba!==void 0)Q.writeInt(8,J.colorRgba)}function AO(Q,J){if(J.start!==void 0)Q.writeInt(2,J.start);if(Q.writeInt(3,J.length),Q.writeInt(4,J.color),Q.writeString(5,J.text),Q.subblock(6,()=>{Q.varuint(J.rectangles.length);for(let $ of J.rectangles)Q.f64($.x),Q.f64($.y),Q.f64($.w),Q.f64($.h)}),J.colorRgba!==void 0)Q.writeInt(10,J.colorRgba)}function RO(Q,J){Q.subblock(2,()=>{Q.subblock(1,()=>{Q.subblock(1,()=>{Q.varuint(J.items.length);for(let $ of J.items)Q.subblock(0,()=>{Q.writeId(2,$.itemId),Q.writeId(3,$.leftId),Q.writeId(4,$.rightId),Q.writeInt(5,$.deletedLength);let{value:q}=$;if(q!==""&&q!==void 0)Q.subblock(6,()=>{if(typeof q==="number")Q.varuint(0),Q.u8(1),Q.writeInt(2,q);else{let X=new TextEncoder().encode(q);Q.varuint(X.length),Q.u8(1),Q.bytes(X)}})})})}),Q.subblock(2,()=>{Q.subblock(1,()=>{Q.varuint(J.styles.size);for(let[$,q]of J.styles){let[X,Y]=$.split(":");Q.crdtId({authorId:Number(X),counter:Number(Y)}),Q.writeId(1,q.timestamp),Q.subblock(2,()=>{Q.u8(17),Q.u8(q.value)})}})})}),Q.subblock(3,()=>{Q.f64(J.posX),Q.f64(J.posY)}),Q.writeFloat(4,J.width)}function wO(Q){return pG(Uint8Array.fromHex(Q.replaceAll("-","")))}var IO={migrationInfo:0,sceneTree:1,treeNode:2,sceneGlyphItem:3,sceneGroupItem:4,sceneLineItem:5,sceneTextItem:6,rootText:7,sceneTombstone:8,authorIds:9,pageInfo:10,sceneInfo:13};function SO(Q,J){switch(J.type){case"migrationInfo":Q.writeId(1,J.migrationId),Q.writeBool(2,J.isDevice);break;case"sceneTree":Q.writeId(1,J.treeId),Q.writeId(2,J.nodeId),Q.writeBool(3,J.isUpdate),Q.subblock(4,()=>Q.writeId(1,J.parentId));break;case"treeNode":if(Q.writeId(1,J.nodeId),Q.writeLww(2,J.label,($)=>Q.writeString(2,$)),Q.writeLww(3,J.visible,($)=>Q.writeBool(2,$)),J.anchor!==void 0){let{id:$,type:q,threshold:X,originX:Y}=J.anchor;Q.writeLww(7,$,(W)=>Q.writeId(2,W)),Q.writeLww(8,q,(W)=>Q.writeByte(2,W)),Q.writeLww(9,X,(W)=>Q.writeFloat(2,W)),Q.writeLww(10,Y,(W)=>Q.writeFloat(2,W))}break;case"sceneGlyphItem":G4(Q,J.parentId,J.item,1,($)=>AO(Q,$));break;case"sceneGroupItem":G4(Q,J.parentId,J.item,2,($)=>Q.writeId(2,$));break;case"sceneLineItem":G4(Q,J.parentId,J.item,3,($)=>PO(Q,$,J.currentVersion));break;case"sceneTextItem":case"sceneTombstone":G4(Q,J.parentId,J.item,0,()=>{return});break;case"rootText":Q.writeId(1,J.blockId),RO(Q,J.text);break;case"authorIds":Q.varuint(J.authors.size);for(let[$,q]of J.authors)Q.subblock(0,()=>{let X=wO(q);Q.varuint(X.length),Q.bytes(X),Q.u16($)});break;case"pageInfo":if(Q.writeInt(1,J.loadsCount),Q.writeInt(2,J.mergesCount),Q.writeInt(3,J.textCharsCount),Q.writeInt(4,J.textLinesCount),J.typeFolioUseCount!==void 0)Q.writeInt(5,J.typeFolioUseCount);break;case"sceneInfo":if(Q.writeLww(1,J.currentLayer,($)=>Q.writeId(2,$)),J.backgroundVisible!==void 0)Q.writeLww(2,J.backgroundVisible,($)=>Q.writeBool(2,$));if(J.rootDocumentVisible!==void 0)Q.writeLww(3,J.rootDocumentVisible,($)=>Q.writeBool(2,$));if(J.paperSize!==void 0)Q.subblock(5,()=>{Q.u32(J.paperSize[0]),Q.u32(J.paperSize[1])});break;case"unknown":Q.bytes(J.data);break}}function dG(Q){let J=new cG,$=bG.padEnd(KJ," ");J.bytes(new TextEncoder().encode($));for(let q of Q.blocks){let X=J.length;J.u32(0),J.u8(q.reserved),J.u8(q.minVersion),J.u8(q.currentVersion),J.u8(q.type==="unknown"?q.blockType:IO[q.type]);let Y=J.length;if(SO(J,q),q.type!=="unknown")J.bytes(q.extraData);J.patchU32(X,q.type==="unknown"&&q.declaredLength!==void 0?q.declaredLength:J.length-Y)}return J.finish()}function iG(Q){return new lG(CO(Q))}function nG(Q){let J=Q.reduce((X,Y)=>X+Y.length,0),$=new Uint8Array(J),q=0;for(let X of Q)$.set(X,q),q+=X.length;return $}var V4=/^[0-9a-f]{64}$/,H4=2,j4="t",M4="b";function ZO(Q){if(Q.length<w1)throw Error("data is too short to be a reMarkable .lines file");let J=new TextDecoder().decode(Q.subarray(0,w1));if(!J.startsWith(U4))throw Error(`unrecognized .lines header: ${JSON.stringify(J)}`);let $=J.charAt(U4.length);if($==="6")return iG(Q);else if($==="3"||$==="5")return gG(Q,$==="3"?3:5);else throw Error(`unsupported .lines version '${$}'`)}function vO(Q){return Q.version===6?dG(Q):_G(Q)}var tG=Z.object({name:Z.string(),timestamp:Z.number()}).passthrough(),EO=Z.object({name:Z.string(),pageId:Z.string(),timestamp:Z.number()}).passthrough(),kO=Z.object({authors:Z.array(Z.string()).optional(),title:Z.string().optional(),publicationDate:Z.string().optional(),publisher:Z.string().optional()}).passthrough(),TO=Z.object({id:Z.string(),idx:Z.object({timestamp:Z.string(),value:Z.string()}).passthrough(),template:Z.object({timestamp:Z.string(),value:Z.string()}).passthrough().optional(),redir:Z.object({timestamp:Z.string(),value:Z.number().int()}).passthrough().optional(),scrollTime:Z.object({timestamp:Z.string(),value:Z.string().datetime({offset:!0})}).passthrough().optional(),verticalScroll:Z.object({timestamp:Z.string(),value:Z.number()}).passthrough().optional(),deleted:Z.object({timestamp:Z.string(),value:Z.number().int()}).passthrough().optional(),modifed:Z.string().optional()}).passthrough(),xO=Z.object({lastOpened:Z.object({timestamp:Z.string(),value:Z.string()}).passthrough(),original:Z.object({timestamp:Z.string(),value:Z.number().int()}).passthrough(),pages:Z.array(TO),uuids:Z.array(Z.object({first:Z.string(),second:Z.number().int().nonnegative()}).passthrough()).nullable()}).passthrough(),gO=Z.object({tags:Z.array(tG).optional()}).strict(),_O=Z.object({tags:Z.array(Z.string()).optional()}).strict(),fO={coverPageNumber:Z.number().int(),documentMetadata:kO,extraMetadata:Z.record(Z.string(),Z.string()),fileType:Z.enum(["epub","notebook","pdf"]),fontName:Z.string(),lineHeight:Z.number().int(),orientation:Z.enum(["portrait","landscape"]),pageCount:Z.number().int().nonnegative(),textAlignment:Z.enum(["","justify","left"]),textScale:Z.number()},yO={cPages:xO.optional(),customZoomCenterX:Z.number().optional(),customZoomCenterY:Z.number().optional(),customZoomOrientation:Z.enum(["portrait","landscape"]).optional(),customZoomPageHeight:Z.number().optional(),customZoomPageWidth:Z.number().optional(),customZoomScale:Z.number().optional(),dummyDocument:Z.boolean().optional(),formatVersion:Z.number().int().nonnegative().optional(),keyboardMetadata:Z.object({count:Z.number().int().nonnegative(),timestamp:Z.number()}).passthrough().optional(),lastOpenedPage:Z.number().int().optional(),margins:Z.number().int().nonnegative().optional(),originalPageCount:Z.number().int().optional(),pages:Z.array(Z.string()).nullable().optional(),pageTags:Z.array(EO).optional(),redirectionPageMap:Z.array(Z.number().int()).optional(),sizeInBytes:Z.string().optional(),transform:Z.object({m11:Z.number().optional(),m12:Z.number().optional(),m13:Z.number().optional(),m21:Z.number().optional(),m22:Z.number().optional(),m23:Z.number().optional(),m31:Z.number().optional(),m32:Z.number().optional(),m33:Z.number().optional()}).passthrough().optional(),viewBackgroundFilter:Z.enum(["off","fullpage"]).optional(),zoomMode:Z.enum(["bestFit","customFit","fitToHeight","fitToWidth"]).optional()},eG=Z.object({...fO,...yO}).passthrough(),hO=eG.extend({tags:Z.array(tG).optional()}).passthrough(),bO=eG.extend({tags:Z.array(Z.string()).optional()}).passthrough(),QB=Z.object({id:Z.string().optional(),name:Z.string(),author:Z.string(),iconData:Z.string(),categories:Z.array(Z.string()),labels:Z.array(Z.string()).optional(),orientation:Z.enum(["portrait","landscape"]),templateVersion:Z.string(),supportedScreens:Z.array(Z.enum(["rm2","rmPP"])).optional(),constants:Z.array(Z.record(Z.string(),Z.union([Z.number(),Z.string()]))).optional(),items:Z.array(Z.unknown()),formatVersion:Z.number().int().nonnegative().optional()}).passthrough(),mO=Z.union([gO,_O,QB,hO,bO]),oG=/\.highlights\/[^/]+\.json$/,uO=Z.object({highlights:Z.array(Z.array(Z.object({text:Z.string(),color:Z.number().int(),start:Z.number().int(),length:Z.number().int(),rects:Z.array(Z.object({x:Z.number(),y:Z.number(),width:Z.number(),height:Z.number()}).passthrough())}).passthrough()))}).passthrough(),rG=/\/[^/]+-metadata\.json$/,cO=Z.object({layers:Z.array(Z.object({name:Z.string()}).passthrough())}).passthrough(),JB=Z.object({lastModified:Z.string().optional(),parent:Z.string(),pinned:Z.boolean(),type:Z.enum(["DocumentType","CollectionType","TemplateType"]),visibleName:Z.string(),lastOpened:Z.string().optional(),lastOpenedPage:Z.number().int().optional(),createdTime:Z.string().optional(),deleted:Z.boolean().nullish(),metadatamodified:Z.boolean().nullish(),modified:Z.boolean().nullish(),synced:Z.boolean().nullish(),version:Z.number().int().nonnegative().optional(),new:Z.boolean().optional(),source:Z.string().optional()}).passthrough();function $B(Q){let J=JSON.parse(Q);return JB.parse(J)}var pO=Z.object({hash:Z.string(),generation:Z.number()}).passthrough(),lO=Z.object({hash:Z.string(),generation:Z.number(),schemaVersion:Z.number().int().nonnegative()}).passthrough(),dO=Z.object({docID:Z.string(),hash:Z.string()}).passthrough();async function VJ(Q){let J=await crypto.subtle.digest("SHA-256",Q);return new Uint8Array(J).toHex()}function aG(Q){let[J,$,q,X,Y]=Q.split(":");if(J===void 0||$===void 0||q===void 0||X===void 0||Y===void 0)throw Error(`line '${Q}' was not formatted correctly`);else if($==="80000000"||$==="0")return{hash:J,type:$==="0"?0:80000000,id:q,subfiles:parseInt(X,10),size:parseInt(Y,10)};else throw Error(`line '${Q}' was not formatted correctly`)}class HJ{#J;#Q;#$;#q;#Y;constructor(Q,J,$,q,X){this.#J=Q,this.#q=J,this.#Q=$,this.#$=q,this.#Y=X}async getRootHash(){let J=await(await this.#J("GET",`${this.#Q}/sync/v4/root`)).text(),$=JSON.parse(J),{hash:q,generation:X,schemaVersion:Y}=lO.parse($);if(Y!==3&&Y!==4)throw Error(`schema version ${Y} not supported`);else if(!Number.isSafeInteger(X))throw Error(`generation ${X} was not a safe integer; please file a bug report`);else return[q,X,Y]}async#W(Q,J){if(!V4.test(J))throw new Y2(J,V4,"hash was not a valid hash");let q=await(await this.#J("GET",`${this.#Q}/sync/v3/files/${J}`,{headers:{"rm-filename":Q}})).arrayBuffer();return new Uint8Array(q)}async getHash({id:Q,hash:J}){let $=this.#q.get(J);if($!=null)return $.slice();else{let q=await this.#W(Q,J);return this.#q.set(J,q.byteLength<=this.#Y?q.slice():null),q}}async getText(Q){return new TextDecoder().decode(await this.getHash(Q))}async getEntries({id:Q,hash:J}){let $=await this.getText({id:`${Q}.docSchema`,hash:J}),[q,...X]=$.slice(0,-1).split(`
|
|
5
|
-
|
|
1
|
+
var xb=Object.create;var{getPrototypeOf:$b,defineProperty:Fo,getOwnPropertyNames:wb}=Object;var kb=Object.prototype.hasOwnProperty;function Ib(e){return this[e]}var Sb,zb,pt=(e,r,n)=>{var o=e!=null&&typeof e==="object";if(o){var t=r?Sb??=new WeakMap:zb??=new WeakMap,i=t.get(e);if(i)return i}n=e!=null?xb($b(e)):{};let a=r||!e||!e.__esModule?Fo(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let s of wb(e))if(!kb.call(a,s))Fo(a,s,{get:Ib.bind(e,s),enumerable:!0})}if(o)t.set(e,a);return a};var G=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Pb=(e)=>e;function Tb(e,r){this[e]=Pb.bind(null,r)}var ut=(e,r)=>{for(var n in r)Fo(e,n,{get:r[n],enumerable:!0,configurable:!0,set:Tb.bind(r,n)})};var Bo=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Eb=Symbol.dispose||Symbol.for("Symbol.dispose"),Ob=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),$e=(e,r,n)=>{if(r!=null){if(typeof r!=="object"&&typeof r!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var o;if(n)o=r[Ob];if(o===void 0)o=r[Eb];if(typeof o!=="function")throw TypeError("Object not disposable");e.push([n,o,r])}else if(n)e.push([n]);return r},Le=(e,r,n)=>{var o=typeof SuppressedError==="function"?SuppressedError:function(a,s,u,c){return c=Error(u),c.name="SuppressedError",c.error=a,c.suppressed=s,c},t=(a)=>r=n?new o(a,r,"An error was suppressed during disposal"):(n=!0,a),i=(a)=>{while(a=e.pop())try{var s=a[1]&&a[1].call(a[2]);if(a[0])return Promise.resolve(s).then(i,(u)=>(t(u),i()))}catch(u){t(u)}if(n)throw r};return i()};var im=G(function(nm,Mo){/*!
|
|
2
|
+
|
|
3
|
+
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
4
|
+
<http://stuartk.com/jszip>
|
|
5
|
+
|
|
6
|
+
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
7
|
+
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
8
|
+
|
|
9
|
+
JSZip uses the library pako released under the MIT license :
|
|
10
|
+
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
11
|
+
*/(function(e){if(typeof nm=="object"&&typeof Mo<"u")Mo.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=e()})(function(){return function e(r,n,o){function t(s,u){if(!n[s]){if(!r[s]){var c=Bo;if(!u&&c)return c(s,!0);if(i)return i(s,!0);var d=Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var l=n[s]={exports:{}};r[s][0].call(l.exports,function(h){var f=r[s][1][h];return t(f||h)},l,l.exports,e,r,n,o)}return n[s].exports}for(var i=Bo,a=0;a<o.length;a++)t(o[a]);return t}({1:[function(e,r,n){var o=e("./utils"),t=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(a){for(var s,u,c,d,l,h,f,g=[],v=0,y=a.length,w=y,P=o.getTypeOf(a)!=="string";v<a.length;)w=y-v,c=P?(s=a[v++],u=v<y?a[v++]:0,v<y?a[v++]:0):(s=a.charCodeAt(v++),u=v<y?a.charCodeAt(v++):0,v<y?a.charCodeAt(v++):0),d=s>>2,l=(3&s)<<4|u>>4,h=1<w?(15&u)<<2|c>>6:64,f=2<w?63&c:64,g.push(i.charAt(d)+i.charAt(l)+i.charAt(h)+i.charAt(f));return g.join("")},n.decode=function(a){var s,u,c,d,l,h,f=0,g=0,v="data:";if(a.substr(0,v.length)===v)throw Error("Invalid base64 input, it looks like a data url.");var y,w=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===i.charAt(64)&&w--,a.charAt(a.length-2)===i.charAt(64)&&w--,w%1!=0)throw Error("Invalid base64 input, bad content length.");for(y=t.uint8array?new Uint8Array(0|w):Array(0|w);f<a.length;)s=i.indexOf(a.charAt(f++))<<2|(d=i.indexOf(a.charAt(f++)))>>4,u=(15&d)<<4|(l=i.indexOf(a.charAt(f++)))>>2,c=(3&l)<<6|(h=i.indexOf(a.charAt(f++))),y[g++]=s,l!==64&&(y[g++]=u),h!==64&&(y[g++]=c);return y}},{"./support":30,"./utils":32}],2:[function(e,r,n){var o=e("./external"),t=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(u,c,d,l,h){this.compressedSize=u,this.uncompressedSize=c,this.crc32=d,this.compression=l,this.compressedContent=h}s.prototype={getContentWorker:function(){var u=new t(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),c=this;return u.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new t(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(u,c,d){return u.pipe(new i).pipe(new a("uncompressedSize")).pipe(c.compressWorker(d)).pipe(new a("compressedSize")).withStreamInfo("compression",c)},r.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,r,n){var o=e("./stream/GenericWorker");n.STORE={magic:"\x00\x00",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,r,n){var o=e("./utils"),t=function(){for(var i,a=[],s=0;s<256;s++){i=s;for(var u=0;u<8;u++)i=1&i?3988292384^i>>>1:i>>>1;a[s]=i}return a}();r.exports=function(i,a){return i!==void 0&&i.length?o.getTypeOf(i)!=="string"?function(s,u,c,d){var l=t,h=d+c;s^=-1;for(var f=d;f<h;f++)s=s>>>8^l[255&(s^u[f])];return-1^s}(0|a,i,i.length,0):function(s,u,c,d){var l=t,h=d+c;s^=-1;for(var f=d;f<h;f++)s=s>>>8^l[255&(s^u.charCodeAt(f))];return-1^s}(0|a,i,i.length,0):0}},{"./utils":32}],5:[function(e,r,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,r,n){var o=null;o=typeof Promise<"u"?Promise:e("lie"),r.exports={Promise:o}},{lie:37}],7:[function(e,r,n){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",t=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),s=o?"uint8array":"array";function u(c,d){a.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=d,this.meta={}}n.magic="\b\x00",i.inherits(u,a),u.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(s,c.data),!1)},u.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new t[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(d){c.push({data:d,meta:c.meta})}},n.compressWorker=function(c){return new u("Deflate",c)},n.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,r,n){function o(l,h){var f,g="";for(f=0;f<h;f++)g+=String.fromCharCode(255&l),l>>>=8;return g}function t(l,h,f,g,v,y){var w,P,k=l.file,E=l.compression,U=y!==s.utf8encode,B=i.transformTo("string",y(k.name)),I=i.transformTo("string",s.utf8encode(k.name)),V=k.comment,L=i.transformTo("string",y(V)),x=i.transformTo("string",s.utf8encode(V)),O=I.length!==k.name.length,p=x.length!==V.length,N="",ue="",K="",ce=k.dir,H=k.date,ae={crc32:0,compressedSize:0,uncompressedSize:0};h&&!f||(ae.crc32=l.crc32,ae.compressedSize=l.compressedSize,ae.uncompressedSize=l.uncompressedSize);var C=0;h&&(C|=8),U||!O&&!p||(C|=2048);var R=0,ie=0;ce&&(R|=16),v==="UNIX"?(ie=798,R|=function(ee,_e){var ze=ee;return ee||(ze=_e?16893:33204),(65535&ze)<<16}(k.unixPermissions,ce)):(ie=20,R|=function(ee){return 63&(ee||0)}(k.dosPermissions)),w=H.getUTCHours(),w<<=6,w|=H.getUTCMinutes(),w<<=5,w|=H.getUTCSeconds()/2,P=H.getUTCFullYear()-1980,P<<=4,P|=H.getUTCMonth()+1,P<<=5,P|=H.getUTCDate(),O&&(ue=o(1,1)+o(u(B),4)+I,N+="up"+o(ue.length,2)+ue),p&&(K=o(1,1)+o(u(L),4)+x,N+="uc"+o(K.length,2)+K);var re="";return re+=`
|
|
12
|
+
\x00`,re+=o(C,2),re+=E.magic,re+=o(w,2),re+=o(P,2),re+=o(ae.crc32,4),re+=o(ae.compressedSize,4),re+=o(ae.uncompressedSize,4),re+=o(B.length,2),re+=o(N.length,2),{fileRecord:c.LOCAL_FILE_HEADER+re+B+N,dirRecord:c.CENTRAL_FILE_HEADER+o(ie,2)+re+o(L.length,2)+"\x00\x00\x00\x00"+o(R,4)+o(g,4)+B+N+L}}var i=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),u=e("../crc32"),c=e("../signature");function d(l,h,f,g){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=f,this.encodeFileName=g,this.streamFiles=l,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(d,a),d.prototype.push=function(l){var h=l.meta.percent||0,f=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(l):(this.bytesWritten+=l.data.length,a.prototype.push.call(this,{data:l.data,meta:{currentFile:this.currentFile,percent:f?(h+100*(f-g-1))/f:100}}))},d.prototype.openedSource=function(l){this.currentSourceOffset=this.bytesWritten,this.currentFile=l.file.name;var h=this.streamFiles&&!l.file.dir;if(h){var f=t(l,h,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:f.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(l){this.accumulate=!1;var h=this.streamFiles&&!l.file.dir,f=t(l,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(f.dirRecord),h)this.push({data:function(g){return c.DATA_DESCRIPTOR+o(g.crc32,4)+o(g.compressedSize,4)+o(g.uncompressedSize,4)}(l),meta:{percent:100}});else for(this.push({data:f.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var l=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var f=this.bytesWritten-l,g=function(v,y,w,P,k){var E=i.transformTo("string",k(P));return c.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+o(v,2)+o(v,2)+o(y,4)+o(w,4)+o(E.length,2)+E}(this.dirRecords.length,f,l,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(l){this._sources.push(l);var h=this;return l.on("data",function(f){h.processChunk(f)}),l.on("end",function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()}),l.on("error",function(f){h.error(f)}),this},d.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(l){var h=this._sources;if(!a.prototype.error.call(this,l))return!1;for(var f=0;f<h.length;f++)try{h[f].error(l)}catch(g){}return!0},d.prototype.lock=function(){a.prototype.lock.call(this);for(var l=this._sources,h=0;h<l.length;h++)l[h].lock()},r.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,r,n){var o=e("../compressions"),t=e("./ZipFileWorker");n.generateWorker=function(i,a,s){var u=new t(a.streamFiles,s,a.platform,a.encodeFileName),c=0;try{i.forEach(function(d,l){c++;var h=function(y,w){var P=y||w,k=o[P];if(!k)throw Error(P+" is not a valid compression method !");return k}(l.options.compression,a.compression),f=l.options.compressionOptions||a.compressionOptions||{},g=l.dir,v=l.date;l._compressWorker(h,f).withStreamInfo("file",{name:d,dir:g,date:v,comment:l.comment||"",unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions}).pipe(u)}),u.entriesCount=c}catch(d){u.error(d)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,r,n){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new o;for(var i in this)typeof this[i]!="function"&&(t[i]=this[i]);return t}}(o.prototype=e("./object")).loadAsync=e("./load"),o.support=e("./support"),o.defaults=e("./defaults"),o.version="3.10.1",o.loadAsync=function(t,i){return new o().loadAsync(t,i)},o.external=e("./external"),r.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,r,n){var o=e("./utils"),t=e("./external"),i=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),u=e("./nodejsUtils");function c(d){return new t.Promise(function(l,h){var f=d.decompressed.getContentWorker().pipe(new s);f.on("error",function(g){h(g)}).on("end",function(){f.streamInfo.crc32!==d.decompressed.crc32?h(Error("Corrupted zip : CRC32 mismatch")):l()}).resume()})}r.exports=function(d,l){var h=this;return l=o.extend(l||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),u.isNode&&u.isStream(d)?t.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",d,!0,l.optimizedBinaryString,l.base64).then(function(f){var g=new a(l);return g.load(f),g}).then(function(f){var g=[t.Promise.resolve(f)],v=f.files;if(l.checkCRC32)for(var y=0;y<v.length;y++)g.push(c(v[y]));return t.Promise.all(g)}).then(function(f){for(var g=f.shift(),v=g.files,y=0;y<v.length;y++){var w=v[y],P=w.fileNameStr,k=o.resolve(w.fileNameStr);h.file(k,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:l.createFolders}),w.dir||(h.file(k).unsafeOriginalName=P)}return g.zipComment.length&&(h.comment=g.zipComment),h})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,r,n){var o=e("../utils"),t=e("../stream/GenericWorker");function i(a,s){t.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(s)}o.inherits(i,t),i.prototype._bindStream=function(a){var s=this;(this._stream=a).pause(),a.on("data",function(u){s.push({data:u,meta:{percent:0}})}).on("error",function(u){s.isPaused?this.generatedError=u:s.error(u)}).on("end",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},i.prototype.pause=function(){return!!t.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,r,n){var o=e("readable-stream").Readable;function t(i,a,s){o.call(this,a),this._helper=i;var u=this;i.on("data",function(c,d){u.push(c)||u._helper.pause(),s&&s(d)}).on("error",function(c){u.emit("error",c)}).on("end",function(){u.push(null)})}e("../utils").inherits(t,o),t.prototype._read=function(){this._helper.resume()},r.exports=t},{"../utils":32,"readable-stream":16}],14:[function(e,r,n){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,t);if(typeof o=="number")throw Error('The "data" argument must not be a number');return new Buffer(o,t)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var t=new Buffer(o);return t.fill(0),t},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(e,r,n){function o(k,E,U){var B,I=i.getTypeOf(E),V=i.extend(U||{},u);V.date=V.date||new Date,V.compression!==null&&(V.compression=V.compression.toUpperCase()),typeof V.unixPermissions=="string"&&(V.unixPermissions=parseInt(V.unixPermissions,8)),V.unixPermissions&&16384&V.unixPermissions&&(V.dir=!0),V.dosPermissions&&16&V.dosPermissions&&(V.dir=!0),V.dir&&(k=v(k)),V.createFolders&&(B=g(k))&&y.call(this,B,!0);var L=I==="string"&&V.binary===!1&&V.base64===!1;U&&U.binary!==void 0||(V.binary=!L),(E instanceof c&&E.uncompressedSize===0||V.dir||!E||E.length===0)&&(V.base64=!1,V.binary=!0,E="",V.compression="STORE",I="string");var x=null;x=E instanceof c||E instanceof a?E:h.isNode&&h.isStream(E)?new f(k,E):i.prepareContent(k,E,V.binary,V.optimizedBinaryString,V.base64);var O=new d(k,x,V);this.files[k]=O}var t=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),u=e("./defaults"),c=e("./compressedObject"),d=e("./zipObject"),l=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),g=function(k){k.slice(-1)==="/"&&(k=k.substring(0,k.length-1));var E=k.lastIndexOf("/");return 0<E?k.substring(0,E):""},v=function(k){return k.slice(-1)!=="/"&&(k+="/"),k},y=function(k,E){return E=E!==void 0?E:u.createFolders,k=v(k),this.files[k]||o.call(this,k,null,{dir:!0,createFolders:E}),this.files[k]};function w(k){return Object.prototype.toString.call(k)==="[object RegExp]"}var P={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(k){var E,U,B;for(E in this.files)B=this.files[E],(U=E.slice(this.root.length,E.length))&&E.slice(0,this.root.length)===this.root&&k(U,B)},filter:function(k){var E=[];return this.forEach(function(U,B){k(U,B)&&E.push(B)}),E},file:function(k,E,U){if(arguments.length!==1)return k=this.root+k,o.call(this,k,E,U),this;if(w(k)){var B=k;return this.filter(function(V,L){return!L.dir&&B.test(V)})}var I=this.files[this.root+k];return I&&!I.dir?I:null},folder:function(k){if(!k)return this;if(w(k))return this.filter(function(I,V){return V.dir&&k.test(I)});var E=this.root+k,U=y.call(this,E),B=this.clone();return B.root=U.name,B},remove:function(k){k=this.root+k;var E=this.files[k];if(E||(k.slice(-1)!=="/"&&(k+="/"),E=this.files[k]),E&&!E.dir)delete this.files[k];else for(var U=this.filter(function(I,V){return V.name.slice(0,k.length)===k}),B=0;B<U.length;B++)delete this.files[U[B].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(k){var E,U={};try{if((U=i.extend(k||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:t.utf8encode})).type=U.type.toLowerCase(),U.compression=U.compression.toUpperCase(),U.type==="binarystring"&&(U.type="string"),!U.type)throw Error("No output type specified.");i.checkSupport(U.type),U.platform!=="darwin"&&U.platform!=="freebsd"&&U.platform!=="linux"&&U.platform!=="sunos"||(U.platform="UNIX"),U.platform==="win32"&&(U.platform="DOS");var B=U.comment||this.comment||"";E=l.generateWorker(this,U,B)}catch(I){(E=new a("error")).error(I)}return new s(E,U.type||"string",U.mimeType)},generateAsync:function(k,E){return this.generateInternalStream(k).accumulate(E)},generateNodeStream:function(k,E){return(k=k||{}).type||(k.type="nodebuffer"),this.generateInternalStream(k).toNodejsStream(E)}};r.exports=P},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,r,n){r.exports=e("stream")},{stream:void 0}],17:[function(e,r,n){var o=e("./DataReader");function t(i){o.call(this,i);for(var a=0;a<this.data.length;a++)i[a]=255&i[a]}e("../utils").inherits(t,o),t.prototype.byteAt=function(i){return this.data[this.zero+i]},t.prototype.lastIndexOfSignature=function(i){for(var a=i.charCodeAt(0),s=i.charCodeAt(1),u=i.charCodeAt(2),c=i.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===a&&this.data[d+1]===s&&this.data[d+2]===u&&this.data[d+3]===c)return d-this.zero;return-1},t.prototype.readAndCheckSignature=function(i){var a=i.charCodeAt(0),s=i.charCodeAt(1),u=i.charCodeAt(2),c=i.charCodeAt(3),d=this.readData(4);return a===d[0]&&s===d[1]&&u===d[2]&&c===d[3]},t.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,a},r.exports=t},{"../utils":32,"./DataReader":18}],18:[function(e,r,n){var o=e("../utils");function t(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}t.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(){},readInt:function(i){var a,s=0;for(this.checkOffset(i),a=this.index+i-1;a>=this.index;a--)s=(s<<8)+this.byteAt(a);return this.index+=i,s},readString:function(i){return o.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},r.exports=t},{"../utils":32}],19:[function(e,r,n){var o=e("./Uint8ArrayReader");function t(i){o.call(this,i)}e("../utils").inherits(t,o),t.prototype.readData=function(i){this.checkOffset(i);var a=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,a},r.exports=t},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,r,n){var o=e("./DataReader");function t(i){o.call(this,i)}e("../utils").inherits(t,o),t.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},t.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},t.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},t.prototype.readData=function(i){this.checkOffset(i);var a=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,a},r.exports=t},{"../utils":32,"./DataReader":18}],21:[function(e,r,n){var o=e("./ArrayReader");function t(i){o.call(this,i)}e("../utils").inherits(t,o),t.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,a},r.exports=t},{"../utils":32,"./ArrayReader":17}],22:[function(e,r,n){var o=e("../utils"),t=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),u=e("./Uint8ArrayReader");r.exports=function(c){var d=o.getTypeOf(c);return o.checkSupport(d),d!=="string"||t.uint8array?d==="nodebuffer"?new s(c):t.uint8array?new u(o.transformTo("uint8array",c)):new i(o.transformTo("array",c)):new a(c)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,r,n){n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,r,n){var o=e("./GenericWorker"),t=e("../utils");function i(a){o.call(this,"ConvertWorker to "+a),this.destType=a}t.inherits(i,o),i.prototype.processChunk=function(a){this.push({data:t.transformTo(this.destType,a.data),meta:a.meta})},r.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,r,n){var o=e("./GenericWorker"),t=e("../crc32");function i(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,o),i.prototype.processChunk=function(a){this.streamInfo.crc32=t(a.data,this.streamInfo.crc32||0),this.push(a)},r.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,r,n){var o=e("../utils"),t=e("./GenericWorker");function i(a){t.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}o.inherits(i,t),i.prototype.processChunk=function(a){if(a){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+a.data.length}t.prototype.processChunk.call(this,a)},r.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,r,n){var o=e("../utils"),t=e("./GenericWorker");function i(a){t.call(this,"DataWorker");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(u){s.dataIsReady=!0,s.data=u,s.max=u&&u.length||0,s.type=o.getTypeOf(u),s.isPaused||s._tickAndRepeat()},function(u){s.error(u)})}o.inherits(i,t),i.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,s);break;case"uint8array":a=this.data.subarray(this.index,s);break;case"array":case"nodebuffer":a=this.data.slice(this.index,s)}return this.index=s,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,r,n){function o(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,i){return this._listeners[t].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,i){if(this._listeners[t])for(var a=0;a<this._listeners[t].length;a++)this._listeners[t][a].call(this,i)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var i=this;return t.on("data",function(a){i.processChunk(a)}),t.on("end",function(){i.end()}),t.on("error",function(a){i.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,i){return this.extraStreamInfo[t]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},r.exports=o},{}],29:[function(e,r,n){var o=e("../utils"),t=e("./ConvertWorker"),i=e("./GenericWorker"),a=e("../base64"),s=e("../support"),u=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(h){}function d(h,f){return new u.Promise(function(g,v){var y=[],w=h._internalType,P=h._outputType,k=h._mimeType;h.on("data",function(E,U){y.push(E),f&&f(U)}).on("error",function(E){y=[],v(E)}).on("end",function(){try{var E=function(U,B,I){switch(U){case"blob":return o.newBlob(o.transformTo("arraybuffer",B),I);case"base64":return a.encode(B);default:return o.transformTo(U,B)}}(P,function(U,B){var I,V=0,L=null,x=0;for(I=0;I<B.length;I++)x+=B[I].length;switch(U){case"string":return B.join("");case"array":return Array.prototype.concat.apply([],B);case"uint8array":for(L=new Uint8Array(x),I=0;I<B.length;I++)L.set(B[I],V),V+=B[I].length;return L;case"nodebuffer":return Buffer.concat(B);default:throw Error("concat : unsupported type '"+U+"'")}}(w,y),k);g(E)}catch(U){v(U)}y=[]}).resume()})}function l(h,f,g){var v=f;switch(f){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=f,this._mimeType=g,o.checkSupport(v),this._worker=h.pipe(new t(v)),h.lock()}catch(y){this._worker=new i("error"),this._worker.error(y)}}l.prototype={accumulate:function(h){return d(this,h)},on:function(h,f){var g=this;return h==="data"?this._worker.on(h,function(v){f.call(g,v.data,v.meta)}):this._worker.on(h,function(){o.delay(f,arguments,g)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:this._outputType!=="nodebuffer"},h)}},r.exports=l},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,r,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",n.nodebuffer=typeof Buffer<"u",n.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")n.blob=!1;else{var o=new ArrayBuffer(0);try{n.blob=new Blob([o],{type:"application/zip"}).size===0}catch(i){try{var t=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);t.append(o),n.blob=t.getBlob("application/zip").size===0}catch(a){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(i){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,r,n){for(var o=e("./utils"),t=e("./support"),i=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=Array(256),u=0;u<256;u++)s[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;s[254]=s[254]=1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function d(){a.call(this,"utf-8 encode")}n.utf8encode=function(l){return t.nodebuffer?i.newBufferFrom(l,"utf-8"):function(h){var f,g,v,y,w,P=h.length,k=0;for(y=0;y<P;y++)(64512&(g=h.charCodeAt(y)))==55296&&y+1<P&&(64512&(v=h.charCodeAt(y+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),y++),k+=g<128?1:g<2048?2:g<65536?3:4;for(f=t.uint8array?new Uint8Array(k):Array(k),y=w=0;w<k;y++)(64512&(g=h.charCodeAt(y)))==55296&&y+1<P&&(64512&(v=h.charCodeAt(y+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),y++),g<128?f[w++]=g:(g<2048?f[w++]=192|g>>>6:(g<65536?f[w++]=224|g>>>12:(f[w++]=240|g>>>18,f[w++]=128|g>>>12&63),f[w++]=128|g>>>6&63),f[w++]=128|63&g);return f}(l)},n.utf8decode=function(l){return t.nodebuffer?o.transformTo("nodebuffer",l).toString("utf-8"):function(h){var f,g,v,y,w=h.length,P=Array(2*w);for(f=g=0;f<w;)if((v=h[f++])<128)P[g++]=v;else if(4<(y=s[v]))P[g++]=65533,f+=y-1;else{for(v&=y===2?31:y===3?15:7;1<y&&f<w;)v=v<<6|63&h[f++],y--;1<y?P[g++]=65533:v<65536?P[g++]=v:(v-=65536,P[g++]=55296|v>>10&1023,P[g++]=56320|1023&v)}return P.length!==g&&(P.subarray?P=P.subarray(0,g):P.length=g),o.applyFromCharCode(P)}(l=o.transformTo(t.uint8array?"uint8array":"array",l))},o.inherits(c,a),c.prototype.processChunk=function(l){var h=o.transformTo(t.uint8array?"uint8array":"array",l.data);if(this.leftOver&&this.leftOver.length){if(t.uint8array){var f=h;(h=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),h.set(f,this.leftOver.length)}else h=this.leftOver.concat(h);this.leftOver=null}var g=function(y,w){var P;for((w=w||y.length)>y.length&&(w=y.length),P=w-1;0<=P&&(192&y[P])==128;)P--;return P<0?w:P===0?w:P+s[y[P]]>w?P:w}(h),v=h;g!==h.length&&(t.uint8array?(v=h.subarray(0,g),this.leftOver=h.subarray(g,h.length)):(v=h.slice(0,g),this.leftOver=h.slice(g,h.length))),this.push({data:n.utf8decode(v),meta:l.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,o.inherits(d,a),d.prototype.processChunk=function(l){this.push({data:n.utf8encode(l.data),meta:l.meta})},n.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,n){var o=e("./support"),t=e("./base64"),i=e("./nodejsUtils"),a=e("./external");function s(f){return f}function u(f,g){for(var v=0;v<f.length;++v)g[v]=255&f.charCodeAt(v);return g}e("setimmediate"),n.newBlob=function(f,g){n.checkSupport("blob");try{return new Blob([f],{type:g})}catch(y){try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(f),v.getBlob(g)}catch(w){throw Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(f,g,v){var y=[],w=0,P=f.length;if(P<=v)return String.fromCharCode.apply(null,f);for(;w<P;)g==="array"||g==="nodebuffer"?y.push(String.fromCharCode.apply(null,f.slice(w,Math.min(w+v,P)))):y.push(String.fromCharCode.apply(null,f.subarray(w,Math.min(w+v,P)))),w+=v;return y.join("")},stringifyByChar:function(f){for(var g="",v=0;v<f.length;v++)g+=String.fromCharCode(f[v]);return g},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(f){return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch(f){return!1}}()}};function d(f){var g=65536,v=n.getTypeOf(f),y=!0;if(v==="uint8array"?y=c.applyCanBeUsed.uint8array:v==="nodebuffer"&&(y=c.applyCanBeUsed.nodebuffer),y)for(;1<g;)try{return c.stringifyByChunk(f,v,g)}catch(w){g=Math.floor(g/2)}return c.stringifyByChar(f)}function l(f,g){for(var v=0;v<f.length;v++)g[v]=f[v];return g}n.applyFromCharCode=d;var h={};h.string={string:s,array:function(f){return u(f,Array(f.length))},arraybuffer:function(f){return h.string.uint8array(f).buffer},uint8array:function(f){return u(f,new Uint8Array(f.length))},nodebuffer:function(f){return u(f,i.allocBuffer(f.length))}},h.array={string:d,array:s,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return i.newBufferFrom(f)}},h.arraybuffer={string:function(f){return d(new Uint8Array(f))},array:function(f){return l(new Uint8Array(f),Array(f.byteLength))},arraybuffer:s,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return i.newBufferFrom(new Uint8Array(f))}},h.uint8array={string:d,array:function(f){return l(f,Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:s,nodebuffer:function(f){return i.newBufferFrom(f)}},h.nodebuffer={string:d,array:function(f){return l(f,Array(f.length))},arraybuffer:function(f){return h.nodebuffer.uint8array(f).buffer},uint8array:function(f){return l(f,new Uint8Array(f.length))},nodebuffer:s},n.transformTo=function(f,g){if(g=g||"",!f)return g;n.checkSupport(f);var v=n.getTypeOf(g);return h[v][f](g)},n.resolve=function(f){for(var g=f.split("/"),v=[],y=0;y<g.length;y++){var w=g[y];w==="."||w===""&&y!==0&&y!==g.length-1||(w===".."?v.pop():v.push(w))}return v.join("/")},n.getTypeOf=function(f){return typeof f=="string"?"string":Object.prototype.toString.call(f)==="[object Array]"?"array":o.nodebuffer&&i.isBuffer(f)?"nodebuffer":o.uint8array&&f instanceof Uint8Array?"uint8array":o.arraybuffer&&f instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(f){if(!o[f.toLowerCase()])throw Error(f+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(f){var g,v,y="";for(v=0;v<(f||"").length;v++)y+="\\x"+((g=f.charCodeAt(v))<16?"0":"")+g.toString(16).toUpperCase();return y},n.delay=function(f,g,v){setImmediate(function(){f.apply(v||null,g||[])})},n.inherits=function(f,g){function v(){}v.prototype=g.prototype,f.prototype=new v},n.extend=function(){var f,g,v={};for(f=0;f<arguments.length;f++)for(g in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],g)&&v[g]===void 0&&(v[g]=arguments[f][g]);return v},n.prepareContent=function(f,g,v,y,w){return a.Promise.resolve(g).then(function(P){return o.blob&&(P instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(P))!==-1)&&typeof FileReader<"u"?new a.Promise(function(k,E){var U=new FileReader;U.onload=function(B){k(B.target.result)},U.onerror=function(B){E(B.target.error)},U.readAsArrayBuffer(P)}):P}).then(function(P){var k=n.getTypeOf(P);return k?(k==="arraybuffer"?P=n.transformTo("uint8array",P):k==="string"&&(w?P=t.decode(P):v&&y!==!0&&(P=function(E){return u(E,o.uint8array?new Uint8Array(E.length):Array(E.length))}(P))),P):a.Promise.reject(Error("Can't read the data of '"+f+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,r,n){var o=e("./reader/readerFor"),t=e("./utils"),i=e("./signature"),a=e("./zipEntry"),s=e("./support");function u(c){this.files=[],this.loadOptions=c}u.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var d=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+t.pretty(d)+", expected "+t.pretty(c)+")")}},isSignature:function(c,d){var l=this.reader.index;this.reader.setIndex(c);var h=this.reader.readString(4)===d;return this.reader.setIndex(l),h},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),d=s.uint8array?"uint8array":"array",l=t.transformTo(d,c);this.zipComment=this.loadOptions.decodeFileName(l)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,d,l,h=this.zip64EndOfCentralSize-44;0<h;)c=this.reader.readInt(2),d=this.reader.readInt(4),l=this.reader.readData(d),this.zip64ExtensibleData[c]={id:c,length:d,value:l}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var c,d;for(c=0;c<this.files.length;c++)d=this.files[c],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(c=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(c<0)throw!this.isSignature(0,i.LOCAL_FILE_HEADER)?Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(c);var d=c;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===t.MAX_VALUE_16BITS||this.diskWithCentralDirStart===t.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===t.MAX_VALUE_16BITS||this.centralDirRecords===t.MAX_VALUE_16BITS||this.centralDirSize===t.MAX_VALUE_32BITS||this.centralDirOffset===t.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var l=this.centralDirOffset+this.centralDirSize;this.zip64&&(l+=20,l+=12+this.zip64EndOfCentralSize);var h=d-l;if(0<h)this.isSignature(d,i.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(c){this.reader=o(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,r,n){var o=e("./reader/readerFor"),t=e("./utils"),i=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),u=e("./compressions"),c=e("./support");function d(l,h){this.options=l,this.loadOptions=h}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(l){var h,f;if(l.skip(22),this.fileNameLength=l.readInt(2),f=l.readInt(2),this.fileName=l.readData(this.fileNameLength),l.skip(f),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((h=function(g){for(var v in u)if(Object.prototype.hasOwnProperty.call(u,v)&&u[v].magic===g)return u[v];return null}(this.compressionMethod))===null)throw Error("Corrupted zip : compression "+t.pretty(this.compressionMethod)+" unknown (inner file : "+t.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,h,l.readData(this.compressedSize))},readCentralPart:function(l){this.versionMadeBy=l.readInt(2),l.skip(2),this.bitFlag=l.readInt(2),this.compressionMethod=l.readString(2),this.date=l.readDate(),this.crc32=l.readInt(4),this.compressedSize=l.readInt(4),this.uncompressedSize=l.readInt(4);var h=l.readInt(2);if(this.extraFieldsLength=l.readInt(2),this.fileCommentLength=l.readInt(2),this.diskNumberStart=l.readInt(2),this.internalFileAttributes=l.readInt(2),this.externalFileAttributes=l.readInt(4),this.localHeaderOffset=l.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");l.skip(h),this.readExtraFields(l),this.parseZIP64ExtraField(l),this.fileComment=l.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var l=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),l==0&&(this.dosPermissions=63&this.externalFileAttributes),l==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var l=o(this.extraFields[1].value);this.uncompressedSize===t.MAX_VALUE_32BITS&&(this.uncompressedSize=l.readInt(8)),this.compressedSize===t.MAX_VALUE_32BITS&&(this.compressedSize=l.readInt(8)),this.localHeaderOffset===t.MAX_VALUE_32BITS&&(this.localHeaderOffset=l.readInt(8)),this.diskNumberStart===t.MAX_VALUE_32BITS&&(this.diskNumberStart=l.readInt(4))}},readExtraFields:function(l){var h,f,g,v=l.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});l.index+4<v;)h=l.readInt(2),f=l.readInt(2),g=l.readData(f),this.extraFields[h]={id:h,length:f,value:g};l.setIndex(v)},handleUTF8:function(){var l=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var f=t.transformTo(l,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(f)}var g=this.findExtraFieldUnicodeComment();if(g!==null)this.fileCommentStr=g;else{var v=t.transformTo(l,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var l=this.extraFields[28789];if(l){var h=o(l.value);return h.readInt(1)!==1?null:a(this.fileName)!==h.readInt(4)?null:s.utf8decode(h.readData(l.length-5))}return null},findExtraFieldUnicodeComment:function(){var l=this.extraFields[25461];if(l){var h=o(l.value);return h.readInt(1)!==1?null:a(this.fileComment)!==h.readInt(4)?null:s.utf8decode(h.readData(l.length-5))}return null}},r.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,r,n){function o(h,f,g){this.name=h,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=f,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var t=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),u=e("./stream/GenericWorker");o.prototype={internalStream:function(h){var f=null,g="string";try{if(!h)throw Error("No output type specified.");var v=(g=h.toLowerCase())==="string"||g==="text";g!=="binarystring"&&g!=="text"||(g="string"),f=this._decompressWorker();var y=!this._dataBinary;y&&!v&&(f=f.pipe(new a.Utf8EncodeWorker)),!y&&v&&(f=f.pipe(new a.Utf8DecodeWorker))}catch(w){(f=new u("error")).error(w)}return new t(f,g,"")},async:function(h,f){return this.internalStream(h).accumulate(f)},nodeStream:function(h,f){return this.internalStream(h||"nodebuffer").toNodejsStream(f)},_compressWorker:function(h,f){if(this._data instanceof s&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var g=this._decompressWorker();return this._dataBinary||(g=g.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(g,h,f)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof u?this._data:new i(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l<c.length;l++)o.prototype[c[l]]=d;r.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,r,n){(function(o){var t,i,a=o.MutationObserver||o.WebKitMutationObserver;if(a){var s=0,u=new a(h),c=o.document.createTextNode("");u.observe(c,{characterData:!0}),t=function(){c.data=s=++s%2}}else if(o.setImmediate||o.MessageChannel===void 0)t="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var f=o.document.createElement("script");f.onreadystatechange=function(){h(),f.onreadystatechange=null,f.parentNode.removeChild(f),f=null},o.document.documentElement.appendChild(f)}:function(){setTimeout(h,0)};else{var d=new o.MessageChannel;d.port1.onmessage=h,t=function(){d.port2.postMessage(0)}}var l=[];function h(){var f,g;i=!0;for(var v=l.length;v;){for(g=l,l=[],f=-1;++f<v;)g[f]();v=l.length}i=!1}r.exports=function(f){l.push(f)!==1||i||t()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(e,r,n){var o=e("immediate");function t(){}var i={},a=["REJECTED"],s=["FULFILLED"],u=["PENDING"];function c(v){if(typeof v!="function")throw TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,v!==t&&f(this,v)}function d(v,y,w){this.promise=v,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function l(v,y,w){o(function(){var P;try{P=y(w)}catch(k){return i.reject(v,k)}P===v?i.reject(v,TypeError("Cannot resolve promise with itself")):i.resolve(v,P)})}function h(v){var y=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof y=="function")return function(){y.apply(v,arguments)}}function f(v,y){var w=!1;function P(U){w||(w=!0,i.reject(v,U))}function k(U){w||(w=!0,i.resolve(v,U))}var E=g(function(){y(k,P)});E.status==="error"&&P(E.value)}function g(v,y){var w={};try{w.value=v(y),w.status="success"}catch(P){w.status="error",w.value=P}return w}(r.exports=c).prototype.finally=function(v){if(typeof v!="function")return this;var y=this.constructor;return this.then(function(w){return y.resolve(v()).then(function(){return w})},function(w){return y.resolve(v()).then(function(){throw w})})},c.prototype.catch=function(v){return this.then(null,v)},c.prototype.then=function(v,y){if(typeof v!="function"&&this.state===s||typeof y!="function"&&this.state===a)return this;var w=new this.constructor(t);return this.state!==u?l(w,this.state===s?v:y,this.outcome):this.queue.push(new d(w,v,y)),w},d.prototype.callFulfilled=function(v){i.resolve(this.promise,v)},d.prototype.otherCallFulfilled=function(v){l(this.promise,this.onFulfilled,v)},d.prototype.callRejected=function(v){i.reject(this.promise,v)},d.prototype.otherCallRejected=function(v){l(this.promise,this.onRejected,v)},i.resolve=function(v,y){var w=g(h,y);if(w.status==="error")return i.reject(v,w.value);var P=w.value;if(P)f(v,P);else{v.state=s,v.outcome=y;for(var k=-1,E=v.queue.length;++k<E;)v.queue[k].callFulfilled(y)}return v},i.reject=function(v,y){v.state=a,v.outcome=y;for(var w=-1,P=v.queue.length;++w<P;)v.queue[w].callRejected(y);return v},c.resolve=function(v){if(v instanceof this)return v;return i.resolve(new this(t),v)},c.reject=function(v){var y=new this(t);return i.reject(y,v)},c.all=function(v){var y=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(TypeError("must be an array"));var w=v.length,P=!1;if(!w)return this.resolve([]);var k=Array(w),E=0,U=-1,B=new this(t);for(;++U<w;)I(v[U],U);return B;function I(V,L){y.resolve(V).then(function(x){k[L]=x,++E!==w||P||(P=!0,i.resolve(B,k))},function(x){P||(P=!0,i.reject(B,x))})}},c.race=function(v){var y=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(TypeError("must be an array"));var w=v.length,P=!1;if(!w)return this.resolve([]);var k=-1,E=new this(t);for(;++k<w;)U=v[k],y.resolve(U).then(function(B){P||(P=!0,i.resolve(E,B))},function(B){P||(P=!0,i.reject(E,B))});var U;return E}},{immediate:36}],38:[function(e,r,n){var o={};(0,e("./lib/utils/common").assign)(o,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),r.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,r,n){var o=e("./zlib/deflate"),t=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),u=Object.prototype.toString,c=0,d=-1,l=0,h=8;function f(v){if(!(this instanceof f))return new f(v);this.options=t.assign({level:d,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:l,to:""},v||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var w=o.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(w!==c)throw Error(a[w]);if(y.header&&o.deflateSetHeader(this.strm,y.header),y.dictionary){var P;if(P=typeof y.dictionary=="string"?i.string2buf(y.dictionary):u.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(w=o.deflateSetDictionary(this.strm,P))!==c)throw Error(a[w]);this._dict_set=!0}}function g(v,y){var w=new f(y);if(w.push(v,!0),w.err)throw w.msg||a[w.err];return w.result}f.prototype.push=function(v,y){var w,P,k=this.strm,E=this.options.chunkSize;if(this.ended)return!1;P=y===~~y?y:y===!0?4:0,typeof v=="string"?k.input=i.string2buf(v):u.call(v)==="[object ArrayBuffer]"?k.input=new Uint8Array(v):k.input=v,k.next_in=0,k.avail_in=k.input.length;do{if(k.avail_out===0&&(k.output=new t.Buf8(E),k.next_out=0,k.avail_out=E),(w=o.deflate(k,P))!==1&&w!==c)return this.onEnd(w),!(this.ended=!0);k.avail_out!==0&&(k.avail_in!==0||P!==4&&P!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(t.shrinkBuf(k.output,k.next_out))):this.onData(t.shrinkBuf(k.output,k.next_out)))}while((0<k.avail_in||k.avail_out===0)&&w!==1);return P===4?(w=o.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===c):P!==2||(this.onEnd(c),!(k.avail_out=0))},f.prototype.onData=function(v){this.chunks.push(v)},f.prototype.onEnd=function(v){v===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},n.Deflate=f,n.deflate=g,n.deflateRaw=function(v,y){return(y=y||{}).raw=!0,g(v,y)},n.gzip=function(v,y){return(y=y||{}).gzip=!0,g(v,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,r,n){var o=e("./zlib/inflate"),t=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),u=e("./zlib/zstream"),c=e("./zlib/gzheader"),d=Object.prototype.toString;function l(f){if(!(this instanceof l))return new l(f);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},f||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||f&&f.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var v=o.inflateInit2(this.strm,g.windowBits);if(v!==a.Z_OK)throw Error(s[v]);this.header=new c,o.inflateGetHeader(this.strm,this.header)}function h(f,g){var v=new l(g);if(v.push(f,!0),v.err)throw v.msg||s[v.err];return v.result}l.prototype.push=function(f,g){var v,y,w,P,k,E,U=this.strm,B=this.options.chunkSize,I=this.options.dictionary,V=!1;if(this.ended)return!1;y=g===~~g?g:g===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof f=="string"?U.input=i.binstring2buf(f):d.call(f)==="[object ArrayBuffer]"?U.input=new Uint8Array(f):U.input=f,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new t.Buf8(B),U.next_out=0,U.avail_out=B),(v=o.inflate(U,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&I&&(E=typeof I=="string"?i.string2buf(I):d.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,v=o.inflateSetDictionary(this.strm,E)),v===a.Z_BUF_ERROR&&V===!0&&(v=a.Z_OK,V=!1),v!==a.Z_STREAM_END&&v!==a.Z_OK)return this.onEnd(v),!(this.ended=!0);U.next_out&&(U.avail_out!==0&&v!==a.Z_STREAM_END&&(U.avail_in!==0||y!==a.Z_FINISH&&y!==a.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=i.utf8border(U.output,U.next_out),P=U.next_out-w,k=i.buf2string(U.output,w),U.next_out=P,U.avail_out=B-P,P&&t.arraySet(U.output,U.output,w,P,0),this.onData(k)):this.onData(t.shrinkBuf(U.output,U.next_out)))),U.avail_in===0&&U.avail_out===0&&(V=!0)}while((0<U.avail_in||U.avail_out===0)&&v!==a.Z_STREAM_END);return v===a.Z_STREAM_END&&(y=a.Z_FINISH),y===a.Z_FINISH?(v=o.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===a.Z_OK):y!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(U.avail_out=0))},l.prototype.onData=function(f){this.chunks.push(f)},l.prototype.onEnd=function(f){f===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},n.Inflate=l,n.inflate=h,n.inflateRaw=function(f,g){return(g=g||{}).raw=!0,h(f,g)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,r,n){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";n.assign=function(a){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var u=s.shift();if(u){if(typeof u!="object")throw TypeError(u+"must be non-object");for(var c in u)u.hasOwnProperty(c)&&(a[c]=u[c])}}return a},n.shrinkBuf=function(a,s){return a.length===s?a:a.subarray?a.subarray(0,s):(a.length=s,a)};var t={arraySet:function(a,s,u,c,d){if(s.subarray&&a.subarray)a.set(s.subarray(u,u+c),d);else for(var l=0;l<c;l++)a[d+l]=s[u+l]},flattenChunks:function(a){var s,u,c,d,l,h;for(s=c=0,u=a.length;s<u;s++)c+=a[s].length;for(h=new Uint8Array(c),s=d=0,u=a.length;s<u;s++)l=a[s],h.set(l,d),d+=l.length;return h}},i={arraySet:function(a,s,u,c,d){for(var l=0;l<c;l++)a[d+l]=s[u+l]},flattenChunks:function(a){return[].concat.apply([],a)}};n.setTyped=function(a){a?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,t)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(o)},{}],42:[function(e,r,n){var o=e("./common"),t=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(c){t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){i=!1}for(var a=new o.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function u(c,d){if(d<65537&&(c.subarray&&i||!c.subarray&&t))return String.fromCharCode.apply(null,o.shrinkBuf(c,d));for(var l="",h=0;h<d;h++)l+=String.fromCharCode(c[h]);return l}a[254]=a[254]=1,n.string2buf=function(c){var d,l,h,f,g,v=c.length,y=0;for(f=0;f<v;f++)(64512&(l=c.charCodeAt(f)))==55296&&f+1<v&&(64512&(h=c.charCodeAt(f+1)))==56320&&(l=65536+(l-55296<<10)+(h-56320),f++),y+=l<128?1:l<2048?2:l<65536?3:4;for(d=new o.Buf8(y),f=g=0;g<y;f++)(64512&(l=c.charCodeAt(f)))==55296&&f+1<v&&(64512&(h=c.charCodeAt(f+1)))==56320&&(l=65536+(l-55296<<10)+(h-56320),f++),l<128?d[g++]=l:(l<2048?d[g++]=192|l>>>6:(l<65536?d[g++]=224|l>>>12:(d[g++]=240|l>>>18,d[g++]=128|l>>>12&63),d[g++]=128|l>>>6&63),d[g++]=128|63&l);return d},n.buf2binstring=function(c){return u(c,c.length)},n.binstring2buf=function(c){for(var d=new o.Buf8(c.length),l=0,h=d.length;l<h;l++)d[l]=c.charCodeAt(l);return d},n.buf2string=function(c,d){var l,h,f,g,v=d||c.length,y=Array(2*v);for(l=h=0;l<v;)if((f=c[l++])<128)y[h++]=f;else if(4<(g=a[f]))y[h++]=65533,l+=g-1;else{for(f&=g===2?31:g===3?15:7;1<g&&l<v;)f=f<<6|63&c[l++],g--;1<g?y[h++]=65533:f<65536?y[h++]=f:(f-=65536,y[h++]=55296|f>>10&1023,y[h++]=56320|1023&f)}return u(y,h)},n.utf8border=function(c,d){var l;for((d=d||c.length)>c.length&&(d=c.length),l=d-1;0<=l&&(192&c[l])==128;)l--;return l<0?d:l===0?d:l+a[c[l]]>d?l:d}},{"./common":41}],43:[function(e,r,n){r.exports=function(o,t,i,a){for(var s=65535&o|0,u=o>>>16&65535|0,c=0;i!==0;){for(i-=c=2000<i?2000:i;u=u+(s=s+t[a++]|0)|0,--c;);s%=65521,u%=65521}return s|u<<16|0}},{}],44:[function(e,r,n){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,r,n){var o=function(){for(var t,i=[],a=0;a<256;a++){t=a;for(var s=0;s<8;s++)t=1&t?3988292384^t>>>1:t>>>1;i[a]=t}return i}();r.exports=function(t,i,a,s){var u=o,c=s+a;t^=-1;for(var d=s;d<c;d++)t=t>>>8^u[255&(t^i[d])];return-1^t}},{}],46:[function(e,r,n){var o,t=e("../utils/common"),i=e("./trees"),a=e("./adler32"),s=e("./crc32"),u=e("./messages"),c=0,d=4,l=0,h=-2,f=-1,g=4,v=2,y=8,w=9,P=286,k=30,E=19,U=2*P+1,B=15,I=3,V=258,L=V+I+1,x=42,O=113,p=1,N=2,ue=3,K=4;function ce(m,Z){return m.msg=u[Z],Z}function H(m){return(m<<1)-(4<m?9:0)}function ae(m){for(var Z=m.length;0<=--Z;)m[Z]=0}function C(m){var Z=m.state,A=Z.pending;A>m.avail_out&&(A=m.avail_out),A!==0&&(t.arraySet(m.output,Z.pending_buf,Z.pending_out,A,m.next_out),m.next_out+=A,Z.pending_out+=A,m.total_out+=A,m.avail_out-=A,Z.pending-=A,Z.pending===0&&(Z.pending_out=0))}function R(m,Z){i._tr_flush_block(m,0<=m.block_start?m.block_start:-1,m.strstart-m.block_start,Z),m.block_start=m.strstart,C(m.strm)}function ie(m,Z){m.pending_buf[m.pending++]=Z}function re(m,Z){m.pending_buf[m.pending++]=Z>>>8&255,m.pending_buf[m.pending++]=255&Z}function ee(m,Z){var A,_,b=m.max_chain_length,T=m.strstart,F=m.prev_length,J=m.nice_match,j=m.strstart>m.w_size-L?m.strstart-(m.w_size-L):0,Y=m.window,ne=m.w_mask,Q=m.prev,oe=m.strstart+V,be=Y[T+F-1],me=Y[T+F];m.prev_length>=m.good_match&&(b>>=2),J>m.lookahead&&(J=m.lookahead);do if(Y[(A=Z)+F]===me&&Y[A+F-1]===be&&Y[A]===Y[T]&&Y[++A]===Y[T+1]){T+=2,A++;do;while(Y[++T]===Y[++A]&&Y[++T]===Y[++A]&&Y[++T]===Y[++A]&&Y[++T]===Y[++A]&&Y[++T]===Y[++A]&&Y[++T]===Y[++A]&&Y[++T]===Y[++A]&&Y[++T]===Y[++A]&&T<oe);if(_=V-(oe-T),T=oe-V,F<_){if(m.match_start=Z,J<=(F=_))break;be=Y[T+F-1],me=Y[T+F]}}while((Z=Q[Z&ne])>j&&--b!=0);return F<=m.lookahead?F:m.lookahead}function _e(m){var Z,A,_,b,T,F,J,j,Y,ne,Q=m.w_size;do{if(b=m.window_size-m.lookahead-m.strstart,m.strstart>=Q+(Q-L)){for(t.arraySet(m.window,m.window,Q,Q,0),m.match_start-=Q,m.strstart-=Q,m.block_start-=Q,Z=A=m.hash_size;_=m.head[--Z],m.head[Z]=Q<=_?_-Q:0,--A;);for(Z=A=Q;_=m.prev[--Z],m.prev[Z]=Q<=_?_-Q:0,--A;);b+=Q}if(m.strm.avail_in===0)break;if(F=m.strm,J=m.window,j=m.strstart+m.lookahead,Y=b,ne=void 0,ne=F.avail_in,Y<ne&&(ne=Y),A=ne===0?0:(F.avail_in-=ne,t.arraySet(J,F.input,F.next_in,ne,j),F.state.wrap===1?F.adler=a(F.adler,J,ne,j):F.state.wrap===2&&(F.adler=s(F.adler,J,ne,j)),F.next_in+=ne,F.total_in+=ne,ne),m.lookahead+=A,m.lookahead+m.insert>=I)for(T=m.strstart-m.insert,m.ins_h=m.window[T],m.ins_h=(m.ins_h<<m.hash_shift^m.window[T+1])&m.hash_mask;m.insert&&(m.ins_h=(m.ins_h<<m.hash_shift^m.window[T+I-1])&m.hash_mask,m.prev[T&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=T,T++,m.insert--,!(m.lookahead+m.insert<I)););}while(m.lookahead<L&&m.strm.avail_in!==0)}function ze(m,Z){for(var A,_;;){if(m.lookahead<L){if(_e(m),m.lookahead<L&&Z===c)return p;if(m.lookahead===0)break}if(A=0,m.lookahead>=I&&(m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+I-1])&m.hash_mask,A=m.prev[m.strstart&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=m.strstart),A!==0&&m.strstart-A<=m.w_size-L&&(m.match_length=ee(m,A)),m.match_length>=I)if(_=i._tr_tally(m,m.strstart-m.match_start,m.match_length-I),m.lookahead-=m.match_length,m.match_length<=m.max_lazy_match&&m.lookahead>=I){for(m.match_length--;m.strstart++,m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+I-1])&m.hash_mask,A=m.prev[m.strstart&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=m.strstart,--m.match_length!=0;);m.strstart++}else m.strstart+=m.match_length,m.match_length=0,m.ins_h=m.window[m.strstart],m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+1])&m.hash_mask;else _=i._tr_tally(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++;if(_&&(R(m,!1),m.strm.avail_out===0))return p}return m.insert=m.strstart<I-1?m.strstart:I-1,Z===d?(R(m,!0),m.strm.avail_out===0?ue:K):m.last_lit&&(R(m,!1),m.strm.avail_out===0)?p:N}function fe(m,Z){for(var A,_,b;;){if(m.lookahead<L){if(_e(m),m.lookahead<L&&Z===c)return p;if(m.lookahead===0)break}if(A=0,m.lookahead>=I&&(m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+I-1])&m.hash_mask,A=m.prev[m.strstart&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=m.strstart),m.prev_length=m.match_length,m.prev_match=m.match_start,m.match_length=I-1,A!==0&&m.prev_length<m.max_lazy_match&&m.strstart-A<=m.w_size-L&&(m.match_length=ee(m,A),m.match_length<=5&&(m.strategy===1||m.match_length===I&&4096<m.strstart-m.match_start)&&(m.match_length=I-1)),m.prev_length>=I&&m.match_length<=m.prev_length){for(b=m.strstart+m.lookahead-I,_=i._tr_tally(m,m.strstart-1-m.prev_match,m.prev_length-I),m.lookahead-=m.prev_length-1,m.prev_length-=2;++m.strstart<=b&&(m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+I-1])&m.hash_mask,A=m.prev[m.strstart&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=m.strstart),--m.prev_length!=0;);if(m.match_available=0,m.match_length=I-1,m.strstart++,_&&(R(m,!1),m.strm.avail_out===0))return p}else if(m.match_available){if((_=i._tr_tally(m,0,m.window[m.strstart-1]))&&R(m,!1),m.strstart++,m.lookahead--,m.strm.avail_out===0)return p}else m.match_available=1,m.strstart++,m.lookahead--}return m.match_available&&(_=i._tr_tally(m,0,m.window[m.strstart-1]),m.match_available=0),m.insert=m.strstart<I-1?m.strstart:I-1,Z===d?(R(m,!0),m.strm.avail_out===0?ue:K):m.last_lit&&(R(m,!1),m.strm.avail_out===0)?p:N}function pe(m,Z,A,_,b){this.good_length=m,this.max_lazy=Z,this.nice_length=A,this.max_chain=_,this.func=b}function Se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(2*U),this.dyn_dtree=new t.Buf16(2*(2*k+1)),this.bl_tree=new t.Buf16(2*(2*E+1)),ae(this.dyn_ltree),ae(this.dyn_dtree),ae(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(B+1),this.heap=new t.Buf16(2*P+1),ae(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*P+1),ae(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function xe(m){var Z;return m&&m.state?(m.total_in=m.total_out=0,m.data_type=v,(Z=m.state).pending=0,Z.pending_out=0,Z.wrap<0&&(Z.wrap=-Z.wrap),Z.status=Z.wrap?x:O,m.adler=Z.wrap===2?0:1,Z.last_flush=c,i._tr_init(Z),l):ce(m,h)}function Ve(m){var Z=xe(m);return Z===l&&function(A){A.window_size=2*A.w_size,ae(A.head),A.max_lazy_match=o[A.level].max_lazy,A.good_match=o[A.level].good_length,A.nice_match=o[A.level].nice_length,A.max_chain_length=o[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=I-1,A.match_available=0,A.ins_h=0}(m.state),Z}function He(m,Z,A,_,b,T){if(!m)return h;var F=1;if(Z===f&&(Z=6),_<0?(F=0,_=-_):15<_&&(F=2,_-=16),b<1||w<b||A!==y||_<8||15<_||Z<0||9<Z||T<0||g<T)return ce(m,h);_===8&&(_=9);var J=new Se;return(m.state=J).strm=m,J.wrap=F,J.gzhead=null,J.w_bits=_,J.w_size=1<<J.w_bits,J.w_mask=J.w_size-1,J.hash_bits=b+7,J.hash_size=1<<J.hash_bits,J.hash_mask=J.hash_size-1,J.hash_shift=~~((J.hash_bits+I-1)/I),J.window=new t.Buf8(2*J.w_size),J.head=new t.Buf16(J.hash_size),J.prev=new t.Buf16(J.w_size),J.lit_bufsize=1<<b+6,J.pending_buf_size=4*J.lit_bufsize,J.pending_buf=new t.Buf8(J.pending_buf_size),J.d_buf=1*J.lit_bufsize,J.l_buf=3*J.lit_bufsize,J.level=Z,J.strategy=T,J.method=A,Ve(m)}o=[new pe(0,0,0,0,function(m,Z){var A=65535;for(A>m.pending_buf_size-5&&(A=m.pending_buf_size-5);;){if(m.lookahead<=1){if(_e(m),m.lookahead===0&&Z===c)return p;if(m.lookahead===0)break}m.strstart+=m.lookahead,m.lookahead=0;var _=m.block_start+A;if((m.strstart===0||m.strstart>=_)&&(m.lookahead=m.strstart-_,m.strstart=_,R(m,!1),m.strm.avail_out===0))return p;if(m.strstart-m.block_start>=m.w_size-L&&(R(m,!1),m.strm.avail_out===0))return p}return m.insert=0,Z===d?(R(m,!0),m.strm.avail_out===0?ue:K):(m.strstart>m.block_start&&(R(m,!1),m.strm.avail_out),p)}),new pe(4,4,8,4,ze),new pe(4,5,16,8,ze),new pe(4,6,32,32,ze),new pe(4,4,16,16,fe),new pe(8,16,32,32,fe),new pe(8,16,128,128,fe),new pe(8,32,128,256,fe),new pe(32,128,258,1024,fe),new pe(32,258,258,4096,fe)],n.deflateInit=function(m,Z){return He(m,Z,y,15,8,0)},n.deflateInit2=He,n.deflateReset=Ve,n.deflateResetKeep=xe,n.deflateSetHeader=function(m,Z){return m&&m.state?m.state.wrap!==2?h:(m.state.gzhead=Z,l):h},n.deflate=function(m,Z){var A,_,b,T;if(!m||!m.state||5<Z||Z<0)return m?ce(m,h):h;if(_=m.state,!m.output||!m.input&&m.avail_in!==0||_.status===666&&Z!==d)return ce(m,m.avail_out===0?-5:h);if(_.strm=m,A=_.last_flush,_.last_flush=Z,_.status===x)if(_.wrap===2)m.adler=0,ie(_,31),ie(_,139),ie(_,8),_.gzhead?(ie(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),ie(_,255&_.gzhead.time),ie(_,_.gzhead.time>>8&255),ie(_,_.gzhead.time>>16&255),ie(_,_.gzhead.time>>24&255),ie(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),ie(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(ie(_,255&_.gzhead.extra.length),ie(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(m.adler=s(m.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(ie(_,0),ie(_,0),ie(_,0),ie(_,0),ie(_,0),ie(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),ie(_,3),_.status=O);else{var F=y+(_.w_bits-8<<4)<<8;F|=(2<=_.strategy||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(F|=32),F+=31-F%31,_.status=O,re(_,F),_.strstart!==0&&(re(_,m.adler>>>16),re(_,65535&m.adler)),m.adler=1}if(_.status===69)if(_.gzhead.extra){for(b=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>b&&(m.adler=s(m.adler,_.pending_buf,_.pending-b,b)),C(m),b=_.pending,_.pending!==_.pending_buf_size));)ie(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>b&&(m.adler=s(m.adler,_.pending_buf,_.pending-b,b)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){b=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>b&&(m.adler=s(m.adler,_.pending_buf,_.pending-b,b)),C(m),b=_.pending,_.pending===_.pending_buf_size)){T=1;break}T=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,ie(_,T)}while(T!==0);_.gzhead.hcrc&&_.pending>b&&(m.adler=s(m.adler,_.pending_buf,_.pending-b,b)),T===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){b=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>b&&(m.adler=s(m.adler,_.pending_buf,_.pending-b,b)),C(m),b=_.pending,_.pending===_.pending_buf_size)){T=1;break}T=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,ie(_,T)}while(T!==0);_.gzhead.hcrc&&_.pending>b&&(m.adler=s(m.adler,_.pending_buf,_.pending-b,b)),T===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&C(m),_.pending+2<=_.pending_buf_size&&(ie(_,255&m.adler),ie(_,m.adler>>8&255),m.adler=0,_.status=O)):_.status=O),_.pending!==0){if(C(m),m.avail_out===0)return _.last_flush=-1,l}else if(m.avail_in===0&&H(Z)<=H(A)&&Z!==d)return ce(m,-5);if(_.status===666&&m.avail_in!==0)return ce(m,-5);if(m.avail_in!==0||_.lookahead!==0||Z!==c&&_.status!==666){var J=_.strategy===2?function(j,Y){for(var ne;;){if(j.lookahead===0&&(_e(j),j.lookahead===0)){if(Y===c)return p;break}if(j.match_length=0,ne=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,ne&&(R(j,!1),j.strm.avail_out===0))return p}return j.insert=0,Y===d?(R(j,!0),j.strm.avail_out===0?ue:K):j.last_lit&&(R(j,!1),j.strm.avail_out===0)?p:N}(_,Z):_.strategy===3?function(j,Y){for(var ne,Q,oe,be,me=j.window;;){if(j.lookahead<=V){if(_e(j),j.lookahead<=V&&Y===c)return p;if(j.lookahead===0)break}if(j.match_length=0,j.lookahead>=I&&0<j.strstart&&(Q=me[oe=j.strstart-1])===me[++oe]&&Q===me[++oe]&&Q===me[++oe]){be=j.strstart+V;do;while(Q===me[++oe]&&Q===me[++oe]&&Q===me[++oe]&&Q===me[++oe]&&Q===me[++oe]&&Q===me[++oe]&&Q===me[++oe]&&Q===me[++oe]&&oe<be);j.match_length=V-(be-oe),j.match_length>j.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=I?(ne=i._tr_tally(j,1,j.match_length-I),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(ne=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),ne&&(R(j,!1),j.strm.avail_out===0))return p}return j.insert=0,Y===d?(R(j,!0),j.strm.avail_out===0?ue:K):j.last_lit&&(R(j,!1),j.strm.avail_out===0)?p:N}(_,Z):o[_.level].func(_,Z);if(J!==ue&&J!==K||(_.status=666),J===p||J===ue)return m.avail_out===0&&(_.last_flush=-1),l;if(J===N&&(Z===1?i._tr_align(_):Z!==5&&(i._tr_stored_block(_,0,0,!1),Z===3&&(ae(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),C(m),m.avail_out===0))return _.last_flush=-1,l}return Z!==d?l:_.wrap<=0?1:(_.wrap===2?(ie(_,255&m.adler),ie(_,m.adler>>8&255),ie(_,m.adler>>16&255),ie(_,m.adler>>24&255),ie(_,255&m.total_in),ie(_,m.total_in>>8&255),ie(_,m.total_in>>16&255),ie(_,m.total_in>>24&255)):(re(_,m.adler>>>16),re(_,65535&m.adler)),C(m),0<_.wrap&&(_.wrap=-_.wrap),_.pending!==0?l:1)},n.deflateEnd=function(m){var Z;return m&&m.state?(Z=m.state.status)!==x&&Z!==69&&Z!==73&&Z!==91&&Z!==103&&Z!==O&&Z!==666?ce(m,h):(m.state=null,Z===O?ce(m,-3):l):h},n.deflateSetDictionary=function(m,Z){var A,_,b,T,F,J,j,Y,ne=Z.length;if(!m||!m.state)return h;if((T=(A=m.state).wrap)===2||T===1&&A.status!==x||A.lookahead)return h;for(T===1&&(m.adler=a(m.adler,Z,ne,0)),A.wrap=0,ne>=A.w_size&&(T===0&&(ae(A.head),A.strstart=0,A.block_start=0,A.insert=0),Y=new t.Buf8(A.w_size),t.arraySet(Y,Z,ne-A.w_size,A.w_size,0),Z=Y,ne=A.w_size),F=m.avail_in,J=m.next_in,j=m.input,m.avail_in=ne,m.next_in=0,m.input=Z,_e(A);A.lookahead>=I;){for(_=A.strstart,b=A.lookahead-(I-1);A.ins_h=(A.ins_h<<A.hash_shift^A.window[_+I-1])&A.hash_mask,A.prev[_&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=_,_++,--b;);A.strstart=_,A.lookahead=I-1,_e(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=I-1,A.match_available=0,m.next_in=J,m.input=j,m.avail_in=F,A.wrap=T,l},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,r,n){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,r,n){r.exports=function(o,t){var i,a,s,u,c,d,l,h,f,g,v,y,w,P,k,E,U,B,I,V,L,x,O,p,N;i=o.state,a=o.next_in,p=o.input,s=a+(o.avail_in-5),u=o.next_out,N=o.output,c=u-(t-o.avail_out),d=u+(o.avail_out-257),l=i.dmax,h=i.wsize,f=i.whave,g=i.wnext,v=i.window,y=i.hold,w=i.bits,P=i.lencode,k=i.distcode,E=(1<<i.lenbits)-1,U=(1<<i.distbits)-1;e:do{w<15&&(y+=p[a++]<<w,w+=8,y+=p[a++]<<w,w+=8),B=P[y&E];t:for(;;){if(y>>>=I=B>>>24,w-=I,(I=B>>>16&255)===0)N[u++]=65535&B;else{if(!(16&I)){if((64&I)==0){B=P[(65535&B)+(y&(1<<I)-1)];continue t}if(32&I){i.mode=12;break e}o.msg="invalid literal/length code",i.mode=30;break e}V=65535&B,(I&=15)&&(w<I&&(y+=p[a++]<<w,w+=8),V+=y&(1<<I)-1,y>>>=I,w-=I),w<15&&(y+=p[a++]<<w,w+=8,y+=p[a++]<<w,w+=8),B=k[y&U];r:for(;;){if(y>>>=I=B>>>24,w-=I,!(16&(I=B>>>16&255))){if((64&I)==0){B=k[(65535&B)+(y&(1<<I)-1)];continue r}o.msg="invalid distance code",i.mode=30;break e}if(L=65535&B,w<(I&=15)&&(y+=p[a++]<<w,(w+=8)<I&&(y+=p[a++]<<w,w+=8)),l<(L+=y&(1<<I)-1)){o.msg="invalid distance too far back",i.mode=30;break e}if(y>>>=I,w-=I,(I=u-c)<L){if(f<(I=L-I)&&i.sane){o.msg="invalid distance too far back",i.mode=30;break e}if(O=v,(x=0)===g){if(x+=h-I,I<V){for(V-=I;N[u++]=v[x++],--I;);x=u-L,O=N}}else if(g<I){if(x+=h+g-I,(I-=g)<V){for(V-=I;N[u++]=v[x++],--I;);if(x=0,g<V){for(V-=I=g;N[u++]=v[x++],--I;);x=u-L,O=N}}}else if(x+=g-I,I<V){for(V-=I;N[u++]=v[x++],--I;);x=u-L,O=N}for(;2<V;)N[u++]=O[x++],N[u++]=O[x++],N[u++]=O[x++],V-=3;V&&(N[u++]=O[x++],1<V&&(N[u++]=O[x++]))}else{for(x=u-L;N[u++]=N[x++],N[u++]=N[x++],N[u++]=N[x++],2<(V-=3););V&&(N[u++]=N[x++],1<V&&(N[u++]=N[x++]))}break}}break}}while(a<s&&u<d);a-=V=w>>3,y&=(1<<(w-=V<<3))-1,o.next_in=a,o.next_out=u,o.avail_in=a<s?s-a+5:5-(a-s),o.avail_out=u<d?d-u+257:257-(u-d),i.hold=y,i.bits=w}},{}],49:[function(e,r,n){var o=e("../utils/common"),t=e("./adler32"),i=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),u=1,c=2,d=0,l=-2,h=1,f=852,g=592;function v(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(x){var O;return x&&x.state?(O=x.state,x.total_in=x.total_out=O.total=0,x.msg="",O.wrap&&(x.adler=1&O.wrap),O.mode=h,O.last=0,O.havedict=0,O.dmax=32768,O.head=null,O.hold=0,O.bits=0,O.lencode=O.lendyn=new o.Buf32(f),O.distcode=O.distdyn=new o.Buf32(g),O.sane=1,O.back=-1,d):l}function P(x){var O;return x&&x.state?((O=x.state).wsize=0,O.whave=0,O.wnext=0,w(x)):l}function k(x,O){var p,N;return x&&x.state?(N=x.state,O<0?(p=0,O=-O):(p=1+(O>>4),O<48&&(O&=15)),O&&(O<8||15<O)?l:(N.window!==null&&N.wbits!==O&&(N.window=null),N.wrap=p,N.wbits=O,P(x))):l}function E(x,O){var p,N;return x?(N=new y,(x.state=N).window=null,(p=k(x,O))!==d&&(x.state=null),p):l}var U,B,I=!0;function V(x){if(I){var O;for(U=new o.Buf32(512),B=new o.Buf32(32),O=0;O<144;)x.lens[O++]=8;for(;O<256;)x.lens[O++]=9;for(;O<280;)x.lens[O++]=7;for(;O<288;)x.lens[O++]=8;for(s(u,x.lens,0,288,U,0,x.work,{bits:9}),O=0;O<32;)x.lens[O++]=5;s(c,x.lens,0,32,B,0,x.work,{bits:5}),I=!1}x.lencode=U,x.lenbits=9,x.distcode=B,x.distbits=5}function L(x,O,p,N){var ue,K=x.state;return K.window===null&&(K.wsize=1<<K.wbits,K.wnext=0,K.whave=0,K.window=new o.Buf8(K.wsize)),N>=K.wsize?(o.arraySet(K.window,O,p-K.wsize,K.wsize,0),K.wnext=0,K.whave=K.wsize):(N<(ue=K.wsize-K.wnext)&&(ue=N),o.arraySet(K.window,O,p-N,ue,K.wnext),(N-=ue)?(o.arraySet(K.window,O,p-N,N,0),K.wnext=N,K.whave=K.wsize):(K.wnext+=ue,K.wnext===K.wsize&&(K.wnext=0),K.whave<K.wsize&&(K.whave+=ue))),0}n.inflateReset=P,n.inflateReset2=k,n.inflateResetKeep=w,n.inflateInit=function(x){return E(x,15)},n.inflateInit2=E,n.inflate=function(x,O){var p,N,ue,K,ce,H,ae,C,R,ie,re,ee,_e,ze,fe,pe,Se,xe,Ve,He,m,Z,A,_,b=0,T=new o.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return l;(p=x.state).mode===12&&(p.mode=13),ce=x.next_out,ue=x.output,ae=x.avail_out,K=x.next_in,N=x.input,H=x.avail_in,C=p.hold,R=p.bits,ie=H,re=ae,Z=d;e:for(;;)switch(p.mode){case h:if(p.wrap===0){p.mode=13;break}for(;R<16;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if(2&p.wrap&&C===35615){T[p.check=0]=255&C,T[1]=C>>>8&255,p.check=i(p.check,T,2,0),R=C=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&C)<<8)+(C>>8))%31){x.msg="incorrect header check",p.mode=30;break}if((15&C)!=8){x.msg="unknown compression method",p.mode=30;break}if(R-=4,m=8+(15&(C>>>=4)),p.wbits===0)p.wbits=m;else if(m>p.wbits){x.msg="invalid window size",p.mode=30;break}p.dmax=1<<m,x.adler=p.check=1,p.mode=512&C?10:12,R=C=0;break;case 2:for(;R<16;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if(p.flags=C,(255&p.flags)!=8){x.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){x.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=C>>8&1),512&p.flags&&(T[0]=255&C,T[1]=C>>>8&255,p.check=i(p.check,T,2,0)),R=C=0,p.mode=3;case 3:for(;R<32;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}p.head&&(p.head.time=C),512&p.flags&&(T[0]=255&C,T[1]=C>>>8&255,T[2]=C>>>16&255,T[3]=C>>>24&255,p.check=i(p.check,T,4,0)),R=C=0,p.mode=4;case 4:for(;R<16;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}p.head&&(p.head.xflags=255&C,p.head.os=C>>8),512&p.flags&&(T[0]=255&C,T[1]=C>>>8&255,p.check=i(p.check,T,2,0)),R=C=0,p.mode=5;case 5:if(1024&p.flags){for(;R<16;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}p.length=C,p.head&&(p.head.extra_len=C),512&p.flags&&(T[0]=255&C,T[1]=C>>>8&255,p.check=i(p.check,T,2,0)),R=C=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&(H<(ee=p.length)&&(ee=H),ee&&(p.head&&(m=p.head.extra_len-p.length,p.head.extra||(p.head.extra=Array(p.head.extra_len)),o.arraySet(p.head.extra,N,K,ee,m)),512&p.flags&&(p.check=i(p.check,N,ee,K)),H-=ee,K+=ee,p.length-=ee),p.length))break e;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(H===0)break e;for(ee=0;m=N[K+ee++],p.head&&m&&p.length<65536&&(p.head.name+=String.fromCharCode(m)),m&&ee<H;);if(512&p.flags&&(p.check=i(p.check,N,ee,K)),H-=ee,K+=ee,m)break e}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(H===0)break e;for(ee=0;m=N[K+ee++],p.head&&m&&p.length<65536&&(p.head.comment+=String.fromCharCode(m)),m&&ee<H;);if(512&p.flags&&(p.check=i(p.check,N,ee,K)),H-=ee,K+=ee,m)break e}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;R<16;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if(C!==(65535&p.check)){x.msg="header crc mismatch",p.mode=30;break}R=C=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),x.adler=p.check=0,p.mode=12;break;case 10:for(;R<32;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}x.adler=p.check=v(C),R=C=0,p.mode=11;case 11:if(p.havedict===0)return x.next_out=ce,x.avail_out=ae,x.next_in=K,x.avail_in=H,p.hold=C,p.bits=R,2;x.adler=p.check=1,p.mode=12;case 12:if(O===5||O===6)break e;case 13:if(p.last){C>>>=7&R,R-=7&R,p.mode=27;break}for(;R<3;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}switch(p.last=1&C,R-=1,3&(C>>>=1)){case 0:p.mode=14;break;case 1:if(V(p),p.mode=20,O!==6)break;C>>>=2,R-=2;break e;case 2:p.mode=17;break;case 3:x.msg="invalid block type",p.mode=30}C>>>=2,R-=2;break;case 14:for(C>>>=7&R,R-=7&R;R<32;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if((65535&C)!=(C>>>16^65535)){x.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&C,R=C=0,p.mode=15,O===6)break e;case 15:p.mode=16;case 16:if(ee=p.length){if(H<ee&&(ee=H),ae<ee&&(ee=ae),ee===0)break e;o.arraySet(ue,N,K,ee,ce),H-=ee,K+=ee,ae-=ee,ce+=ee,p.length-=ee;break}p.mode=12;break;case 17:for(;R<14;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if(p.nlen=257+(31&C),C>>>=5,R-=5,p.ndist=1+(31&C),C>>>=5,R-=5,p.ncode=4+(15&C),C>>>=4,R-=4,286<p.nlen||30<p.ndist){x.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;R<3;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}p.lens[F[p.have++]]=7&C,C>>>=3,R-=3}for(;p.have<19;)p.lens[F[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,A={bits:p.lenbits},Z=s(0,p.lens,0,19,p.lencode,0,p.work,A),p.lenbits=A.bits,Z){x.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;pe=(b=p.lencode[C&(1<<p.lenbits)-1])>>>16&255,Se=65535&b,!((fe=b>>>24)<=R);){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if(Se<16)C>>>=fe,R-=fe,p.lens[p.have++]=Se;else{if(Se===16){for(_=fe+2;R<_;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if(C>>>=fe,R-=fe,p.have===0){x.msg="invalid bit length repeat",p.mode=30;break}m=p.lens[p.have-1],ee=3+(3&C),C>>>=2,R-=2}else if(Se===17){for(_=fe+3;R<_;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}R-=fe,m=0,ee=3+(7&(C>>>=fe)),C>>>=3,R-=3}else{for(_=fe+7;R<_;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}R-=fe,m=0,ee=11+(127&(C>>>=fe)),C>>>=7,R-=7}if(p.have+ee>p.nlen+p.ndist){x.msg="invalid bit length repeat",p.mode=30;break}for(;ee--;)p.lens[p.have++]=m}}if(p.mode===30)break;if(p.lens[256]===0){x.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,A={bits:p.lenbits},Z=s(u,p.lens,0,p.nlen,p.lencode,0,p.work,A),p.lenbits=A.bits,Z){x.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,A={bits:p.distbits},Z=s(c,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,A),p.distbits=A.bits,Z){x.msg="invalid distances set",p.mode=30;break}if(p.mode=20,O===6)break e;case 20:p.mode=21;case 21:if(6<=H&&258<=ae){x.next_out=ce,x.avail_out=ae,x.next_in=K,x.avail_in=H,p.hold=C,p.bits=R,a(x,re),ce=x.next_out,ue=x.output,ae=x.avail_out,K=x.next_in,N=x.input,H=x.avail_in,C=p.hold,R=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;pe=(b=p.lencode[C&(1<<p.lenbits)-1])>>>16&255,Se=65535&b,!((fe=b>>>24)<=R);){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if(pe&&(240&pe)==0){for(xe=fe,Ve=pe,He=Se;pe=(b=p.lencode[He+((C&(1<<xe+Ve)-1)>>xe)])>>>16&255,Se=65535&b,!(xe+(fe=b>>>24)<=R);){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}C>>>=xe,R-=xe,p.back+=xe}if(C>>>=fe,R-=fe,p.back+=fe,p.length=Se,pe===0){p.mode=26;break}if(32&pe){p.back=-1,p.mode=12;break}if(64&pe){x.msg="invalid literal/length code",p.mode=30;break}p.extra=15&pe,p.mode=22;case 22:if(p.extra){for(_=p.extra;R<_;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}p.length+=C&(1<<p.extra)-1,C>>>=p.extra,R-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;pe=(b=p.distcode[C&(1<<p.distbits)-1])>>>16&255,Se=65535&b,!((fe=b>>>24)<=R);){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if((240&pe)==0){for(xe=fe,Ve=pe,He=Se;pe=(b=p.distcode[He+((C&(1<<xe+Ve)-1)>>xe)])>>>16&255,Se=65535&b,!(xe+(fe=b>>>24)<=R);){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}C>>>=xe,R-=xe,p.back+=xe}if(C>>>=fe,R-=fe,p.back+=fe,64&pe){x.msg="invalid distance code",p.mode=30;break}p.offset=Se,p.extra=15&pe,p.mode=24;case 24:if(p.extra){for(_=p.extra;R<_;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}p.offset+=C&(1<<p.extra)-1,C>>>=p.extra,R-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){x.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(ae===0)break e;if(ee=re-ae,p.offset>ee){if((ee=p.offset-ee)>p.whave&&p.sane){x.msg="invalid distance too far back",p.mode=30;break}_e=ee>p.wnext?(ee-=p.wnext,p.wsize-ee):p.wnext-ee,ee>p.length&&(ee=p.length),ze=p.window}else ze=ue,_e=ce-p.offset,ee=p.length;for(ae<ee&&(ee=ae),ae-=ee,p.length-=ee;ue[ce++]=ze[_e++],--ee;);p.length===0&&(p.mode=21);break;case 26:if(ae===0)break e;ue[ce++]=p.length,ae--,p.mode=21;break;case 27:if(p.wrap){for(;R<32;){if(H===0)break e;H--,C|=N[K++]<<R,R+=8}if(re-=ae,x.total_out+=re,p.total+=re,re&&(x.adler=p.check=p.flags?i(p.check,ue,re,ce-re):t(p.check,ue,re,ce-re)),re=ae,(p.flags?C:v(C))!==p.check){x.msg="incorrect data check",p.mode=30;break}R=C=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;R<32;){if(H===0)break e;H--,C+=N[K++]<<R,R+=8}if(C!==(4294967295&p.total)){x.msg="incorrect length check",p.mode=30;break}R=C=0}p.mode=29;case 29:Z=1;break e;case 30:Z=-3;break e;case 31:return-4;case 32:default:return l}return x.next_out=ce,x.avail_out=ae,x.next_in=K,x.avail_in=H,p.hold=C,p.bits=R,(p.wsize||re!==x.avail_out&&p.mode<30&&(p.mode<27||O!==4))&&L(x,x.output,x.next_out,re-x.avail_out)?(p.mode=31,-4):(ie-=x.avail_in,re-=x.avail_out,x.total_in+=ie,x.total_out+=re,p.total+=re,p.wrap&&re&&(x.adler=p.check=p.flags?i(p.check,ue,re,x.next_out-re):t(p.check,ue,re,x.next_out-re)),x.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(ie==0&&re===0||O===4)&&Z===d&&(Z=-5),Z)},n.inflateEnd=function(x){if(!x||!x.state)return l;var O=x.state;return O.window&&(O.window=null),x.state=null,d},n.inflateGetHeader=function(x,O){var p;return x&&x.state?(2&(p=x.state).wrap)==0?l:((p.head=O).done=!1,d):l},n.inflateSetDictionary=function(x,O){var p,N=O.length;return x&&x.state?(p=x.state).wrap!==0&&p.mode!==11?l:p.mode===11&&t(1,O,N,0)!==p.check?-3:L(x,O,N,N)?(p.mode=31,-4):(p.havedict=1,d):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,r,n){var o=e("../utils/common"),t=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(u,c,d,l,h,f,g,v){var y,w,P,k,E,U,B,I,V,L=v.bits,x=0,O=0,p=0,N=0,ue=0,K=0,ce=0,H=0,ae=0,C=0,R=null,ie=0,re=new o.Buf16(16),ee=new o.Buf16(16),_e=null,ze=0;for(x=0;x<=15;x++)re[x]=0;for(O=0;O<l;O++)re[c[d+O]]++;for(ue=L,N=15;1<=N&&re[N]===0;N--);if(N<ue&&(ue=N),N===0)return h[f++]=20971520,h[f++]=20971520,v.bits=1,0;for(p=1;p<N&&re[p]===0;p++);for(ue<p&&(ue=p),x=H=1;x<=15;x++)if(H<<=1,(H-=re[x])<0)return-1;if(0<H&&(u===0||N!==1))return-1;for(ee[1]=0,x=1;x<15;x++)ee[x+1]=ee[x]+re[x];for(O=0;O<l;O++)c[d+O]!==0&&(g[ee[c[d+O]]++]=O);if(U=u===0?(R=_e=g,19):u===1?(R=t,ie-=257,_e=i,ze-=257,256):(R=a,_e=s,-1),x=p,E=f,ce=O=C=0,P=-1,k=(ae=1<<(K=ue))-1,u===1&&852<ae||u===2&&592<ae)return 1;for(;;){for(B=x-ce,V=g[O]<U?(I=0,g[O]):g[O]>U?(I=_e[ze+g[O]],R[ie+g[O]]):(I=96,0),y=1<<x-ce,p=w=1<<K;h[E+(C>>ce)+(w-=y)]=B<<24|I<<16|V|0,w!==0;);for(y=1<<x-1;C&y;)y>>=1;if(y!==0?(C&=y-1,C+=y):C=0,O++,--re[x]==0){if(x===N)break;x=c[d+g[O]]}if(ue<x&&(C&k)!==P){for(ce===0&&(ce=ue),E+=p,H=1<<(K=x-ce);K+ce<N&&!((H-=re[K+ce])<=0);)K++,H<<=1;if(ae+=1<<K,u===1&&852<ae||u===2&&592<ae)return 1;h[P=C&k]=ue<<24|K<<16|E-f|0}}return C!==0&&(h[E+C]=x-ce<<24|4194304|0),v.bits=ue,0}},{"../utils/common":41}],51:[function(e,r,n){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,r,n){var o=e("../utils/common"),t=0,i=1;function a(b){for(var T=b.length;0<=--T;)b[T]=0}var s=0,u=29,c=256,d=c+1+u,l=30,h=19,f=2*d+1,g=15,v=16,y=7,w=256,P=16,k=17,E=18,U=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],B=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=Array(2*(d+2));a(L);var x=Array(2*l);a(x);var O=Array(512);a(O);var p=Array(256);a(p);var N=Array(u);a(N);var ue,K,ce,H=Array(l);function ae(b,T,F,J,j){this.static_tree=b,this.extra_bits=T,this.extra_base=F,this.elems=J,this.max_length=j,this.has_stree=b&&b.length}function C(b,T){this.dyn_tree=b,this.max_code=0,this.stat_desc=T}function R(b){return b<256?O[b]:O[256+(b>>>7)]}function ie(b,T){b.pending_buf[b.pending++]=255&T,b.pending_buf[b.pending++]=T>>>8&255}function re(b,T,F){b.bi_valid>v-F?(b.bi_buf|=T<<b.bi_valid&65535,ie(b,b.bi_buf),b.bi_buf=T>>v-b.bi_valid,b.bi_valid+=F-v):(b.bi_buf|=T<<b.bi_valid&65535,b.bi_valid+=F)}function ee(b,T,F){re(b,F[2*T],F[2*T+1])}function _e(b,T){for(var F=0;F|=1&b,b>>>=1,F<<=1,0<--T;);return F>>>1}function ze(b,T,F){var J,j,Y=Array(g+1),ne=0;for(J=1;J<=g;J++)Y[J]=ne=ne+F[J-1]<<1;for(j=0;j<=T;j++){var Q=b[2*j+1];Q!==0&&(b[2*j]=_e(Y[Q]++,Q))}}function fe(b){var T;for(T=0;T<d;T++)b.dyn_ltree[2*T]=0;for(T=0;T<l;T++)b.dyn_dtree[2*T]=0;for(T=0;T<h;T++)b.bl_tree[2*T]=0;b.dyn_ltree[2*w]=1,b.opt_len=b.static_len=0,b.last_lit=b.matches=0}function pe(b){8<b.bi_valid?ie(b,b.bi_buf):0<b.bi_valid&&(b.pending_buf[b.pending++]=b.bi_buf),b.bi_buf=0,b.bi_valid=0}function Se(b,T,F,J){var j=2*T,Y=2*F;return b[j]<b[Y]||b[j]===b[Y]&&J[T]<=J[F]}function xe(b,T,F){for(var J=b.heap[F],j=F<<1;j<=b.heap_len&&(j<b.heap_len&&Se(T,b.heap[j+1],b.heap[j],b.depth)&&j++,!Se(T,J,b.heap[j],b.depth));)b.heap[F]=b.heap[j],F=j,j<<=1;b.heap[F]=J}function Ve(b,T,F){var J,j,Y,ne,Q=0;if(b.last_lit!==0)for(;J=b.pending_buf[b.d_buf+2*Q]<<8|b.pending_buf[b.d_buf+2*Q+1],j=b.pending_buf[b.l_buf+Q],Q++,J===0?ee(b,j,T):(ee(b,(Y=p[j])+c+1,T),(ne=U[Y])!==0&&re(b,j-=N[Y],ne),ee(b,Y=R(--J),F),(ne=B[Y])!==0&&re(b,J-=H[Y],ne)),Q<b.last_lit;);ee(b,w,T)}function He(b,T){var F,J,j,Y=T.dyn_tree,ne=T.stat_desc.static_tree,Q=T.stat_desc.has_stree,oe=T.stat_desc.elems,be=-1;for(b.heap_len=0,b.heap_max=f,F=0;F<oe;F++)Y[2*F]!==0?(b.heap[++b.heap_len]=be=F,b.depth[F]=0):Y[2*F+1]=0;for(;b.heap_len<2;)Y[2*(j=b.heap[++b.heap_len]=be<2?++be:0)]=1,b.depth[j]=0,b.opt_len--,Q&&(b.static_len-=ne[2*j+1]);for(T.max_code=be,F=b.heap_len>>1;1<=F;F--)xe(b,Y,F);for(j=oe;F=b.heap[1],b.heap[1]=b.heap[b.heap_len--],xe(b,Y,1),J=b.heap[1],b.heap[--b.heap_max]=F,b.heap[--b.heap_max]=J,Y[2*j]=Y[2*F]+Y[2*J],b.depth[j]=(b.depth[F]>=b.depth[J]?b.depth[F]:b.depth[J])+1,Y[2*F+1]=Y[2*J+1]=j,b.heap[1]=j++,xe(b,Y,1),2<=b.heap_len;);b.heap[--b.heap_max]=b.heap[1],function(me,qe){var zr,Ye,Pr,Ie,wn,Lo,st=qe.dyn_tree,tm=qe.max_code,yb=qe.stat_desc.static_tree,bb=qe.stat_desc.has_stree,_b=qe.stat_desc.extra_bits,rm=qe.stat_desc.extra_base,Tr=qe.stat_desc.max_length,kn=0;for(Ie=0;Ie<=g;Ie++)me.bl_count[Ie]=0;for(st[2*me.heap[me.heap_max]+1]=0,zr=me.heap_max+1;zr<f;zr++)Tr<(Ie=st[2*st[2*(Ye=me.heap[zr])+1]+1]+1)&&(Ie=Tr,kn++),st[2*Ye+1]=Ie,tm<Ye||(me.bl_count[Ie]++,wn=0,rm<=Ye&&(wn=_b[Ye-rm]),Lo=st[2*Ye],me.opt_len+=Lo*(Ie+wn),bb&&(me.static_len+=Lo*(yb[2*Ye+1]+wn)));if(kn!==0){do{for(Ie=Tr-1;me.bl_count[Ie]===0;)Ie--;me.bl_count[Ie]--,me.bl_count[Ie+1]+=2,me.bl_count[Tr]--,kn-=2}while(0<kn);for(Ie=Tr;Ie!==0;Ie--)for(Ye=me.bl_count[Ie];Ye!==0;)tm<(Pr=me.heap[--zr])||(st[2*Pr+1]!==Ie&&(me.opt_len+=(Ie-st[2*Pr+1])*st[2*Pr],st[2*Pr+1]=Ie),Ye--)}}(b,T),ze(Y,be,b.bl_count)}function m(b,T,F){var J,j,Y=-1,ne=T[1],Q=0,oe=7,be=4;for(ne===0&&(oe=138,be=3),T[2*(F+1)+1]=65535,J=0;J<=F;J++)j=ne,ne=T[2*(J+1)+1],++Q<oe&&j===ne||(Q<be?b.bl_tree[2*j]+=Q:j!==0?(j!==Y&&b.bl_tree[2*j]++,b.bl_tree[2*P]++):Q<=10?b.bl_tree[2*k]++:b.bl_tree[2*E]++,Y=j,be=(Q=0)===ne?(oe=138,3):j===ne?(oe=6,3):(oe=7,4))}function Z(b,T,F){var J,j,Y=-1,ne=T[1],Q=0,oe=7,be=4;for(ne===0&&(oe=138,be=3),J=0;J<=F;J++)if(j=ne,ne=T[2*(J+1)+1],!(++Q<oe&&j===ne)){if(Q<be)for(;ee(b,j,b.bl_tree),--Q!=0;);else j!==0?(j!==Y&&(ee(b,j,b.bl_tree),Q--),ee(b,P,b.bl_tree),re(b,Q-3,2)):Q<=10?(ee(b,k,b.bl_tree),re(b,Q-3,3)):(ee(b,E,b.bl_tree),re(b,Q-11,7));Y=j,be=(Q=0)===ne?(oe=138,3):j===ne?(oe=6,3):(oe=7,4)}}a(H);var A=!1;function _(b,T,F,J){re(b,(s<<1)+(J?1:0),3),function(j,Y,ne,Q){pe(j),Q&&(ie(j,ne),ie(j,~ne)),o.arraySet(j.pending_buf,j.window,Y,ne,j.pending),j.pending+=ne}(b,T,F,!0)}n._tr_init=function(b){A||(function(){var T,F,J,j,Y,ne=Array(g+1);for(j=J=0;j<u-1;j++)for(N[j]=J,T=0;T<1<<U[j];T++)p[J++]=j;for(p[J-1]=j,j=Y=0;j<16;j++)for(H[j]=Y,T=0;T<1<<B[j];T++)O[Y++]=j;for(Y>>=7;j<l;j++)for(H[j]=Y<<7,T=0;T<1<<B[j]-7;T++)O[256+Y++]=j;for(F=0;F<=g;F++)ne[F]=0;for(T=0;T<=143;)L[2*T+1]=8,T++,ne[8]++;for(;T<=255;)L[2*T+1]=9,T++,ne[9]++;for(;T<=279;)L[2*T+1]=7,T++,ne[7]++;for(;T<=287;)L[2*T+1]=8,T++,ne[8]++;for(ze(L,d+1,ne),T=0;T<l;T++)x[2*T+1]=5,x[2*T]=_e(T,5);ue=new ae(L,U,c+1,d,g),K=new ae(x,B,0,l,g),ce=new ae([],I,0,h,y)}(),A=!0),b.l_desc=new C(b.dyn_ltree,ue),b.d_desc=new C(b.dyn_dtree,K),b.bl_desc=new C(b.bl_tree,ce),b.bi_buf=0,b.bi_valid=0,fe(b)},n._tr_stored_block=_,n._tr_flush_block=function(b,T,F,J){var j,Y,ne=0;0<b.level?(b.strm.data_type===2&&(b.strm.data_type=function(Q){var oe,be=4093624447;for(oe=0;oe<=31;oe++,be>>>=1)if(1&be&&Q.dyn_ltree[2*oe]!==0)return t;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return i;for(oe=32;oe<c;oe++)if(Q.dyn_ltree[2*oe]!==0)return i;return t}(b)),He(b,b.l_desc),He(b,b.d_desc),ne=function(Q){var oe;for(m(Q,Q.dyn_ltree,Q.l_desc.max_code),m(Q,Q.dyn_dtree,Q.d_desc.max_code),He(Q,Q.bl_desc),oe=h-1;3<=oe&&Q.bl_tree[2*V[oe]+1]===0;oe--);return Q.opt_len+=3*(oe+1)+5+5+4,oe}(b),j=b.opt_len+3+7>>>3,(Y=b.static_len+3+7>>>3)<=j&&(j=Y)):j=Y=F+5,F+4<=j&&T!==-1?_(b,T,F,J):b.strategy===4||Y===j?(re(b,2+(J?1:0),3),Ve(b,L,x)):(re(b,4+(J?1:0),3),function(Q,oe,be,me){var qe;for(re(Q,oe-257,5),re(Q,be-1,5),re(Q,me-4,4),qe=0;qe<me;qe++)re(Q,Q.bl_tree[2*V[qe]+1],3);Z(Q,Q.dyn_ltree,oe-1),Z(Q,Q.dyn_dtree,be-1)}(b,b.l_desc.max_code+1,b.d_desc.max_code+1,ne+1),Ve(b,b.dyn_ltree,b.dyn_dtree)),fe(b),J&&pe(b)},n._tr_tally=function(b,T,F){return b.pending_buf[b.d_buf+2*b.last_lit]=T>>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&T,b.pending_buf[b.l_buf+b.last_lit]=255&F,b.last_lit++,T===0?b.dyn_ltree[2*F]++:(b.matches++,T--,b.dyn_ltree[2*(p[F]+c+1)]++,b.dyn_dtree[2*R(T)]++),b.last_lit===b.lit_bufsize-1},n._tr_align=function(b){re(b,2,3),ee(b,w,L),function(T){T.bi_valid===16?(ie(T,T.bi_buf),T.bi_buf=0,T.bi_valid=0):8<=T.bi_valid&&(T.pending_buf[T.pending++]=255&T.bi_buf,T.bi_buf>>=8,T.bi_valid-=8)}(b)}},{"../utils/common":41}],53:[function(e,r,n){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,r,n){(function(o){(function(t,i){if(!t.setImmediate){var a,s,u,c,d=1,l={},h=!1,f=t.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(t);g=g&&g.setTimeout?g:t,a={}.toString.call(t.process)==="[object process]"?function(P){process.nextTick(function(){y(P)})}:function(){if(t.postMessage&&!t.importScripts){var P=!0,k=t.onmessage;return t.onmessage=function(){P=!1},t.postMessage("","*"),t.onmessage=k,P}}()?(c="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",w,!1):t.attachEvent("onmessage",w),function(P){t.postMessage(c+P,"*")}):t.MessageChannel?((u=new MessageChannel).port1.onmessage=function(P){y(P.data)},function(P){u.port2.postMessage(P)}):f&&("onreadystatechange"in f.createElement("script"))?(s=f.documentElement,function(P){var k=f.createElement("script");k.onreadystatechange=function(){y(P),k.onreadystatechange=null,s.removeChild(k),k=null},s.appendChild(k)}):function(P){setTimeout(y,0,P)},g.setImmediate=function(P){typeof P!="function"&&(P=Function(""+P));for(var k=Array(arguments.length-1),E=0;E<k.length;E++)k[E]=arguments[E+1];var U={callback:P,args:k};return l[d]=U,a(d),d++},g.clearImmediate=v}function v(P){delete l[P]}function y(P){if(h)setTimeout(y,0,P);else{var k=l[P];if(k){h=!0;try{(function(E){var{callback:U,args:B}=E;switch(B.length){case 0:U();break;case 1:U(B[0]);break;case 2:U(B[0],B[1]);break;case 3:U(B[0],B[1],B[2]);break;default:U.apply(i,B)}})(k)}finally{v(P),h=!1}}}}function w(P){P.source===t&&typeof P.data=="string"&&P.data.indexOf(c)===0&&y(+P.data.slice(c.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var ke=G(function(Vd,lh){var pn=function(e){return e&&e.Math===Math&&e};lh.exports=pn(typeof globalThis=="object"&&globalThis)||pn(typeof window=="object"&&window)||pn(typeof self=="object"&&self)||pn(typeof global=="object"&&global)||pn(typeof Vd=="object"&&Vd)||function(){return this}()||Function("return this")()});var ft=G(function(p2,dh){dh.exports=function(e){try{return!!e()}catch(r){return!0}}});var mt=G(function(h2,fh){var k$=ft();fh.exports=!k$(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var no=G(function(g2,mh){var I$=ft();mh.exports=!I$(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var hn=G(function(v2,ph){var S$=no(),io=Function.prototype.call;ph.exports=S$?io.bind(io):function(){return io.apply(io,arguments)}});var vh=G(function(P$){var hh={}.propertyIsEnumerable,gh=Object.getOwnPropertyDescriptor,z$=gh&&!hh.call({1:2},1);P$.f=z$?function(r){var n=gh(this,r);return!!n&&n.enumerable}:hh});var qd=G(function(b2,yh){yh.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Ee=G(function(_2,xh){var bh=no(),_h=Function.prototype,Jd=_h.call,E$=bh&&_h.bind.bind(Jd,Jd);xh.exports=bh?E$:function(e){return function(){return Jd.apply(e,arguments)}}});var gn=G(function(x2,wh){var $h=Ee(),O$=$h({}.toString),j$=$h("".slice);wh.exports=function(e){return j$(O$(e),8,-1)}});var Ih=G(function($2,kh){var D$=Ee(),U$=ft(),R$=gn(),Wd=Object,C$=D$("".split);kh.exports=U$(function(){return!Wd("z").propertyIsEnumerable(0)})?function(e){return R$(e)==="String"?C$(e,""):Wd(e)}:Wd});var oo=G(function(w2,Sh){Sh.exports=function(e){return e===null||e===void 0}});var Gd=G(function(k2,zh){var A$=oo(),N$=TypeError;zh.exports=function(e){if(A$(e))throw new N$("Can't call method on "+e);return e}});var ao=G(function(I2,Ph){var Z$=Ih(),L$=Gd();Ph.exports=function(e){return Z$(L$(e))}});var We=G(function(S2,Th){var Hd=typeof document=="object"&&document.all;Th.exports=typeof Hd>"u"&&Hd!==void 0?function(e){return typeof e=="function"||e===Hd}:function(e){return typeof e=="function"}});var Lt=G(function(z2,Eh){var F$=We();Eh.exports=function(e){return typeof e=="object"?e!==null:F$(e)}});var vn=G(function(P2,Oh){var Kd=ke(),B$=We(),M$=function(e){return B$(e)?e:void 0};Oh.exports=function(e,r){return arguments.length<2?M$(Kd[e]):Kd[e]&&Kd[e][r]}});var Xd=G(function(T2,jh){var V$=Ee();jh.exports=V$({}.isPrototypeOf)});var Ch=G(function(E2,Rh){var q$=ke(),Dh=q$.navigator,Uh=Dh&&Dh.userAgent;Rh.exports=Uh?String(Uh):""});var Qd=G(function(O2,Bh){var Fh=ke(),Yd=Ch(),Ah=Fh.process,Nh=Fh.Deno,Zh=Ah&&Ah.versions||Nh&&Nh.version,Lh=Zh&&Zh.v8,Xe,so;if(Lh)Xe=Lh.split("."),so=Xe[0]>0&&Xe[0]<4?1:+(Xe[0]+Xe[1]);if(!so&&Yd){if(Xe=Yd.match(/Edge\/(\d+)/),!Xe||Xe[1]>=74){if(Xe=Yd.match(/Chrome\/(\d+)/),Xe)so=+Xe[1]}}Bh.exports=so});var ef=G(function(j2,Vh){var Mh=Qd(),J$=ft(),W$=ke(),G$=W$.String;Vh.exports=!!Object.getOwnPropertySymbols&&!J$(function(){var e=Symbol("symbol detection");return!G$(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mh&&Mh<41})});var tf=G(function(D2,qh){var H$=ef();qh.exports=H$&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var rf=G(function(U2,Jh){var K$=vn(),X$=We(),Y$=Xd(),Q$=tf(),ew=Object;Jh.exports=Q$?function(e){return typeof e=="symbol"}:function(e){var r=K$("Symbol");return X$(r)&&Y$(r.prototype,ew(e))}});var Gh=G(function(R2,Wh){var tw=String;Wh.exports=function(e){try{return tw(e)}catch(r){return"Object"}}});var xr=G(function(C2,Hh){var rw=We(),nw=Gh(),iw=TypeError;Hh.exports=function(e){if(rw(e))return e;throw new iw(nw(e)+" is not a function")}});var nf=G(function(A2,Kh){var ow=xr(),aw=oo();Kh.exports=function(e,r){var n=e[r];return aw(n)?void 0:ow(n)}});var Yh=G(function(N2,Xh){var of=hn(),af=We(),sf=Lt(),sw=TypeError;Xh.exports=function(e,r){var n,o;if(r==="string"&&af(n=e.toString)&&!sf(o=of(n,e)))return o;if(af(n=e.valueOf)&&!sf(o=of(n,e)))return o;if(r!=="string"&&af(n=e.toString)&&!sf(o=of(n,e)))return o;throw new sw("Can't convert object to primitive value")}});var eg=G(function(Z2,Qh){Qh.exports=!1});var uo=G(function(L2,rg){var tg=ke(),uw=Object.defineProperty;rg.exports=function(e,r){try{uw(tg,e,{value:r,configurable:!0,writable:!0})}catch(n){tg[e]=r}return r}});var co=G(function(F2,og){var cw=eg(),lw=ke(),dw=uo(),ng="__core-js_shared__",ig=og.exports=lw[ng]||dw(ng,{});(ig.versions||(ig.versions=[])).push({version:"3.50.0",mode:cw?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var uf=G(function(B2,sg){var ag=co(),fw=Object.create||Object;sg.exports=function(e,r){return ag[e]||(ag[e]=r||fw(null))}});var cg=G(function(M2,ug){var mw=Gd(),pw=Object;ug.exports=function(e){return pw(mw(e))}});var it=G(function(V2,lg){var hw=Ee(),gw=cg(),vw=hw({}.hasOwnProperty);lg.exports=Object.hasOwn||function(r,n){return vw(gw(r),n)}});var cf=G(function(q2,dg){var yw=Ee(),bw=0,_w=Math.random(),xw=yw(1.1 .toString);dg.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+xw(++bw+_w,36)}});var Ft=G(function(J2,mg){var $w=ke(),ww=uf(),fg=it(),kw=cf(),Iw=ef(),Sw=tf(),$r=$w.Symbol,lf=ww("wks"),zw=Sw?$r.for||$r:$r&&$r.withoutSetter||kw;mg.exports=function(e){if(!fg(lf,e))lf[e]=Iw&&fg($r,e)?$r[e]:zw("Symbol."+e);return lf[e]}});var vg=G(function(W2,gg){var Pw=hn(),pg=Lt(),hg=rf(),Tw=nf(),Ew=Yh(),Ow=Ft(),jw=TypeError,Dw=Ow("toPrimitive");gg.exports=function(e,r){if(!pg(e)||hg(e))return e;var n=Tw(e,Dw),o;if(n){if(r===void 0)r="default";if(o=Pw(n,e,r),!pg(o)||hg(o))return o;throw new jw("Can't convert object to primitive value")}if(r===void 0)r="number";return Ew(e,r)}});var df=G(function(G2,yg){var Uw=vg(),Rw=rf();yg.exports=function(e){var r=Uw(e,"string");return Rw(r)?r:r+""}});var xg=G(function(H2,_g){var Cw=ke(),bg=Lt(),ff=Cw.document,Aw=bg(ff)&&bg(ff.createElement);_g.exports=function(e){return Aw?ff.createElement(e):{}}});var mf=G(function(K2,$g){var Nw=mt(),Zw=ft(),Lw=xg();$g.exports=!Nw&&!Zw(function(){return Object.defineProperty(Lw("div"),"a",{get:function(){return 7}}).a!==7})});var lo=G(function(Hw){var Fw=mt(),Bw=hn(),Mw=vh(),Vw=qd(),qw=ao(),Jw=df(),Ww=it(),Gw=mf(),wg=Object.getOwnPropertyDescriptor;Hw.f=Fw?wg:function(r,n){if(r=qw(r),n=Jw(n),Gw)try{return wg(r,n)}catch(o){}if(Ww(r,n))return Vw(!Bw(Mw.f,r,n),r[n])}});var Ig=G(function(Y2,kg){var Xw=mt(),Yw=ft();kg.exports=Xw&&Yw(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var fo=G(function(Q2,Sg){var Qw=Lt(),ek=String,tk=TypeError;Sg.exports=function(e){if(Qw(e))return e;throw new tk(ek(e)+" is not an object")}});var Bt=G(function(sk){var rk=mt(),nk=mf(),ik=Ig(),mo=fo(),zg=df(),ok=TypeError,pf=Object.defineProperty,ak=Object.getOwnPropertyDescriptor,hf="enumerable",gf="configurable",vf="writable";sk.f=rk?ik?function(r,n,o){if(mo(r),n=zg(n),mo(o),typeof r==="function"&&n==="prototype"&&"value"in o&&vf in o&&!o[vf]){var t=ak(r,n);if(t&&t[vf])r[n]=o.value,o={configurable:gf in o?o[gf]:t[gf],enumerable:hf in o?o[hf]:t[hf],writable:!1}}return pf(r,n,o)}:pf:function(r,n,o){if(mo(r),n=zg(n),mo(o),nk)try{return pf(r,n,o)}catch(t){}if("get"in o||"set"in o)throw new ok("Accessors not supported");if("value"in o)r[n]=o.value;return r}});var yf=G(function(tP,Pg){var ck=mt(),lk=Bt(),dk=qd();Pg.exports=ck?function(e,r,n){return lk.f(e,r,dk(1,n))}:function(e,r,n){return e[r]=n,e}});var Og=G(function(rP,Eg){var bf=mt(),fk=it(),Tg=Function.prototype,mk=bf&&Object.getOwnPropertyDescriptor,_f=fk(Tg,"name"),pk=_f&&function(){}.name==="something",hk=_f&&(!bf||bf&&mk(Tg,"name").configurable);Eg.exports={EXISTS:_f,PROPER:pk,CONFIGURABLE:hk}});var Dg=G(function(nP,jg){var gk=Ee(),vk=We(),xf=co(),yk=gk(Function.toString);if(!vk(xf.inspectSource))xf.inspectSource=function(e){return yk(e)};jg.exports=xf.inspectSource});var Cg=G(function(iP,Rg){var bk=ke(),_k=We(),Ug=bk.WeakMap;Rg.exports=_k(Ug)&&/native code/.test(String(Ug))});var Zg=G(function(oP,Ng){var xk=uf(),$k=cf(),Ag=xk("keys");Ng.exports=function(e){return Ag[e]||(Ag[e]=$k(e))}});var $f=G(function(aP,Lg){Lg.exports={}});var Sf=G(function(sP,Mg){var wk=Cg(),Bg=ke(),kk=Lt(),Ik=yf(),wf=it(),kf=co(),Sk=Zg(),zk=$f(),Fg="Object already initialized",If=Bg.TypeError,Pk=Bg.WeakMap,po,yn,ho,Tk=function(e){return ho(e)?yn(e):po(e,{})},Ek=function(e){return function(r){var n;if(!kk(r)||(n=yn(r)).type!==e)throw new If("Incompatible receiver, "+e+" required");return n}};if(wk||kf.state)Ge=kf.state||(kf.state=new Pk),Ge.get=Ge.get,Ge.has=Ge.has,Ge.set=Ge.set,po=function(e,r){if(Ge.has(e))throw new If(Fg);return r.facade=e,Ge.set(e,r),r},yn=function(e){return Ge.get(e)||{}},ho=function(e){return Ge.has(e)};else kt=Sk("state"),zk[kt]=!0,po=function(e,r){if(wf(e,kt))throw new If(Fg);return r.facade=e,Ik(e,kt,r),r},yn=function(e){return wf(e,kt)?e[kt]:{}},ho=function(e){return wf(e,kt)};var Ge,kt;Mg.exports={set:po,get:yn,has:ho,enforce:Tk,getterFor:Ek}});var Tf=G(function(uP,Jg){var Pf=Ee(),Ok=ft(),jk=We(),go=it(),zf=mt(),Dk=Og().CONFIGURABLE,Uk=Dg(),qg=Sf(),Rk=qg.enforce,Ck=qg.get,Vg=String,vo=Object.defineProperty,Ak=Pf("".slice),Nk=Pf("".replace),Zk=Pf([].join),Lk=zf&&!Ok(function(){return vo(function(){},"length",{value:8}).length!==8}),Fk=String(String).split("String"),Bk=Jg.exports=function(e,r,n){if(Ak(Vg(r),0,7)==="Symbol(")r="["+Nk(Vg(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]";if(n&&n.getter)r="get "+r;if(n&&n.setter)r="set "+r;if(!go(e,"name")||Dk&&e.name!==r)if(zf)vo(e,"name",{value:r,configurable:!0});else e.name=r;if(Lk&&n&&go(n,"arity")&&e.length!==n.arity)vo(e,"length",{value:n.arity});try{if(n&&go(n,"constructor")&&n.constructor){if(zf)vo(e,"prototype",{writable:!1})}else if(e.prototype)e.prototype=void 0}catch(t){}var o=Rk(e);if(!go(o,"source"))o.source=Zk(Fk,typeof r=="string"?r:"");return e};Function.prototype.toString=Bk(function(){return jk(this)&&Ck(this).source||Uk(this)},"toString")});var yo=G(function(cP,Wg){var Mk=We(),Vk=Bt(),qk=Tf(),Jk=uo();Wg.exports=function(e,r,n,o){if(!o)o={};var t=o.enumerable,i=o.name!==void 0?o.name:r;if(Mk(n))qk(n,i,o);if(o.global)if(t)e[r]=n;else Jk(r,n);else{try{if(!o.unsafe)delete e[r];else if(e[r])t=!0}catch(a){}if(t)e[r]=n;else Vk.f(e,r,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}});var Hg=G(function(lP,Gg){var{ceil:Wk,floor:Gk}=Math;Gg.exports=Math.trunc||function(r){var n=+r;return(n>0?Gk:Wk)(n)}});var Ef=G(function(dP,Kg){var Hk=Hg();Kg.exports=function(e){var r=+e;return r!==r||r===0?0:Hk(r)}});var Yg=G(function(fP,Xg){var Kk=Ef(),Xk=Math.max,Yk=Math.min;Xg.exports=function(e,r){var n=Kk(e);return n<0?Xk(n+r,0):Yk(n,r)}});var ev=G(function(mP,Qg){var Qk=Ef(),eI=Math.min;Qg.exports=function(e){var r=Qk(e);return r>0?eI(r,9007199254740991):0}});var Of=G(function(pP,tv){var tI=ev();tv.exports=function(e){return tI(e.length)}});var iv=G(function(hP,nv){var rI=ao(),nI=Yg(),iI=Of(),rv=function(e){return function(r,n,o){var t=rI(r),i=iI(t);if(i===0)return!e&&-1;var a=nI(o,i),s;if(e&&n!==n){while(i>a)if(s=t[a++],s!==s)return!0}else for(;i>a;a++)if((e||(a in t))&&t[a]===n)return e||a||0;return!e&&-1}};nv.exports={includes:rv(!0),indexOf:rv(!1)}});var sv=G(function(gP,av){var oI=Ee(),jf=it(),aI=ao(),sI=iv().indexOf,uI=$f(),ov=oI([].push);av.exports=function(e,r){var n=aI(e),o=0,t=[],i;for(i in n)!jf(uI,i)&&jf(n,i)&&ov(t,i);while(r.length>o)if(jf(n,i=r[o++]))~sI(t,i)||ov(t,i);return t}});var cv=G(function(vP,uv){uv.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var lv=G(function(fI){var cI=sv(),lI=cv(),dI=lI.concat("length","prototype");fI.f=Object.getOwnPropertyNames||function(r){return cI(r,dI)}});var dv=G(function(pI){pI.f=Object.getOwnPropertySymbols});var mv=G(function(_P,fv){var gI=vn(),vI=Ee(),yI=lv(),bI=dv(),_I=fo(),xI=vI([].concat);fv.exports=gI("Reflect","ownKeys")||function(r){var n=yI.f(_I(r)),o=bI.f;return o?xI(n,o(r)):n}});var gv=G(function(xP,hv){var pv=it(),$I=mv(),wI=lo(),kI=Bt();hv.exports=function(e,r,n){var o=$I(r),t=kI.f,i=wI.f;for(var a=0;a<o.length;a++){var s=o[a];if(!pv(e,s)&&!(n&&pv(n,s)))t(e,s,i(r,s))}}});var yv=G(function($P,vv){var II=ft(),SI=We(),zI=/#|\.prototype\./,bn=function(e,r){var n=TI[PI(e)];return n===OI?!0:n===EI?!1:SI(r)?II(r):!!r},PI=bn.normalize=function(e){return String(e).replace(zI,".").toLowerCase()},TI=bn.data={},EI=bn.NATIVE="N",OI=bn.POLYFILL="P";vv.exports=bn});var wr=G(function(wP,bv){var bo=ke(),jI=lo().f,DI=yf(),UI=yo(),RI=uo(),CI=gv(),AI=yv();bv.exports=function(e,r){var{target:n,global:o,stat:t}=e,i,a,s,u,c,d;if(o)a=bo;else if(t)a=bo[n]||RI(n,{});else a=bo[n]&&bo[n].prototype;if(a)for(s in r){if(c=r[s],e.dontCallGetSet)d=jI(a,s),u=d&&d.value;else u=a[s];if(i=AI(o?s:n+(t?".":"#")+s,e.forced),!i&&u!==void 0){if(typeof c==typeof u)continue;CI(c,u)}if(e.sham||u&&u.sham)DI(c,"sham",!0);UI(a,s,c,e)}}});var xv=G(function(kP,_v){var NI=Xd(),ZI=TypeError;_v.exports=function(e,r){if(NI(r,e))return e;throw new ZI("Incorrect invocation")}});var wv=G(function(IP,$v){var LI=yo();$v.exports=function(e,r,n){for(var o in r)LI(e,o,r[o],n);return e}});var Sv=G(function(SP,Iv){var kv=Tf(),FI=Bt();Iv.exports=function(e,r,n){if(n.get)kv(n.get,r,{getter:!0});if(n.set)kv(n.set,r,{setter:!0});return FI.f(e,r,n)}});var Pv=G(function(zP,zv){var BI=gn(),MI=Ee();zv.exports=function(e){if(BI(e)==="Function")return MI(e)}});var Ov=G(function(PP,Ev){var Tv=Pv(),VI=xr(),qI=no(),JI=Tv(Tv.bind);Ev.exports=function(e,r){return VI(e),r===void 0?e:qI?JI(e,r):function(){return e.apply(r,arguments)}}});var Av=G(function(TP,Cv){var WI=vn(),GI=hn(),HI=Ee(),KI=Ov(),XI=fo(),YI=xr(),Uv=oo(),Df=nf(),Rv=Ft(),QI=Rv("asyncDispose"),jv=Rv("dispose"),e0=HI([].push),t0=function(e,r){if(r==="async-dispose"){var n=Df(e,QI);if(n!==void 0)return n;if(n=Df(e,jv),n===void 0)return n;return function(){var o=this,t=WI("Promise");return new t(function(i){GI(n,o),i(void 0)})}}return Df(e,jv)},Dv=function(e,r,n){if(arguments.length<3&&!Uv(e))n=YI(t0(XI(e),r));return n===void 0?function(){return}:KI(n,e)};Cv.exports=function(e,r,n,o){var t;if(arguments.length<4){if(Uv(r)&&n==="sync-dispose")return;t=Dv(r,n)}else t=Dv(void 0,n,o);e0(e.stack,t)}});var qv=G(function(){var r0=wr(),xo=mt(),Fv=vn(),Nv=xr(),n0=xv(),Bv=yo(),i0=wv(),o0=Sv(),Mv=Ft(),Vv=Sf(),Uf=Av(),Zv=Qd(),Lv=Fv("Promise"),a0=Fv("SuppressedError"),s0=ReferenceError,u0=Mv("asyncDispose"),c0=Mv("toStringTag"),wo="AsyncDisposableStack",l0=Vv.set,$o=Vv.getterFor(wo),Rf="async-dispose",_n="disposed",d0="pending",_o=function(e){var r=$o(e);if(r.state===_n)throw new s0(wo+" already disposed");return r},Cf=function(){if(l0(n0(this,kr),{type:wo,state:d0,stack:[]}),!xo)this.disposed=!1},kr=Cf.prototype;i0(kr,{disposeAsync:function(){var r=this;return new Lv(function(n,o){var t=$o(r);if(t.state===_n)return n(void 0);if(t.state=_n,!xo)r.disposed=!0;var i=t.stack,a=i.length,s=!1,u,c=function(l){if(s)u=new a0(l,u);else s=!0,u=l;d()},d=function(){if(a){var l=i[--a];i[a]=null;try{Lv.resolve(l()).then(d,c)}catch(h){c(h)}}else t.stack=null,s?o(u):n(void 0)};d()})},use:function(r){return Uf(_o(this),r,Rf),r},adopt:function(r,n){var o=_o(this);return Nv(n),Uf(o,void 0,Rf,function(){return n(r)}),r},defer:function(r){var n=_o(this);Nv(r),Uf(n,void 0,Rf,r)},move:function(){var r=_o(this),n=new Cf;if($o(n).stack=r.stack,r.stack=[],r.state=_n,!xo)this.disposed=!0;return n}});if(xo)o0(kr,"disposed",{configurable:!0,get:function(){return $o(this).state===_n}});Bv(kr,u0,kr.disposeAsync,{name:"disposeAsync"});Bv(kr,c0,wo,{nonWritable:!0});var f0=Zv&&Zv<136;r0({global:!0,constructor:!0,forced:f0},{AsyncDisposableStack:Cf})});var Wv=G(function(jP,Jv){var m0=ke();Jv.exports=m0});var Gv=G(function(h0){var p0=Ft();h0.f=p0});var Xv=G(function(UP,Kv){var Hv=Wv(),v0=it(),y0=Gv(),b0=Bt().f;Kv.exports=function(e){var r=Hv.Symbol||(Hv.Symbol={});if(!v0(r,e))b0(r,e,{value:y0.f(e)})}});var Yv=G(function(){var _0=ke(),x0=Xv(),$0=Bt().f,w0=lo().f,Af=_0.Symbol;x0("asyncDispose");if(Af){if(Ir=w0(Af,"asyncDispose"),Ir.enumerable&&Ir.configurable&&Ir.writable)$0(Af,"asyncDispose",{value:Ir.value,enumerable:!1,configurable:!1,writable:!1})}var Ir});var ey=G(function(AP,Qv){var k0=Of();Qv.exports=function(e,r,n){var o=0,t=arguments.length>2?n:k0(r),i=new e(t);while(t>o)i[o]=r[o++];return i}});var Nf=G(function(NP,ty){var I0=Lt(),S0=String,z0=TypeError;ty.exports=function(e){if(e===void 0||I0(e))return e;throw new z0(S0(e)+" is not an object or undefined")}});var Zf=G(function(ZP,ry){var P0=TypeError;ry.exports=function(e){if(typeof e=="string")return e;throw new P0("Argument is not a string")}});var Lf=G(function(LP,sy){var ay="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ny=ay+"+/",iy=ay+"-_",oy=function(e){var r={},n=0;for(;n<64;n++)r[e.charAt(n)]=n;return r};sy.exports={i2c:ny,c2i:oy(ny),i2cUrl:iy,c2iUrl:oy(iy)}});var Ff=G(function(FP,uy){var T0=TypeError;uy.exports=function(e){var r=e&&e.alphabet;if(r===void 0||r==="base64"||r==="base64url")return r||"base64";throw new T0("Incorrect `alphabet` option")}});var ly=G(function(BP,cy){cy.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"});var fy=G(function(MP,dy){var E0=Ee(),O0=xr();dy.exports=function(e,r,n){try{return E0(O0(Object.getOwnPropertyDescriptor(e,r)[n]))}catch(o){}}});var gy=G(function(VP,hy){var py=ke(),j0=fy(),D0=gn(),my=py.ArrayBuffer,U0=py.TypeError;hy.exports=my&&j0(my.prototype,"byteLength","get")||function(e){if(D0(e)!=="ArrayBuffer")throw new U0("ArrayBuffer expected");return e.byteLength}});var yy=G(function(qP,vy){var R0=ke(),C0=ly(),A0=gy(),N0=R0.DataView;vy.exports=function(e){if(!C0||A0(e)!==0)return!1;try{return new N0(e),!1}catch(r){return!0}}});var ko=G(function(JP,by){var Z0=yy(),L0=TypeError;by.exports=function(e){if(Z0(e))throw new L0("ArrayBuffer is detached");return e}});var $y=G(function(WP,xy){var qf=ke(),F0=Ee(),B0=Nf(),M0=Zf(),V0=it(),_y=Lf(),q0=Ff(),J0=ko(),W0=_y.c2i,G0=_y.c2iUrl,It=qf.SyntaxError,H0=qf.TypeError,K0=qf.Array,Mt=F0("".charAt),X0=Math.floor,Bf=function(e,r){var n=e.length;for(;r<n;r++){var o=Mt(e,r);if(o!==" "&&o!=="\t"&&o!==`
|
|
13
|
+
`&&o!=="\f"&&o!=="\r")break}return r},Mf=function(e,r,n){var o=e.length;if(o<4)e+=o===2?"AA":"A";var t=(r[Mt(e,0)]<<18)+(r[Mt(e,1)]<<12)+(r[Mt(e,2)]<<6)+r[Mt(e,3)],i=[t>>16&255,t>>8&255,t&255];if(o===2){if(n&&i[1]!==0)throw new It("Extra bits");return[i[0]]}if(o===3){if(n&&i[2]!==0)throw new It("Extra bits");return[i[0],i[1]]}return i},Vf=function(e,r,n){var o=r.length;for(var t=0;t<o;t++)e[n+t]=r[t];return n+o};xy.exports=function(e,r,n,o){M0(e),B0(r);var t=q0(r)==="base64"?W0:G0,i=r?r.lastChunkHandling:void 0;if(i===void 0)i="loose";if(i!=="loose"&&i!=="strict"&&i!=="stop-before-partial")throw new H0("Incorrect `lastChunkHandling` option");if(n)J0(n.buffer);var a=e.length,s=n||K0(X0(a*3/4)),u=0,c=0,d="",l=0;if(o)while(!0){if(l=Bf(e,l),l===a){if(d.length>0){if(i==="stop-before-partial")break;if(i==="loose"){if(d.length===1)throw new It("Malformed padding: exactly one additional character");u=Vf(s,Mf(d,t,!1),u)}else throw new It("Missing padding")}c=a;break}var h=Mt(e,l);if(++l,h==="="){if(d.length<2)throw new It("Padding is too early");if(l=Bf(e,l),d.length===2){if(l===a){if(i==="stop-before-partial")break;throw new It("Malformed padding: only one =")}if(Mt(e,l)==="=")++l,l=Bf(e,l)}if(l<a)throw new It("Unexpected character after padding");u=Vf(s,Mf(d,t,i==="strict"),u),c=a;break}if(!V0(t,h))throw new It("Unexpected character");var f=o-u;if(f===1&&d.length===2||f===2&&d.length===3)break;if(d+=h,d.length===4){if(u=Vf(s,Mf(d,t,!1),u),d="",c=l,u===o)break}}if(!n)s.length=u;return{bytes:s,read:c,written:u}}});var wy=G(function(){var Y0=wr(),Q0=ke(),eS=ey(),tS=$y(),Sr=Q0.Uint8Array,rS=!Sr||!Sr.fromBase64||!function(){try{Sr.fromBase64("a");return}catch(e){}try{Sr.fromBase64("",null)}catch(e){return!0}}();if(Sr)Y0({target:"Uint8Array",stat:!0,forced:rS},{fromBase64:function(r){var n=tS(r,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return eS(Sr,n.bytes)}})});var zy=G(function(KP,Sy){var Iy=ke(),nS=Ee(),iS=Iy.Uint8Array,ky=Iy.SyntaxError,oS=Math.min,aS=nS("".match);Sy.exports=function(e,r){var n=e.length;if(n%2!==0)throw new ky("String should be an even number of characters");var o=r?oS(r.length,n/2):n/2,t=r||new iS(o),i=aS(e,/[\S\s]{2}/g),a=0;for(;a<o;a++){var s=+("0x"+i[a]+"0");if(s!==s)throw new ky("String should only contain hex characters");t[a]=s>>4}return{bytes:t,read:a<<1}}});var Py=G(function(){var sS=wr(),uS=ke(),cS=Zf(),lS=zy();if(uS.Uint8Array)sS({target:"Uint8Array",stat:!0},{fromHex:function(r){return lS(cS(r)).bytes}})});var Oy=G(function(QP,Ey){var dS=Ft(),fS=dS("toStringTag"),Ty={};Ty[fS]="z";Ey.exports=String(Ty)==="[object z]"});var Dy=G(function(eT,jy){var mS=Oy(),pS=We(),Io=gn(),hS=Ft(),gS=hS("toStringTag"),vS=Object,yS=Io(function(){return arguments}())==="Arguments",bS=function(e,r){try{return e[r]}catch(n){}};jy.exports=mS?Io:function(e){var r,n,o;return e===void 0?"Undefined":e===null?"Null":typeof(n=bS(r=vS(e),gS))=="string"?n:yS?Io(r):(o=Io(r))==="Object"&&pS(r.callee)?"Arguments":o}});var Jf=G(function(tT,Uy){var _S=Dy(),xS=TypeError;Uy.exports=function(e){if(_S(e)==="Uint8Array")return e;throw new xS("Argument is not an Uint8Array")}});var Ny=G(function(){var $S=wr(),Ry=ke(),Cy=Ee(),wS=Nf(),kS=Jf(),IS=ko(),Ay=Lf(),SS=Ff(),zS=Ay.i2c,PS=Ay.i2cUrl,TS=Math.floor,ES=Math.ceil,OS=Cy("".charAt),So=Ry.Uint8Array,jS=Ry.Array,DS=Cy([].join),US=!So||!So.prototype.toBase64||!function(){try{var e=new So;e.toBase64(null)}catch(r){return!0}}();if(So)$S({target:"Uint8Array",proto:!0,forced:US},{toBase64:function(){var r=kS(this),n=arguments.length?wS(arguments[0]):void 0,o=SS(n)==="base64"?zS:PS,t=!!n&&!!n.omitPadding;IS(this.buffer);var i=0,a=r.length,s=jS(t?TS(a/3)*4+(a%3?a%3+1:0):ES(a/3)*4),u=0,c,d=function(l){return OS(o,c>>6*l&63)};for(;i+2<a;i+=3)c=(r[i]<<16)+(r[i+1]<<8)+r[i+2],s[u++]=d(3),s[u++]=d(2),s[u++]=d(1),s[u++]=d(0);if(i+2===a){if(c=(r[i]<<16)+(r[i+1]<<8),s[u++]=d(3),s[u++]=d(2),s[u++]=d(1),!t)s[u++]="="}else if(i+1===a){if(c=r[i]<<16,s[u++]=d(3),s[u++]=d(2),!t)s[u++]="=",s[u++]="="}return DS(s,"")}})});var Ly=G(function(){var RS=wr(),CS=ke(),Zy=Ee(),AS=Jf(),NS=ko(),ZS=Zy(1.1 .toString),LS=Zy([].join),FS=Array,zo=CS.Uint8Array,BS=!zo||!zo.prototype.toHex||!function(){try{var e=new zo([255,255,255,255,255,255,255,255]);return e.toHex()==="ffffffffffffffff"}catch(r){return!1}}();if(zo)RS({target:"Uint8Array",proto:!0,forced:BS},{toHex:function(){AS(this),NS(this.buffer);var r=FS(this.length);for(var n=0,o=this.length;n<o;n++){var t=ZS(this[n],16);r[n]=t.length===1?"0"+t:t}return LS(r,"")}})});var By=G(function(Wf){/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var Fy;(function(e){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof Wf==="object")e(Wf);else if(typeof define==="function"&&define.amd)define(function(){var r={};return e(r),r});else e(Fy={});else e(Fy={})})(function(e){e.version="1.2.2";function r(){var I=0,V=Array(256);for(var L=0;L!=256;++L)I=L,I=I&1?-2097792136^I>>>1:I>>>1,I=I&1?-2097792136^I>>>1:I>>>1,I=I&1?-2097792136^I>>>1:I>>>1,I=I&1?-2097792136^I>>>1:I>>>1,I=I&1?-2097792136^I>>>1:I>>>1,I=I&1?-2097792136^I>>>1:I>>>1,I=I&1?-2097792136^I>>>1:I>>>1,I=I&1?-2097792136^I>>>1:I>>>1,V[L]=I;return typeof Int32Array<"u"?new Int32Array(V):V}var n=r();function o(I){var V=0,L=0,x=0,O=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(x=0;x!=256;++x)O[x]=I[x];for(x=0;x!=256;++x){L=I[x];for(V=256+x;V<4096;V+=256)L=O[V]=L>>>8^I[L&255]}var p=[];for(x=1;x!=16;++x)p[x-1]=typeof Int32Array<"u"?O.subarray(x*256,x*256+256):O.slice(x*256,x*256+256);return p}var t=o(n),i=t[0],a=t[1],s=t[2],u=t[3],c=t[4],d=t[5],l=t[6],h=t[7],f=t[8],g=t[9],v=t[10],y=t[11],w=t[12],P=t[13],k=t[14];function E(I,V){var L=V^-1;for(var x=0,O=I.length;x<O;)L=L>>>8^n[(L^I.charCodeAt(x++))&255];return~L}function U(I,V){var L=V^-1,x=I.length-15,O=0;for(;O<x;)L=k[I[O++]^L&255]^P[I[O++]^L>>8&255]^w[I[O++]^L>>16&255]^y[I[O++]^L>>>24]^v[I[O++]]^g[I[O++]]^f[I[O++]]^h[I[O++]]^l[I[O++]]^d[I[O++]]^c[I[O++]]^u[I[O++]]^s[I[O++]]^a[I[O++]]^i[I[O++]]^n[I[O++]];x+=15;while(O<x)L=L>>>8^n[(L^I[O++])&255];return~L}function B(I,V){var L=V^-1;for(var x=0,O=I.length,p=0,N=0;x<O;)if(p=I.charCodeAt(x++),p<128)L=L>>>8^n[(L^p)&255];else if(p<2048)L=L>>>8^n[(L^(192|p>>6&31))&255],L=L>>>8^n[(L^(128|p&63))&255];else if(p>=55296&&p<57344)p=(p&1023)+64,N=I.charCodeAt(x++)&1023,L=L>>>8^n[(L^(240|p>>8&7))&255],L=L>>>8^n[(L^(128|p>>2&63))&255],L=L>>>8^n[(L^(128|N>>6&15|(p&3)<<4))&255],L=L>>>8^n[(L^(128|N&63))&255];else L=L>>>8^n[(L^(224|p>>12&15))&255],L=L>>>8^n[(L^(128|p>>6&63))&255],L=L>>>8^n[(L^(128|p&63))&255];return~L}e.table=n,e.bstr=E,e.buf=U,e.str=B})});var Qf=pt(im(),1);var jb=new Uint8Array(16);function Vo(){return crypto.getRandomValues(jb)}var Pe=[];for(let e=0;e<256;++e)Pe.push((e+256).toString(16).slice(1));function om(e,r=0){return(Pe[e[r+0]]+Pe[e[r+1]]+Pe[e[r+2]]+Pe[e[r+3]]+"-"+Pe[e[r+4]]+Pe[e[r+5]]+"-"+Pe[e[r+6]]+Pe[e[r+7]]+"-"+Pe[e[r+8]]+Pe[e[r+9]]+"-"+Pe[e[r+10]]+Pe[e[r+11]]+Pe[e[r+12]]+Pe[e[r+13]]+Pe[e[r+14]]+Pe[e[r+15]]).toLowerCase()}function Db(e,r,n){if(!r&&!e&&crypto.randomUUID)return crypto.randomUUID();return Ub(e,r,n)}function Ub(e,r,n){e=e||{};let o=e.random??e.rng?.()??Vo();if(o.length<16)throw Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){if(n=n||0,n<0||n+16>r.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let t=0;t<16;++t)r[n+t]=o[t];return r}return om(o)}var Tt=Db;var S={};ut(S,{$brand:()=>Jo,$input:()=>sc,$output:()=>ac,NEVER:()=>qo,TimePrecision:()=>fc,ZodAny:()=>rd,ZodArray:()=>ad,ZodBase64:()=>Ji,ZodBase64URL:()=>Wi,ZodBigInt:()=>_r,ZodBigIntFormat:()=>Ki,ZodBoolean:()=>br,ZodCIDRv4:()=>Vi,ZodCIDRv6:()=>qi,ZodCUID:()=>Ai,ZodCUID2:()=>Ni,ZodCatch:()=>Pd,ZodCodec:()=>dn,ZodCustom:()=>fn,ZodCustomStringFormat:()=>vr,ZodDate:()=>an,ZodDefault:()=>$d,ZodDiscriminatedUnion:()=>ud,ZodE164:()=>Gi,ZodEmail:()=>Ui,ZodEmoji:()=>Ri,ZodEnum:()=>hr,ZodError:()=>d$,ZodExactOptional:()=>bd,ZodFile:()=>vd,ZodFirstPartyTypeKind:()=>Fd,ZodFunction:()=>Nd,ZodGUID:()=>en,ZodIPv4:()=>Bi,ZodIPv6:()=>Mi,ZodISODate:()=>Pi,ZodISODateTime:()=>zi,ZodISODuration:()=>Ei,ZodISOTime:()=>Ti,ZodIntersection:()=>cd,ZodIssueCode:()=>m$,ZodJWT:()=>Hi,ZodKSUID:()=>Fi,ZodLazy:()=>Rd,ZodLiteral:()=>gd,ZodMAC:()=>Hl,ZodMap:()=>pd,ZodNaN:()=>Ed,ZodNanoID:()=>Ci,ZodNever:()=>id,ZodNonOptional:()=>ro,ZodNull:()=>ed,ZodNullable:()=>xd,ZodNumber:()=>yr,ZodNumberFormat:()=>Zt,ZodObject:()=>un,ZodOptional:()=>to,ZodPipe:()=>ln,ZodPrefault:()=>kd,ZodPreprocess:()=>Od,ZodPromise:()=>Ad,ZodReadonly:()=>jd,ZodRealError:()=>Ze,ZodRecord:()=>pr,ZodSet:()=>hd,ZodString:()=>gr,ZodStringFormat:()=>ve,ZodSuccess:()=>zd,ZodSymbol:()=>Yl,ZodTemplateLiteral:()=>Ud,ZodTransform:()=>yd,ZodTuple:()=>dd,ZodType:()=>le,ZodULID:()=>Zi,ZodURL:()=>on,ZodUUID:()=>nt,ZodUndefined:()=>Ql,ZodUnion:()=>cn,ZodUnknown:()=>nd,ZodVoid:()=>od,ZodXID:()=>Li,ZodXor:()=>sd,_ZodString:()=>Di,_default:()=>wd,_function:()=>Qp,any:()=>Ep,array:()=>sn,base64:()=>mp,base64url:()=>pp,bigint:()=>Ip,boolean:()=>Xl,catch:()=>Td,check:()=>eh,cidrv4:()=>dp,cidrv6:()=>fp,clone:()=>De,codec:()=>Hp,coerce:()=>Bd,config:()=>we,core:()=>dt,cuid:()=>np,cuid2:()=>ip,custom:()=>th,date:()=>jp,decode:()=>Bl,decodeAsync:()=>Vl,describe:()=>rh,discriminatedUnion:()=>Np,e164:()=>hp,email:()=>Wm,emoji:()=>tp,encode:()=>Fl,encodeAsync:()=>Ml,endsWith:()=>ir,enum:()=>Qi,exactOptional:()=>_d,file:()=>qp,flattenError:()=>Ar,float32:()=>xp,float64:()=>$p,formatError:()=>Nr,fromJSONSchema:()=>ch,function:()=>Qp,getErrorMap:()=>h$,globalRegistry:()=>Te,gt:()=>tt,gte:()=>Re,guid:()=>Gm,hash:()=>_p,hex:()=>bp,hostname:()=>yp,httpUrl:()=>ep,includes:()=>rr,instanceof:()=>ih,int:()=>Oi,int32:()=>wp,int64:()=>Sp,intersection:()=>ld,invertCodec:()=>Kp,ipv4:()=>up,ipv6:()=>lp,iso:()=>mr,json:()=>ah,jwt:()=>gp,keyof:()=>Dp,ksuid:()=>sp,lazy:()=>Cd,length:()=>At,literal:()=>Vp,locales:()=>Hr,looseObject:()=>Cp,looseRecord:()=>Lp,lowercase:()=>er,lt:()=>et,lte:()=>Be,mac:()=>cp,map:()=>Fp,maxLength:()=>Ct,maxSize:()=>_t,meta:()=>nh,mime:()=>or,minLength:()=>lt,minSize:()=>rt,multipleOf:()=>bt,nan:()=>Gp,nanoid:()=>rp,nativeEnum:()=>Mp,negative:()=>yi,never:()=>Xi,nonnegative:()=>_i,nonoptional:()=>Sd,nonpositive:()=>bi,normalize:()=>ar,null:()=>td,nullable:()=>rn,nullish:()=>Jp,number:()=>Kl,object:()=>Up,optional:()=>tn,overwrite:()=>Ke,parse:()=>Al,parseAsync:()=>Nl,partialRecord:()=>Zp,pipe:()=>ji,positive:()=>vi,prefault:()=>Id,preprocess:()=>sh,prettifyError:()=>ia,promise:()=>Yp,property:()=>xi,readonly:()=>Dd,record:()=>md,refine:()=>Zd,regex:()=>Qt,regexes:()=>Fe,registry:()=>Kn,safeDecode:()=>Jl,safeDecodeAsync:()=>Gl,safeEncode:()=>ql,safeEncodeAsync:()=>Wl,safeParse:()=>Zl,safeParseAsync:()=>Ll,set:()=>Bp,setErrorMap:()=>p$,size:()=>Rt,slugify:()=>lr,startsWith:()=>nr,strictObject:()=>Rp,string:()=>Qr,stringFormat:()=>vp,stringbool:()=>oh,success:()=>Wp,superRefine:()=>Ld,symbol:()=>Pp,templateLiteral:()=>Xp,toJSONSchema:()=>Ii,toLowerCase:()=>ur,toUpperCase:()=>cr,transform:()=>eo,treeifyError:()=>na,trim:()=>sr,tuple:()=>fd,uint32:()=>kp,uint64:()=>zp,ulid:()=>op,undefined:()=>Tp,union:()=>Yi,unknown:()=>Nt,uppercase:()=>tr,url:()=>Qm,util:()=>W,uuid:()=>Hm,uuidv4:()=>Km,uuidv6:()=>Xm,uuidv7:()=>Ym,void:()=>Op,xid:()=>ap,xor:()=>Ap});var dt={};ut(dt,{$ZodAny:()=>Ds,$ZodArray:()=>Ns,$ZodAsyncError:()=>Qe,$ZodBase64:()=>ws,$ZodBase64URL:()=>ks,$ZodBigInt:()=>Jn,$ZodBigIntFormat:()=>Ts,$ZodBoolean:()=>Br,$ZodCIDRv4:()=>_s,$ZodCIDRv6:()=>xs,$ZodCUID:()=>us,$ZodCUID2:()=>cs,$ZodCatch:()=>ru,$ZodCheck:()=>ye,$ZodCheckBigIntFormat:()=>Na,$ZodCheckEndsWith:()=>Ka,$ZodCheckGreaterThan:()=>Zn,$ZodCheckIncludes:()=>Ga,$ZodCheckLengthEquals:()=>Va,$ZodCheckLessThan:()=>Nn,$ZodCheckLowerCase:()=>Ja,$ZodCheckMaxLength:()=>Ba,$ZodCheckMaxSize:()=>Za,$ZodCheckMimeType:()=>Ya,$ZodCheckMinLength:()=>Ma,$ZodCheckMinSize:()=>La,$ZodCheckMultipleOf:()=>Ca,$ZodCheckNumberFormat:()=>Aa,$ZodCheckOverwrite:()=>Qa,$ZodCheckProperty:()=>Xa,$ZodCheckRegex:()=>qa,$ZodCheckSizeEquals:()=>Fa,$ZodCheckStartsWith:()=>Ha,$ZodCheckStringFormat:()=>Xt,$ZodCheckUpperCase:()=>Wa,$ZodCodec:()=>Vr,$ZodCustom:()=>lu,$ZodCustomStringFormat:()=>zs,$ZodDate:()=>As,$ZodDefault:()=>Ys,$ZodDiscriminatedUnion:()=>Fs,$ZodE164:()=>Is,$ZodEmail:()=>is,$ZodEmoji:()=>as,$ZodEncodeError:()=>Ot,$ZodEnum:()=>Js,$ZodError:()=>Cr,$ZodExactOptional:()=>Ks,$ZodFile:()=>Gs,$ZodFunction:()=>su,$ZodGUID:()=>rs,$ZodIPv4:()=>vs,$ZodIPv6:()=>ys,$ZodISODate:()=>ps,$ZodISODateTime:()=>ms,$ZodISODuration:()=>gs,$ZodISOTime:()=>hs,$ZodIntersection:()=>Bs,$ZodJWT:()=>Ss,$ZodKSUID:()=>fs,$ZodLazy:()=>cu,$ZodLiteral:()=>Ws,$ZodMAC:()=>bs,$ZodMap:()=>Vs,$ZodNaN:()=>nu,$ZodNanoID:()=>ss,$ZodNever:()=>Rs,$ZodNonOptional:()=>eu,$ZodNull:()=>js,$ZodNullable:()=>Xs,$ZodNumber:()=>qn,$ZodNumberFormat:()=>Ps,$ZodObject:()=>Am,$ZodObjectJIT:()=>Zs,$ZodOptional:()=>Gn,$ZodPipe:()=>Hn,$ZodPrefault:()=>Qs,$ZodPreprocess:()=>iu,$ZodPromise:()=>uu,$ZodReadonly:()=>ou,$ZodRealError:()=>Ne,$ZodRecord:()=>Ms,$ZodRegistry:()=>uc,$ZodSet:()=>qs,$ZodString:()=>Ut,$ZodStringFormat:()=>ge,$ZodSuccess:()=>tu,$ZodSymbol:()=>Es,$ZodTemplateLiteral:()=>au,$ZodTransform:()=>Hs,$ZodTuple:()=>Wn,$ZodType:()=>se,$ZodULID:()=>ls,$ZodURL:()=>os,$ZodUUID:()=>ns,$ZodUndefined:()=>Os,$ZodUnion:()=>Mr,$ZodUnknown:()=>Us,$ZodVoid:()=>Cs,$ZodXID:()=>ds,$ZodXor:()=>Ls,$brand:()=>Jo,$constructor:()=>z,$input:()=>sc,$output:()=>ac,Doc:()=>Ln,JSONSchema:()=>Vm,JSONSchemaGenerator:()=>jl,NEVER:()=>qo,TimePrecision:()=>fc,_any:()=>Dc,_array:()=>Lc,_base64:()=>mi,_base64url:()=>pi,_bigint:()=>Sc,_boolean:()=>kc,_catch:()=>n$,_check:()=>Mm,_cidrv4:()=>di,_cidrv6:()=>fi,_coercedBigint:()=>zc,_coercedBoolean:()=>Ic,_coercedDate:()=>Nc,_coercedNumber:()=>yc,_coercedString:()=>lc,_cuid:()=>ii,_cuid2:()=>oi,_custom:()=>Bc,_date:()=>Ac,_decode:()=>En,_decodeAsync:()=>jn,_default:()=>e$,_discriminatedUnion:()=>Bx,_e164:()=>hi,_email:()=>Xn,_emoji:()=>ri,_encode:()=>Tn,_encodeAsync:()=>On,_endsWith:()=>ir,_enum:()=>Gx,_file:()=>Fc,_float32:()=>_c,_float64:()=>xc,_gt:()=>tt,_gte:()=>Re,_guid:()=>Kr,_includes:()=>rr,_int:()=>bc,_int32:()=>$c,_int64:()=>Pc,_intersection:()=>Mx,_ipv4:()=>ci,_ipv6:()=>li,_isoDate:()=>pc,_isoDateTime:()=>mc,_isoDuration:()=>gc,_isoTime:()=>hc,_jwt:()=>gi,_ksuid:()=>ui,_lazy:()=>s$,_length:()=>At,_literal:()=>Kx,_lowercase:()=>er,_lt:()=>et,_lte:()=>Be,_mac:()=>dc,_map:()=>Jx,_max:()=>Be,_maxLength:()=>Ct,_maxSize:()=>_t,_mime:()=>or,_min:()=>Re,_minLength:()=>lt,_minSize:()=>rt,_multipleOf:()=>bt,_nan:()=>Zc,_nanoid:()=>ni,_nativeEnum:()=>Hx,_negative:()=>yi,_never:()=>Rc,_nonnegative:()=>_i,_nonoptional:()=>t$,_nonpositive:()=>bi,_normalize:()=>ar,_null:()=>jc,_nullable:()=>Qx,_number:()=>vc,_optional:()=>Yx,_overwrite:()=>Ke,_parse:()=>Wt,_parseAsync:()=>Gt,_pipe:()=>i$,_positive:()=>vi,_promise:()=>u$,_property:()=>xi,_readonly:()=>o$,_record:()=>qx,_refine:()=>Mc,_regex:()=>Qt,_safeDecode:()=>Un,_safeDecodeAsync:()=>Cn,_safeEncode:()=>Dn,_safeEncodeAsync:()=>Rn,_safeParse:()=>Ht,_safeParseAsync:()=>Kt,_set:()=>Wx,_size:()=>Rt,_slugify:()=>lr,_startsWith:()=>nr,_string:()=>cc,_stringFormat:()=>dr,_stringbool:()=>Wc,_success:()=>r$,_superRefine:()=>Vc,_symbol:()=>Ec,_templateLiteral:()=>a$,_toLowerCase:()=>ur,_toUpperCase:()=>cr,_transform:()=>Xx,_trim:()=>sr,_tuple:()=>Vx,_uint32:()=>wc,_uint64:()=>Tc,_ulid:()=>ai,_undefined:()=>Oc,_union:()=>Lx,_unknown:()=>Uc,_uppercase:()=>tr,_url:()=>Xr,_uuid:()=>Yn,_uuidv4:()=>Qn,_uuidv6:()=>ei,_uuidv7:()=>ti,_void:()=>Cc,_xid:()=>si,_xor:()=>Fx,clone:()=>De,config:()=>we,createStandardJSONSchemaMethod:()=>fr,createToJSONSchemaMethod:()=>Gc,decode:()=>u_,decodeAsync:()=>l_,describe:()=>qc,encode:()=>s_,encodeAsync:()=>c_,extractDefs:()=>$t,finalize:()=>wt,flattenError:()=>Ar,formatError:()=>Nr,globalConfig:()=>Et,globalRegistry:()=>Te,initializeContext:()=>xt,isValidBase64:()=>$s,isValidBase64URL:()=>Dm,isValidJWT:()=>Um,locales:()=>Hr,meta:()=>Jc,parse:()=>zn,parseAsync:()=>Pn,prettifyError:()=>ia,process:()=>he,regexes:()=>Fe,registry:()=>Kn,safeDecode:()=>f_,safeDecodeAsync:()=>p_,safeEncode:()=>d_,safeEncodeAsync:()=>m_,safeParse:()=>oa,safeParseAsync:()=>aa,toDotPath:()=>fm,toJSONSchema:()=>Ii,treeifyError:()=>na,util:()=>W,version:()=>es});var am,qo=Object.freeze({status:"aborted"});function z(e,r,n){function o(s,u){if(!s._zod)Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1});if(s._zod.traits.has(e))return;s._zod.traits.add(e),r(s,u);let c=a.prototype,d=Object.keys(c);for(let l=0;l<d.length;l++){let h=d[l];if(!(h in s))s[h]=c[h].bind(s)}}let t=n?.Parent??Object;class i extends t{}Object.defineProperty(i,"name",{value:e});function a(s){var u;let c=n?.Parent?new i:this;o(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:(s)=>{if(n?.Parent&&s instanceof n.Parent)return!0;return s?._zod?.traits?.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}var Jo=Symbol("zod_brand");class Qe extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ot extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(am=globalThis).__zod_globalConfig??(am.__zod_globalConfig={});var Et=globalThis.__zod_globalConfig;function we(e){if(e)Object.assign(Et,e);return Et}var W={};ut(W,{BIGINT_FORMAT_RANGES:()=>ta,Class:()=>lm,NUMBER_FORMAT_RANGES:()=>ea,aborted:()=>yt,allowsEval:()=>Ko,assert:()=>Zb,assertEqual:()=>Rb,assertIs:()=>Ab,assertNever:()=>Nb,assertNotEqual:()=>Cb,assignProp:()=>gt,base64ToUint8Array:()=>um,base64urlToUint8Array:()=>r_,cached:()=>qt,captureStackTrace:()=>Sn,cleanEnum:()=>t_,cleanRegex:()=>jr,clone:()=>De,cloneDef:()=>Fb,createTransparentProxy:()=>Wb,defineLazy:()=>de,esc:()=>In,escapeRegex:()=>Je,explicitlyAborted:()=>ra,extend:()=>Kb,finalizeIssue:()=>Ue,floatSafeRemainder:()=>Go,getElementAtPath:()=>Bb,getEnumValues:()=>Or,getLengthableOrigin:()=>Rr,getParsedType:()=>Jb,getSizableOrigin:()=>Ur,hexToUint8Array:()=>i_,isObject:()=>jt,isPlainObject:()=>vt,issue:()=>Jt,joinValues:()=>D,jsonStringifyReplacer:()=>Vt,merge:()=>Yb,mergeDefs:()=>ct,normalizeParams:()=>X,nullish:()=>ht,numKeys:()=>qb,objectClone:()=>Lb,omit:()=>Hb,optionalKeys:()=>Qo,parsedType:()=>q,partial:()=>Qb,pick:()=>Gb,prefixIssues:()=>Ae,primitiveTypes:()=>Yo,promiseAllObject:()=>Mb,propertyKeyTypes:()=>Dr,randomString:()=>Vb,required:()=>e_,safeExtend:()=>Xb,shallowClone:()=>Xo,slugify:()=>Ho,stringifyPrimitive:()=>M,uint8ArrayToBase64:()=>cm,uint8ArrayToBase64url:()=>n_,uint8ArrayToHex:()=>o_,unwrapMessage:()=>Er});function Rb(e){return e}function Cb(e){return e}function Ab(e){}function Nb(e){throw Error("Unexpected value in exhaustive check")}function Zb(e){}function Or(e){let r=Object.values(e).filter((o)=>typeof o==="number");return Object.entries(e).filter(([o,t])=>r.indexOf(+o)===-1).map(([o,t])=>t)}function D(e,r="|"){return e.map((n)=>M(n)).join(r)}function Vt(e,r){if(typeof r==="bigint")return r.toString();return r}function qt(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw Error("cached value already set")}}}function ht(e){return e===null||e===void 0}function jr(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Go(e,r){let n=e/r,o=Math.round(n),t=Number.EPSILON*Math.max(Math.abs(n),1);if(Math.abs(n-o)<t)return 0;return n-o}var sm=Symbol("evaluating");function de(e,r,n){let o=void 0;Object.defineProperty(e,r,{get(){if(o===sm)return;if(o===void 0)o=sm,o=n();return o},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Lb(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function gt(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ct(...e){let r={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function Fb(e){return ct(e._zod.def)}function Bb(e,r){if(!r)return e;return r.reduce((n,o)=>n?.[o],e)}function Mb(e){let r=Object.keys(e),n=r.map((o)=>e[o]);return Promise.all(n).then((o)=>{let t={};for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})}function Vb(e=10){let n="";for(let o=0;o<e;o++)n+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return n}function In(e){return JSON.stringify(e)}function Ho(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Sn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function jt(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var Ko=qt(()=>{if(Et.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function vt(e){if(jt(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;if(typeof r!=="function")return!0;let n=r.prototype;if(jt(n)===!1)return!1;if(Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)return!1;return!0}function Xo(e){if(vt(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}function qb(e){let r=0;for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n))r++;return r}var Jb=(e)=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(e===null)return"null";if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return"promise";if(typeof Map<"u"&&e instanceof Map)return"map";if(typeof Set<"u"&&e instanceof Set)return"set";if(typeof Date<"u"&&e instanceof Date)return"date";if(typeof File<"u"&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${r}`)}},Dr=new Set(["string","number","symbol"]),Yo=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Je(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function De(e,r,n){let o=new e._zod.constr(r??e._zod.def);if(!r||n?.parent)o._zod.parent=e;return o}function X(e){let r=e;if(!r)return{};if(typeof r==="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");r.error=r.message}if(delete r.message,typeof r.error==="string")return{...r,error:()=>r.error};return r}function Wb(e){let r;return new Proxy({},{get(n,o,t){return r??(r=e()),Reflect.get(r,o,t)},set(n,o,t,i){return r??(r=e()),Reflect.set(r,o,t,i)},has(n,o){return r??(r=e()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=e()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,t){return r??(r=e()),Reflect.defineProperty(r,o,t)}})}function M(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function Qo(e){return Object.keys(e).filter((r)=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var ea={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]},ta={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Gb(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=ct(e._zod.def,{get shape(){let a={};for(let s in r){if(!(s in n.shape))throw Error(`Unrecognized key: "${s}"`);if(!r[s])continue;a[s]=n.shape[s]}return gt(this,"shape",a),a},checks:[]});return De(e,i)}function Hb(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=ct(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in r){if(!(s in n.shape))throw Error(`Unrecognized key: "${s}"`);if(!r[s])continue;delete a[s]}return gt(this,"shape",a),a},checks:[]});return De(e,i)}function Kb(e,r){if(!vt(r))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let a in r)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=ct(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return gt(this,"shape",i),i}});return De(e,t)}function Xb(e,r){if(!vt(r))throw Error("Invalid input to safeExtend: expected a plain object");let n=ct(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r};return gt(this,"shape",o),o}});return De(e,n)}function Yb(e,r){if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=ct(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r._zod.def.shape};return gt(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return De(e,n)}function Qb(e,r,n){let t=r._zod.def.checks;if(t&&t.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let a=ct(r._zod.def,{get shape(){let s=r._zod.def.shape,u={...s};if(n)for(let c in n){if(!(c in s))throw Error(`Unrecognized key: "${c}"`);if(!n[c])continue;u[c]=e?new e({type:"optional",innerType:s[c]}):s[c]}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return gt(this,"shape",u),u},checks:[]});return De(r,a)}function e_(e,r,n){let o=ct(r._zod.def,{get shape(){let t=r._zod.def.shape,i={...t};if(n)for(let a in n){if(!(a in i))throw Error(`Unrecognized key: "${a}"`);if(!n[a])continue;i[a]=new e({type:"nonoptional",innerType:t[a]})}else for(let a in t)i[a]=new e({type:"nonoptional",innerType:t[a]});return gt(this,"shape",i),i}});return De(r,o)}function yt(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ra(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ae(e,r){return r.map((n)=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Er(e){return typeof e==="string"?e:e?.message}function Ue(e,r,n){let o=e.message?e.message:Er(e.inst?._zod.def?.error?.(e))??Er(r?.error?.(e))??Er(n.customError?.(e))??Er(n.localeError?.(e))??"Invalid input",{inst:t,continue:i,input:a,...s}=e;if(s.path??(s.path=[]),s.message=o,r?.reportInput)s.input=a;return s}function Ur(e){if(e instanceof Set)return"set";if(e instanceof Map)return"map";if(e instanceof File)return"file";return"unknown"}function Rr(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function q(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function Jt(...e){let[r,n,o]=e;if(typeof r==="string")return{message:r,code:"custom",input:n,inst:o};return{...r}}function t_(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map((r)=>r[1])}function um(e){let r=atob(e),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function cm(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}function r_(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return um(r+n)}function n_(e){return cm(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function i_(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function o_(e){return Array.from(e).map((r)=>r.toString(16).padStart(2,"0")).join("")}class lm{constructor(...e){}}var dm=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Vt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cr=z("$ZodError",dm),Ne=z("$ZodError",dm,{Parent:Error});function Ar(e,r=(n)=>n.message){let n={},o=[];for(let t of e.issues)if(t.path.length>0)n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t));else o.push(r(t));return{formErrors:o,fieldErrors:n}}function Nr(e,r=(n)=>n.message){let n={_errors:[]},o=(t,i=[])=>{for(let a of t.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map((s)=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)n._errors.push(r(a));else{let u=n,c=0;while(c<s.length){let d=s[c];if(c!==s.length-1)u[d]=u[d]||{_errors:[]};else u[d]=u[d]||{_errors:[]},u[d]._errors.push(r(a));u=u[d],c++}}}};return o(e),n}function na(e,r=(n)=>n.message){let n={errors:[]},o=(t,i=[])=>{var a,s;for(let u of t.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map((c)=>o({issues:c},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let c=[...i,...u.path];if(c.length===0){n.errors.push(r(u));continue}let d=n,l=0;while(l<c.length){let h=c[l],f=l===c.length-1;if(typeof h==="string")d.properties??(d.properties={}),(a=d.properties)[h]??(a[h]={errors:[]}),d=d.properties[h];else d.items??(d.items=[]),(s=d.items)[h]??(s[h]={errors:[]}),d=d.items[h];if(f)d.errors.push(r(u));l++}}};return o(e),n}function fm(e){let r=[],n=e.map((o)=>typeof o==="object"?o.key:o);for(let o of n)if(typeof o==="number")r.push(`[${o}]`);else if(typeof o==="symbol")r.push(`[${JSON.stringify(String(o))}]`);else if(/[^\w$]/.test(o))r.push(`[${JSON.stringify(o)}]`);else{if(r.length)r.push(".");r.push(o)}return r.join("")}function ia(e){let r=[],n=[...e.issues].sort((o,t)=>(o.path??[]).length-(t.path??[]).length);for(let o of n)if(r.push(`✖ ${o.message}`),o.path?.length)r.push(` → at ${fm(o.path)}`);return r.join(`
|
|
14
|
+
`)}var Wt=(e)=>(r,n,o,t)=>{let i=o?{...o,async:!1}:{async:!1},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Qe;if(a.issues.length){let s=new(t?.Err??e)(a.issues.map((u)=>Ue(u,i,we())));throw Sn(s,t?.callee),s}return a.value},zn=Wt(Ne),Gt=(e)=>async(r,n,o,t)=>{let i=o?{...o,async:!0}:{async:!0},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise)a=await a;if(a.issues.length){let s=new(t?.Err??e)(a.issues.map((u)=>Ue(u,i,we())));throw Sn(s,t?.callee),s}return a.value},Pn=Gt(Ne),Ht=(e)=>(r,n,o)=>{let t=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},t);if(i instanceof Promise)throw new Qe;return i.issues.length?{success:!1,error:new(e??Cr)(i.issues.map((a)=>Ue(a,t,we())))}:{success:!0,data:i.value}},oa=Ht(Ne),Kt=(e)=>async(r,n,o)=>{let t=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},t);if(i instanceof Promise)i=await i;return i.issues.length?{success:!1,error:new e(i.issues.map((a)=>Ue(a,t,we())))}:{success:!0,data:i.value}},aa=Kt(Ne),Tn=(e)=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Wt(e)(r,n,t)},s_=Tn(Ne),En=(e)=>(r,n,o)=>Wt(e)(r,n,o),u_=En(Ne),On=(e)=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Gt(e)(r,n,t)},c_=On(Ne),jn=(e)=>async(r,n,o)=>Gt(e)(r,n,o),l_=jn(Ne),Dn=(e)=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Ht(e)(r,n,t)},d_=Dn(Ne),Un=(e)=>(r,n,o)=>Ht(e)(r,n,o),f_=Un(Ne),Rn=(e)=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Kt(e)(r,n,t)},m_=Rn(Ne),Cn=(e)=>async(r,n,o)=>Kt(e)(r,n,o),p_=Cn(Ne);var Fe={};ut(Fe,{base64:()=>$a,base64url:()=>An,bigint:()=>Ta,boolean:()=>Oa,browserEmail:()=>$_,cidrv4:()=>_a,cidrv6:()=>xa,cuid:()=>sa,cuid2:()=>ua,date:()=>Ia,datetime:()=>za,domain:()=>I_,duration:()=>ma,e164:()=>ka,email:()=>ha,emoji:()=>ga,extendedDuration:()=>h_,guid:()=>pa,hex:()=>S_,hostname:()=>k_,html5Email:()=>b_,httpProtocol:()=>wa,idnEmail:()=>x_,integer:()=>Ea,ipv4:()=>va,ipv6:()=>ya,ksuid:()=>da,lowercase:()=>Ua,mac:()=>ba,md5_base64:()=>P_,md5_base64url:()=>T_,md5_hex:()=>z_,nanoid:()=>fa,null:()=>ja,number:()=>Zr,rfc5322Email:()=>__,sha1_base64:()=>O_,sha1_base64url:()=>j_,sha1_hex:()=>E_,sha256_base64:()=>U_,sha256_base64url:()=>R_,sha256_hex:()=>D_,sha384_base64:()=>A_,sha384_base64url:()=>N_,sha384_hex:()=>C_,sha512_base64:()=>L_,sha512_base64url:()=>F_,sha512_hex:()=>Z_,string:()=>Pa,time:()=>Sa,ulid:()=>ca,undefined:()=>Da,unicodeEmail:()=>mm,uppercase:()=>Ra,uuid:()=>Dt,uuid4:()=>g_,uuid6:()=>v_,uuid7:()=>y_,xid:()=>la});var sa=/^[cC][0-9a-z]{6,}$/,ua=/^[0-9a-z]+$/,ca=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,la=/^[0-9a-vA-V]{20}$/,da=/^[A-Za-z0-9]{27}$/,fa=/^[a-zA-Z0-9_-]{21}$/,ma=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,h_=/^[-+]?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)?)??$/,pa=/^([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})$/,Dt=(e)=>{if(!e)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},g_=Dt(4),v_=Dt(6),y_=Dt(7),ha=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b_=/^[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])?)*$/,__=/^(([^<>()\[\]\\.,;:\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,}))$/,mm=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,x_=mm,$_=/^[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])?)*$/,w_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ga(){return new RegExp(w_,"u")}var va=/^(?:(?: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])$/,ya=/^(([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}|:))$/,ba=(e)=>{let r=Je(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},_a=/^((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])$/,xa=/^(([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])$/,$a=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,An=/^[A-Za-z0-9_-]*$/,k_=/^(?=.{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])?)*\.?$/,I_=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,wa=/^https?$/,ka=/^\+[1-9]\d{6,14}$/,pm="(?:(?:\\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])))",Ia=new RegExp(`^${pm}$`);function hm(e){return typeof e.precision==="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function Sa(e){return new RegExp(`^${hm(e)}$`)}function za(e){let r=hm({precision:e.precision}),n=["Z"];if(e.local)n.push("");if(e.offset)n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${pm}T(?:${o})$`)}var Pa=(e)=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Ta=/^-?\d+n?$/,Ea=/^-?\d+$/,Zr=/^-?\d+(?:\.\d+)?$/,Oa=/^(?:true|false)$/i,ja=/^null$/i;var Da=/^undefined$/i;var Ua=/^[^A-Z]*$/,Ra=/^[^a-z]*$/,S_=/^[0-9a-fA-F]*$/;function Lr(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Fr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var z_=/^[0-9a-fA-F]{32}$/,P_=Lr(22,"=="),T_=Fr(22),E_=/^[0-9a-fA-F]{40}$/,O_=Lr(27,"="),j_=Fr(27),D_=/^[0-9a-fA-F]{64}$/,U_=Lr(43,"="),R_=Fr(43),C_=/^[0-9a-fA-F]{96}$/,A_=Lr(64,""),N_=Fr(64),Z_=/^[0-9a-fA-F]{128}$/,L_=Lr(86,"=="),F_=Fr(86);var ye=z("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),vm={number:"number",bigint:"bigint",object:"date"},Nn=z("$ZodCheckLessThan",(e,r)=>{ye.init(e,r);let n=vm[typeof r.value];e._zod.onattach.push((o)=>{let t=o._zod.bag,i=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(r.value<i)if(r.inclusive)t.maximum=r.value;else t.exclusiveMaximum=r.value}),e._zod.check=(o)=>{if(r.inclusive?o.value<=r.value:o.value<r.value)return;o.issues.push({origin:n,code:"too_big",maximum:typeof r.value==="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Zn=z("$ZodCheckGreaterThan",(e,r)=>{ye.init(e,r);let n=vm[typeof r.value];e._zod.onattach.push((o)=>{let t=o._zod.bag,i=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(r.value>i)if(r.inclusive)t.minimum=r.value;else t.exclusiveMinimum=r.value}),e._zod.check=(o)=>{if(r.inclusive?o.value>=r.value:o.value>r.value)return;o.issues.push({origin:n,code:"too_small",minimum:typeof r.value==="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Ca=z("$ZodCheckMultipleOf",(e,r)=>{ye.init(e,r),e._zod.onattach.push((n)=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),e._zod.check=(n)=>{if(typeof n.value!==typeof r.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof n.value==="bigint"?n.value%r.value===BigInt(0):Go(n.value,r.value)===0)return;n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),Aa=z("$ZodCheckNumberFormat",(e,r)=>{ye.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[t,i]=ea[r.format];e._zod.onattach.push((a)=>{let s=a._zod.bag;if(s.format=r.format,s.minimum=t,s.maximum=i,n)s.pattern=Ea}),e._zod.check=(a)=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){if(s>0)a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort});else a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort});return}}if(s<t)a.issues.push({origin:"number",input:s,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort});if(s>i)a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!r.abort})}}),Na=z("$ZodCheckBigIntFormat",(e,r)=>{ye.init(e,r);let[n,o]=ta[r.format];e._zod.onattach.push((t)=>{let i=t._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),e._zod.check=(t)=>{let i=t.value;if(i<n)t.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort});if(i>o)t.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!r.abort})}}),Za=z("$ZodCheckMaxSize",(e,r)=>{var n;ye.init(e,r),(n=e._zod.def).when??(n.when=(o)=>{let t=o.value;return!ht(t)&&t.size!==void 0}),e._zod.onattach.push((o)=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;if(r.maximum<t)o._zod.bag.maximum=r.maximum}),e._zod.check=(o)=>{let t=o.value;if(t.size<=r.maximum)return;o.issues.push({origin:Ur(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),La=z("$ZodCheckMinSize",(e,r)=>{var n;ye.init(e,r),(n=e._zod.def).when??(n.when=(o)=>{let t=o.value;return!ht(t)&&t.size!==void 0}),e._zod.onattach.push((o)=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(r.minimum>t)o._zod.bag.minimum=r.minimum}),e._zod.check=(o)=>{let t=o.value;if(t.size>=r.minimum)return;o.issues.push({origin:Ur(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Fa=z("$ZodCheckSizeEquals",(e,r)=>{var n;ye.init(e,r),(n=e._zod.def).when??(n.when=(o)=>{let t=o.value;return!ht(t)&&t.size!==void 0}),e._zod.onattach.push((o)=>{let t=o._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=(o)=>{let t=o.value,i=t.size;if(i===r.size)return;let a=i>r.size;o.issues.push({origin:Ur(t),...a?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),Ba=z("$ZodCheckMaxLength",(e,r)=>{var n;ye.init(e,r),(n=e._zod.def).when??(n.when=(o)=>{let t=o.value;return!ht(t)&&t.length!==void 0}),e._zod.onattach.push((o)=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;if(r.maximum<t)o._zod.bag.maximum=r.maximum}),e._zod.check=(o)=>{let t=o.value;if(t.length<=r.maximum)return;let a=Rr(t);o.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Ma=z("$ZodCheckMinLength",(e,r)=>{var n;ye.init(e,r),(n=e._zod.def).when??(n.when=(o)=>{let t=o.value;return!ht(t)&&t.length!==void 0}),e._zod.onattach.push((o)=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(r.minimum>t)o._zod.bag.minimum=r.minimum}),e._zod.check=(o)=>{let t=o.value;if(t.length>=r.minimum)return;let a=Rr(t);o.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Va=z("$ZodCheckLengthEquals",(e,r)=>{var n;ye.init(e,r),(n=e._zod.def).when??(n.when=(o)=>{let t=o.value;return!ht(t)&&t.length!==void 0}),e._zod.onattach.push((o)=>{let t=o._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=(o)=>{let t=o.value,i=t.length;if(i===r.length)return;let a=Rr(t),s=i>r.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),Xt=z("$ZodCheckStringFormat",(e,r)=>{var n,o;if(ye.init(e,r),e._zod.onattach.push((t)=>{let i=t._zod.bag;if(i.format=r.format,r.pattern)i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern)}),r.pattern)(n=e._zod).check??(n.check=(t)=>{if(r.pattern.lastIndex=0,r.pattern.test(t.value))return;t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})});else(o=e._zod).check??(o.check=()=>{})}),qa=z("$ZodCheckRegex",(e,r)=>{Xt.init(e,r),e._zod.check=(n)=>{if(r.pattern.lastIndex=0,r.pattern.test(n.value))return;n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Ja=z("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Ua),Xt.init(e,r)}),Wa=z("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Ra),Xt.init(e,r)}),Ga=z("$ZodCheckIncludes",(e,r)=>{ye.init(e,r);let n=Je(r.includes),o=new RegExp(typeof r.position==="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push((t)=>{let i=t._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=(t)=>{if(t.value.includes(r.includes,r.position))return;t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Ha=z("$ZodCheckStartsWith",(e,r)=>{ye.init(e,r);let n=new RegExp(`^${Je(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push((o)=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=(o)=>{if(o.value.startsWith(r.prefix))return;o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),Ka=z("$ZodCheckEndsWith",(e,r)=>{ye.init(e,r);let n=new RegExp(`.*${Je(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push((o)=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=(o)=>{if(o.value.endsWith(r.suffix))return;o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}});function gm(e,r,n){if(e.issues.length)r.issues.push(...Ae(n,e.issues))}var Xa=z("$ZodCheckProperty",(e,r)=>{ye.init(e,r),e._zod.check=(n)=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then((t)=>gm(t,n,r.property));gm(o,n,r.property);return}}),Ya=z("$ZodCheckMimeType",(e,r)=>{ye.init(e,r);let n=new Set(r.mime);e._zod.onattach.push((o)=>{o._zod.bag.mime=r.mime}),e._zod.check=(o)=>{if(n.has(o.value.type))return;o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:e,continue:!r.abort})}}),Qa=z("$ZodCheckOverwrite",(e,r)=>{ye.init(e,r),e._zod.check=(n)=>{n.value=r.tx(n.value)}});class Ln{constructor(e=[]){if(this.content=[],this.indent=0,this)this.args=e}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e==="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(`
|
|
15
|
+
`).filter((i)=>i),o=Math.min(...n.map((i)=>i.length-i.trimStart().length)),t=n.map((i)=>i.slice(o)).map((i)=>" ".repeat(this.indent*2)+i);for(let i of t)this.content.push(i)}compile(){let e=Function,r=this?.args,o=[...(this?.content??[""]).map((t)=>` ${t}`)];return new e(...r,o.join(`
|
|
16
|
+
`))}}var es={major:4,minor:4,patch:3};var se=z("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=es;let o=[...e._zod.def.checks??[]];if(e._zod.traits.has("$ZodCheck"))o.unshift(e);for(let t of o)for(let i of t._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(a,s,u)=>{let c=yt(a),d;for(let l of s){if(l._zod.def.when){if(ra(a))continue;if(!l._zod.def.when(a))continue}else if(c)continue;let h=a.issues.length,f=l._zod.check(a);if(f instanceof Promise&&u?.async===!1)throw new Qe;if(d||f instanceof Promise)d=(d??Promise.resolve()).then(async()=>{if(await f,a.issues.length===h)return;if(!c)c=yt(a,h)});else{if(a.issues.length===h)continue;if(!c)c=yt(a,h)}}if(d)return d.then(()=>a);return a},i=(a,s,u)=>{if(yt(a))return a.aborted=!0,a;let c=t(s,o,u);if(c instanceof Promise){if(u.async===!1)throw new Qe;return c.then((d)=>e._zod.parse(d,u))}return e._zod.parse(c,u)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});if(c instanceof Promise)return c.then((d)=>i(d,a,s));return i(c,a,s)}let u=e._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new Qe;return u.then((c)=>t(c,o,s))}return t(u,o,s)}}de(e,"~standard",()=>({validate:(t)=>{try{let i=oa(e,t);return i.success?{value:i.data}:{issues:i.error?.issues}}catch(i){return aa(e,t).then((a)=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ut=z("$ZodString",(e,r)=>{se.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Pa(e._zod.bag),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch(t){}if(typeof n.value==="string")return n;return n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ge=z("$ZodStringFormat",(e,r)=>{Xt.init(e,r),Ut.init(e,r)}),rs=z("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=pa),ge.init(e,r)}),ns=z("$ZodUUID",(e,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Dt(o))}else r.pattern??(r.pattern=Dt());ge.init(e,r)}),is=z("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=ha),ge.init(e,r)}),os=z("$ZodURL",(e,r)=>{ge.init(e,r),e._zod.check=(n)=>{try{let o=n.value.trim();if(!r.normalize&&r.protocol?.source===wa.source){if(!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!r.abort});return}}let t=new URL(o);if(r.hostname){if(r.hostname.lastIndex=0,!r.hostname.test(t.hostname))n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:e,continue:!r.abort})}if(r.protocol){if(r.protocol.lastIndex=0,!r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol))n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})}if(r.normalize)n.value=t.href;else n.value=o;return}catch(o){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),as=z("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=ga()),ge.init(e,r)}),ss=z("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=fa),ge.init(e,r)}),us=z("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=sa),ge.init(e,r)}),cs=z("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=ua),ge.init(e,r)}),ls=z("$ZodULID",(e,r)=>{r.pattern??(r.pattern=ca),ge.init(e,r)}),ds=z("$ZodXID",(e,r)=>{r.pattern??(r.pattern=la),ge.init(e,r)}),fs=z("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=da),ge.init(e,r)}),ms=z("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=za(r)),ge.init(e,r)}),ps=z("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Ia),ge.init(e,r)}),hs=z("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Sa(r)),ge.init(e,r)}),gs=z("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=ma),ge.init(e,r)}),vs=z("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=va),ge.init(e,r),e._zod.bag.format="ipv4"}),ys=z("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=ya),ge.init(e,r),e._zod.bag.format="ipv6",e._zod.check=(n)=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),bs=z("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=ba(r.delimiter)),ge.init(e,r),e._zod.bag.format="mac"}),_s=z("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=_a),ge.init(e,r)}),xs=z("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=xa),ge.init(e,r),e._zod.check=(n)=>{let o=n.value.split("/");try{if(o.length!==2)throw Error();let[t,i]=o;if(!i)throw Error();let a=Number(i);if(`${a}`!==i)throw Error();if(a<0||a>128)throw Error();new URL(`http://[${t}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function $s(e){if(e==="")return!0;if(/\s/.test(e))return!1;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ws=z("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=$a),ge.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=(n)=>{if($s(n.value))return;n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function Dm(e){if(!An.test(e))return!1;let r=e.replace(/[-_]/g,(o)=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return $s(n)}var ks=z("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=An),ge.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=(n)=>{if(Dm(n.value))return;n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),Is=z("$ZodE164",(e,r)=>{r.pattern??(r.pattern=ka),ge.init(e,r)});function Um(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let t=JSON.parse(atob(o));if("typ"in t&&t?.typ!=="JWT")return!1;if(!t.alg)return!1;if(r&&(!("alg"in t)||t.alg!==r))return!1;return!0}catch{return!1}}var Ss=z("$ZodJWT",(e,r)=>{ge.init(e,r),e._zod.check=(n)=>{if(Um(n.value,r.alg))return;n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),zs=z("$ZodCustomStringFormat",(e,r)=>{ge.init(e,r),e._zod.check=(n)=>{if(r.fn(n.value))return;n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),qn=z("$ZodNumber",(e,r)=>{se.init(e,r),e._zod.pattern=e._zod.bag.pattern??Zr,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch(a){}let t=n.value;if(typeof t==="number"&&!Number.isNaN(t)&&Number.isFinite(t))return n;let i=typeof t==="number"?Number.isNaN(t)?"NaN":!Number.isFinite(t)?"Infinity":void 0:void 0;return n.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...i?{received:i}:{}}),n}}),Ps=z("$ZodNumberFormat",(e,r)=>{Aa.init(e,r),qn.init(e,r)}),Br=z("$ZodBoolean",(e,r)=>{se.init(e,r),e._zod.pattern=Oa,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Boolean(n.value)}catch(i){}let t=n.value;if(typeof t==="boolean")return n;return n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),Jn=z("$ZodBigInt",(e,r)=>{se.init(e,r),e._zod.pattern=Ta,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch(t){}if(typeof n.value==="bigint")return n;return n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Ts=z("$ZodBigIntFormat",(e,r)=>{Na.init(e,r),Jn.init(e,r)}),Es=z("$ZodSymbol",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(typeof t==="symbol")return n;return n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),Os=z("$ZodUndefined",(e,r)=>{se.init(e,r),e._zod.pattern=Da,e._zod.values=new Set([void 0]),e._zod.parse=(n,o)=>{let t=n.value;if(typeof t>"u")return n;return n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),js=z("$ZodNull",(e,r)=>{se.init(e,r),e._zod.pattern=ja,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let t=n.value;if(t===null)return n;return n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),Ds=z("$ZodAny",(e,r)=>{se.init(e,r),e._zod.parse=(n)=>n}),Us=z("$ZodUnknown",(e,r)=>{se.init(e,r),e._zod.parse=(n)=>n}),Rs=z("$ZodNever",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Cs=z("$ZodVoid",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(typeof t>"u")return n;return n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),As=z("$ZodDate",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch(s){}let t=n.value,i=t instanceof Date;if(i&&!Number.isNaN(t.getTime()))return n;return n.issues.push({expected:"date",code:"invalid_type",input:t,...i?{received:"Invalid Date"}:{},inst:e}),n}});function bm(e,r,n){if(e.issues.length)r.issues.push(...Ae(n,e.issues));r.value[n]=e.value}var Ns=z("$ZodArray",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let i=[];for(let a=0;a<t.length;a++){let s=t[a],u=r.element._zod.run({value:s,issues:[]},o);if(u instanceof Promise)i.push(u.then((c)=>bm(c,n,a)));else bm(u,n,a)}if(i.length)return Promise.all(i).then(()=>n);return n}});function Vn(e,r,n,o,t,i){let a=n in o;if(e.issues.length){if(t&&i&&!a)return;r.issues.push(...Ae(n,e.issues))}if(!a&&!t){if(!e.issues.length)r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}if(e.value===void 0){if(a)r.value[n]=void 0}else r.value[n]=e.value}function Rm(e){let r=Object.keys(e.shape);for(let o of r)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${o}": expected a Zod schema`);let n=Qo(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function Cm(e,r,n,o,t,i){let a=[],s=t.keySet,u=t.catchall._zod,c=u.def.type,d=u.optin==="optional",l=u.optout==="optional";for(let h in r){if(h==="__proto__")continue;if(s.has(h))continue;if(c==="never"){a.push(h);continue}let f=u.run({value:r[h],issues:[]},o);if(f instanceof Promise)e.push(f.then((g)=>Vn(g,n,h,r,d,l)));else Vn(f,n,h,r,d,l)}if(a.length)n.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i});if(!e.length)return n;return Promise.all(e).then(()=>n)}var Am=z("$ZodObject",(e,r)=>{if(se.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let s=r.shape;Object.defineProperty(r,"shape",{get:()=>{let u={...s};return Object.defineProperty(r,"shape",{value:u}),u}})}let o=qt(()=>Rm(r));de(e._zod,"propValues",()=>{let s=r.shape,u={};for(let c in s){let d=s[c]._zod;if(d.values){u[c]??(u[c]=new Set);for(let l of d.values)u[c].add(l)}}return u});let t=jt,i=r.catchall,a;e._zod.parse=(s,u)=>{a??(a=o.value);let c=s.value;if(!t(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let d=[],l=a.shape;for(let h of a.keys){let f=l[h],g=f._zod.optin==="optional",v=f._zod.optout==="optional",y=f._zod.run({value:c[h],issues:[]},u);if(y instanceof Promise)d.push(y.then((w)=>Vn(w,s,h,c,g,v)));else Vn(y,s,h,c,g,v)}if(!i)return d.length?Promise.all(d).then(()=>s):s;return Cm(d,c,s,u,o.value,e)}}),Zs=z("$ZodObjectJIT",(e,r)=>{Am.init(e,r);let n=e._zod.parse,o=qt(()=>Rm(r)),t=(h)=>{let f=new Ln(["shape","payload","ctx"]),g=o.value,v=(k)=>{let E=In(k);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};f.write("const input = payload.value;");let y=Object.create(null),w=0;for(let k of g.keys)y[k]=`key_${w++}`;f.write("const newResult = {};");for(let k of g.keys){let E=y[k],U=In(k),B=h[k],I=B?._zod?.optin==="optional",V=B?._zod?.optout==="optional";if(f.write(`const ${E} = ${v(k)};`),I&&V)f.write(`
|
|
17
|
+
if (${E}.issues.length) {
|
|
18
|
+
if (${U} in input) {
|
|
19
|
+
payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
|
|
20
|
+
...iss,
|
|
21
|
+
path: iss.path ? [${U}, ...iss.path] : [${U}]
|
|
22
|
+
})));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (${E}.value === undefined) {
|
|
27
|
+
if (${U} in input) {
|
|
28
|
+
newResult[${U}] = undefined;
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
newResult[${U}] = ${E}.value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
`);else if(!I)f.write(`
|
|
35
|
+
const ${E}_present = ${U} in input;
|
|
36
|
+
if (${E}.issues.length) {
|
|
37
|
+
payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
|
|
38
|
+
...iss,
|
|
39
|
+
path: iss.path ? [${U}, ...iss.path] : [${U}]
|
|
40
|
+
})));
|
|
41
|
+
}
|
|
42
|
+
if (!${E}_present && !${E}.issues.length) {
|
|
43
|
+
payload.issues.push({
|
|
44
|
+
code: "invalid_type",
|
|
45
|
+
expected: "nonoptional",
|
|
46
|
+
input: undefined,
|
|
47
|
+
path: [${U}]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (${E}_present) {
|
|
52
|
+
if (${E}.value === undefined) {
|
|
53
|
+
newResult[${U}] = undefined;
|
|
54
|
+
} else {
|
|
55
|
+
newResult[${U}] = ${E}.value;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
`);else f.write(`
|
|
60
|
+
if (${E}.issues.length) {
|
|
61
|
+
payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
|
|
62
|
+
...iss,
|
|
63
|
+
path: iss.path ? [${U}, ...iss.path] : [${U}]
|
|
64
|
+
})));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (${E}.value === undefined) {
|
|
68
|
+
if (${U} in input) {
|
|
69
|
+
newResult[${U}] = undefined;
|
|
70
|
+
}
|
|
71
|
+
} else {
|
|
72
|
+
newResult[${U}] = ${E}.value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");let P=f.compile();return(k,E)=>P(h,k,E)},i,a=jt,s=!Et.jitless,c=s&&Ko.value,d=r.catchall,l;e._zod.parse=(h,f)=>{l??(l=o.value);let g=h.value;if(!a(g))return h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h;if(s&&c&&f?.async===!1&&f.jitless!==!0){if(!i)i=t(r.shape);if(h=i(h,f),!d)return h;return Cm([],g,h,f,l,e)}return n(h,f)}});function _m(e,r,n,o){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let t=e.filter((i)=>!yt(i));if(t.length===1)return r.value=t[0].value,t[0];return r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map((i)=>i.issues.map((a)=>Ue(a,o,we())))}),r}var Mr=z("$ZodUnion",(e,r)=>{se.init(e,r),de(e._zod,"optin",()=>r.options.some((o)=>o._zod.optin==="optional")?"optional":void 0),de(e._zod,"optout",()=>r.options.some((o)=>o._zod.optout==="optional")?"optional":void 0),de(e._zod,"values",()=>{if(r.options.every((o)=>o._zod.values))return new Set(r.options.flatMap((o)=>Array.from(o._zod.values)));return}),de(e._zod,"pattern",()=>{if(r.options.every((o)=>o._zod.pattern)){let o=r.options.map((t)=>t._zod.pattern);return new RegExp(`^(${o.map((t)=>jr(t.source)).join("|")})$`)}return});let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,a=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},t);if(u instanceof Promise)a.push(u),i=!0;else{if(u.issues.length===0)return u;a.push(u)}}if(!i)return _m(a,o,e,t);return Promise.all(a).then((s)=>_m(s,o,e,t))}});function xm(e,r,n,o){let t=e.filter((i)=>i.issues.length===0);if(t.length===1)return r.value=t[0].value,r;if(t.length===0)r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map((i)=>i.issues.map((a)=>Ue(a,o,we())))});else r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1});return r}var Ls=z("$ZodXor",(e,r)=>{Mr.init(e,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,a=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},t);if(u instanceof Promise)a.push(u),i=!0;else a.push(u)}if(!i)return xm(a,o,e,t);return Promise.all(a).then((s)=>xm(s,o,e,t))}}),Fs=z("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,Mr.init(e,r);let n=e._zod.parse;de(e._zod,"propValues",()=>{let t={};for(let i of r.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[s,u]of Object.entries(a)){if(!t[s])t[s]=new Set;for(let c of u)t[s].add(c)}}return t});let o=qt(()=>{let t=r.options,i=new Map;for(let a of t){let s=a._zod.propValues?.[r.discriminator];if(!s||s.size===0)throw Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let u of s){if(i.has(u))throw Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,a)}}return i});e._zod.parse=(t,i)=>{let a=t.value;if(!jt(a))return t.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),t;let s=o.value.get(a?.[r.discriminator]);if(s)return s._zod.run(t,i);if(r.unionFallback||i.direction==="backward")return n(t,i);return t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:a,path:[r.discriminator],inst:e}),t}}),Bs=z("$ZodIntersection",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{let t=n.value,i=r.left._zod.run({value:t,issues:[]},o),a=r.right._zod.run({value:t,issues:[]},o);if(i instanceof Promise||a instanceof Promise)return Promise.all([i,a]).then(([u,c])=>$m(n,u,c));return $m(n,i,a)}});function ts(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e===+r)return{valid:!0,data:e};if(vt(e)&&vt(r)){let n=Object.keys(r),o=Object.keys(e).filter((i)=>n.indexOf(i)!==-1),t={...e,...r};for(let i of o){let a=ts(e[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};t[i]=a.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let t=e[o],i=r[o],a=ts(t,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function $m(e,r,n){let o=new Map,t;for(let s of r.issues)if(s.code==="unrecognized_keys"){t??(t=s);for(let u of s.keys){if(!o.has(u))o.set(u,{});o.get(u).l=!0}}else e.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let u of s.keys){if(!o.has(u))o.set(u,{});o.get(u).r=!0}else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&t)e.issues.push({...t,keys:i});if(yt(e))return e;let a=ts(r.value,n.value);if(!a.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Wn=z("$ZodTuple",(e,r)=>{se.init(e,r);let n=r.items;e._zod.parse=(o,t)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=wm(n,"optin"),u=wm(n,"optout");if(!r.rest){if(i.length<s)return o.issues.push({code:"too_small",minimum:s,inclusive:!0,input:i,inst:e,origin:"array"}),o;if(i.length>n.length)o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=Array(n.length);for(let d=0;d<n.length;d++){let l=n[d]._zod.run({value:i[d],issues:[]},t);if(l instanceof Promise)a.push(l.then((h)=>{c[d]=h}));else c[d]=l}if(r.rest){let d=n.length-1,l=i.slice(n.length);for(let h of l){d++;let f=r.rest._zod.run({value:h,issues:[]},t);if(f instanceof Promise)a.push(f.then((g)=>km(g,o,d)));else km(f,o,d)}}if(a.length)return Promise.all(a).then(()=>Im(c,o,n,i,u));return Im(c,o,n,i,u)}});function wm(e,r){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[r]!=="optional")return n+1;return 0}function km(e,r,n){if(e.issues.length)r.issues.push(...Ae(n,e.issues));r.value[n]=e.value}function Im(e,r,n,o,t){for(let i=0;i<n.length;i++){let a=e[i],s=i<o.length;if(a.issues.length){if(!s&&i>=t){r.value.length=i;break}r.issues.push(...Ae(i,a.issues))}r.value[i]=a.value}for(let i=r.value.length-1;i>=o.length;i--)if(n[i]._zod.optout==="optional"&&r.value[i]===void 0)r.value.length=i;else break;return r}var Ms=z("$ZodRecord",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!vt(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let i=[],a=r.keyType._zod.values;if(a){n.value={};let s=new Set;for(let c of a)if(typeof c==="string"||typeof c==="number"||typeof c==="symbol"){s.add(typeof c==="number"?c.toString():c);let d=r.keyType._zod.run({value:c,issues:[]},o);if(d instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map((f)=>Ue(f,o,we())),input:c,path:[c],inst:e});continue}let l=d.value,h=r.valueType._zod.run({value:t[c],issues:[]},o);if(h instanceof Promise)i.push(h.then((f)=>{if(f.issues.length)n.issues.push(...Ae(c,f.issues));n.value[l]=f.value}));else{if(h.issues.length)n.issues.push(...Ae(c,h.issues));n.value[l]=h.value}}let u;for(let c in t)if(!s.has(c))u=u??[],u.push(c);if(u&&u.length>0)n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:u})}else{n.value={};for(let s of Reflect.ownKeys(t)){if(s==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(t,s))continue;let u=r.keyType._zod.run({value:s,issues:[]},o);if(u instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof s==="string"&&Zr.test(s)&&u.issues.length){let l=r.keyType._zod.run({value:Number(s),issues:[]},o);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(l.issues.length===0)u=l}if(u.issues.length){if(r.mode==="loose")n.value[s]=t[s];else n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map((l)=>Ue(l,o,we())),input:s,path:[s],inst:e});continue}let d=r.valueType._zod.run({value:t[s],issues:[]},o);if(d instanceof Promise)i.push(d.then((l)=>{if(l.issues.length)n.issues.push(...Ae(s,l.issues));n.value[u.value]=l.value}));else{if(d.issues.length)n.issues.push(...Ae(s,d.issues));n.value[u.value]=d.value}}}if(i.length)return Promise.all(i).then(()=>n);return n}}),Vs=z("$ZodMap",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let i=[];n.value=new Map;for(let[a,s]of t){let u=r.keyType._zod.run({value:a,issues:[]},o),c=r.valueType._zod.run({value:s,issues:[]},o);if(u instanceof Promise||c instanceof Promise)i.push(Promise.all([u,c]).then(([d,l])=>{Sm(d,l,n,a,t,e,o)}));else Sm(u,c,n,a,t,e,o)}if(i.length)return Promise.all(i).then(()=>n);return n}});function Sm(e,r,n,o,t,i,a){if(e.issues.length)if(Dr.has(typeof o))n.issues.push(...Ae(o,e.issues));else n.issues.push({code:"invalid_key",origin:"map",input:t,inst:i,issues:e.issues.map((s)=>Ue(s,a,we()))});if(r.issues.length)if(Dr.has(typeof o))n.issues.push(...Ae(o,r.issues));else n.issues.push({origin:"map",code:"invalid_element",input:t,inst:i,key:o,issues:r.issues.map((s)=>Ue(s,a,we()))});n.value.set(e.value,r.value)}var qs=z("$ZodSet",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let a of t){let s=r.valueType._zod.run({value:a,issues:[]},o);if(s instanceof Promise)i.push(s.then((u)=>zm(u,n)));else zm(s,n)}if(i.length)return Promise.all(i).then(()=>n);return n}});function zm(e,r){if(e.issues.length)r.issues.push(...e.issues);r.value.add(e.value)}var Js=z("$ZodEnum",(e,r)=>{se.init(e,r);let n=Or(r.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter((t)=>Dr.has(typeof t)).map((t)=>typeof t==="string"?Je(t):t.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let a=t.value;if(o.has(a))return t;return t.issues.push({code:"invalid_value",values:n,input:a,inst:e}),t}}),Ws=z("$ZodLiteral",(e,r)=>{if(se.init(e,r),r.values.length===0)throw Error("Cannot create literal schema with no valid values");let n=new Set(r.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.values.map((o)=>typeof o==="string"?Je(o):o?Je(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,t)=>{let i=o.value;if(n.has(i))return o;return o.issues.push({code:"invalid_value",values:r.values,input:i,inst:e}),o}}),Gs=z("$ZodFile",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(t instanceof File)return n;return n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),Hs=z("$ZodTransform",(e,r)=>{se.init(e,r),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot(e.constructor.name);let t=r.transform(n.value,n);if(o.async)return(t instanceof Promise?t:Promise.resolve(t)).then((a)=>(n.value=a,n.fallback=!0,n));if(t instanceof Promise)throw new Qe;return n.value=t,n.fallback=!0,n}});function Pm(e,r){if(r===void 0&&(e.issues.length||e.fallback))return{issues:[],value:void 0};return e}var Gn=z("$ZodOptional",(e,r)=>{se.init(e,r),e._zod.optin="optional",e._zod.optout="optional",de(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),de(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${jr(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let t=n.value,i=r.innerType._zod.run(n,o);if(i instanceof Promise)return i.then((a)=>Pm(a,t));return Pm(i,t)}if(n.value===void 0)return n;return r.innerType._zod.run(n,o)}}),Ks=z("$ZodExactOptional",(e,r)=>{Gn.init(e,r),de(e._zod,"values",()=>r.innerType._zod.values),de(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),Xs=z("$ZodNullable",(e,r)=>{se.init(e,r),de(e._zod,"optin",()=>r.innerType._zod.optin),de(e._zod,"optout",()=>r.innerType._zod.optout),de(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${jr(n.source)}|null)$`):void 0}),de(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>{if(n.value===null)return n;return r.innerType._zod.run(n,o)}}),Ys=z("$ZodDefault",(e,r)=>{se.init(e,r),e._zod.optin="optional",de(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,o);if(t instanceof Promise)return t.then((i)=>Tm(i,r));return Tm(t,r)}});function Tm(e,r){if(e.value===void 0)e.value=r.defaultValue;return e}var Qs=z("$ZodPrefault",(e,r)=>{se.init(e,r),e._zod.optin="optional",de(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)n.value=r.defaultValue;return r.innerType._zod.run(n,o)}}),eu=z("$ZodNonOptional",(e,r)=>{se.init(e,r),de(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter((o)=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let t=r.innerType._zod.run(n,o);if(t instanceof Promise)return t.then((i)=>Em(i,e));return Em(t,e)}});function Em(e,r){if(!e.issues.length&&e.value===void 0)e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r});return e}var tu=z("$ZodSuccess",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot("ZodSuccess");let t=r.innerType._zod.run(n,o);if(t instanceof Promise)return t.then((i)=>(n.value=i.issues.length===0,n));return n.value=t.issues.length===0,n}}),ru=z("$ZodCatch",(e,r)=>{se.init(e,r),e._zod.optin="optional",de(e._zod,"optout",()=>r.innerType._zod.optout),de(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);if(t instanceof Promise)return t.then((i)=>{if(n.value=i.value,i.issues.length)n.value=r.catchValue({...n,error:{issues:i.issues.map((a)=>Ue(a,o,we()))},input:n.value}),n.issues=[],n.fallback=!0;return n});if(n.value=t.value,t.issues.length)n.value=r.catchValue({...n,error:{issues:t.issues.map((i)=>Ue(i,o,we()))},input:n.value}),n.issues=[],n.fallback=!0;return n}}),nu=z("$ZodNaN",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>{if(typeof n.value!=="number"||!Number.isNaN(n.value))return n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n;return n}}),Hn=z("$ZodPipe",(e,r)=>{se.init(e,r),de(e._zod,"values",()=>r.in._zod.values),de(e._zod,"optin",()=>r.in._zod.optin),de(e._zod,"optout",()=>r.out._zod.optout),de(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);if(i instanceof Promise)return i.then((a)=>Fn(a,r.in,o));return Fn(i,r.in,o)}let t=r.in._zod.run(n,o);if(t instanceof Promise)return t.then((i)=>Fn(i,r.out,o));return Fn(t,r.out,o)}});function Fn(e,r,n){if(e.issues.length)return e.aborted=!0,e;return r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Vr=z("$ZodCodec",(e,r)=>{se.init(e,r),de(e._zod,"values",()=>r.in._zod.values),de(e._zod,"optin",()=>r.in._zod.optin),de(e._zod,"optout",()=>r.out._zod.optout),de(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);if(i instanceof Promise)return i.then((a)=>Bn(a,r,o));return Bn(i,r,o)}else{let i=r.out._zod.run(n,o);if(i instanceof Promise)return i.then((a)=>Bn(a,r,o));return Bn(i,r,o)}}});function Bn(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);if(t instanceof Promise)return t.then((i)=>Mn(e,i,r.out,n));return Mn(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);if(t instanceof Promise)return t.then((i)=>Mn(e,i,r.in,n));return Mn(e,t,r.in,n)}}function Mn(e,r,n,o){if(e.issues.length)return e.aborted=!0,e;return n._zod.run({value:r,issues:e.issues},o)}var iu=z("$ZodPreprocess",(e,r)=>{Hn.init(e,r)}),ou=z("$ZodReadonly",(e,r)=>{se.init(e,r),de(e._zod,"propValues",()=>r.innerType._zod.propValues),de(e._zod,"values",()=>r.innerType._zod.values),de(e._zod,"optin",()=>r.innerType?._zod?.optin),de(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);if(t instanceof Promise)return t.then(Om);return Om(t)}});function Om(e){return e.value=Object.freeze(e.value),e}var au=z("$ZodTemplateLiteral",(e,r)=>{se.init(e,r);let n=[];for(let o of r.parts)if(typeof o==="object"&&o!==null){if(!o._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${o._zod.traits}`);let i=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(i,a))}else if(o===null||Yo.has(typeof o))n.push(Je(`${o}`));else throw Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,t)=>{if(typeof o.value!=="string")return o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o;if(e._zod.pattern.lastIndex=0,!e._zod.pattern.test(o.value))return o.issues.push({input:o.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),o;return o}}),su=z("$ZodFunction",(e,r)=>(se.init(e,r),e._def=r,e._zod.def=r,e.implement=(n)=>{if(typeof n!=="function")throw Error("implement() must be called with a function");return function(...o){let t=e._def.input?zn(e._def.input,o):o,i=Reflect.apply(n,this,t);if(e._def.output)return zn(e._def.output,i);return i}},e.implementAsync=(n)=>{if(typeof n!=="function")throw Error("implementAsync() must be called with a function");return async function(...o){let t=e._def.input?await Pn(e._def.input,o):o,i=await Reflect.apply(n,this,t);if(e._def.output)return await Pn(e._def.output,i);return i}},e._zod.parse=(n,o)=>{if(typeof n.value!=="function")return n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n;if(e._def.output&&e._def.output._zod.def.type==="promise")n.value=e.implementAsync(n.value);else n.value=e.implement(n.value);return n},e.input=(...n)=>{let o=e.constructor;if(Array.isArray(n[0]))return new o({type:"function",input:new Wn({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output});return new o({type:"function",input:n[0],output:e._def.output})},e.output=(n)=>new e.constructor({type:"function",input:e._def.input,output:n}),e)),uu=z("$ZodPromise",(e,r)=>{se.init(e,r),e._zod.parse=(n,o)=>Promise.resolve(n.value).then((t)=>r.innerType._zod.run({value:t,issues:[]},o))}),cu=z("$ZodLazy",(e,r)=>{se.init(e,r),de(e._zod,"innerType",()=>{let n=r;if(!n._cachedInner)n._cachedInner=r.getter();return n._cachedInner}),de(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),de(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),de(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),de(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),lu=z("$ZodCustom",(e,r)=>{ye.init(e,r),se.init(e,r),e._zod.parse=(n,o)=>n,e._zod.check=(n)=>{let o=n.value,t=r.fn(o);if(t instanceof Promise)return t.then((i)=>jm(i,n,o,e));jm(t,n,o,e);return}});function jm(e,r,n,o){if(!e){let t={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};if(o._zod.def.params)t.params=o._zod.def.params;r.issues.push(Jt(t))}}var Hr={};ut(Hr,{ar:()=>du,az:()=>fu,be:()=>mu,bg:()=>pu,ca:()=>hu,cs:()=>gu,da:()=>vu,de:()=>yu,el:()=>bu,en:()=>qr,eo:()=>_u,es:()=>xu,fa:()=>$u,fi:()=>wu,fr:()=>ku,frCA:()=>Iu,he:()=>Su,hr:()=>zu,hu:()=>Pu,hy:()=>Tu,id:()=>Eu,is:()=>Ou,it:()=>ju,ja:()=>Du,ka:()=>Uu,kh:()=>Ru,km:()=>Jr,ko:()=>Cu,lt:()=>Au,mk:()=>Nu,ms:()=>Zu,nl:()=>Lu,no:()=>Fu,ota:()=>Bu,pl:()=>Vu,ps:()=>Mu,pt:()=>qu,ro:()=>Ju,ru:()=>Wu,sl:()=>Gu,sv:()=>Hu,ta:()=>Ku,th:()=>Xu,tr:()=>Yu,ua:()=>Qu,uk:()=>Gr,ur:()=>ec,uz:()=>tc,vi:()=>rc,yo:()=>oc,zhCN:()=>nc,zhTW:()=>ic});var M_=()=>{let e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function r(t){return e[t]??null}let n={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:"مدخل"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${s}`;return`مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${s}`}case"invalid_value":if(t.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${M(t.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${i} ${t.maximum.toString()} ${a.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${i} ${t.minimum.toString()} ${a.unit}`;return`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`;if(i.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"`;if(i.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"`;if(i.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}`;return`${n[i.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${D(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function du(){return{localeError:M_()}}var V_=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${s}`;return`Yanlış dəyər: gözlənilən ${i}, daxil olan ${s}`}case"invalid_value":if(t.values.length===1)return`Yanlış dəyər: gözlənilən ${M(t.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${i}${t.maximum.toString()} ${a.unit??"element"}`;return`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Çox kiçik: gözlənilən ${t.origin} ${i}${t.minimum.toString()} ${a.unit}`;return`Çox kiçik: gözlənilən ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Yanlış mətn: "${i.prefix}" ilə başlamalıdır`;if(i.format==="ends_with")return`Yanlış mətn: "${i.suffix}" ilə bitməlidir`;if(i.format==="includes")return`Yanlış mətn: "${i.includes}" daxil olmalıdır`;if(i.format==="regex")return`Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${n[i.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${D(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function fu(){return{localeError:V_()}}function Nm(e,r,n,o){let t=Math.abs(e),i=t%10,a=t%100;if(a>=11&&a<=19)return o;if(i===1)return r;if(i>=2&&i<=4)return n;return o}var q_=()=>{let e={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 r(t){return e[t]??null}let n={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:"увод"},o={nan:"NaN",number:"лік",array:"масіў"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${s}`;return`Няправільны ўвод: чакаўся ${i}, атрымана ${s}`}case"invalid_value":if(t.values.length===1)return`Няправільны ўвод: чакалася ${M(t.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a){let s=Number(t.maximum),u=Nm(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${a.verb} ${i}${t.maximum.toString()} ${u}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a){let s=Number(t.minimum),u=Nm(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${a.verb} ${i}${t.minimum.toString()} ${u}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${i.prefix}"`;if(i.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${i.suffix}"`;if(i.format==="includes")return`Няправільны радок: павінен змяшчаць "${i.includes}"`;if(i.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${i.pattern}`;return`Няправільны ${n[i.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${D(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function mu(){return{localeError:q_()}}var J_=()=>{let e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function r(t){return e[t]??null}let n={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:"вход"},o={nan:"NaN",number:"число",array:"масив"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Невалиден вход: очакван instanceof ${t.expected}, получен ${s}`;return`Невалиден вход: очакван ${i}, получен ${s}`}case"invalid_value":if(t.values.length===1)return`Невалиден вход: очакван ${M(t.values[0])}`;return`Невалидна опция: очаквано едно от ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Твърде голямо: очаква се ${t.origin??"стойност"} да съдържа ${i}${t.maximum.toString()} ${a.unit??"елемента"}`;return`Твърде голямо: очаква се ${t.origin??"стойност"} да бъде ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Твърде малко: очаква се ${t.origin} да съдържа ${i}${t.minimum.toString()} ${a.unit}`;return`Твърде малко: очаква се ${t.origin} да бъде ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Невалиден низ: трябва да започва с "${i.prefix}"`;if(i.format==="ends_with")return`Невалиден низ: трябва да завършва с "${i.suffix}"`;if(i.format==="includes")return`Невалиден низ: трябва да включва "${i.includes}"`;if(i.format==="regex")return`Невалиден низ: трябва да съвпада с ${i.pattern}`;let a="Невалиден";if(i.format==="emoji")a="Невалидно";if(i.format==="datetime")a="Невалидно";if(i.format==="date")a="Невалидна";if(i.format==="time")a="Невалидно";if(i.format==="duration")a="Невалидна";return`${a} ${n[i.format]??t.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${t.divisor}`;case"unrecognized_keys":return`Неразпознат${t.keys.length>1?"и":""} ключ${t.keys.length>1?"ове":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${t.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${t.origin}`;default:return"Невалиден вход"}}};function pu(){return{localeError:J_()}}var W_=()=>{let e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${s}`;return`Tipus invàlid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":if(t.values.length===1)return`Valor invàlid: s'esperava ${M(t.values[0])}`;return`Opció invàlida: s'esperava una de ${D(t.values," o ")}`;case"too_big":{let i=t.inclusive?"com a màxim":"menys de",a=r(t.origin);if(a)return`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${i} ${t.maximum.toString()} ${a.unit??"elements"}`;return`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"com a mínim":"més de",a=r(t.origin);if(a)return`Massa petit: s'esperava que ${t.origin} contingués ${i} ${t.minimum.toString()} ${a.unit}`;return`Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Format invàlid: ha de començar amb "${i.prefix}"`;if(i.format==="ends_with")return`Format invàlid: ha d'acabar amb "${i.suffix}"`;if(i.format==="includes")return`Format invàlid: ha d'incloure "${i.includes}"`;if(i.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${i.pattern}`;return`Format invàlid per a ${n[i.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function hu(){return{localeError:W_()}}var G_=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${s}`;return`Neplatný vstup: očekáváno ${i}, obdrženo ${s}`}case"invalid_value":if(t.values.length===1)return`Neplatný vstup: očekáváno ${M(t.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${i}${t.maximum.toString()} ${a.unit??"prvků"}`;return`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${i}${t.minimum.toString()} ${a.unit??"prvků"}`;return`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Neplatný řetězec: musí začínat na "${i.prefix}"`;if(i.format==="ends_with")return`Neplatný řetězec: musí končit na "${i.suffix}"`;if(i.format==="includes")return`Neplatný řetězec: musí obsahovat "${i.includes}"`;if(i.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${i.pattern}`;return`Neplatný formát ${n[i.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${D(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function gu(){return{localeError:G_()}}var H_=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Ugyldigt input: forventede instanceof ${t.expected}, fik ${s}`;return`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":if(t.values.length===1)return`Ugyldig værdi: forventede ${M(t.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin),s=o[t.origin]??t.origin;if(a)return`For stor: forventede ${s??"value"} ${a.verb} ${i} ${t.maximum.toString()} ${a.unit??"elementer"}`;return`For stor: forventede ${s??"value"} havde ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin),s=o[t.origin]??t.origin;if(a)return`For lille: forventede ${s} ${a.verb} ${i} ${t.minimum.toString()} ${a.unit}`;return`For lille: forventede ${s} havde ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Ugyldig streng: skal starte med "${i.prefix}"`;if(i.format==="ends_with")return`Ugyldig streng: skal ende med "${i.suffix}"`;if(i.format==="includes")return`Ugyldig streng: skal indeholde "${i.includes}"`;if(i.format==="regex")return`Ugyldig streng: skal matche mønsteret ${i.pattern}`;return`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${D(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${t.origin}`;default:return"Ugyldigt input"}}};function vu(){return{localeError:H_()}}var K_=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"Zahl",array:"Array"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${s}`;return`Ungültige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":if(t.values.length===1)return`Ungültige Eingabe: erwartet ${M(t.values[0])}`;return`Ungültige Option: erwartet eine von ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Zu groß: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ${a.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ist`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${a.unit} hat`;return`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Ungültiger String: muss mit "${i.prefix}" beginnen`;if(i.format==="ends_with")return`Ungültiger String: muss mit "${i.suffix}" enden`;if(i.format==="includes")return`Ungültiger String: muss "${i.includes}" enthalten`;if(i.format==="regex")return`Ungültiger String: muss dem Muster ${i.pattern} entsprechen`;return`Ungültig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${D(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function yu(){return{localeError:K_()}}var X_=()=>{let e={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function r(t){return e[t]??null}let n={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:"είσοδος"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(typeof t.expected==="string"&&/^[A-Z]/.test(t.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${t.expected}, λήφθηκε ${s}`;return`Μη έγκυρη είσοδος: αναμενόταν ${i}, λήφθηκε ${s}`}case"invalid_value":if(t.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${M(t.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Πολύ μεγάλο: αναμενόταν ${t.origin??"τιμή"} να έχει ${i}${t.maximum.toString()} ${a.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${t.origin??"τιμή"} να είναι ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Πολύ μικρό: αναμενόταν ${t.origin} να έχει ${i}${t.minimum.toString()} ${a.unit}`;return`Πολύ μικρό: αναμενόταν ${t.origin} να είναι ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${i.prefix}"`;if(i.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${i.suffix}"`;if(i.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${i.includes}"`;if(i.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${i.pattern}`;return`Μη έγκυρο: ${n[i.format]??t.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${t.divisor}`;case"unrecognized_keys":return`Άγνωστ${t.keys.length>1?"α":"ο"} κλειδ${t.keys.length>1?"ιά":"ί"}: ${D(t.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${t.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${t.origin}`;default:return"Μη έγκυρη είσοδος"}}};function bu(){return{localeError:X_()}}var Y_=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":if(t.values.length===1)return`Invalid input: expected ${M(t.values[0])}`;return`Invalid option: expected one of ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Too big: expected ${t.origin??"value"} to have ${i}${t.maximum.toString()} ${a.unit??"elements"}`;return`Too big: expected ${t.origin??"value"} to be ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${a.unit}`;return`Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Invalid string: must start with "${i.prefix}"`;if(i.format==="ends_with")return`Invalid string: must end with "${i.suffix}"`;if(i.format==="includes")return`Invalid string: must include "${i.includes}"`;if(i.format==="regex")return`Invalid string: must match pattern ${i.pattern}`;return`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":if(t.options&&Array.isArray(t.options)&&t.options.length>0)return`Invalid discriminator value. Expected ${t.options.map((a)=>`'${a}'`).join(" | ")}`;return"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function qr(){return{localeError:Y_()}}var Q_=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${s}`;return`Nevalida enigo: atendiĝis ${i}, riceviĝis ${s}`}case"invalid_value":if(t.values.length===1)return`Nevalida enigo: atendiĝis ${M(t.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Tro granda: atendiĝis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()} ${a.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Tro malgranda: atendiĝis ke ${t.origin} havu ${i}${t.minimum.toString()} ${a.unit}`;return`Tro malgranda: atendiĝis ke ${t.origin} estu ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${i.prefix}"`;if(i.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${i.suffix}"`;if(i.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${i.includes}"`;if(i.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`;return`Nevalida ${n[i.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} ŝlosilo${t.keys.length>1?"j":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function _u(){return{localeError:Q_()}}var ex=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let n={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"},o={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(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${s}`;return`Entrada inválida: se esperaba ${i}, recibido ${s}`}case"invalid_value":if(t.values.length===1)return`Entrada inválida: se esperaba ${M(t.values[0])}`;return`Opción inválida: se esperaba una de ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin),s=o[t.origin]??t.origin;if(a)return`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${t.maximum.toString()} ${a.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin),s=o[t.origin]??t.origin;if(a)return`Demasiado pequeño: se esperaba que ${s} tuviera ${i}${t.minimum.toString()} ${a.unit}`;return`Demasiado pequeño: se esperaba que ${s} fuera ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Cadena inválida: debe comenzar con "${i.prefix}"`;if(i.format==="ends_with")return`Cadena inválida: debe terminar en "${i.suffix}"`;if(i.format==="includes")return`Cadena inválida: debe incluir "${i.includes}"`;if(i.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${i.pattern}`;return`Inválido ${n[i.format]??t.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Llave inválida en ${o[t.origin]??t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${o[t.origin]??t.origin}`;default:return"Entrada inválida"}}};function xu(){return{localeError:ex()}}var tx=()=>{let e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function r(t){return e[t]??null}let n={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:"ورودی"},o={nan:"NaN",number:"عدد",array:"آرایه"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`ورودی نامعتبر: میبایست instanceof ${t.expected} میبود، ${s} دریافت شد`;return`ورودی نامعتبر: میبایست ${i} میبود، ${s} دریافت شد`}case"invalid_value":if(t.values.length===1)return`ورودی نامعتبر: میبایست ${M(t.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${D(t.values,"|")} میبود`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`خیلی بزرگ: ${t.origin??"مقدار"} باید ${i}${t.maximum.toString()} ${a.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${t.origin??"مقدار"} باید ${i}${t.maximum.toString()} باشد`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`خیلی کوچک: ${t.origin} باید ${i}${t.minimum.toString()} ${a.unit} باشد`;return`خیلی کوچک: ${t.origin} باید ${i}${t.minimum.toString()} باشد`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`رشته نامعتبر: باید با "${i.prefix}" شروع شود`;if(i.format==="ends_with")return`رشته نامعتبر: باید با "${i.suffix}" تمام شود`;if(i.format==="includes")return`رشته نامعتبر: باید شامل "${i.includes}" باشد`;if(i.format==="regex")return`رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد`;return`${n[i.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${D(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function $u(){return{localeError:tx()}}var rx=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${s}`;return`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":if(t.values.length===1)return`Virheellinen syöte: täytyy olla ${M(t.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Liian suuri: ${a.subject} täytyy olla ${i}${t.maximum.toString()} ${a.unit}`.trim();return`Liian suuri: arvon täytyy olla ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Liian pieni: ${a.subject} täytyy olla ${i}${t.minimum.toString()} ${a.unit}`.trim();return`Liian pieni: arvon täytyy olla ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${i.prefix}"`;if(i.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${i.suffix}"`;if(i.format==="includes")return`Virheellinen syöte: täytyy sisältää "${i.includes}"`;if(i.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}`;return`Virheellinen ${n[i.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${D(t.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 wu(){return{localeError:rx()}}var nx=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}let n={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"},o={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(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Entrée invalide : instanceof ${t.expected} attendu, ${s} reçu`;return`Entrée invalide : ${i} attendu, ${s} reçu`}case"invalid_value":if(t.values.length===1)return`Entrée invalide : ${M(t.values[0])} attendu`;return`Option invalide : une valeur parmi ${D(t.values,"|")} attendue`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Trop grand : ${o[t.origin]??"valeur"} doit ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"élément(s)"}`;return`Trop grand : ${o[t.origin]??"valeur"} doit être ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Trop petit : ${o[t.origin]??"valeur"} doit ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`;return`Trop petit : ${o[t.origin]??"valeur"} doit être ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Chaîne invalide : doit commencer par "${i.prefix}"`;if(i.format==="ends_with")return`Chaîne invalide : doit se terminer par "${i.suffix}"`;if(i.format==="includes")return`Chaîne invalide : doit inclure "${i.includes}"`;if(i.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${i.pattern}`;return`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${D(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function ku(){return{localeError:nx()}}var ix=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Entrée invalide : attendu instanceof ${t.expected}, reçu ${s}`;return`Entrée invalide : attendu ${i}, reçu ${s}`}case"invalid_value":if(t.values.length===1)return`Entrée invalide : attendu ${M(t.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"≤":"<",a=r(t.origin);if(a)return`Trop grand : attendu que ${t.origin??"la valeur"} ait ${i}${t.maximum.toString()} ${a.unit}`;return`Trop grand : attendu que ${t.origin??"la valeur"} soit ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"≥":">",a=r(t.origin);if(a)return`Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${a.unit}`;return`Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Chaîne invalide : doit commencer par "${i.prefix}"`;if(i.format==="ends_with")return`Chaîne invalide : doit se terminer par "${i.suffix}"`;if(i.format==="includes")return`Chaîne invalide : doit inclure "${i.includes}"`;if(i.format==="regex")return`Chaîne invalide : doit correspondre au motif ${i.pattern}`;return`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${D(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function Iu(){return{localeError:ix()}}var ox=()=>{let e={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"}},r={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},n=(c)=>c?e[c]:void 0,o=(c)=>{let d=n(c);if(d)return d.label;return c??e.unknown.label},t=(c)=>`ה${o(c)}`,i=(c)=>(n(c)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",a=(c)=>{if(!c)return null;return r[c]??null},s={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"}},u={nan:"NaN"};return(c)=>{switch(c.code){case"invalid_type":{let d=c.expected,l=u[d??""]??o(d),h=q(c.input),f=u[h]??e[h]?.label??h;if(/^[A-Z]/.test(c.expected))return`קלט לא תקין: צריך להיות instanceof ${c.expected}, התקבל ${f}`;return`קלט לא תקין: צריך להיות ${l}, התקבל ${f}`}case"invalid_value":{if(c.values.length===1)return`ערך לא תקין: הערך חייב להיות ${M(c.values[0])}`;let d=c.values.map((f)=>M(f));if(c.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${d[0]} או ${d[1]}`;let l=d[d.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${d.slice(0,-1).join(", ")} או ${l}`}case"too_big":{let d=a(c.origin),l=t(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"ארוך"} מדי: ${l} צריכה להכיל ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"או פחות":"לכל היותר"}`.trim();if(c.origin==="number"){let g=c.inclusive?`קטן או שווה ל-${c.maximum}`:`קטן מ-${c.maximum}`;return`גדול מדי: ${l} צריך להיות ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"צריכה":"צריך",v=c.inclusive?`${c.maximum} ${d?.unit??""} או פחות`:`פחות מ-${c.maximum} ${d?.unit??""}`;return`גדול מדי: ${l} ${g} להכיל ${v}`.trim()}let h=c.inclusive?"<=":"<",f=i(c.origin??"value");if(d?.unit)return`${d.longLabel} מדי: ${l} ${f} ${h}${c.maximum.toString()} ${d.unit}`;return`${d?.longLabel??"גדול"} מדי: ${l} ${f} ${h}${c.maximum.toString()}`}case"too_small":{let d=a(c.origin),l=t(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"קצר"} מדי: ${l} צריכה להכיל ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"או יותר":"לפחות"}`.trim();if(c.origin==="number"){let g=c.inclusive?`גדול או שווה ל-${c.minimum}`:`גדול מ-${c.minimum}`;return`קטן מדי: ${l} צריך להיות ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"צריכה":"צריך";if(c.minimum===1&&c.inclusive){let y=c.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${l} ${g} להכיל ${y}`}let v=c.inclusive?`${c.minimum} ${d?.unit??""} או יותר`:`יותר מ-${c.minimum} ${d?.unit??""}`;return`קטן מדי: ${l} ${g} להכיל ${v}`.trim()}let h=c.inclusive?">=":">",f=i(c.origin??"value");if(d?.unit)return`${d.shortLabel} מדי: ${l} ${f} ${h}${c.minimum.toString()} ${d.unit}`;return`${d?.shortLabel??"קטן"} מדי: ${l} ${f} ${h}${c.minimum.toString()}`}case"invalid_format":{let d=c;if(d.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${d.prefix}"`;if(d.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${d.suffix}"`;if(d.format==="includes")return`המחרוזת חייבת לכלול "${d.includes}"`;if(d.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${d.pattern}`;let l=s[d.format],h=l?.label??d.format,g=(l?.gender??"m")==="f"?"תקינה":"תקין";return`${h} לא ${g}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${c.divisor}`;case"unrecognized_keys":return`מפתח${c.keys.length>1?"ות":""} לא מזוה${c.keys.length>1?"ים":"ה"}: ${D(c.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t(c.origin??"array")}`;default:return"קלט לא תקין"}}};function Su(){return{localeError:ox()}}var ax=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(t){return e[t]??null}let n={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"},o={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(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Neispravan unos: očekuje se instanceof ${t.expected}, a primljeno je ${s}`;return`Neispravan unos: očekuje se ${i}, a primljeno je ${s}`}case"invalid_value":if(t.values.length===1)return`Neispravna vrijednost: očekivano ${M(t.values[0])}`;return`Neispravna opcija: očekivano jedno od ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin),s=o[t.origin]??t.origin;if(a)return`Preveliko: očekivano da ${s??"vrijednost"} ima ${i}${t.maximum.toString()} ${a.unit??"elemenata"}`;return`Preveliko: očekivano da ${s??"vrijednost"} bude ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin),s=o[t.origin]??t.origin;if(a)return`Premalo: očekivano da ${s} ima ${i}${t.minimum.toString()} ${a.unit}`;return`Premalo: očekivano da ${s} bude ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Neispravan tekst: mora započinjati s "${i.prefix}"`;if(i.format==="ends_with")return`Neispravan tekst: mora završavati s "${i.suffix}"`;if(i.format==="includes")return`Neispravan tekst: mora sadržavati "${i.includes}"`;if(i.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`;return`Neispravna ${n[i.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i ključevi":" ključ"}: ${D(t.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${o[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function zu(){return{localeError:ax()}}var sx=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"szám",array:"tömb"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${s}`;return`Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${s}`}case"invalid_value":if(t.values.length===1)return`Érvénytelen bemenet: a várt érték ${M(t.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${i}${t.maximum.toString()} ${a.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${i}${t.minimum.toString()} ${a.unit}`;return`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie`;if(i.format==="ends_with")return`Érvénytelen string: "${i.suffix}" értékkel kell végződnie`;if(i.format==="includes")return`Érvénytelen string: "${i.includes}" értéket kell tartalmaznia`;if(i.format==="regex")return`Érvénytelen string: ${i.pattern} mintának kell megfelelnie`;return`Érvénytelen ${n[i.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function Pu(){return{localeError:sx()}}function Zm(e,r,n){return Math.abs(e)===1?r:n}function Yt(e){if(!e)return"";let r=["ա","ե","ը","ի","ո","ու","օ"],n=e[e.length-1];return e+(r.includes(n)?"ն":"ը")}var ux=()=>{let e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function r(t){return e[t]??null}let n={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:"մուտք"},o={nan:"NaN",number:"թիվ",array:"զանգված"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${s}`;return`Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${s}`}case"invalid_value":if(t.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${M(t.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a){let s=Number(t.maximum),u=Zm(s,a.unit.one,a.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Yt(t.origin??"արժեք")} կունենա ${i}${t.maximum.toString()} ${u}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Yt(t.origin??"արժեք")} լինի ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a){let s=Number(t.minimum),u=Zm(s,a.unit.one,a.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Yt(t.origin)} կունենա ${i}${t.minimum.toString()} ${u}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Yt(t.origin)} լինի ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${i.prefix}"-ով`;if(i.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${i.suffix}"-ով`;if(i.format==="includes")return`Սխալ տող․ պետք է պարունակի "${i.includes}"`;if(i.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${i.pattern} ձևաչափին`;return`Սխալ ${n[i.format]??t.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${t.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${t.keys.length>1?"ներ":""}. ${D(t.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${Yt(t.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Yt(t.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function Tu(){return{localeError:ux()}}var cx=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${s}`;return`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":if(t.values.length===1)return`Input tidak valid: diharapkan ${M(t.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${i}${t.maximum.toString()} ${a.unit??"elemen"}`;return`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${a.unit}`;return`Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`String tidak valid: harus dimulai dengan "${i.prefix}"`;if(i.format==="ends_with")return`String tidak valid: harus berakhir dengan "${i.suffix}"`;if(i.format==="includes")return`String tidak valid: harus menyertakan "${i.includes}"`;if(i.format==="regex")return`String tidak valid: harus sesuai pola ${i.pattern}`;return`${n[i.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function Eu(){return{localeError:cx()}}var lx=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"númer",array:"fylki"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Rangt gildi: Þú slóst inn ${s} þar sem á að vera instanceof ${t.expected}`;return`Rangt gildi: Þú slóst inn ${s} þar sem á að vera ${i}`}case"invalid_value":if(t.values.length===1)return`Rangt gildi: gert ráð fyrir ${M(t.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Of stórt: gert er ráð fyrir að ${t.origin??"gildi"} hafi ${i}${t.maximum.toString()} ${a.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${t.origin??"gildi"} sé ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Of lítið: gert er ráð fyrir að ${t.origin} hafi ${i}${t.minimum.toString()} ${a.unit}`;return`Of lítið: gert er ráð fyrir að ${t.origin} sé ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Ógildur strengur: verður að byrja á "${i.prefix}"`;if(i.format==="ends_with")return`Ógildur strengur: verður að enda á "${i.suffix}"`;if(i.format==="includes")return`Ógildur strengur: verður að innihalda "${i.includes}"`;if(i.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${i.pattern}`;return`Rangt ${n[i.format]??t.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`Óþekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${D(t.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${t.origin}`;default:return"Rangt gildi"}}};function Ou(){return{localeError:lx()}}var dx=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"numero",array:"vettore"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Input non valido: atteso instanceof ${t.expected}, ricevuto ${s}`;return`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":if(t.values.length===1)return`Input non valido: atteso ${M(t.values[0])}`;return`Opzione non valida: atteso uno tra ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Troppo grande: ${t.origin??"valore"} deve avere ${i}${t.maximum.toString()} ${a.unit??"elementi"}`;return`Troppo grande: ${t.origin??"valore"} deve essere ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${a.unit}`;return`Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Stringa non valida: deve iniziare con "${i.prefix}"`;if(i.format==="ends_with")return`Stringa non valida: deve terminare con "${i.suffix}"`;if(i.format==="includes")return`Stringa non valida: deve includere "${i.includes}"`;if(i.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${i.pattern}`;return`Input non valido: ${n[i.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${D(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function ju(){return{localeError:dx()}}var fx=()=>{let e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function r(t){return e[t]??null}let n={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:"入力値"},o={nan:"NaN",number:"数値",array:"配列"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`無効な入力: instanceof ${t.expected}が期待されましたが、${s}が入力されました`;return`無効な入力: ${i}が期待されましたが、${s}が入力されました`}case"invalid_value":if(t.values.length===1)return`無効な入力: ${M(t.values[0])}が期待されました`;return`無効な選択: ${D(t.values,"、")}のいずれかである必要があります`;case"too_big":{let i=t.inclusive?"以下である":"より小さい",a=r(t.origin);if(a)return`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a.unit??"要素"}${i}必要があります`;return`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${i}必要があります`}case"too_small":{let i=t.inclusive?"以上である":"より大きい",a=r(t.origin);if(a)return`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a.unit}${i}必要があります`;return`小さすぎる値: ${t.origin}は${t.minimum.toString()}${i}必要があります`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`無効な文字列: "${i.prefix}"で始まる必要があります`;if(i.format==="ends_with")return`無効な文字列: "${i.suffix}"で終わる必要があります`;if(i.format==="includes")return`無効な文字列: "${i.includes}"を含む必要があります`;if(i.format==="regex")return`無効な文字列: パターン${i.pattern}に一致する必要があります`;return`無効な${n[i.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${D(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function Du(){return{localeError:fx()}}var mx=()=>{let e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(t){return e[t]??null}let n={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:"შეყვანა"},o={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${s}`;return`არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${s}`}case"invalid_value":if(t.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${M(t.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${D(t.values,"|")}-დან`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`ზედმეტად დიდი: მოსალოდნელი ${t.origin??"მნიშვნელობა"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${t.origin??"მნიშვნელობა"} იყოს ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`ზედმეტად პატარა: მოსალოდნელი ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${t.origin} იყოს ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${i.prefix}"-ით`;if(i.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${i.suffix}"-ით`;if(i.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${i.includes}"-ს`;if(i.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${i.pattern}`;return`არასწორი ${n[i.format]??t.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${t.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${t.keys.length>1?"ები":"ი"}: ${D(t.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${t.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${t.origin}-ში`;default:return"არასწორი შეყვანა"}}};function Uu(){return{localeError:mx()}}var px=()=>{let e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function r(t){return e[t]??null}let n={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:"ទិន្នន័យបញ្ចូល"},o={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${s}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${s}`}case"invalid_value":if(t.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${M(t.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${i} ${t.maximum.toString()} ${a.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`តូចពេក៖ ត្រូវការ ${t.origin} ${i} ${t.minimum.toString()} ${a.unit}`;return`តូចពេក៖ ត្រូវការ ${t.origin} ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"`;if(i.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"`;if(i.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"`;if(i.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}`;return`មិនត្រឹមត្រូវ៖ ${n[i.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${D(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Jr(){return{localeError:px()}}function Ru(){return Jr()}var hx=()=>{let e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function r(t){return e[t]??null}let n={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:"입력"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${s}입니다`;return`잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${s}입니다`}case"invalid_value":if(t.values.length===1)return`잘못된 입력: 값은 ${M(t.values[0])} 이어야 합니다`;return`잘못된 옵션: ${D(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let i=t.inclusive?"이하":"미만",a=i==="미만"?"이어야 합니다":"여야 합니다",s=r(t.origin),u=s?.unit??"요소";if(s)return`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${u} ${i}${a}`;return`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${i}${a}`}case"too_small":{let i=t.inclusive?"이상":"초과",a=i==="이상"?"이어야 합니다":"여야 합니다",s=r(t.origin),u=s?.unit??"요소";if(s)return`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${u} ${i}${a}`;return`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다`;if(i.format==="ends_with")return`잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다`;if(i.format==="includes")return`잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다`;if(i.format==="regex")return`잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${n[i.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${D(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function Cu(){return{localeError:hx()}}var Wr=(e)=>e.charAt(0).toUpperCase()+e.slice(1);function Lm(e){let r=Math.abs(e),n=r%10,o=r%100;if(o>=11&&o<=19||n===0)return"many";if(n===1)return"one";return"few"}var gx=()=>{let e={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 r(t,i,a,s){let u=e[t]??null;if(u===null)return u;return{unit:u.unit[i],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let n={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"},o={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(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Gautas tipas ${s}, o tikėtasi - instanceof ${t.expected}`;return`Gautas tipas ${s}, o tikėtasi - ${i}`}case"invalid_value":if(t.values.length===1)return`Privalo būti ${M(t.values[0])}`;return`Privalo būti vienas iš ${D(t.values,"|")} pasirinkimų`;case"too_big":{let i=o[t.origin]??t.origin,a=r(t.origin,Lm(Number(t.maximum)),t.inclusive??!1,"smaller");if(a?.verb)return`${Wr(i??t.origin??"reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit??"elementų"}`;let s=t.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Wr(i??t.origin??"reikšmė")} turi būti ${s} ${t.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[t.origin]??t.origin,a=r(t.origin,Lm(Number(t.minimum)),t.inclusive??!1,"bigger");if(a?.verb)return`${Wr(i??t.origin??"reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit??"elementų"}`;let s=t.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Wr(i??t.origin??"reikšmė")} turi būti ${s} ${t.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Eilutė privalo prasidėti "${i.prefix}"`;if(i.format==="ends_with")return`Eilutė privalo pasibaigti "${i.suffix}"`;if(i.format==="includes")return`Eilutė privalo įtraukti "${i.includes}"`;if(i.format==="regex")return`Eilutė privalo atitikti ${i.pattern}`;return`Neteisingas ${n[i.format]??t.format}`}case"not_multiple_of":return`Skaičius privalo būti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${D(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let i=o[t.origin]??t.origin;return`${Wr(i??t.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function Au(){return{localeError:gx()}}var vx=()=>{let e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function r(t){return e[t]??null}let n={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:"внес"},o={nan:"NaN",number:"број",array:"низа"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Грешен внес: се очекува instanceof ${t.expected}, примено ${s}`;return`Грешен внес: се очекува ${i}, примено ${s}`}case"invalid_value":if(t.values.length===1)return`Invalid input: expected ${M(t.values[0])}`;return`Грешана опција: се очекува една ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${i}${t.maximum.toString()} ${a.unit??"елементи"}`;return`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Премногу мал: се очекува ${t.origin} да има ${i}${t.minimum.toString()} ${a.unit}`;return`Премногу мал: се очекува ${t.origin} да биде ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Неважечка низа: мора да започнува со "${i.prefix}"`;if(i.format==="ends_with")return`Неважечка низа: мора да завршува со "${i.suffix}"`;if(i.format==="includes")return`Неважечка низа: мора да вклучува "${i.includes}"`;if(i.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${i.pattern}`;return`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${D(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function Nu(){return{localeError:vx()}}var yx=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"nombor"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${s}`;return`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":if(t.values.length===1)return`Input tidak sah: dijangka ${M(t.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Terlalu besar: dijangka ${t.origin??"nilai"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"elemen"}`;return`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Terlalu kecil: dijangka ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`;return`Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`String tidak sah: mesti bermula dengan "${i.prefix}"`;if(i.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${i.suffix}"`;if(i.format==="includes")return`String tidak sah: mesti mengandungi "${i.includes}"`;if(i.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${i.pattern}`;return`${n[i.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${D(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function Zu(){return{localeError:yx()}}var bx=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"getal"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${s}`;return`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":if(t.values.length===1)return`Ongeldige invoer: verwacht ${M(t.values[0])}`;return`Ongeldige optie: verwacht één van ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin),s=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";if(a)return`Te ${s}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`;return`Te ${s}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} is`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin),s=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";if(a)return`Te ${s}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}`;return`Te ${s}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Ongeldige tekst: moet met "${i.prefix}" beginnen`;if(i.format==="ends_with")return`Ongeldige tekst: moet op "${i.suffix}" eindigen`;if(i.format==="includes")return`Ongeldige tekst: moet "${i.includes}" bevatten`;if(i.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`;return`Ongeldig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function Lu(){return{localeError:bx()}}var _x=()=>{let e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"tall",array:"liste"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Ugyldig input: forventet instanceof ${t.expected}, fikk ${s}`;return`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":if(t.values.length===1)return`Ugyldig verdi: forventet ${M(t.values[0])}`;return`Ugyldig valg: forventet en av ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`For stor(t): forventet ${t.origin??"value"} til å ha ${i}${t.maximum.toString()} ${a.unit??"elementer"}`;return`For stor(t): forventet ${t.origin??"value"} til å ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`For lite(n): forventet ${t.origin} til å ha ${i}${t.minimum.toString()} ${a.unit}`;return`For lite(n): forventet ${t.origin} til å ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Ugyldig streng: må starte med "${i.prefix}"`;if(i.format==="ends_with")return`Ugyldig streng: må ende med "${i.suffix}"`;if(i.format==="includes")return`Ugyldig streng: må inneholde "${i.includes}"`;if(i.format==="regex")return`Ugyldig streng: må matche mønsteret ${i.pattern}`;return`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${D(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Fu(){return{localeError:_x()}}var xx=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Fâsit giren: umulan instanceof ${t.expected}, alınan ${s}`;return`Fâsit giren: umulan ${i}, alınan ${s}`}case"invalid_value":if(t.values.length===1)return`Fâsit giren: umulan ${M(t.values[0])}`;return`Fâsit tercih: mûteberler ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Fazla büyük: ${t.origin??"value"}, ${i}${t.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${t.origin??"value"}, ${i}${t.maximum.toString()} olmalıydı.`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Fazla küçük: ${t.origin}, ${i}${t.minimum.toString()} ${a.unit} sahip olmalıydı.`;return`Fazla küçük: ${t.origin}, ${i}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Fâsit metin: "${i.prefix}" ile başlamalı.`;if(i.format==="ends_with")return`Fâsit metin: "${i.suffix}" ile bitmeli.`;if(i.format==="includes")return`Fâsit metin: "${i.includes}" ihtivâ etmeli.`;if(i.format==="regex")return`Fâsit metin: ${i.pattern} nakşına uymalı.`;return`Fâsit ${n[i.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function Bu(){return{localeError:xx()}}var $x=()=>{let e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function r(t){return e[t]??null}let n={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:"ورودي"},o={nan:"NaN",number:"عدد",array:"ارې"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${s} ترلاسه شو`;return`ناسم ورودي: باید ${i} وای, مګر ${s} ترلاسه شو`}case"invalid_value":if(t.values.length===1)return`ناسم ورودي: باید ${M(t.values[0])} وای`;return`ناسم انتخاب: باید یو له ${D(t.values,"|")} څخه وای`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`ډیر لوی: ${t.origin??"ارزښت"} باید ${i}${t.maximum.toString()} ${a.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${t.origin??"ارزښت"} باید ${i}${t.maximum.toString()} وي`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`ډیر کوچنی: ${t.origin} باید ${i}${t.minimum.toString()} ${a.unit} ولري`;return`ډیر کوچنی: ${t.origin} باید ${i}${t.minimum.toString()} وي`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`ناسم متن: باید د "${i.prefix}" سره پیل شي`;if(i.format==="ends_with")return`ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي`;if(i.format==="includes")return`ناسم متن: باید "${i.includes}" ولري`;if(i.format==="regex")return`ناسم متن: باید د ${i.pattern} سره مطابقت ولري`;return`${n[i.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${D(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function Mu(){return{localeError:$x()}}var wx=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"liczba",array:"tablica"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${s}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":if(t.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${M(t.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${i}${t.maximum.toString()} ${a.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${i}${t.minimum.toString()} ${a.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"`;if(i.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"`;if(i.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"`;if(i.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}`;return`Nieprawidłow(y/a/e) ${n[i.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function Vu(){return{localeError:wx()}}var kx=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"número",null:"nulo"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Tipo inválido: esperado instanceof ${t.expected}, recebido ${s}`;return`Tipo inválido: esperado ${i}, recebido ${s}`}case"invalid_value":if(t.values.length===1)return`Entrada inválida: esperado ${M(t.values[0])}`;return`Opção inválida: esperada uma das ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Muito grande: esperado que ${t.origin??"valor"} tivesse ${i}${t.maximum.toString()} ${a.unit??"elementos"}`;return`Muito grande: esperado que ${t.origin??"valor"} fosse ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${a.unit}`;return`Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Texto inválido: deve começar com "${i.prefix}"`;if(i.format==="ends_with")return`Texto inválido: deve terminar com "${i.suffix}"`;if(i.format==="includes")return`Texto inválido: deve incluir "${i.includes}"`;if(i.format==="regex")return`Texto inválido: deve corresponder ao padrão ${i.pattern}`;return`${n[i.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function qu(){return{localeError:kx()}}var Ix=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={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(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;return`Intrare invalidă: așteptat ${i}, primit ${s}`}case"invalid_value":if(t.values.length===1)return`Intrare invalidă: așteptat ${M(t.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Prea mare: așteptat ca ${t.origin??"valoarea"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"elemente"}`;return`Prea mare: așteptat ca ${t.origin??"valoarea"} să fie ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Prea mic: așteptat ca ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`;return`Prea mic: așteptat ca ${t.origin} să fie ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${i.prefix}"`;if(i.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${i.suffix}"`;if(i.format==="includes")return`Șir invalid: trebuie să includă "${i.includes}"`;if(i.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${i.pattern}`;return`Format invalid: ${n[i.format]??t.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${D(t.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${t.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${t.origin}`;default:return"Intrare invalidă"}}};function Ju(){return{localeError:Ix()}}function Fm(e,r,n,o){let t=Math.abs(e),i=t%10,a=t%100;if(a>=11&&a<=19)return o;if(i===1)return r;if(i>=2&&i<=4)return n;return o}var Sx=()=>{let e={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 r(t){return e[t]??null}let n={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:"ввод"},o={nan:"NaN",number:"число",array:"массив"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Неверный ввод: ожидалось instanceof ${t.expected}, получено ${s}`;return`Неверный ввод: ожидалось ${i}, получено ${s}`}case"invalid_value":if(t.values.length===1)return`Неверный ввод: ожидалось ${M(t.values[0])}`;return`Неверный вариант: ожидалось одно из ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a){let s=Number(t.maximum),u=Fm(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${i}${t.maximum.toString()} ${u}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a){let s=Number(t.minimum),u=Fm(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${i}${t.minimum.toString()} ${u}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Неверная строка: должна начинаться с "${i.prefix}"`;if(i.format==="ends_with")return`Неверная строка: должна заканчиваться на "${i.suffix}"`;if(i.format==="includes")return`Неверная строка: должна содержать "${i.includes}"`;if(i.format==="regex")return`Неверная строка: должна соответствовать шаблону ${i.pattern}`;return`Неверный ${n[i.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function Wu(){return{localeError:Sx()}}var zx=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"število",array:"tabela"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${s}`;return`Neveljaven vnos: pričakovano ${i}, prejeto ${s}`}case"invalid_value":if(t.values.length===1)return`Neveljaven vnos: pričakovano ${M(t.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${i}${t.maximum.toString()} ${a.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Premajhno: pričakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${a.unit}`;return`Premajhno: pričakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Neveljaven niz: mora se začeti z "${i.prefix}"`;if(i.format==="ends_with")return`Neveljaven niz: mora se končati z "${i.suffix}"`;if(i.format==="includes")return`Neveljaven niz: mora vsebovati "${i.includes}"`;if(i.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`;return`Neveljaven ${n[i.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${D(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Gu(){return{localeError:zx()}}var Px=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"antal",array:"lista"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${s}`;return`Ogiltig inmatning: förväntat ${i}, fick ${s}`}case"invalid_value":if(t.values.length===1)return`Ogiltig inmatning: förväntat ${M(t.values[0])}`;return`Ogiltigt val: förväntade en av ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`För stor(t): förväntade ${t.origin??"värdet"} att ha ${i}${t.maximum.toString()} ${a.unit??"element"}`;return`För stor(t): förväntat ${t.origin??"värdet"} att ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`För lite(t): förväntade ${t.origin??"värdet"} att ha ${i}${t.minimum.toString()} ${a.unit}`;return`För lite(t): förväntade ${t.origin??"värdet"} att ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Ogiltig sträng: måste börja med "${i.prefix}"`;if(i.format==="ends_with")return`Ogiltig sträng: måste sluta med "${i.suffix}"`;if(i.format==="includes")return`Ogiltig sträng: måste innehålla "${i.includes}"`;if(i.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${i.pattern}"`;return`Ogiltig(t) ${n[i.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${D(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function Hu(){return{localeError:Px()}}var Tx=()=>{let e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${s}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${s}`}case"invalid_value":if(t.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${M(t.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${D(t.values,"|")} இல் ஒன்று`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${i}${t.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${i}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${i}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்`;if(i.format==="ends_with")return`தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்`;if(i.format==="includes")return`தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்`;if(i.format==="regex")return`தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${n[i.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${D(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Ku(){return{localeError:Tx()}}var Ex=()=>{let e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function r(t){return e[t]??null}let n={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:"ข้อมูลที่ป้อน"},o={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${s}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${s}`}case"invalid_value":if(t.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${M(t.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"ไม่เกิน":"น้อยกว่า",a=r(t.origin);if(a)return`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${i} ${t.maximum.toString()} ${a.unit??"รายการ"}`;return`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"อย่างน้อย":"มากกว่า",a=r(t.origin);if(a)return`น้อยกว่ากำหนด: ${t.origin} ควรมี${i} ${t.minimum.toString()} ${a.unit}`;return`น้อยกว่ากำหนด: ${t.origin} ควรมี${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"`;if(i.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"`;if(i.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ`;if(i.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}`;return`รูปแบบไม่ถูกต้อง: ${n[i.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${D(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Xu(){return{localeError:Ex()}}var Ox=()=>{let e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${s}`;return`Geçersiz değer: beklenen ${i}, alınan ${s}`}case"invalid_value":if(t.values.length===1)return`Geçersiz değer: beklenen ${M(t.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Çok büyük: beklenen ${t.origin??"değer"} ${i}${t.maximum.toString()} ${a.unit??"öğe"}`;return`Çok büyük: beklenen ${t.origin??"değer"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Çok küçük: beklenen ${t.origin} ${i}${t.minimum.toString()} ${a.unit}`;return`Çok küçük: beklenen ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Geçersiz metin: "${i.prefix}" ile başlamalı`;if(i.format==="ends_with")return`Geçersiz metin: "${i.suffix}" ile bitmeli`;if(i.format==="includes")return`Geçersiz metin: "${i.includes}" içermeli`;if(i.format==="regex")return`Geçersiz metin: ${i.pattern} desenine uymalı`;return`Geçersiz ${n[i.format]??t.format}`}case"not_multiple_of":return`Geçersiz sayı: ${t.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${t.keys.length>1?"lar":""}: ${D(t.keys,", ")}`;case"invalid_key":return`${t.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${t.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Yu(){return{localeError:Ox()}}var jx=()=>{let e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function r(t){return e[t]??null}let n={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:"вхідні дані"},o={nan:"NaN",number:"число",array:"масив"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${s}`;return`Неправильні вхідні дані: очікується ${i}, отримано ${s}`}case"invalid_value":if(t.values.length===1)return`Неправильні вхідні дані: очікується ${M(t.values[0])}`;return`Неправильна опція: очікується одне з ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Занадто велике: очікується, що ${t.origin??"значення"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"елементів"}`;return`Занадто велике: очікується, що ${t.origin??"значення"} буде ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Занадто мале: очікується, що ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`;return`Занадто мале: очікується, що ${t.origin} буде ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Неправильний рядок: повинен починатися з "${i.prefix}"`;if(i.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${i.suffix}"`;if(i.format==="includes")return`Неправильний рядок: повинен містити "${i.includes}"`;if(i.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${i.pattern}`;return`Неправильний ${n[i.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${D(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function Gr(){return{localeError:jx()}}function Qu(){return Gr()}var Dx=()=>{let e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function r(t){return e[t]??null}let n={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:"ان پٹ"},o={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${s} موصول ہوا`;return`غلط ان پٹ: ${i} متوقع تھا، ${s} موصول ہوا`}case"invalid_value":if(t.values.length===1)return`غلط ان پٹ: ${M(t.values[0])} متوقع تھا`;return`غلط آپشن: ${D(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`بہت بڑا: ${t.origin??"ویلیو"} کے ${i}${t.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${t.origin??"ویلیو"} کا ${i}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`بہت چھوٹا: ${t.origin} کے ${i}${t.minimum.toString()} ${a.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${t.origin} کا ${i}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے`;if(i.format==="ends_with")return`غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے`;if(i.format==="includes")return`غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے`;if(i.format==="regex")return`غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے`;return`غلط ${n[i.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${D(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function ec(){return{localeError:Dx()}}var Ux=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"raqam",array:"massiv"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${s}`;return`Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":if(t.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${M(t.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()} ${a.unit} ${a.verb}`;return`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}`;return`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Noto‘g‘ri satr: "${i.prefix}" bilan boshlanishi kerak`;if(i.format==="ends_with")return`Noto‘g‘ri satr: "${i.suffix}" bilan tugashi kerak`;if(i.format==="includes")return`Noto‘g‘ri satr: "${i.includes}" ni o‘z ichiga olishi kerak`;if(i.format==="regex")return`Noto‘g‘ri satr: ${i.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${n[i.format]??t.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${t.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${t.keys.length>1?"lar":""}: ${D(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${t.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function tc(){return{localeError:Ux()}}var Rx=()=>{let e={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 r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"số",array:"mảng"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${t.expected}, nhận được ${s}`;return`Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${s}`}case"invalid_value":if(t.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${M(t.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"phần tử"}`;return`Quá lớn: mong đợi ${t.origin??"giá trị"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Quá nhỏ: mong đợi ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`;return`Quá nhỏ: mong đợi ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"`;if(i.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"`;if(i.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${i.includes}"`;if(i.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}`;return`${n[i.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${D(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.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 ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function rc(){return{localeError:Rx()}}var Cx=()=>{let e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function r(t){return e[t]??null}let n={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:"输入"},o={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`无效输入:期望 instanceof ${t.expected},实际接收 ${s}`;return`无效输入:期望 ${i},实际接收 ${s}`}case"invalid_value":if(t.values.length===1)return`无效输入:期望 ${M(t.values[0])}`;return`无效选项:期望以下之一 ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`数值过大:期望 ${t.origin??"值"} ${i}${t.maximum.toString()} ${a.unit??"个元素"}`;return`数值过大:期望 ${t.origin??"值"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`数值过小:期望 ${t.origin} ${i}${t.minimum.toString()} ${a.unit}`;return`数值过小:期望 ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`无效字符串:必须以 "${i.prefix}" 开头`;if(i.format==="ends_with")return`无效字符串:必须以 "${i.suffix}" 结尾`;if(i.format==="includes")return`无效字符串:必须包含 "${i.includes}"`;if(i.format==="regex")return`无效字符串:必须满足正则表达式 ${i.pattern}`;return`无效${n[i.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${D(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function nc(){return{localeError:Cx()}}var Ax=()=>{let e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function r(t){return e[t]??null}let n={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:"輸入"},o={nan:"NaN"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`無效的輸入值:預期為 instanceof ${t.expected},但收到 ${s}`;return`無效的輸入值:預期為 ${i},但收到 ${s}`}case"invalid_value":if(t.values.length===1)return`無效的輸入值:預期為 ${M(t.values[0])}`;return`無效的選項:預期為以下其中之一 ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`數值過大:預期 ${t.origin??"值"} 應為 ${i}${t.maximum.toString()} ${a.unit??"個元素"}`;return`數值過大:預期 ${t.origin??"值"} 應為 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`數值過小:預期 ${t.origin} 應為 ${i}${t.minimum.toString()} ${a.unit}`;return`數值過小:預期 ${t.origin} 應為 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`無效的字串:必須以 "${i.prefix}" 開頭`;if(i.format==="ends_with")return`無效的字串:必須以 "${i.suffix}" 結尾`;if(i.format==="includes")return`無效的字串:必須包含 "${i.includes}"`;if(i.format==="regex")return`無效的字串:必須符合格式 ${i.pattern}`;return`無效的 ${n[i.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${D(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function ic(){return{localeError:Ax()}}var Nx=()=>{let e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function r(t){return e[t]??null}let n={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é"},o={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(t)=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=q(t.input),s=o[a]??a;if(/^[A-Z]/.test(t.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${t.expected}, àmọ̀ a rí ${s}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${s}`}case"invalid_value":if(t.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${M(t.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${D(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=r(t.origin);if(a)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${a.verb} ${i}${t.maximum} ${a.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${i}${t.maximum}`}case"too_small":{let i=t.inclusive?">=":">",a=r(t.origin);if(a)return`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${a.verb} ${i}${t.minimum} ${a.unit}`;return`Kéré ju: a ní láti jẹ́ ${i}${t.minimum}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${i.prefix}"`;if(i.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${i.suffix}"`;if(i.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${i.includes}"`;if(i.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${i.pattern}`;return`Aṣìṣe: ${n[i.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${D(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function oc(){return{localeError:Nx()}}var Bm,ac=Symbol("ZodOutput"),sc=Symbol("ZodInput");class uc{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let n=r[0];if(this._map.set(e,n),n&&typeof n==="object"&&"id"in n)this._idmap.set(n.id,e);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);if(r&&typeof r==="object"&&"id"in r)this._idmap.delete(r.id);return this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Kn(){return new uc}(Bm=globalThis).__zod_globalRegistry??(Bm.__zod_globalRegistry=Kn());var Te=globalThis.__zod_globalRegistry;function cc(e,r){return new e({type:"string",...X(r)})}function lc(e,r){return new e({type:"string",coerce:!0,...X(r)})}function Xn(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...X(r)})}function Kr(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...X(r)})}function Yn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...X(r)})}function Qn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...X(r)})}function ei(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...X(r)})}function ti(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...X(r)})}function Xr(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...X(r)})}function ri(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...X(r)})}function ni(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...X(r)})}function ii(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...X(r)})}function oi(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...X(r)})}function ai(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...X(r)})}function si(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...X(r)})}function ui(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...X(r)})}function ci(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...X(r)})}function li(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...X(r)})}function dc(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...X(r)})}function di(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...X(r)})}function fi(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...X(r)})}function mi(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...X(r)})}function pi(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...X(r)})}function hi(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...X(r)})}function gi(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...X(r)})}var fc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function mc(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...X(r)})}function pc(e,r){return new e({type:"string",format:"date",check:"string_format",...X(r)})}function hc(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...X(r)})}function gc(e,r){return new e({type:"string",format:"duration",check:"string_format",...X(r)})}function vc(e,r){return new e({type:"number",checks:[],...X(r)})}function yc(e,r){return new e({type:"number",coerce:!0,checks:[],...X(r)})}function bc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...X(r)})}function _c(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...X(r)})}function xc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...X(r)})}function $c(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...X(r)})}function wc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...X(r)})}function kc(e,r){return new e({type:"boolean",...X(r)})}function Ic(e,r){return new e({type:"boolean",coerce:!0,...X(r)})}function Sc(e,r){return new e({type:"bigint",...X(r)})}function zc(e,r){return new e({type:"bigint",coerce:!0,...X(r)})}function Pc(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...X(r)})}function Tc(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...X(r)})}function Ec(e,r){return new e({type:"symbol",...X(r)})}function Oc(e,r){return new e({type:"undefined",...X(r)})}function jc(e,r){return new e({type:"null",...X(r)})}function Dc(e){return new e({type:"any"})}function Uc(e){return new e({type:"unknown"})}function Rc(e,r){return new e({type:"never",...X(r)})}function Cc(e,r){return new e({type:"void",...X(r)})}function Ac(e,r){return new e({type:"date",...X(r)})}function Nc(e,r){return new e({type:"date",coerce:!0,...X(r)})}function Zc(e,r){return new e({type:"nan",...X(r)})}function et(e,r){return new Nn({check:"less_than",...X(r),value:e,inclusive:!1})}function Be(e,r){return new Nn({check:"less_than",...X(r),value:e,inclusive:!0})}function tt(e,r){return new Zn({check:"greater_than",...X(r),value:e,inclusive:!1})}function Re(e,r){return new Zn({check:"greater_than",...X(r),value:e,inclusive:!0})}function vi(e){return tt(0,e)}function yi(e){return et(0,e)}function bi(e){return Be(0,e)}function _i(e){return Re(0,e)}function bt(e,r){return new Ca({check:"multiple_of",...X(r),value:e})}function _t(e,r){return new Za({check:"max_size",...X(r),maximum:e})}function rt(e,r){return new La({check:"min_size",...X(r),minimum:e})}function Rt(e,r){return new Fa({check:"size_equals",...X(r),size:e})}function Ct(e,r){return new Ba({check:"max_length",...X(r),maximum:e})}function lt(e,r){return new Ma({check:"min_length",...X(r),minimum:e})}function At(e,r){return new Va({check:"length_equals",...X(r),length:e})}function Qt(e,r){return new qa({check:"string_format",format:"regex",...X(r),pattern:e})}function er(e){return new Ja({check:"string_format",format:"lowercase",...X(e)})}function tr(e){return new Wa({check:"string_format",format:"uppercase",...X(e)})}function rr(e,r){return new Ga({check:"string_format",format:"includes",...X(r),includes:e})}function nr(e,r){return new Ha({check:"string_format",format:"starts_with",...X(r),prefix:e})}function ir(e,r){return new Ka({check:"string_format",format:"ends_with",...X(r),suffix:e})}function xi(e,r,n){return new Xa({check:"property",property:e,schema:r,...X(n)})}function or(e,r){return new Ya({check:"mime_type",mime:e,...X(r)})}function Ke(e){return new Qa({check:"overwrite",tx:e})}function ar(e){return Ke((r)=>r.normalize(e))}function sr(){return Ke((e)=>e.trim())}function ur(){return Ke((e)=>e.toLowerCase())}function cr(){return Ke((e)=>e.toUpperCase())}function lr(){return Ke((e)=>Ho(e))}function Lc(e,r,n){return new e({type:"array",element:r,...X(n)})}function Lx(e,r,n){return new e({type:"union",options:r,...X(n)})}function Fx(e,r,n){return new e({type:"union",options:r,inclusive:!1,...X(n)})}function Bx(e,r,n,o){return new e({type:"union",options:n,discriminator:r,...X(o)})}function Mx(e,r,n){return new e({type:"intersection",left:r,right:n})}function Vx(e,r,n,o){let t=n instanceof se;return new e({type:"tuple",items:r,rest:t?n:null,...X(t?o:n)})}function qx(e,r,n,o){return new e({type:"record",keyType:r,valueType:n,...X(o)})}function Jx(e,r,n,o){return new e({type:"map",keyType:r,valueType:n,...X(o)})}function Wx(e,r,n){return new e({type:"set",valueType:r,...X(n)})}function Gx(e,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map((t)=>[t,t])):r;return new e({type:"enum",entries:o,...X(n)})}function Hx(e,r,n){return new e({type:"enum",entries:r,...X(n)})}function Kx(e,r,n){return new e({type:"literal",values:Array.isArray(r)?r:[r],...X(n)})}function Fc(e,r){return new e({type:"file",...X(r)})}function Xx(e,r){return new e({type:"transform",transform:r})}function Yx(e,r){return new e({type:"optional",innerType:r})}function Qx(e,r){return new e({type:"nullable",innerType:r})}function e$(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n==="function"?n():Xo(n)}})}function t$(e,r,n){return new e({type:"nonoptional",innerType:r,...X(n)})}function r$(e,r){return new e({type:"success",innerType:r})}function n$(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n==="function"?n:()=>n})}function i$(e,r,n){return new e({type:"pipe",in:r,out:n})}function o$(e,r){return new e({type:"readonly",innerType:r})}function a$(e,r,n){return new e({type:"template_literal",parts:r,...X(n)})}function s$(e,r){return new e({type:"lazy",getter:r})}function u$(e,r){return new e({type:"promise",innerType:r})}function Bc(e,r,n){let o=X(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:r,...o})}function Mc(e,r,n){return new e({type:"custom",check:"custom",fn:r,...X(n)})}function Vc(e,r){let n=Mm((o)=>(o.addIssue=(t)=>{if(typeof t==="string")o.issues.push(Jt(t,o.value,n._zod.def));else{let i=t;if(i.fatal)i.continue=!1;i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Jt(i))}},e(o.value,o)),r);return n}function Mm(e,r){let n=new ye({check:"custom",...X(r)});return n._zod.check=e,n}function qc(e){let r=new ye({check:"describe"});return r._zod.onattach=[(n)=>{let o=Te.get(n)??{};Te.add(n,{...o,description:e})}],r._zod.check=()=>{},r}function Jc(e){let r=new ye({check:"meta"});return r._zod.onattach=[(n)=>{let o=Te.get(n)??{};Te.add(n,{...o,...e})}],r._zod.check=()=>{},r}function Wc(e,r){let n=X(r),o=n.truthy??["true","1","yes","on","y","enabled"],t=n.falsy??["false","0","no","off","n","disabled"];if(n.case!=="sensitive")o=o.map((f)=>typeof f==="string"?f.toLowerCase():f),t=t.map((f)=>typeof f==="string"?f.toLowerCase():f);let i=new Set(o),a=new Set(t),s=e.Codec??Vr,u=e.Boolean??Br,d=new(e.String??Ut)({type:"string",error:n.error}),l=new u({type:"boolean",error:n.error}),h=new s({type:"pipe",in:d,out:l,transform:(f,g)=>{let v=f;if(n.case!=="sensitive")v=v.toLowerCase();if(i.has(v))return!0;else if(a.has(v))return!1;else return g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:g.value,inst:h,continue:!1}),{}},reverseTransform:(f,g)=>{if(f===!0)return o[0]||"true";else return t[0]||"false"},error:n.error});return h}function dr(e,r,n,o={}){let t=X(o),i={...X(o),check:"string_format",type:"string",format:r,fn:typeof n==="function"?n:(s)=>n.test(s),...t};if(n instanceof RegExp)i.pattern=n;return new e(i)}function xt(e){let r=e?.target??"draft-2020-12";if(r==="draft-4")r="draft-04";if(r==="draft-7")r="draft-07";return{processors:e.processors??{},metadataRegistry:e?.metadata??Te,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function he(e,r,n={path:[],schemaPath:[]}){var o;let t=e._zod.def,i=r.seen.get(e);if(i){if(i.count++,n.schemaPath.includes(e))i.cycle=n.path;return i.schema}let a={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,a.schema,d);else{let h=a.schema,f=r.processors[t.type];if(!f)throw Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);f(e,r,h,d)}let l=e._zod.parent;if(l){if(!a.ref)a.ref=l;he(l,r,d),r.seen.get(l).isParent=!0}}let u=r.metadataRegistry.get(e);if(u)Object.assign(a.schema,u);if(r.io==="input"&&Ce(e))delete a.schema.examples,delete a.schema.default;if(r.io==="input"&&"_prefault"in a.schema)(o=a.schema).default??(o.default=a.schema._prefault);return delete a.schema._prefault,r.seen.get(e).schema}function $t(e,r){let n=e.seen.get(r);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let u=o.get(s);if(u&&u!==a[0])throw Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let t=(a)=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let l=e.external.registry.get(a[0])?.id,h=e.external.uri??((g)=>g);if(l)return{ref:h(l)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${h("__shared")}#/${s}/${f}`}}if(a[1]===n)return{ref:"#"};let c=`${"#"}/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},i=(a)=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:c}=t(a);if(s.def={...s.schema},c)s.defId=c;let d=s.schema;for(let l in d)delete d[l];d.$ref=u};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
76
|
+
|
|
77
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(r===a[0]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(r!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1){if(e.reused==="ref"){i(a);continue}}}}function wt(e,r){let n=e.seen.get(r);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let o=(s)=>{let u=e.seen.get(s);if(u.ref===null)return;let c=u.def??u.schema,d={...c},l=u.ref;if(u.ref=null,l){o(l);let f=e.seen.get(l),g=f.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"))c.allOf=c.allOf??[],c.allOf.push(g);else Object.assign(c,g);if(Object.assign(c,d),s._zod.parent===l)for(let y in c){if(y==="$ref"||y==="allOf")continue;if(!(y in d))delete c[y]}if(g.$ref&&f.def)for(let y in c){if(y==="$ref"||y==="allOf")continue;if(y in f.def&&JSON.stringify(c[y])===JSON.stringify(f.def[y]))delete c[y]}}let h=s._zod.parent;if(h&&h!==l){o(h);let f=e.seen.get(h);if(f?.schema.$ref){if(c.$ref=f.schema.$ref,f.def)for(let g in c){if(g==="$ref"||g==="allOf")continue;if(g in f.def&&JSON.stringify(c[g])===JSON.stringify(f.def[g]))delete c[g]}}}e.override({zodSchema:s,jsonSchema:c,path:u.path??[]})};for(let s of[...e.seen.entries()].reverse())o(s[0]);let t={};if(e.target==="draft-2020-12")t.$schema="https://json-schema.org/draft/2020-12/schema";else if(e.target==="draft-07")t.$schema="http://json-schema.org/draft-07/schema#";else if(e.target==="draft-04")t.$schema="http://json-schema.org/draft-04/schema#";else if(e.target==="openapi-3.0");if(e.external?.uri){let s=e.external.registry.get(r)?.id;if(!s)throw Error("Schema is missing an `id` property");t.$id=e.external.uri(s)}Object.assign(t,n.def??n.schema);let i=e.metadataRegistry.get(r)?.id;if(i!==void 0&&t.id===i)delete t.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let u=s[1];if(u.def&&u.defId){if(u.def.id===u.defId)delete u.def.id;a[u.defId]=u.def}}if(e.external);else if(Object.keys(a).length>0)if(e.target==="draft-2020-12")t.$defs=a;else t.definitions=a;try{let s=JSON.parse(JSON.stringify(t));return Object.defineProperty(s,"~standard",{value:{...r["~standard"],jsonSchema:{input:fr(r,"input",e.processors),output:fr(r,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch(s){throw Error("Error converting schema to JSON.")}}function Ce(e,r){let n=r??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ce(o.element,n);if(o.type==="set")return Ce(o.valueType,n);if(o.type==="lazy")return Ce(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ce(o.innerType,n);if(o.type==="intersection")return Ce(o.left,n)||Ce(o.right,n);if(o.type==="record"||o.type==="map")return Ce(o.keyType,n)||Ce(o.valueType,n);if(o.type==="pipe"){if(e._zod.traits.has("$ZodCodec"))return!0;return Ce(o.in,n)||Ce(o.out,n)}if(o.type==="object"){for(let t in o.shape)if(Ce(o.shape[t],n))return!0;return!1}if(o.type==="union"){for(let t of o.options)if(Ce(t,n))return!0;return!1}if(o.type==="tuple"){for(let t of o.items)if(Ce(t,n))return!0;if(o.rest&&Ce(o.rest,n))return!0;return!1}return!1}var Gc=(e,r={})=>(n)=>{let o=xt({...n,processors:r});return he(e,o),$t(o,e),wt(o,e)},fr=(e,r,n={})=>(o)=>{let{libraryOptions:t,target:i}=o??{},a=xt({...t??{},target:i,io:r,processors:n});return he(e,a),$t(a,e),wt(a,e)};var c$={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Hc=(e,r,n,o)=>{let t=n;t.type="string";let{minimum:i,maximum:a,format:s,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof i==="number")t.minLength=i;if(typeof a==="number")t.maxLength=a;if(s){if(t.format=c$[s]??s,t.format==="")delete t.format;if(s==="time")delete t.format}if(c)t.contentEncoding=c;if(u&&u.size>0){let d=[...u];if(d.length===1)t.pattern=d[0].source;else if(d.length>1)t.allOf=[...d.map((l)=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))]}},Kc=(e,r,n,o)=>{let t=n,{minimum:i,maximum:a,format:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;if(typeof s==="string"&&s.includes("int"))t.type="integer";else t.type="number";let l=typeof d==="number"&&d>=(i??Number.NEGATIVE_INFINITY),h=typeof c==="number"&&c<=(a??Number.POSITIVE_INFINITY),f=r.target==="draft-04"||r.target==="openapi-3.0";if(l)if(f)t.minimum=d,t.exclusiveMinimum=!0;else t.exclusiveMinimum=d;else if(typeof i==="number")t.minimum=i;if(h)if(f)t.maximum=c,t.exclusiveMaximum=!0;else t.exclusiveMaximum=c;else if(typeof a==="number")t.maximum=a;if(typeof u==="number")t.multipleOf=u},Xc=(e,r,n,o)=>{n.type="boolean"},Yc=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},Qc=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},el=(e,r,n,o)=>{if(r.target==="openapi-3.0")n.type="string",n.nullable=!0,n.enum=[null];else n.type="null"},tl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},rl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},nl=(e,r,n,o)=>{n.not={}},il=(e,r,n,o)=>{},ol=(e,r,n,o)=>{},al=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},sl=(e,r,n,o)=>{let t=e._zod.def,i=Or(t.entries);if(i.every((a)=>typeof a==="number"))n.type="number";if(i.every((a)=>typeof a==="string"))n.type="string";n.enum=i},ul=(e,r,n,o)=>{let t=e._zod.def,i=[];for(let a of t.values)if(a===void 0){if(r.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a==="bigint")if(r.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else i.push(Number(a));else i.push(a);if(i.length===0);else if(i.length===1){let a=i[0];if(n.type=a===null?"null":typeof a,r.target==="draft-04"||r.target==="openapi-3.0")n.enum=[a];else n.const=a}else{if(i.every((a)=>typeof a==="number"))n.type="number";if(i.every((a)=>typeof a==="string"))n.type="string";if(i.every((a)=>typeof a==="boolean"))n.type="boolean";if(i.every((a)=>a===null))n.type="null";n.enum=i}},cl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},ll=(e,r,n,o)=>{let t=n,i=e._zod.pattern;if(!i)throw Error("Pattern not found in template literal");t.type="string",t.pattern=i.source},dl=(e,r,n,o)=>{let t=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=e._zod.bag;if(a!==void 0)i.minLength=a;if(s!==void 0)i.maxLength=s;if(u)if(u.length===1)i.contentMediaType=u[0],Object.assign(t,i);else Object.assign(t,i),t.anyOf=u.map((c)=>({contentMediaType:c}));else Object.assign(t,i)},fl=(e,r,n,o)=>{n.type="boolean"},ml=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},pl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},hl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},gl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},vl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},yl=(e,r,n,o)=>{let t=n,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;if(typeof a==="number")t.minItems=a;if(typeof s==="number")t.maxItems=s;t.type="array",t.items=he(i.element,r,{...o,path:[...o.path,"items"]})},bl=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object",t.properties={};let a=i.shape;for(let c in a)t.properties[c]=he(a[c],r,{...o,path:[...o.path,"properties",c]});let s=new Set(Object.keys(a)),u=new Set([...s].filter((c)=>{let d=i.shape[c]._zod;if(r.io==="input")return d.optin===void 0;else return d.optout===void 0}));if(u.size>0)t.required=Array.from(u);if(i.catchall?._zod.def.type==="never")t.additionalProperties=!1;else if(!i.catchall){if(r.io==="output")t.additionalProperties=!1}else if(i.catchall)t.additionalProperties=he(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})},wi=(e,r,n,o)=>{let t=e._zod.def,i=t.inclusive===!1,a=t.options.map((s,u)=>he(s,r,{...o,path:[...o.path,i?"oneOf":"anyOf",u]}));if(i)n.oneOf=a;else n.anyOf=a},_l=(e,r,n,o)=>{let t=e._zod.def,i=he(t.left,r,{...o,path:[...o.path,"allOf",0]}),a=he(t.right,r,{...o,path:[...o.path,"allOf",1]}),s=(c)=>("allOf"in c)&&Object.keys(c).length===1,u=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=u},xl=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="array";let a=r.target==="draft-2020-12"?"prefixItems":"items",s=r.target==="draft-2020-12"?"items":r.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((h,f)=>he(h,r,{...o,path:[...o.path,a,f]})),c=i.rest?he(i.rest,r,{...o,path:[...o.path,s,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;if(r.target==="draft-2020-12"){if(t.prefixItems=u,c)t.items=c}else if(r.target==="openapi-3.0"){if(t.items={anyOf:u},c)t.items.anyOf.push(c);if(t.minItems=u.length,!c)t.maxItems=u.length}else if(t.items=u,c)t.additionalItems=c;let{minimum:d,maximum:l}=e._zod.bag;if(typeof d==="number")t.minItems=d;if(typeof l==="number")t.maxItems=l},$l=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object";let a=i.keyType,u=a._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){let d=he(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});t.patternProperties={};for(let l of u)t.patternProperties[l.source]=d}else{if(r.target==="draft-07"||r.target==="draft-2020-12")t.propertyNames=he(i.keyType,r,{...o,path:[...o.path,"propertyNames"]});t.additionalProperties=he(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]})}let c=a._zod.values;if(c){let d=[...c].filter((l)=>typeof l==="string"||typeof l==="number");if(d.length>0)t.required=d}},wl=(e,r,n,o)=>{let t=e._zod.def,i=he(t.innerType,r,o),a=r.seen.get(e);if(r.target==="openapi-3.0")a.ref=t.innerType,n.nullable=!0;else n.anyOf=[i,{type:"null"}]},kl=(e,r,n,o)=>{let t=e._zod.def;he(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},Il=(e,r,n,o)=>{let t=e._zod.def;he(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.default=JSON.parse(JSON.stringify(t.defaultValue))},Sl=(e,r,n,o)=>{let t=e._zod.def;he(t.innerType,r,o);let i=r.seen.get(e);if(i.ref=t.innerType,r.io==="input")n._prefault=JSON.parse(JSON.stringify(t.defaultValue))},zl=(e,r,n,o)=>{let t=e._zod.def;he(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType;let a;try{a=t.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Pl=(e,r,n,o)=>{let t=e._zod.def,i=t.in._zod.traits.has("$ZodTransform"),a=r.io==="input"?i?t.out:t.in:t.out;he(a,r,o);let s=r.seen.get(e);s.ref=a},Tl=(e,r,n,o)=>{let t=e._zod.def;he(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.readOnly=!0},El=(e,r,n,o)=>{let t=e._zod.def;he(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},ki=(e,r,n,o)=>{let t=e._zod.def;he(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},Ol=(e,r,n,o)=>{let t=e._zod.innerType;he(t,r,o);let i=r.seen.get(e);i.ref=t},$i={string:Hc,number:Kc,boolean:Xc,bigint:Yc,symbol:Qc,null:el,undefined:tl,void:rl,never:nl,any:il,unknown:ol,date:al,enum:sl,literal:ul,nan:cl,template_literal:ll,file:dl,success:fl,custom:ml,function:pl,transform:hl,map:gl,set:vl,array:yl,object:bl,union:wi,intersection:_l,tuple:xl,record:$l,nullable:wl,nonoptional:kl,default:Il,prefault:Sl,catch:zl,pipe:Pl,readonly:Tl,promise:El,optional:ki,lazy:Ol};function Ii(e,r){if("_idmap"in e){let o=e,t=xt({...r,processors:$i}),i={};for(let u of o._idmap.entries()){let[c,d]=u;he(d,t)}let a={},s={registry:o,uri:r?.uri,defs:i};t.external=s;for(let u of o._idmap.entries()){let[c,d]=u;$t(t,d),a[c]=wt(t,d)}if(Object.keys(i).length>0){let u=t.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:i}}return{schemas:a}}let n=xt({...r,processors:$i});return he(e,n),$t(n,e),wt(n,e)}class jl{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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";if(r==="draft-4")r="draft-04";if(r==="draft-7")r="draft-07";this.ctx=xt({processors:$i,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return he(e,this.ctx,r)}emit(e,r){if(r){if(r.cycles)this.ctx.cycles=r.cycles;if(r.reused)this.ctx.reused=r.reused;if(r.external)this.ctx.external=r.external}$t(this.ctx,e);let n=wt(this.ctx,e),{"~standard":o,...t}=n;return t}}var Vm={};var Yr={};ut(Yr,{ZodAny:()=>rd,ZodArray:()=>ad,ZodBase64:()=>Ji,ZodBase64URL:()=>Wi,ZodBigInt:()=>_r,ZodBigIntFormat:()=>Ki,ZodBoolean:()=>br,ZodCIDRv4:()=>Vi,ZodCIDRv6:()=>qi,ZodCUID:()=>Ai,ZodCUID2:()=>Ni,ZodCatch:()=>Pd,ZodCodec:()=>dn,ZodCustom:()=>fn,ZodCustomStringFormat:()=>vr,ZodDate:()=>an,ZodDefault:()=>$d,ZodDiscriminatedUnion:()=>ud,ZodE164:()=>Gi,ZodEmail:()=>Ui,ZodEmoji:()=>Ri,ZodEnum:()=>hr,ZodExactOptional:()=>bd,ZodFile:()=>vd,ZodFunction:()=>Nd,ZodGUID:()=>en,ZodIPv4:()=>Bi,ZodIPv6:()=>Mi,ZodIntersection:()=>cd,ZodJWT:()=>Hi,ZodKSUID:()=>Fi,ZodLazy:()=>Rd,ZodLiteral:()=>gd,ZodMAC:()=>Hl,ZodMap:()=>pd,ZodNaN:()=>Ed,ZodNanoID:()=>Ci,ZodNever:()=>id,ZodNonOptional:()=>ro,ZodNull:()=>ed,ZodNullable:()=>xd,ZodNumber:()=>yr,ZodNumberFormat:()=>Zt,ZodObject:()=>un,ZodOptional:()=>to,ZodPipe:()=>ln,ZodPrefault:()=>kd,ZodPreprocess:()=>Od,ZodPromise:()=>Ad,ZodReadonly:()=>jd,ZodRecord:()=>pr,ZodSet:()=>hd,ZodString:()=>gr,ZodStringFormat:()=>ve,ZodSuccess:()=>zd,ZodSymbol:()=>Yl,ZodTemplateLiteral:()=>Ud,ZodTransform:()=>yd,ZodTuple:()=>dd,ZodType:()=>le,ZodULID:()=>Zi,ZodURL:()=>on,ZodUUID:()=>nt,ZodUndefined:()=>Ql,ZodUnion:()=>cn,ZodUnknown:()=>nd,ZodVoid:()=>od,ZodXID:()=>Li,ZodXor:()=>sd,_ZodString:()=>Di,_default:()=>wd,_function:()=>Qp,any:()=>Ep,array:()=>sn,base64:()=>mp,base64url:()=>pp,bigint:()=>Ip,boolean:()=>Xl,catch:()=>Td,check:()=>eh,cidrv4:()=>dp,cidrv6:()=>fp,codec:()=>Hp,cuid:()=>np,cuid2:()=>ip,custom:()=>th,date:()=>jp,describe:()=>rh,discriminatedUnion:()=>Np,e164:()=>hp,email:()=>Wm,emoji:()=>tp,enum:()=>Qi,exactOptional:()=>_d,file:()=>qp,float32:()=>xp,float64:()=>$p,function:()=>Qp,guid:()=>Gm,hash:()=>_p,hex:()=>bp,hostname:()=>yp,httpUrl:()=>ep,instanceof:()=>ih,int:()=>Oi,int32:()=>wp,int64:()=>Sp,intersection:()=>ld,invertCodec:()=>Kp,ipv4:()=>up,ipv6:()=>lp,json:()=>ah,jwt:()=>gp,keyof:()=>Dp,ksuid:()=>sp,lazy:()=>Cd,literal:()=>Vp,looseObject:()=>Cp,looseRecord:()=>Lp,mac:()=>cp,map:()=>Fp,meta:()=>nh,nan:()=>Gp,nanoid:()=>rp,nativeEnum:()=>Mp,never:()=>Xi,nonoptional:()=>Sd,null:()=>td,nullable:()=>rn,nullish:()=>Jp,number:()=>Kl,object:()=>Up,optional:()=>tn,partialRecord:()=>Zp,pipe:()=>ji,prefault:()=>Id,preprocess:()=>sh,promise:()=>Yp,readonly:()=>Dd,record:()=>md,refine:()=>Zd,set:()=>Bp,strictObject:()=>Rp,string:()=>Qr,stringFormat:()=>vp,stringbool:()=>oh,success:()=>Wp,superRefine:()=>Ld,symbol:()=>Pp,templateLiteral:()=>Xp,transform:()=>eo,tuple:()=>fd,uint32:()=>kp,uint64:()=>zp,ulid:()=>op,undefined:()=>Tp,union:()=>Yi,unknown:()=>Nt,url:()=>Qm,uuid:()=>Hm,uuidv4:()=>Km,uuidv6:()=>Xm,uuidv7:()=>Ym,void:()=>Op,xid:()=>ap,xor:()=>Ap});var Si={};ut(Si,{endsWith:()=>ir,gt:()=>tt,gte:()=>Re,includes:()=>rr,length:()=>At,lowercase:()=>er,lt:()=>et,lte:()=>Be,maxLength:()=>Ct,maxSize:()=>_t,mime:()=>or,minLength:()=>lt,minSize:()=>rt,multipleOf:()=>bt,negative:()=>yi,nonnegative:()=>_i,nonpositive:()=>bi,normalize:()=>ar,overwrite:()=>Ke,positive:()=>vi,property:()=>xi,regex:()=>Qt,size:()=>Rt,slugify:()=>lr,startsWith:()=>nr,toLowerCase:()=>ur,toUpperCase:()=>cr,trim:()=>sr,uppercase:()=>tr});var mr={};ut(mr,{ZodISODate:()=>Pi,ZodISODateTime:()=>zi,ZodISODuration:()=>Ei,ZodISOTime:()=>Ti,date:()=>Ul,datetime:()=>Dl,duration:()=>Cl,time:()=>Rl});var zi=z("ZodISODateTime",(e,r)=>{ms.init(e,r),ve.init(e,r)});function Dl(e){return mc(zi,e)}var Pi=z("ZodISODate",(e,r)=>{ps.init(e,r),ve.init(e,r)});function Ul(e){return pc(Pi,e)}var Ti=z("ZodISOTime",(e,r)=>{hs.init(e,r),ve.init(e,r)});function Rl(e){return hc(Ti,e)}var Ei=z("ZodISODuration",(e,r)=>{gs.init(e,r),ve.init(e,r)});function Cl(e){return gc(Ei,e)}var qm=(e,r)=>{Cr.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:(n)=>Nr(e,n)},flatten:{value:(n)=>Ar(e,n)},addIssue:{value:(n)=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Vt,2)}},addIssues:{value:(n)=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Vt,2)}},isEmpty:{get(){return e.issues.length===0}}})},d$=z("ZodError",qm),Ze=z("ZodError",qm,{Parent:Error});var Al=Wt(Ze),Nl=Gt(Ze),Zl=Ht(Ze),Ll=Kt(Ze),Fl=Tn(Ze),Bl=En(Ze),Ml=On(Ze),Vl=jn(Ze),ql=Dn(Ze),Jl=Un(Ze),Wl=Rn(Ze),Gl=Cn(Ze);var Jm=new WeakMap;function nn(e,r,n){let o=Object.getPrototypeOf(e),t=Jm.get(o);if(!t)t=new Set,Jm.set(o,t);if(t.has(r))return;t.add(r);for(let i in n){let a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}var le=z("ZodType",(e,r)=>(se.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:fr(e,"input"),output:fr(e,"output")}}),e.toJSONSchema=Gc(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.parse=(n,o)=>Al(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Zl(e,n,o),e.parseAsync=async(n,o)=>Nl(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Ll(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Fl(e,n,o),e.decode=(n,o)=>Bl(e,n,o),e.encodeAsync=async(n,o)=>Ml(e,n,o),e.decodeAsync=async(n,o)=>Vl(e,n,o),e.safeEncode=(n,o)=>ql(e,n,o),e.safeDecode=(n,o)=>Jl(e,n,o),e.safeEncodeAsync=async(n,o)=>Wl(e,n,o),e.safeDecodeAsync=async(n,o)=>Gl(e,n,o),nn(e,"ZodType",{check(...n){let o=this.def;return this.clone(W.mergeDefs(o,{checks:[...o.checks??[],...n.map((t)=>typeof t==="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return De(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Zd(n,o))},superRefine(n,o){return this.check(Ld(n,o))},overwrite(n){return this.check(Ke(n))},optional(){return tn(this)},exactOptional(){return _d(this)},nullable(){return rn(this)},nullish(){return tn(rn(this))},nonoptional(n){return Sd(this,n)},array(){return sn(this)},or(n){return Yi([this,n])},and(n){return ld(this,n)},transform(n){return ji(this,eo(n))},default(n){return wd(this,n)},prefault(n){return Id(this,n)},catch(n){return Td(this,n)},pipe(n){return ji(this,n)},readonly(){return Dd(this)},describe(n){let o=this.clone();return Te.add(o,{description:n}),o},meta(...n){if(n.length===0)return Te.get(this);let o=this.clone();return Te.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Te.get(e)?.description},configurable:!0}),e)),Di=z("_ZodString",(e,r)=>{Ut.init(e,r),le.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Hc(e,o,t,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,nn(e,"_ZodString",{regex(...o){return this.check(Qt(...o))},includes(...o){return this.check(rr(...o))},startsWith(...o){return this.check(nr(...o))},endsWith(...o){return this.check(ir(...o))},min(...o){return this.check(lt(...o))},max(...o){return this.check(Ct(...o))},length(...o){return this.check(At(...o))},nonempty(...o){return this.check(lt(1,...o))},lowercase(o){return this.check(er(o))},uppercase(o){return this.check(tr(o))},trim(){return this.check(sr())},normalize(...o){return this.check(ar(...o))},toLowerCase(){return this.check(ur())},toUpperCase(){return this.check(cr())},slugify(){return this.check(lr())}})}),gr=z("ZodString",(e,r)=>{Ut.init(e,r),Di.init(e,r),e.email=(n)=>e.check(Xn(Ui,n)),e.url=(n)=>e.check(Xr(on,n)),e.jwt=(n)=>e.check(gi(Hi,n)),e.emoji=(n)=>e.check(ri(Ri,n)),e.guid=(n)=>e.check(Kr(en,n)),e.uuid=(n)=>e.check(Yn(nt,n)),e.uuidv4=(n)=>e.check(Qn(nt,n)),e.uuidv6=(n)=>e.check(ei(nt,n)),e.uuidv7=(n)=>e.check(ti(nt,n)),e.nanoid=(n)=>e.check(ni(Ci,n)),e.guid=(n)=>e.check(Kr(en,n)),e.cuid=(n)=>e.check(ii(Ai,n)),e.cuid2=(n)=>e.check(oi(Ni,n)),e.ulid=(n)=>e.check(ai(Zi,n)),e.base64=(n)=>e.check(mi(Ji,n)),e.base64url=(n)=>e.check(pi(Wi,n)),e.xid=(n)=>e.check(si(Li,n)),e.ksuid=(n)=>e.check(ui(Fi,n)),e.ipv4=(n)=>e.check(ci(Bi,n)),e.ipv6=(n)=>e.check(li(Mi,n)),e.cidrv4=(n)=>e.check(di(Vi,n)),e.cidrv6=(n)=>e.check(fi(qi,n)),e.e164=(n)=>e.check(hi(Gi,n)),e.datetime=(n)=>e.check(Dl(n)),e.date=(n)=>e.check(Ul(n)),e.time=(n)=>e.check(Rl(n)),e.duration=(n)=>e.check(Cl(n))});function Qr(e){return cc(gr,e)}var ve=z("ZodStringFormat",(e,r)=>{ge.init(e,r),Di.init(e,r)}),Ui=z("ZodEmail",(e,r)=>{is.init(e,r),ve.init(e,r)});function Wm(e){return Xn(Ui,e)}var en=z("ZodGUID",(e,r)=>{rs.init(e,r),ve.init(e,r)});function Gm(e){return Kr(en,e)}var nt=z("ZodUUID",(e,r)=>{ns.init(e,r),ve.init(e,r)});function Hm(e){return Yn(nt,e)}function Km(e){return Qn(nt,e)}function Xm(e){return ei(nt,e)}function Ym(e){return ti(nt,e)}var on=z("ZodURL",(e,r)=>{os.init(e,r),ve.init(e,r)});function Qm(e){return Xr(on,e)}function ep(e){return Xr(on,{protocol:Fe.httpProtocol,hostname:Fe.domain,...W.normalizeParams(e)})}var Ri=z("ZodEmoji",(e,r)=>{as.init(e,r),ve.init(e,r)});function tp(e){return ri(Ri,e)}var Ci=z("ZodNanoID",(e,r)=>{ss.init(e,r),ve.init(e,r)});function rp(e){return ni(Ci,e)}var Ai=z("ZodCUID",(e,r)=>{us.init(e,r),ve.init(e,r)});function np(e){return ii(Ai,e)}var Ni=z("ZodCUID2",(e,r)=>{cs.init(e,r),ve.init(e,r)});function ip(e){return oi(Ni,e)}var Zi=z("ZodULID",(e,r)=>{ls.init(e,r),ve.init(e,r)});function op(e){return ai(Zi,e)}var Li=z("ZodXID",(e,r)=>{ds.init(e,r),ve.init(e,r)});function ap(e){return si(Li,e)}var Fi=z("ZodKSUID",(e,r)=>{fs.init(e,r),ve.init(e,r)});function sp(e){return ui(Fi,e)}var Bi=z("ZodIPv4",(e,r)=>{vs.init(e,r),ve.init(e,r)});function up(e){return ci(Bi,e)}var Hl=z("ZodMAC",(e,r)=>{bs.init(e,r),ve.init(e,r)});function cp(e){return dc(Hl,e)}var Mi=z("ZodIPv6",(e,r)=>{ys.init(e,r),ve.init(e,r)});function lp(e){return li(Mi,e)}var Vi=z("ZodCIDRv4",(e,r)=>{_s.init(e,r),ve.init(e,r)});function dp(e){return di(Vi,e)}var qi=z("ZodCIDRv6",(e,r)=>{xs.init(e,r),ve.init(e,r)});function fp(e){return fi(qi,e)}var Ji=z("ZodBase64",(e,r)=>{ws.init(e,r),ve.init(e,r)});function mp(e){return mi(Ji,e)}var Wi=z("ZodBase64URL",(e,r)=>{ks.init(e,r),ve.init(e,r)});function pp(e){return pi(Wi,e)}var Gi=z("ZodE164",(e,r)=>{Is.init(e,r),ve.init(e,r)});function hp(e){return hi(Gi,e)}var Hi=z("ZodJWT",(e,r)=>{Ss.init(e,r),ve.init(e,r)});function gp(e){return gi(Hi,e)}var vr=z("ZodCustomStringFormat",(e,r)=>{zs.init(e,r),ve.init(e,r)});function vp(e,r,n={}){return dr(vr,e,r,n)}function yp(e){return dr(vr,"hostname",Fe.hostname,e)}function bp(e){return dr(vr,"hex",Fe.hex,e)}function _p(e,r){let n=r?.enc??"hex",o=`${e}_${n}`,t=Fe[o];if(!t)throw Error(`Unrecognized hash format: ${o}`);return dr(vr,o,t,r)}var yr=z("ZodNumber",(e,r)=>{qn.init(e,r),le.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Kc(e,o,t,i),nn(e,"ZodNumber",{gt(o,t){return this.check(tt(o,t))},gte(o,t){return this.check(Re(o,t))},min(o,t){return this.check(Re(o,t))},lt(o,t){return this.check(et(o,t))},lte(o,t){return this.check(Be(o,t))},max(o,t){return this.check(Be(o,t))},int(o){return this.check(Oi(o))},safe(o){return this.check(Oi(o))},positive(o){return this.check(tt(0,o))},nonnegative(o){return this.check(Re(0,o))},negative(o){return this.check(et(0,o))},nonpositive(o){return this.check(Be(0,o))},multipleOf(o,t){return this.check(bt(o,t))},step(o,t){return this.check(bt(o,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??0.5),e.isFinite=!0,e.format=n.format??null});function Kl(e){return vc(yr,e)}var Zt=z("ZodNumberFormat",(e,r)=>{Ps.init(e,r),yr.init(e,r)});function Oi(e){return bc(Zt,e)}function xp(e){return _c(Zt,e)}function $p(e){return xc(Zt,e)}function wp(e){return $c(Zt,e)}function kp(e){return wc(Zt,e)}var br=z("ZodBoolean",(e,r)=>{Br.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Xc(e,n,o,t)});function Xl(e){return kc(br,e)}var _r=z("ZodBigInt",(e,r)=>{Jn.init(e,r),le.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Yc(e,o,t,i),e.gte=(o,t)=>e.check(Re(o,t)),e.min=(o,t)=>e.check(Re(o,t)),e.gt=(o,t)=>e.check(tt(o,t)),e.gte=(o,t)=>e.check(Re(o,t)),e.min=(o,t)=>e.check(Re(o,t)),e.lt=(o,t)=>e.check(et(o,t)),e.lte=(o,t)=>e.check(Be(o,t)),e.max=(o,t)=>e.check(Be(o,t)),e.positive=(o)=>e.check(tt(BigInt(0),o)),e.negative=(o)=>e.check(et(BigInt(0),o)),e.nonpositive=(o)=>e.check(Be(BigInt(0),o)),e.nonnegative=(o)=>e.check(Re(BigInt(0),o)),e.multipleOf=(o,t)=>e.check(bt(o,t));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Ip(e){return Sc(_r,e)}var Ki=z("ZodBigIntFormat",(e,r)=>{Ts.init(e,r),_r.init(e,r)});function Sp(e){return Pc(Ki,e)}function zp(e){return Tc(Ki,e)}var Yl=z("ZodSymbol",(e,r)=>{Es.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Qc(e,n,o,t)});function Pp(e){return Ec(Yl,e)}var Ql=z("ZodUndefined",(e,r)=>{Os.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>tl(e,n,o,t)});function Tp(e){return Oc(Ql,e)}var ed=z("ZodNull",(e,r)=>{js.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>el(e,n,o,t)});function td(e){return jc(ed,e)}var rd=z("ZodAny",(e,r)=>{Ds.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>il(e,n,o,t)});function Ep(){return Dc(rd)}var nd=z("ZodUnknown",(e,r)=>{Us.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ol(e,n,o,t)});function Nt(){return Uc(nd)}var id=z("ZodNever",(e,r)=>{Rs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>nl(e,n,o,t)});function Xi(e){return Rc(id,e)}var od=z("ZodVoid",(e,r)=>{Cs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>rl(e,n,o,t)});function Op(e){return Cc(od,e)}var an=z("ZodDate",(e,r)=>{As.init(e,r),le.init(e,r),e._zod.processJSONSchema=(o,t,i)=>al(e,o,t,i),e.min=(o,t)=>e.check(Re(o,t)),e.max=(o,t)=>e.check(Be(o,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function jp(e){return Ac(an,e)}var ad=z("ZodArray",(e,r)=>{Ns.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>yl(e,n,o,t),e.element=r.element,nn(e,"ZodArray",{min(n,o){return this.check(lt(n,o))},nonempty(n){return this.check(lt(1,n))},max(n,o){return this.check(Ct(n,o))},length(n,o){return this.check(At(n,o))},unwrap(){return this.element}})});function sn(e,r){return Lc(ad,e,r)}function Dp(e){let r=e._zod.def.shape;return Qi(Object.keys(r))}var un=z("ZodObject",(e,r)=>{Zs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>bl(e,n,o,t),W.defineLazy(e,"shape",()=>r.shape),nn(e,"ZodObject",{keyof(){return Qi(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Nt()})},loose(){return this.clone({...this._zod.def,catchall:Nt()})},strict(){return this.clone({...this._zod.def,catchall:Xi()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return W.extend(this,n)},safeExtend(n){return W.safeExtend(this,n)},merge(n){return W.merge(this,n)},pick(n){return W.pick(this,n)},omit(n){return W.omit(this,n)},partial(...n){return W.partial(to,this,n[0])},required(...n){return W.required(ro,this,n[0])}})});function Up(e,r){let n={type:"object",shape:e??{},...W.normalizeParams(r)};return new un(n)}function Rp(e,r){return new un({type:"object",shape:e,catchall:Xi(),...W.normalizeParams(r)})}function Cp(e,r){return new un({type:"object",shape:e,catchall:Nt(),...W.normalizeParams(r)})}var cn=z("ZodUnion",(e,r)=>{Mr.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>wi(e,n,o,t),e.options=r.options});function Yi(e,r){return new cn({type:"union",options:e,...W.normalizeParams(r)})}var sd=z("ZodXor",(e,r)=>{cn.init(e,r),Ls.init(e,r),e._zod.processJSONSchema=(n,o,t)=>wi(e,n,o,t),e.options=r.options});function Ap(e,r){return new sd({type:"union",options:e,inclusive:!1,...W.normalizeParams(r)})}var ud=z("ZodDiscriminatedUnion",(e,r)=>{cn.init(e,r),Fs.init(e,r)});function Np(e,r,n){return new ud({type:"union",options:r,discriminator:e,...W.normalizeParams(n)})}var cd=z("ZodIntersection",(e,r)=>{Bs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>_l(e,n,o,t)});function ld(e,r){return new cd({type:"intersection",left:e,right:r})}var dd=z("ZodTuple",(e,r)=>{Wn.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>xl(e,n,o,t),e.rest=(n)=>e.clone({...e._zod.def,rest:n})});function fd(e,r,n){let o=r instanceof se,t=o?n:r;return new dd({type:"tuple",items:e,rest:o?r:null,...W.normalizeParams(t)})}var pr=z("ZodRecord",(e,r)=>{Ms.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>$l(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType});function md(e,r,n){if(!r||!r._zod)return new pr({type:"record",keyType:Qr(),valueType:e,...W.normalizeParams(r)});return new pr({type:"record",keyType:e,valueType:r,...W.normalizeParams(n)})}function Zp(e,r,n){let o=De(e);return o._zod.values=void 0,new pr({type:"record",keyType:o,valueType:r,...W.normalizeParams(n)})}function Lp(e,r,n){return new pr({type:"record",keyType:e,valueType:r,mode:"loose",...W.normalizeParams(n)})}var pd=z("ZodMap",(e,r)=>{Vs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>gl(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...n)=>e.check(rt(...n)),e.nonempty=(n)=>e.check(rt(1,n)),e.max=(...n)=>e.check(_t(...n)),e.size=(...n)=>e.check(Rt(...n))});function Fp(e,r,n){return new pd({type:"map",keyType:e,valueType:r,...W.normalizeParams(n)})}var hd=z("ZodSet",(e,r)=>{qs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>vl(e,n,o,t),e.min=(...n)=>e.check(rt(...n)),e.nonempty=(n)=>e.check(rt(1,n)),e.max=(...n)=>e.check(_t(...n)),e.size=(...n)=>e.check(Rt(...n))});function Bp(e,r){return new hd({type:"set",valueType:e,...W.normalizeParams(r)})}var hr=z("ZodEnum",(e,r)=>{Js.init(e,r),le.init(e,r),e._zod.processJSONSchema=(o,t,i)=>sl(e,o,t,i),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(o,t)=>{let i={};for(let a of o)if(n.has(a))i[a]=r.entries[a];else throw Error(`Key ${a} not found in enum`);return new hr({...r,checks:[],...W.normalizeParams(t),entries:i})},e.exclude=(o,t)=>{let i={...r.entries};for(let a of o)if(n.has(a))delete i[a];else throw Error(`Key ${a} not found in enum`);return new hr({...r,checks:[],...W.normalizeParams(t),entries:i})}});function Qi(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map((o)=>[o,o])):e;return new hr({type:"enum",entries:n,...W.normalizeParams(r)})}function Mp(e,r){return new hr({type:"enum",entries:e,...W.normalizeParams(r)})}var gd=z("ZodLiteral",(e,r)=>{Ws.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ul(e,n,o,t),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Vp(e,r){return new gd({type:"literal",values:Array.isArray(e)?e:[e],...W.normalizeParams(r)})}var vd=z("ZodFile",(e,r)=>{Gs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>dl(e,n,o,t),e.min=(n,o)=>e.check(rt(n,o)),e.max=(n,o)=>e.check(_t(n,o)),e.mime=(n,o)=>e.check(or(Array.isArray(n)?n:[n],o))});function qp(e){return Fc(vd,e)}var yd=z("ZodTransform",(e,r)=>{Hs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>hl(e,n,o,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot(e.constructor.name);n.addIssue=(i)=>{if(typeof i==="string")n.issues.push(W.issue(i,n.value,r));else{let a=i;if(a.fatal)a.continue=!1;a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(W.issue(a))}};let t=r.transform(n.value,n);if(t instanceof Promise)return t.then((i)=>(n.value=i,n.fallback=!0,n));return n.value=t,n.fallback=!0,n}});function eo(e){return new yd({type:"transform",transform:e})}var to=z("ZodOptional",(e,r)=>{Gn.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ki(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function tn(e){return new to({type:"optional",innerType:e})}var bd=z("ZodExactOptional",(e,r)=>{Ks.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ki(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function _d(e){return new bd({type:"optional",innerType:e})}var xd=z("ZodNullable",(e,r)=>{Xs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>wl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function rn(e){return new xd({type:"nullable",innerType:e})}function Jp(e){return tn(rn(e))}var $d=z("ZodDefault",(e,r)=>{Ys.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Il(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wd(e,r){return new $d({type:"default",innerType:e,get defaultValue(){return typeof r==="function"?r():W.shallowClone(r)}})}var kd=z("ZodPrefault",(e,r)=>{Qs.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Sl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Id(e,r){return new kd({type:"prefault",innerType:e,get defaultValue(){return typeof r==="function"?r():W.shallowClone(r)}})}var ro=z("ZodNonOptional",(e,r)=>{eu.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>kl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Sd(e,r){return new ro({type:"nonoptional",innerType:e,...W.normalizeParams(r)})}var zd=z("ZodSuccess",(e,r)=>{tu.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>fl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Wp(e){return new zd({type:"success",innerType:e})}var Pd=z("ZodCatch",(e,r)=>{ru.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>zl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Td(e,r){return new Pd({type:"catch",innerType:e,catchValue:typeof r==="function"?r:()=>r})}var Ed=z("ZodNaN",(e,r)=>{nu.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>cl(e,n,o,t)});function Gp(e){return Zc(Ed,e)}var ln=z("ZodPipe",(e,r)=>{Hn.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Pl(e,n,o,t),e.in=r.in,e.out=r.out});function ji(e,r){return new ln({type:"pipe",in:e,out:r})}var dn=z("ZodCodec",(e,r)=>{ln.init(e,r),Vr.init(e,r)});function Hp(e,r,n){return new dn({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}function Kp(e){let r=e._zod.def;return new dn({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var Od=z("ZodPreprocess",(e,r)=>{ln.init(e,r),iu.init(e,r)}),jd=z("ZodReadonly",(e,r)=>{ou.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Tl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Dd(e){return new jd({type:"readonly",innerType:e})}var Ud=z("ZodTemplateLiteral",(e,r)=>{au.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ll(e,n,o,t)});function Xp(e,r){return new Ud({type:"template_literal",parts:e,...W.normalizeParams(r)})}var Rd=z("ZodLazy",(e,r)=>{cu.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ol(e,n,o,t),e.unwrap=()=>e._zod.def.getter()});function Cd(e){return new Rd({type:"lazy",getter:e})}var Ad=z("ZodPromise",(e,r)=>{uu.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>El(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Yp(e){return new Ad({type:"promise",innerType:e})}var Nd=z("ZodFunction",(e,r)=>{su.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>pl(e,n,o,t)});function Qp(e){return new Nd({type:"function",input:Array.isArray(e?.input)?fd(e?.input):e?.input??sn(Nt()),output:e?.output??Nt()})}var fn=z("ZodCustom",(e,r)=>{lu.init(e,r),le.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ml(e,n,o,t)});function eh(e){let r=new ye({check:"custom"});return r._zod.check=e,r}function th(e,r){return Bc(fn,e??(()=>!0),r)}function Zd(e,r={}){return Mc(fn,e,r)}function Ld(e,r){return Vc(e,r)}var rh=qc,nh=Jc;function ih(e,r={}){let n=new fn({type:"custom",check:"custom",fn:(o)=>o instanceof e,abort:!0,...W.normalizeParams(r)});return n._zod.bag.Class=e,n._zod.check=(o)=>{if(!(o.value instanceof e))o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var oh=(...e)=>Wc({Codec:dn,Boolean:br,String:gr},...e);function ah(e){let r=Cd(()=>Yi([Qr(e),Kl(),Xl(),td(),sn(r),md(Qr(),r)]));return r}function sh(e,r){return new Od({type:"pipe",in:eo(e),out:r})}var m$={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 p$(e){we({customError:e})}function h$(){return we().customError}var Fd;(function(e){})(Fd||(Fd={}));var te={...Yr,...Si,iso:mr},g$=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 v$(e,r){let n=e.$schema;if(n==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(n==="http://json-schema.org/draft-07/schema#")return"draft-7";if(n==="http://json-schema.org/draft-04/schema#")return"draft-4";return r??"draft-2020-12"}function y$(e,r){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let t=n[1];if(!t||!r.defs[t])throw Error(`Reference not found: ${e}`);return r.defs[t]}throw Error(`Reference not found: ${e}`)}function uh(e,r){if(e.not!==void 0){if(typeof e.not==="object"&&Object.keys(e.not).length===0)return te.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return te.lazy(()=>{if(!r.refs.has(t))throw Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let i=y$(t,r),a=Oe(i,r);return r.refs.set(t,a),r.processing.delete(t),a}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return te.null();if(t.length===0)return te.never();if(t.length===1)return te.literal(t[0]);if(t.every((a)=>typeof a==="string"))return te.enum(t);let i=t.map((a)=>te.literal(a));if(i.length<2)return i[0];return te.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return te.literal(e.const);let n=e.type;if(Array.isArray(n)){let t=n.map((i)=>{let a={...e,type:i};return uh(a,r)});if(t.length===0)return te.never();if(t.length===1)return t[0];return te.union(t)}if(!n)return te.any();let o;switch(n){case"string":{let t=te.string();if(e.format){let i=e.format;if(i==="email")t=t.check(te.email());else if(i==="uri"||i==="uri-reference")t=t.check(te.url());else if(i==="uuid"||i==="guid")t=t.check(te.uuid());else if(i==="date-time")t=t.check(te.iso.datetime());else if(i==="date")t=t.check(te.iso.date());else if(i==="time")t=t.check(te.iso.time());else if(i==="duration")t=t.check(te.iso.duration());else if(i==="ipv4")t=t.check(te.ipv4());else if(i==="ipv6")t=t.check(te.ipv6());else if(i==="mac")t=t.check(te.mac());else if(i==="cidr")t=t.check(te.cidrv4());else if(i==="cidr-v6")t=t.check(te.cidrv6());else if(i==="base64")t=t.check(te.base64());else if(i==="base64url")t=t.check(te.base64url());else if(i==="e164")t=t.check(te.e164());else if(i==="jwt")t=t.check(te.jwt());else if(i==="emoji")t=t.check(te.emoji());else if(i==="nanoid")t=t.check(te.nanoid());else if(i==="cuid")t=t.check(te.cuid());else if(i==="cuid2")t=t.check(te.cuid2());else if(i==="ulid")t=t.check(te.ulid());else if(i==="xid")t=t.check(te.xid());else if(i==="ksuid")t=t.check(te.ksuid())}if(typeof e.minLength==="number")t=t.min(e.minLength);if(typeof e.maxLength==="number")t=t.max(e.maxLength);if(e.pattern)t=t.regex(new RegExp(e.pattern));o=t;break}case"number":case"integer":{let t=n==="integer"?te.number().int():te.number();if(typeof e.minimum==="number")t=t.min(e.minimum);if(typeof e.maximum==="number")t=t.max(e.maximum);if(typeof e.exclusiveMinimum==="number")t=t.gt(e.exclusiveMinimum);else if(e.exclusiveMinimum===!0&&typeof e.minimum==="number")t=t.gt(e.minimum);if(typeof e.exclusiveMaximum==="number")t=t.lt(e.exclusiveMaximum);else if(e.exclusiveMaximum===!0&&typeof e.maximum==="number")t=t.lt(e.maximum);if(typeof e.multipleOf==="number")t=t.multipleOf(e.multipleOf);o=t;break}case"boolean":{o=te.boolean();break}case"null":{o=te.null();break}case"object":{let t={},i=e.properties||{},a=new Set(e.required||[]);for(let[u,c]of Object.entries(i)){let d=Oe(c,r);t[u]=a.has(u)?d:d.optional()}if(e.propertyNames){let u=Oe(e.propertyNames,r),c=e.additionalProperties&&typeof e.additionalProperties==="object"?Oe(e.additionalProperties,r):te.any();if(Object.keys(t).length===0){o=te.record(u,c);break}let d=te.object(t).passthrough(),l=te.looseRecord(u,c);o=te.intersection(d,l);break}if(e.patternProperties){let u=e.patternProperties,c=Object.keys(u),d=[];for(let h of c){let f=Oe(u[h],r),g=te.string().regex(new RegExp(h));d.push(te.looseRecord(g,f))}let l=[];if(Object.keys(t).length>0)l.push(te.object(t).passthrough());if(l.push(...d),l.length===0)o=te.object({}).passthrough();else if(l.length===1)o=l[0];else{let h=te.intersection(l[0],l[1]);for(let f=2;f<l.length;f++)h=te.intersection(h,l[f]);o=h}break}let s=te.object(t);if(e.additionalProperties===!1)o=s.strict();else if(typeof e.additionalProperties==="object")o=s.catchall(Oe(e.additionalProperties,r));else o=s.passthrough();break}case"array":{let{prefixItems:t,items:i}=e;if(t&&Array.isArray(t)){let a=t.map((u)=>Oe(u,r)),s=i&&typeof i==="object"&&!Array.isArray(i)?Oe(i,r):void 0;if(s)o=te.tuple(a).rest(s);else o=te.tuple(a);if(typeof e.minItems==="number")o=o.check(te.minLength(e.minItems));if(typeof e.maxItems==="number")o=o.check(te.maxLength(e.maxItems))}else if(Array.isArray(i)){let a=i.map((u)=>Oe(u,r)),s=e.additionalItems&&typeof e.additionalItems==="object"?Oe(e.additionalItems,r):void 0;if(s)o=te.tuple(a).rest(s);else o=te.tuple(a);if(typeof e.minItems==="number")o=o.check(te.minLength(e.minItems));if(typeof e.maxItems==="number")o=o.check(te.maxLength(e.maxItems))}else if(i!==void 0){let a=Oe(i,r),s=te.array(a);if(typeof e.minItems==="number")s=s.min(e.minItems);if(typeof e.maxItems==="number")s=s.max(e.maxItems);o=s}else o=te.array(te.any());break}default:throw Error(`Unsupported type: ${n}`)}return o}function Oe(e,r){if(typeof e==="boolean")return e?te.any():te.never();let n=uh(e,r),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map((c)=>Oe(c,r)),u=te.union(s);n=o?te.intersection(n,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map((c)=>Oe(c,r)),u=te.xor(s);n=o?te.intersection(n,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:te.any();else{let s=o?n:Oe(e.allOf[0],r),u=o?0:1;for(let c=u;c<e.allOf.length;c++)s=te.intersection(s,Oe(e.allOf[c],r));n=s}if(e.nullable===!0&&r.version==="openapi-3.0")n=te.nullable(n);if(e.readOnly===!0)n=te.readonly(n);if(e.default!==void 0)n=n.default(e.default);let t={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)if(s in e)t[s]=e[s];let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)if(s in e)t[s]=e[s];for(let s of Object.keys(e))if(!g$.has(s))t[s]=e[s];if(Object.keys(t).length>0)r.registry.add(n,t);if(e.description)n=n.describe(e.description);return n}function ch(e,r){if(typeof e==="boolean")return e?te.any():te.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=v$(n,r?.defaultTarget),t=n.$defs||n.definitions||{},i={version:o,defs:t,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??Te};return Oe(n,i)}var Bd={};ut(Bd,{bigint:()=>$$,boolean:()=>x$,date:()=>w$,number:()=>_$,string:()=>b$});function b$(e){return lc(gr,e)}function _$(e){return yc(yr,e)}function x$(e){return Ic(br,e)}function $$(e){return zc(_r,e)}function w$(e){return Nc(an,e)}we(qr());class Me extends Error{field;regex;constructor(e,r,n){super(n);this.field=e,this.regex=r}}class mn extends Error{hash;constructor(e){super(`'${e}' not found in the root hash`);this.hash=e}}class Md extends Map{#t;#e=0;constructor(e,r=[]){super();this.#t=e;for(let[n,o]of r)this.set(n,o)}get(e){let r=super.get(e);if(r!==void 0)super.delete(e),super.set(e,r);return r}set(e,r){let n=super.get(e);if(n===void 0)this.#e+=e.length;else if(n!==null)this.#e-=n.byteLength;if(r!==null)this.#e+=r.byteLength;super.delete(e);let o;while(this.#e>this.#t&&(o=this.entries().next().value)){let[t,i]=o;if(super.delete(t),this.#e-=t.length,i!==null)this.#e-=i.byteLength}return super.set(e,r),this}delete(e){let r=super.get(e);if(r===void 0)return!1;if(super.delete(e),r!==null)this.#e-=r.byteLength;return this.#e-=e.length,!0}clear(){super.clear(),this.#e=0}}var pT=pt(qv(),1),hT=pt(Yv(),1),gT=pt(wy(),1),vT=pt(Py(),1),yT=pt(Ny(),1),bT=pt(Ly(),1),ab=pt(By(),1);var Po=S.literal([0,1,2,3,4,5,6,7,8,12,13,14,15,16,17,18,21,23],{error:"unknown pen code"}),MS={0:"brush",12:"brush",1:"pencil",14:"pencil",2:"ballpoint",15:"ballpoint",3:"marker",16:"marker",4:"fineliner",17:"fineliner",5:"highlighter",18:"highlighter",6:"eraser",7:"mechanicalPencil",13:"mechanicalPencil",8:"eraseArea",21:"calligraphy",23:"shader"},xn=S.literal([0,1,2,3,4,5,6,7,8,9,10,11,12,13],{error:"unknown color code"}),VS={0:"black",1:"gray",2:"white",3:"yellow",4:"green",5:"pink",6:"blue",7:"red",8:"grayOverlap",9:"highlight",10:"green",11:"cyan",12:"magenta",13:"yellow"};var St=43,To="reMarkable .lines file, version=";function My(e,r){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),o=St,t=()=>{let u=n.getInt32(o,!0);return o+=4,u},i=()=>{let u=n.getFloat32(o,!0);return o+=4,u},a=t(),s=[];for(let u=0;u<a;u++){let c=t(),d=[];for(let l=0;l<c;l++){let h=Po.parse(t()),f=xn.parse(t()),g=t(),v=i(),y=r===5?t():void 0,w=t(),P=Array(w);for(let E=0;E<w;E++)P[E]={x:i(),y:i(),speed:i(),direction:i(),width:i(),pressure:i()};let k={brushType:h,color:f,padding:g,brushBaseSize:v,points:P};if(y!==void 0)k.unknown=y;d.push(k)}s.push({lines:d})}return{version:r,layers:s}}function Vy(e){let{version:r}=e;if(r!==3&&r!==5)throw Error(`rendering version ${r} .lines files is not supported (only 3 and 5)`);let n=r===5?24:20,o=St+4;for(let d of e.layers){o+=4;for(let l of d.lines)o+=n+l.points.length*24}let t=new Uint8Array(o),i=new DataView(t.buffer),a=`${To}${r}`.padEnd(St," ");for(let d=0;d<St;d++)t[d]=a.charCodeAt(d);let s=St,u=(d)=>{i.setInt32(s,d,!0),s+=4},c=(d)=>{i.setFloat32(s,d,!0),s+=4};u(e.layers.length);for(let d of e.layers){u(d.lines.length);for(let l of d.lines){if(u(l.brushType),u(l.color),u(l.padding??0),c(l.brushBaseSize),r===5)u(l.unknown??0);u(l.points.length);for(let h of l.points)c(h.x),c(h.y),c(h.speed),c(h.direction),c(h.width),c(h.pressure)}}return t}var qy={authorId:0,counter:1},Wy={authorId:0,counter:0};function je(e){return`${e.authorId}:${e.counter}`}var Gf=43,Gy="reMarkable .lines file, version=6",Oo=1,ot=4,Hy=8,zt=12,jo=15;class Ky{#t;#e;#r;#n=[];constructor(e,r){this.#t=new DataView(e.buffer,e.byteOffset,e.byteLength),this.#e=r,this.#r=e.byteLength}get offset(){return this.#e}get atFileEnd(){return this.#e>=this.#r}#a(){return this.#n.length>0?this.#n[this.#n.length-1]:this.#r}bytesRemaining(){return this.#a()-this.#e}u8(){let e=this.#t.getUint8(this.#e);return this.#e+=1,e}u16(){let e=this.#t.getUint16(this.#e,!0);return this.#e+=2,e}u32(){let e=this.#t.getUint32(this.#e,!0);return this.#e+=4,e}f32(){let e=this.#t.getFloat32(this.#e,!0);return this.#e+=4,e}f64(){let e=this.#t.getFloat64(this.#e,!0);return this.#e+=8,e}varuint(){let e=0,r=0,n;do n=this.u8(),e+=(n&127)*2**r,r+=7;while(n&128);return e}crdtId(){return{authorId:this.u8(),counter:this.varuint()}}bytes(e){let r=this.#t.byteOffset+this.#e,n=new Uint8Array(this.#t.buffer,r,e);return this.#e+=e,n.slice()}peekTag(){if(this.#e>=this.#a())return;let e=this.#e,r=this.varuint();return this.#e=e,[Math.floor(r/16),r%16]}hasTag(e,r){let n=this.peekTag();return n!==void 0&&n[0]===e&&n[1]===r}#i(e,r){let n=this.varuint();if(Math.floor(n/16)!==e||n%16!==r)throw Error(`unexpected v6 tag ${n} (wanted ${e}/${r})`)}readInt(e){return this.#i(e,ot),this.u32()}readFloat(e){return this.#i(e,ot),this.f32()}readDouble(e){return this.#i(e,Hy),this.f64()}readId(e){return this.#i(e,jo),this.crdtId()}readBool(e){return this.#i(e,Oo),this.u8()!==0}readByte(e){return this.#i(e,Oo),this.u8()}subblock(e,r){this.#i(e,zt);let n=this.u32(),o=this.#e+n;this.#n.push(o);try{let t=r();if(this.#e!==o)throw Error(`subblock ${e} left ${o-this.#e} bytes unread`);return t}finally{this.#n.pop(),this.#e=o}}seek(e){this.#e=e}bounded(e,r){this.#n.push(e);try{let n=r();if(this.#e>e)throw Error("block body overran its declared length");return[n,this.bytes(e-this.#e)]}finally{this.#n.pop(),this.#e=e}}readLww(e,r){return this.subblock(e,()=>{let n=this.readId(1),o=r();return{timestamp:n,value:o}})}readString(e){return this.subblock(e,()=>{let r=this.varuint();return this.u8(),new TextDecoder().decode(this.bytes(r))})}readStringWithFormat(e){return this.subblock(e,()=>{let r=this.varuint();this.u8();let n=new TextDecoder().decode(this.bytes(r));if(this.hasTag(2,ot))return this.readInt(2);else return n})}}class Xy{#t=new Uint8Array(4096);#e=new DataView(this.#t.buffer);#r=0;#n(e){if(this.#r+e<=this.#t.length)return;let r=this.#t.length;while(r<this.#r+e)r*=2;let n=new Uint8Array(r);n.set(this.#t),this.#t=n,this.#e=new DataView(n.buffer)}get length(){return this.#r}u8(e){this.#n(1),this.#e.setUint8(this.#r,e),this.#r+=1}u16(e){this.#n(2),this.#e.setUint16(this.#r,e,!0),this.#r+=2}u32(e){this.#n(4),this.#e.setUint32(this.#r,e,!0),this.#r+=4}f32(e){this.#n(4),this.#e.setFloat32(this.#r,e,!0),this.#r+=4}f64(e){this.#n(8),this.#e.setFloat64(this.#r,e,!0),this.#r+=8}varuint(e){let r=e;do{let n=r%128;if(r=Math.floor(r/128),r>0)n|=128;this.u8(n)}while(r>0)}crdtId(e){this.u8(e.authorId),this.varuint(e.counter)}bytes(e){this.#n(e.length),this.#t.set(e,this.#r),this.#r+=e.length}patchU32(e,r){this.#e.setUint32(e,r,!0)}finish(){return this.#t.slice(0,this.#r)}tag(e,r){this.varuint(e*16+r)}writeInt(e,r){this.tag(e,ot),this.u32(r)}writeFloat(e,r){this.tag(e,ot),this.f32(r)}writeDouble(e,r){this.tag(e,Hy),this.f64(r)}writeId(e,r){this.tag(e,jo),this.crdtId(r)}writeBool(e,r){this.tag(e,Oo),this.u8(r?1:0)}writeByte(e,r){this.tag(e,Oo),this.u8(r)}subblock(e,r){this.tag(e,zt);let n=this.length;this.u32(0),r(),this.patchU32(n,this.length-n-4)}writeLww(e,r,n){this.subblock(e,()=>{this.writeId(1,r.timestamp),n(r.value)})}writeString(e,r){this.subblock(e,()=>{let n=new TextEncoder().encode(r);this.varuint(n.length),this.u8(1),this.bytes(n)})}}function $n(e,r){let n=e.readId(1),o=e.readId(2),t=e.readId(3),i=e.readId(4),a=e.readInt(5),s;if(e.hasTag(6,zt))s=e.subblock(6,()=>{let u=e.u8();return r(u)});return{parentId:n,item:{itemId:o,leftId:t,rightId:i,deletedLength:a,value:s}}}function qS(e,r){let n=Po.parse(e.readInt(1)),o=xn.parse(e.readInt(2)),t=e.readDouble(3),i=e.readFloat(4),a=e.subblock(5,()=>{let u=r===1?24:14,c=e.bytesRemaining(),d=Math.floor(c/u),l=Array(d);for(let h=0;h<d;h++){let f=e.f32(),g=e.f32();if(r===1)l[h]={x:f,y:g,speed:e.f32()*4,direction:e.f32()*255/(2*Math.PI),width:e.f32()*4,pressure:e.f32()*255};else{let v=e.u16(),y=e.u16(),w=e.u8(),P=e.u8();l[h]={x:f,y:g,speed:v,width:y,direction:w,pressure:P}}}return l}),s={tool:n,color:o,thicknessScale:t,startingLength:i,points:a};if(e.hasTag(6,jo))s.timestampId=e.readId(6);if(e.hasTag(7,jo))s.moveId=e.readId(7);if(e.hasTag(8,ot))s.colorRgba=e.readInt(8);return s}function JS(e){let r=e.hasTag(2,ot)?e.readInt(2):void 0,n=e.hasTag(3,ot)?e.readInt(3):void 0,o=xn.parse(e.readInt(4)),t=e.readString(5),i=e.subblock(6,()=>{let s=e.varuint(),u=Array(s);for(let c=0;c<s;c++)u[c]={x:e.f64(),y:e.f64(),w:e.f64(),h:e.f64()};return u}),a={length:n??t.length,color:o,text:t,rectangles:i};if(r!==void 0)a.start=r;if(e.hasTag(10,ot))a.colorRgba=e.readInt(10);return a}function WS(e){let r=[],n=new Map;e.subblock(2,()=>{e.subblock(1,()=>{e.subblock(1,()=>{let a=e.varuint();for(let s=0;s<a;s++)r.push(e.subblock(0,()=>{let u=e.readId(2),c=e.readId(3),d=e.readId(4),l=e.readInt(5),h=e.hasTag(6,zt)?e.readStringWithFormat(6):"";return{itemId:u,leftId:c,rightId:d,deletedLength:l,value:h}}))})}),e.subblock(2,()=>{e.subblock(1,()=>{let a=e.varuint();for(let s=0;s<a;s++){let u=e.crdtId(),c=e.readId(1),d=e.subblock(2,()=>(e.u8(),e.u8()));n.set(je(u),{timestamp:c,value:d})}})})});let[o,t]=e.subblock(3,()=>[e.f64(),e.f64()]),i=e.readFloat(4);return{items:r,styles:n,posX:o,posY:t,width:i}}function GS(e,r,n){switch(r){case 0:return{type:"migrationInfo",migrationId:e.readId(1),isDevice:e.readBool(2)};case 1:return{type:"sceneTree",treeId:e.readId(1),nodeId:e.readId(2),isUpdate:e.readBool(3),parentId:e.subblock(4,()=>e.readId(1))};case 2:{let o=e.readId(1),t=e.readLww(2,()=>e.readString(2)),i=e.readLww(3,()=>e.readBool(2)),a={type:"treeNode",nodeId:o,label:t,visible:i};if(e.bytesRemaining()>0&&e.hasTag(7,zt))a.anchor={id:e.readLww(7,()=>e.readId(2)),type:e.readLww(8,()=>e.readByte(2)),threshold:e.readLww(9,()=>e.readFloat(2)),originX:e.readLww(10,()=>e.readFloat(2))};return a}case 3:return{type:"sceneGlyphItem",...$n(e,(o)=>o===1?JS(e):void 0)};case 4:return{type:"sceneGroupItem",...$n(e,(o)=>o===2?e.readId(2):void 0)};case 5:return{type:"sceneLineItem",...$n(e,(o)=>o===3?qS(e,n):void 0)};case 6:return{type:"sceneTextItem",...$n(e,()=>{return})};case 7:return{type:"rootText",blockId:e.readId(1),text:WS(e)};case 8:return{type:"sceneTombstone",...$n(e,()=>{return})};case 9:{let o=new Map,t=e.varuint();for(let i=0;i<t;i++)e.subblock(0,()=>{let a=e.varuint(),s=e.bytes(a),u=e.u16();o.set(u,KS(s))});return{type:"authorIds",authors:o}}case 10:{let o={type:"pageInfo",loadsCount:e.readInt(1),mergesCount:e.readInt(2),textCharsCount:e.readInt(3),textLinesCount:e.readInt(4)};if(e.hasTag(5,ot))o.typeFolioUseCount=e.readInt(5);return o}case 13:{let o={type:"sceneInfo",currentLayer:e.readLww(1,()=>e.readId(2))};if(e.hasTag(2,zt))o.backgroundVisible=e.readLww(2,()=>e.readBool(2));if(e.hasTag(3,zt))o.rootDocumentVisible=e.readLww(3,()=>e.readBool(2));if(e.hasTag(5,zt))o.paperSize=e.subblock(5,()=>[e.u32(),e.u32()]);return o}default:throw Error(`unknown v6 block type 0x${r.toString(16)}`)}}var HS=[3,2,1,0,5,4,7,6,8,9,10,11,12,13,14,15];function Yy(e){let r=new Uint8Array(16);for(let n=0;n<16;n++)r[n]=e[HS[n]]??0;return r}function KS(e){let r=Yy(e).toHex();return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}function XS(e){let r=new TextDecoder().decode(e.subarray(0,Gf));if(!r.startsWith(Gy))throw Error(`not a version 6 .lines file: ${JSON.stringify(r)}`);let n=new Ky(e,Gf),o=[];while(!n.atFileEnd){if(n.bytesRemaining()<8)break;let t=n.u32(),i=n.u8(),a=n.u8(),s=n.u8(),u=n.u8(),c=n.offset;if(t>n.bytesRemaining()){o.push({type:"unknown",blockType:u,data:n.bytes(n.bytesRemaining()),declaredLength:t,reserved:i,minVersion:a,currentVersion:s,extraData:new Uint8Array});break}let d=c+t,l;try{let[h,f]=n.bounded(d,()=>GS(n,u,s));l={...h,reserved:i,minVersion:a,currentVersion:s,extraData:f}}catch{n.seek(c),l={type:"unknown",blockType:u,data:n.bytes(t),reserved:i,minVersion:a,currentVersion:s,extraData:new Uint8Array}}n.seek(d),o.push(l)}return o}function YS(e,r){let[n,o]=e,[t,i]=r;return n-t||o-i}function Jy(e){if(e.length<=1)return[...e];let r="\x00start",n="\x00end",o=new Set(e.map((f)=>je(f.itemId))),t=new Map([[r,[]],[n,[]]]),i=new Map([[r,0],[n,0]]);for(let f of e)t.set(je(f.itemId),[]),i.set(je(f.itemId),0);let a=(f,g)=>{let v=je(f);return v===je(Wy)||!o.has(v)?g:v},s=(f,g)=>{t.get(f).push(g),i.set(g,(i.get(g)??0)+1)};for(let f of e)s(a(f.leftId,r),je(f.itemId)),s(je(f.itemId),a(f.rightId,n));let u=new Map(e.map((f)=>[je(f.itemId),f])),c=(f)=>{if(f===r)return[-1/0,-1/0];if(f===n)return[1/0,1/0];let g=u.get(f);return[-g.itemId.authorId,g.itemId.counter]},d=new Set;for(let[f,g]of i)if(g===0)d.add(f);let l=[],h=new Set;while(d.size>0){let f;for(let v of d)if(f===void 0||YS(c(v),c(f))<0)f=v;d.delete(f),h.add(f);let g=u.get(f);if(g)l.push(g);for(let v of t.get(f)??[])if(i.set(v,i.get(v)-1),i.get(v)===0)d.add(v)}if(l.length<e.length){for(let f of e)if(!h.has(je(f.itemId)))l.push(f)}return l}class Qy{version=6;blocks;authors;paperSize;#t=new Map;#e;constructor(e){this.blocks=e,this.authors=new Map;let r=(n)=>{let o=this.#t.get(je(n));if(o===void 0)o={id:n,parentId:Wy,children:[]},this.#t.set(je(n),o);return o};r(qy);for(let n of e)if(n.type==="sceneTree")r(n.treeId).parentId=n.parentId;else if(n.type==="treeNode"){let o=r(n.nodeId);o.label=n.label.value,o.visible=n.visible.value}else if(n.type==="sceneGroupItem"&&n.item.value)r(n.parentId).children.push({...n.item,value:{kind:"group",id:n.item.value}});else if(n.type==="sceneLineItem"&&n.item.value)r(n.parentId).children.push({...n.item,value:{kind:"line",line:n.item.value}});else if(n.type==="sceneGlyphItem"&&n.item.value)r(n.parentId).children.push({...n.item,value:{kind:"glyph",glyph:n.item.value}});else if(n.type==="rootText")this.#e=n.text;else if(n.type==="authorIds")for(let[o,t]of n.authors)this.authors.set(o,t);else if(n.type==="sceneInfo"&&n.paperSize)this.paperSize=n.paperSize}#r(e){let r=[];for(let o of Jy(e.children))if(o.value.kind==="group"){let t=this.#t.get(je(o.value.id));if(t)r.push({kind:"layer",layer:this.#r(t)})}else if(o.value.kind==="line")r.push({kind:"line",line:o.value.line});else r.push({kind:"glyph",glyph:o.value.glyph});let n={id:e.id,items:r};if(e.label!==void 0)n.label=e.label;if(e.visible!==void 0)n.visible=e.visible;return n}layers(){let e=this.#t.get(je(qy));if(e===void 0)return[];let r=[];for(let n of Jy(e.children))if(n.value.kind==="group"){let o=this.#t.get(je(n.value.id));if(o)r.push(this.#r(o))}return r}strokes(){let e=[],r=(n)=>{for(let o of n.items)if(o.kind==="line")e.push(o.line);else if(o.kind==="layer")r(o.layer)};for(let n of this.layers())r(n);return e}text(){return this.#e}}function Eo(e,r,n,o,t){e.writeId(1,r),e.writeId(2,n.itemId),e.writeId(3,n.leftId),e.writeId(4,n.rightId),e.writeInt(5,n.deletedLength);let{value:i}=n;if(i!==void 0)e.subblock(6,()=>{e.u8(o),t(i)})}function QS(e,r,n){if(e.writeInt(1,r.tool),e.writeInt(2,r.color),e.writeDouble(3,r.thicknessScale),e.writeFloat(4,r.startingLength),e.subblock(5,()=>{for(let o of r.points)if(e.f32(o.x),e.f32(o.y),n===1)e.f32(o.speed/4),e.f32(o.direction*2*Math.PI/255),e.f32(o.width/4),e.f32(o.pressure/255);else e.u16(o.speed),e.u16(o.width),e.u8(o.direction),e.u8(o.pressure)}),r.timestampId!==void 0)e.writeId(6,r.timestampId);if(r.moveId!==void 0)e.writeId(7,r.moveId);if(r.colorRgba!==void 0)e.writeInt(8,r.colorRgba)}function e1(e,r){if(r.start!==void 0)e.writeInt(2,r.start);if(e.writeInt(3,r.length),e.writeInt(4,r.color),e.writeString(5,r.text),e.subblock(6,()=>{e.varuint(r.rectangles.length);for(let n of r.rectangles)e.f64(n.x),e.f64(n.y),e.f64(n.w),e.f64(n.h)}),r.colorRgba!==void 0)e.writeInt(10,r.colorRgba)}function t1(e,r){e.subblock(2,()=>{e.subblock(1,()=>{e.subblock(1,()=>{e.varuint(r.items.length);for(let n of r.items)e.subblock(0,()=>{e.writeId(2,n.itemId),e.writeId(3,n.leftId),e.writeId(4,n.rightId),e.writeInt(5,n.deletedLength);let{value:o}=n;if(o!==""&&o!==void 0)e.subblock(6,()=>{if(typeof o==="number")e.varuint(0),e.u8(1),e.writeInt(2,o);else{let t=new TextEncoder().encode(o);e.varuint(t.length),e.u8(1),e.bytes(t)}})})})}),e.subblock(2,()=>{e.subblock(1,()=>{e.varuint(r.styles.size);for(let[n,o]of r.styles){let[t,i]=n.split(":");e.crdtId({authorId:Number(t),counter:Number(i)}),e.writeId(1,o.timestamp),e.subblock(2,()=>{e.u8(17),e.u8(o.value)})}})})}),e.subblock(3,()=>{e.f64(r.posX),e.f64(r.posY)}),e.writeFloat(4,r.width)}function r1(e){return Yy(Uint8Array.fromHex(e.replaceAll("-","")))}var n1={migrationInfo:0,sceneTree:1,treeNode:2,sceneGlyphItem:3,sceneGroupItem:4,sceneLineItem:5,sceneTextItem:6,rootText:7,sceneTombstone:8,authorIds:9,pageInfo:10,sceneInfo:13};function i1(e,r){switch(r.type){case"migrationInfo":e.writeId(1,r.migrationId),e.writeBool(2,r.isDevice);break;case"sceneTree":e.writeId(1,r.treeId),e.writeId(2,r.nodeId),e.writeBool(3,r.isUpdate),e.subblock(4,()=>e.writeId(1,r.parentId));break;case"treeNode":if(e.writeId(1,r.nodeId),e.writeLww(2,r.label,(n)=>e.writeString(2,n)),e.writeLww(3,r.visible,(n)=>e.writeBool(2,n)),r.anchor!==void 0){let{id:n,type:o,threshold:t,originX:i}=r.anchor;e.writeLww(7,n,(a)=>e.writeId(2,a)),e.writeLww(8,o,(a)=>e.writeByte(2,a)),e.writeLww(9,t,(a)=>e.writeFloat(2,a)),e.writeLww(10,i,(a)=>e.writeFloat(2,a))}break;case"sceneGlyphItem":Eo(e,r.parentId,r.item,1,(n)=>e1(e,n));break;case"sceneGroupItem":Eo(e,r.parentId,r.item,2,(n)=>e.writeId(2,n));break;case"sceneLineItem":Eo(e,r.parentId,r.item,3,(n)=>QS(e,n,r.currentVersion));break;case"sceneTextItem":case"sceneTombstone":Eo(e,r.parentId,r.item,0,()=>{return});break;case"rootText":e.writeId(1,r.blockId),t1(e,r.text);break;case"authorIds":e.varuint(r.authors.size);for(let[n,o]of r.authors)e.subblock(0,()=>{let t=r1(o);e.varuint(t.length),e.bytes(t),e.u16(n)});break;case"pageInfo":if(e.writeInt(1,r.loadsCount),e.writeInt(2,r.mergesCount),e.writeInt(3,r.textCharsCount),e.writeInt(4,r.textLinesCount),r.typeFolioUseCount!==void 0)e.writeInt(5,r.typeFolioUseCount);break;case"sceneInfo":if(e.writeLww(1,r.currentLayer,(n)=>e.writeId(2,n)),r.backgroundVisible!==void 0)e.writeLww(2,r.backgroundVisible,(n)=>e.writeBool(2,n));if(r.rootDocumentVisible!==void 0)e.writeLww(3,r.rootDocumentVisible,(n)=>e.writeBool(2,n));if(r.paperSize!==void 0)e.subblock(5,()=>{e.u32(r.paperSize[0]),e.u32(r.paperSize[1])});break;case"unknown":e.bytes(r.data);break}}function eb(e){let r=new Xy,n=Gy.padEnd(Gf," ");r.bytes(new TextEncoder().encode(n));for(let o of e.blocks){let t=r.length;r.u32(0),r.u8(o.reserved),r.u8(o.minVersion),r.u8(o.currentVersion),r.u8(o.type==="unknown"?o.blockType:n1[o.type]);let i=r.length;if(i1(r,o),o.type!=="unknown")r.bytes(o.extraData);r.patchU32(t,o.type==="unknown"&&o.declaredLength!==void 0?o.declaredLength:r.length-i)}return r.finish()}function tb(e){return new Qy(XS(e))}function rb(e){let r=e.reduce((t,i)=>t+i.length,0),n=new Uint8Array(r),o=0;for(let t of e)n.set(t,o),o+=t.length;return n}var Do=/^[0-9a-f]{64}$/,Uo=2,Ro="t",Co="b";function o1(e){if(e.length<St)throw Error("data is too short to be a reMarkable .lines file");let r=new TextDecoder().decode(e.subarray(0,St));if(!r.startsWith(To))throw Error(`unrecognized .lines header: ${JSON.stringify(r)}`);let n=r.charAt(To.length);if(n==="6")return tb(e);else if(n==="3"||n==="5")return My(e,n==="3"?3:5);else throw Error(`unsupported .lines version '${n}'`)}function a1(e){return e.version===6?eb(e):Vy(e)}var sb=S.object({name:S.string(),timestamp:S.number()}).loose(),s1=S.object({name:S.string(),pageId:S.string(),timestamp:S.number()}).loose(),u1=S.object({authors:S.array(S.string()).optional(),title:S.string().optional(),publicationDate:S.string().optional(),publisher:S.string().optional()}).loose(),c1=S.object({id:S.string(),idx:S.object({timestamp:S.string(),value:S.string()}).loose(),template:S.object({timestamp:S.string(),value:S.string()}).loose().optional(),redir:S.object({timestamp:S.string(),value:S.number().int()}).loose().optional(),scrollTime:S.object({timestamp:S.string(),value:S.iso.datetime({offset:!0})}).loose().optional(),verticalScroll:S.object({timestamp:S.string(),value:S.number()}).loose().optional(),deleted:S.object({timestamp:S.string(),value:S.number().int()}).loose().optional(),modifed:S.string().optional()}).loose(),l1=S.object({lastOpened:S.object({timestamp:S.string(),value:S.string()}).loose(),original:S.object({timestamp:S.string(),value:S.number().int()}).loose(),pages:S.array(c1),uuids:S.array(S.object({first:S.string(),second:S.number().int().nonnegative()}).loose()).nullable()}).loose(),d1=S.object({tags:S.array(sb).optional()}).strict(),f1=S.object({tags:S.array(S.string()).optional()}).strict(),m1={coverPageNumber:S.number().int(),documentMetadata:u1,extraMetadata:S.record(S.string(),S.string()),fileType:S.enum(["epub","notebook","pdf"]),fontName:S.string(),lineHeight:S.number().int(),orientation:S.enum(["portrait","landscape"]),pageCount:S.number().int().nonnegative(),textAlignment:S.enum(["","justify","left"]),textScale:S.number()},p1={cPages:l1.optional(),customZoomCenterX:S.number().optional(),customZoomCenterY:S.number().optional(),customZoomOrientation:S.enum(["portrait","landscape"]).optional(),customZoomPageHeight:S.number().optional(),customZoomPageWidth:S.number().optional(),customZoomScale:S.number().optional(),dummyDocument:S.boolean().optional(),formatVersion:S.number().int().nonnegative().optional(),keyboardMetadata:S.object({count:S.number().int().nonnegative(),timestamp:S.number()}).loose().optional(),lastOpenedPage:S.number().int().optional(),margins:S.number().int().nonnegative().optional(),originalPageCount:S.number().int().optional(),pages:S.array(S.string()).nullable().optional(),pageTags:S.array(s1).optional(),redirectionPageMap:S.array(S.number().int()).optional(),sizeInBytes:S.string().optional(),transform:S.object({m11:S.number().optional(),m12:S.number().optional(),m13:S.number().optional(),m21:S.number().optional(),m22:S.number().optional(),m23:S.number().optional(),m31:S.number().optional(),m32:S.number().optional(),m33:S.number().optional()}).loose().optional(),viewBackgroundFilter:S.enum(["off","fullpage"]).optional(),zoomMode:S.enum(["bestFit","customFit","fitToHeight","fitToWidth"]).optional()},ub=S.object({...m1,...p1}).loose(),h1=ub.extend({tags:S.array(sb).optional()}).loose(),g1=ub.extend({tags:S.array(S.string()).optional()}).loose(),cb=S.object({id:S.string().optional(),name:S.string(),author:S.string(),iconData:S.string(),categories:S.array(S.string()),labels:S.array(S.string()).optional(),orientation:S.enum(["portrait","landscape"]),templateVersion:S.string(),supportedScreens:S.array(S.enum(["rm2","rmPP"])).optional(),constants:S.array(S.record(S.string(),S.union([S.number(),S.string()]))).optional(),items:S.array(S.unknown()),formatVersion:S.number().int().nonnegative().optional()}).loose(),v1=S.union([d1,f1,cb,h1,g1]),nb=/\.highlights\/[^/]+\.json$/,y1=S.object({highlights:S.array(S.array(S.object({text:S.string(),color:S.number().int(),start:S.number().int(),length:S.number().int(),rects:S.array(S.object({x:S.number(),y:S.number(),width:S.number(),height:S.number()}).loose())}).loose()))}).loose(),ib=/\/[^/]+-metadata\.json$/,b1=S.object({layers:S.array(S.object({name:S.string()}).loose())}).loose(),lb=S.object({lastModified:S.string().optional(),parent:S.string(),pinned:S.boolean(),type:S.enum(["DocumentType","CollectionType","TemplateType"]),visibleName:S.string(),lastOpened:S.string().optional(),lastOpenedPage:S.number().int().optional(),createdTime:S.string().optional(),deleted:S.boolean().nullish(),metadatamodified:S.boolean().nullish(),modified:S.boolean().nullish(),synced:S.boolean().nullish(),version:S.number().int().nonnegative().optional(),new:S.boolean().optional(),source:S.string().optional()}).loose();function db(e){let r=JSON.parse(e);return lb.parse(r)}var _1=S.object({hash:S.string(),generation:S.number()}).loose(),x1=S.object({hash:S.string(),generation:S.number(),schemaVersion:S.number().int().nonnegative()}).loose(),$1=S.object({docID:S.string(),hash:S.string()}).loose();async function Hf(e){let r=await crypto.subtle.digest("SHA-256",e);return new Uint8Array(r).toHex()}function ob(e){let[r,n,o,t,i]=e.split(":");if(r===void 0||n===void 0||o===void 0||t===void 0||i===void 0)throw Error(`line '${e}' was not formatted correctly`);else if(n==="80000000"||n==="0")return{hash:r,type:n==="0"?0:80000000,id:o,subfiles:parseInt(t,10),size:parseInt(i,10)};else throw Error(`line '${e}' was not formatted correctly`)}class Kf{#t;#e;#r;#n;#a;#i;constructor(e,r,n,o,t,i){this.#t=e,this.#e=r,this.#a=n,this.#r=o,this.#n=t,this.#i=i}async getRootHash(){let r=await(await this.#t("GET",`${this.#r}/sync/v4/root`)).text(),n=JSON.parse(r),{hash:o,generation:t,schemaVersion:i}=x1.parse(n);if(i!==3&&i!==4)throw Error(`schema version ${i} not supported`);else if(!Number.isSafeInteger(t))throw Error(`generation ${t} was not a safe integer; please file a bug report`);else return[o,t,i]}async#u(e,r){if(!Do.test(r))throw new Me(r,Do,"hash was not a valid hash");let o=await(await this.#t("GET",`${this.#r}/sync/v3/files/${r}`,{headers:{"rm-filename":e}})).arrayBuffer();return new Uint8Array(o)}async getHash({id:e,hash:r}){let n=this.#a.get(r);if(n!=null)return n.slice();else{let o=await this.#u(e,r);return this.#a.set(r,o.byteLength<=this.#i?o.slice():null),o}}async getText(e){return new TextDecoder().decode(await this.getHash(e))}async getEntries({id:e,hash:r}){let n=await this.getText({id:`${e}.docSchema`,hash:r}),[o,...t]=n.slice(0,-1).split(`
|
|
78
|
+
`);if(o==="3")return{entries:t.map(ob)};else if(o==="4"){let[i,...a]=t;if(!i)throw Error("missing info line for schema version 4");let[s,u,c,d]=i.split(":");if(s!=="0"||u===void 0||c===void 0||d===void 0)throw Error(`schema 4 info line '${i}' was not formatted correctly`);let l=a.map(ob);if(parseInt(c,10)!==l.length)throw Error(`schema 4 expected ${c} entries, but found ${l.length}`);else return{entries:l,id:u,size:parseInt(d,10)}}else throw Error(`schema version ${o} not supported`)}async getContent(e){let r=await this.getText(e),n=JSON.parse(r);return v1.parse(n)}async getMetadata(e){let r=await this.getText(e),n=JSON.parse(r);return lb.parse(n)}async getRm(e){let r=await this.getHash(e);return o1(r)}async getHighlights(e){let r=await this.getText(e),n=JSON.parse(r);return y1.parse(n).highlights}async getTemplate(e){let r=await this.getText(e),n=JSON.parse(r);return cb.parse(n)}async getPageMetadata(e){let r=await this.getText(e),n=JSON.parse(r);return b1.parse(n)}async putRm(e,r){if(!e.endsWith(".rm"))throw Error(`fileName ${e} did not end with '.rm'`);else return await this.putFile(e,a1(r))}async putRootHash(e,r,n=!0){if(!Number.isSafeInteger(r))throw Error(`generation ${r} was not a safe integer`);else if(!Do.test(e))throw new Me(e,Do,"rootHash was not a valid hash");let o=JSON.stringify({hash:e,generation:r,broadcast:n}),i=await(await this.#t("PUT",`${this.#r}/sync/v3/root`,{body:o})).text(),a=JSON.parse(i),{hash:s,generation:u}=_1.parse(a);if(Number.isSafeInteger(u))return[s,u];else throw Error(`new generation ${u} was not a safe integer; please file a bug report`)}async#c(e,r,n){if(!this.#a.has(r)){let o=ab.default.buf(n,0),t=new ArrayBuffer(4);new DataView(t).setInt32(0,o,!1);let i=new Uint8Array(t).toBase64();await this.#t("PUT",`${this.#r}/sync/v3/files/${r}`,{body:n,headers:{"rm-filename":e,"x-goog-hash":`crc32c=${i}`}}),this.#a.set(r,n.byteLength<=this.#i?n.slice():null)}}async putFile(e,r){let n=await Hf(r),o=this.#c(e,n,r);return o.catch(()=>{}),{id:e,hash:n,type:0,subfiles:0,size:r.length,async[Symbol.asyncDispose](){await o}}}async#o(e,r){return await this.putFile(e,new TextEncoder().encode(r))}async putContent(e,r){if(!e.endsWith(".content"))throw Error(`fileName ${e} did not end with '.content'`);else return await this.#o(e,JSON.stringify(r))}async putPagedata(e,r){if(!e.endsWith(".pagedata"))throw Error(`fileName ${e} did not end with '.pagedata'`);else return await this.#o(e,`${r.join(`
|
|
6
79
|
`)}
|
|
7
|
-
`)}async putPageMetadata(
|
|
8
|
-
`];if(
|
|
9
|
-
`)}for(let{hash:
|
|
10
|
-
`)}let
|
|
11
|
-
`)throw new
|
|
12
|
-
`);if(
|
|
13
|
-
`));let
|
|
80
|
+
`)}async putPageMetadata(e,r){if(!ib.test(e))throw new Me(e,ib,"fileName was not of the form '<docid>/<pageid>-metadata.json'");else return await this.#o(e,JSON.stringify(r))}async putTemplate(e,r){if(!e.endsWith(".template"))throw Error(`fileName ${e} did not end with '.template'`);else return await this.#o(e,JSON.stringify(r))}async putMetadata(e,r){if(!e.endsWith(".metadata"))throw Error(`fileName ${e} did not end with '.metadata'`);else return await this.#o(e,JSON.stringify(r))}async putHighlights(e,r){if(!nb.test(e))throw new Me(e,nb,"fileName was not of the form '<docid>.highlights/<pageid>.json'");else return await this.#o(e,JSON.stringify({highlights:r}))}async putEntries(e,r,n){if(e==="root"&&n===3)console.warn('writing a schema 3 root index, which reMarkable rejects with a 400 "Software must be updated" error; write the root index with schema version 4 instead');let o=[...r].sort((d,l)=>d.id.localeCompare(l.id)),t=o.reduce((d,l)=>d+l.size,0),i=[`${n}
|
|
81
|
+
`];if(n===4){let d=e==="root"?".":e;i.push(`0:${d}:${o.length}:${t}
|
|
82
|
+
`)}for(let{hash:d,type:l,id:h,subfiles:f,size:g}of o){let v=n===4?0:l;i.push(`${d}:${v}:${h}:${f}:${g}
|
|
83
|
+
`)}let s=new TextEncoder().encode(i.join("")),u;if(n===3){let d=[];for(let{hash:l}of o)d.push(Uint8Array.fromHex(l));u=await Hf(rb(d))}else if(n===4)u=await Hf(s);else throw Error(`unsupported schema version ${n}`);let c=this.#c(`${e}.docSchema`,u,s);return c.catch(()=>{}),{id:e,hash:u,type:n>3?0:80000000,subfiles:o.length,size:t,async[Symbol.asyncDispose](){await c}}}async uploadFile(e,r,n){let t=new TextEncoder().encode(JSON.stringify({file_name:e})).toBase64(),a=await(await this.#t("POST",`${this.#n}/doc/v2/files`,{body:r,headers:{"Content-Type":n,"rm-meta":t,"rm-source":"RoR-Browser"}})).json(),{docID:s,hash:u}=$1.parse(a);return{id:s,hash:u}}notifications(){let e=this.#r.replace(/^http/,"ws");return this.#e(`${e}/notifications/ws/json/1`)}dumpCache(){let e={},r=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});for(let[n,o]of this.#a){if(o===null){e[n]=null;continue}try{e[n]=`${Ro}${r.decode(o)}`}catch{e[n]=`${Co}${o.toBase64()}`}}return JSON.stringify({version:Uo,entries:e})}clearCache(){this.#a.clear()}}var w1={RM100:{name:"reMarkable 1",width:1404,height:1872,dpi:226},RM110:{name:"reMarkable 2",width:1404,height:1872,dpi:226},RM02A:{name:"reMarkable Paper Pro",width:1620,height:2160,dpi:229},RM03A:{name:"reMarkable Paper Pro Move",width:954,height:1696,dpi:264},RM102:{name:"reMarkable Paper Pure",width:1404,height:1872,dpi:226}};var hb="https://webapp-prod.cloud.remarkable.engineering",k1="https://eu.tectonic.remarkable.com",I1="https://internal.cloud.remarkable.com",fb="",mb="trash",Pt="root",Xf=200,S1=25;function Ao(e){return new Promise((r)=>{setTimeout(r,e).unref?.()})}function No(e,r){let n=Math.min(r*2**e,30000);return Math.random()*n}class gb{#t=Promise.resolve();async lock(){let e=this.#t,r;return this.#t=new Promise((n)=>{r=n}),await e,{async[Symbol.asyncDispose](){r()}}}}function Yf(e){if("cPages"in e&&e.cPages)return e.cPages.pages.filter((r)=>r.deleted===void 0).map((r)=>r.id);else if("pages"in e&&e.pages)return e.pages;else return[]}var at=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/;class Zo extends Error{constructor(){super("root generation was stale; try put again")}}class em extends Error{status;statusText;constructor(e,r,n){super(n);this.status=e,this.statusText=r}}async function jT(e,{deviceDesc:r="browser-chrome",uuid:n=Tt(),authHost:o=hb}={}){if(e.length!==8)throw Error(`code should be length 8, but was ${e.length}`);let t=await fetch(`${o}/token/json/2/device/new`,{method:"POST",headers:{Authorization:"Bearer"},body:JSON.stringify({code:e,deviceDesc:r,deviceID:n})});if(!t.ok)throw new em(t.status,t.statusText,"couldn't register api");else return await t.text()}var z1=S.object({"device-id":S.string()}).loose();function P1(e){let[,r]=e.split(".",2);if(r===void 0)throw Error("token wasn't a jwt, so it had no device id");let n=Uint8Array.fromBase64(r,{alphabet:"base64url",lastChunkHandling:"loose"}),o=new TextDecoder().decode(n);return z1.parse(JSON.parse(o))["device-id"]}var T1=S.object({message:S.object({attributes:S.object({event:S.string()}).loose()}).loose()}).loose(),E1=S.object({attributes:S.object({event:S.literal("SyncComplete"),sourceDeviceID:S.string(),auth0UserID:S.string(),userID:S.string().optional(),eventType:S.string().optional(),eventVersion:S.string().optional(),orgID:S.string().optional()}).loose(),messageid:S.string().optional()}).loose();class vb{#t;#e;raw;#r;#n;#a;#i;#u;#c=new gb;constructor(e,r,n,o,t,i,a){this.#t=e,this.#r=P1(e),this.#e=o,this.#n=t,this.#a=i,this.raw=new Kf((s,u,{body:c,headers:d}={})=>this.#w(u,{method:s,body:c,headers:d}),(s)=>new WebSocket(s,{headers:{Authorization:`Bearer ${this.#t}`}}),o,r,n,a)}get deviceId(){return this.#r}async#o(e=!1){if(e||this.#i===void 0){let[r,n,o]=await this.raw.getRootHash();if(this.#i===void 0||n>=this.#i[1])this.#i=[r,n],this.#u=o}return[...this.#i,this.#u]}async#l(e,r){try{let[n,o]=await this.raw.putRootHash(e,r);this.#i=[n,o]}catch(n){if(n instanceof Zo)this.#i=void 0;throw n}}async#d(e){let n=[];try{const r=$e(n,await this.#c.lock(),1);for(let s=0;;s++)try{return await e()}catch(u){if(u instanceof Zo&&s<this.#n)await Ao(No(s,S1));else throw u}}catch(o){var t=o,i=1}finally{var a=Le(n,t,i);a&&await a}}async#f(e){await this.#d(async()=>{let[r,n]=await this.#o(),{entries:o}=await this.raw.getEntries({id:Pt,hash:r});o.push(e);let t;{let i=[];try{const d=$e(i,await this.raw.putEntries(Pt,o,4),1);t=d.hash}catch(a){var s=a,u=1}finally{var c=Le(i,s,u);c&&await c}}await this.#l(t,n)})}async#w(e,{body:r,method:n="POST",headers:o={}}){let t=n==="PUT"&&e.endsWith("/sync/v3/root")?0:this.#a;for(let i=0;;i++){let a;try{a=await fetch(e,{method:n,headers:{Authorization:`Bearer ${this.#t}`,...o},body:r})}catch(u){if(i<t){await Ao(No(i,Xf));continue}throw u}if(a.ok)return a;let s=await a.text();if(s===`{"message":"precondition failed"}
|
|
84
|
+
`)throw new Zo;else if((a.status>=500||a.status===429)&&i<t)await Ao(No(i,Xf));else throw new em(a.status,a.statusText,`failed reMarkable request: ${s}`)}}async#k(e){let{id:r,hash:n}=e,{entries:o}=await this.raw.getEntries(e),t=o.find((v)=>v.id.endsWith(".metadata")),i=o.find((v)=>v.id.endsWith(".content"));if(t===void 0)throw Error(`couldn't find metadata for hash ${n}`);let[{visibleName:a,lastModified:s,pinned:u,parent:c,lastOpened:d,createdTime:l,new:h,source:f},g]=await Promise.all([this.raw.getMetadata(t),i===void 0?Promise.resolve({fileType:void 0,tags:void 0}):this.raw.getContent(i)]);if("templateVersion"in g)return{id:r,hash:n,visibleName:a,lastModified:s,new:h,pinned:u,source:f,parent:c,createdTime:l,type:"TemplateType"};else if(g.fileType===void 0)return{id:r,hash:n,visibleName:a,lastModified:s,pinned:u,parent:c,tags:g.tags,type:"CollectionType"};else return{id:r,hash:n,visibleName:a,lastModified:s,pinned:u,parent:c,tags:g.tags,lastOpened:d??"",fileType:g.fileType,type:"DocumentType"}}async listItems(e=!1){let r=await this.listRefs(e);return await Promise.all(r.map((n)=>this.#k(n)))}async listRefs(e=!1){let[r]=await this.#o(e),{entries:n}=await this.raw.getEntries({id:Pt,hash:r});return n.map(({id:o,hash:t})=>({id:o,hash:t}))}async getContent(e){let{hash:r}=e,{entries:n}=await this.raw.getEntries(e),o=n.find((t)=>t.id.endsWith(".content"));if(o===void 0)throw Error(`couldn't find contents for hash ${r}`);else return await this.raw.getContent(o)}async getMetadata(e){let{hash:r}=e,{entries:n}=await this.raw.getEntries(e),o=n.find((t)=>t.id.endsWith(".metadata"));if(o===void 0)throw Error(`couldn't find metadata for hash ${r}`);else return await this.raw.getMetadata(o)}async getPdf(e){let{hash:r}=e,{entries:n}=await this.raw.getEntries(e),o=n.find((t)=>t.id.endsWith(".pdf"));if(o===void 0)throw Error(`couldn't find pdf for hash ${r}`);else return await this.raw.getHash(o)}async getEpub(e){let{hash:r}=e,{entries:n}=await this.raw.getEntries(e),o=n.find((t)=>t.id.endsWith(".epub"));if(o===void 0)throw Error(`couldn't find epub for hash ${r}`);else return await this.raw.getHash(o)}#m={name:(e,r)=>`${e}/${r}.rm`,read:(e)=>this.raw.getRm(e),write:(e,r)=>this.raw.putRm(e,r)};#p={name:(e,r)=>`${e}.highlights/${r}.json`,read:(e)=>this.raw.getHighlights(e),write:(e,r)=>this.raw.putHighlights(e,r)};#h={name:(e,r)=>`${e}/${r}-metadata.json`,read:(e)=>this.raw.getPageMetadata(e),write:(e,r)=>this.raw.putPageMetadata(e,r)};async#g(e,r,n){let{id:o}=e,{entries:t}=await this.raw.getEntries(e),i=await this.getContent(e);if(!Yf(i).includes(r))throw Error(`document ${o} has no page ${r}`);let a=t.find((s)=>s.id===n.name(o,r));if(a===void 0)return;else return await n.read(a)}async#v(e,r){let{id:n}=e,{entries:o}=await this.raw.getEntries(e),t=await this.getContent(e),i=new Map(o.map((u)=>[u.id,u])),a=Yf(t).map((u)=>[u,i.get(r.name(n,u))]).filter((u)=>u[1]!==void 0),s=await Promise.all(a.map(([,u])=>r.read(u)));return new Map(a.map(([u],c)=>[u,s[c]]))}async#I(e,r,n,o){let h=[];try{let{id:t,hash:i}=e;let{entries:a}=await this.raw.getEntries(e);let s=a.find((w)=>w.id.endsWith(".content"));if(s===void 0)throw Error(`couldn't find contents for hash ${i}`);let u=await this.raw.getContent(s);let c=new Set(Yf(u));for(let w of r.keys())if(!c.has(w))throw Error(`document ${t} has no page ${w}`);const d=$e(h,new AsyncDisposableStack,1);let l=await Promise.all([...r].map(([w,P])=>n.write(n.name(t,w),P)));for(let w of l){d.use(w);let P=a.findIndex((k)=>k.id===w.id);if(P===-1)a.push(w);else a[P]=w}return await this.raw.putEntries(t,a,o)}catch(f){var g=f,v=1}finally{var y=Le(h,g,v);y&&await y}}async#y(e,r,n,o){if(r.size===0)return e;else return await this.#s(e,o,(t,i)=>this.#I(t,r,n,i))}async getRmPage(e,r){return await this.#g(e,r,this.#m)}async getRmPages(e){return await this.#v(e,this.#m)}async putRmPage(e,r,n,o=!1){return await this.putRmPages(e,new Map([[r,n]]),o)}async putRmPages(e,r,n=!1){return await this.#y(e,r,this.#m,n)}async getHighlights(e,r){return await this.#g(e,r,this.#p)}async getHighlightPages(e){return await this.#v(e,this.#p)}async putHighlights(e,r,n,o=!1){return await this.putHighlightPages(e,new Map([[r,n]]),o)}async putHighlightPages(e,r,n=!1){return await this.#y(e,r,this.#p,n)}async getTemplate(e){let{id:r}=e,{entries:n}=await this.raw.getEntries(e),o=n.find((t)=>t.id===`${r}.template`);if(o===void 0)return;else return await this.raw.getTemplate(o)}async putTemplate(e,r,n=!1){return await this.#s(e,n,async(o,t)=>{let c=[];try{let{id:i}=o;let{entries:a}=await this.raw.getEntries(o);const s=$e(c,await this.raw.putTemplate(`${i}.template`,r),1);let u=a.findIndex((g)=>g.id===s.id);if(u===-1)a.push(s);else a[u]=s;return await this.raw.putEntries(i,a,t)}catch(d){var l=d,h=1}finally{var f=Le(c,l,h);f&&await f}})}async getPagedata(e){let{id:r}=e,{entries:n}=await this.raw.getEntries(e),o=n.find((t)=>t.id===`${r}.pagedata`);if(o===void 0)return;else{let t=(await this.raw.getText(o)).split(`
|
|
85
|
+
`);if(t.at(-1)==="")t.pop();return t}}async putPagedata(e,r,n=!1){return await this.#s(e,n,async(o,t)=>{let c=[];try{let{id:i}=o;let{entries:a}=await this.raw.getEntries(o);const s=$e(c,await this.raw.putPagedata(`${i}.pagedata`,r),1);let u=a.findIndex((g)=>g.id===s.id);if(u===-1)a.push(s);else a[u]=s;return await this.raw.putEntries(i,a,t)}catch(d){var l=d,h=1}finally{var f=Le(c,l,h);f&&await f}})}async getPageMetadata(e,r){return await this.#g(e,r,this.#h)}async getPageMetadataPages(e){return await this.#v(e,this.#h)}async putPageMetadata(e,r,n,o=!1){return await this.putPageMetadataPages(e,new Map([[r,n]]),o)}async putPageMetadataPages(e,r,n=!1){return await this.#y(e,r,this.#h,n)}async getDocumentArchive(e){let{entries:r}=await this.raw.getEntries(e),n=new Qf.default;for(let o of r)n.file(o.id,this.raw.getHash(o));return n.generateAsync({type:"uint8array"})}async putDocumentArchive(e,{refresh:r=!1,parent:n,visibleName:o}={}){if(n!==void 0&&n&&!at.test(n))throw new Me(n,at,"parent must be a valid document id");let t=await Qf.default.loadAsync(e),i=Object.keys(t.files).filter((E)=>!t.files[E].dir),a=i.find((E)=>E.endsWith(".metadata"));if(a===void 0)throw Error("archive did not contain a .metadata file");let s=a.slice(0,-9);if(s.includes("/"))throw Error(`unexpected nested .metadata path '${a}'`);let u=Tt(),c=new TextEncoder,d=new TextDecoder,l=Date.now().toFixed(),[,,h]=await this.#o(r),f=await Promise.all(i.map(async(E)=>{if(!E.startsWith(s))throw Error(`archived file '${E}' did not start with '${s}'`);let U=`${u}${E.slice(s.length)}`,B=await t.files[E].async("uint8array");if(E===a){let I=db(d.decode(B));if(n!==void 0)I.parent=n;if(o!==void 0)I.visibleName=o;I.lastModified=l,B=c.encode(JSON.stringify(I))}return this.raw.putFile(U,B)})),g;{let v=[];try{const E=$e(v,new AsyncDisposableStack,1);for(let B of f)E.use(B);const U=$e(v,await this.raw.putEntries(u,f,h),1);g=U}catch(y){var w=y,P=1}finally{var k=Le(v,w,P);k&&await k}}return await this.#f(g),{id:u,hash:g.hash}}async#x(e,r,n,{refresh:o,parent:t=fb,pinned:i=!1,zoomMode:a="bestFit",viewBackgroundFilter:s,textScale:u=1,textAlignment:c="justify",fontName:d="",coverPageNumber:l=-1,authors:h,title:f,publicationDate:g,publisher:v,extraMetadata:y={},lineHeight:w=-1,margins:P=125,orientation:k="portrait",tags:E,customZoomScale:U,customZoomCenterX:B,customZoomCenterY:I,customZoomPageWidth:V,customZoomPageHeight:L,customZoomOrientation:x}){if(t&&!at.test(t))throw new Me(t,at,"parent must be a valid document id");let O=Tt(),p=new Date,N={parent:t,pinned:i,lastModified:(+p).toFixed(),createdTime:(+p).toFixed(),type:"DocumentType",visibleName:e,lastOpened:"0",lastOpenedPage:0},ue={coverPageNumber:l,documentMetadata:{authors:h,title:f,publicationDate:g,publisher:v},extraMetadata:y,lineHeight:w,margins:P,orientation:k,fileType:r,formatVersion:1,tags:E?.map((re)=>({name:re,timestamp:+p}))??[],fontName:d,textAlignment:c,textScale:u,zoomMode:a,customZoomScale:U,customZoomCenterX:B,customZoomCenterY:I,customZoomPageWidth:V,customZoomPageHeight:L,customZoomOrientation:x,viewBackgroundFilter:s,originalPageCount:1,pageCount:1,pageTags:[],pages:[Tt()],redirectionPageMap:[0],sizeInBytes:n.length.toFixed()},[,,K]=await this.#o(o),ce;{let H=[];try{let re=this.raw.putContent(`${O}.content`,ue);let ee=this.raw.putMetadata(`${O}.metadata`,N);let _e=this.raw.putFile(`${O}.pagedata`,new TextEncoder().encode(`
|
|
86
|
+
`));let ze=this.raw.putFile(`${O}.${r}`,n);const fe=$e(H,await re,1);const pe=$e(H,await ee,1);const Se=$e(H,await _e,1);const xe=$e(H,await ze,1);const Ve=$e(H,await this.raw.putEntries(O,[fe,pe,Se,xe],K),1);ce=Ve}catch(ae){var C=ae,R=1}finally{var ie=Le(H,C,R);ie&&await ie}}return await this.#f(ce),{id:O,hash:ce.hash}}async putPdf(e,r,n={}){return await this.#x(e,"pdf",r,n)}async putEpub(e,r,n={}){return await this.#x(e,"epub",r,n)}async putFolder(e,{parent:r=fb}={},n=!1){if(r&&!at.test(r))throw new Me(r,at,"parent must be a valid document id");let o=Tt(),t=new Date,i={tags:[]},a={lastModified:(+t).toFixed(),createdTime:(+t).toFixed(),parent:r,pinned:!1,type:"CollectionType",visibleName:e},[,,s]=await this.#o(n),u;{let c=[];try{let g=this.raw.putContent(`${o}.content`,i);let v=this.raw.putMetadata(`${o}.metadata`,a);const y=$e(c,await g,1);const w=$e(c,await v,1);const P=$e(c,await this.raw.putEntries(o,[y,w],s),1);u=P}catch(d){var l=d,h=1}finally{var f=Le(c,l,h);f&&await f}}return await this.#f(u),{id:o,hash:u.hash}}async uploadEpub(e,r){return await this.raw.uploadFile(e,r,"application/epub+zip")}async uploadPdf(e,r){return await this.raw.uploadFile(e,r,"application/pdf")}async uploadFolder(e){return await this.raw.uploadFile(e,new Uint8Array(0),"folder")}async#S(e,r,n){let c=[];try{let{id:o}=e;let{entries:t}=await this.raw.getEntries(e);let i=t.findIndex((g)=>g.id.endsWith(".content"));let a=t[i];if(a===void 0)throw Error("internal error: couldn't find content in entry hash");let s=await this.raw.getContent(a);Object.assign(s,r);const u=$e(c,await this.raw.putContent(a.id,s),1);t[i]=u;return await this.raw.putEntries(o,t,n)}catch(d){var l=d,h=1}finally{var f=Le(c,l,h);f&&await f}}async#s(e,r,n){return await this.#d(async()=>{let[o,t,i]=await this.#o(r),{entries:a}=await this.raw.getEntries({id:Pt,hash:o}),s=a.findIndex((y)=>y.id===e.id&&y.hash===e.hash),u=a[s];if(u===void 0)throw new mn(e.hash);let c,d;{let l=[];try{const y=$e(l,await n({id:u.id,hash:e.hash},i),1);a[s]=y;const w=$e(l,await this.raw.putEntries(Pt,a,4),1);c=w.hash;d=y.hash}catch(h){var f=h,g=1}finally{var v=Le(l,f,g);v&&await v}}return await this.#l(c,t),{id:u.id,hash:d}})}async#b(e,r,n,o){return await this.#s(e,o,async(t,i)=>{let[a,s]=await Promise.all([this.#S(t,r,i),this.getMetadata(t)]);if(s.type!==n)throw Error(`expected type ${n} but got ${s.type} for hash ${t.hash}`);return a})}async updateDocument(e,r,n=!1){return await this.#b(e,r,"DocumentType",n)}async updateCollection(e,r,n=!1){return await this.#b(e,r,"CollectionType",n)}async updateTemplate(e,r,n=!1){return await this.#b(e,r,"TemplateType",n)}async#$(e,r,n){let c=[];try{let{id:o}=e;let{entries:t}=await this.raw.getEntries(e);let i=t.findIndex((g)=>g.id.endsWith(".metadata"));let a=t[i];if(a===void 0)throw Error("internal error: couldn't find metadata in entry hash");let s=await this.raw.getMetadata(a);Object.assign(s,r);s.version=(s.version??0)+1;s.metadatamodified=!0;const u=$e(c,await this.raw.putMetadata(a.id,s),1);t[i]=u;return await this.raw.putEntries(o,t,n)}catch(d){var l=d,h=1}finally{var f=Le(c,l,h);f&&await f}}async#_(e,r,n=!1){return await this.#s(e,n,(o,t)=>this.#$(o,r,t))}async move(e,r,n=!1){if(!at.test(r))throw new Me(r,at,"parent must be a valid document id");return await this.#_(e,{parent:r},n)}async delete(e,r=!1){return await this.move(e,mb,r)}async rename(e,r,n=!1){return await this.#_(e,{visibleName:r},n)}async star(e,r,n=!1){return await this.#_(e,{pinned:r},n)}async bulkMove(e,r,n=!1){if(!at.test(r))throw new Me(r,at,"parent must be a valid document id");return await this.#d(async()=>{let[o,t,i]=await this.#o(n),{entries:a}=await this.raw.getEntries({id:Pt,hash:o}),s=new Set(e.map((k)=>`${k.id}\x00${k.hash}`)),u=new Set,c=[],d=[];for(let k of a){let E=`${k.id}\x00${k.hash}`;if(s.has(E))c.push(k),u.add(E);else d.push(k)}for(let k of e)if(!u.has(`${k.id}\x00${k.hash}`))throw new mn(k.hash);let l=await Promise.all(c.map((k)=>this.#$(k,{parent:r},i))),h=[];for(let[k,E]of l.entries())d.push(E),h.push({id:c[k].id,hash:E.hash});let f;{let g=[];try{const k=$e(g,new AsyncDisposableStack,1);for(let U of l)k.use(U);const E=$e(g,await this.raw.putEntries(Pt,d,4),1);f=E.hash}catch(v){var y=v,w=1}finally{var P=Le(g,y,w);P&&await P}}return await this.#l(f,t),h})}async bulkDelete(e,r=!1){return await this.bulkMove(e,mb,r)}listen(){let e=new AbortController,r=this.#z(e.signal),{return:n}=r;return r.return=async(o)=>(e.abort(),await n.call(r,o)),r}async*#z(e){for(let r=0;;){let n=this.raw.notifications(),o=()=>{n.close()};e.addEventListener("abort",o,{once:!0});let t=[],i=()=>{},a=!1,s=!1;n.addEventListener("open",()=>{a=!0}),n.addEventListener("message",({data:u})=>{t.push(u),i()}),n.addEventListener("error",()=>{s=!0,i()}),n.addEventListener("close",()=>{s=!0,i()});try{while(!s||t.length){let u=t.shift();if(u===void 0)await new Promise((c)=>{i=c});else{let{message:c}=T1.parse(JSON.parse(u));if(c.attributes.event==="SyncComplete")yield E1.parse(c)}}}finally{e.removeEventListener("abort",o),n.close()}if(e.aborted)return;else if(a)r=0;else if(r<this.#a)r++;else throw Error("couldn't open the reMarkable notification socket; the session token may have expired");await Ao(No(r,Xf))}}dumpCache(){return this.raw.dumpCache()}async pruneCache(e){let[r]=await this.#o(e),n=new Set(this.#e.keys());n.delete(r);let t=[(await this.raw.getEntries({id:Pt,hash:r})).entries],i=[];while(t.length){for(let s of t)for(let u of s)if(n.delete(u.hash),u.subfiles>0)i.push(this.raw.getEntries(u));t=(await Promise.all(i)).map((s)=>s.entries),i=[]}for(let a of n)this.#e.delete(a)}clearCache(){this.raw.clearCache()}}var O1=1048576,pb=S.record(S.string(),S.string().nullable()),j1=S.object({version:S.literal(Uo),entries:pb}).or(pb.transform((e)=>({version:void 0,entries:e})));function D1(e){let r=j1.safeParse(e);if(!r.success)throw Error(`cache was neither a version ${Uo} dump nor the original mapping of hashes to text. Either construct the api without a cache, or fix its format.`);let{version:n,entries:o}=r.data,t=new TextEncoder;return Object.entries(o).map(([i,a])=>{if(a===null)return[i,null];else if(n===void 0)return[i,t.encode(a)];else if(a.startsWith(Co))return[i,Uint8Array.fromBase64(a.slice(1))];else if(a.startsWith(Ro))return[i,t.encode(a.slice(1))];else throw Error(`cache entry ${i} wasn't tagged '${Ro}' or '${Co}'. Either construct the api without a cache, or fix its format.`)})}async function U1(e,{authHost:r=hb}={}){let n=await fetch(`${r}/token/json/2/user/new`,{method:"POST",headers:{Authorization:`Bearer ${e}`}});if(!n.ok)throw Error(`couldn't fetch auth token: ${n.statusText}`);return await n.text()}function R1(e,{rawHost:r=k1,uploadHost:n=I1,cache:o,maxCacheSize:t=1/0,maxCachedBytes:i=O1,maxGenerationRetries:a=10,maxTransientRetries:s=3}={}){let u=D1(JSON.parse(o??"{}")),c=t===1/0?new Map(u):new Md(t,u);return new vb(e,r,n,c,a,s,i)}async function DT(e,r={}){let{authHost:n,...o}=r??{},t=await U1(e,{authHost:n});return R1(t,o)}export{Zo as GenerationError,mn as HashNotFoundError,em as ResponseError,Me as ValidationError,U1 as auth,je as crdtKey,w1 as deviceScreens,jT as register,DT as remarkable,MS as rmBrushes,VS as rmColors,R1 as session};
|