@loaders.gl/splats 5.0.0-alpha.1 → 5.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +14 -3
- package/dist/dist.dev.js +21416 -5335
- package/dist/dist.min.js +46 -7
- package/dist/index.cjs +942 -180
- package/dist/index.cjs.map +3 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ksplat-loader-types.js +1 -1
- package/dist/lib/parse-rad.d.ts +23 -7
- package/dist/lib/parse-rad.d.ts.map +1 -1
- package/dist/lib/parse-rad.js +10 -135
- package/dist/lib/parse-rad.js.map +1 -1
- package/dist/lib/parse-spz.d.ts.map +1 -1
- package/dist/lib/parse-spz.js +38 -3
- package/dist/lib/parse-spz.js.map +1 -1
- package/dist/rad-loader-types.js +1 -1
- package/dist/rad-metadata.schema.json +133 -0
- package/dist/rad-source-loader.js +1 -1
- package/dist/rad-zod-schema.cjs +81 -0
- package/dist/rad-zod-schema.cjs.map +6 -0
- package/dist/rad-zod-schema.d.ts +88 -0
- package/dist/rad-zod-schema.d.ts.map +1 -0
- package/dist/rad-zod-schema.js +70 -0
- package/dist/rad-zod-schema.js.map +1 -0
- package/dist/radc-metadata.schema.json +112 -0
- package/dist/splat-loader-types.js +1 -1
- package/dist/spz-loader-types.js +1 -1
- package/package.json +17 -8
- package/src/index.ts +2 -0
- package/src/lib/parse-rad.ts +46 -167
- package/src/lib/parse-spz.ts +57 -3
- package/src/rad-zod-schema.ts +83 -0
package/dist/dist.min.js
CHANGED
|
@@ -4,15 +4,54 @@
|
|
|
4
4
|
else if (typeof define === 'function' && define.amd) define([], factory);
|
|
5
5
|
else if (typeof exports === 'object') exports['loaders'] = factory();
|
|
6
6
|
else root['loaders'] = factory();})(globalThis, function () {
|
|
7
|
-
"use strict";var __exports__=(()=>{var Ig=Object.create;var Bs=Object.defineProperty;var Ag=Object.getOwnPropertyDescriptor;var Bg=Object.getOwnPropertyNames;var Dg=Object.getPrototypeOf,Tg=Object.prototype.hasOwnProperty;var Eg=(r,t,e)=>t in r?Bs(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var d=(r,t)=>()=>(r&&(t=r(r=0)),t);var Rt=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),ye=(r,t)=>{for(var e in t)Bs(r,e,{get:t[e],enumerable:!0})},Qo=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bg(t))!Tg.call(r,i)&&i!==e&&Bs(r,i,{get:()=>t[i],enumerable:!(n=Ag(t,i))||n.enumerable});return r},ta=(r,t,e)=>(Qo(r,t,"default"),e&&Qo(e,t,"default")),Sl=(r,t,e)=>(e=r!=null?Ig(Dg(r)):{},Qo(t||!r||!r.__esModule?Bs(e,"default",{value:r,enumerable:!0}):e,r)),Og=r=>Qo(Bs({},"__esModule",{value:!0}),r);var Od=(r,t,e)=>(Eg(r,typeof t!="symbol"?t+"":t,e),e);var Fd=Rt((I1,Ld)=>{Ld.exports=globalThis.loaders});var ea,ra,na,wi,xn=d(()=>{"use strict";ea={name:"SPLAT",id:"splat",module:"splats",format:"splat",extensions:["splat"],mimeTypes:["application/octet-stream"],binary:!0},ra={name:"KSPLAT",id:"ksplat",module:"splats",format:"ksplat",extensions:["ksplat"],mimeTypes:["application/octet-stream"],binary:!0},na={name:"SPZ",id:"spz",module:"splats",format:"spz",extensions:["spz"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([78,71,83,80]).buffer]},wi={name:"RAD",id:"rad",module:"splats",format:"rad",extensions:["rad"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([82,65,68,48]).buffer]}});function Md(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e}function b(r,t,e,n){function i(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(r,t||[])).next())})}function Nd(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(r){return this instanceof P?(this.v=r,this):new P(r)}function _e(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(y){return Promise.resolve(y).then(p,h)}}function a(p,y){n[p]&&(i[p]=function(g){return new Promise(function(N,S){s.push([p,g,N,S])>1||l(p,g)})},y&&(i[p]=y(i[p])))}function l(p,y){try{c(n[p](y))}catch(g){m(s[0][3],g)}}function c(p){p.value instanceof P?Promise.resolve(p.value.v).then(u,h):m(s[0][2],p)}function u(p){l("next",p)}function h(p){l("throw",p)}function m(p,y){p(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function vi(r){var t,e;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=r[i]?function(o){return(e=!e)?{value:P(r[i](o)),done:!1}:s?s(o):o}:s}}function Ve(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof Nd=="function"?Nd(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=r[s]&&function(o){return new Promise(function(a,l){o=r[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}var ge=d(()=>{});var Rd,Ds,Lg,rr,an=d(()=>{Rd=new TextDecoder("utf-8"),Ds=Rd.decode.bind(Rd),Lg=new TextEncoder,rr=r=>Lg.encode(r)});var Fg,kd,Lt,Xt,ze,je,Te,ia,sa,oa,aa,ca,Cd,Ts,Ud,la,Pd,In=d(()=>{Fg=r=>typeof r=="number",kd=r=>typeof r=="boolean",Lt=r=>typeof r=="function",Xt=r=>r!=null&&Object(r)===r,ze=r=>Xt(r)&&Lt(r.then),je=r=>Xt(r)&&Lt(r[Symbol.iterator]),Te=r=>Xt(r)&&Lt(r[Symbol.asyncIterator]),ia=r=>Xt(r)&&Xt(r.schema),sa=r=>Xt(r)&&"done"in r&&"value"in r,oa=r=>Xt(r)&&Lt(r.stat)&&Fg(r.fd),aa=r=>Xt(r)&&Ts(r.body),ca=r=>"_getDOMStream"in r&&"_getNodeStream"in r,Cd=r=>Xt(r)&&Lt(r.abort)&&Lt(r.getWriter)&&!ca(r),Ts=r=>Xt(r)&&Lt(r.cancel)&&Lt(r.getReader)&&!ca(r),Ud=r=>Xt(r)&&Lt(r.end)&&Lt(r.write)&&kd(r.writable)&&!ca(r),la=r=>Xt(r)&&Lt(r.read)&&Lt(r.pipe)&&kd(r.readable)&&!ca(r),Pd=r=>Xt(r)&&Lt(r.clear)&&Lt(r.bytes)&&Lt(r.position)&&Lt(r.setPosition)&&Lt(r.capacity)&&Lt(r.getBufferIdentifier)&&Lt(r.createLong)});var Tl={};ye(Tl,{compareArrayLike:()=>Dl,joinUint8Arrays:()=>be,memcpy:()=>Es,rebaseValueOffsets:()=>fa,toArrayBufferView:()=>H,toArrayBufferViewAsyncIterator:()=>He,toArrayBufferViewIterator:()=>nr,toBigInt64Array:()=>ua,toBigUint64Array:()=>Ug,toFloat32Array:()=>Pg,toFloat32ArrayAsyncIterator:()=>e0,toFloat32ArrayIterator:()=>Gg,toFloat64Array:()=>Vg,toFloat64ArrayAsyncIterator:()=>r0,toFloat64ArrayIterator:()=>Yg,toInt16Array:()=>Rg,toInt16ArrayAsyncIterator:()=>Xg,toInt16ArrayIterator:()=>Hg,toInt32Array:()=>An,toInt32ArrayAsyncIterator:()=>qg,toInt32ArrayIterator:()=>$g,toInt8Array:()=>Mg,toInt8ArrayAsyncIterator:()=>Jg,toInt8ArrayIterator:()=>jg,toUint16Array:()=>kg,toUint16ArrayAsyncIterator:()=>Qg,toUint16ArrayIterator:()=>Zg,toUint32Array:()=>Cg,toUint32ArrayAsyncIterator:()=>t0,toUint32ArrayIterator:()=>Wg,toUint8Array:()=>F,toUint8ArrayAsyncIterator:()=>Bl,toUint8ArrayIterator:()=>Al,toUint8ClampedArray:()=>zg,toUint8ClampedArrayAsyncIterator:()=>n0,toUint8ClampedArrayIterator:()=>Kg});function Ng(r){let t=r[0]?[r[0]]:[],e,n,i,s;for(let o,a,l=0,c=0,u=r.length;++l<u;){if(o=t[c],a=r[l],!o||!a||o.buffer!==a.buffer||a.byteOffset<o.byteOffset){a&&(t[++c]=a);continue}if({byteOffset:e,byteLength:i}=o,{byteOffset:n,byteLength:s}=a,e+i<n||n+s<e){a&&(t[++c]=a);continue}t[c]=new Uint8Array(o.buffer,e,n-e+s)}return t}function Es(r,t,e=0,n=t.byteLength){let i=r.byteLength,s=new Uint8Array(r.buffer,r.byteOffset,i),o=new Uint8Array(t.buffer,t.byteOffset,Math.min(n,i));return s.set(o,e),r}function be(r,t){let e=Ng(r),n=e.reduce((u,h)=>u+h.byteLength,0),i,s,o,a=0,l=-1,c=Math.min(t||Number.POSITIVE_INFINITY,n);for(let u=e.length;++l<u;){if(i=e[l],s=i.subarray(0,Math.min(i.length,c-a)),c<=a+s.length){s.length<i.length?e[l]=i.subarray(s.length):s.length===i.length&&l++,o?Es(o,s,a):o=s;break}Es(o||(o=new Uint8Array(c)),s,a),a+=s.length}return[o||new Uint8Array(0),e.slice(l),n-(o?o.byteLength:0)]}function H(r,t){let e=sa(t)?t.value:t;return e instanceof r?r===Uint8Array?new r(e.buffer,e.byteOffset,e.byteLength):e:e?(typeof e=="string"&&(e=rr(e)),e instanceof ArrayBuffer?new r(e):e instanceof Il?new r(e):Pd(e)?H(r,e.bytes()):ArrayBuffer.isView(e)?e.byteLength<=0?new r(0):new r(e.buffer,e.byteOffset,e.byteLength/r.BYTES_PER_ELEMENT):r.from(e)):new r(0)}function*nr(r,t){let e=function*(i){yield i},n=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Il?e(t):je(t)?t:e(t);return yield*xl(function*(i){let s=null;do s=i.next(yield H(r,s));while(!s.done)}(n[Symbol.iterator]())),new r}function He(r,t){return _e(this,arguments,function*(){if(ze(t))return yield P(yield P(yield*vi(Ve(He(r,yield P(t))))));let n=function(o){return _e(this,arguments,function*(){yield yield P(yield P(o))})},i=function(o){return _e(this,arguments,function*(){yield P(yield*vi(Ve(xl(function*(a){let l=null;do l=a.next(yield l?.value);while(!l.done)}(o[Symbol.iterator]())))))})},s=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Il?n(t):je(t)?i(t):Te(t)?t:n(t);return yield P(yield*vi(Ve(xl(function(o){return _e(this,arguments,function*(){let a=null;do a=yield P(o.next(yield yield P(H(r,a))));while(!a.done)})}(s[Symbol.asyncIterator]()))))),yield P(new r)})}function fa(r,t,e){if(r!==0){e=e.slice(0,t);for(let n=-1,i=e.length;++n<i;)e[n]+=r}return e.subarray(0,t)}function Dl(r,t){let e=0,n=r.length;if(n!==t.length)return!1;if(n>0)do if(r[e]!==t[e])return!1;while(++e<n);return!0}var Il,Mg,Rg,An,ua,F,kg,Cg,Ug,Pg,Vg,zg,xl,jg,Hg,$g,Al,Zg,Wg,Gg,Yg,Kg,Jg,Xg,qg,Bl,Qg,t0,e0,r0,n0,kt=d(()=>{ge();an();In();Il=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;Mg=r=>H(Int8Array,r),Rg=r=>H(Int16Array,r),An=r=>H(Int32Array,r),ua=r=>H(BigInt64Array,r),F=r=>H(Uint8Array,r),kg=r=>H(Uint16Array,r),Cg=r=>H(Uint32Array,r),Ug=r=>H(BigUint64Array,r),Pg=r=>H(Float32Array,r),Vg=r=>H(Float64Array,r),zg=r=>H(Uint8ClampedArray,r),xl=r=>(r.next(),r);jg=r=>nr(Int8Array,r),Hg=r=>nr(Int16Array,r),$g=r=>nr(Int32Array,r),Al=r=>nr(Uint8Array,r),Zg=r=>nr(Uint16Array,r),Wg=r=>nr(Uint32Array,r),Gg=r=>nr(Float32Array,r),Yg=r=>nr(Float64Array,r),Kg=r=>nr(Uint8ClampedArray,r);Jg=r=>He(Int8Array,r),Xg=r=>He(Int16Array,r),qg=r=>He(Int32Array,r),Bl=r=>He(Uint8Array,r),Qg=r=>He(Uint16Array,r),t0=r=>He(Uint32Array,r),e0=r=>He(Float32Array,r),r0=r=>He(Float64Array,r),n0=r=>He(Uint8ClampedArray,r)});function*i0(r){let t,e=!1,n=[],i,s,o,a=0;function l(){return s==="peek"?be(n,o)[0]:([i,n,a]=be(n,o),i)}({cmd:s,size:o}=(yield(()=>null)())||{cmd:"read",size:0});let c=Al(r)[Symbol.iterator]();try{do if({done:t,value:i}=Number.isNaN(o-a)?c.next():c.next(o-a),!t&&i.byteLength>0&&(n.push(i),a+=i.byteLength),t||o<=a)do({cmd:s,size:o}=yield l());while(o<a);while(!t)}catch(u){e=!0,typeof c.throw=="function"&&c.throw(u)}finally{e===!1&&typeof c.return=="function"&&c.return(null)}return null}function s0(r){return _e(this,arguments,function*(){let e,n=!1,i=[],s,o,a,l=0;function c(){return o==="peek"?be(i,a)[0]:([s,i,l]=be(i,a),s)}({cmd:o,size:a}=(yield yield P((()=>null)()))||{cmd:"read",size:0});let u=Bl(r)[Symbol.asyncIterator]();try{do if({done:e,value:s}=Number.isNaN(a-l)?yield P(u.next()):yield P(u.next(a-l)),!e&&s.byteLength>0&&(i.push(s),l+=s.byteLength),e||a<=l)do({cmd:o,size:a}=yield yield P(c()));while(a<l);while(!e)}catch(h){n=!0,typeof u.throw=="function"&&(yield P(u.throw(h)))}finally{n===!1&&typeof u.return=="function"&&(yield P(u.return(new Uint8Array(0))))}return yield P(null)})}function o0(r){return _e(this,arguments,function*(){let e=!1,n=!1,i=[],s,o,a,l=0;function c(){return o==="peek"?be(i,a)[0]:([s,i,l]=be(i,a),s)}({cmd:o,size:a}=(yield yield P((()=>null)()))||{cmd:"read",size:0});let u=new Ol(r);try{do if({done:e,value:s}=Number.isNaN(a-l)?yield P(u.read()):yield P(u.read(a-l)),!e&&s.byteLength>0&&(i.push(F(s)),l+=s.byteLength),e||a<=l)do({cmd:o,size:a}=yield yield P(c()));while(a<l);while(!e)}catch(h){n=!0,yield P(u.cancel(h))}finally{n===!1?yield P(u.cancel()):r.locked&&u.releaseLock()}return yield P(null)})}function a0(r){return _e(this,arguments,function*(){let e=[],n="error",i=!1,s=null,o,a,l=0,c=[],u;function h(){return o==="peek"?be(c,a)[0]:([u,c,l]=be(c,a),u)}if({cmd:o,size:a}=(yield yield P((()=>null)()))||{cmd:"read",size:0},r.isTTY)return yield yield P(new Uint8Array(0)),yield P(null);try{e[0]=El(r,"end"),e[1]=El(r,"error");do{if(e[2]=El(r,"readable"),[n,s]=yield P(Promise.race(e.map(p=>p[2]))),n==="error")break;if((i=n==="end")||(Number.isFinite(a-l)?(u=F(r.read(a-l)),u.byteLength<a-l&&(u=F(r.read()))):u=F(r.read()),u.byteLength>0&&(c.push(u),l+=u.byteLength)),i||a<=l)do({cmd:o,size:a}=yield yield P(h()));while(a<l)}while(!i)}finally{yield P(m(e,n==="error"?s:null))}return yield P(null);function m(p,y){return u=c=null,new Promise((g,N)=>{for(let[S,G]of p)r.off(S,G);try{let S=r.destroy;S&&S.call(r,y),y=void 0}catch(S){y=S||y}finally{y!=null?N(y):g()}})}})}var zt,da,Ol,El,Os=d(()=>{ge();kt();zt={fromIterable(r){return da(i0(r))},fromAsyncIterable(r){return da(s0(r))},fromDOMStream(r){return da(o0(r))},fromNodeStream(r){return da(a0(r))},toDOMStream(r,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(r,t){throw new Error('"toNodeStream" not available in this environment')}},da=r=>(r.next(),r);Ol=class{constructor(t){this.source=t,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return b(this,void 0,void 0,function*(){let{reader:e,source:n}=this;e&&(yield e.cancel(t).catch(()=>{})),n&&n.locked&&this.releaseLock()})}read(t){return b(this,void 0,void 0,function*(){if(t===0)return{done:this.reader==null,value:new Uint8Array(0)};let e=yield this.reader.read();return!e.done&&(e.value=F(e)),e})}},El=(r,t)=>{let e=i=>n([t,i]),n;return[t,e,new Promise(i=>(n=i)&&r.once(t,e))]}});var it,ha=d(()=>{(function(r){r[r.V1=0]="V1",r[r.V2=1]="V2",r[r.V3=2]="V3",r[r.V4=3]="V4",r[r.V5=4]="V5"})(it||(it={}))});var at,Ll=d(()=>{(function(r){r[r.Sparse=0]="Sparse",r[r.Dense=1]="Dense"})(at||(at={}))});var st,Fl=d(()=>{(function(r){r[r.HALF=0]="HALF",r[r.SINGLE=1]="SINGLE",r[r.DOUBLE=2]="DOUBLE"})(st||(st={}))});var wt,Nl=d(()=>{(function(r){r[r.DAY=0]="DAY",r[r.MILLISECOND=1]="MILLISECOND"})(wt||(wt={}))});var x,Ls=d(()=>{(function(r){r[r.SECOND=0]="SECOND",r[r.MILLISECOND=1]="MILLISECOND",r[r.MICROSECOND=2]="MICROSECOND",r[r.NANOSECOND=3]="NANOSECOND"})(x||(x={}))});var ut,Ml=d(()=>{(function(r){r[r.YEAR_MONTH=0]="YEAR_MONTH",r[r.DAY_TIME=1]="DAY_TIME",r[r.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ut||(ut={}))});var pa=d(()=>{});var ir,ma,ya,Si,Rl=d(()=>{ir=new Int32Array(2),ma=new Float32Array(ir.buffer),ya=new Float64Array(ir.buffer),Si=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1});var Fs,kl=d(()=>{(function(r){r[r.UTF8_BYTES=1]="UTF8_BYTES",r[r.UTF16_STRING=2]="UTF16_STRING"})(Fs||(Fs={}))});var Ft,Cl=d(()=>{pa();kl();Rl();Ft=class{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new Ft(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readUint64(t){return BigInt.asUintN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readFloat32(t){return ir[0]=this.readInt32(t),ma[0]}readFloat64(t){return ir[Si?0:1]=this.readInt32(t),ir[Si?1:0]=this.readInt32(t+4),ya[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){ma[0]=e,this.writeInt32(t,ir[0])}writeFloat64(t,e){ya[0]=e,this.writeInt32(t,ir[Si?0:1]),this.writeInt32(t+4,ir[Si?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let t="";for(let e=0;e<4;e++)t+=String.fromCharCode(this.readInt8(this.position_+4+e));return t}__offset(t,e){let n=t-this.readInt32(t);return e<this.readInt16(n)?this.readInt16(n+e):0}__union(t,e){return t.bb_pos=e+this.readInt32(e),t.bb=this,t}__string(t,e){t+=this.readInt32(t);let n=this.readInt32(t);t+=4;let i=this.bytes_.subarray(t,t+n);return e===Fs.UTF8_BYTES?i:this.text_decoder_.decode(i)}__union_with_string(t,e){return typeof t=="string"?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(t.length!=4)throw new Error("FlatBuffers: file identifier must be length "+4);for(let e=0;e<4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1;return!0}createScalarList(t,e){let n=[];for(let i=0;i<e;++i){let s=t(i);s!==null&&n.push(s)}return n}createObjList(t,e){let n=[];for(let i=0;i<e;++i){let s=t(i);s!==null&&n.push(s.unpack())}return n}}});var Cr,Vd=d(()=>{Cl();pa();Cr=class{constructor(t){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let e;t?e=t:e=1024,this.bb=Ft.allocate(e),this.space=e}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(t,e){t>this.minalign&&(this.minalign=t);let n=~(this.bb.capacity()-this.space+e)+1&t-1;for(;this.space<n+t+e;){let i=this.bb.capacity();this.bb=Cr.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(n)}pad(t){for(let e=0;e<t;e++)this.bb.writeInt8(--this.space,0)}writeInt8(t){this.bb.writeInt8(this.space-=1,t)}writeInt16(t){this.bb.writeInt16(this.space-=2,t)}writeInt32(t){this.bb.writeInt32(this.space-=4,t)}writeInt64(t){this.bb.writeInt64(this.space-=8,t)}writeFloat32(t){this.bb.writeFloat32(this.space-=4,t)}writeFloat64(t){this.bb.writeFloat64(this.space-=8,t)}addInt8(t){this.prep(1,0),this.writeInt8(t)}addInt16(t){this.prep(2,0),this.writeInt16(t)}addInt32(t){this.prep(4,0),this.writeInt32(t)}addInt64(t){this.prep(8,0),this.writeInt64(t)}addFloat32(t){this.prep(4,0),this.writeFloat32(t)}addFloat64(t){this.prep(8,0),this.writeFloat64(t)}addFieldInt8(t,e,n){(this.force_defaults||e!=n)&&(this.addInt8(e),this.slot(t))}addFieldInt16(t,e,n){(this.force_defaults||e!=n)&&(this.addInt16(e),this.slot(t))}addFieldInt32(t,e,n){(this.force_defaults||e!=n)&&(this.addInt32(e),this.slot(t))}addFieldInt64(t,e,n){(this.force_defaults||e!==n)&&(this.addInt64(e),this.slot(t))}addFieldFloat32(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat32(e),this.slot(t))}addFieldFloat64(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat64(e),this.slot(t))}addFieldOffset(t,e,n){(this.force_defaults||e!=n)&&(this.addOffset(e),this.slot(t))}addFieldStruct(t,e,n){e!=n&&(this.nested(e),this.slot(t))}nested(t){if(t!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(t){this.vtable!==null&&(this.vtable[t]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(t){let e=t.capacity();if(e&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");let n=e<<1,i=Ft.allocate(n);return i.setPosition(n-e),i.bytes().set(t.bytes(),n-e),i}addOffset(t){this.prep(4,0),this.writeInt32(this.offset()-t+4)}startObject(t){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=t;for(let e=0;e<t;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);let t=this.offset(),e=this.vtable_in_use-1;for(;e>=0&&this.vtable[e]==0;e--);let n=e+1;for(;e>=0;e--)this.addInt16(this.vtable[e]!=0?t-this.vtable[e]:0);let i=2;this.addInt16(t-this.object_start);let s=(n+i)*2;this.addInt16(s);let o=0,a=this.space;t:for(e=0;e<this.vtables.length;e++){let l=this.bb.capacity()-this.vtables[e];if(s==this.bb.readInt16(l)){for(let c=2;c<s;c+=2)if(this.bb.readInt16(a+c)!=this.bb.readInt16(l+c))continue t;o=this.vtables[e];break}}return o?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,o-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t}finish(t,e,n){let i=n?4:0;if(e){let s=e;if(this.prep(this.minalign,4+4+i),s.length!=4)throw new TypeError("FlatBuffers: file identifier must be length "+4);for(let o=4-1;o>=0;o--)this.writeInt8(s.charCodeAt(o))}this.prep(this.minalign,4+i),this.addOffset(t),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,e){this.finish(t,e,!0)}requiredField(t,e){let n=this.bb.capacity()-t,i=n-this.bb.readInt32(n);if(!(e<this.bb.readInt16(i)&&this.bb.readInt16(i+e)!=0))throw new TypeError("FlatBuffers: field "+e+" must be set")}startVector(t,e,n){this.notNested(),this.vector_num_elems=e,this.prep(4,t*e),this.prep(n,t*e)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);let e=this.createString(t);return this.string_maps.set(t,e),e}createString(t){if(t==null)return 0;let e;return t instanceof Uint8Array?e=t:e=this.text_encoder.encode(t),this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector()}createByteVector(t){return t==null?0:(this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,this.space),this.endVector())}createObjectOffset(t){return t===null?0:typeof t=="string"?this.createString(t):t.pack(this)}createObjectOffsetList(t){let e=[];for(let n=0;n<t.length;++n){let i=t[n];if(i!==null)e.push(this.createObjectOffset(i));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return e}createStructOffsetList(t,e){return e(this,t.length),this.createObjectOffsetList(t.slice().reverse()),this.endVector()}}});var K=d(()=>{pa();Rl();Vd();Cl();kl()});var Bn,Ul=d(()=>{(function(r){r[r.BUFFER=0]="BUFFER"})(Bn||(Bn={}))});var qt,Ns=d(()=>{(function(r){r[r.LZ4_FRAME=0]="LZ4_FRAME",r[r.ZSTD=1]="ZSTD"})(qt||(qt={}))});var Zt,Pl=d(()=>{K();Ul();Ns();Zt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new Zt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+4),(e||new Zt).__init(t.readInt32(t.position())+t.position(),t)}codec(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):qt.LZ4_FRAME}method(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):Bn.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,qt.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,Bn.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,n){return Zt.startBodyCompression(t),Zt.addCodec(t,e),Zt.addMethod(t,n),Zt.endBodyCompression(t)}}});var xi,Vl=d(()=>{xi=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,n){return t.prep(8,16),t.writeInt64(BigInt(n??0)),t.writeInt64(BigInt(e??0)),t.offset()}}});var Ii,zl=d(()=>{Ii=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,n){return t.prep(8,16),t.writeInt64(BigInt(n??0)),t.writeInt64(BigInt(e??0)),t.offset()}}});var jt,jl=d(()=>{K();Pl();Vl();zl();jt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(t,e){return(e||new jt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,e){return t.setPosition(t.position()+4),(e||new jt).__init(t.readInt32(t.position())+t.position(),t)}length(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}nodes(t,e){let n=this.bb.__offset(this.bb_pos,6);return n?(e||new Ii).__init(this.bb.__vector(this.bb_pos+n)+t*16,this.bb):null}nodesLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){let n=this.bb.__offset(this.bb_pos,8);return n?(e||new xi).__init(this.bb.__vector(this.bb_pos+n)+t*16,this.bb):null}buffersLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new Zt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}}});var Oe,zd=d(()=>{K();jl();Oe=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(t,e){return(e||new Oe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,e){return t.setPosition(t.position()+4),(e||new Oe).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}data(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new jt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){let t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){return t.endObject()}}});var cn,Hl=d(()=>{(function(r){r[r.Little=0]="Little",r[r.Big=1]="Big"})(cn||(cn={}))});var Ms,jd=d(()=>{(function(r){r[r.DenseArray=0]="DenseArray"})(Ms||(Ms={}))});var Ct,ga=d(()=>{K();Ct=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInt(t,e){return(e||new Ct).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,e){return t.setPosition(t.position()+4),(e||new Ct).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){let t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startInt(t){t.startObject(2)}static addBitWidth(t,e){t.addFieldInt32(0,e,0)}static addIsSigned(t,e){t.addFieldInt8(1,+e,0)}static endInt(t){return t.endObject()}static createInt(t,e,n){return Ct.startInt(t),Ct.addBitWidth(t,e),Ct.addIsSigned(t,n),Ct.endInt(t)}}});var we,$l=d(()=>{K();jd();ga();we=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryEncoding(t,e){return(e||new we).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,e){return t.setPosition(t.position()+4),(e||new we).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}indexType(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new Ct).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){let t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}dictionaryKind(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):Ms.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addIndexType(t,e){t.addFieldOffset(1,e,0)}static addIsOrdered(t,e){t.addFieldInt8(2,+e,0)}static addDictionaryKind(t,e){t.addFieldInt16(3,e,Ms.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}});var ft,Ai=d(()=>{K();ft=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsKeyValue(t,e){return(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,e){return t.setPosition(t.position()+4),(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}key(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}value(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,e){t.addFieldOffset(0,e,0)}static addValue(t,e){t.addFieldOffset(1,e,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,e,n){return ft.startKeyValue(t),ft.addKey(t,e),ft.addValue(t,n),ft.endKeyValue(t)}}});var sr,Hd=d(()=>{K();sr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinary(t,e){return(e||new sr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,e){return t.setPosition(t.position()+4),(e||new sr).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(t){return sr.startBinary(t),sr.endBinary(t)}}});var or,$d=d(()=>{K();or=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBool(t,e){return(e||new or).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,e){return t.setPosition(t.position()+4),(e||new or).__init(t.readInt32(t.position())+t.position(),t)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(t){return or.startBool(t),or.endBool(t)}}});var ne,Zl=d(()=>{K();Nl();ne=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDate(t,e){return(e||new ne).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,e){return t.setPosition(t.position()+4),(e||new ne).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):wt.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,wt.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(t,e){return ne.startDate(t),ne.addUnit(t,e),ne.endDate(t)}}});var Ut,Wl=d(()=>{K();Ut=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDecimal(t,e){return(e||new Ut).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,e){return t.setPosition(t.position()+4),(e||new Ut).__init(t.readInt32(t.position())+t.position(),t)}precision(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}scale(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,e){t.addFieldInt32(0,e,0)}static addScale(t,e){t.addFieldInt32(1,e,0)}static addBitWidth(t,e){t.addFieldInt32(2,e,128)}static endDecimal(t){return t.endObject()}static createDecimal(t,e,n,i){return Ut.startDecimal(t),Ut.addPrecision(t,e),Ut.addScale(t,n),Ut.addBitWidth(t,i),Ut.endDecimal(t)}}});var ie,Gl=d(()=>{K();Ls();ie=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDuration(t,e){return(e||new ie).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDuration(t,e){return t.setPosition(t.position()+4),(e||new ie).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):x.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,x.MILLISECOND)}static endDuration(t){return t.endObject()}static createDuration(t,e){return ie.startDuration(t),ie.addUnit(t,e),ie.endDuration(t)}}});var se,Yl=d(()=>{K();se=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeBinary(t,e){return(e||new se).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,e){return t.setPosition(t.position()+4),(e||new se).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(t,e){return se.startFixedSizeBinary(t),se.addByteWidth(t,e),se.endFixedSizeBinary(t)}}});var oe,Kl=d(()=>{K();oe=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeList(t,e){return(e||new oe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,e){return t.setPosition(t.position()+4),(e||new oe).__init(t.readInt32(t.position())+t.position(),t)}listSize(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeList(t){return t.endObject()}static createFixedSizeList(t,e){return oe.startFixedSizeList(t),oe.addListSize(t,e),oe.endFixedSizeList(t)}}});var ae,Jl=d(()=>{K();Fl();ae=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFloatingPoint(t,e){return(e||new ae).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,e){return t.setPosition(t.position()+4),(e||new ae).__init(t.readInt32(t.position())+t.position(),t)}precision(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):st.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,e){t.addFieldInt16(0,e,st.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,e){return ae.startFloatingPoint(t),ae.addPrecision(t,e),ae.endFloatingPoint(t)}}});var ce,Xl=d(()=>{K();Ml();ce=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInterval(t,e){return(e||new ce).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,e){return t.setPosition(t.position()+4),(e||new ce).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):ut.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,ut.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,e){return ce.startInterval(t),ce.addUnit(t,e),ce.endInterval(t)}}});var ar,Zd=d(()=>{K();ar=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeBinary(t,e){return(e||new ar).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeBinary(t,e){return t.setPosition(t.position()+4),(e||new ar).__init(t.readInt32(t.position())+t.position(),t)}static startLargeBinary(t){t.startObject(0)}static endLargeBinary(t){return t.endObject()}static createLargeBinary(t){return ar.startLargeBinary(t),ar.endLargeBinary(t)}}});var cr,Wd=d(()=>{K();cr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeUtf8(t,e){return(e||new cr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeUtf8(t,e){return t.setPosition(t.position()+4),(e||new cr).__init(t.readInt32(t.position())+t.position(),t)}static startLargeUtf8(t){t.startObject(0)}static endLargeUtf8(t){return t.endObject()}static createLargeUtf8(t){return cr.startLargeUtf8(t),cr.endLargeUtf8(t)}}});var lr,Gd=d(()=>{K();lr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsList(t,e){return(e||new lr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,e){return t.setPosition(t.position()+4),(e||new lr).__init(t.readInt32(t.position())+t.position(),t)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(t){return lr.startList(t),lr.endList(t)}}});var le,ql=d(()=>{K();le=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMap(t,e){return(e||new le).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,e){return t.setPosition(t.position()+4),(e||new le).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){let t=this.bb.__offset(this.bb_pos,4);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startMap(t){t.startObject(1)}static addKeysSorted(t,e){t.addFieldInt8(0,+e,0)}static endMap(t){return t.endObject()}static createMap(t,e){return le.startMap(t),le.addKeysSorted(t,e),le.endMap(t)}}});var ur,Yd=d(()=>{K();ur=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsNull(t,e){return(e||new ur).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,e){return t.setPosition(t.position()+4),(e||new ur).__init(t.readInt32(t.position())+t.position(),t)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(t){return ur.startNull(t),ur.endNull(t)}}});var fr,Kd=d(()=>{K();fr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsStruct_(t,e){return(e||new fr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,e){return t.setPosition(t.position()+4),(e||new fr).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return fr.startStruct_(t),fr.endStruct_(t)}}});var Wt,Ql=d(()=>{K();Ls();Wt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTime(t,e){return(e||new Wt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,e){return t.setPosition(t.position()+4),(e||new Wt).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):x.MILLISECOND}bitWidth(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,x.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){return t.endObject()}static createTime(t,e,n){return Wt.startTime(t),Wt.addUnit(t,e),Wt.addBitWidth(t,n),Wt.endTime(t)}}});var Gt,tu=d(()=>{K();Ls();Gt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTimestamp(t,e){return(e||new Gt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,e){return t.setPosition(t.position()+4),(e||new Gt).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):x.SECOND}timezone(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,x.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,e,n){return Gt.startTimestamp(t),Gt.addUnit(t,e),Gt.addTimezone(t,n),Gt.endTimestamp(t)}}});var Pt,eu=d(()=>{K();Ll();Pt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUnion(t,e){return(e||new Pt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,e){return t.setPosition(t.position()+4),(e||new Pt).__init(t.readInt32(t.position())+t.position(),t)}mode(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):at.Sparse}typeIds(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+t*4):0}typeIdsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){let t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,e){t.addFieldInt16(0,e,at.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addInt32(e[n]);return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,n){return Pt.startUnion(t),Pt.addMode(t,e),Pt.addTypeIds(t,n),Pt.endUnion(t)}}});var dr,Jd=d(()=>{K();dr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(t,e){return(e||new dr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,e){return t.setPosition(t.position()+4),(e||new dr).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return dr.startUtf8(t),dr.endUtf8(t)}}});var ot,ru=d(()=>{(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.FloatingPoint=3]="FloatingPoint",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct_=13]="Struct_",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Duration=18]="Duration",r[r.LargeBinary=19]="LargeBinary",r[r.LargeUtf8=20]="LargeUtf8",r[r.LargeList=21]="LargeList",r[r.RunEndEncoded=22]="RunEndEncoded"})(ot||(ot={}))});var It,nu=d(()=>{K();$l();Ai();ru();It=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(t,e){return(e||new It).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,e){return t.setPosition(t.position()+4),(e||new It).__init(t.readInt32(t.position())+t.position(),t)}name(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){let t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}typeType(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):ot.NONE}type(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){let e=this.bb.__offset(this.bb_pos,12);return e?(t||new we).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(t,e){let n=this.bb.__offset(this.bb_pos,14);return n?(e||new It).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}childrenLength(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,16);return n?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,ot.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}}});var yt,iu=d(()=>{K();Hl();nu();Ai();yt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(t,e){return(e||new yt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,e){return t.setPosition(t.position()+4),(e||new yt).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):cn.Little}fields(t,e){let n=this.bb.__offset(this.bb_pos,6);return n?(e||new It).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}fieldsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,8);return n?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+t*8):BigInt(0)}featuresLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,cn.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static addFeatures(t,e){t.addFieldOffset(3,e,0)}static createFeaturesVector(t,e){t.startVector(8,e.length,8);for(let n=e.length-1;n>=0;n--)t.addInt64(e[n]);return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,e){t.finish(e)}static finishSizePrefixedSchemaBuffer(t,e){t.finish(e,void 0,!0)}static createSchema(t,e,n,i,s){return yt.startSchema(t),yt.addEndianness(t,e),yt.addFields(t,n),yt.addCustomMetadata(t,i),yt.addFeatures(t,s),yt.endSchema(t)}}});var W,su=d(()=>{(function(r){r[r.NONE=0]="NONE",r[r.Schema=1]="Schema",r[r.DictionaryBatch=2]="DictionaryBatch",r[r.RecordBatch=3]="RecordBatch",r[r.Tensor=4]="Tensor",r[r.SparseTensor=5]="SparseTensor"})(W||(W={}))});var f,Ze,Nt=d(()=>{ha();Ll();Fl();Nl();Ls();Ml();su();(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.Float=3]="Float",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct=13]="Struct",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Duration=18]="Duration",r[r.LargeBinary=19]="LargeBinary",r[r.LargeUtf8=20]="LargeUtf8",r[r.Dictionary=-1]="Dictionary",r[r.Int8=-2]="Int8",r[r.Int16=-3]="Int16",r[r.Int32=-4]="Int32",r[r.Int64=-5]="Int64",r[r.Uint8=-6]="Uint8",r[r.Uint16=-7]="Uint16",r[r.Uint32=-8]="Uint32",r[r.Uint64=-9]="Uint64",r[r.Float16=-10]="Float16",r[r.Float32=-11]="Float32",r[r.Float64=-12]="Float64",r[r.DateDay=-13]="DateDay",r[r.DateMillisecond=-14]="DateMillisecond",r[r.TimestampSecond=-15]="TimestampSecond",r[r.TimestampMillisecond=-16]="TimestampMillisecond",r[r.TimestampMicrosecond=-17]="TimestampMicrosecond",r[r.TimestampNanosecond=-18]="TimestampNanosecond",r[r.TimeSecond=-19]="TimeSecond",r[r.TimeMillisecond=-20]="TimeMillisecond",r[r.TimeMicrosecond=-21]="TimeMicrosecond",r[r.TimeNanosecond=-22]="TimeNanosecond",r[r.DenseUnion=-23]="DenseUnion",r[r.SparseUnion=-24]="SparseUnion",r[r.IntervalDayTime=-25]="IntervalDayTime",r[r.IntervalYearMonth=-26]="IntervalYearMonth",r[r.DurationSecond=-27]="DurationSecond",r[r.DurationMillisecond=-28]="DurationMillisecond",r[r.DurationMicrosecond=-29]="DurationMicrosecond",r[r.DurationNanosecond=-30]="DurationNanosecond",r[r.IntervalMonthDayNano=-31]="IntervalMonthDayNano"})(f||(f={}));(function(r){r[r.OFFSET=0]="OFFSET",r[r.DATA=1]="DATA",r[r.VALIDITY=2]="VALIDITY",r[r.TYPE=3]="TYPE"})(Ze||(Ze={}))});var ou={};ye(ou,{valueToString:()=>We});function We(r){if(r===null)return"null";if(r===void 0)return"undefined";switch(typeof r){case"number":return`${r}`;case"bigint":return`${r}`;case"string":return`"${r}"`}return typeof r[Symbol.toPrimitive]=="function"?r[Symbol.toPrimitive]("string"):ArrayBuffer.isView(r)?r instanceof BigInt64Array||r instanceof BigUint64Array?`[${[...r].map(t=>We(t))}]`:`[${r}]`:ArrayBuffer.isView(r)?`[${r}]`:JSON.stringify(r,(t,e)=>typeof e=="bigint"?`${e}`:e)}var Rs=d(()=>{});function q(r){if(typeof r=="bigint"&&(r<Number.MIN_SAFE_INTEGER||r>Number.MAX_SAFE_INTEGER))throw new TypeError(`${r} is not safe to convert to a number.`);return Number(r)}function au(r,t){return q(r/t)+q(r%t)/q(t)}var Ur=d(()=>{});var uu={};ye(uu,{BN:()=>Dn,bigNumToBigInt:()=>qd,bigNumToNumber:()=>lu,bigNumToString:()=>Ti,isArrowBigNumSymbol:()=>Xd});function Ge(r,...t){return t.length===0?Object.setPrototypeOf(H(this.TypedArray,r),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(r,...t),this.constructor.prototype)}function Bi(...r){return Ge.apply(this,r)}function Di(...r){return Ge.apply(this,r)}function ks(...r){return Ge.apply(this,r)}function lu(r,t){let{buffer:e,byteOffset:n,byteLength:i,signed:s}=r,o=new BigUint64Array(e,n,i/8),a=s&&o.at(-1)&BigInt(1)<<BigInt(63),l=BigInt(0),c=0;if(a){for(let u of o)l|=(u^l0)*(BigInt(1)<<BigInt(64*c++));l*=BigInt(-1),l-=BigInt(1)}else for(let u of o)l|=u*(BigInt(1)<<BigInt(64*c++));if(typeof t=="number"&&t>0){let u=BigInt("1".padEnd(t+1,"0")),h=l/u,m=a?-(l%u):l%u,p=q(h),y=`${m}`.padStart(t,"0");return+`${a&&p===0?"-":""}${p}.${y}`}return q(l)}function Ti(r){if(r.byteLength===8)return`${new r.BigIntArray(r.buffer,r.byteOffset,1)[0]}`;if(!r.signed)return cu(r);let t=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2);if(new Int16Array([t.at(-1)])[0]>=0)return cu(r);t=t.slice();let n=1;for(let s=0;s<t.length;s++){let o=t[s],a=~o+n;t[s]=a,n&=o===0?1:0}return`-${cu(t)}`}function qd(r){return r.byteLength===8?new r.BigIntArray(r.buffer,r.byteOffset,1)[0]:Ti(r)}function cu(r){let t="",e=new Uint32Array(2),n=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2),i=new Uint32Array((n=new Uint16Array(n).reverse()).buffer),s=-1,o=n.length-1;do{for(e[0]=n[s=0];s<o;)n[s++]=e[1]=e[0]/10,e[0]=(e[0]-e[1]*10<<16)+n[s];n[s]=e[1]=e[0]/10,e[0]=e[0]-e[1]*10,t=`${e[0]}${t}`}while(i[0]||i[1]||i[2]||i[3]);return t??"0"}var Xd,c0,l0,Dn,fu=d(()=>{kt();Ur();Xd=Symbol.for("isArrowBigNum");Ge.prototype[Xd]=!0;Ge.prototype.toJSON=function(){return`"${Ti(this)}"`};Ge.prototype.valueOf=function(r){return lu(this,r)};Ge.prototype.toString=function(){return Ti(this)};Ge.prototype[Symbol.toPrimitive]=function(r="default"){switch(r){case"number":return lu(this);case"string":return Ti(this);case"default":return qd(this)}return Ti(this)};Object.setPrototypeOf(Bi.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Di.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(ks.prototype,Object.create(Uint32Array.prototype));Object.assign(Bi.prototype,Ge.prototype,{constructor:Bi,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(Di.prototype,Ge.prototype,{constructor:Di,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(ks.prototype,Ge.prototype,{constructor:ks,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});c0=BigInt(4294967296)*BigInt(4294967296),l0=c0-BigInt(1);Dn=class{static new(t,e){switch(e){case!0:return new Bi(t);case!1:return new Di(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new Bi(t)}return t.byteLength===16?new ks(t):new Di(t)}static signed(t){return new Bi(t)}static unsigned(t){return new Di(t)}static decimal(t){return new ks(t)}constructor(t,e){return Dn.new(t,e)}}});function xe(r){let t=r;switch(r.typeId){case f.Decimal:return r.bitWidth/32;case f.Interval:return t.unit===ut.MONTH_DAY_NANO?4:1+t.unit;case f.FixedSizeList:return t.listSize;case f.FixedSizeBinary:return t.byteWidth;default:return 1}}var Qd,th,eh,rh,nh,ih,sh,oh,ah,ch,lh,uh,fh,dh,hh,ph,mh,yh,_h,gh,bh,wh,_,Yt,At,Tn,En,ve,On,Ln,Fn,Nn,Mn,Se,Cs,Rn,kn,hr,pr,mr,yr,_r,gr,br,wr,vr,Sr,xr,Le,ct,Fe,Ir,ue,Ne,u0,fe,_t=d(()=>{Ur();Nt();_=class{static isNull(t){return t?.typeId===f.Null}static isInt(t){return t?.typeId===f.Int}static isFloat(t){return t?.typeId===f.Float}static isBinary(t){return t?.typeId===f.Binary}static isLargeBinary(t){return t?.typeId===f.LargeBinary}static isUtf8(t){return t?.typeId===f.Utf8}static isLargeUtf8(t){return t?.typeId===f.LargeUtf8}static isBool(t){return t?.typeId===f.Bool}static isDecimal(t){return t?.typeId===f.Decimal}static isDate(t){return t?.typeId===f.Date}static isTime(t){return t?.typeId===f.Time}static isTimestamp(t){return t?.typeId===f.Timestamp}static isInterval(t){return t?.typeId===f.Interval}static isDuration(t){return t?.typeId===f.Duration}static isList(t){return t?.typeId===f.List}static isStruct(t){return t?.typeId===f.Struct}static isUnion(t){return t?.typeId===f.Union}static isFixedSizeBinary(t){return t?.typeId===f.FixedSizeBinary}static isFixedSizeList(t){return t?.typeId===f.FixedSizeList}static isMap(t){return t?.typeId===f.Map}static isDictionary(t){return t?.typeId===f.Dictionary}static isDenseUnion(t){return _.isUnion(t)&&t.mode===at.Dense}static isSparseUnion(t){return _.isUnion(t)&&t.mode===at.Sparse}constructor(t){this.typeId=t}};Qd=Symbol.toStringTag;_[Qd]=(r=>(r.children=null,r.ArrayType=Array,r.OffsetArrayType=Int32Array,r[Symbol.toStringTag]="DataType"))(_.prototype);Yt=class extends _{constructor(){super(f.Null)}toString(){return"Null"}};th=Symbol.toStringTag;Yt[th]=(r=>r[Symbol.toStringTag]="Null")(Yt.prototype);At=class extends _{constructor(t,e){super(f.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};eh=Symbol.toStringTag;At[eh]=(r=>(r.isSigned=null,r.bitWidth=null,r[Symbol.toStringTag]="Int"))(At.prototype);Tn=class extends At{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},En=class extends At{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},ve=class extends At{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},On=class extends At{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Ln=class extends At{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Fn=class extends At{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Nn=class extends At{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Mn=class extends At{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Tn.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(En.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(ve.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(On.prototype,"ArrayType",{value:BigInt64Array});Object.defineProperty(Ln.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(Fn.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Nn.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Mn.prototype,"ArrayType",{value:BigUint64Array});Se=class extends _{constructor(t){super(f.Float),this.precision=t}get ArrayType(){switch(this.precision){case st.HALF:return Uint16Array;case st.SINGLE:return Float32Array;case st.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};rh=Symbol.toStringTag;Se[rh]=(r=>(r.precision=null,r[Symbol.toStringTag]="Float"))(Se.prototype);Cs=class extends Se{constructor(){super(st.HALF)}},Rn=class extends Se{constructor(){super(st.SINGLE)}},kn=class extends Se{constructor(){super(st.DOUBLE)}};Object.defineProperty(Cs.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Rn.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(kn.prototype,"ArrayType",{value:Float64Array});hr=class extends _{constructor(){super(f.Binary)}toString(){return"Binary"}};nh=Symbol.toStringTag;hr[nh]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Binary"))(hr.prototype);pr=class extends _{constructor(){super(f.LargeBinary)}toString(){return"LargeBinary"}};ih=Symbol.toStringTag;pr[ih]=(r=>(r.ArrayType=Uint8Array,r.OffsetArrayType=BigInt64Array,r[Symbol.toStringTag]="LargeBinary"))(pr.prototype);mr=class extends _{constructor(){super(f.Utf8)}toString(){return"Utf8"}};sh=Symbol.toStringTag;mr[sh]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Utf8"))(mr.prototype);yr=class extends _{constructor(){super(f.LargeUtf8)}toString(){return"LargeUtf8"}};oh=Symbol.toStringTag;yr[oh]=(r=>(r.ArrayType=Uint8Array,r.OffsetArrayType=BigInt64Array,r[Symbol.toStringTag]="LargeUtf8"))(yr.prototype);_r=class extends _{constructor(){super(f.Bool)}toString(){return"Bool"}};ah=Symbol.toStringTag;_r[ah]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Bool"))(_r.prototype);gr=class extends _{constructor(t,e,n=128){super(f.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};ch=Symbol.toStringTag;gr[ch]=(r=>(r.scale=null,r.precision=null,r.ArrayType=Uint32Array,r[Symbol.toStringTag]="Decimal"))(gr.prototype);br=class extends _{constructor(t){super(f.Date),this.unit=t}toString(){return`Date${(this.unit+1)*32}<${wt[this.unit]}>`}get ArrayType(){return this.unit===wt.DAY?Int32Array:BigInt64Array}};lh=Symbol.toStringTag;br[lh]=(r=>(r.unit=null,r[Symbol.toStringTag]="Date"))(br.prototype);wr=class extends _{constructor(t,e){super(f.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${x[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};uh=Symbol.toStringTag;wr[uh]=(r=>(r.unit=null,r.bitWidth=null,r[Symbol.toStringTag]="Time"))(wr.prototype);vr=class extends _{constructor(t,e){super(f.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${x[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};fh=Symbol.toStringTag;vr[fh]=(r=>(r.unit=null,r.timezone=null,r.ArrayType=BigInt64Array,r[Symbol.toStringTag]="Timestamp"))(vr.prototype);Sr=class extends _{constructor(t){super(f.Interval),this.unit=t}toString(){return`Interval<${ut[this.unit]}>`}};dh=Symbol.toStringTag;Sr[dh]=(r=>(r.unit=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Interval"))(Sr.prototype);xr=class extends _{constructor(t){super(f.Duration),this.unit=t}toString(){return`Duration<${x[this.unit]}>`}};hh=Symbol.toStringTag;xr[hh]=(r=>(r.unit=null,r.ArrayType=BigInt64Array,r[Symbol.toStringTag]="Duration"))(xr.prototype);Le=class extends _{constructor(t){super(f.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};ph=Symbol.toStringTag;Le[ph]=(r=>(r.children=null,r[Symbol.toStringTag]="List"))(Le.prototype);ct=class extends _{constructor(t){super(f.Struct),this.children=t}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}};mh=Symbol.toStringTag;ct[mh]=(r=>(r.children=null,r[Symbol.toStringTag]="Struct"))(ct.prototype);Fe=class extends _{constructor(t,e,n){super(f.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce((i,s,o)=>(i[s]=o)&&i||i,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>`${t.type}`).join(" | ")}>`}};yh=Symbol.toStringTag;Fe[yh]=(r=>(r.mode=null,r.typeIds=null,r.children=null,r.typeIdToChildIndex=null,r.ArrayType=Int8Array,r[Symbol.toStringTag]="Union"))(Fe.prototype);Ir=class extends _{constructor(t){super(f.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};_h=Symbol.toStringTag;Ir[_h]=(r=>(r.byteWidth=null,r.ArrayType=Uint8Array,r[Symbol.toStringTag]="FixedSizeBinary"))(Ir.prototype);ue=class extends _{constructor(t,e){super(f.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};gh=Symbol.toStringTag;ue[gh]=(r=>(r.children=null,r.listSize=null,r[Symbol.toStringTag]="FixedSizeList"))(ue.prototype);Ne=class extends _{constructor(t,e=!1){var n,i,s;if(super(f.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",!((n=t?.type)===null||n===void 0)&&n.children)){let o=(i=t?.type)===null||i===void 0?void 0:i.children[0];o&&(o.name="key");let a=(s=t?.type)===null||s===void 0?void 0:s.children[1];a&&(a.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}};bh=Symbol.toStringTag;Ne[bh]=(r=>(r.children=null,r.keysSorted=null,r[Symbol.toStringTag]="Map_"))(Ne.prototype);u0=(r=>()=>++r)(-1),fe=class extends _{constructor(t,e,n,i){super(f.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=n==null?u0():q(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};wh=Symbol.toStringTag;fe[wh]=(r=>(r.id=null,r.indices=null,r.isOrdered=null,r.dictionary=null,r[Symbol.toStringTag]="Dictionary"))(fe.prototype)});function d0(r,t,e=!0){return typeof t=="number"?Ei(r,t,e):typeof t=="string"&&t in f?Ei(r,f[t],e):t&&t instanceof _?Ei(r,vh(t),e):t?.type&&t.type instanceof _?Ei(r,vh(t.type),e):Ei(r,f.NONE,e)}function Ei(r,t,e=!0){let n=null;switch(t){case f.Null:n=r.visitNull;break;case f.Bool:n=r.visitBool;break;case f.Int:n=r.visitInt;break;case f.Int8:n=r.visitInt8||r.visitInt;break;case f.Int16:n=r.visitInt16||r.visitInt;break;case f.Int32:n=r.visitInt32||r.visitInt;break;case f.Int64:n=r.visitInt64||r.visitInt;break;case f.Uint8:n=r.visitUint8||r.visitInt;break;case f.Uint16:n=r.visitUint16||r.visitInt;break;case f.Uint32:n=r.visitUint32||r.visitInt;break;case f.Uint64:n=r.visitUint64||r.visitInt;break;case f.Float:n=r.visitFloat;break;case f.Float16:n=r.visitFloat16||r.visitFloat;break;case f.Float32:n=r.visitFloat32||r.visitFloat;break;case f.Float64:n=r.visitFloat64||r.visitFloat;break;case f.Utf8:n=r.visitUtf8;break;case f.LargeUtf8:n=r.visitLargeUtf8;break;case f.Binary:n=r.visitBinary;break;case f.LargeBinary:n=r.visitLargeBinary;break;case f.FixedSizeBinary:n=r.visitFixedSizeBinary;break;case f.Date:n=r.visitDate;break;case f.DateDay:n=r.visitDateDay||r.visitDate;break;case f.DateMillisecond:n=r.visitDateMillisecond||r.visitDate;break;case f.Timestamp:n=r.visitTimestamp;break;case f.TimestampSecond:n=r.visitTimestampSecond||r.visitTimestamp;break;case f.TimestampMillisecond:n=r.visitTimestampMillisecond||r.visitTimestamp;break;case f.TimestampMicrosecond:n=r.visitTimestampMicrosecond||r.visitTimestamp;break;case f.TimestampNanosecond:n=r.visitTimestampNanosecond||r.visitTimestamp;break;case f.Time:n=r.visitTime;break;case f.TimeSecond:n=r.visitTimeSecond||r.visitTime;break;case f.TimeMillisecond:n=r.visitTimeMillisecond||r.visitTime;break;case f.TimeMicrosecond:n=r.visitTimeMicrosecond||r.visitTime;break;case f.TimeNanosecond:n=r.visitTimeNanosecond||r.visitTime;break;case f.Decimal:n=r.visitDecimal;break;case f.List:n=r.visitList;break;case f.Struct:n=r.visitStruct;break;case f.Union:n=r.visitUnion;break;case f.DenseUnion:n=r.visitDenseUnion||r.visitUnion;break;case f.SparseUnion:n=r.visitSparseUnion||r.visitUnion;break;case f.Dictionary:n=r.visitDictionary;break;case f.Interval:n=r.visitInterval;break;case f.IntervalDayTime:n=r.visitIntervalDayTime||r.visitInterval;break;case f.IntervalYearMonth:n=r.visitIntervalYearMonth||r.visitInterval;break;case f.IntervalMonthDayNano:n=r.visitIntervalMonthDayNano||r.visitInterval;break;case f.Duration:n=r.visitDuration;break;case f.DurationSecond:n=r.visitDurationSecond||r.visitDuration;break;case f.DurationMillisecond:n=r.visitDurationMillisecond||r.visitDuration;break;case f.DurationMicrosecond:n=r.visitDurationMicrosecond||r.visitDuration;break;case f.DurationNanosecond:n=r.visitDurationNanosecond||r.visitDuration;break;case f.FixedSizeList:n=r.visitFixedSizeList;break;case f.Map:n=r.visitMap;break}if(typeof n=="function")return n;if(!e)return()=>null;throw new Error(`Unrecognized type '${f[t]}'`)}function vh(r){switch(r.typeId){case f.Null:return f.Null;case f.Int:{let{bitWidth:t,isSigned:e}=r;switch(t){case 8:return e?f.Int8:f.Uint8;case 16:return e?f.Int16:f.Uint16;case 32:return e?f.Int32:f.Uint32;case 64:return e?f.Int64:f.Uint64}return f.Int}case f.Float:switch(r.precision){case st.HALF:return f.Float16;case st.SINGLE:return f.Float32;case st.DOUBLE:return f.Float64}return f.Float;case f.Binary:return f.Binary;case f.LargeBinary:return f.LargeBinary;case f.Utf8:return f.Utf8;case f.LargeUtf8:return f.LargeUtf8;case f.Bool:return f.Bool;case f.Decimal:return f.Decimal;case f.Time:switch(r.unit){case x.SECOND:return f.TimeSecond;case x.MILLISECOND:return f.TimeMillisecond;case x.MICROSECOND:return f.TimeMicrosecond;case x.NANOSECOND:return f.TimeNanosecond}return f.Time;case f.Timestamp:switch(r.unit){case x.SECOND:return f.TimestampSecond;case x.MILLISECOND:return f.TimestampMillisecond;case x.MICROSECOND:return f.TimestampMicrosecond;case x.NANOSECOND:return f.TimestampNanosecond}return f.Timestamp;case f.Date:switch(r.unit){case wt.DAY:return f.DateDay;case wt.MILLISECOND:return f.DateMillisecond}return f.Date;case f.Interval:switch(r.unit){case ut.DAY_TIME:return f.IntervalDayTime;case ut.YEAR_MONTH:return f.IntervalYearMonth;case ut.MONTH_DAY_NANO:return f.IntervalMonthDayNano}return f.Interval;case f.Duration:switch(r.unit){case x.SECOND:return f.DurationSecond;case x.MILLISECOND:return f.DurationMillisecond;case x.MICROSECOND:return f.DurationMicrosecond;case x.NANOSECOND:return f.DurationNanosecond}return f.Duration;case f.Map:return f.Map;case f.List:return f.List;case f.Struct:return f.Struct;case f.Union:switch(r.mode){case at.Dense:return f.DenseUnion;case at.Sparse:return f.SparseUnion}return f.Union;case f.FixedSizeBinary:return f.FixedSizeBinary;case f.FixedSizeList:return f.FixedSizeList;case f.Dictionary:return f.Dictionary}throw new Error(`Unrecognized type '${f[r.typeId]}'`)}var B,Ye=d(()=>{Nt();_t();B=class{visitMany(t,...e){return t.map((n,i)=>this.visit(n,...e.map(s=>s[i])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return d0(this,t,e)}getVisitFnByTypeId(t,e=!0){return Ei(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitLargeUtf8(t,...e){return null}visitBinary(t,...e){return null}visitLargeBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitDuration(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}};B.prototype.visitInt8=null;B.prototype.visitInt16=null;B.prototype.visitInt32=null;B.prototype.visitInt64=null;B.prototype.visitUint8=null;B.prototype.visitUint16=null;B.prototype.visitUint32=null;B.prototype.visitUint64=null;B.prototype.visitFloat16=null;B.prototype.visitFloat32=null;B.prototype.visitFloat64=null;B.prototype.visitDateDay=null;B.prototype.visitDateMillisecond=null;B.prototype.visitTimestampSecond=null;B.prototype.visitTimestampMillisecond=null;B.prototype.visitTimestampMicrosecond=null;B.prototype.visitTimestampNanosecond=null;B.prototype.visitTimeSecond=null;B.prototype.visitTimeMillisecond=null;B.prototype.visitTimeMicrosecond=null;B.prototype.visitTimeNanosecond=null;B.prototype.visitDenseUnion=null;B.prototype.visitSparseUnion=null;B.prototype.visitIntervalDayTime=null;B.prototype.visitIntervalYearMonth=null;B.prototype.visitIntervalMonthDayNano=null;B.prototype.visitDuration=null;B.prototype.visitDurationSecond=null;B.prototype.visitDurationMillisecond=null;B.prototype.visitDurationMicrosecond=null;B.prototype.visitDurationNanosecond=null});var du={};ye(du,{float64ToUint16:()=>Us,uint16ToFloat64:()=>ba});function ba(r){let t=(r&31744)>>10,e=(r&1023)/1024,n=Math.pow(-1,(r&32768)>>15);switch(t){case 31:return n*(e?Number.NaN:1/0);case 0:return n*(e?6103515625e-14*e:0)}return n*Math.pow(2,t-15)*(1+e)}function Us(r){if(r!==r)return 32256;Sh[0]=r;let t=(Oi[1]&2147483648)>>16&65535,e=Oi[1]&2146435072,n=0;return e>=1089470464?Oi[0]>0?e=31744:(e=(e&2080374784)>>16,n=(Oi[1]&1048575)>>10):e<=1056964608?(n=1048576+(Oi[1]&1048575),n=1048576+(n<<(e>>20)-998)>>21,e=0):(e=e-1056964608>>10,n=(Oi[1]&1048575)+512>>10),t|e|n&65535}var Sh,Oi,Ps=d(()=>{Sh=new Float64Array(1),Oi=new Uint32Array(Sh.buffer)});function k(r){return(t,e,n)=>{if(t.setValid(e,n!=null))return r(t,e,n)}}var L,h0,xh,p0,Pr,hu,Ih,m0,wa,va,pu,Ah,Bh,mu,Sa,xa,Ia,Aa,yu,Ba,Da,Ta,Ea,_u,gu,y0,_0,g0,b0,w0,v0,S0,x0,Dh,Th,I0,bu,Oa,La,Fa,Na,Ma,Ra,ka,wu,A0,Ht,Ie=d(()=>{Ae();Ye();Ur();an();Ps();Nt();L=class extends B{};h0=(r,t,e)=>{r[t]=Math.floor(e/864e5)},xh=(r,t,e,n)=>{if(e+1<t.length){let i=q(t[e]),s=q(t[e+1]);r.set(n.subarray(0,s-i),i)}},p0=({offset:r,values:t},e,n)=>{let i=r+e;n?t[i>>3]|=1<<i%8:t[i>>3]&=~(1<<i%8)},Pr=({values:r},t,e)=>{r[t]=e},hu=({values:r},t,e)=>{r[t]=e},Ih=({values:r},t,e)=>{r[t]=Us(e)},m0=(r,t,e)=>{switch(r.type.precision){case st.HALF:return Ih(r,t,e);case st.SINGLE:case st.DOUBLE:return hu(r,t,e)}},wa=({values:r},t,e)=>{h0(r,t,e.valueOf())},va=({values:r},t,e)=>{r[t]=BigInt(e)},pu=({stride:r,values:t},e,n)=>{t.set(n.subarray(0,r),r*e)},Ah=({values:r,valueOffsets:t},e,n)=>xh(r,t,e,n),Bh=({values:r,valueOffsets:t},e,n)=>xh(r,t,e,rr(n)),mu=(r,t,e)=>{r.type.unit===wt.DAY?wa(r,t,e):va(r,t,e)},Sa=({values:r},t,e)=>{r[t]=BigInt(e/1e3)},xa=({values:r},t,e)=>{r[t]=BigInt(e)},Ia=({values:r},t,e)=>{r[t]=BigInt(e*1e3)},Aa=({values:r},t,e)=>{r[t]=BigInt(e*1e6)},yu=(r,t,e)=>{switch(r.type.unit){case x.SECOND:return Sa(r,t,e);case x.MILLISECOND:return xa(r,t,e);case x.MICROSECOND:return Ia(r,t,e);case x.NANOSECOND:return Aa(r,t,e)}},Ba=({values:r},t,e)=>{r[t]=e},Da=({values:r},t,e)=>{r[t]=e},Ta=({values:r},t,e)=>{r[t]=e},Ea=({values:r},t,e)=>{r[t]=e},_u=(r,t,e)=>{switch(r.type.unit){case x.SECOND:return Ba(r,t,e);case x.MILLISECOND:return Da(r,t,e);case x.MICROSECOND:return Ta(r,t,e);case x.NANOSECOND:return Ea(r,t,e)}},gu=({values:r,stride:t},e,n)=>{r.set(n.subarray(0,t),t*e)},y0=(r,t,e)=>{let n=r.children[0],i=r.valueOffsets,s=Ht.getVisitFn(n);if(Array.isArray(e))for(let o=-1,a=i[t],l=i[t+1];a<l;)s(n,a++,e[++o]);else for(let o=-1,a=i[t],l=i[t+1];a<l;)s(n,a++,e.get(++o))},_0=(r,t,e)=>{let n=r.children[0],{valueOffsets:i}=r,s=Ht.getVisitFn(n),{[t]:o,[t+1]:a}=i,l=e instanceof Map?e.entries():Object.entries(e);for(let c of l)if(s(n,o,c),++o>=a)break},g0=(r,t)=>(e,n,i,s)=>n&&e(n,r,t[s]),b0=(r,t)=>(e,n,i,s)=>n&&e(n,r,t.get(s)),w0=(r,t)=>(e,n,i,s)=>n&&e(n,r,t.get(i.name)),v0=(r,t)=>(e,n,i,s)=>n&&e(n,r,t[i.name]),S0=(r,t,e)=>{let n=r.type.children.map(s=>Ht.getVisitFn(s.type)),i=e instanceof Map?w0(t,e):e instanceof v?b0(t,e):Array.isArray(e)?g0(t,e):v0(t,e);r.type.children.forEach((s,o)=>i(n[o],r.children[o],s,o))},x0=(r,t,e)=>{r.type.mode===at.Dense?Dh(r,t,e):Th(r,t,e)},Dh=(r,t,e)=>{let n=r.type.typeIdToChildIndex[r.typeIds[t]],i=r.children[n];Ht.visit(i,r.valueOffsets[t],e)},Th=(r,t,e)=>{let n=r.type.typeIdToChildIndex[r.typeIds[t]],i=r.children[n];Ht.visit(i,t,e)},I0=(r,t,e)=>{var n;(n=r.dictionary)===null||n===void 0||n.set(r.values[t],e)},bu=(r,t,e)=>{switch(r.type.unit){case ut.YEAR_MONTH:return La(r,t,e);case ut.DAY_TIME:return Oa(r,t,e);case ut.MONTH_DAY_NANO:return Fa(r,t,e)}},Oa=({values:r},t,e)=>{r.set(e.subarray(0,2),2*t)},La=({values:r},t,e)=>{r[t]=e[0]*12+e[1]%12},Fa=({values:r,stride:t},e,n)=>{r.set(n.subarray(0,t),t*e)},Na=({values:r},t,e)=>{r[t]=e},Ma=({values:r},t,e)=>{r[t]=e},Ra=({values:r},t,e)=>{r[t]=e},ka=({values:r},t,e)=>{r[t]=e},wu=(r,t,e)=>{switch(r.type.unit){case x.SECOND:return Na(r,t,e);case x.MILLISECOND:return Ma(r,t,e);case x.MICROSECOND:return Ra(r,t,e);case x.NANOSECOND:return ka(r,t,e)}},A0=(r,t,e)=>{let{stride:n}=r,i=r.children[0],s=Ht.getVisitFn(i);if(Array.isArray(e))for(let o=-1,a=t*n;++o<n;)s(i,a+o,e[o]);else for(let o=-1,a=t*n;++o<n;)s(i,a+o,e.get(o))};L.prototype.visitBool=k(p0);L.prototype.visitInt=k(Pr);L.prototype.visitInt8=k(Pr);L.prototype.visitInt16=k(Pr);L.prototype.visitInt32=k(Pr);L.prototype.visitInt64=k(Pr);L.prototype.visitUint8=k(Pr);L.prototype.visitUint16=k(Pr);L.prototype.visitUint32=k(Pr);L.prototype.visitUint64=k(Pr);L.prototype.visitFloat=k(m0);L.prototype.visitFloat16=k(Ih);L.prototype.visitFloat32=k(hu);L.prototype.visitFloat64=k(hu);L.prototype.visitUtf8=k(Bh);L.prototype.visitLargeUtf8=k(Bh);L.prototype.visitBinary=k(Ah);L.prototype.visitLargeBinary=k(Ah);L.prototype.visitFixedSizeBinary=k(pu);L.prototype.visitDate=k(mu);L.prototype.visitDateDay=k(wa);L.prototype.visitDateMillisecond=k(va);L.prototype.visitTimestamp=k(yu);L.prototype.visitTimestampSecond=k(Sa);L.prototype.visitTimestampMillisecond=k(xa);L.prototype.visitTimestampMicrosecond=k(Ia);L.prototype.visitTimestampNanosecond=k(Aa);L.prototype.visitTime=k(_u);L.prototype.visitTimeSecond=k(Ba);L.prototype.visitTimeMillisecond=k(Da);L.prototype.visitTimeMicrosecond=k(Ta);L.prototype.visitTimeNanosecond=k(Ea);L.prototype.visitDecimal=k(gu);L.prototype.visitList=k(y0);L.prototype.visitStruct=k(S0);L.prototype.visitUnion=k(x0);L.prototype.visitDenseUnion=k(Dh);L.prototype.visitSparseUnion=k(Th);L.prototype.visitDictionary=k(I0);L.prototype.visitInterval=k(bu);L.prototype.visitIntervalDayTime=k(Oa);L.prototype.visitIntervalYearMonth=k(La);L.prototype.visitIntervalMonthDayNano=k(Fa);L.prototype.visitDuration=k(wu);L.prototype.visitDurationSecond=k(Na);L.prototype.visitDurationMillisecond=k(Ma);L.prototype.visitDurationMicrosecond=k(Ra);L.prototype.visitDurationNanosecond=k(ka);L.prototype.visitFixedSizeList=k(A0);L.prototype.visitMap=k(_0);Ht=new L});var Ke,Li,ln,vu,Su,B0,xu=d(()=>{Rs();Cn();Ie();Ke=Symbol.for("parent"),Li=Symbol.for("rowIndex"),ln=class{constructor(t,e){return this[Ke]=t,this[Li]=e,new Proxy(this,B0)}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[Li],e=this[Ke],n=e.type.children,i={};for(let s=-1,o=n.length;++s<o;)i[n[s].name]=Bt.visit(e.children[s],t);return i}toString(){return`{${[...this].map(([t,e])=>`${We(t)}: ${We(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new vu(this[Ke],this[Li])}},vu=class{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let t=this.childIndex;return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,Bt.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}};Object.defineProperties(ln.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Ke]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Li]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});Su=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Ke].type.children.map(e=>e.name)}has(t,e){return t[Ke].type.children.some(n=>n.name===e)}getOwnPropertyDescriptor(t,e){if(t[Ke].type.children.some(n=>n.name===e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let n=t[Ke].type.children.findIndex(i=>i.name===e);if(n!==-1){let i=Bt.visit(t[Ke].children[n],t[Li]);return Reflect.set(t,e,i),i}}set(t,e,n){let i=t[Ke].type.children.findIndex(s=>s.name===e);return i!==-1?(Ht.visit(t[Ke].children[i],t[Li],n),Reflect.set(t,e,n)):Reflect.has(t,e)||typeof e=="symbol"?Reflect.set(t,e,n):!1}},B0=new Su});function M(r){return(t,e)=>t.getValid(e)?r(t,e):null}var D,D0,T0,Eh,E0,Oh,Lh,un,O0,Fh,L0,Nh,Mh,F0,N0,M0,Rh,kh,Ch,Uh,R0,Ph,Vh,zh,jh,k0,C0,U0,P0,V0,z0,Hh,$h,j0,H0,Zh,Wh,Gh,Yh,Kh,Jh,Xh,$0,Z0,Bt,Cn=d(()=>{fu();Ae();Ye();Ca();xu();Ur();an();Ps();Nt();D=class extends B{};D0=(r,t)=>864e5*r[t],T0=(r,t)=>null,Eh=(r,t,e)=>{if(e+1>=t.length)return null;let n=q(t[e]),i=q(t[e+1]);return r.subarray(n,i)},E0=({offset:r,values:t},e)=>{let n=r+e;return(t[n>>3]&1<<n%8)!==0},Oh=({values:r},t)=>D0(r,t),Lh=({values:r},t)=>q(r[t]),un=({stride:r,values:t},e)=>t[r*e],O0=({stride:r,values:t},e)=>ba(t[r*e]),Fh=({values:r},t)=>r[t],L0=({stride:r,values:t},e)=>t.subarray(r*e,r*(e+1)),Nh=({values:r,valueOffsets:t},e)=>Eh(r,t,e),Mh=({values:r,valueOffsets:t},e)=>{let n=Eh(r,t,e);return n!==null?Ds(n):null},F0=({values:r},t)=>r[t],N0=({type:r,values:t},e)=>r.precision!==st.HALF?t[e]:ba(t[e]),M0=(r,t)=>r.type.unit===wt.DAY?Oh(r,t):Lh(r,t),Rh=({values:r},t)=>1e3*q(r[t]),kh=({values:r},t)=>q(r[t]),Ch=({values:r},t)=>au(r[t],BigInt(1e3)),Uh=({values:r},t)=>au(r[t],BigInt(1e6)),R0=(r,t)=>{switch(r.type.unit){case x.SECOND:return Rh(r,t);case x.MILLISECOND:return kh(r,t);case x.MICROSECOND:return Ch(r,t);case x.NANOSECOND:return Uh(r,t)}},Ph=({values:r},t)=>r[t],Vh=({values:r},t)=>r[t],zh=({values:r},t)=>r[t],jh=({values:r},t)=>r[t],k0=(r,t)=>{switch(r.type.unit){case x.SECOND:return Ph(r,t);case x.MILLISECOND:return Vh(r,t);case x.MICROSECOND:return zh(r,t);case x.NANOSECOND:return jh(r,t)}},C0=({values:r,stride:t},e)=>Dn.decimal(r.subarray(t*e,t*(e+1))),U0=(r,t)=>{let{valueOffsets:e,stride:n,children:i}=r,{[t*n]:s,[t*n+1]:o}=e,l=i[0].slice(s,o-s);return new v([l])},P0=(r,t)=>{let{valueOffsets:e,children:n}=r,{[t]:i,[t+1]:s}=e,o=n[0];return new Ar(o.slice(i,s-i))},V0=(r,t)=>new ln(r,t),z0=(r,t)=>r.type.mode===at.Dense?Hh(r,t):$h(r,t),Hh=(r,t)=>{let e=r.type.typeIdToChildIndex[r.typeIds[t]],n=r.children[e];return Bt.visit(n,r.valueOffsets[t])},$h=(r,t)=>{let e=r.type.typeIdToChildIndex[r.typeIds[t]],n=r.children[e];return Bt.visit(n,t)},j0=(r,t)=>{var e;return(e=r.dictionary)===null||e===void 0?void 0:e.get(r.values[t])},H0=(r,t)=>r.type.unit===ut.MONTH_DAY_NANO?Gh(r,t):r.type.unit===ut.DAY_TIME?Zh(r,t):Wh(r,t),Zh=({values:r},t)=>r.subarray(2*t,2*(t+1)),Wh=({values:r},t)=>{let e=r[t],n=new Int32Array(2);return n[0]=Math.trunc(e/12),n[1]=Math.trunc(e%12),n},Gh=({values:r},t)=>r.subarray(4*t,4*(t+1)),Yh=({values:r},t)=>r[t],Kh=({values:r},t)=>r[t],Jh=({values:r},t)=>r[t],Xh=({values:r},t)=>r[t],$0=(r,t)=>{switch(r.type.unit){case x.SECOND:return Yh(r,t);case x.MILLISECOND:return Kh(r,t);case x.MICROSECOND:return Jh(r,t);case x.NANOSECOND:return Xh(r,t)}},Z0=(r,t)=>{let{stride:e,children:n}=r,s=n[0].slice(t*e,e);return new v([s])};D.prototype.visitNull=M(T0);D.prototype.visitBool=M(E0);D.prototype.visitInt=M(F0);D.prototype.visitInt8=M(un);D.prototype.visitInt16=M(un);D.prototype.visitInt32=M(un);D.prototype.visitInt64=M(Fh);D.prototype.visitUint8=M(un);D.prototype.visitUint16=M(un);D.prototype.visitUint32=M(un);D.prototype.visitUint64=M(Fh);D.prototype.visitFloat=M(N0);D.prototype.visitFloat16=M(O0);D.prototype.visitFloat32=M(un);D.prototype.visitFloat64=M(un);D.prototype.visitUtf8=M(Mh);D.prototype.visitLargeUtf8=M(Mh);D.prototype.visitBinary=M(Nh);D.prototype.visitLargeBinary=M(Nh);D.prototype.visitFixedSizeBinary=M(L0);D.prototype.visitDate=M(M0);D.prototype.visitDateDay=M(Oh);D.prototype.visitDateMillisecond=M(Lh);D.prototype.visitTimestamp=M(R0);D.prototype.visitTimestampSecond=M(Rh);D.prototype.visitTimestampMillisecond=M(kh);D.prototype.visitTimestampMicrosecond=M(Ch);D.prototype.visitTimestampNanosecond=M(Uh);D.prototype.visitTime=M(k0);D.prototype.visitTimeSecond=M(Ph);D.prototype.visitTimeMillisecond=M(Vh);D.prototype.visitTimeMicrosecond=M(zh);D.prototype.visitTimeNanosecond=M(jh);D.prototype.visitDecimal=M(C0);D.prototype.visitList=M(U0);D.prototype.visitStruct=M(V0);D.prototype.visitUnion=M(z0);D.prototype.visitDenseUnion=M(Hh);D.prototype.visitSparseUnion=M($h);D.prototype.visitDictionary=M(j0);D.prototype.visitInterval=M(H0);D.prototype.visitIntervalDayTime=M(Zh);D.prototype.visitIntervalYearMonth=M(Wh);D.prototype.visitIntervalMonthDayNano=M(Gh);D.prototype.visitDuration=M($0);D.prototype.visitDurationSecond=M(Yh);D.prototype.visitDurationMillisecond=M(Kh);D.prototype.visitDurationMicrosecond=M(Jh);D.prototype.visitDurationNanosecond=M(Xh);D.prototype.visitFixedSizeList=M(Z0);D.prototype.visitMap=M(P0);Bt=new D});var fn,Ni,Fi,Iu,Ar,Au,Bu,Ca=d(()=>{Ae();Rs();Cn();Ie();fn=Symbol.for("keys"),Ni=Symbol.for("vals"),Fi=Symbol.for("kKeysAsStrings"),Iu=Symbol.for("_kKeysAsStrings"),Ar=class{constructor(t){return this[fn]=new v([t.children[0]]).memoize(),this[Ni]=t.children[1],new Proxy(this,new Bu)}get[Fi](){return this[Iu]||(this[Iu]=Array.from(this[fn].toArray(),String))}[Symbol.iterator](){return new Au(this[fn],this[Ni])}get size(){return this[fn].length}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[fn],e=this[Ni],n={};for(let i=-1,s=t.length;++i<s;)n[t.get(i)]=Bt.visit(e,i);return n}toString(){return`{${[...this].map(([t,e])=>`${We(t)}: ${We(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},Au=class{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){let t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),Bt.visit(this.vals,t)]})}},Bu=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Fi]}has(t,e){return t[Fi].includes(e)}getOwnPropertyDescriptor(t,e){if(t[Fi].indexOf(e)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let n=t[Fi].indexOf(e);if(n!==-1){let i=Bt.visit(Reflect.get(t,Ni),n);return Reflect.set(t,e,i),i}}set(t,e,n){let i=t[Fi].indexOf(e);return i!==-1?(Ht.visit(Reflect.get(t,Ni),i,n),Reflect.set(t,e,n)):Reflect.has(t,e)?Reflect.set(t,e,n):!1}};Object.defineProperties(Ar.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[fn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ni]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Iu]:{writable:!0,enumerable:!1,configurable:!1,value:null}})});var Du={};ye(Du,{clampRange:()=>Vs,createElementComparator:()=>dn,wrapIndex:()=>Un});function Vs(r,t,e,n){let{length:i=0}=r,s=typeof t!="number"?0:t,o=typeof e!="number"?i:e;return s<0&&(s=(s%i+i)%i),o<0&&(o=(o%i+i)%i),o<s&&(qh=s,s=o,o=qh),o>i&&(o=i),n?n(r,s,o):[s,o]}function dn(r){if(typeof r!=="object"||r===null)return Qh(r)?Qh:e=>e===r;if(r instanceof Date){let e=r.valueOf();return n=>n instanceof Date?n.valueOf()===e:!1}return ArrayBuffer.isView(r)?e=>e?Dl(r,e):!1:r instanceof Map?G0(r):Array.isArray(r)?W0(r):r instanceof v?Y0(r):K0(r,!0)}function W0(r){let t=[];for(let e=-1,n=r.length;++e<n;)t[e]=dn(r[e]);return Ua(t)}function G0(r){let t=-1,e=[];for(let n of r.values())e[++t]=dn(n);return Ua(e)}function Y0(r){let t=[];for(let e=-1,n=r.length;++e<n;)t[e]=dn(r.get(e));return Ua(t)}function K0(r,t=!1){let e=Object.keys(r);if(!t&&e.length===0)return()=>!1;let n=[];for(let i=-1,s=e.length;++i<s;)n[i]=dn(r[e[i]]);return Ua(n,e)}function Ua(r,t){return e=>{if(!e||typeof e!="object")return!1;switch(e.constructor){case Array:return J0(r,e);case Map:return tp(r,e,e.keys());case Ar:case ln:case Object:case void 0:return tp(r,e,t||Object.keys(e))}return e instanceof v?X0(r,e):!1}}function J0(r,t){let e=r.length;if(t.length!==e)return!1;for(let n=-1;++n<e;)if(!r[n](t[n]))return!1;return!0}function X0(r,t){let e=r.length;if(t.length!==e)return!1;for(let n=-1;++n<e;)if(!r[n](t.get(n)))return!1;return!0}function tp(r,t,e){let n=e[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),s=t instanceof Map?t.values():Object.values(t)[Symbol.iterator](),o=0,a=r.length,l=s.next(),c=n.next(),u=i.next();for(;o<a&&!c.done&&!u.done&&!l.done&&!(c.value!==u.value||!r[o](l.value));++o,c=n.next(),u=i.next(),l=s.next());return o===a&&c.done&&u.done&&l.done?!0:(n.return&&n.return(),i.return&&i.return(),s.return&&s.return(),!1)}var qh,Un,Qh,Mi=d(()=>{Ae();Ca();xu();kt();Un=(r,t)=>r<0?t+r:r,Qh=r=>r!==r});var Tu={};ye(Tu,{BitIterator:()=>Pn,getBit:()=>ep,getBool:()=>Va,packBools:()=>zn,popcnt_array:()=>rp,popcnt_bit_range:()=>zs,popcnt_uint32:()=>Pa,setBool:()=>q0,truncateBitmap:()=>Vn});function Va(r,t,e,n){return(e&1<<n)!==0}function ep(r,t,e,n){return(e&1<<n)>>n}function q0(r,t,e){return e?!!(r[t>>3]|=1<<t%8)||!0:!(r[t>>3]&=~(1<<t%8))&&!1}function Vn(r,t,e){let n=e.byteLength+7&-8;if(r>0||e.byteLength<n){let i=new Uint8Array(n);return i.set(r%8===0?e.subarray(r>>3):zn(new Pn(e,r,t,null,Va)).subarray(0,n)),i}return e}function zn(r){let t=[],e=0,n=0,i=0;for(let o of r)o&&(i|=1<<n),++n===8&&(t[e++]=i,i=n=0);(e===0||n>0)&&(t[e++]=i);let s=new Uint8Array(t.length+7&-8);return s.set(t),s}function zs(r,t,e){if(e-t<=0)return 0;if(e-t<8){let s=0;for(let o of new Pn(r,t,e-t,r,ep))s+=o;return s}let n=e>>3<<3,i=t+(t%8===0?0:8-t%8);return zs(r,t,i)+zs(r,n,e)+rp(r,i>>3,n-i>>3)}function rp(r,t,e){let n=0,i=Math.trunc(t),s=new DataView(r.buffer,r.byteOffset,r.byteLength),o=e===void 0?r.byteLength:i+e;for(;o-i>=4;)n+=Pa(s.getUint32(i)),i+=4;for(;o-i>=2;)n+=Pa(s.getUint16(i)),i+=2;for(;o-i>=1;)n+=Pa(s.getUint8(i)),i+=1;return n}function Pa(r){let t=Math.trunc(r);return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}var Pn,Ri=d(()=>{Pn=class{constructor(t,e,n,i,s){this.bytes=t,this.length=n,this.context=i,this.get=s,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}});function A(r){return tb.visit(r)}var Q0,Z,jn,tb,Vr=d(()=>{Ae();Nt();_t();Ri();Ye();kt();Q0=-1,Z=class{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:t}=this;return _.isSparseUnion(t)?this.children.some(e=>e.nullable):_.isDenseUnion(t)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let t=0,{valueOffsets:e,values:n,nullBitmap:i,typeIds:s}=this;return e&&(t+=e.byteLength),n&&(t+=n.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),this.children.reduce((o,a)=>o+a.byteLength,t)}get nullCount(){if(_.isUnion(this.type))return this.children.reduce((n,i)=>n+i.nullCount,0);let t=this._nullCount,e;return t<=Q0&&(e=this.nullBitmap)&&(this._nullCount=t=e.length===0?0:this.length-zs(e,this.offset,this.offset+this.length)),t}constructor(t,e,n,i,s,o=[],a){this.type=t,this.children=o,this.dictionary=a,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let l;s instanceof Z?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=xe(t),s&&((l=s[0])&&(this.valueOffsets=l),(l=s[1])&&(this.values=l),(l=s[2])&&(this.nullBitmap=l),(l=s[3])&&(this.typeIds=l)))}getValid(t){let{type:e}=this;if(_.isUnion(e)){let n=e,i=this.children[n.typeIdToChildIndex[this.typeIds[t]]],s=n.mode===at.Dense?this.valueOffsets[t]:t;return i.getValid(s)}if(this.nullable&&this.nullCount>0){let n=this.offset+t;return(this.nullBitmap[n>>3]&1<<n%8)!==0}return!0}setValid(t,e){let n,{type:i}=this;if(_.isUnion(i)){let s=i,o=this.children[s.typeIdToChildIndex[this.typeIds[t]]],a=s.mode===at.Dense?this.valueOffsets[t]:t;n=o.getValid(a),o.setValid(a,e)}else{let{nullBitmap:s}=this,{offset:o,length:a}=this,l=o+t,c=1<<l%8,u=l>>3;(!s||s.byteLength<=u)&&(s=new Uint8Array((o+a+63&-64)>>3).fill(255),this.nullCount>0?(s.set(Vn(o,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:s})):Object.assign(this,{nullBitmap:s,_nullCount:0}));let h=s[u];n=(h&c)!==0,s[u]=e?h|c:h&~c}return n!==!!e&&(this._nullCount=this.nullCount+(e?-1:1)),e}clone(t=this.type,e=this.offset,n=this.length,i=this._nullCount,s=this,o=this.children){return new Z(t,e,n,i,s,o,this.dictionary)}slice(t,e){let{stride:n,typeId:i,children:s}=this,o=+(this._nullCount===0)-1,a=i===16?n:1,l=this._sliceBuffers(t,e,n,i);return this.clone(this.type,this.offset+t,e,o,l,s.length===0||this.valueOffsets?s:this._sliceChildren(s,a*t,a*e))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===f.Null)return this.clone(this.type,0,t,0);let{length:e,nullCount:n}=this,i=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3);i[e>>3]=(1<<e-(e&-8))-1,n>0&&i.set(Vn(this.offset,e,this.nullBitmap),0);let s=this.buffers;return s[Ze.VALIDITY]=i,this.clone(this.type,0,t,n+(t-e),s)}_sliceBuffers(t,e,n,i){let s,{buffers:o}=this;return(s=o[Ze.TYPE])&&(o[Ze.TYPE]=s.subarray(t,t+e)),(s=o[Ze.OFFSET])&&(o[Ze.OFFSET]=s.subarray(t,t+e+1))||(s=o[Ze.DATA])&&(o[Ze.DATA]=i===6?s:s.subarray(n*t,n*(t+e))),o}_sliceChildren(t,e,n){return t.map(i=>i.slice(e,n))}};Z.prototype.children=Object.freeze([]);jn=class extends B{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){let{["type"]:e,["offset"]:n=0,["length"]:i=0}=t;return new Z(e,n,i,i)}visitBool(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length>>3,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitInt(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitFloat(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitUtf8(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.data),s=F(t.nullBitmap),o=An(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,i,s])}visitLargeUtf8(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.data),s=F(t.nullBitmap),o=ua(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,i,s])}visitBinary(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.data),s=F(t.nullBitmap),o=An(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,i,s])}visitLargeBinary(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.data),s=F(t.nullBitmap),o=ua(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,i,s])}visitFixedSizeBinary(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitDate(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitTimestamp(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitTime(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitDecimal(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitList(t){let{["type"]:e,["offset"]:n=0,["child"]:i}=t,s=F(t.nullBitmap),o=An(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,void 0,s],[i])}visitStruct(t){let{["type"]:e,["offset"]:n=0,["children"]:i=[]}=t,s=F(t.nullBitmap),{length:o=i.reduce((l,{length:c})=>Math.max(l,c),0),nullCount:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,void 0,s],i)}visitUnion(t){let{["type"]:e,["offset"]:n=0,["children"]:i=[]}=t,s=H(e.ArrayType,t.typeIds),{["length"]:o=s.length,["nullCount"]:a=-1}=t;if(_.isSparseUnion(e))return new Z(e,n,o,a,[void 0,void 0,void 0,s],i);let l=An(t.valueOffsets);return new Z(e,n,o,a,[l,void 0,void 0,s],i)}visitDictionary(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.indices.ArrayType,t.data),{["dictionary"]:o=new v([new jn().visit({type:e.dictionary})])}=t,{["length"]:a=s.length,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[void 0,s,i],[],o)}visitInterval(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitDuration(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitFixedSizeList(t){let{["type"]:e,["offset"]:n=0,["child"]:i=new jn().visit({type:e.valueType})}=t,s=F(t.nullBitmap),{["length"]:o=i.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,void 0,s],[i])}visitMap(t){let{["type"]:e,["offset"]:n=0,["child"]:i=new jn().visit({type:e.childType})}=t,s=F(t.nullBitmap),o=An(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,void 0,s],[i])}},tb=new jn});function np(r){return r.some(t=>t.nullable)}function za(r){return r.reduce((t,e)=>t+e.nullCount,0)}function ja(r){return r.reduce((t,e,n)=>(t[n+1]=t[n]+e.length,t),new Uint32Array(r.length+1))}function Ha(r,t,e,n){let i=[];for(let s=-1,o=r.length;++s<o;){let a=r[s],l=t[s],{length:c}=a;if(l>=n)break;if(e>=l+c)continue;if(l>=e&&l+c<=n){i.push(a);continue}let u=Math.max(0,e-l),h=Math.min(n-l,c);i.push(a.slice(u,h-u))}return i.length===0&&i.push(r[0].slice(0,0)),i}function Eu(r,t,e,n){let i=0,s=0,o=t.length-1;do{if(i>=o-1)return e<t[o]?n(r,i,e-t[i]):null;s=i+Math.trunc((o-i)*.5),e<t[s]?o=s:i=s}while(i<o)}function Hs(r,t){return r.getValid(t)}function ki(r){function t(e,n,i){return r(e[n],i)}return function(e){let n=this.data;return Eu(n,this._offsets,e,t)}}function $a(r){let t;function e(n,i,s){return r(n[i],s,t)}return function(n,i){let s=this.data;t=i;let o=Eu(s,this._offsets,n,e);return t=void 0,o}}function Za(r){let t;function e(n,i,s){let o=s,a=0,l=0;for(let c=i-1,u=n.length;++c<u;){let h=n[c];if(~(a=r(h,t,o)))return l+a;o=0,l+=h.length}return-1}return function(n,i){t=n;let s=this.data,o=typeof i!="number"?e(s,0,0):Eu(s,this._offsets,i,e);return t=void 0,o}}var js,Wa=d(()=>{js=class{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){let t=this.chunkIterator.next();if(!t.done)return t;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}});function eb(r,t){return t===null&&r.length>0?0:-1}function rb(r,t){let{nullBitmap:e}=r;if(!e||r.nullCount<=0)return-1;let n=0;for(let i of new Pn(e,r.offset+(t||0),r.length,e,Va)){if(!i)return n;++n}return-1}function C(r,t,e){if(t===void 0)return-1;if(t===null)switch(r.typeId){case f.Union:break;case f.Dictionary:break;default:return rb(r,e)}let n=Bt.getVisitFn(r),i=dn(t);for(let s=(e||0)-1,o=r.length;++s<o;)if(i(n(r,s)))return s;return-1}function ip(r,t,e){let n=Bt.getVisitFn(r),i=dn(t);for(let s=(e||0)-1,o=r.length;++s<o;)if(i(n(r,s)))return s;return-1}var T,Hn,Ga=d(()=>{Nt();Ye();Cn();Ri();Mi();T=class extends B{};T.prototype.visitNull=eb;T.prototype.visitBool=C;T.prototype.visitInt=C;T.prototype.visitInt8=C;T.prototype.visitInt16=C;T.prototype.visitInt32=C;T.prototype.visitInt64=C;T.prototype.visitUint8=C;T.prototype.visitUint16=C;T.prototype.visitUint32=C;T.prototype.visitUint64=C;T.prototype.visitFloat=C;T.prototype.visitFloat16=C;T.prototype.visitFloat32=C;T.prototype.visitFloat64=C;T.prototype.visitUtf8=C;T.prototype.visitLargeUtf8=C;T.prototype.visitBinary=C;T.prototype.visitLargeBinary=C;T.prototype.visitFixedSizeBinary=C;T.prototype.visitDate=C;T.prototype.visitDateDay=C;T.prototype.visitDateMillisecond=C;T.prototype.visitTimestamp=C;T.prototype.visitTimestampSecond=C;T.prototype.visitTimestampMillisecond=C;T.prototype.visitTimestampMicrosecond=C;T.prototype.visitTimestampNanosecond=C;T.prototype.visitTime=C;T.prototype.visitTimeSecond=C;T.prototype.visitTimeMillisecond=C;T.prototype.visitTimeMicrosecond=C;T.prototype.visitTimeNanosecond=C;T.prototype.visitDecimal=C;T.prototype.visitList=C;T.prototype.visitStruct=C;T.prototype.visitUnion=C;T.prototype.visitDenseUnion=ip;T.prototype.visitSparseUnion=ip;T.prototype.visitDictionary=C;T.prototype.visitInterval=C;T.prototype.visitIntervalDayTime=C;T.prototype.visitIntervalYearMonth=C;T.prototype.visitIntervalMonthDayNano=C;T.prototype.visitDuration=C;T.prototype.visitDurationSecond=C;T.prototype.visitDurationMillisecond=C;T.prototype.visitDurationMicrosecond=C;T.prototype.visitDurationNanosecond=C;T.prototype.visitFixedSizeList=C;T.prototype.visitMap=C;Hn=new T});function R(r){let{type:t}=r;if(r.nullCount===0&&r.stride===1&&(_.isInt(t)&&t.bitWidth!==64||_.isTime(t)&&t.bitWidth!==64||_.isFloat(t)&&t.precision!==st.HALF))return new js(r.data.length,n=>{let i=r.data[n];return i.values.subarray(0,i.length)[Symbol.iterator]()});let e=0;return new js(r.data.length,n=>{let s=r.data[n].length,o=r.slice(e,e+s);return e+=s,new Ou(o)})}var E,Ou,Ci,Ya=d(()=>{Ye();Nt();_t();Wa();E=class extends B{};Ou=class{constructor(t){this.vector=t,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};E.prototype.visitNull=R;E.prototype.visitBool=R;E.prototype.visitInt=R;E.prototype.visitInt8=R;E.prototype.visitInt16=R;E.prototype.visitInt32=R;E.prototype.visitInt64=R;E.prototype.visitUint8=R;E.prototype.visitUint16=R;E.prototype.visitUint32=R;E.prototype.visitUint64=R;E.prototype.visitFloat=R;E.prototype.visitFloat16=R;E.prototype.visitFloat32=R;E.prototype.visitFloat64=R;E.prototype.visitUtf8=R;E.prototype.visitLargeUtf8=R;E.prototype.visitBinary=R;E.prototype.visitLargeBinary=R;E.prototype.visitFixedSizeBinary=R;E.prototype.visitDate=R;E.prototype.visitDateDay=R;E.prototype.visitDateMillisecond=R;E.prototype.visitTimestamp=R;E.prototype.visitTimestampSecond=R;E.prototype.visitTimestampMillisecond=R;E.prototype.visitTimestampMicrosecond=R;E.prototype.visitTimestampNanosecond=R;E.prototype.visitTime=R;E.prototype.visitTimeSecond=R;E.prototype.visitTimeMillisecond=R;E.prototype.visitTimeMicrosecond=R;E.prototype.visitTimeNanosecond=R;E.prototype.visitDecimal=R;E.prototype.visitList=R;E.prototype.visitStruct=R;E.prototype.visitUnion=R;E.prototype.visitDenseUnion=R;E.prototype.visitSparseUnion=R;E.prototype.visitDictionary=R;E.prototype.visitInterval=R;E.prototype.visitIntervalDayTime=R;E.prototype.visitIntervalYearMonth=R;E.prototype.visitIntervalMonthDayNano=R;E.prototype.visitDuration=R;E.prototype.visitDurationSecond=R;E.prototype.visitDurationMillisecond=R;E.prototype.visitDurationMicrosecond=R;E.prototype.visitDurationNanosecond=R;E.prototype.visitFixedSizeList=R;E.prototype.visitMap=R;Ci=new E});function $n(r){if(r){if(r instanceof Z)return new v([r]);if(r instanceof v)return new v(r.data);if(r.type instanceof _)return new v([A(r)]);if(Array.isArray(r))return new v(r.flatMap(t=>nb(t)));if(ArrayBuffer.isView(r)){r instanceof DataView&&(r=new Uint8Array(r.buffer));let t={offset:0,length:r.length,nullCount:-1,data:r};if(r instanceof Int8Array)return new v([A(Object.assign(Object.assign({},t),{type:new Tn}))]);if(r instanceof Int16Array)return new v([A(Object.assign(Object.assign({},t),{type:new En}))]);if(r instanceof Int32Array)return new v([A(Object.assign(Object.assign({},t),{type:new ve}))]);if(r instanceof BigInt64Array)return new v([A(Object.assign(Object.assign({},t),{type:new On}))]);if(r instanceof Uint8Array||r instanceof Uint8ClampedArray)return new v([A(Object.assign(Object.assign({},t),{type:new Ln}))]);if(r instanceof Uint16Array)return new v([A(Object.assign(Object.assign({},t),{type:new Fn}))]);if(r instanceof Uint32Array)return new v([A(Object.assign(Object.assign({},t),{type:new Nn}))]);if(r instanceof BigUint64Array)return new v([A(Object.assign(Object.assign({},t),{type:new Mn}))]);if(r instanceof Float32Array)return new v([A(Object.assign(Object.assign({},t),{type:new Rn}))]);if(r instanceof Float64Array)return new v([A(Object.assign(Object.assign({},t),{type:new kn}))]);throw new Error("Unrecognized input")}}throw new Error("Unrecognized input")}function nb(r){return r instanceof Z?[r]:r instanceof v?r.data:$n(r).data}var sp,op,ap,v,Ui,Ae=d(()=>{Nt();Mi();_t();Vr();Wa();Cn();Ie();Ga();Ya();_t();op={},ap={},v=class{constructor(t){var e,n,i;let s=t[0]instanceof v?t.flatMap(a=>a.data):t;if(s.length===0||s.some(a=>!(a instanceof Z)))throw new TypeError("Vector constructor expects an Array of Data instances.");let o=(e=s[0])===null||e===void 0?void 0:e.type;switch(s.length){case 0:this._offsets=[0];break;case 1:{let{get:a,set:l,indexOf:c}=op[o.typeId],u=s[0];this.isValid=h=>Hs(u,h),this.get=h=>a(u,h),this.set=(h,m)=>l(u,h,m),this.indexOf=h=>c(u,h),this._offsets=[0,u.length];break}default:Object.setPrototypeOf(this,ap[o.typeId]),this._offsets=ja(s);break}this.data=s,this.type=o,this.stride=xe(o),this.numChildren=(i=(n=o.children)===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((t,e)=>t+e.byteLength,0)}get nullable(){return np(this.data)}get nullCount(){return za(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${f[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}at(t){return this.get(Un(t,this.length))}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>-1}[Symbol.iterator](){return Ci.visit(this)}concat(...t){return new v(this.data.concat(t.flatMap(e=>e.data).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new v(Vs(this,t,e,({data:n,_offsets:i},s,o)=>Ha(n,i,s,o)))}toJSON(){return[...this]}toArray(){let{type:t,data:e,length:n,stride:i,ArrayType:s}=this;switch(t.typeId){case f.Int:case f.Float:case f.Decimal:case f.Time:case f.Timestamp:switch(e.length){case 0:return new s;case 1:return e[0].values.subarray(0,n*i);default:return e.reduce((o,{values:a,length:l})=>(o.array.set(a.subarray(0,l*i),o.offset),o.offset+=l*i,o),{array:new s(n*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e;return this.getChildAt((e=this.type.children)===null||e===void 0?void 0:e.findIndex(n=>n.name===t))}getChildAt(t){return t>-1&&t<this.numChildren?new v(this.data.map(({children:e})=>e[t])):null}get isMemoized(){return _.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(_.isDictionary(this.type)){let t=new Ui(this.data[0].dictionary),e=this.data.map(n=>{let i=n.clone();return i.dictionary=t,i});return new v(e)}return new Ui(this)}unmemoize(){if(_.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),e=this.data.map(n=>{let i=n.clone();return i.dictionary=t,i});return new v(e)}return this}};sp=Symbol.toStringTag;v[sp]=(r=>{r.type=_.prototype,r.data=[],r.length=0,r.stride=1,r.numChildren=0,r._offsets=new Uint32Array([0]),r[Symbol.isConcatSpreadable]=!0;let t=Object.keys(f).map(e=>f[e]).filter(e=>typeof e=="number"&&e!==f.NONE);for(let e of t){let n=Bt.getVisitFnByTypeId(e),i=Ht.getVisitFnByTypeId(e),s=Hn.getVisitFnByTypeId(e);op[e]={get:n,set:i,indexOf:s},ap[e]=Object.create(r,{isValid:{value:ki(Hs)},get:{value:ki(Bt.getVisitFnByTypeId(e))},set:{value:$a(Ht.getVisitFnByTypeId(e))},indexOf:{value:Za(Hn.getVisitFnByTypeId(e))}})}return"Vector"})(v.prototype);Ui=class extends v{constructor(t){super(t.data);let e=this.get,n=this.set,i=this.slice,s=new Array(this.length);Object.defineProperty(this,"get",{value(o){let a=s[o];if(a!==void 0)return a;let l=e.call(this,o);return s[o]=l,l}}),Object.defineProperty(this,"set",{value(o,a){n.call(this,o,a),s[o]=a}}),Object.defineProperty(this,"slice",{value:(o,a)=>new Ui(i.call(this,o,a))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new v(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}});function cp(r){if(!r||r.length<=0)return function(i){return!0};let t="",e=r.filter(n=>n===n);return e.length>0&&(t=`
|
|
8
|
-
switch (x) {${
|
|
9
|
-
case ${
|
|
7
|
+
"use strict";var __exports__=(()=>{var QT=Object.create;var Ru=Object.defineProperty;var ez=Object.getOwnPropertyDescriptor;var tz=Object.getOwnPropertyNames;var rz=Object.getPrototypeOf,nz=Object.prototype.hasOwnProperty;var f=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var tt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ue=(t,e)=>{for(var r in e)Ru(t,r,{get:e[r],enumerable:!0})},Fu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tz(e))!nz.call(t,n)&&n!==r&&Ru(t,n,{get:()=>e[n],enumerable:!(i=ez(e,n))||i.enumerable});return t},ju=(t,e,r)=>(Fu(t,e,"default"),r&&Fu(r,e,"default")),rh=(t,e,r)=>(r=t!=null?QT(rz(t)):{},Fu(e||!t||!t.__esModule?Ru(r,"default",{value:t,enumerable:!0}):r,t)),iz=t=>Fu(Ru({},"__esModule",{value:!0}),t);var S0=tt((gF,x0)=>{x0.exports=globalThis.loaders});var Mu,Cu,Vu,ko,Si=f(()=>{"use strict";Mu={name:"SPLAT",id:"splat",module:"splats",format:"splat",extensions:["splat"],mimeTypes:["application/octet-stream"],binary:!0},Cu={name:"KSPLAT",id:"ksplat",module:"splats",format:"ksplat",extensions:["ksplat"],mimeTypes:["application/octet-stream"],binary:!0},Vu={name:"SPZ",id:"spz",module:"splats",format:"spz",extensions:["spz"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([78,71,83,80]).buffer]},ko={name:"RAD",id:"rad",module:"splats",format:"rad",extensions:["rad"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([82,65,68,48]).buffer]}});function $0(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}function T(t,e,r,i){function n(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(l){try{c(i.next(l))}catch(d){a(d)}}function u(l){try{c(i.throw(l))}catch(d){a(d)}}function c(l){l.done?o(l.value):n(l.value).then(s,u)}c((i=i.apply(t,e||[])).next())})}function I0(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ne(t){return this instanceof ne?(this.v=t,this):new ne(t)}function Pt(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(t,e||[]),n,o=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(p){return function(v){return Promise.resolve(v).then(p,d)}}function s(p,v){i[p]&&(n[p]=function(_){return new Promise(function($,B){o.push([p,_,$,B])>1||u(p,_)})},v&&(n[p]=v(n[p])))}function u(p,v){try{c(i[p](v))}catch(_){h(o[0][3],_)}}function c(p){p.value instanceof ne?Promise.resolve(p.value.v).then(l,d):h(o[0][2],p)}function l(p){u("next",p)}function d(p){u("throw",p)}function h(p,v){p(v),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Do(t){var e,r;return e={},i("next"),i("throw",function(n){throw n}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(n,o){e[n]=t[n]?function(a){return(r=!r)?{value:ne(t[n](a)),done:!1}:o?o(a):a}:o}}function fr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof I0=="function"?I0(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=t[o]&&function(a){return new Promise(function(s,u){a=t[o](a),n(s,u,a.done,a.value)})}}function n(o,a,s,u){Promise.resolve(u).then(function(c){o({value:c,done:s})},a)}}var Ft=f(()=>{});var k0,Ao,oz,Rt,fn=f(()=>{k0=new TextDecoder("utf-8"),Ao=k0.decode.bind(k0),oz=new TextEncoder,Rt=t=>oz.encode(t)});var az,D0,Ye,mt,pr,hr,qt,Zu,Hu,Wu,Ju,Gu,A0,ds,B0,Ku,T0,Ii=f(()=>{az=t=>typeof t=="number",D0=t=>typeof t=="boolean",Ye=t=>typeof t=="function",mt=t=>t!=null&&Object(t)===t,pr=t=>mt(t)&&Ye(t.then),hr=t=>mt(t)&&Ye(t[Symbol.iterator]),qt=t=>mt(t)&&Ye(t[Symbol.asyncIterator]),Zu=t=>mt(t)&&mt(t.schema),Hu=t=>mt(t)&&"done"in t&&"value"in t,Wu=t=>mt(t)&&Ye(t.stat)&&az(t.fd),Ju=t=>mt(t)&&ds(t.body),Gu=t=>"_getDOMStream"in t&&"_getNodeStream"in t,A0=t=>mt(t)&&Ye(t.abort)&&Ye(t.getWriter)&&!Gu(t),ds=t=>mt(t)&&Ye(t.cancel)&&Ye(t.getReader)&&!Gu(t),B0=t=>mt(t)&&Ye(t.end)&&Ye(t.write)&&D0(t.writable)&&!Gu(t),Ku=t=>mt(t)&&Ye(t.read)&&Ye(t.pipe)&&D0(t.readable)&&!Gu(t),T0=t=>mt(t)&&Ye(t.clear)&&Ye(t.bytes)&&Ye(t.position)&&Ye(t.setPosition)&&Ye(t.capacity)&&Ye(t.getBufferIdentifier)&&Ye(t.createLong)});var ch={};Ue(ch,{compareArrayLike:()=>sh,joinUint8Arrays:()=>jt,memcpy:()=>fs,rebaseValueOffsets:()=>Yu,toArrayBufferView:()=>oe,toArrayBufferViewAsyncIterator:()=>mr,toArrayBufferViewIterator:()=>Tr,toBigInt64Array:()=>ps,toBigUint64Array:()=>fz,toFloat32Array:()=>pz,toFloat32ArrayAsyncIterator:()=>Bz,toFloat32ArrayIterator:()=>wz,toFloat64Array:()=>hz,toFloat64ArrayAsyncIterator:()=>Tz,toFloat64ArrayIterator:()=>xz,toInt16Array:()=>uz,toInt16ArrayAsyncIterator:()=>$z,toInt16ArrayIterator:()=>yz,toInt32Array:()=>$i,toInt32ArrayAsyncIterator:()=>kz,toInt32ArrayIterator:()=>vz,toInt8Array:()=>cz,toInt8ArrayAsyncIterator:()=>Iz,toInt8ArrayIterator:()=>gz,toUint16Array:()=>lz,toUint16ArrayAsyncIterator:()=>Dz,toUint16ArrayIterator:()=>_z,toUint32Array:()=>dz,toUint32ArrayAsyncIterator:()=>Az,toUint32ArrayIterator:()=>bz,toUint8Array:()=>P,toUint8ArrayAsyncIterator:()=>ah,toUint8ArrayIterator:()=>oh,toUint8ClampedArray:()=>mz,toUint8ClampedArrayAsyncIterator:()=>zz,toUint8ClampedArrayIterator:()=>Sz});function sz(t){let e=t[0]?[t[0]]:[],r,i,n,o;for(let a,s,u=0,c=0,l=t.length;++u<l;){if(a=e[c],s=t[u],!a||!s||a.buffer!==s.buffer||s.byteOffset<a.byteOffset){s&&(e[++c]=s);continue}if({byteOffset:r,byteLength:n}=a,{byteOffset:i,byteLength:o}=s,r+n<i||i+o<r){s&&(e[++c]=s);continue}e[c]=new Uint8Array(a.buffer,r,i-r+o)}return e}function fs(t,e,r=0,i=e.byteLength){let n=t.byteLength,o=new Uint8Array(t.buffer,t.byteOffset,n),a=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,n));return o.set(a,r),t}function jt(t,e){let r=sz(t),i=r.reduce((l,d)=>l+d.byteLength,0),n,o,a,s=0,u=-1,c=Math.min(e||Number.POSITIVE_INFINITY,i);for(let l=r.length;++u<l;){if(n=r[u],o=n.subarray(0,Math.min(n.length,c-s)),c<=s+o.length){o.length<n.length?r[u]=n.subarray(o.length):o.length===n.length&&u++,a?fs(a,o,s):a=o;break}fs(a||(a=new Uint8Array(c)),o,s),s+=o.length}return[a||new Uint8Array(0),r.slice(u),i-(a?a.byteLength:0)]}function oe(t,e){let r=Hu(e)?e.value:e;return r instanceof t?t===Uint8Array?new t(r.buffer,r.byteOffset,r.byteLength):r:r?(typeof r=="string"&&(r=Rt(r)),r instanceof ArrayBuffer?new t(r):r instanceof ih?new t(r):T0(r)?oe(t,r.bytes()):ArrayBuffer.isView(r)?r.byteLength<=0?new t(0):new t(r.buffer,r.byteOffset,r.byteLength/t.BYTES_PER_ELEMENT):t.from(r)):new t(0)}function*Tr(t,e){let r=function*(n){yield n},i=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof ih?r(e):hr(e)?e:r(e);return yield*nh((function*(n){let o=null;do o=n.next(yield oe(t,o));while(!o.done)})(i[Symbol.iterator]())),new t}function mr(t,e){return Pt(this,arguments,function*(){if(pr(e))return yield ne(yield ne(yield*Do(fr(mr(t,yield ne(e))))));let i=function(a){return Pt(this,arguments,function*(){yield yield ne(yield ne(a))})},n=function(a){return Pt(this,arguments,function*(){yield ne(yield*Do(fr(nh((function*(s){let u=null;do u=s.next(yield u?.value);while(!u.done)})(a[Symbol.iterator]())))))})},o=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof ih?i(e):hr(e)?n(e):qt(e)?e:i(e);return yield ne(yield*Do(fr(nh((function(a){return Pt(this,arguments,function*(){let s=null;do s=yield ne(a.next(yield yield ne(oe(t,s))));while(!s.done)})})(o[Symbol.asyncIterator]()))))),yield ne(new t)})}function Yu(t,e,r){if(t!==0){r=r.slice(0,e);let i=typeof r[0]=="bigint"?BigInt(t):t;for(let n=-1,o=r.length;++n<o;)r[n]+=i}return r.subarray(0,e)}function sh(t,e){let r=0,i=t.length;if(i!==e.length)return!1;if(i>0)do if(t[r]!==e[r])return!1;while(++r<i);return!0}var ih,cz,uz,$i,ps,P,lz,dz,fz,pz,hz,mz,nh,gz,yz,vz,oh,_z,bz,wz,xz,Sz,Iz,$z,kz,ah,Dz,Az,Bz,Tz,zz,Xe=f(()=>{Ft();fn();Ii();ih=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;cz=t=>oe(Int8Array,t),uz=t=>oe(Int16Array,t),$i=t=>oe(Int32Array,t),ps=t=>oe(BigInt64Array,t),P=t=>oe(Uint8Array,t),lz=t=>oe(Uint16Array,t),dz=t=>oe(Uint32Array,t),fz=t=>oe(BigUint64Array,t),pz=t=>oe(Float32Array,t),hz=t=>oe(Float64Array,t),mz=t=>oe(Uint8ClampedArray,t),nh=t=>(t.next(),t);gz=t=>Tr(Int8Array,t),yz=t=>Tr(Int16Array,t),vz=t=>Tr(Int32Array,t),oh=t=>Tr(Uint8Array,t),_z=t=>Tr(Uint16Array,t),bz=t=>Tr(Uint32Array,t),wz=t=>Tr(Float32Array,t),xz=t=>Tr(Float64Array,t),Sz=t=>Tr(Uint8ClampedArray,t);Iz=t=>mr(Int8Array,t),$z=t=>mr(Int16Array,t),kz=t=>mr(Int32Array,t),ah=t=>mr(Uint8Array,t),Dz=t=>mr(Uint16Array,t),Az=t=>mr(Uint32Array,t),Bz=t=>mr(Float32Array,t),Tz=t=>mr(Float64Array,t),zz=t=>mr(Uint8ClampedArray,t)});function*Oz(t){let e,r=!1,i=[],n,o,a,s=0;function u(){return o==="peek"?jt(i,a)[0]:([n,i,s]=jt(i,a),n)}({cmd:o,size:a}=(yield null)||{cmd:"read",size:0});let c=oh(t)[Symbol.iterator]();try{do if({done:e,value:n}=Number.isNaN(a-s)?c.next():c.next(a-s),!e&&n.byteLength>0&&(i.push(n),s+=n.byteLength),e||a<=s)do({cmd:o,size:a}=yield u());while(a<s);while(!e)}catch(l){r=!0,typeof c.throw=="function"&&c.throw(l)}finally{r===!1&&typeof c.return=="function"&&c.return(null)}return null}function Ez(t){return Pt(this,arguments,function*(){let r,i=!1,n=[],o,a,s,u=0;function c(){return a==="peek"?jt(n,s)[0]:([o,n,u]=jt(n,s),o)}({cmd:a,size:s}=(yield yield ne(null))||{cmd:"read",size:0});let l=ah(t)[Symbol.asyncIterator]();try{do if({done:r,value:o}=Number.isNaN(s-u)?yield ne(l.next()):yield ne(l.next(s-u)),!r&&o.byteLength>0&&(n.push(o),u+=o.byteLength),r||s<=u)do({cmd:a,size:s}=yield yield ne(c()));while(s<u);while(!r)}catch(d){i=!0,typeof l.throw=="function"&&(yield ne(l.throw(d)))}finally{i===!1&&typeof l.return=="function"&&(yield ne(l.return(new Uint8Array(0))))}return yield ne(null)})}function Uz(t){return Pt(this,arguments,function*(){let r=!1,i=!1,n=[],o,a,s,u=0;function c(){return a==="peek"?jt(n,s)[0]:([o,n,u]=jt(n,s),o)}({cmd:a,size:s}=(yield yield ne(null))||{cmd:"read",size:0});let l=new lh(t);try{do if({done:r,value:o}=Number.isNaN(s-u)?yield ne(l.read()):yield ne(l.read(s-u)),!r&&o.byteLength>0&&(n.push(P(o)),u+=o.byteLength),r||s<=u)do({cmd:a,size:s}=yield yield ne(c()));while(s<u);while(!r)}catch(d){i=!0,yield ne(l.cancel(d))}finally{i===!1?yield ne(l.cancel()):t.locked&&l.releaseLock()}return yield ne(null)})}function Nz(t){return Pt(this,arguments,function*(){let r=[],i="error",n=!1,o=null,a,s,u=0,c=[],l;function d(){return a==="peek"?jt(c,s)[0]:([l,c,u]=jt(c,s),l)}if({cmd:a,size:s}=(yield yield ne(null))||{cmd:"read",size:0},t.isTTY)return yield yield ne(new Uint8Array(0)),yield ne(null);try{r[0]=uh(t,"end"),r[1]=uh(t,"error");do{if(r[2]=uh(t,"readable"),[i,o]=yield ne(Promise.race(r.map(p=>p[2]))),i==="error")break;if((n=i==="end")||(Number.isFinite(s-u)?(l=P(t.read(s-u)),l.byteLength<s-u&&(l=P(t.read()))):l=P(t.read()),l.byteLength>0&&(c.push(l),u+=l.byteLength)),n||s<=u)do({cmd:a,size:s}=yield yield ne(d()));while(s<u)}while(!n)}finally{yield ne(h(r,i==="error"?o:null))}return yield ne(null);function h(p,v){return l=c=null,new Promise((_,$)=>{for(let[B,Z]of p)t.off(B,Z);try{let B=t.destroy;B&&B.call(t,v),v=void 0}catch(B){v=B||v}finally{v!=null?$(v):_()}})}})}var nt,Xu,lh,uh,hs=f(()=>{Ft();Xe();nt={fromIterable(t){return Xu(Oz(t))},fromAsyncIterable(t){return Xu(Ez(t))},fromDOMStream(t){return Xu(Uz(t))},fromNodeStream(t){return Xu(Nz(t))},toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},Xu=t=>(t.next(),t);lh=class{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return T(this,void 0,void 0,function*(){let{reader:r,source:i}=this;r&&(yield r.cancel(e).catch(()=>{})),i&&i.locked&&this.releaseLock()})}read(e){return T(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};let r=yield this.reader.read();return!r.done&&(r.value=P(r)),r})}},uh=(t,e)=>{let r=n=>i([e,n]),i;return[e,r,new Promise(n=>(i=n)&&t.once(e,r))]}});var be,qu=f(()=>{(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(be||(be={}))});var ke,dh=f(()=>{(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(ke||(ke={}))});var xe,fh=f(()=>{(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(xe||(xe={}))});var Ze,ph=f(()=>{(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(Ze||(Ze={}))});var L,ms=f(()=>{(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(L||(L={}))});var ze,hh=f(()=>{(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ze||(ze={}))});var Qu=f(()=>{});var zr,el,tl,Bo,mh=f(()=>{zr=new Int32Array(2),el=new Float32Array(zr.buffer),tl=new Float64Array(zr.buffer),Bo=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1});var gs,gh=f(()=>{(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(gs||(gs={}))});var it,yh=f(()=>{Qu();gh();mh();it=class t{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new t(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readUint64(e){return BigInt.asUintN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readFloat32(e){return zr[0]=this.readInt32(e),el[0]}readFloat64(e){return zr[Bo?0:1]=this.readInt32(e),zr[Bo?1:0]=this.readInt32(e+4),tl[0]}writeInt8(e,r){this.bytes_[e]=r}writeUint8(e,r){this.bytes_[e]=r}writeInt16(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8}writeUint16(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8}writeInt32(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8,this.bytes_[e+2]=r>>16,this.bytes_[e+3]=r>>24}writeUint32(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8,this.bytes_[e+2]=r>>16,this.bytes_[e+3]=r>>24}writeInt64(e,r){this.writeInt32(e,Number(BigInt.asIntN(32,r))),this.writeInt32(e+4,Number(BigInt.asIntN(32,r>>BigInt(32))))}writeUint64(e,r){this.writeUint32(e,Number(BigInt.asUintN(32,r))),this.writeUint32(e+4,Number(BigInt.asUintN(32,r>>BigInt(32))))}writeFloat32(e,r){el[0]=r,this.writeInt32(e,zr[0])}writeFloat64(e,r){tl[0]=r,this.writeInt32(e,zr[Bo?0:1]),this.writeInt32(e+4,zr[Bo?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let r=0;r<4;r++)e+=String.fromCharCode(this.readInt8(this.position_+4+r));return e}__offset(e,r){let i=e-this.readInt32(e);return r<this.readInt16(i)?this.readInt16(i+r):0}__union(e,r){return e.bb_pos=r+this.readInt32(r),e.bb=this,e}__string(e,r){e+=this.readInt32(e);let i=this.readInt32(e);e+=4;let n=this.bytes_.subarray(e,e+i);return r===gs.UTF8_BYTES?n:this.text_decoder_.decode(n)}__union_with_string(e,r){return typeof e=="string"?this.__string(r):this.__union(e,r)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+4}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=4)throw new Error("FlatBuffers: file identifier must be length "+4);for(let r=0;r<4;r++)if(e.charCodeAt(r)!=this.readInt8(this.position()+4+r))return!1;return!0}createScalarList(e,r){let i=[];for(let n=0;n<r;++n){let o=e(n);o!==null&&i.push(o)}return i}createObjList(e,r){let i=[];for(let n=0;n<r;++n){let o=e(n);o!==null&&i.push(o.unpack())}return i}}});var ki,z0=f(()=>{yh();Qu();ki=class t{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let r;e?r=e:r=1024,this.bb=it.allocate(r),this.space=r}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,r){e>this.minalign&&(this.minalign=e);let i=~(this.bb.capacity()-this.space+r)+1&e-1;for(;this.space<i+e+r;){let n=this.bb.capacity();this.bb=t.growByteBuffer(this.bb),this.space+=this.bb.capacity()-n}this.pad(i)}pad(e){for(let r=0;r<e;r++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,r,i){(this.force_defaults||r!=i)&&(this.addInt8(r),this.slot(e))}addFieldInt16(e,r,i){(this.force_defaults||r!=i)&&(this.addInt16(r),this.slot(e))}addFieldInt32(e,r,i){(this.force_defaults||r!=i)&&(this.addInt32(r),this.slot(e))}addFieldInt64(e,r,i){(this.force_defaults||r!==i)&&(this.addInt64(r),this.slot(e))}addFieldFloat32(e,r,i){(this.force_defaults||r!=i)&&(this.addFloat32(r),this.slot(e))}addFieldFloat64(e,r,i){(this.force_defaults||r!=i)&&(this.addFloat64(r),this.slot(e))}addFieldOffset(e,r,i){(this.force_defaults||r!=i)&&(this.addOffset(r),this.slot(e))}addFieldStruct(e,r,i){r!=i&&(this.nested(r),this.slot(e))}nested(e){if(e!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){let r=e.capacity();if(r&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");let i=r<<1,n=it.allocate(i);return n.setPosition(i-r),n.bytes().set(e.bytes(),i-r),n}addOffset(e){this.prep(4,0),this.writeInt32(this.offset()-e+4)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let r=0;r<e;r++)this.vtable[r]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);let e=this.offset(),r=this.vtable_in_use-1;for(;r>=0&&this.vtable[r]==0;r--);let i=r+1;for(;r>=0;r--)this.addInt16(this.vtable[r]!=0?e-this.vtable[r]:0);let n=2;this.addInt16(e-this.object_start);let o=(i+n)*2;this.addInt16(o);let a=0,s=this.space;e:for(r=0;r<this.vtables.length;r++){let u=this.bb.capacity()-this.vtables[r];if(o==this.bb.readInt16(u)){for(let c=2;c<o;c+=2)if(this.bb.readInt16(s+c)!=this.bb.readInt16(u+c))continue e;a=this.vtables[r];break}}return a?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,a-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,r,i){let n=i?4:0;if(r){let o=r;if(this.prep(this.minalign,8+n),o.length!=4)throw new TypeError("FlatBuffers: file identifier must be length "+4);for(let a=3;a>=0;a--)this.writeInt8(o.charCodeAt(a))}this.prep(this.minalign,4+n),this.addOffset(e),n&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,r){this.finish(e,r,!0)}requiredField(e,r){let i=this.bb.capacity()-e,n=i-this.bb.readInt32(i);if(!(r<this.bb.readInt16(n)&&this.bb.readInt16(n+r)!=0))throw new TypeError("FlatBuffers: field "+r+" must be set")}startVector(e,r,i){this.notNested(),this.vector_num_elems=r,this.prep(4,e*r),this.prep(i,e*r)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);let r=this.createString(e);return this.string_maps.set(e,r),r}createString(e){if(e==null)return 0;let r;return e instanceof Uint8Array?r=e:r=this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,r.length,1),this.bb.setPosition(this.space-=r.length),this.bb.bytes().set(r,this.space),this.endVector()}createByteVector(e){return e==null?0:(this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector())}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){let r=[];for(let i=0;i<e.length;++i){let n=e[i];if(n!==null)r.push(this.createObjectOffset(n));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return r}createStructOffsetList(e,r){return r(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}}});var fe=f(()=>{Qu();mh();z0();yh();gh()});var Di,vh=f(()=>{(function(t){t[t.BUFFER=0]="BUFFER"})(Di||(Di={}))});var gt,ys=f(()=>{(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(gt||(gt={}))});var pn,_h=f(()=>{fe();vh();ys();pn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBodyCompression(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}codec(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):gt.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):Di.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,r){e.addFieldInt8(0,r,gt.LZ4_FRAME)}static addMethod(e,r){e.addFieldInt8(1,r,Di.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,r,i){return t.startBodyCompression(e),t.addCodec(e,r),t.addMethod(e,i),t.endBodyCompression(e)}}});var To,bh=f(()=>{To=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,r,i){return e.prep(8,16),e.writeInt64(BigInt(i??0)),e.writeInt64(BigInt(r??0)),e.offset()}}});var zo,wh=f(()=>{zo=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,r,i){return e.prep(8,16),e.writeInt64(BigInt(i??0)),e.writeInt64(BigInt(r??0)),e.offset()}}});var ut,xh=f(()=>{fe();_h();bh();wh();ut=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsRecordBatch(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}length(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}nodes(e,r){let i=this.bb.__offset(this.bb_pos,6);return i?(r||new zo).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}nodesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new To).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}buffersLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){let r=this.bb.__offset(this.bb_pos,10);return r?(e||new pn).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}variadicBufferCounts(e){let r=this.bb.__offset(this.bb_pos,12);return r?this.bb.readInt64(this.bb.__vector(this.bb_pos+r)+e*8):BigInt(0)}variadicBufferCountsLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startRecordBatch(e){e.startObject(5)}static addLength(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addNodes(e,r){e.addFieldOffset(1,r,0)}static startNodesVector(e,r){e.startVector(16,r,8)}static addBuffers(e,r){e.addFieldOffset(2,r,0)}static startBuffersVector(e,r){e.startVector(16,r,8)}static addCompression(e,r){e.addFieldOffset(3,r,0)}static addVariadicBufferCounts(e,r){e.addFieldOffset(4,r,0)}static createVariadicBufferCountsVector(e,r){e.startVector(8,r.length,8);for(let i=r.length-1;i>=0;i--)e.addInt64(r[i]);return e.endVector()}static startVariadicBufferCountsVector(e,r){e.startVector(8,r,8)}static endRecordBatch(e){return e.endObject()}}});var hn,O0=f(()=>{fe();xh();hn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDictionaryBatch(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}data(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new ut).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}isDelta(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addData(e,r){e.addFieldOffset(1,r,0)}static addIsDelta(e,r){e.addFieldInt8(2,+r,0)}static endDictionaryBatch(e){return e.endObject()}}});var Mn,Sh=f(()=>{(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Mn||(Mn={}))});var vs,E0=f(()=>{(function(t){t[t.DenseArray=0]="DenseArray"})(vs||(vs={}))});var yr,nl=f(()=>{fe();yr=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsInt(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,r){e.addFieldInt32(0,r,0)}static addIsSigned(e,r){e.addFieldInt8(1,+r,0)}static endInt(e){return e.endObject()}static createInt(e,r,i){return t.startInt(e),t.addBitWidth(e,r),t.addIsSigned(e,i),t.endInt(e)}}});var Or,Ih=f(()=>{fe();E0();nl();Or=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDictionaryEncoding(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}indexType(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new yr).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}isOrdered(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):vs.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addIndexType(e,r){e.addFieldOffset(1,r,0)}static addIsOrdered(e,r){e.addFieldInt8(2,+r,0)}static addDictionaryKind(e,r){e.addFieldInt16(3,r,vs.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}});var Fe,Oo=f(()=>{fe();Fe=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsKeyValue(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}key(e){let r=this.bb.__offset(this.bb_pos,4);return r?this.bb.__string(this.bb_pos+r,e):null}value(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.__string(this.bb_pos+r,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,r){e.addFieldOffset(0,r,0)}static addValue(e,r){e.addFieldOffset(1,r,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,r,i){return t.startKeyValue(e),t.addKey(e,r),t.addValue(e,i),t.endKeyValue(e)}}});var _s,U0=f(()=>{fe();_s=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return t.startBinary(e),t.endBinary(e)}}});var bs,N0=f(()=>{fe();bs=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBinaryView(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinaryView(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinaryView(e){e.startObject(0)}static endBinaryView(e){return e.endObject()}static createBinaryView(e){return t.startBinaryView(e),t.endBinaryView(e)}}});var ws,L0=f(()=>{fe();ws=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBool(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return t.startBool(e),t.endBool(e)}}});var Cn,$h=f(()=>{fe();ph();Cn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDate(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ze.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,Ze.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,r){return t.startDate(e),t.addUnit(e,r),t.endDate(e)}}});var Er,kh=f(()=>{fe();Er=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDecimal(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,r){e.addFieldInt32(0,r,0)}static addScale(e,r){e.addFieldInt32(1,r,0)}static addBitWidth(e,r){e.addFieldInt32(2,r,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,r,i,n){return t.startDecimal(e),t.addPrecision(e,r),t.addScale(e,i),t.addBitWidth(e,n),t.endDecimal(e)}}});var Vn,Dh=f(()=>{fe();ms();Vn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDuration(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):L.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,L.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,r){return t.startDuration(e),t.addUnit(e,r),t.endDuration(e)}}});var Zn,Ah=f(()=>{fe();Zn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFixedSizeBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,r){e.addFieldInt32(0,r,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,r){return t.startFixedSizeBinary(e),t.addByteWidth(e,r),t.endFixedSizeBinary(e)}}});var Hn,Bh=f(()=>{fe();Hn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFixedSizeList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}listSize(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,r){e.addFieldInt32(0,r,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,r){return t.startFixedSizeList(e),t.addListSize(e,r),t.endFixedSizeList(e)}}});var Wn,Th=f(()=>{fe();fh();Wn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFloatingPoint(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):xe.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,r){e.addFieldInt16(0,r,xe.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,r){return t.startFloatingPoint(e),t.addPrecision(e,r),t.endFloatingPoint(e)}}});var Jn,zh=f(()=>{fe();hh();Jn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsInterval(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ze.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,ze.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,r){return t.startInterval(e),t.addUnit(e,r),t.endInterval(e)}}});var xs,P0=f(()=>{fe();xs=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return t.startLargeBinary(e),t.endLargeBinary(e)}}});var Ss,F0=f(()=>{fe();Ss=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(e){e.startObject(0)}static endLargeList(e){return e.endObject()}static createLargeList(e){return t.startLargeList(e),t.endLargeList(e)}}});var Is,R0=f(()=>{fe();Is=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeUtf8(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return t.startLargeUtf8(e),t.endLargeUtf8(e)}}});var $s,j0=f(()=>{fe();$s=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return t.startList(e),t.endList(e)}}});var Gn,Oh=f(()=>{fe();Gn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsMap(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){let e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,r){e.addFieldInt8(0,+r,0)}static endMap(e){return e.endObject()}static createMap(e,r){return t.startMap(e),t.addKeysSorted(e,r),t.endMap(e)}}});var ks,M0=f(()=>{fe();ks=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsNull(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return t.startNull(e),t.endNull(e)}}});var Ds,C0=f(()=>{fe();Ds=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsStruct_(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return t.startStruct_(e),t.endStruct_(e)}}});var mn,Eh=f(()=>{fe();ms();mn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsTime(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):L.MILLISECOND}bitWidth(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,r){e.addFieldInt16(0,r,L.MILLISECOND)}static addBitWidth(e,r){e.addFieldInt32(1,r,32)}static endTime(e){return e.endObject()}static createTime(e,r,i){return t.startTime(e),t.addUnit(e,r),t.addBitWidth(e,i),t.endTime(e)}}});var gn,Uh=f(()=>{fe();ms();gn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsTimestamp(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):L.SECOND}timezone(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.__string(this.bb_pos+r,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,r){e.addFieldInt16(0,r,L.SECOND)}static addTimezone(e,r){e.addFieldOffset(1,r,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,r,i){return t.startTimestamp(e),t.addUnit(e,r),t.addTimezone(e,i),t.endTimestamp(e)}}});var vr,Nh=f(()=>{fe();dh();vr=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUnion(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ke.Sparse}typeIds(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.readInt32(this.bb.__vector(this.bb_pos+r)+e*4):0}typeIdsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){let e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,r){e.addFieldInt16(0,r,ke.Sparse)}static addTypeIds(e,r){e.addFieldOffset(1,r,0)}static createTypeIdsVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addInt32(r[i]);return e.endVector()}static startTypeIdsVector(e,r){e.startVector(4,r,4)}static endUnion(e){return e.endObject()}static createUnion(e,r,i){return t.startUnion(e),t.addMode(e,r),t.addTypeIds(e,i),t.endUnion(e)}}});var As,V0=f(()=>{fe();As=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUtf8(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return t.startUtf8(e),t.endUtf8(e)}}});var Bs,Z0=f(()=>{fe();Bs=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUtf8View(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8View(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8View(e){e.startObject(0)}static endUtf8View(e){return e.endObject()}static createUtf8View(e){return t.startUtf8View(e),t.endUtf8View(e)}}});var ve,Lh=f(()=>{(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.RunEndEncoded=22]="RunEndEncoded",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",t[t.ListView=25]="ListView",t[t.LargeListView=26]="LargeListView"})(ve||(ve={}))});var lt,Ph=f(()=>{fe();Ih();Oo();Lh();lt=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsField(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}name(e){let r=this.bb.__offset(this.bb_pos,4);return r?this.bb.__string(this.bb_pos+r,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):ve.NONE}type(e){let r=this.bb.__offset(this.bb_pos,10);return r?this.bb.__union(e,this.bb_pos+r):null}dictionary(e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new Or).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}children(e,r){let i=this.bb.__offset(this.bb_pos,14);return i?(r||new t).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,16);return i?(r||new Fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,r){e.addFieldOffset(0,r,0)}static addNullable(e,r){e.addFieldInt8(1,+r,0)}static addTypeType(e,r){e.addFieldInt8(2,r,ve.NONE)}static addType(e,r){e.addFieldOffset(3,r,0)}static addDictionary(e,r){e.addFieldOffset(4,r,0)}static addChildren(e,r){e.addFieldOffset(5,r,0)}static createChildrenVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startChildrenVector(e,r){e.startVector(4,r,4)}static addCustomMetadata(e,r){e.addFieldOffset(6,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endField(e){return e.endObject()}}});var $t,Fh=f(()=>{fe();Sh();Ph();Oo();$t=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsSchema(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Mn.Little}fields(e,r){let i=this.bb.__offset(this.bb_pos,6);return i?(r||new lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new Fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let r=this.bb.__offset(this.bb_pos,10);return r?this.bb.readInt64(this.bb.__vector(this.bb_pos+r)+e*8):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,r){e.addFieldInt16(0,r,Mn.Little)}static addFields(e,r){e.addFieldOffset(1,r,0)}static createFieldsVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startFieldsVector(e,r){e.startVector(4,r,4)}static addCustomMetadata(e,r){e.addFieldOffset(2,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static addFeatures(e,r){e.addFieldOffset(3,r,0)}static createFeaturesVector(e,r){e.startVector(8,r.length,8);for(let i=r.length-1;i>=0;i--)e.addInt64(r[i]);return e.endVector()}static startFeaturesVector(e,r){e.startVector(8,r,8)}static endSchema(e){return e.endObject()}static createSchema(e,r,i,n,o){return t.startSchema(e),t.addEndianness(e,r),t.addFields(e,i),t.addCustomMetadata(e,n),t.addFeatures(e,o),t.endSchema(e)}}});var de,Rh=f(()=>{(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(de||(de={}))});var m,Mt,qe=f(()=>{qu();dh();fh();ph();ms();hh();Rh();(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond",t[t.IntervalMonthDayNano=-31]="IntervalMonthDayNano"})(m||(m={}));(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(Mt||(Mt={}))});var jh={};Ue(jh,{valueToString:()=>_r});function _r(t){if(t===null)return"null";if(t===void 0)return"undefined";switch(typeof t){case"number":return`${t}`;case"bigint":return`${t}`;case"string":return`"${t}"`}return typeof t[Symbol.toPrimitive]=="function"?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map(e=>_r(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,r)=>typeof r=="bigint"?`${r}`:r)}var Ts=f(()=>{});function ae(t){if(typeof t=="bigint"&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`);return Number(t)}function Mh(t,e){return ae(t/e)+ae(t%e)/ae(e)}var Ur=f(()=>{});var Zh={};Ue(Zh,{BN:()=>Os,bigNumToBigInt:()=>W0,bigNumToNumber:()=>Vh,bigNumToString:()=>No,isArrowBigNumSymbol:()=>H0});function br(t,...e){return e.length===0?Object.setPrototypeOf(oe(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function Eo(...t){return br.apply(this,t)}function Uo(...t){return br.apply(this,t)}function zs(...t){return br.apply(this,t)}function Vh(t,e){let{buffer:r,byteOffset:i,byteLength:n,signed:o}=t,a=new BigUint64Array(r,i,n/8),s=o&&a.at(-1)&BigInt(1)<<BigInt(63),u=BigInt(0),c=0;if(s){for(let l of a)u|=(l^Pz)*(BigInt(1)<<BigInt(64*c++));u*=BigInt(-1),u-=BigInt(1)}else for(let l of a)u|=l*(BigInt(1)<<BigInt(64*c++));if(typeof e=="number"&&e>0){let l=BigInt("1".padEnd(e+1,"0")),d=u/l,h=s?-(u%l):u%l,p=ae(d),v=`${h}`.padStart(e,"0");return+`${s&&p===0?"-":""}${p}.${v}`}return ae(u)}function No(t){if(t.byteLength===8)return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`;if(!t.signed)return Ch(t);let e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return Ch(t);e=e.slice();let i=1;for(let o=0;o<e.length;o++){let a=e[o],s=~a+i;e[o]=s,i&=a===0?1:0}return`-${Ch(e)}`}function W0(t){return t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:No(t)}function Ch(t){let e="",r=new Uint32Array(2),i=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),n=new Uint32Array((i=new Uint16Array(i).reverse()).buffer),o=-1,a=i.length-1;do{for(r[0]=i[o=0];o<a;)i[o++]=r[1]=r[0]/10,r[0]=(r[0]-r[1]*10<<16)+i[o];i[o]=r[1]=r[0]/10,r[0]=r[0]-r[1]*10,e=`${r[0]}${e}`}while(n[0]||n[1]||n[2]||n[3]);return e??"0"}var H0,Lz,Pz,Os,Hh=f(()=>{Xe();Ur();H0=Symbol.for("isArrowBigNum");br.prototype[H0]=!0;br.prototype.toJSON=function(){return`"${No(this)}"`};br.prototype.valueOf=function(t){return Vh(this,t)};br.prototype.toString=function(){return No(this)};br.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return Vh(this);case"string":return No(this);case"default":return W0(this)}return No(this)};Object.setPrototypeOf(Eo.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Uo.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(zs.prototype,Object.create(Uint32Array.prototype));Object.assign(Eo.prototype,br.prototype,{constructor:Eo,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(Uo.prototype,br.prototype,{constructor:Uo,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(zs.prototype,br.prototype,{constructor:zs,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Lz=BigInt(4294967296)*BigInt(4294967296),Pz=Lz-BigInt(1);Os=class t{static new(e,r){switch(r){case!0:return new Eo(e);case!1:return new Uo(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new Eo(e)}return e.byteLength===16?new zs(e):new Uo(e)}static signed(e){return new Eo(e)}static unsigned(e){return new Uo(e)}static decimal(e){return new zs(e)}constructor(e,r){return t.new(e,r)}}});function Zt(t){let e=t;switch(t.typeId){case m.Decimal:return t.bitWidth/32;case m.Interval:return e.unit===ze.MONTH_DAY_NANO?4:1+e.unit;case m.BinaryView:case m.Utf8View:return 16;case m.FixedSizeList:return e.listSize;case m.FixedSizeBinary:return e.byteWidth;default:return 1}}var J0,G0,K0,Y0,X0,q0,Q0,ex,tx,rx,nx,ix,ox,ax,sx,cx,ux,lx,dx,fx,px,hx,mx,gx,yx,vx,k,dt,We,Ai,Bi,Ct,Ti,zi,Oi,Ei,Ui,Vt,Es,Ni,Li,Nr,re,Lr,Pr,kt,Fr,Rr,jr,Mr,Cr,Vr,Zr,Hr,er,tr,De,rr,Wr,Dt,nr,Fz,At,Se=f(()=>{Ur();qe();vx=Symbol.for("apache-arrow/DataType"),k=class t{static isDataType(e){return e?.[vx]===!0}static isNull(e){return e?.typeId===m.Null}static isInt(e){return e?.typeId===m.Int}static isFloat(e){return e?.typeId===m.Float}static isBinary(e){return e?.typeId===m.Binary}static isBinaryView(e){return e?.typeId===m.BinaryView}static isLargeBinary(e){return e?.typeId===m.LargeBinary}static isUtf8(e){return e?.typeId===m.Utf8}static isUtf8View(e){return e?.typeId===m.Utf8View}static isLargeUtf8(e){return e?.typeId===m.LargeUtf8}static isBool(e){return e?.typeId===m.Bool}static isDecimal(e){return e?.typeId===m.Decimal}static isDate(e){return e?.typeId===m.Date}static isTime(e){return e?.typeId===m.Time}static isTimestamp(e){return e?.typeId===m.Timestamp}static isInterval(e){return e?.typeId===m.Interval}static isDuration(e){return e?.typeId===m.Duration}static isList(e){return e?.typeId===m.List}static isLargeList(e){return e?.typeId===m.LargeList}static isStruct(e){return e?.typeId===m.Struct}static isUnion(e){return e?.typeId===m.Union}static isFixedSizeBinary(e){return e?.typeId===m.FixedSizeBinary}static isFixedSizeList(e){return e?.typeId===m.FixedSizeList}static isMap(e){return e?.typeId===m.Map}static isDictionary(e){return e?.typeId===m.Dictionary}static isDenseUnion(e){return t.isUnion(e)&&e.mode===ke.Dense}static isSparseUnion(e){return t.isUnion(e)&&e.mode===ke.Sparse}constructor(e){this.typeId=e}};J0=Symbol.toStringTag;k[J0]=(t=>(t.children=null,t.ArrayType=Array,t.OffsetArrayType=Int32Array,t[vx]=!0,t[Symbol.toStringTag]="DataType"))(k.prototype);dt=class extends k{constructor(){super(m.Null)}toString(){return"Null"}};G0=Symbol.toStringTag;dt[G0]=(t=>t[Symbol.toStringTag]="Null")(dt.prototype);We=class extends k{constructor(e,r){super(m.Int),this.isSigned=e,this.bitWidth=r}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};K0=Symbol.toStringTag;We[K0]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(We.prototype);Ai=class extends We{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},Bi=class extends We{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},Ct=class extends We{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},Ti=class extends We{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},zi=class extends We{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Oi=class extends We{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Ei=class extends We{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Ui=class extends We{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Ai.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(Bi.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(Ct.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(Ti.prototype,"ArrayType",{value:BigInt64Array});Object.defineProperty(zi.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(Oi.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Ei.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Ui.prototype,"ArrayType",{value:BigUint64Array});Vt=class extends k{constructor(e){super(m.Float),this.precision=e}get ArrayType(){switch(this.precision){case xe.HALF:return Uint16Array;case xe.SINGLE:return Float32Array;case xe.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};Y0=Symbol.toStringTag;Vt[Y0]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(Vt.prototype);Es=class extends Vt{constructor(){super(xe.HALF)}},Ni=class extends Vt{constructor(){super(xe.SINGLE)}},Li=class extends Vt{constructor(){super(xe.DOUBLE)}};Object.defineProperty(Es.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Ni.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(Li.prototype,"ArrayType",{value:Float64Array});Nr=class extends k{constructor(){super(m.Binary)}toString(){return"Binary"}};X0=Symbol.toStringTag;Nr[X0]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Nr.prototype);re=class extends k{constructor(){super(m.BinaryView)}toString(){return"BinaryView"}};q0=Symbol.toStringTag;re.ELEMENT_WIDTH=16;re.INLINE_CAPACITY=12;re.LENGTH_OFFSET=0;re.INLINE_OFFSET=4;re.BUFFER_INDEX_OFFSET=8;re.BUFFER_OFFSET_OFFSET=12;re[q0]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="BinaryView"))(re.prototype);Lr=class extends k{constructor(){super(m.LargeBinary)}toString(){return"LargeBinary"}};Q0=Symbol.toStringTag;Lr[Q0]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(Lr.prototype);Pr=class extends k{constructor(){super(m.Utf8)}toString(){return"Utf8"}};ex=Symbol.toStringTag;Pr[ex]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(Pr.prototype);kt=class extends k{constructor(){super(m.Utf8View)}toString(){return"Utf8View"}};tx=Symbol.toStringTag;kt.ELEMENT_WIDTH=re.ELEMENT_WIDTH;kt.INLINE_CAPACITY=re.INLINE_CAPACITY;kt[tx]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8View"))(kt.prototype);Fr=class extends k{constructor(){super(m.LargeUtf8)}toString(){return"LargeUtf8"}};rx=Symbol.toStringTag;Fr[rx]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(Fr.prototype);Rr=class extends k{constructor(){super(m.Bool)}toString(){return"Bool"}};nx=Symbol.toStringTag;Rr[nx]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Rr.prototype);jr=class extends k{constructor(e,r,i=128){super(m.Decimal),this.scale=e,this.precision=r,this.bitWidth=i}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};ix=Symbol.toStringTag;jr[ix]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(jr.prototype);Mr=class extends k{constructor(e){super(m.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Ze[this.unit]}>`}get ArrayType(){return this.unit===Ze.DAY?Int32Array:BigInt64Array}};ox=Symbol.toStringTag;Mr[ox]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(Mr.prototype);Cr=class extends k{constructor(e,r){super(m.Time),this.unit=e,this.bitWidth=r}toString(){return`Time${this.bitWidth}<${L[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};ax=Symbol.toStringTag;Cr[ax]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(Cr.prototype);Vr=class extends k{constructor(e,r){super(m.Timestamp),this.unit=e,this.timezone=r}toString(){return`Timestamp<${L[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};sx=Symbol.toStringTag;Vr[sx]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(Vr.prototype);Zr=class extends k{constructor(e){super(m.Interval),this.unit=e}toString(){return`Interval<${ze[this.unit]}>`}};cx=Symbol.toStringTag;Zr[cx]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(Zr.prototype);Hr=class extends k{constructor(e){super(m.Duration),this.unit=e}toString(){return`Duration<${L[this.unit]}>`}};ux=Symbol.toStringTag;Hr[ux]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(Hr.prototype);er=class extends k{constructor(e){super(m.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};lx=Symbol.toStringTag;er[lx]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(er.prototype);tr=class extends k{constructor(e){super(m.LargeList),this.children=[e]}toString(){return`LargeList<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};dx=Symbol.toStringTag;tr[dx]=(t=>(t.children=null,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeList"))(tr.prototype);De=class extends k{constructor(e){super(m.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};fx=Symbol.toStringTag;De[fx]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(De.prototype);rr=class extends k{constructor(e,r,i){super(m.Union),this.mode=e,this.children=i,this.typeIds=r=Int32Array.from(r),this.typeIdToChildIndex=r.reduce((n,o,a)=>(n[o]=a)&&n||n,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}};px=Symbol.toStringTag;rr[px]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(rr.prototype);Wr=class extends k{constructor(e){super(m.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};hx=Symbol.toStringTag;Wr[hx]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Wr.prototype);Dt=class extends k{constructor(e,r){super(m.FixedSizeList),this.listSize=e,this.children=[r]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};mx=Symbol.toStringTag;Dt[mx]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(Dt.prototype);nr=class extends k{constructor(e,r=!1){var i,n,o;if(super(m.Map),this.children=[e],this.keysSorted=r,e&&(e.name="entries",!((i=e?.type)===null||i===void 0)&&i.children)){let a=(n=e?.type)===null||n===void 0?void 0:n.children[0];a&&(a.name="key");let s=(o=e?.type)===null||o===void 0?void 0:o.children[1];s&&(s.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};gx=Symbol.toStringTag;nr[gx]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(nr.prototype);Fz=(t=>()=>++t)(-1),At=class extends k{constructor(e,r,i,n){super(m.Dictionary),this.indices=r,this.dictionary=e,this.isOrdered=n||!1,this.id=i==null?Fz():ae(i)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};yx=Symbol.toStringTag;At[yx]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(At.prototype)});function jz(t,e,r=!0){return typeof e=="number"?Lo(t,e,r):typeof e=="string"&&e in m?Lo(t,m[e],r):e&&e instanceof k?Lo(t,_x(e),r):e?.type&&e.type instanceof k?Lo(t,_x(e.type),r):Lo(t,m.NONE,r)}function Lo(t,e,r=!0){let i=null;switch(e){case m.Null:i=t.visitNull;break;case m.Bool:i=t.visitBool;break;case m.Int:i=t.visitInt;break;case m.Int8:i=t.visitInt8||t.visitInt;break;case m.Int16:i=t.visitInt16||t.visitInt;break;case m.Int32:i=t.visitInt32||t.visitInt;break;case m.Int64:i=t.visitInt64||t.visitInt;break;case m.Uint8:i=t.visitUint8||t.visitInt;break;case m.Uint16:i=t.visitUint16||t.visitInt;break;case m.Uint32:i=t.visitUint32||t.visitInt;break;case m.Uint64:i=t.visitUint64||t.visitInt;break;case m.Float:i=t.visitFloat;break;case m.Float16:i=t.visitFloat16||t.visitFloat;break;case m.Float32:i=t.visitFloat32||t.visitFloat;break;case m.Float64:i=t.visitFloat64||t.visitFloat;break;case m.Utf8:i=t.visitUtf8;break;case m.LargeUtf8:i=t.visitLargeUtf8;break;case m.Utf8View:i=t.visitUtf8View||t.visitUtf8;break;case m.Binary:i=t.visitBinary;break;case m.LargeBinary:i=t.visitLargeBinary;break;case m.BinaryView:i=t.visitBinaryView||t.visitBinary;break;case m.FixedSizeBinary:i=t.visitFixedSizeBinary;break;case m.Date:i=t.visitDate;break;case m.DateDay:i=t.visitDateDay||t.visitDate;break;case m.DateMillisecond:i=t.visitDateMillisecond||t.visitDate;break;case m.Timestamp:i=t.visitTimestamp;break;case m.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp;break;case m.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp;break;case m.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp;break;case m.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp;break;case m.Time:i=t.visitTime;break;case m.TimeSecond:i=t.visitTimeSecond||t.visitTime;break;case m.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime;break;case m.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime;break;case m.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime;break;case m.Decimal:i=t.visitDecimal;break;case m.List:i=t.visitList;break;case m.LargeList:i=t.visitLargeList;break;case m.Struct:i=t.visitStruct;break;case m.Union:i=t.visitUnion;break;case m.DenseUnion:i=t.visitDenseUnion||t.visitUnion;break;case m.SparseUnion:i=t.visitSparseUnion||t.visitUnion;break;case m.Dictionary:i=t.visitDictionary;break;case m.Interval:i=t.visitInterval;break;case m.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval;break;case m.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval;break;case m.IntervalMonthDayNano:i=t.visitIntervalMonthDayNano||t.visitInterval;break;case m.Duration:i=t.visitDuration;break;case m.DurationSecond:i=t.visitDurationSecond||t.visitDuration;break;case m.DurationMillisecond:i=t.visitDurationMillisecond||t.visitDuration;break;case m.DurationMicrosecond:i=t.visitDurationMicrosecond||t.visitDuration;break;case m.DurationNanosecond:i=t.visitDurationNanosecond||t.visitDuration;break;case m.FixedSizeList:i=t.visitFixedSizeList;break;case m.Map:i=t.visitMap;break}if(typeof i=="function")return i;if(!r)return()=>null;throw new Error(`Unrecognized type '${m[e]}'`)}function _x(t){switch(t.typeId){case m.Null:return m.Null;case m.Int:{let{bitWidth:e,isSigned:r}=t;switch(e){case 8:return r?m.Int8:m.Uint8;case 16:return r?m.Int16:m.Uint16;case 32:return r?m.Int32:m.Uint32;case 64:return r?m.Int64:m.Uint64}return m.Int}case m.Float:switch(t.precision){case xe.HALF:return m.Float16;case xe.SINGLE:return m.Float32;case xe.DOUBLE:return m.Float64}return m.Float;case m.Binary:return m.Binary;case m.LargeBinary:return m.LargeBinary;case m.BinaryView:return m.BinaryView;case m.Utf8:return m.Utf8;case m.LargeUtf8:return m.LargeUtf8;case m.Utf8View:return m.Utf8View;case m.Bool:return m.Bool;case m.Decimal:return m.Decimal;case m.Time:switch(t.unit){case L.SECOND:return m.TimeSecond;case L.MILLISECOND:return m.TimeMillisecond;case L.MICROSECOND:return m.TimeMicrosecond;case L.NANOSECOND:return m.TimeNanosecond}return m.Time;case m.Timestamp:switch(t.unit){case L.SECOND:return m.TimestampSecond;case L.MILLISECOND:return m.TimestampMillisecond;case L.MICROSECOND:return m.TimestampMicrosecond;case L.NANOSECOND:return m.TimestampNanosecond}return m.Timestamp;case m.Date:switch(t.unit){case Ze.DAY:return m.DateDay;case Ze.MILLISECOND:return m.DateMillisecond}return m.Date;case m.Interval:switch(t.unit){case ze.DAY_TIME:return m.IntervalDayTime;case ze.YEAR_MONTH:return m.IntervalYearMonth;case ze.MONTH_DAY_NANO:return m.IntervalMonthDayNano}return m.Interval;case m.Duration:switch(t.unit){case L.SECOND:return m.DurationSecond;case L.MILLISECOND:return m.DurationMillisecond;case L.MICROSECOND:return m.DurationMicrosecond;case L.NANOSECOND:return m.DurationNanosecond}return m.Duration;case m.Map:return m.Map;case m.List:return m.List;case m.LargeList:return m.LargeList;case m.Struct:return m.Struct;case m.Union:switch(t.mode){case ke.Dense:return m.DenseUnion;case ke.Sparse:return m.SparseUnion}return m.Union;case m.FixedSizeBinary:return m.FixedSizeBinary;case m.FixedSizeList:return m.FixedSizeList;case m.Dictionary:return m.Dictionary}throw new Error(`Unrecognized type '${m[t.typeId]}'`)}var W,wr=f(()=>{qe();Se();W=class{visitMany(e,...r){return e.map((i,n)=>this.visit(i,...r.map(o=>o[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,r=!0){return jz(this,e,r)}getVisitFnByTypeId(e,r=!0){return Lo(this,e,r)}visitNull(e,...r){return null}visitBool(e,...r){return null}visitInt(e,...r){return null}visitFloat(e,...r){return null}visitUtf8(e,...r){return null}visitLargeUtf8(e,...r){return null}visitUtf8View(e,...r){return null}visitBinary(e,...r){return null}visitLargeBinary(e,...r){return null}visitBinaryView(e,...r){return null}visitFixedSizeBinary(e,...r){return null}visitDate(e,...r){return null}visitTimestamp(e,...r){return null}visitTime(e,...r){return null}visitDecimal(e,...r){return null}visitList(e,...r){return null}visitLargeList(e,...r){return null}visitStruct(e,...r){return null}visitUnion(e,...r){return null}visitDictionary(e,...r){return null}visitInterval(e,...r){return null}visitDuration(e,...r){return null}visitFixedSizeList(e,...r){return null}visitMap(e,...r){return null}};W.prototype.visitInt8=null;W.prototype.visitInt16=null;W.prototype.visitInt32=null;W.prototype.visitInt64=null;W.prototype.visitUint8=null;W.prototype.visitUint16=null;W.prototype.visitUint32=null;W.prototype.visitUint64=null;W.prototype.visitFloat16=null;W.prototype.visitFloat32=null;W.prototype.visitFloat64=null;W.prototype.visitDateDay=null;W.prototype.visitDateMillisecond=null;W.prototype.visitTimestampSecond=null;W.prototype.visitTimestampMillisecond=null;W.prototype.visitTimestampMicrosecond=null;W.prototype.visitTimestampNanosecond=null;W.prototype.visitTimeSecond=null;W.prototype.visitTimeMillisecond=null;W.prototype.visitTimeMicrosecond=null;W.prototype.visitTimeNanosecond=null;W.prototype.visitDenseUnion=null;W.prototype.visitSparseUnion=null;W.prototype.visitIntervalDayTime=null;W.prototype.visitIntervalYearMonth=null;W.prototype.visitIntervalMonthDayNano=null;W.prototype.visitDuration=null;W.prototype.visitDurationSecond=null;W.prototype.visitDurationMillisecond=null;W.prototype.visitDurationMicrosecond=null;W.prototype.visitDurationNanosecond=null});var Wh={};Ue(Wh,{float64ToUint16:()=>Us,uint16ToFloat64:()=>il});function il(t){let e=(t&31744)>>10,r=(t&1023)/1024,i=Math.pow(-1,(t&32768)>>15);switch(e){case 31:return i*(r?Number.NaN:1/0);case 0:return i*(r?6103515625e-14*r:0)}return i*Math.pow(2,e-15)*(1+r)}function Us(t){if(t!==t)return 32256;bx[0]=t;let e=(Po[1]&2147483648)>>16&65535,r=Po[1]&2146435072,i=0;return r>=1089470464?Po[0]>0?r=31744:(r=(r&2080374784)>>16,i=(Po[1]&1048575)>>10):r<=1056964608?(i=1048576+(Po[1]&1048575),i=1048576+(i<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,i=(Po[1]&1048575)+512>>10),e|r|i&65535}var bx,Po,Ns=f(()=>{bx=new Float64Array(1),Po=new Uint32Array(bx.buffer)});function K(t){return(e,r,i)=>{if(e.setValid(r,i!=null))return t(e,r,i)}}var V,Mz,wx,Cz,yn,Jh,xx,Vz,ol,al,Gh,Sx,Zz,Ix,Hz,$x,Wz,Kh,sl,cl,ul,ll,Yh,dl,fl,pl,hl,Xh,qh,kx,Jz,Gz,Kz,Yz,Xz,qz,Qz,Dx,Ax,eO,Qh,ml,gl,yl,vl,_l,bl,wl,em,tO,ot,Ht=f(()=>{Bt();wr();Ur();fn();Ns();qe();Se();V=class extends W{};Mz=(t,e,r)=>{t[e]=Math.floor(r/864e5)},wx=(t,e,r,i)=>{if(r+1<e.length){let n=ae(e[r]),o=ae(e[r+1]);t.set(i.subarray(0,o-n),n)}},Cz=({offset:t,values:e},r,i)=>{let n=t+r;i?e[n>>3]|=1<<n%8:e[n>>3]&=~(1<<n%8)},yn=({values:t},e,r)=>{t[e]=r},Jh=({values:t},e,r)=>{t[e]=r},xx=({values:t},e,r)=>{t[e]=Us(r)},Vz=(t,e,r)=>{switch(t.type.precision){case xe.HALF:return xx(t,e,r);case xe.SINGLE:case xe.DOUBLE:return Jh(t,e,r)}},ol=({values:t},e,r)=>{Mz(t,e,r.valueOf())},al=({values:t},e,r)=>{t[e]=BigInt(r)},Gh=({stride:t,values:e},r,i)=>{e.set(i.subarray(0,t),t*r)},Sx=({values:t,valueOffsets:e},r,i)=>wx(t,e,r,i),Zz=t=>{let e=t.variadicBuffers;return(!Array.isArray(e)||Object.isFrozen(e))&&(e=Array.from(e),t.variadicBuffers=e),e},Ix=(t,e,r)=>{var i,n,o,a;let s=t.values;if(!s)throw new Error("BinaryView data is missing view buffer");let u=re.ELEMENT_WIDTH,c=e*u,l=c+u;if(c<0||l>s.length)throw new RangeError(`BinaryView index ${e} out of bounds`);s.fill(0,c,l);let d=new DataView(s.buffer,s.byteOffset+c,u),h=r.length;if(d.setInt32(re.LENGTH_OFFSET,h,!0),h<=re.INLINE_CAPACITY){s.set(r,c+re.INLINE_OFFSET);return}let p=((i=r[0])!==null&&i!==void 0?i:0)|((n=r[1])!==null&&n!==void 0?n:0)<<8|((o=r[2])!==null&&o!==void 0?o:0)<<16|((a=r[3])!==null&&a!==void 0?a:0)<<24;d.setUint32(re.INLINE_OFFSET,p>>>0,!0);let v=Zz(t),_=r.slice(),$=v.push(_)-1;d.setInt32(re.BUFFER_INDEX_OFFSET,$,!0),d.setInt32(re.BUFFER_OFFSET_OFFSET,0,!0)},Hz=(t,e,r)=>{let i=r instanceof Uint8Array?r:new Uint8Array(r);Ix(t,e,i)},$x=({values:t,valueOffsets:e},r,i)=>wx(t,e,r,Rt(i)),Wz=(t,e,r)=>{let i=Rt(r);Ix(t,e,i)},Kh=(t,e,r)=>{t.type.unit===Ze.DAY?ol(t,e,r):al(t,e,r)},sl=({values:t},e,r)=>{t[e]=BigInt(r/1e3)},cl=({values:t},e,r)=>{t[e]=BigInt(r)},ul=({values:t},e,r)=>{t[e]=BigInt(r*1e3)},ll=({values:t},e,r)=>{t[e]=BigInt(r*1e6)},Yh=(t,e,r)=>{switch(t.type.unit){case L.SECOND:return sl(t,e,r);case L.MILLISECOND:return cl(t,e,r);case L.MICROSECOND:return ul(t,e,r);case L.NANOSECOND:return ll(t,e,r)}},dl=({values:t},e,r)=>{t[e]=r},fl=({values:t},e,r)=>{t[e]=r},pl=({values:t},e,r)=>{t[e]=r},hl=({values:t},e,r)=>{t[e]=r},Xh=(t,e,r)=>{switch(t.type.unit){case L.SECOND:return dl(t,e,r);case L.MILLISECOND:return fl(t,e,r);case L.MICROSECOND:return pl(t,e,r);case L.NANOSECOND:return hl(t,e,r)}},qh=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},kx=(t,e,r)=>{let i=t.children[0],n=t.valueOffsets,o=ot.getVisitFn(i),a=ae(n[e]),s=ae(n[e+1]);if(Array.isArray(r))for(let u=-1,c=a;c<s;)o(i,c++,r[++u]);else for(let u=-1,c=a;c<s;)o(i,c++,r.get(++u))},Jz=(t,e,r)=>{let i=t.children[0],{valueOffsets:n}=t,o=ot.getVisitFn(i),{[e]:a,[e+1]:s}=n,u=r instanceof Map?r.entries():Object.entries(r);for(let c of u)if(o(i,a,c),++a>=s)break},Gz=(t,e)=>(r,i,n,o)=>i&&r(i,t,e[o]),Kz=(t,e)=>(r,i,n,o)=>i&&r(i,t,e.get(o)),Yz=(t,e)=>(r,i,n,o)=>i&&r(i,t,e.get(n.name)),Xz=(t,e)=>(r,i,n,o)=>i&&r(i,t,e[n.name]),qz=(t,e,r)=>{let i=t.type.children.map(o=>ot.getVisitFn(o.type)),n=r instanceof Map?Yz(e,r):r instanceof N?Kz(e,r):Array.isArray(r)?Gz(e,r):Xz(e,r);t.type.children.forEach((o,a)=>n(i[a],t.children[a],o,a))},Qz=(t,e,r)=>{t.type.mode===ke.Dense?Dx(t,e,r):Ax(t,e,r)},Dx=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];ot.visit(n,t.valueOffsets[e],r)},Ax=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];ot.visit(n,e,r)},eO=(t,e,r)=>{var i;(i=t.dictionary)===null||i===void 0||i.set(t.values[e],r)},Qh=(t,e,r)=>{switch(t.type.unit){case ze.YEAR_MONTH:return gl(t,e,r);case ze.DAY_TIME:return ml(t,e,r);case ze.MONTH_DAY_NANO:return yl(t,e,r)}},ml=({values:t},e,r)=>{t.set(r.subarray(0,2),2*e)},gl=({values:t},e,r)=>{t[e]=r[0]*12+r[1]%12},yl=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},vl=({values:t},e,r)=>{t[e]=r},_l=({values:t},e,r)=>{t[e]=r},bl=({values:t},e,r)=>{t[e]=r},wl=({values:t},e,r)=>{t[e]=r},em=(t,e,r)=>{switch(t.type.unit){case L.SECOND:return vl(t,e,r);case L.MILLISECOND:return _l(t,e,r);case L.MICROSECOND:return bl(t,e,r);case L.NANOSECOND:return wl(t,e,r)}},tO=(t,e,r)=>{let{stride:i}=t,n=t.children[0],o=ot.getVisitFn(n);if(Array.isArray(r))for(let a=-1,s=e*i;++a<i;)o(n,s+a,r[a]);else for(let a=-1,s=e*i;++a<i;)o(n,s+a,r.get(a))};V.prototype.visitBool=K(Cz);V.prototype.visitInt=K(yn);V.prototype.visitInt8=K(yn);V.prototype.visitInt16=K(yn);V.prototype.visitInt32=K(yn);V.prototype.visitInt64=K(yn);V.prototype.visitUint8=K(yn);V.prototype.visitUint16=K(yn);V.prototype.visitUint32=K(yn);V.prototype.visitUint64=K(yn);V.prototype.visitFloat=K(Vz);V.prototype.visitFloat16=K(xx);V.prototype.visitFloat32=K(Jh);V.prototype.visitFloat64=K(Jh);V.prototype.visitUtf8=K($x);V.prototype.visitLargeUtf8=K($x);V.prototype.visitUtf8View=K(Wz);V.prototype.visitBinary=K(Sx);V.prototype.visitLargeBinary=K(Sx);V.prototype.visitBinaryView=K(Hz);V.prototype.visitFixedSizeBinary=K(Gh);V.prototype.visitDate=K(Kh);V.prototype.visitDateDay=K(ol);V.prototype.visitDateMillisecond=K(al);V.prototype.visitTimestamp=K(Yh);V.prototype.visitTimestampSecond=K(sl);V.prototype.visitTimestampMillisecond=K(cl);V.prototype.visitTimestampMicrosecond=K(ul);V.prototype.visitTimestampNanosecond=K(ll);V.prototype.visitTime=K(Xh);V.prototype.visitTimeSecond=K(dl);V.prototype.visitTimeMillisecond=K(fl);V.prototype.visitTimeMicrosecond=K(pl);V.prototype.visitTimeNanosecond=K(hl);V.prototype.visitDecimal=K(qh);V.prototype.visitList=K(kx);V.prototype.visitLargeList=K(kx);V.prototype.visitStruct=K(qz);V.prototype.visitUnion=K(Qz);V.prototype.visitDenseUnion=K(Dx);V.prototype.visitSparseUnion=K(Ax);V.prototype.visitDictionary=K(eO);V.prototype.visitInterval=K(Qh);V.prototype.visitIntervalDayTime=K(ml);V.prototype.visitIntervalYearMonth=K(gl);V.prototype.visitIntervalMonthDayNano=K(yl);V.prototype.visitDuration=K(em);V.prototype.visitDurationSecond=K(vl);V.prototype.visitDurationMillisecond=K(_l);V.prototype.visitDurationMicrosecond=K(bl);V.prototype.visitDurationNanosecond=K(wl);V.prototype.visitFixedSizeList=K(tO);V.prototype.visitMap=K(Jz);ot=new V});var xr,Fo,Kn,tm,rm,rO,nm=f(()=>{Ts();Pi();Ht();xr=Symbol.for("parent"),Fo=Symbol.for("rowIndex"),Kn=class{constructor(e,r){return this[xr]=e,this[Fo]=r,new Proxy(this,rO)}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Fo],r=this[xr],i=r.type.children,n={};for(let o=-1,a=i.length;++o<a;)n[i[o].name]=Je.visit(r.children[o],e);return n}toString(){return`{${[...this].map(([e,r])=>`${_r(e)}: ${_r(r)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new tm(this[xr],this[Fo])}},tm=class{constructor(e,r){this.childIndex=0,this.children=e.children,this.rowIndex=r,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,Je.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}};Object.defineProperties(Kn.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[xr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Fo]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});rm=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[xr].type.children.map(r=>r.name)}has(e,r){return e[xr].type.children.some(i=>i.name===r)}getOwnPropertyDescriptor(e,r){if(e[xr].type.children.some(i=>i.name===r))return{writable:!0,enumerable:!0,configurable:!0}}get(e,r){if(Reflect.has(e,r))return e[r];let i=e[xr].type.children.findIndex(n=>n.name===r);if(i!==-1){let n=Je.visit(e[xr].children[i],e[Fo]);return Reflect.set(e,r,n),n}}set(e,r,i){let n=e[xr].type.children.findIndex(o=>o.name===r);return n!==-1?(ot.visit(e[xr].children[n],e[Fo],i),Reflect.set(e,r,i)):Reflect.has(e,r)||typeof r=="symbol"?Reflect.set(e,r,i):!1}},rO=new rm});function J(t){return(e,r)=>e.getValid(r)?t(e,r):null}var R,nO,Ro,iO,oO,Bx,aO,Tx,zx,Yn,sO,Ox,cO,Ex,Ux,uO,Nx,lO,dO,fO,pO,Lx,Px,Fx,Rx,hO,jx,Mx,Cx,Vx,mO,gO,Zx,yO,vO,_O,Hx,Wx,bO,wO,Jx,Gx,Kx,Yx,Xx,qx,Qx,xO,SO,Je,Pi=f(()=>{Hh();Bt();wr();xl();nm();Ur();fn();Ns();qe();R=class extends W{};nO=(t,e)=>864e5*t[e],Ro=16,iO=12,oO=(t,e)=>null,Bx=(t,e,r)=>{if(r+1>=e.length)return null;let i=ae(e[r]),n=ae(e[r+1]);return t.subarray(i,n)},aO=({offset:t,values:e},r)=>{let i=t+r;return(e[i>>3]&1<<i%8)!==0},Tx=({values:t},e)=>nO(t,e),zx=({values:t},e)=>ae(t[e]),Yn=({stride:t,values:e},r)=>e[t*r],sO=({stride:t,values:e},r)=>il(e[t*r]),Ox=({values:t},e)=>t[e],cO=({stride:t,values:e},r)=>e.subarray(t*r,t*(r+1)),Ex=({values:t,valueOffsets:e},r)=>Bx(t,e,r),Ux=(t,e)=>{var r;let i=t.values;if(!i)throw new Error("BinaryView data is missing view buffer");let n=e*Ro,o=n+Ro;if(n<0||o>i.length)throw new Error(`BinaryView data buffer is too short: expected ${Ro} bytes, got ${Math.max(0,i.length-n)}`);let a=i.subarray(n,o);if(a.length<Ro)throw new Error(`BinaryView data buffer is too short: expected ${Ro} bytes, got ${a.length}`);let s=new DataView(i.buffer,a.byteOffset,Ro),u=s.getInt32(0,!0);if(u<=0)return new Uint8Array(0);if(u<=iO)return a.subarray(4,4+u);let c=s.getInt32(8,!0),l=s.getInt32(12,!0),d=(r=t.variadicBuffers)===null||r===void 0?void 0:r[c];if(!d)throw new Error(`BinaryView variadic buffer ${c} is missing`);return d.subarray(l,l+u)},uO=(t,e)=>Ux(t,e),Nx=({values:t,valueOffsets:e},r)=>{let i=Bx(t,e,r);return i!==null?Ao(i):null},lO=(t,e)=>{let r=Ux(t,e);return Ao(r)},dO=({values:t},e)=>t[e],fO=({type:t,values:e},r)=>t.precision!==xe.HALF?e[r]:il(e[r]),pO=(t,e)=>t.type.unit===Ze.DAY?Tx(t,e):zx(t,e),Lx=({values:t},e)=>1e3*ae(t[e]),Px=({values:t},e)=>ae(t[e]),Fx=({values:t},e)=>Mh(t[e],BigInt(1e3)),Rx=({values:t},e)=>Mh(t[e],BigInt(1e6)),hO=(t,e)=>{switch(t.type.unit){case L.SECOND:return Lx(t,e);case L.MILLISECOND:return Px(t,e);case L.MICROSECOND:return Fx(t,e);case L.NANOSECOND:return Rx(t,e)}},jx=({values:t},e)=>t[e],Mx=({values:t},e)=>t[e],Cx=({values:t},e)=>t[e],Vx=({values:t},e)=>t[e],mO=(t,e)=>{switch(t.type.unit){case L.SECOND:return jx(t,e);case L.MILLISECOND:return Mx(t,e);case L.MICROSECOND:return Cx(t,e);case L.NANOSECOND:return Vx(t,e)}},gO=({values:t,stride:e},r)=>Os.decimal(t.subarray(e*r,e*(r+1))),Zx=(t,e)=>{let{valueOffsets:r,stride:i,children:n}=t,o=ae(r[e*i]),a=ae(r[e*i+1]),u=n[0].slice(o,a-o);return new N([u])},yO=(t,e)=>{let{valueOffsets:r,children:i}=t,{[e]:n,[e+1]:o}=r,a=i[0];return new Jr(a.slice(n,o-n))},vO=(t,e)=>new Kn(t,e),_O=(t,e)=>t.type.mode===ke.Dense?Hx(t,e):Wx(t,e),Hx=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return Je.visit(i,t.valueOffsets[e])},Wx=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return Je.visit(i,e)},bO=(t,e)=>{var r;return(r=t.dictionary)===null||r===void 0?void 0:r.get(t.values[e])},wO=(t,e)=>t.type.unit===ze.MONTH_DAY_NANO?Kx(t,e):t.type.unit===ze.DAY_TIME?Jx(t,e):Gx(t,e),Jx=({values:t},e)=>t.subarray(2*e,2*(e+1)),Gx=({values:t},e)=>{let r=t[e],i=new Int32Array(2);return i[0]=Math.trunc(r/12),i[1]=Math.trunc(r%12),i},Kx=({values:t},e)=>t.subarray(4*e,4*(e+1)),Yx=({values:t},e)=>t[e],Xx=({values:t},e)=>t[e],qx=({values:t},e)=>t[e],Qx=({values:t},e)=>t[e],xO=(t,e)=>{switch(t.type.unit){case L.SECOND:return Yx(t,e);case L.MILLISECOND:return Xx(t,e);case L.MICROSECOND:return qx(t,e);case L.NANOSECOND:return Qx(t,e)}},SO=(t,e)=>{let{stride:r,children:i}=t,o=i[0].slice(e*r,r);return new N([o])};R.prototype.visitNull=J(oO);R.prototype.visitBool=J(aO);R.prototype.visitInt=J(dO);R.prototype.visitInt8=J(Yn);R.prototype.visitInt16=J(Yn);R.prototype.visitInt32=J(Yn);R.prototype.visitInt64=J(Ox);R.prototype.visitUint8=J(Yn);R.prototype.visitUint16=J(Yn);R.prototype.visitUint32=J(Yn);R.prototype.visitUint64=J(Ox);R.prototype.visitFloat=J(fO);R.prototype.visitFloat16=J(sO);R.prototype.visitFloat32=J(Yn);R.prototype.visitFloat64=J(Yn);R.prototype.visitUtf8=J(Nx);R.prototype.visitLargeUtf8=J(Nx);R.prototype.visitUtf8View=J(lO);R.prototype.visitBinary=J(Ex);R.prototype.visitLargeBinary=J(Ex);R.prototype.visitBinaryView=J(uO);R.prototype.visitFixedSizeBinary=J(cO);R.prototype.visitDate=J(pO);R.prototype.visitDateDay=J(Tx);R.prototype.visitDateMillisecond=J(zx);R.prototype.visitTimestamp=J(hO);R.prototype.visitTimestampSecond=J(Lx);R.prototype.visitTimestampMillisecond=J(Px);R.prototype.visitTimestampMicrosecond=J(Fx);R.prototype.visitTimestampNanosecond=J(Rx);R.prototype.visitTime=J(mO);R.prototype.visitTimeSecond=J(jx);R.prototype.visitTimeMillisecond=J(Mx);R.prototype.visitTimeMicrosecond=J(Cx);R.prototype.visitTimeNanosecond=J(Vx);R.prototype.visitDecimal=J(gO);R.prototype.visitList=J(Zx);R.prototype.visitLargeList=J(Zx);R.prototype.visitStruct=J(vO);R.prototype.visitUnion=J(_O);R.prototype.visitDenseUnion=J(Hx);R.prototype.visitSparseUnion=J(Wx);R.prototype.visitDictionary=J(bO);R.prototype.visitInterval=J(wO);R.prototype.visitIntervalDayTime=J(Jx);R.prototype.visitIntervalYearMonth=J(Gx);R.prototype.visitIntervalMonthDayNano=J(Kx);R.prototype.visitDuration=J(xO);R.prototype.visitDurationSecond=J(Yx);R.prototype.visitDurationMillisecond=J(Xx);R.prototype.visitDurationMicrosecond=J(qx);R.prototype.visitDurationNanosecond=J(Qx);R.prototype.visitFixedSizeList=J(SO);R.prototype.visitMap=J(yO);Je=new R});var Xn,Mo,jo,im,Jr,om,am,xl=f(()=>{Bt();Ts();Pi();Ht();Xn=Symbol.for("keys"),Mo=Symbol.for("vals"),jo=Symbol.for("kKeysAsStrings"),im=Symbol.for("_kKeysAsStrings"),Jr=class{constructor(e){return this[Xn]=new N([e.children[0]]).memoize(),this[Mo]=e.children[1],new Proxy(this,new am)}get[jo](){return this[im]||(this[im]=Array.from(this[Xn].toArray(),String))}[Symbol.iterator](){return new om(this[Xn],this[Mo])}get size(){return this[Xn].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Xn],r=this[Mo],i={};for(let n=-1,o=e.length;++n<o;)i[e.get(n)]=Je.visit(r,n);return i}toString(){return`{${[...this].map(([e,r])=>`${_r(e)}: ${_r(r)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},om=class{constructor(e,r){this.keys=e,this.vals=r,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Je.visit(this.vals,e)]})}},am=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[jo]}has(e,r){return e[jo].includes(r)}getOwnPropertyDescriptor(e,r){if(e[jo].indexOf(r)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,r){if(Reflect.has(e,r))return e[r];let i=e[jo].indexOf(r);if(i!==-1){let n=Je.visit(Reflect.get(e,Mo),i);return Reflect.set(e,r,n),n}}set(e,r,i){let n=e[jo].indexOf(r);return n!==-1?(ot.visit(Reflect.get(e,Mo),n,i),Reflect.set(e,r,i)):Reflect.has(e,r)?Reflect.set(e,r,i):!1}};Object.defineProperties(Jr.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Xn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Mo]:{writable:!0,enumerable:!1,configurable:!1,value:null},[im]:{writable:!0,enumerable:!1,configurable:!1,value:null}})});var sm={};Ue(sm,{clampRange:()=>Ls,createElementComparator:()=>qn,wrapIndex:()=>Fi});function Ls(t,e,r,i){let{length:n=0}=t,o=typeof e!="number"?0:e,a=typeof r!="number"?n:r;return o<0&&(o=(o%n+n)%n),a<0&&(a=(a%n+n)%n),a<o&&(eS=o,o=a,a=eS),a>n&&(a=n),i?i(t,o,a):[o,a]}function qn(t){if(typeof t!=="object"||t===null)return tS(t)?tS:r=>r===t;if(t instanceof Date){let r=t.valueOf();return i=>i instanceof Date?i.valueOf()===r:!1}return ArrayBuffer.isView(t)?r=>r?sh(t,r):!1:t instanceof Map?$O(t):Array.isArray(t)?IO(t):t instanceof N?kO(t):DO(t,!0)}function IO(t){let e=[];for(let r=-1,i=t.length;++r<i;)e[r]=qn(t[r]);return Sl(e)}function $O(t){let e=-1,r=[];for(let i of t.values())r[++e]=qn(i);return Sl(r)}function kO(t){let e=[];for(let r=-1,i=t.length;++r<i;)e[r]=qn(t.get(r));return Sl(e)}function DO(t,e=!1){let r=Object.keys(t);if(!e&&r.length===0)return()=>!1;let i=[];for(let n=-1,o=r.length;++n<o;)i[n]=qn(t[r[n]]);return Sl(i,r)}function Sl(t,e){return r=>{if(!r||typeof r!="object")return!1;switch(r.constructor){case Array:return AO(t,r);case Map:return rS(t,r,r.keys());case Jr:case Kn:case Object:case void 0:return rS(t,r,e||Object.keys(r))}return r instanceof N?BO(t,r):!1}}function AO(t,e){let r=t.length;if(e.length!==r)return!1;for(let i=-1;++i<r;)if(!t[i](e[i]))return!1;return!0}function BO(t,e){let r=t.length;if(e.length!==r)return!1;for(let i=-1;++i<r;)if(!t[i](e.get(i)))return!1;return!0}function rS(t,e,r){let i=r[Symbol.iterator](),n=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),o=e instanceof Map?e.values():Object.values(e)[Symbol.iterator](),a=0,s=t.length,u=o.next(),c=i.next(),l=n.next();for(;a<s&&!c.done&&!l.done&&!u.done&&!(c.value!==l.value||!t[a](u.value));++a,c=i.next(),l=n.next(),u=o.next());return a===s&&c.done&&l.done&&u.done?!0:(i.return&&i.return(),n.return&&n.return(),o.return&&o.return(),!1)}var eS,Fi,tS,Co=f(()=>{Bt();xl();nm();Xe();Fi=(t,e)=>t<0?e+t:t,tS=t=>t!==t});var cm={};Ue(cm,{BitIterator:()=>Ri,getBit:()=>nS,getBool:()=>$l,packBools:()=>Mi,popcnt_array:()=>iS,popcnt_bit_range:()=>Ps,popcnt_uint32:()=>Il,setBool:()=>TO,truncateBitmap:()=>ji});function $l(t,e,r,i){return(r&1<<i)!==0}function nS(t,e,r,i){return(r&1<<i)>>i}function TO(t,e,r){return r?!!(t[e>>3]|=1<<e%8)||!0:!(t[e>>3]&=~(1<<e%8))&&!1}function ji(t,e,r){let i=r.byteLength+7&-8;if(t>0||r.byteLength<i){let n=new Uint8Array(i);return n.set(t%8===0?r.subarray(t>>3):Mi(new Ri(r,t,e,null,$l)).subarray(0,i)),n}return r}function Mi(t){let e=[],r=0,i=0,n=0;for(let a of t)a&&(n|=1<<i),++i===8&&(e[r++]=n,n=i=0);(r===0||i>0)&&(e[r++]=n);let o=new Uint8Array(e.length+7&-8);return o.set(e),o}function Ps(t,e,r){if(r-e<=0)return 0;if(r-e<8){let o=0;for(let a of new Ri(t,e,r-e,t,nS))o+=a;return o}let i=r>>3<<3,n=e+(e%8===0?0:8-e%8);return Ps(t,e,n)+Ps(t,i,r)+iS(t,n>>3,i-n>>3)}function iS(t,e,r){let i=0,n=Math.trunc(e),o=new DataView(t.buffer,t.byteOffset,t.byteLength),a=r===void 0?t.byteLength:n+r;for(;a-n>=4;)i+=Il(o.getUint32(n)),n+=4;for(;a-n>=2;)i+=Il(o.getUint16(n)),n+=2;for(;a-n>=1;)i+=Il(o.getUint8(n)),n+=1;return i}function Il(t){let e=Math.trunc(t);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}var Ri,Vo=f(()=>{Ri=class{constructor(e,r,i,n,o){this.bytes=e,this.length=i,this.context=n,this.get=o,this.bit=r%8,this.byteIndex=r>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}});function E(t){return OO.visit(t)}var zO,oS,ee,um,OO,Sr=f(()=>{Bt();qe();Se();Vo();Se();wr();Xe();zO=-1,oS=Symbol.for("apache-arrow/Data"),ee=class t{static isData(e){return e?.[oS]===!0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:e}=this;return k.isSparseUnion(e)?this.children.some(r=>r.nullable):k.isDenseUnion(e)?this.children.some(r=>r.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:r,values:i,nullBitmap:n,typeIds:o}=this;return r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),o&&(e+=o.byteLength),e+=this.variadicBuffers.reduce((a,s)=>{var u;return a+((u=s?.byteLength)!==null&&u!==void 0?u:0)},0),this.children.reduce((a,s)=>a+s.byteLength,e)}get nullCount(){if(k.isUnion(this.type))return this.children.reduce((i,n)=>i+n.nullCount,0);let e=this._nullCount,r;return e<=zO&&(r=this.nullBitmap)&&(this._nullCount=e=r.length===0?0:this.length-Ps(r,this.offset,this.offset+this.length)),e}constructor(e,r,i,n,o,a=[],s,u=[]){var c;this.type=e,this.children=a,this.dictionary=s,this.offset=Math.floor(Math.max(r||0,0)),this.length=Math.floor(Math.max(i||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1));let l;o instanceof t?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets,this.variadicBuffers=o.variadicBuffers):(this.stride=Zt(e),o&&((l=o[0])&&(this.valueOffsets=l),(l=o[1])&&(this.values=l),(l=o[2])&&(this.nullBitmap=l),(l=o[3])&&(this.typeIds=l)),this.variadicBuffers=u),(c=this.variadicBuffers)!==null&&c!==void 0||(this.variadicBuffers=[])}getValid(e){let{type:r}=this;if(k.isUnion(r)){let i=r,n=this.typeIds[e],o=i.typeIdToChildIndex[n],a=this.children[o],s=this.valueOffsets,u=i.mode===ke.Dense&&s?Number(s[e]):e;return a.getValid(u)}if(this.nullable&&this.nullCount>0){let i=this.offset+e;return(this.nullBitmap[i>>3]&1<<i%8)!==0}return!0}setValid(e,r){let i,{type:n}=this;if(k.isUnion(n)){let o=n,a=this.typeIds[e],s=o.typeIdToChildIndex[a],u=this.children[s],c=this.valueOffsets,l=o.mode===ke.Dense&&c?Number(c[e]):e;i=u.getValid(l),u.setValid(l,r)}else{let{nullBitmap:o}=this,{offset:a,length:s}=this,u=a+e,c=1<<u%8,l=u>>3;(!o||o.byteLength<=l)&&(o=new Uint8Array((a+s+63&-64)>>3).fill(255),this.nullCount>0?(o.set(ji(a,s,this.nullBitmap),0),Object.assign(this,{nullBitmap:o})):Object.assign(this,{nullBitmap:o,_nullCount:0}));let d=o[l];i=(d&c)!==0,o[l]=r?d|c:d&~c}return i!==!!r&&(this._nullCount=this.nullCount+(r?-1:1)),r}clone(e=this.type,r=this.offset,i=this.length,n=this._nullCount,o=this,a=this.children,s=this.variadicBuffers){return new t(e,r,i,n,o,a,this.dictionary,s)}slice(e,r){let{stride:i,typeId:n,children:o}=this,a=+(this._nullCount===0)-1,s=n===16?i:1,u=this._sliceBuffers(e,r,i,n);return this.clone(this.type,this.offset+e,r,a,u,o.length===0||this.valueOffsets?o:this._sliceChildren(o,s*e,s*r),this.variadicBuffers)}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===m.Null)return this.clone(this.type,0,e,0,this.buffers,this.children,this.variadicBuffers);let{length:r,nullCount:i}=this,n=new Uint8Array((e+63&-64)>>3).fill(255,0,r>>3);n[r>>3]=(1<<r-(r&-8))-1,i>0&&n.set(ji(this.offset,r,this.nullBitmap),0);let o=this.buffers;return o[Mt.VALIDITY]=n,this.clone(this.type,0,e,i+(e-r),o,this.children,this.variadicBuffers)}_sliceBuffers(e,r,i,n){let o,{buffers:a}=this;if((o=a[Mt.TYPE])&&(a[Mt.TYPE]=o.subarray(e,e+r)),k.isBinaryView(this.type)||k.isUtf8View(this.type)){let s=re.ELEMENT_WIDTH;(o=a[Mt.DATA])&&(a[Mt.DATA]=o.subarray(e*s,(e+r)*s))}else(o=a[Mt.OFFSET])&&(a[Mt.OFFSET]=o.subarray(e,e+r+1))||(o=a[Mt.DATA])&&(a[Mt.DATA]=n===6?o:o.subarray(i*e,i*(e+r)));return a}_sliceChildren(e,r,i){return e.map(n=>n.slice(r,i))}};ee.prototype.children=Object.freeze([]);ee.prototype[oS]=!0;Object.defineProperty(ee,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===ee&&ee.isData(e)}});um=class t extends W{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{["type"]:r,["offset"]:i=0,["length"]:n=0}=e;return new ee(r,i,n,n)}visitBool(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length>>3,["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitInt(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length,["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitFloat(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length,["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitUtf8(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.data),o=P(e.nullBitmap),a=$i(e.valueOffsets),{["length"]:s=a.length-1,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ee(r,i,s,u,[a,n,o])}visitUtf8View(e){var r;let{["type"]:i,["offset"]:n=0}=e,o=oe(i.ArrayType,e.views),a=P(e.nullBitmap),s=(e.variadicBuffers||[]).map(l=>P(l)),u=(r=e.length)!==null&&r!==void 0?r:Math.trunc(o.length/kt.ELEMENT_WIDTH),c=e.nullBitmap?-1:0;return new ee(i,n,u,c,[void 0,o,a],[],void 0,s)}visitLargeUtf8(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.data),o=P(e.nullBitmap),a=ps(e.valueOffsets),{["length"]:s=a.length-1,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ee(r,i,s,u,[a,n,o])}visitBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.data),o=P(e.nullBitmap),a=$i(e.valueOffsets),{["length"]:s=a.length-1,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ee(r,i,s,u,[a,n,o])}visitBinaryView(e){var r;let{["type"]:i,["offset"]:n=0}=e,o=oe(i.ArrayType,e.views),a=P(e.nullBitmap),s=(e.variadicBuffers||[]).map(l=>P(l)),u=(r=e.length)!==null&&r!==void 0?r:Math.trunc(o.length/re.ELEMENT_WIDTH),c=e.nullBitmap?-1:0;return new ee(i,n,u,c,[void 0,o,a],[],void 0,s)}visitLargeBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.data),o=P(e.nullBitmap),a=ps(e.valueOffsets),{["length"]:s=a.length-1,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ee(r,i,s,u,[a,n,o])}visitFixedSizeBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length/Zt(r),["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitDate(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length/Zt(r),["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitTimestamp(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length/Zt(r),["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitTime(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length/Zt(r),["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitDecimal(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length/Zt(r),["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitList(e){let{["type"]:r,["offset"]:i=0,["child"]:n}=e,o=P(e.nullBitmap),a=$i(e.valueOffsets),{["length"]:s=a.length-1,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ee(r,i,s,u,[a,void 0,o],[n])}visitLargeList(e){let{["type"]:r,["offset"]:i=0,["child"]:n}=e,o=P(e.nullBitmap),a=ps(e.valueOffsets),{["length"]:s=a.length-1,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ee(r,i,s,u,[a,void 0,o],[n])}visitStruct(e){let{["type"]:r,["offset"]:i=0,["children"]:n=[]}=e,o=P(e.nullBitmap),{length:a=n.reduce((u,{length:c})=>Math.max(u,c),0),nullCount:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,void 0,o],n)}visitUnion(e){let{["type"]:r,["offset"]:i=0,["children"]:n=[]}=e,o=oe(r.ArrayType,e.typeIds),{["length"]:a=o.length,["nullCount"]:s=-1}=e;if(k.isSparseUnion(r))return new ee(r,i,a,s,[void 0,void 0,void 0,o],n);let u=$i(e.valueOffsets);return new ee(r,i,a,s,[u,void 0,void 0,o],n)}visitDictionary(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.indices.ArrayType,e.data),{["dictionary"]:a=new N([new t().visit({type:r.dictionary})])}=e,{["length"]:s=o.length,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ee(r,i,s,u,[void 0,o,n],[],a)}visitInterval(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length/Zt(r),["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitDuration(e){let{["type"]:r,["offset"]:i=0}=e,n=P(e.nullBitmap),o=oe(r.ArrayType,e.data),{["length"]:a=o.length,["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,o,n])}visitFixedSizeList(e){let{["type"]:r,["offset"]:i=0,["child"]:n=new t().visit({type:r.valueType})}=e,o=P(e.nullBitmap),{["length"]:a=n.length/Zt(r),["nullCount"]:s=e.nullBitmap?-1:0}=e;return new ee(r,i,a,s,[void 0,void 0,o],[n])}visitMap(e){let{["type"]:r,["offset"]:i=0,["child"]:n=new t().visit({type:r.childType})}=e,o=P(e.nullBitmap),a=$i(e.valueOffsets),{["length"]:s=a.length-1,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ee(r,i,s,u,[a,void 0,o],[n])}},OO=new um});function aS(t){return t.some(e=>e.nullable)}function kl(t){return t.reduce((e,r)=>e+r.nullCount,0)}function Dl(t){return t.reduce((e,r,i)=>(e[i+1]=e[i]+r.length,e),new Uint32Array(t.length+1))}function Al(t,e,r,i){let n=[];for(let o=-1,a=t.length;++o<a;){let s=t[o],u=e[o],{length:c}=s;if(u>=i)break;if(r>=u+c)continue;if(u>=r&&u+c<=i){n.push(s);continue}let l=Math.max(0,r-u),d=Math.min(i-u,c);n.push(s.slice(l,d-l))}return n.length===0&&n.push(t[0].slice(0,0)),n}function lm(t,e,r,i){let n=0,o=0,a=e.length-1;do{if(n>=a-1)return r<e[a]?i(t,n,r-e[n]):null;o=n+Math.trunc((a-n)*.5),r<e[o]?a=o:n=o}while(n<a)}function Rs(t,e){return t.getValid(e)}function Zo(t){function e(r,i,n){return t(r[i],n)}return function(r){let i=this.data;return lm(i,this._offsets,r,e)}}function Bl(t){let e;function r(i,n,o){return t(i[n],o,e)}return function(i,n){let o=this.data;e=n;let a=lm(o,this._offsets,i,r);return e=void 0,a}}function Tl(t){let e;function r(i,n,o){let a=o,s=0,u=0;for(let c=n-1,l=i.length;++c<l;){let d=i[c];if(~(s=t(d,e,a)))return u+s;a=0,u+=d.length}return-1}return function(i,n){e=i;let o=this.data,a=typeof n!="number"?r(o,0,0):lm(o,this._offsets,n,r);return e=void 0,a}}var Fs,zl=f(()=>{Fs=class{constructor(e=0,r){this.numChunks=e,this.getChunkIterator=r,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){let e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}});function EO(t,e){return e===null&&t.length>0?0:-1}function UO(t,e){let{nullBitmap:r}=t;if(!r||t.nullCount<=0)return-1;let i=0;for(let n of new Ri(r,t.offset+(e||0),t.length,r,$l)){if(!n)return i;++i}return-1}function Q(t,e,r){if(e===void 0)return-1;if(e===null)switch(t.typeId){case m.Union:break;case m.Dictionary:break;default:return UO(t,r)}let i=Je.getVisitFn(t),n=qn(e);for(let o=(r||0)-1,a=t.length;++o<a;)if(n(i(t,o)))return o;return-1}function sS(t,e,r){let i=Je.getVisitFn(t),n=qn(e);for(let o=(r||0)-1,a=t.length;++o<a;)if(n(i(t,o)))return o;return-1}var j,Ci,Ol=f(()=>{qe();wr();Pi();Vo();Co();j=class extends W{};j.prototype.visitNull=EO;j.prototype.visitBool=Q;j.prototype.visitInt=Q;j.prototype.visitInt8=Q;j.prototype.visitInt16=Q;j.prototype.visitInt32=Q;j.prototype.visitInt64=Q;j.prototype.visitUint8=Q;j.prototype.visitUint16=Q;j.prototype.visitUint32=Q;j.prototype.visitUint64=Q;j.prototype.visitFloat=Q;j.prototype.visitFloat16=Q;j.prototype.visitFloat32=Q;j.prototype.visitFloat64=Q;j.prototype.visitUtf8=Q;j.prototype.visitLargeUtf8=Q;j.prototype.visitUtf8View=Q;j.prototype.visitBinary=Q;j.prototype.visitLargeBinary=Q;j.prototype.visitBinaryView=Q;j.prototype.visitFixedSizeBinary=Q;j.prototype.visitDate=Q;j.prototype.visitDateDay=Q;j.prototype.visitDateMillisecond=Q;j.prototype.visitTimestamp=Q;j.prototype.visitTimestampSecond=Q;j.prototype.visitTimestampMillisecond=Q;j.prototype.visitTimestampMicrosecond=Q;j.prototype.visitTimestampNanosecond=Q;j.prototype.visitTime=Q;j.prototype.visitTimeSecond=Q;j.prototype.visitTimeMillisecond=Q;j.prototype.visitTimeMicrosecond=Q;j.prototype.visitTimeNanosecond=Q;j.prototype.visitDecimal=Q;j.prototype.visitList=Q;j.prototype.visitLargeList=Q;j.prototype.visitStruct=Q;j.prototype.visitUnion=Q;j.prototype.visitDenseUnion=sS;j.prototype.visitSparseUnion=sS;j.prototype.visitDictionary=Q;j.prototype.visitInterval=Q;j.prototype.visitIntervalDayTime=Q;j.prototype.visitIntervalYearMonth=Q;j.prototype.visitIntervalMonthDayNano=Q;j.prototype.visitDuration=Q;j.prototype.visitDurationSecond=Q;j.prototype.visitDurationMillisecond=Q;j.prototype.visitDurationMicrosecond=Q;j.prototype.visitDurationNanosecond=Q;j.prototype.visitFixedSizeList=Q;j.prototype.visitMap=Q;Ci=new j});function G(t){let{type:e}=t;if(t.nullCount===0&&t.stride===1&&(k.isInt(e)&&e.bitWidth!==64||k.isTime(e)&&e.bitWidth!==64||k.isFloat(e)&&e.precision!==xe.HALF))return new Fs(t.data.length,i=>{let n=t.data[i];return n.values.subarray(0,n.length)[Symbol.iterator]()});let r=0;return new Fs(t.data.length,i=>{let o=t.data[i].length,a=t.slice(r,r+o);return r+=o,new dm(a)})}var M,dm,Ho,El=f(()=>{wr();qe();Se();zl();M=class extends W{};dm=class{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};M.prototype.visitNull=G;M.prototype.visitBool=G;M.prototype.visitInt=G;M.prototype.visitInt8=G;M.prototype.visitInt16=G;M.prototype.visitInt32=G;M.prototype.visitInt64=G;M.prototype.visitUint8=G;M.prototype.visitUint16=G;M.prototype.visitUint32=G;M.prototype.visitUint64=G;M.prototype.visitFloat=G;M.prototype.visitFloat16=G;M.prototype.visitFloat32=G;M.prototype.visitFloat64=G;M.prototype.visitUtf8=G;M.prototype.visitLargeUtf8=G;M.prototype.visitUtf8View=G;M.prototype.visitBinary=G;M.prototype.visitLargeBinary=G;M.prototype.visitBinaryView=G;M.prototype.visitFixedSizeBinary=G;M.prototype.visitDate=G;M.prototype.visitDateDay=G;M.prototype.visitDateMillisecond=G;M.prototype.visitTimestamp=G;M.prototype.visitTimestampSecond=G;M.prototype.visitTimestampMillisecond=G;M.prototype.visitTimestampMicrosecond=G;M.prototype.visitTimestampNanosecond=G;M.prototype.visitTime=G;M.prototype.visitTimeSecond=G;M.prototype.visitTimeMillisecond=G;M.prototype.visitTimeMicrosecond=G;M.prototype.visitTimeNanosecond=G;M.prototype.visitDecimal=G;M.prototype.visitList=G;M.prototype.visitLargeList=G;M.prototype.visitStruct=G;M.prototype.visitUnion=G;M.prototype.visitDenseUnion=G;M.prototype.visitSparseUnion=G;M.prototype.visitDictionary=G;M.prototype.visitInterval=G;M.prototype.visitIntervalDayTime=G;M.prototype.visitIntervalYearMonth=G;M.prototype.visitIntervalMonthDayNano=G;M.prototype.visitDuration=G;M.prototype.visitDurationSecond=G;M.prototype.visitDurationMillisecond=G;M.prototype.visitDurationMicrosecond=G;M.prototype.visitDurationNanosecond=G;M.prototype.visitFixedSizeList=G;M.prototype.visitMap=G;Ho=new M});function Vi(t){if(t){if(t instanceof ee)return new N([t]);if(t instanceof N)return new N(t.data);if(t.type instanceof k)return new N([E(t)]);if(Array.isArray(t))return new N(t.flatMap(e=>NO(e)));if(ArrayBuffer.isView(t)){t instanceof DataView&&(t=new Uint8Array(t.buffer));let e={offset:0,length:t.length,nullCount:-1,data:t};if(t instanceof Int8Array)return new N([E(Object.assign(Object.assign({},e),{type:new Ai}))]);if(t instanceof Int16Array)return new N([E(Object.assign(Object.assign({},e),{type:new Bi}))]);if(t instanceof Int32Array)return new N([E(Object.assign(Object.assign({},e),{type:new Ct}))]);if(t instanceof BigInt64Array)return new N([E(Object.assign(Object.assign({},e),{type:new Ti}))]);if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return new N([E(Object.assign(Object.assign({},e),{type:new zi}))]);if(t instanceof Uint16Array)return new N([E(Object.assign(Object.assign({},e),{type:new Oi}))]);if(t instanceof Uint32Array)return new N([E(Object.assign(Object.assign({},e),{type:new Ei}))]);if(t instanceof BigUint64Array)return new N([E(Object.assign(Object.assign({},e),{type:new Ui}))]);if(t instanceof Float32Array)return new N([E(Object.assign(Object.assign({},e),{type:new Ni}))]);if(t instanceof Float64Array)return new N([E(Object.assign(Object.assign({},e),{type:new Li}))]);throw new Error("Unrecognized input")}}throw new Error("Unrecognized input")}function NO(t){return t instanceof ee?[t]:t instanceof N?t.data:Vi(t).data}var cS,uS,lS,dS,N,Ul,Bt=f(()=>{qe();Co();Se();Sr();zl();Pi();Ht();Ol();El();Se();uS=Symbol.for("apache-arrow/Vector"),lS={},dS={},N=class t{static isVector(e){return e?.[uS]===!0}constructor(e){var r,i,n;let o=e[0]instanceof t?e.flatMap(s=>s.data):e;if(o.length===0||o.some(s=>!(s instanceof ee)))throw new TypeError("Vector constructor expects an Array of Data instances.");let a=(r=o[0])===null||r===void 0?void 0:r.type;switch(o.length){case 0:this._offsets=[0];break;case 1:{let{get:s,set:u,indexOf:c}=lS[a.typeId],l=o[0];this.isValid=d=>Rs(l,d),this.get=d=>s(l,d),this.set=(d,h)=>u(l,d,h),this.indexOf=d=>c(l,d),this._offsets=[0,l.length];break}default:Object.setPrototypeOf(this,dS[a.typeId]),this._offsets=Dl(o);break}this.data=o,this.type=a,this.stride=Zt(a),this.numChildren=(n=(i=a.children)===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,r)=>e+r.byteLength,0)}get nullable(){return aS(this.data)}get nullCount(){return kl(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${m[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(Fi(e,this.length))}set(e,r){}indexOf(e,r){return-1}includes(e,r){return this.indexOf(e,r)>-1}[Symbol.iterator](){return Ho.visit(this)}concat(...e){return new t(this.data.concat(e.flatMap(r=>r.data).flat(Number.POSITIVE_INFINITY)))}slice(e,r){return new t(Ls(this,e,r,({data:i,_offsets:n},o,a)=>Al(i,n,o,a)))}toJSON(){return[...this]}toArray(){let{type:e,data:r,length:i,stride:n,ArrayType:o}=this;switch(e.typeId){case m.Int:case m.Float:case m.Decimal:case m.Time:case m.Timestamp:switch(r.length){case 0:return new o;case 1:return r[0].values.subarray(0,i*n);default:return r.reduce((a,{values:s,length:u})=>(a.array.set(s.subarray(0,u*n),a.offset),a.offset+=u*n,a),{array:new o(i*n),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var r;return this.getChildAt((r=this.type.children)===null||r===void 0?void 0:r.findIndex(i=>i.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new t(this.data.map(({children:r})=>r[e])):null}get isMemoized(){return k.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(k.isDictionary(this.type)){let e=new Ul(this.data[0].dictionary),r=this.data.map(i=>{let n=i.clone();return n.dictionary=e,n});return new t(r)}return new Ul(this)}unmemoize(){if(k.isDictionary(this.type)&&this.isMemoized){let e=this.data[0].dictionary.unmemoize(),r=this.data.map(i=>{let n=i.clone();return n.dictionary=e,n});return new t(r)}return this}};cS=Symbol.toStringTag;N[cS]=(t=>{t.type=k.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0,t[uS]=!0;let e=Object.keys(m).map(r=>m[r]).filter(r=>typeof r=="number"&&r!==m.NONE);for(let r of e){let i=Je.getVisitFnByTypeId(r),n=ot.getVisitFnByTypeId(r),o=Ci.getVisitFnByTypeId(r);lS[r]={get:i,set:n,indexOf:o},dS[r]=Object.create(t,{isValid:{value:Zo(Rs)},get:{value:Zo(Je.getVisitFnByTypeId(r))},set:{value:Bl(ot.getVisitFnByTypeId(r))},indexOf:{value:Tl(Ci.getVisitFnByTypeId(r))}})}return"Vector"})(N.prototype);Object.defineProperty(N,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===N&&N.isVector(e)}});Ul=class t extends N{constructor(e){super(e.data);let r=this.get,i=this.set,n=this.slice,o=new Array(this.length);Object.defineProperty(this,"get",{value(a){let s=o[a];if(s!==void 0)return s;let u=r.call(this,a);return o[a]=u,u}}),Object.defineProperty(this,"set",{value(a,s){i.call(this,a,s),o[a]=s}}),Object.defineProperty(this,"slice",{value:(a,s)=>new t(n.call(this,a,s))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new N(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}});function fS(t){if(!t||t.length<=0)return function(n){return!0};let e="",r=t.filter(i=>i===i);return r.length>0&&(e=`
|
|
8
|
+
switch (x) {${r.map(i=>`
|
|
9
|
+
case ${LO(i)}:`).join("")}
|
|
10
10
|
return false;
|
|
11
|
-
}`),
|
|
12
|
-
${
|
|
13
|
-
return true;`)}function ib(r){return typeof r!="bigint"?We(r):`${We(r)}n`}var lp=d(()=>{Rs()});function Lu(r,t){let e=Math.ceil(r)*t-1;return(e-e%64+64||64)/t}function up(r,t=0){return r.length>=t?r.subarray(0,t):Es(new r.constructor(t),r,0)}var Je,zr,Pi,Vi,jr=d(()=>{kt();Je=class{constructor(t,e=0,n=1){this.length=Math.ceil(e/n),this.buffer=new t(this.length),this.stride=n,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t}get byteLength(){return Math.ceil(this.length*this.stride)*this.BYTES_PER_ELEMENT}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(t,e){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;let e=this.stride,n=this.length*e,i=this.buffer.length;n>=i&&this._resize(i===0?Lu(n*1,this.BYTES_PER_ELEMENT):Lu(n*2,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=Lu(t*this.stride,this.BYTES_PER_ELEMENT);let e=up(this.buffer,t);return this.clear(),e}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(t){return this.buffer=up(this.buffer,t)}},zr=class extends Je{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}},Pi=class extends zr{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,e){let{buffer:n}=this.reserve(t-this.length+1),i=t>>3,s=t%8,o=n[i]>>s&1;return e?o===0&&(n[i]|=1<<s,++this.numValid):o===1&&(n[i]&=~(1<<s),--this.numValid),this}clear(){return this.numValid=0,super.clear()}},Vi=class extends zr{constructor(t){super(t.OffsetArrayType,1,1)}append(t){return this.set(this.length-1,t)}set(t,e){let n=this.length-1,i=this.reserve(t-n+1).buffer;return n<t++&&n>=0&&i.fill(i[n],n,t),i[t]=i[t-1]+e,this}flush(t=this.length-1){return t>this.length&&this.set(t-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(t+1)}}});var ht,Dt,de,gt=d(()=>{Ae();Vr();Ca();_t();lp();jr();ht=class{static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}constructor({type:t,nullValues:e}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=e,this.stride=xe(t),this._nulls=new Pi,e&&e.length>0&&(this._isValid=cp(e))}toVector(){return new v([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0,{_offsets:e,_values:n,_nulls:i,_typeIds:s,children:o}=this;return e&&(t+=e.byteLength),n&&(t+=n.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),o.reduce((a,l)=>a+l.byteLength,t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce((e,n)=>e+n.reservedByteLength,t)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}setValue(t,e){this._setValue(this,t,e)}setValid(t,e){return this.length=this._nulls.set(t,+e).length,e}addChild(t,e=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){let t,e,n,i,{type:s,length:o,nullCount:a,_typeIds:l,_offsets:c,_values:u,_nulls:h}=this;(e=l?.flush(o))?i=c?.flush(o):(i=c?.flush(o))?t=u?.flush(c.last()):t=u?.flush(o),a>0&&(n=h?.flush(o));let m=this.children.map(p=>p.flush());return this.clear(),A({type:s,length:o,nullCount:a,children:m,child:m[0],data:t,typeIds:e,nullBitmap:n,valueOffsets:i})}finish(){this.finished=!0;for(let t of this.children)t.finish();return this}clear(){var t,e,n,i;this.length=0,(t=this._nulls)===null||t===void 0||t.clear(),(e=this._values)===null||e===void 0||e.clear(),(n=this._offsets)===null||n===void 0||n.clear(),(i=this._typeIds)===null||i===void 0||i.clear();for(let s of this.children)s.clear();return this}};ht.prototype.length=1;ht.prototype.stride=1;ht.prototype.children=null;ht.prototype.finished=!1;ht.prototype.nullValues=null;ht.prototype._isValid=()=>!0;Dt=class extends ht{constructor(t){super(t),this._values=new zr(this.ArrayType,0,this.stride)}setValue(t,e){let n=this._values;return n.reserve(t-n.length+1),super.setValue(t,e)}},de=class extends ht{constructor(t){super(t),this._pendingLength=0,this._offsets=new Vi(t.type)}setValue(t,e){let n=this._pending||(this._pending=new Map),i=n.get(t);i&&(this._pendingLength-=i.length),this._pendingLength+=e instanceof Ar?e[fn].length:e.length,n.set(t,e)}setValid(t,e){return super.setValid(t,e)?!0:((this._pending||(this._pending=new Map)).set(t,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}}});var Zn,Fu=d(()=>{Zn=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(t,e,n,i){return t.prep(8,24),t.writeInt64(BigInt(i??0)),t.pad(4),t.writeInt32(n),t.writeInt64(BigInt(e??0)),t.offset()}}});var Kt,fp=d(()=>{K();Fu();Ai();ha();iu();Kt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new Kt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new Kt).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):it.V1}schema(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new yt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){let n=this.bb.__offset(this.bb_pos,8);return n?(e||new Zn).__init(this.bb.__vector(this.bb_pos+n)+t*24,this.bb):null}dictionariesLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){let n=this.bb.__offset(this.bb_pos,10);return n?(e||new Zn).__init(this.bb.__vector(this.bb_pos+n)+t*24,this.bb):null}recordBatchesLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,12);return n?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,it.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}}});function Ka(r,t){return new Map([...r||new Map,...t||new Map])}function Nu(r,t=new Map){for(let e=-1,n=r.length;++e<n;){let s=r[e].type;if(_.isDictionary(s)){if(!t.has(s.id))t.set(s.id,s.dictionary);else if(t.get(s.id)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}s.children&&s.children.length>0&&Nu(s.children,t)}return t}var $,U,Be=d(()=>{Nt();_t();$=class{constructor(t=[],e,n,i=it.V5){this.fields=t||[],this.metadata=e||new Map,n||(n=Nu(this.fields)),this.dictionaries=n,this.metadataVersion=i}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(t=>t.name)}toString(){return`Schema<{ ${this.fields.map((t,e)=>`${e}: ${t}`).join(", ")} }>`}select(t){let e=new Set(t),n=this.fields.filter(i=>e.has(i.name));return new $(n,this.metadata)}selectAt(t){let e=t.map(n=>this.fields[n]).filter(Boolean);return new $(e,this.metadata)}assign(...t){let e=t[0]instanceof $?t[0]:Array.isArray(t[0])?new $(t[0]):new $(t),n=[...this.fields],i=Ka(Ka(new Map,this.metadata),e.metadata),s=e.fields.filter(a=>{let l=n.findIndex(c=>c.name===a.name);return~l?(n[l]=a.clone({metadata:Ka(Ka(new Map,n[l].metadata),a.metadata)}))&&!1:!0}),o=Nu(s,new Map);return new $([...n,...s],i,new Map([...this.dictionaries,...o]))}};$.prototype.fields=null;$.prototype.metadata=null;$.prototype.dictionaries=null;U=class{static new(...t){let[e,n,i,s]=t;return t[0]&&typeof t[0]=="object"&&({name:e}=t[0],n===void 0&&(n=t[0].type),i===void 0&&(i=t[0].nullable),s===void 0&&(s=t[0].metadata)),new U(`${e}`,n,i,s)}constructor(t,e,n=!1,i){this.name=t,this.type=e,this.nullable=n,this.metadata=i||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,n,i,s]=t;return!t[0]||typeof t[0]!="object"?[e=this.name,n=this.type,i=this.nullable,s=this.metadata]=t:{name:e=this.name,type:n=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=t[0],U.new(e,n,i,s)}};U.prototype.type=null;U.prototype.name=null;U.prototype.nullable=null;U.prototype.metadata=null});var sb,ob,Hr,Mu,Xe,Ru=d(()=>{Fu();fp();K();Be();Nt();kt();Ur();sb=Cr,ob=Ft,Hr=class{static decode(t){t=new ob(F(t));let e=Kt.getRootAsFooter(t),n=$.decode(e.schema(),new Map,e.version());return new Mu(n,e)}static encode(t){let e=new sb,n=$.encode(e,t.schema);Kt.startRecordBatchesVector(e,t.numRecordBatches);for(let o of[...t.recordBatches()].slice().reverse())Xe.encode(e,o);let i=e.endVector();Kt.startDictionariesVector(e,t.numDictionaries);for(let o of[...t.dictionaryBatches()].slice().reverse())Xe.encode(e,o);let s=e.endVector();return Kt.startFooter(e),Kt.addSchema(e,n),Kt.addVersion(e,it.V5),Kt.addRecordBatches(e,i),Kt.addDictionaries(e,s),Kt.finishFooterBuffer(e,Kt.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(t,e=it.V5,n,i){this.schema=t,this.version=e,n&&(this._recordBatches=n),i&&(this._dictionaryBatches=i)}*recordBatches(){for(let t,e=-1,n=this.numRecordBatches;++e<n;)(t=this.getRecordBatch(e))&&(yield t)}*dictionaryBatches(){for(let t,e=-1,n=this.numDictionaries;++e<n;)(t=this.getDictionaryBatch(e))&&(yield t)}getRecordBatch(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}getDictionaryBatch(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}},Mu=class extends Hr{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(t,e){super(t,e.version()),this._footer=e}getRecordBatch(t){if(t>=0&&t<this.numRecordBatches){let e=this._footer.recordBatches(t);if(e)return Xe.decode(e)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){let e=this._footer.dictionaries(t);if(e)return Xe.decode(e)}return null}},Xe=class{static decode(t){return new Xe(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,e){let{metaDataLength:n}=e,i=BigInt(e.offset),s=BigInt(e.bodyLength);return Zn.createBlock(t,i,n,s)}constructor(t,e,n){this.metaDataLength=t,this.offset=q(n),this.bodyLength=q(e)}}});var vt,dp=d(()=>{K();Ai();su();ha();vt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(t,e){return(e||new vt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,e){return t.setPosition(t.position()+4),(e||new vt).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):it.V1}headerType(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):W.NONE}header(t){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,12);return n?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,it.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,W.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,BigInt("0"))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,e){t.finish(e)}static finishSizePrefixedMessageBuffer(t,e){t.finish(e,void 0,!0)}static createMessage(t,e,n,i,s,o){return vt.startMessage(t),vt.addVersion(t,e),vt.addHeaderType(t,n),vt.addHeader(t,i),vt.addBodyLength(t,s),vt.addCustomMetadata(t,o),vt.endMessage(t)}}});var ku,Ja,hp=d(()=>{Ye();Yd();ga();Jl();Hd();Zd();$d();Jd();Wd();Wl();Zl();Ql();tu();Xl();Gl();Gd();Kd();eu();$l();Yl();Kl();ql();ku=class extends B{visit(t,e){return t==null||e==null?void 0:super.visit(t,e)}visitNull(t,e){return ur.startNull(e),ur.endNull(e)}visitInt(t,e){return Ct.startInt(e),Ct.addBitWidth(e,t.bitWidth),Ct.addIsSigned(e,t.isSigned),Ct.endInt(e)}visitFloat(t,e){return ae.startFloatingPoint(e),ae.addPrecision(e,t.precision),ae.endFloatingPoint(e)}visitBinary(t,e){return sr.startBinary(e),sr.endBinary(e)}visitLargeBinary(t,e){return ar.startLargeBinary(e),ar.endLargeBinary(e)}visitBool(t,e){return or.startBool(e),or.endBool(e)}visitUtf8(t,e){return dr.startUtf8(e),dr.endUtf8(e)}visitLargeUtf8(t,e){return cr.startLargeUtf8(e),cr.endLargeUtf8(e)}visitDecimal(t,e){return Ut.startDecimal(e),Ut.addScale(e,t.scale),Ut.addPrecision(e,t.precision),Ut.addBitWidth(e,t.bitWidth),Ut.endDecimal(e)}visitDate(t,e){return ne.startDate(e),ne.addUnit(e,t.unit),ne.endDate(e)}visitTime(t,e){return Wt.startTime(e),Wt.addUnit(e,t.unit),Wt.addBitWidth(e,t.bitWidth),Wt.endTime(e)}visitTimestamp(t,e){let n=t.timezone&&e.createString(t.timezone)||void 0;return Gt.startTimestamp(e),Gt.addUnit(e,t.unit),n!==void 0&&Gt.addTimezone(e,n),Gt.endTimestamp(e)}visitInterval(t,e){return ce.startInterval(e),ce.addUnit(e,t.unit),ce.endInterval(e)}visitDuration(t,e){return ie.startDuration(e),ie.addUnit(e,t.unit),ie.endDuration(e)}visitList(t,e){return lr.startList(e),lr.endList(e)}visitStruct(t,e){return fr.startStruct_(e),fr.endStruct_(e)}visitUnion(t,e){Pt.startTypeIdsVector(e,t.typeIds.length);let n=Pt.createTypeIdsVector(e,t.typeIds);return Pt.startUnion(e),Pt.addMode(e,t.mode),Pt.addTypeIds(e,n),Pt.endUnion(e)}visitDictionary(t,e){let n=this.visit(t.indices,e);return we.startDictionaryEncoding(e),we.addId(e,BigInt(t.id)),we.addIsOrdered(e,t.isOrdered),n!==void 0&&we.addIndexType(e,n),we.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return se.startFixedSizeBinary(e),se.addByteWidth(e,t.byteWidth),se.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return oe.startFixedSizeList(e),oe.addListSize(e,t.listSize),oe.endFixedSizeList(e)}visitMap(t,e){return le.startMap(e),le.addKeysSorted(e,t.keysSorted),le.endMap(e)}},Ja=new ku});function _p(r,t=new Map){return new $(ab(r,t),Xa(r.metadata),t)}function Cu(r){return new Et(r.count,bp(r.columns),wp(r.columns),null)}function gp(r){return new Jt(Cu(r.data),r.id,r.isDelta)}function ab(r,t){return(r.fields||[]).filter(Boolean).map(e=>U.fromJSON(e,t))}function pp(r,t){return(r.children||[]).filter(Boolean).map(e=>U.fromJSON(e,t))}function bp(r){return(r||[]).reduce((t,e)=>[...t,new Me(e.count,cb(e.VALIDITY)),...bp(e.children)],[])}function wp(r,t=[]){for(let e=-1,n=(r||[]).length;++e<n;){let i=r[e];i.VALIDITY&&t.push(new Tt(t.length,i.VALIDITY.length)),i.TYPE_ID&&t.push(new Tt(t.length,i.TYPE_ID.length)),i.OFFSET&&t.push(new Tt(t.length,i.OFFSET.length)),i.DATA&&t.push(new Tt(t.length,i.DATA.length)),t=wp(i.children,t)}return t}function cb(r){return(r||[]).reduce((t,e)=>t+ +(e===0),0)}function vp(r,t){let e,n,i,s,o,a;return!t||!(s=r.dictionary)?(o=yp(r,pp(r,t)),i=new U(r.name,o,r.nullable,Xa(r.metadata))):t.has(e=s.id)?(n=(n=s.indexType)?mp(n):new ve,a=new fe(t.get(e),n,e,s.isOrdered),i=new U(r.name,a,r.nullable,Xa(r.metadata))):(n=(n=s.indexType)?mp(n):new ve,t.set(e,o=yp(r,pp(r,t))),a=new fe(o,n,e,s.isOrdered),i=new U(r.name,a,r.nullable,Xa(r.metadata))),i||null}function Xa(r=[]){return new Map(r.map(({key:t,value:e})=>[t,e]))}function mp(r){return new At(r.isSigned,r.bitWidth)}function yp(r,t){let e=r.type.name;switch(e){case"NONE":return new Yt;case"null":return new Yt;case"binary":return new hr;case"largebinary":return new pr;case"utf8":return new mr;case"largeutf8":return new yr;case"bool":return new _r;case"list":return new Le((t||[])[0]);case"struct":return new ct(t||[]);case"struct_":return new ct(t||[])}switch(e){case"int":{let n=r.type;return new At(n.isSigned,n.bitWidth)}case"floatingpoint":{let n=r.type;return new Se(st[n.precision])}case"decimal":{let n=r.type;return new gr(n.scale,n.precision,n.bitWidth)}case"date":{let n=r.type;return new br(wt[n.unit])}case"time":{let n=r.type;return new wr(x[n.unit],n.bitWidth)}case"timestamp":{let n=r.type;return new vr(x[n.unit],n.timezone)}case"interval":{let n=r.type;return new Sr(ut[n.unit])}case"duration":{let n=r.type;return new xr(x[n.unit])}case"union":{let n=r.type,[i,...s]=(n.mode+"").toLowerCase(),o=i.toUpperCase()+s.join("");return new Fe(at[o],n.typeIds||[],t||[])}case"fixedsizebinary":{let n=r.type;return new Ir(n.byteWidth)}case"fixedsizelist":{let n=r.type;return new ue(n.listSize,(t||[])[0])}case"map":{let n=r.type;return new Ne((t||[])[0],n.keysSorted)}}throw new Error(`Unrecognized type: "${e}"`)}var Sp=d(()=>{Be();_t();Wn();Nt()});function fb(r,t){return()=>{switch(t){case W.Schema:return $.fromJSON(r);case W.RecordBatch:return Et.fromJSON(r);case W.DictionaryBatch:return Jt.fromJSON(r)}throw new Error(`Unrecognized Message type: { name: ${W[t]}, type: ${t} }`)}}function db(r,t){return()=>{switch(t){case W.Schema:return $.decode(r.header(new yt),new Map,r.version());case W.RecordBatch:return Et.decode(r.header(new jt),r.version());case W.DictionaryBatch:return Jt.decode(r.header(new Oe),r.version())}throw new Error(`Unrecognized Message type: { name: ${W[t]}, type: ${t} }`)}}function hb(r,t=new Map,e=it.V5){let n=wb(r,t);return new $(n,qa(r),t,e)}function pb(r,t=it.V5){return new Et(r.length(),gb(r),bb(r,t),Bp(r.compression()))}function mb(r,t=it.V5){return new Jt(Et.decode(r.data(),t),r.id(),r.isDelta())}function yb(r){return new Tt(r.offset(),r.length())}function _b(r){return new Me(r.length(),r.nullCount())}function gb(r){let t=[];for(let e,n=-1,i=-1,s=r.nodesLength();++n<s;)(e=r.nodes(n))&&(t[++i]=Me.decode(e));return t}function bb(r,t){let e=[];for(let n,i=-1,s=-1,o=r.buffersLength();++i<o;)(n=r.buffers(i))&&(t<it.V4&&(n.bb_pos+=8*(i+1)),e[++s]=Tt.decode(n));return e}function wb(r,t){let e=[];for(let n,i=-1,s=-1,o=r.fieldsLength();++i<o;)(n=r.fields(i))&&(e[++s]=U.decode(n,t));return e}function xp(r,t){let e=[];for(let n,i=-1,s=-1,o=r.childrenLength();++i<o;)(n=r.children(i))&&(e[++s]=U.decode(n,t));return e}function vb(r,t){let e,n,i,s,o,a;return!t||!(a=r.dictionary())?(i=Ap(r,xp(r,t)),n=new U(r.name(),i,r.nullable(),qa(r))):t.has(e=q(a.id()))?(s=(s=a.indexType())?Ip(s):new ve,o=new fe(t.get(e),s,e,a.isOrdered()),n=new U(r.name(),o,r.nullable(),qa(r))):(s=(s=a.indexType())?Ip(s):new ve,t.set(e,i=Ap(r,xp(r,t))),o=new fe(i,s,e,a.isOrdered()),n=new U(r.name(),o,r.nullable(),qa(r))),n||null}function qa(r){let t=new Map;if(r)for(let e,n,i=-1,s=Math.trunc(r.customMetadataLength());++i<s;)(e=r.customMetadata(i))&&(n=e.key())!=null&&t.set(n,e.value());return t}function Ip(r){return new At(r.isSigned(),r.bitWidth())}function Ap(r,t){let e=r.typeType();switch(e){case ot.NONE:return new Yt;case ot.Null:return new Yt;case ot.Binary:return new hr;case ot.LargeBinary:return new pr;case ot.Utf8:return new mr;case ot.LargeUtf8:return new yr;case ot.Bool:return new _r;case ot.List:return new Le((t||[])[0]);case ot.Struct_:return new ct(t||[])}switch(e){case ot.Int:{let n=r.type(new Ct);return new At(n.isSigned(),n.bitWidth())}case ot.FloatingPoint:{let n=r.type(new ae);return new Se(n.precision())}case ot.Decimal:{let n=r.type(new Ut);return new gr(n.scale(),n.precision(),n.bitWidth())}case ot.Date:{let n=r.type(new ne);return new br(n.unit())}case ot.Time:{let n=r.type(new Wt);return new wr(n.unit(),n.bitWidth())}case ot.Timestamp:{let n=r.type(new Gt);return new vr(n.unit(),n.timezone())}case ot.Interval:{let n=r.type(new ce);return new Sr(n.unit())}case ot.Duration:{let n=r.type(new ie);return new xr(n.unit())}case ot.Union:{let n=r.type(new Pt);return new Fe(n.mode(),n.typeIdsArray()||[],t||[])}case ot.FixedSizeBinary:{let n=r.type(new se);return new Ir(n.byteWidth())}case ot.FixedSizeList:{let n=r.type(new oe);return new ue(n.listSize(),(t||[])[0])}case ot.Map:{let n=r.type(new le);return new Ne((t||[])[0],n.keysSorted())}}throw new Error(`Unrecognized type: "${ot[e]}" (${e})`)}function Bp(r){return r?new Gn(r.codec(),r.method()):null}function Sb(r,t){let e=t.fields.map(s=>U.encode(r,s));yt.startFieldsVector(r,e.length);let n=yt.createFieldsVector(r,e),i=t.metadata&&t.metadata.size>0?yt.createCustomMetadataVector(r,[...t.metadata].map(([s,o])=>{let a=r.createString(`${s}`),l=r.createString(`${o}`);return ft.startKeyValue(r),ft.addKey(r,a),ft.addValue(r,l),ft.endKeyValue(r)})):-1;return yt.startSchema(r),yt.addFields(r,n),yt.addEndianness(r,Tb?cn.Little:cn.Big),i!==-1&&yt.addCustomMetadata(r,i),yt.endSchema(r)}function xb(r,t){let e=-1,n=-1,i=-1,s=t.type,o=t.typeId;_.isDictionary(s)?(o=s.dictionary.typeId,i=Ja.visit(s,r),n=Ja.visit(s.dictionary,r)):n=Ja.visit(s,r);let a=(s.children||[]).map(u=>U.encode(r,u)),l=It.createChildrenVector(r,a),c=t.metadata&&t.metadata.size>0?It.createCustomMetadataVector(r,[...t.metadata].map(([u,h])=>{let m=r.createString(`${u}`),p=r.createString(`${h}`);return ft.startKeyValue(r),ft.addKey(r,m),ft.addValue(r,p),ft.endKeyValue(r)})):-1;return t.name&&(e=r.createString(t.name)),It.startField(r),It.addType(r,n),It.addTypeType(r,o),It.addChildren(r,l),It.addNullable(r,!!t.nullable),e!==-1&&It.addName(r,e),i!==-1&&It.addDictionary(r,i),c!==-1&&It.addCustomMetadata(r,c),It.endField(r)}function Ib(r,t){let e=t.nodes||[],n=t.buffers||[];jt.startNodesVector(r,e.length);for(let a of e.slice().reverse())Me.encode(r,a);let i=r.endVector();jt.startBuffersVector(r,n.length);for(let a of n.slice().reverse())Tt.encode(r,a);let s=r.endVector(),o=null;return t.compression!==null&&(o=Dp(r,t.compression)),jt.startRecordBatch(r),jt.addLength(r,BigInt(t.length)),jt.addNodes(r,i),jt.addBuffers(r,s),t.compression!==null&&o&&jt.addCompression(r,o),jt.endRecordBatch(r)}function Dp(r,t){return Zt.startBodyCompression(r),Zt.addCodec(r,t.type),Zt.addMethod(r,t.method),Zt.endBodyCompression(r)}function Ab(r,t){let e=Et.encode(r,t.data);return Oe.startDictionaryBatch(r),Oe.addId(r,BigInt(t.id)),Oe.addIsDelta(r,t.isDelta),Oe.addData(r,e),Oe.endDictionaryBatch(r)}function Bb(r,t){return Ii.createFieldNode(r,BigInt(t.length),BigInt(t.nullCount))}function Db(r,t){return xi.createBuffer(r,BigInt(t.offset),BigInt(t.length))}var lb,ub,Ot,Et,Jt,Tt,Me,Gn,Tb,Wn=d(()=>{K();iu();ga();jl();zd();Vl();nu();zl();ru();Ai();Hl();Jl();Wl();Zl();Ql();tu();Xl();Gl();eu();Yl();Kl();ql();dp();Pl();Ul();Be();kt();Ur();Nt();hp();Sp();_t();lb=Cr,ub=Ft,Ot=class{static fromJSON(t,e){let n=new Ot(0,it.V5,e);return n._createHeader=fb(t,e),n}static decode(t){t=new ub(F(t));let e=vt.getRootAsMessage(t),n=e.bodyLength(),i=e.version(),s=e.headerType(),o=new Ot(n,i,s);return o._createHeader=db(e,s),o}static encode(t){let e=new lb,n=-1;return t.isSchema()?n=$.encode(e,t.header()):t.isRecordBatch()?n=Et.encode(e,t.header()):t.isDictionaryBatch()&&(n=Jt.encode(e,t.header())),vt.startMessage(e),vt.addVersion(e,it.V5),vt.addHeader(e,n),vt.addHeaderType(e,t.headerType),vt.addBodyLength(e,BigInt(t.bodyLength)),vt.finishMessageBuffer(e,vt.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof $)return new Ot(0,it.V5,W.Schema,t);if(t instanceof Et)return new Ot(e,it.V5,W.RecordBatch,t);if(t instanceof Jt)return new Ot(e,it.V5,W.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===W.Schema}isRecordBatch(){return this.headerType===W.RecordBatch}isDictionaryBatch(){return this.headerType===W.DictionaryBatch}constructor(t,e,n,i){this._version=e,this._headerType=n,this.body=new Uint8Array(0),this._compression=i?.compression,i&&(this._createHeader=()=>i),this._bodyLength=q(t)}},Et=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}constructor(t,e,n,i){this._nodes=e,this._buffers=n,this._length=q(t),this._compression=i}},Jt=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(t,e,n=!1){this._data=t,this._isDelta=n,this._id=q(e)}},Tt=class{constructor(t,e){this.offset=q(t),this.length=q(e)}},Me=class{constructor(t,e){this.length=q(t),this.nullCount=q(e)}},Gn=class{constructor(t,e=Bn.BUFFER){this.type=t,this.method=e}};U.encode=xb;U.decode=vb;U.fromJSON=vp;$.encode=Sb;$.decode=hb;$.fromJSON=_p;Et.encode=Ib;Et.decode=pb;Et.fromJSON=Cu;Jt.encode=Ab;Jt.decode=mb;Jt.fromJSON=gp;Me.encode=Bb;Me.decode=_b;Tt.encode=Db;Tt.decode=yb;Gn.encode=Dp;Gn.decode=Bp;Tb=(()=>{let r=new ArrayBuffer(2);return new DataView(r).setInt16(0,256,!0),new Int16Array(r)[0]===256})()});var dt,$s,Yn,Qa,Zs=d(()=>{ge();Os();dt=Object.freeze({done:!0,value:void 0}),$s=class{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},Yn=class{tee(){return this._getDOMStream().tee()}pipe(t,e){return this._getNodeStream().pipe(t,e)}pipeTo(t,e){return this._getDOMStream().pipeTo(t,e)}pipeThrough(t,e){return this._getDOMStream().pipeThrough(t,e)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}},Qa=class extends Yn{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}cancel(t){return b(this,void 0,void 0,function*(){yield this.return(t)})}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){let{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(dt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return zt.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return zt.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return b(this,void 0,void 0,function*(){return yield this.abort(t),dt})}return(t){return b(this,void 0,void 0,function*(){return yield this.close(),dt})}read(t){return b(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return b(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((e,n)=>{this.resolvers.push({resolve:e,reject:n})}):Promise.resolve(dt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}});var Br,Dr,he,Uu,$r,Kn=d(()=>{ge();Os();an();Zs();kt();In();Br=class extends Qa{write(t){if((t=F(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?Ds(this.toUint8Array(!0)):this.toUint8Array(!1).then(Ds)}toUint8Array(t=!1){return t?be(this._values)[0]:(()=>b(this,void 0,void 0,function*(){var e,n,i,s;let o=[],a=0;try{for(var l=!0,c=Ve(this),u;u=yield c.next(),e=u.done,!e;l=!0){s=u.value,l=!1;let h=s;o.push(h),a+=h.byteLength}}catch(h){n={error:h}}finally{try{!l&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(n)throw n.error}}return be(o,a)[0]}))()}},Dr=class{constructor(t){t&&(this.source=new Uu(zt.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},he=class{constructor(t){t instanceof he?this.source=t.source:t instanceof Br?this.source=new $r(zt.fromAsyncIterable(t)):la(t)?this.source=new $r(zt.fromNodeStream(t)):Ts(t)?this.source=new $r(zt.fromDOMStream(t)):aa(t)?this.source=new $r(zt.fromDOMStream(t.body)):je(t)?this.source=new $r(zt.fromIterable(t)):ze(t)?this.source=new $r(zt.fromAsyncIterable(t)):Te(t)&&(this.source=new $r(zt.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},Uu=class{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||dt)}return(t){return Object.create(this.source.return&&this.source.return(t)||dt)}},$r=class{constructor(t){this.source=t,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}cancel(t){return b(this,void 0,void 0,function*(){yield this.return(t)})}get closed(){return this._closedPromise}read(t){return b(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return b(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(t){return b(this,arguments,void 0,function*(e,n="read"){return yield this.source.next({cmd:n,size:e})})}throw(t){return b(this,void 0,void 0,function*(){let e=this.source.throw&&(yield this.source.throw(t))||dt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}return(t){return b(this,void 0,void 0,function*(){let e=this.source.return&&(yield this.source.return(t))||dt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}}});var Ws,hn,Pu=d(()=>{ge();Kn();kt();Ws=class extends Dr{constructor(t,e){super(),this.position=0,this.buffer=F(t),this.size=e===void 0?this.buffer.byteLength:e}readInt32(t){let{buffer:e,byteOffset:n}=this.readAt(t,4);return new DataView(e,n).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t<this.size}read(t){let{buffer:e,size:n,position:i}=this;return e&&i<n?(typeof t!="number"&&(t=Number.POSITIVE_INFINITY),this.position=Math.min(n,i+Math.min(n-i,t)),e.subarray(i,this.position)):null}readAt(t,e){let n=this.buffer,i=Math.min(this.size,t+e);return n?n.subarray(t,i):new Uint8Array(e)}close(){this.buffer&&(this.buffer=null)}throw(t){return this.close(),{done:!0,value:t}}return(t){return this.close(),{done:!0,value:t}}},hn=class extends he{constructor(t,e){super(),this.position=0,this._handle=t,typeof e=="number"?this.size=e:this._pending=(()=>b(this,void 0,void 0,function*(){this.size=(yield t.stat()).size,delete this._pending}))()}readInt32(t){return b(this,void 0,void 0,function*(){let{buffer:e,byteOffset:n}=yield this.readAt(t,4);return new DataView(e,n).getInt32(0,!0)})}seek(t){return b(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),t<this.size})}read(t){return b(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:e,size:n,position:i}=this;if(e&&i<n){typeof t!="number"&&(t=Number.POSITIVE_INFINITY);let s=i,o=0,a=0,l=Math.min(n,s+Math.min(n-s,t)),c=new Uint8Array(Math.max(0,(this.position=l)-s));for(;(s+=a)<l&&(o+=a)<c.byteLength;)({bytesRead:a}=yield e.read(c,o,c.byteLength-o,s));return c}return null})}readAt(t,e){return b(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:n,size:i}=this;if(n&&t+e<i){let s=Math.min(i,t+e),o=new Uint8Array(s-t);return(yield n.read(o,0,e,t)).buffer}return new Uint8Array(e)})}close(){return b(this,void 0,void 0,function*(){let t=this._handle;this._handle=null,t&&(yield t.close())})}throw(t){return b(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}return(t){return b(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}}});var zu={};ye(zu,{BaseInt64:()=>Gs,Int128:()=>pe,Int64:()=>Vt,Uint64:()=>rt});function zi(r){return r<0&&(r=4294967295+r+1),`0x${r.toString(16)}`}var ji,Vu,Gs,rt,Vt,pe,ju=d(()=>{ji=8,Vu=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Gs=class{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){let e=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),n=new Uint32Array([t.buffer[1]>>>16,t.buffer[1]&65535,t.buffer[0]>>>16,t.buffer[0]&65535]),i=e[3]*n[3];this.buffer[0]=i&65535;let s=i>>>16;return i=e[2]*n[3],s+=i,i=e[3]*n[2]>>>0,s+=i,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0<i?65536:0,this.buffer[1]+=s>>>16,this.buffer[1]+=e[1]*n[3]+e[2]*n[2]+e[3]*n[1],this.buffer[1]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0]<<16,this}_plus(t){let e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}equals(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}greaterThan(t){return t.lessThan(this)}hex(){return`${zi(this.buffer[1])} ${zi(this.buffer[0])}`}},rt=class extends Gs{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,e=new Uint32Array(2)){return rt.fromString(typeof t=="string"?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return rt.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){let n=t.length,i=new rt(e);for(let s=0;s<n;){let o=ji<n-s?ji:n-s,a=new rt(new Uint32Array([Number.parseInt(t.slice(s,s+o),10),0])),l=new rt(new Uint32Array([Vu[o],0]));i.times(l),i.plus(a),s+=o}return i}static convertArray(t){let e=new Uint32Array(t.length*2);for(let n=-1,i=t.length;++n<i;)rt.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2));return e}static multiply(t,e){return new rt(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new rt(new Uint32Array(t.buffer)).plus(e)}},Vt=class extends Gs{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(t){return this._times(t),this}plus(t){return this._plus(t),this}lessThan(t){let e=this.buffer[1]<<0,n=t.buffer[1]<<0;return e<n||e===n&&this.buffer[0]<t.buffer[0]}static from(t,e=new Uint32Array(2)){return Vt.fromString(typeof t=="string"?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return Vt.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){let n=t.startsWith("-"),i=t.length,s=new Vt(e);for(let o=n?1:0;o<i;){let a=ji<i-o?ji:i-o,l=new Vt(new Uint32Array([Number.parseInt(t.slice(o,o+a),10),0])),c=new Vt(new Uint32Array([Vu[a],0]));s.times(c),s.plus(l),o+=a}return n?s.negate():s}static convertArray(t){let e=new Uint32Array(t.length*2);for(let n=-1,i=t.length;++n<i;)Vt.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2));return e}static multiply(t,e){return new Vt(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new Vt(new Uint32Array(t.buffer)).plus(e)}},pe=class{constructor(t){this.buffer=t}high(){return new Vt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Vt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(t){let e=new rt(new Uint32Array([this.buffer[3],0])),n=new rt(new Uint32Array([this.buffer[2],0])),i=new rt(new Uint32Array([this.buffer[1],0])),s=new rt(new Uint32Array([this.buffer[0],0])),o=new rt(new Uint32Array([t.buffer[3],0])),a=new rt(new Uint32Array([t.buffer[2],0])),l=new rt(new Uint32Array([t.buffer[1],0])),c=new rt(new Uint32Array([t.buffer[0],0])),u=rt.multiply(s,c);this.buffer[0]=u.low();let h=new rt(new Uint32Array([u.high(),0]));return u=rt.multiply(i,c),h.plus(u),u=rt.multiply(s,l),h.plus(u),this.buffer[1]=h.low(),this.buffer[3]=h.lessThan(u)?1:0,this.buffer[2]=h.high(),new rt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(rt.multiply(n,c)).plus(rt.multiply(i,l)).plus(rt.multiply(s,a)),this.buffer[3]+=rt.multiply(e,c).plus(rt.multiply(n,l)).plus(rt.multiply(i,a)).plus(rt.multiply(s,o)).low(),this}plus(t){let e=new Uint32Array(4);return e[3]=this.buffer[3]+t.buffer[3]>>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${zi(this.buffer[3])} ${zi(this.buffer[2])} ${zi(this.buffer[1])} ${zi(this.buffer[0])}`}static multiply(t,e){return new pe(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new pe(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return pe.fromString(typeof t=="string"?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return pe.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){let n=t.startsWith("-"),i=t.length,s=new pe(e);for(let o=n?1:0;o<i;){let a=ji<i-o?ji:i-o,l=new pe(new Uint32Array([Number.parseInt(t.slice(o,o+a),10),0,0,0])),c=new pe(new Uint32Array([Vu[a],0,0,0]));s.times(c),s.plus(l),o+=a}return n?s.negate():s}static convertArray(t){let e=new Uint32Array(t.length*4);for(let n=-1,i=t.length;++n<i;)pe.from(t[n],new Uint32Array(e.buffer,e.byteOffset+4*4*n,4));return e}}});var Zu={};ye(Zu,{toIntervalDayTimeInt32Array:()=>Hu,toIntervalDayTimeObjects:()=>Eb,toIntervalMonthDayNanoInt32Array:()=>$u,toIntervalMonthDayNanoObjects:()=>Ob});function Hu(r){var t,e;let n=r.length,i=new Int32Array(n*2);for(let s=0,o=0;s<n;s++){let a=r[s];i[o++]=(t=a.days)!==null&&t!==void 0?t:0,i[o++]=(e=a.milliseconds)!==null&&e!==void 0?e:0}return i}function $u(r){var t,e;let n=r.length,i=new Int32Array(n*4);for(let s=0,o=0;s<n;s++){let a=r[s];i[o++]=(t=a.months)!==null&&t!==void 0?t:0,i[o++]=(e=a.days)!==null&&e!==void 0?e:0;let l=a.nanoseconds;l?(i[o++]=Number(BigInt(l)&BigInt(4294967295)),i[o++]=Number(BigInt(l)>>BigInt(32))):o+=2}return i}function Eb(r){let t=r.length,e=new Array(t/2);for(let n=0,i=0;n<t;n+=2)e[i++]={days:r[n],milliseconds:r[n+1]};return e}function Ob(r,t){let e=r.length,n=new Array(e/4);for(let i=0,s=0;i<e;i+=4){let o=BigInt(r[i+3])<<BigInt(32)|BigInt(r[i+2]>>>0);n[s++]={months:r[i],days:r[i+1],nanoseconds:t?`${o}`:o}}return n}var Wu=d(()=>{});function Lb(r){let t=r.join(""),e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)e[n>>1]=Number.parseInt(t.slice(n,n+2),16);return e}var Hi,tc,ec,Ep=d(()=>{Vr();Be();_t();Ye();Ri();an();ju();Nt();kt();Wu();Hi=class extends B{constructor(t,e,n,i,s=it.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=t,this.nodes=e,this.buffers=n,this.dictionaries=i,this.metadataVersion=s}visit(t){return super.visit(t instanceof U?t.type:t)}visitNull(t,{length:e}=this.nextFieldNode()){return A({type:t,length:e})}visitBool(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitInt(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFloat(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitFixedSizeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDate(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTimestamp(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTime(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDecimal(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitList(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitStruct(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),children:this.visitMany(t.children)})}visitUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return this.metadataVersion<it.V5&&this.readNullBitmap(t,n),t.mode===at.Sparse?this.visitSparseUnion(t,{length:e,nullCount:n}):this.visitDenseUnion(t,{length:e,nullCount:n})}visitDenseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),valueOffsets:this.readOffsets(t),children:this.visitMany(t.children)})}visitSparseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t.indices),dictionary:this.readDictionary(t)})}visitInterval(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDuration(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFixedSizeList(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),child:this.visit(t.children[0])})}visitMap(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(t,e,n=this.nextBufferRange()){return e>0&&this.readData(t,n)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+e)}readDictionary(t){return this.dictionaries.get(t.id)}},tc=class extends Hi{constructor(t,e,n,i,s){super(new Uint8Array(0),e,n,i,s),this.sources=t}readNullBitmap(t,e,{offset:n}=this.nextBufferRange()){return e<=0?new Uint8Array(0):zn(this.sources[n])}readOffsets(t,{offset:e}=this.nextBufferRange()){return H(Uint8Array,H(t.OffsetArrayType,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return H(Uint8Array,H(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){let{sources:n}=this;if(_.isTimestamp(t))return H(Uint8Array,Vt.convertArray(n[e]));if((_.isInt(t)||_.isTime(t))&&t.bitWidth===64||_.isDuration(t))return H(Uint8Array,Vt.convertArray(n[e]));if(_.isDate(t)&&t.unit===wt.MILLISECOND)return H(Uint8Array,Vt.convertArray(n[e]));if(_.isDecimal(t))return H(Uint8Array,pe.convertArray(n[e]));if(_.isBinary(t)||_.isLargeBinary(t)||_.isFixedSizeBinary(t))return Lb(n[e]);if(_.isBool(t))return zn(n[e]);if(_.isUtf8(t)||_.isLargeUtf8(t))return rr(n[e].join(""));if(_.isInterval(t))switch(t.unit){case ut.DAY_TIME:return Hu(n[e]);case ut.MONTH_DAY_NANO:return $u(n[e]);default:break}return H(Uint8Array,H(t.ArrayType,n[e].map(i=>+i)))}};ec=class extends Hi{constructor(t,e,n,i,s){super(new Uint8Array(0),e,n,i,s),this.bodyChunks=t}readData(t,e=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}});var $i,Gu=d(()=>{jr();gt();kt();$i=class extends de{constructor(t){super(t),this._values=new Je(Uint8Array)}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,F(e))}_flushPending(t,e){let n=this._offsets,i=this._values.reserve(e).buffer,s=0;for(let[o,a]of t)if(a===void 0)n.set(o,0);else{let l=a.length;i.set(a,s),n.set(o,l),s+=l}}}});var Zi,Yu=d(()=>{kt();jr();gt();Zi=class extends de{constructor(t){super(t),this._values=new Je(Uint8Array)}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,F(e))}_flushPending(t,e){let n=this._offsets,i=this._values.reserve(e).buffer,s=0;for(let[o,a]of t)if(a===void 0)n.set(o,BigInt(0));else{let l=a.length;i.set(a,s),n.set(o,BigInt(l)),s+=l}}}});var rc,Op=d(()=>{jr();gt();rc=class extends ht{constructor(t){super(t),this._values=new Pi}setValue(t,e){this._values.set(t,+e)}}});var Jn,Ys,Ks,Lp=d(()=>{gt();Ie();Jn=class extends Dt{};Jn.prototype._setValue=mu;Ys=class extends Jn{};Ys.prototype._setValue=wa;Ks=class extends Jn{};Ks.prototype._setValue=va});var Js,Fp=d(()=>{gt();Ie();Js=class extends Dt{};Js.prototype._setValue=gu});var nc,Np=d(()=>{_t();gt();Ku();nc=class extends ht{constructor({type:t,nullValues:e,dictionaryHashFunction:n}){super({type:new fe(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Xn({type:this.type.indices,nullValues:e}),this.dictionary=Xn({type:this.type.dictionary,nullValues:null}),typeof n=="function"&&(this.valueToKey=n)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(t){return this.indices.isValid(t)}setValid(t,e){let n=this.indices;return e=n.setValid(t,e),this.length=n.length,e}setValue(t,e){let n=this._keysToIndices,i=this.valueToKey(e),s=n[i];return s===void 0&&(n[i]=s=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,s)}flush(){let t=this.type,e=this._dictionary,n=this.dictionary.toVector(),i=this.indices.flush().clone(t);return i.dictionary=e?e.concat(n):n,this.finished||(this._dictionaryOffset+=n.length),this._dictionary=i.dictionary,this.clear(),i}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(t){return typeof t=="string"?t:`${t}`}}});var Xs,Mp=d(()=>{gt();Ie();Xs=class extends Dt{};Xs.prototype._setValue=pu});var ic,Rp=d(()=>{Be();gt();_t();ic=class extends ht{setValue(t,e){let[n]=this.children,i=t*this.stride;for(let s=-1,o=this.stride;++s<o;)n.set(i+s,e[s])}setValid(t,e){return super.setValid(t,e)||this.children[0].setValid((t+1)*this.stride-1,!1),e}addChild(t,e="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");let n=this.children.push(t);return this.type=new ue(this.type.listSize,new U(e,t.type,!0)),n}}});var qn,sc,oc,ac,kp=d(()=>{Ps();gt();qn=class extends Dt{setValue(t,e){this._values.set(t,e)}},sc=class extends qn{setValue(t,e){super.setValue(t,Us(e))}},oc=class extends qn{},ac=class extends qn{}});var pn,qs,Qs,to,Cp=d(()=>{gt();Ie();pn=class extends Dt{};pn.prototype._setValue=bu;qs=class extends pn{};qs.prototype._setValue=Oa;Qs=class extends pn{};Qs.prototype._setValue=La;to=class extends pn{};to.prototype._setValue=Fa});var Zr,eo,ro,no,io,Up=d(()=>{gt();Ie();Zr=class extends Dt{};Zr.prototype._setValue=wu;eo=class extends Zr{};eo.prototype._setValue=Na;ro=class extends Zr{};ro.prototype._setValue=Ma;no=class extends Zr{};no.prototype._setValue=Ra;io=class extends Zr{};io.prototype._setValue=ka});var Re,cc,lc,uc,fc,dc,hc,pc,mc,Pp=d(()=>{gt();Re=class extends Dt{setValue(t,e){this._values.set(t,e)}},cc=class extends Re{},lc=class extends Re{},uc=class extends Re{},fc=class extends Re{},dc=class extends Re{},hc=class extends Re{},pc=class extends Re{},mc=class extends Re{}});var yc,Vp=d(()=>{Be();_t();jr();gt();yc=class extends de{constructor(t){super(t),this._offsets=new Vi(t.type)}addChild(t,e="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Le(new U(e,t.type,!0)),this.numChildren-1}_flushPending(t){let e=this._offsets,[n]=this.children;for(let[i,s]of t)if(typeof s>"u")e.set(i,0);else{let o=s,a=o.length,l=e.set(i,a).buffer[i];for(let c=-1;++c<a;)n.set(l+c,o[c])}}}});var _c,zp=d(()=>{Be();_t();gt();_c=class extends de{set(t,e){return super.set(t,e)}setValue(t,e){let n=e instanceof Map?e:new Map(Object.entries(e)),i=this._pending||(this._pending=new Map),s=i.get(t);s&&(this._pendingLength-=s.size),this._pendingLength+=n.size,i.set(t,n)}addChild(t,e=`${this.numChildren}`){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Ne(new U(e,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){let e=this._offsets,[n]=this.children;for(let[i,s]of t)if(s===void 0)e.set(i,0);else{let{[i]:o,[i+1]:a}=e.set(i,s.size).buffer;for(let l of s.entries())if(n.set(o,l),++o>=a)break}}}});var gc,jp=d(()=>{gt();gc=class extends ht{setValue(t,e){}setValid(t,e){return this.length=Math.max(t+1,this.length),e}}});var bc,Hp=d(()=>{Be();gt();_t();bc=class extends ht{setValue(t,e){let{children:n,type:i}=this;switch(Array.isArray(e)||e.constructor){case!0:return i.children.forEach((s,o)=>n[o].set(t,e[o]));case Map:return i.children.forEach((s,o)=>n[o].set(t,e.get(s.name)));default:return i.children.forEach((s,o)=>n[o].set(t,e[s.name]))}}setValid(t,e){return super.setValid(t,e)||this.children.forEach(n=>n.setValid(t,e)),e}addChild(t,e=`${this.numChildren}`){let n=this.children.push(t);return this.type=new ct([...this.type.children,new U(e,t.type,!0)]),n}}});var Wr,so,oo,ao,co,$p=d(()=>{gt();Ie();Wr=class extends Dt{};Wr.prototype._setValue=yu;so=class extends Wr{};so.prototype._setValue=Sa;oo=class extends Wr{};oo.prototype._setValue=xa;ao=class extends Wr{};ao.prototype._setValue=Ia;co=class extends Wr{};co.prototype._setValue=Aa});var Gr,lo,uo,fo,ho,Zp=d(()=>{gt();Ie();Gr=class extends Dt{};Gr.prototype._setValue=_u;lo=class extends Gr{};lo.prototype._setValue=Ba;uo=class extends Gr{};uo.prototype._setValue=Da;fo=class extends Gr{};fo.prototype._setValue=Ta;ho=class extends Gr{};ho.prototype._setValue=Ea});var Wi,wc,vc,Wp=d(()=>{Be();jr();gt();_t();Wi=class extends ht{constructor(t){super(t),this._typeIds=new zr(Int8Array,0,1),typeof t.valueToChildTypeId=="function"&&(this._valueToChildTypeId=t.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,e){return this.set(this.length,t,e)}set(t,e,n){return n===void 0&&(n=this._valueToChildTypeId(this,e,t)),this.setValue(t,e,n),this}setValue(t,e,n){this._typeIds.set(t,n);let i=this.type.typeIdToChildIndex[n],s=this.children[i];s?.set(t,e),this.length=Math.max(t+1,this.length)}addChild(t,e=`${this.children.length}`){let n=this.children.push(t),{type:{children:i,mode:s,typeIds:o}}=this,a=[...i,new U(e,t.type)];return this.type=new Fe(s,[...o,n],a),n}_valueToChildTypeId(t,e,n){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},wc=class extends Wi{},vc=class extends Wi{constructor(t){super(t),this._offsets=new zr(Int32Array)}setValue(t,e,n){let i=this._typeIds.set(t,n).buffer[t],s=this.getChildAt(this.type.typeIdToChildIndex[i]),o=this._offsets.set(t,s.length).buffer[t];s?.set(o,e),this.length=Math.max(t+1,this.length)}}});var po,Gp=d(()=>{an();Gu();jr();gt();po=class extends de{constructor(t){super(t),this._values=new Je(Uint8Array)}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,rr(e))}_flushPending(t,e){}};po.prototype._flushPending=$i.prototype._flushPending});var mo,Yp=d(()=>{an();jr();gt();Yu();mo=class extends de{constructor(t){super(t),this._values=new Je(Uint8Array)}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,rr(e))}_flushPending(t,e){}};mo.prototype._flushPending=Zi.prototype._flushPending});var Ju,Kp,Jp=d(()=>{Ye();Gu();Yu();Op();Lp();Fp();Np();Mp();Rp();kp();Cp();Up();Pp();Vp();zp();jp();Hp();$p();Zp();Wp();Gp();Yp();Ju=class extends B{visitNull(){return gc}visitBool(){return rc}visitInt(){return Re}visitInt8(){return cc}visitInt16(){return lc}visitInt32(){return uc}visitInt64(){return fc}visitUint8(){return dc}visitUint16(){return hc}visitUint32(){return pc}visitUint64(){return mc}visitFloat(){return qn}visitFloat16(){return sc}visitFloat32(){return oc}visitFloat64(){return ac}visitUtf8(){return po}visitLargeUtf8(){return mo}visitBinary(){return $i}visitLargeBinary(){return Zi}visitFixedSizeBinary(){return Xs}visitDate(){return Jn}visitDateDay(){return Ys}visitDateMillisecond(){return Ks}visitTimestamp(){return Wr}visitTimestampSecond(){return so}visitTimestampMillisecond(){return oo}visitTimestampMicrosecond(){return ao}visitTimestampNanosecond(){return co}visitTime(){return Gr}visitTimeSecond(){return lo}visitTimeMillisecond(){return uo}visitTimeMicrosecond(){return fo}visitTimeNanosecond(){return ho}visitDecimal(){return Js}visitList(){return yc}visitStruct(){return bc}visitUnion(){return Wi}visitDenseUnion(){return vc}visitSparseUnion(){return wc}visitDictionary(){return nc}visitInterval(){return pn}visitIntervalDayTime(){return qs}visitIntervalYearMonth(){return Qs}visitIntervalMonthDayNano(){return to}visitDuration(){return Zr}visitDurationSecond(){return eo}visitDurationMillisecond(){return ro}visitDurationMicrosecond(){return no}visitDurationNanosecond(){return io}visitFixedSizeList(){return ic}visitMap(){return _c}},Kp=new Ju});function Qt(r,t){return t instanceof r.constructor}function Qn(r,t){return r===t||Qt(r,t)}function Yr(r,t){return r===t||Qt(r,t)&&r.bitWidth===t.bitWidth&&r.isSigned===t.isSigned}function Sc(r,t){return r===t||Qt(r,t)&&r.precision===t.precision}function Fb(r,t){return r===t||Qt(r,t)&&r.byteWidth===t.byteWidth}function Xu(r,t){return r===t||Qt(r,t)&&r.unit===t.unit}function yo(r,t){return r===t||Qt(r,t)&&r.unit===t.unit&&r.timezone===t.timezone}function _o(r,t){return r===t||Qt(r,t)&&r.unit===t.unit&&r.bitWidth===t.bitWidth}function Nb(r,t){return r===t||Qt(r,t)&&r.children.length===t.children.length&&Tr.compareManyFields(r.children,t.children)}function Mb(r,t){return r===t||Qt(r,t)&&r.children.length===t.children.length&&Tr.compareManyFields(r.children,t.children)}function qu(r,t){return r===t||Qt(r,t)&&r.mode===t.mode&&r.typeIds.every((e,n)=>e===t.typeIds[n])&&Tr.compareManyFields(r.children,t.children)}function Rb(r,t){return r===t||Qt(r,t)&&r.id===t.id&&r.isOrdered===t.isOrdered&&Tr.visit(r.indices,t.indices)&&Tr.visit(r.dictionary,t.dictionary)}function xc(r,t){return r===t||Qt(r,t)&&r.unit===t.unit}function go(r,t){return r===t||Qt(r,t)&&r.unit===t.unit}function kb(r,t){return r===t||Qt(r,t)&&r.listSize===t.listSize&&r.children.length===t.children.length&&Tr.compareManyFields(r.children,t.children)}function Cb(r,t){return r===t||Qt(r,t)&&r.keysSorted===t.keysSorted&&r.children.length===t.children.length&&Tr.compareManyFields(r.children,t.children)}function ti(r,t){return Tr.compareSchemas(r,t)}function Xp(r,t){return Tr.compareFields(r,t)}function qp(r,t){return Tr.visit(r,t)}var O,Tr,Ic=d(()=>{Ye();O=class extends B{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,i)=>this.compareFields(n,e[i]))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}};O.prototype.visitNull=Qn;O.prototype.visitBool=Qn;O.prototype.visitInt=Yr;O.prototype.visitInt8=Yr;O.prototype.visitInt16=Yr;O.prototype.visitInt32=Yr;O.prototype.visitInt64=Yr;O.prototype.visitUint8=Yr;O.prototype.visitUint16=Yr;O.prototype.visitUint32=Yr;O.prototype.visitUint64=Yr;O.prototype.visitFloat=Sc;O.prototype.visitFloat16=Sc;O.prototype.visitFloat32=Sc;O.prototype.visitFloat64=Sc;O.prototype.visitUtf8=Qn;O.prototype.visitLargeUtf8=Qn;O.prototype.visitBinary=Qn;O.prototype.visitLargeBinary=Qn;O.prototype.visitFixedSizeBinary=Fb;O.prototype.visitDate=Xu;O.prototype.visitDateDay=Xu;O.prototype.visitDateMillisecond=Xu;O.prototype.visitTimestamp=yo;O.prototype.visitTimestampSecond=yo;O.prototype.visitTimestampMillisecond=yo;O.prototype.visitTimestampMicrosecond=yo;O.prototype.visitTimestampNanosecond=yo;O.prototype.visitTime=_o;O.prototype.visitTimeSecond=_o;O.prototype.visitTimeMillisecond=_o;O.prototype.visitTimeMicrosecond=_o;O.prototype.visitTimeNanosecond=_o;O.prototype.visitDecimal=Qn;O.prototype.visitList=Nb;O.prototype.visitStruct=Mb;O.prototype.visitUnion=qu;O.prototype.visitDenseUnion=qu;O.prototype.visitSparseUnion=qu;O.prototype.visitDictionary=Rb;O.prototype.visitInterval=xc;O.prototype.visitIntervalDayTime=xc;O.prototype.visitIntervalYearMonth=xc;O.prototype.visitIntervalMonthDayNano=xc;O.prototype.visitDuration=go;O.prototype.visitDurationSecond=go;O.prototype.visitDurationMillisecond=go;O.prototype.visitDurationMicrosecond=go;O.prototype.visitDurationNanosecond=go;O.prototype.visitFixedSizeList=kb;O.prototype.visitMap=Cb;Tr=new O});function Xn(r){let t=r.type,e=new(Kp.getVisitFn(t)())(r);if(t.children&&t.children.length>0){let n=r.children||[],i={nullValues:r.nullValues},s=Array.isArray(n)?(o,a)=>n[a]||i:({name:o})=>n[o]||i;for(let[o,a]of t.children.entries()){let{type:l}=a,c=s(a,o);e.children.push(Xn(Object.assign(Object.assign({},c),{type:l})))}}return e}var Ku=d(()=>{Jp()});function Ac(r,t){return Ub(r,t.map(e=>e.data.concat()))}function Ub(r,t){let e=[...r.fields],n=[],i={numBatches:t.reduce((h,m)=>Math.max(h,m.length),0)},s=0,o=0,a=-1,l=t.length,c,u=[];for(;i.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,a=-1;++a<l;)u[a]=c=t[a].shift(),o=Math.min(o,c?c.length:o);Number.isFinite(o)&&(u=Pb(e,o,u,t,i),o>0&&(n[s++]=A({type:new ct(e),length:o,nullCount:0,children:u.slice()})))}return[r=r.assign(e),n.map(h=>new lt(r,h))]}function Pb(r,t,e,n,i){var s;let o=(t+63&-64)>>3;for(let a=-1,l=n.length;++a<l;){let c=e[a],u=c?.length;if(u>=t)u===t?e[a]=c:(e[a]=c.slice(0,t),i.numBatches=Math.max(i.numBatches,n[a].unshift(c.slice(t,u-t))));else{let h=r[a];r[a]=h.clone({nullable:!0}),e[a]=(s=c?._changeLengthAndBackfillNullBitmap(t))!==null&&s!==void 0?s:A({type:h.type,length:t,nullCount:t,nullBitmap:new Uint8Array(o)})}}return e}var Qp=d(()=>{Vr();_t();Gi()});var tm,St,Bc=d(()=>{Nt();Vr();Ae();Be();_t();Ic();Qp();Wa();Cn();Ie();Ga();Ya();Mi();Gi();St=class{constructor(...t){var e,n;if(t.length===0)return this.batches=[],this.schema=new $([]),this._offsets=[0],this;let i,s;t[0]instanceof $&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(s=t.pop());let o=l=>{if(l){if(l instanceof lt)return[l];if(l instanceof St)return l.batches;if(l instanceof Z){if(l.type instanceof ct)return[new lt(new $(l.type.children),l)]}else{if(Array.isArray(l))return l.flatMap(c=>o(c));if(typeof l[Symbol.iterator]=="function")return[...l].flatMap(c=>o(c));if(typeof l=="object"){let c=Object.keys(l),u=c.map(p=>new v([l[p]])),h=i??new $(c.map((p,y)=>new U(String(p),u[y].type,u[y].nullable))),[,m]=Ac(h,u);return m.length===0?[new lt(l)]:m}}}return[]},a=t.flatMap(l=>o(l));if(i=(n=i??((e=a[0])===null||e===void 0?void 0:e.schema))!==null&&n!==void 0?n:new $([]),!(i instanceof $))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let l of a){if(!(l instanceof lt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!ti(i,l.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=a,this._offsets=s??ja(this.data)}get data(){return this.batches.map(({data:t})=>t)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((t,e)=>t+e.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=za(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}at(t){return this.get(Un(t,this.numRows))}set(t,e){}indexOf(t,e){return-1}[Symbol.iterator](){return this.batches.length>0?Ci.visit(new v(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
11
|
+
}`),t.length!==r.length&&(e=`if (x !== x) return false;
|
|
12
|
+
${e}`),new Function("x",`${e}
|
|
13
|
+
return true;`)}function LO(t){return typeof t!="bigint"?_r(t):`${_r(t)}n`}var pS=f(()=>{Ts()});function fm(t,e){let r=Math.ceil(t)*e-1;return(r-r%64+64||64)/e}function hS(t,e=0){return t.length>=e?t.subarray(0,e):fs(new t.constructor(e),t,0)}var Tt,vn,Wo,Qn,Ir=f(()=>{Xe();Tt=class{constructor(e,r=0,i=1){this.length=Math.ceil(r/i),this.buffer=new e(this.length),this.stride=i,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e}get byteLength(){return Math.ceil(this.length*this.stride)*this.BYTES_PER_ELEMENT}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(e,r){return this}append(e){return this.set(this.length,e)}reserve(e){if(e>0){this.length+=e;let r=this.stride,i=this.length*r,n=this.buffer.length;i>=n&&this._resize(n===0?fm(i*1,this.BYTES_PER_ELEMENT):fm(i*2,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=fm(e*this.stride,this.BYTES_PER_ELEMENT);let r=hS(this.buffer,e);return this.clear(),r}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(e){return this.buffer=hS(this.buffer,e)}},vn=class extends Tt{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,r){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=r,this}},Wo=class extends vn{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(e){return this.buffer[e>>3]>>e%8&1}set(e,r){let{buffer:i}=this.reserve(e-this.length+1),n=e>>3,o=e%8,a=i[n]>>o&1;return r?a===0&&(i[n]|=1<<o,++this.numValid):a===1&&(i[n]&=~(1<<o),--this.numValid),this}clear(){return this.numValid=0,super.clear()}},Qn=class extends vn{constructor(e){super(e.OffsetArrayType,1,1)}append(e){return this.set(this.length-1,e)}set(e,r){let i=this.length-1,n=this.reserve(e-i+1).buffer;return i<e++&&i>=0&&n.fill(n[i],i,e),n[e]=n[e-1]+r,this}flush(e=this.length-1){return e>this.length&&this.set(e-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(e+1)}}});var Ae,Ge,ft,Ne=f(()=>{Bt();Sr();xl();Se();pS();Ir();Ae=class{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e){throw new Error('"throughDOM" not available in this environment')}constructor({type:e,nullValues:r}){this.length=0,this.finished=!1,this.type=e,this.children=[],this.nullValues=r,this.stride=Zt(e),this._nulls=new Wo,r&&r.length>0&&(this._isValid=fS(r))}toVector(){return new N([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let e=0,{_offsets:r,_values:i,_nulls:n,_typeIds:o,children:a}=this;return r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),o&&(e+=o.byteLength),a.reduce((s,u)=>s+u.byteLength,e)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce((r,i)=>r+i.reservedByteLength,e)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(e){return this.set(this.length,e)}isValid(e){return this._isValid(e)}set(e,r){return this.setValid(e,this.isValid(r))&&this.setValue(e,r),this}setValue(e,r){this._setValue(this,e,r)}setValid(e,r){return this.length=this._nulls.set(e,+r).length,r}addChild(e,r=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(e){return this.children[e]||null}flush(){let e,r,i,n,{type:o,length:a,nullCount:s,_typeIds:u,_offsets:c,_values:l,_nulls:d}=this;(r=u?.flush(a))?n=c?.flush(a):(n=c?.flush(a))?e=l?.flush(c.last()):e=l?.flush(a),s>0&&(i=d?.flush(a));let h=this.children.map(p=>p.flush());return this.clear(),E({type:o,length:a,nullCount:s,children:h,child:h[0],data:e,typeIds:r,nullBitmap:i,valueOffsets:n})}finish(){this.finished=!0;for(let e of this.children)e.finish();return this}clear(){var e,r,i,n;this.length=0,(e=this._nulls)===null||e===void 0||e.clear(),(r=this._values)===null||r===void 0||r.clear(),(i=this._offsets)===null||i===void 0||i.clear(),(n=this._typeIds)===null||n===void 0||n.clear();for(let o of this.children)o.clear();return this}};Ae.prototype.length=1;Ae.prototype.stride=1;Ae.prototype.children=null;Ae.prototype.finished=!1;Ae.prototype.nullValues=null;Ae.prototype._isValid=()=>!0;Ge=class extends Ae{constructor(e){super(e),this._values=new vn(this.ArrayType,0,this.stride)}setValue(e,r){let i=this._values;return i.reserve(e-i.length+1),super.setValue(e,r)}},ft=class extends Ae{constructor(e){super(e),this._pendingLength=0,this._offsets=new Qn(e.type)}setValue(e,r){let i=this._pending||(this._pending=new Map),n=i.get(e);n&&(this._pendingLength-=n.length),this._pendingLength+=r instanceof Jr?r[Xn].length:r.length,i.set(e,r)}setValid(e,r){return super.setValid(e,r)?!0:((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let e=this._pending,r=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,r),this}}});var Zi,pm=f(()=>{Zi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,r,i,n){return e.prep(8,24),e.writeInt64(BigInt(n??0)),e.pad(4),e.writeInt32(i),e.writeInt64(BigInt(r??0)),e.offset()}}});var Wt,mS=f(()=>{fe();pm();Oo();qu();Fh();Wt=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFooter(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):be.V1}schema(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new $t).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}dictionaries(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new Zi).__init(this.bb.__vector(this.bb_pos+i)+e*24,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,r){let i=this.bb.__offset(this.bb_pos,10);return i?(r||new Zi).__init(this.bb.__vector(this.bb_pos+i)+e*24,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,12);return i?(r||new Fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,r){e.addFieldInt16(0,r,be.V1)}static addSchema(e,r){e.addFieldOffset(1,r,0)}static addDictionaries(e,r){e.addFieldOffset(2,r,0)}static startDictionariesVector(e,r){e.startVector(24,r,8)}static addRecordBatches(e,r){e.addFieldOffset(3,r,0)}static startRecordBatchesVector(e,r){e.startVector(24,r,8)}static addCustomMetadata(e,r){e.addFieldOffset(4,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,r){e.finish(r)}static finishSizePrefixedFooterBuffer(e,r){e.finish(r,void 0,!0)}}});function Nl(t,e){return new Map([...t||new Map,...e||new Map])}function hm(t,e=new Map){for(let r=-1,i=t.length;++r<i;){let o=t[r].type;if(k.isDictionary(o)){if(!e.has(o.id))e.set(o.id,o.dictionary);else if(e.get(o.id)!==o.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}o.children&&o.children.length>0&&hm(o.children,e)}return e}var gS,yS,ce,X,yt=f(()=>{qe();Se();gS=Symbol.for("apache-arrow/Schema"),yS=Symbol.for("apache-arrow/Field"),ce=class t{static isSchema(e){return e?.[gS]===!0}constructor(e=[],r,i,n=be.V5){this.fields=e||[],this.metadata=r||new Map,i||(i=hm(this.fields)),this.dictionaries=i,this.metadataVersion=n}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,r)=>`${r}: ${e}`).join(", ")} }>`}select(e){let r=new Set(e),i=this.fields.filter(n=>r.has(n.name));return new t(i,this.metadata)}selectAt(e){let r=e.map(i=>this.fields[i]).filter(Boolean);return new t(r,this.metadata)}assign(...e){let r=e[0]instanceof t?e[0]:Array.isArray(e[0])?new t(e[0]):new t(e),i=[...this.fields],n=Nl(Nl(new Map,this.metadata),r.metadata),o=r.fields.filter(s=>{let u=i.findIndex(c=>c.name===s.name);return~u?(i[u]=s.clone({metadata:Nl(Nl(new Map,i[u].metadata),s.metadata)}))&&!1:!0}),a=hm(o,new Map);return new t([...i,...o],n,new Map([...this.dictionaries,...a]))}};ce.prototype.fields=null;ce.prototype.metadata=null;ce.prototype.dictionaries=null;ce.prototype[gS]=!0;Object.defineProperty(ce,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===ce&&ce.isSchema(e)}});X=class t{static isField(e){return e?.[yS]===!0}static new(...e){let[r,i,n,o]=e;return e[0]&&typeof e[0]=="object"&&({name:r}=e[0],i===void 0&&(i=e[0].type),n===void 0&&(n=e[0].nullable),o===void 0&&(o=e[0].metadata)),new t(`${r}`,i,n,o)}constructor(e,r,i=!1,n){this.name=e,this.type=r,this.nullable=i,this.metadata=n||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[r,i,n,o]=e;return!e[0]||typeof e[0]!="object"?[r=this.name,i=this.type,n=this.nullable,o=this.metadata]=e:{name:r=this.name,type:i=this.type,nullable:n=this.nullable,metadata:o=this.metadata}=e[0],t.new(r,i,n,o)}};X.prototype.type=null;X.prototype.name=null;X.prototype.nullable=null;X.prototype.metadata=null;X.prototype[yS]=!0;Object.defineProperty(X,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===X&&X.isField(e)}})});var PO,FO,_n,mm,bn,gm=f(()=>{pm();mS();fe();yt();qe();Xe();Ur();PO=ki,FO=it,_n=class{static decode(e){e=new FO(P(e));let r=Wt.getRootAsFooter(e),i=ce.decode(r.schema(),new Map,r.version());return new mm(i,r)}static encode(e){let r=new PO,i=ce.encode(r,e.schema);Wt.startRecordBatchesVector(r,e.numRecordBatches);for(let a of[...e.recordBatches()].slice().reverse())bn.encode(r,a);let n=r.endVector();Wt.startDictionariesVector(r,e.numDictionaries);for(let a of[...e.dictionaryBatches()].slice().reverse())bn.encode(r,a);let o=r.endVector();return Wt.startFooter(r),Wt.addSchema(r,i),Wt.addVersion(r,be.V5),Wt.addRecordBatches(r,n),Wt.addDictionaries(r,o),Wt.finishFooterBuffer(r,Wt.endFooter(r)),r.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,r=be.V5,i,n){this.schema=e,this.version=r,i&&(this._recordBatches=i),n&&(this._dictionaryBatches=n)}*recordBatches(){for(let e,r=-1,i=this.numRecordBatches;++r<i;)(e=this.getRecordBatch(r))&&(yield e)}*dictionaryBatches(){for(let e,r=-1,i=this.numDictionaries;++r<i;)(e=this.getDictionaryBatch(r))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}},mm=class extends _n{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,r){super(e,r.version()),this._footer=r}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){let r=this._footer.recordBatches(e);if(r)return bn.decode(r)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){let r=this._footer.dictionaries(e);if(r)return bn.decode(r)}return null}},bn=class t{static decode(e){return new t(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,r){let{metaDataLength:i}=r,n=BigInt(r.offset),o=BigInt(r.bodyLength);return Zi.createBlock(e,n,i,o)}constructor(e,r,i){this.metaDataLength=e,this.offset=ae(i),this.bodyLength=ae(r)}}});var Jt,vS=f(()=>{fe();Oo();Rh();qu();Jt=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsMessage(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):be.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):de.NONE}header(e){let r=this.bb.__offset(this.bb_pos,8);return r?this.bb.__union(e,this.bb_pos+r):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,12);return i?(r||new Fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,r){e.addFieldInt16(0,r,be.V1)}static addHeaderType(e,r){e.addFieldInt8(1,r,de.NONE)}static addHeader(e,r){e.addFieldOffset(2,r,0)}static addBodyLength(e,r){e.addFieldInt64(3,r,BigInt("0"))}static addCustomMetadata(e,r){e.addFieldOffset(4,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,r){e.finish(r)}static finishSizePrefixedMessageBuffer(e,r){e.finish(r,void 0,!0)}static createMessage(e,r,i,n,o,a){return t.startMessage(e),t.addVersion(e,r),t.addHeaderType(e,i),t.addHeader(e,n),t.addBodyLength(e,o),t.addCustomMetadata(e,a),t.endMessage(e)}}});var ym,Ll,_S=f(()=>{wr();M0();nl();Th();U0();N0();P0();L0();V0();Z0();R0();kh();$h();Eh();Uh();zh();Dh();j0();F0();C0();Nh();Ih();Ah();Bh();Oh();ym=class extends W{visit(e,r){return e==null||r==null?void 0:super.visit(e,r)}visitNull(e,r){return ks.startNull(r),ks.endNull(r)}visitInt(e,r){return yr.startInt(r),yr.addBitWidth(r,e.bitWidth),yr.addIsSigned(r,e.isSigned),yr.endInt(r)}visitFloat(e,r){return Wn.startFloatingPoint(r),Wn.addPrecision(r,e.precision),Wn.endFloatingPoint(r)}visitBinary(e,r){return _s.startBinary(r),_s.endBinary(r)}visitBinaryView(e,r){return bs.startBinaryView(r),bs.endBinaryView(r)}visitLargeBinary(e,r){return xs.startLargeBinary(r),xs.endLargeBinary(r)}visitBool(e,r){return ws.startBool(r),ws.endBool(r)}visitUtf8(e,r){return As.startUtf8(r),As.endUtf8(r)}visitUtf8View(e,r){return Bs.startUtf8View(r),Bs.endUtf8View(r)}visitLargeUtf8(e,r){return Is.startLargeUtf8(r),Is.endLargeUtf8(r)}visitDecimal(e,r){return Er.startDecimal(r),Er.addScale(r,e.scale),Er.addPrecision(r,e.precision),Er.addBitWidth(r,e.bitWidth),Er.endDecimal(r)}visitDate(e,r){return Cn.startDate(r),Cn.addUnit(r,e.unit),Cn.endDate(r)}visitTime(e,r){return mn.startTime(r),mn.addUnit(r,e.unit),mn.addBitWidth(r,e.bitWidth),mn.endTime(r)}visitTimestamp(e,r){let i=e.timezone&&r.createString(e.timezone)||void 0;return gn.startTimestamp(r),gn.addUnit(r,e.unit),i!==void 0&&gn.addTimezone(r,i),gn.endTimestamp(r)}visitInterval(e,r){return Jn.startInterval(r),Jn.addUnit(r,e.unit),Jn.endInterval(r)}visitDuration(e,r){return Vn.startDuration(r),Vn.addUnit(r,e.unit),Vn.endDuration(r)}visitList(e,r){return $s.startList(r),$s.endList(r)}visitLargeList(e,r){return Ss.startLargeList(r),Ss.endLargeList(r)}visitStruct(e,r){return Ds.startStruct_(r),Ds.endStruct_(r)}visitUnion(e,r){vr.startTypeIdsVector(r,e.typeIds.length);let i=vr.createTypeIdsVector(r,e.typeIds);return vr.startUnion(r),vr.addMode(r,e.mode),vr.addTypeIds(r,i),vr.endUnion(r)}visitDictionary(e,r){let i=this.visit(e.indices,r);return Or.startDictionaryEncoding(r),Or.addId(r,BigInt(e.id)),Or.addIsOrdered(r,e.isOrdered),i!==void 0&&Or.addIndexType(r,i),Or.endDictionaryEncoding(r)}visitFixedSizeBinary(e,r){return Zn.startFixedSizeBinary(r),Zn.addByteWidth(r,e.byteWidth),Zn.endFixedSizeBinary(r)}visitFixedSizeList(e,r){return Hn.startFixedSizeList(r),Hn.addListSize(r,e.listSize),Hn.endFixedSizeList(r)}visitMap(e,r){return Gn.startMap(r),Gn.addKeysSorted(r,e.keysSorted),Gn.endMap(r)}},Ll=new ym});function SS(t,e=new Map){return new ce(RO(t,e),Pl(t.metadata),e)}function vm(t){return new Ke(t.count,$S(t.columns),kS(t.columns),null,DS(t.columns))}function IS(t){return new pt(vm(t.data),t.id,t.isDelta)}function RO(t,e){return(t.fields||[]).filter(Boolean).map(r=>X.fromJSON(r,e))}function bS(t,e){return(t.children||[]).filter(Boolean).map(r=>X.fromJSON(r,e))}function $S(t){return(t||[]).reduce((e,r)=>[...e,new ir(r.count,jO(r.VALIDITY)),...$S(r.children)],[])}function kS(t,e=[]){for(let r=-1,i=(t||[]).length;++r<i;){let n=t[r];if(n.VALIDITY&&e.push(new Me(e.length,n.VALIDITY.length)),n.TYPE_ID&&e.push(new Me(e.length,n.TYPE_ID.length)),n.OFFSET&&e.push(new Me(e.length,n.OFFSET.length)),n.DATA&&e.push(new Me(e.length,n.DATA.length)),n.VIEWS&&e.push(new Me(e.length,n.VIEWS.length)),n.VARIADIC_DATA_BUFFERS)for(let o of n.VARIADIC_DATA_BUFFERS)e.push(new Me(e.length,o.length));e=kS(n.children,e)}return e}function jO(t){return(t||[]).reduce((e,r)=>e+ +(r===0),0)}function DS(t){return(t||[]).reduce((e,r)=>[...e,...r.VARIADIC_DATA_BUFFERS?[r.VARIADIC_DATA_BUFFERS.length]:[],...DS(r.children)],[])}function AS(t,e){let r,i,n,o,a,s;return!e||!(o=t.dictionary)?(a=xS(t,bS(t,e)),n=new X(t.name,a,t.nullable,Pl(t.metadata))):e.has(r=o.id)?(i=(i=o.indexType)?wS(i):new Ct,s=new At(e.get(r),i,r,o.isOrdered),n=new X(t.name,s,t.nullable,Pl(t.metadata))):(i=(i=o.indexType)?wS(i):new Ct,e.set(r,a=xS(t,bS(t,e))),s=new At(a,i,r,o.isOrdered),n=new X(t.name,s,t.nullable,Pl(t.metadata))),n||null}function Pl(t=[]){return new Map(t.map(({key:e,value:r})=>[e,r]))}function wS(t){return new We(t.isSigned,t.bitWidth)}function xS(t,e){let r=t.type.name;switch(r){case"NONE":return new dt;case"null":return new dt;case"binary":return new Nr;case"largebinary":return new Lr;case"binaryview":return new re;case"utf8":return new Pr;case"largeutf8":return new Fr;case"utf8view":return new kt;case"bool":return new Rr;case"list":return new er((e||[])[0]);case"largelist":return new tr((e||[])[0]);case"struct":return new De(e||[]);case"struct_":return new De(e||[])}switch(r){case"int":{let i=t.type;return new We(i.isSigned,i.bitWidth)}case"floatingpoint":{let i=t.type;return new Vt(xe[i.precision])}case"decimal":{let i=t.type;return new jr(i.scale,i.precision,i.bitWidth)}case"date":{let i=t.type;return new Mr(Ze[i.unit])}case"time":{let i=t.type;return new Cr(L[i.unit],i.bitWidth)}case"timestamp":{let i=t.type;return new Vr(L[i.unit],i.timezone)}case"interval":{let i=t.type;return new Zr(ze[i.unit])}case"duration":{let i=t.type;return new Hr(L[i.unit])}case"union":{let i=t.type,[n,...o]=(i.mode+"").toLowerCase(),a=n.toUpperCase()+o.join("");return new rr(ke[a],i.typeIds||[],e||[])}case"fixedsizebinary":{let i=t.type;return new Wr(i.byteWidth)}case"fixedsizelist":{let i=t.type;return new Dt(i.listSize,(e||[])[0])}case"map":{let i=t.type;return new nr((e||[])[0],i.keysSorted)}}throw new Error(`Unrecognized type: "${r}"`)}var BS=f(()=>{yt();Se();Hi();qe()});function VO(t,e){return(()=>{switch(e){case de.Schema:return ce.fromJSON(t);case de.RecordBatch:return Ke.fromJSON(t);case de.DictionaryBatch:return pt.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${de[e]}, type: ${e} }`)})}function ZO(t,e){return(()=>{switch(e){case de.Schema:return ce.decode(t.header(new $t),new Map,t.version());case de.RecordBatch:return Ke.decode(t.header(new ut),t.version());case de.DictionaryBatch:return pt.decode(t.header(new hn),t.version())}throw new Error(`Unrecognized Message type: { name: ${de[e]}, type: ${e} }`)})}function HO(t,e=new Map,r=be.V5){let i=QO(t,e);return new ce(i,Fl(t),e,r)}function WO(t,e=be.V5){return new Ke(t.length(),YO(t),XO(t,e),ES(t.compression()),qO(t))}function JO(t,e=be.V5){return new pt(Ke.decode(t.data(),e),t.id(),t.isDelta())}function GO(t){return new Me(t.offset(),t.length())}function KO(t){return new ir(t.length(),t.nullCount())}function YO(t){let e=[];for(let r,i=-1,n=-1,o=t.nodesLength();++i<o;)(r=t.nodes(i))&&(e[++n]=ir.decode(r));return e}function XO(t,e){let r=[];for(let i,n=-1,o=-1,a=t.buffersLength();++n<a;)(i=t.buffers(n))&&(e<be.V4&&(i.bb_pos+=8*(n+1)),r[++o]=Me.decode(i));return r}function qO(t){let e=[],r=Math.trunc(t.variadicBufferCountsLength());for(let i=0;i<r;++i)e.push(ae(t.variadicBufferCounts(i)));return e}function QO(t,e){let r=[];for(let i,n=-1,o=-1,a=t.fieldsLength();++n<a;)(i=t.fields(n))&&(r[++o]=X.decode(i,e));return r}function TS(t,e){let r=[];for(let i,n=-1,o=-1,a=t.childrenLength();++n<a;)(i=t.children(n))&&(r[++o]=X.decode(i,e));return r}function e2(t,e){let r,i,n,o,a,s;return!e||!(s=t.dictionary())?(n=OS(t,TS(t,e)),i=new X(t.name(),n,t.nullable(),Fl(t))):e.has(r=ae(s.id()))?(o=(o=s.indexType())?zS(o):new Ct,a=new At(e.get(r),o,r,s.isOrdered()),i=new X(t.name(),a,t.nullable(),Fl(t))):(o=(o=s.indexType())?zS(o):new Ct,e.set(r,n=OS(t,TS(t,e))),a=new At(n,o,r,s.isOrdered()),i=new X(t.name(),a,t.nullable(),Fl(t))),i||null}function Fl(t){let e=new Map;if(t)for(let r,i,n=-1,o=Math.trunc(t.customMetadataLength());++n<o;)(r=t.customMetadata(n))&&(i=r.key())!=null&&e.set(i,r.value());return e}function t2(t){let e=new Map;for(let r,i,n=-1,o=Math.trunc(t.customMetadataLength());++n<o;)(r=t.customMetadata(n))&&(i=r.key())!=null&&e.set(i,r.value());return e}function zS(t){return new We(t.isSigned(),t.bitWidth())}function OS(t,e){let r=t.typeType();switch(r){case ve.NONE:return new dt;case ve.Null:return new dt;case ve.Binary:return new Nr;case ve.LargeBinary:return new Lr;case ve.BinaryView:return new re;case ve.Utf8:return new Pr;case ve.LargeUtf8:return new Fr;case ve.Utf8View:return new kt;case ve.Bool:return new Rr;case ve.List:return new er((e||[])[0]);case ve.LargeList:return new tr((e||[])[0]);case ve.Struct_:return new De(e||[])}switch(r){case ve.Int:{let i=t.type(new yr);return new We(i.isSigned(),i.bitWidth())}case ve.FloatingPoint:{let i=t.type(new Wn);return new Vt(i.precision())}case ve.Decimal:{let i=t.type(new Er);return new jr(i.scale(),i.precision(),i.bitWidth())}case ve.Date:{let i=t.type(new Cn);return new Mr(i.unit())}case ve.Time:{let i=t.type(new mn);return new Cr(i.unit(),i.bitWidth())}case ve.Timestamp:{let i=t.type(new gn);return new Vr(i.unit(),i.timezone())}case ve.Interval:{let i=t.type(new Jn);return new Zr(i.unit())}case ve.Duration:{let i=t.type(new Vn);return new Hr(i.unit())}case ve.Union:{let i=t.type(new vr);return new rr(i.mode(),i.typeIdsArray()||[],e||[])}case ve.FixedSizeBinary:{let i=t.type(new Zn);return new Wr(i.byteWidth())}case ve.FixedSizeList:{let i=t.type(new Hn);return new Dt(i.listSize(),(e||[])[0])}case ve.Map:{let i=t.type(new Gn);return new nr((e||[])[0],i.keysSorted())}}throw new Error(`Unrecognized type: "${ve[r]}" (${r})`)}function ES(t){return t?new Wi(t.codec(),t.method()):null}function r2(t,e){let r=e.fields.map(o=>X.encode(t,o));$t.startFieldsVector(t,r.length);let i=$t.createFieldsVector(t,r),n=e.metadata&&e.metadata.size>0?$t.createCustomMetadataVector(t,[...e.metadata].map(([o,a])=>{let s=t.createString(`${o}`),u=t.createString(`${a}`);return Fe.startKeyValue(t),Fe.addKey(t,s),Fe.addValue(t,u),Fe.endKeyValue(t)})):-1;return $t.startSchema(t),$t.addFields(t,i),$t.addEndianness(t,c2?Mn.Little:Mn.Big),n!==-1&&$t.addCustomMetadata(t,n),$t.endSchema(t)}function n2(t,e){let r=-1,i=-1,n=-1,o=e.type,a=e.typeId;k.isDictionary(o)?(a=o.dictionary.typeId,n=Ll.visit(o,t),i=Ll.visit(o.dictionary,t)):i=Ll.visit(o,t);let s=(o.children||[]).map(l=>X.encode(t,l)),u=lt.createChildrenVector(t,s),c=e.metadata&&e.metadata.size>0?lt.createCustomMetadataVector(t,[...e.metadata].map(([l,d])=>{let h=t.createString(`${l}`),p=t.createString(`${d}`);return Fe.startKeyValue(t),Fe.addKey(t,h),Fe.addValue(t,p),Fe.endKeyValue(t)})):-1;return e.name&&(r=t.createString(e.name)),lt.startField(t),lt.addType(t,i),lt.addTypeType(t,a),lt.addChildren(t,u),lt.addNullable(t,!!e.nullable),r!==-1&<.addName(t,r),n!==-1&<.addDictionary(t,n),c!==-1&<.addCustomMetadata(t,c),lt.endField(t)}function i2(t,e){let r=e.nodes||[],i=e.buffers||[],n=e.variadicBufferCounts||[];ut.startNodesVector(t,r.length);for(let c of r.slice().reverse())ir.encode(t,c);let o=t.endVector();ut.startBuffersVector(t,i.length);for(let c of i.slice().reverse())Me.encode(t,c);let a=t.endVector(),s=null;e.compression!==null&&(s=US(t,e.compression));let u=-1;return n.length>0&&(u=ut.createVariadicBufferCountsVector(t,n.map(BigInt))),ut.startRecordBatch(t),ut.addLength(t,BigInt(e.length)),ut.addNodes(t,o),ut.addBuffers(t,a),e.compression!==null&&s&&ut.addCompression(t,s),u!==-1&&ut.addVariadicBufferCounts(t,u),ut.endRecordBatch(t)}function US(t,e){return pn.startBodyCompression(t),pn.addCodec(t,e.type),pn.addMethod(t,e.method),pn.endBodyCompression(t)}function o2(t,e){let r=Ke.encode(t,e.data);return hn.startDictionaryBatch(t),hn.addId(t,BigInt(e.id)),hn.addIsDelta(t,e.isDelta),hn.addData(t,r),hn.endDictionaryBatch(t)}function a2(t,e){return zo.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))}function s2(t,e){return To.createBuffer(t,BigInt(e.offset),BigInt(e.length))}var MO,CO,zt,Ke,pt,Me,ir,Wi,c2,Hi=f(()=>{fe();Fh();nl();xh();O0();bh();Ph();wh();Lh();Oo();Sh();Th();kh();$h();Eh();Uh();zh();Dh();Nh();Ah();Bh();Oh();vS();_h();vh();yt();Xe();Ur();qe();_S();BS();Se();MO=ki,CO=it,zt=class t{static fromJSON(e,r){let i=new t(0,be.V5,r);return i._createHeader=VO(e,r),i}static decode(e){e=new CO(P(e));let r=Jt.getRootAsMessage(e),i=r.bodyLength(),n=r.version(),o=r.headerType(),a=t2(r),s=new t(i,n,o,void 0,a);return s._createHeader=ZO(r,o),s}static encode(e){let r=new MO,i=-1;e.isSchema()?i=ce.encode(r,e.header()):e.isRecordBatch()?i=Ke.encode(r,e.header()):e.isDictionaryBatch()&&(i=pt.encode(r,e.header()));let n=e.metadata&&e.metadata.size>0?Jt.createCustomMetadataVector(r,[...e.metadata].map(([o,a])=>{let s=r.createString(`${o}`),u=r.createString(`${a}`);return Fe.startKeyValue(r),Fe.addKey(r,s),Fe.addValue(r,u),Fe.endKeyValue(r)})):-1;return Jt.startMessage(r),Jt.addVersion(r,be.V5),Jt.addHeader(r,i),Jt.addHeaderType(r,e.headerType),Jt.addBodyLength(r,BigInt(e.bodyLength)),n!==-1&&Jt.addCustomMetadata(r,n),Jt.finishMessageBuffer(r,Jt.endMessage(r)),r.asUint8Array()}static from(e,r=0){if(e instanceof ce)return new t(0,be.V5,de.Schema,e);if(e instanceof Ke)return new t(r,be.V5,de.RecordBatch,e,e.metadata);if(e instanceof pt)return new t(r,be.V5,de.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}get metadata(){return this._metadata}header(){return this._createHeader()}isSchema(){return this.headerType===de.Schema}isRecordBatch(){return this.headerType===de.RecordBatch}isDictionaryBatch(){return this.headerType===de.DictionaryBatch}constructor(e,r,i,n,o){this._version=r,this._headerType=i,this.body=new Uint8Array(0),this._compression=n?.compression,n&&(this._createHeader=()=>n),this._bodyLength=ae(e),this._metadata=o||new Map}},Ke=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}get variadicBufferCounts(){return this._variadicBufferCounts}get metadata(){return this._metadata}constructor(e,r,i,n,o=[],a){this._nodes=r,this._buffers=i,this._length=ae(e),this._compression=n,this._variadicBufferCounts=o,this._metadata=a||new Map}},pt=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,r,i=!1){this._data=e,this._isDelta=i,this._id=ae(r)}},Me=class{constructor(e,r){this.offset=ae(e),this.length=ae(r)}},ir=class{constructor(e,r){this.length=ae(e),this.nullCount=ae(r)}},Wi=class{constructor(e,r=Di.BUFFER){this.type=e,this.method=r}};X.encode=n2;X.decode=e2;X.fromJSON=AS;ce.encode=r2;ce.decode=HO;ce.fromJSON=SS;Ke.encode=i2;Ke.decode=WO;Ke.fromJSON=vm;pt.encode=o2;pt.decode=JO;pt.fromJSON=IS;ir.encode=a2;ir.decode=KO;Me.encode=s2;Me.decode=GO;Wi.encode=US;Wi.decode=ES;c2=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})()});var Oe,js,Ji,Rl,Ms=f(()=>{Ft();hs();Oe=Object.freeze({done:!0,value:void 0}),js=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},Ji=class{tee(){return this._getDOMStream().tee()}pipe(e,r){return this._getNodeStream().pipe(e,r)}pipeTo(e,r){return this._getDOMStream().pipeTo(e,r)}pipeThrough(e,r){return this._getDOMStream().pipeThrough(e,r)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}},Rl=class extends Ji{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return T(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(Oe);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return nt.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return nt.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return T(this,void 0,void 0,function*(){return yield this.abort(e),Oe})}return(e){return T(this,void 0,void 0,function*(){return yield this.close(),Oe})}read(e){return T(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return T(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((r,i)=>{this.resolvers.push({resolve:r,reject:i})}):Promise.resolve(Oe)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}});var Gr,Kr,or,_m,wn,Gi=f(()=>{Ft();hs();fn();Ms();Xe();Ii();Gr=class extends Rl{write(e){if((e=P(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Ao(this.toUint8Array(!0)):this.toUint8Array(!1).then(Ao)}toUint8Array(e=!1){return e?jt(this._values)[0]:T(this,void 0,void 0,function*(){var r,i,n,o;let a=[],s=0;try{for(var u=!0,c=fr(this),l;l=yield c.next(),r=l.done,!r;u=!0){o=l.value,u=!1;let d=o;a.push(d),s+=d.byteLength}}catch(d){i={error:d}}finally{try{!u&&!r&&(n=c.return)&&(yield n.call(c))}finally{if(i)throw i.error}}return jt(a,s)[0]})}},Kr=class{constructor(e){e&&(this.source=new _m(nt.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},or=class t{constructor(e){e instanceof t?this.source=e.source:e instanceof Gr?this.source=new wn(nt.fromAsyncIterable(e)):Ku(e)?this.source=new wn(nt.fromNodeStream(e)):ds(e)?this.source=new wn(nt.fromDOMStream(e)):Ju(e)?this.source=new wn(nt.fromDOMStream(e.body)):hr(e)?this.source=new wn(nt.fromIterable(e)):pr(e)?this.source=new wn(nt.fromAsyncIterable(e)):qt(e)&&(this.source=new wn(nt.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},_m=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,r="read"){return this.source.next({cmd:r,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||Oe)}return(e){return Object.create(this.source.return&&this.source.return(e)||Oe)}},wn=class{constructor(e){this.source=e,this._closedPromise=new Promise(r=>this._closedPromiseResolve=r)}cancel(e){return T(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return T(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return T(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e){return T(this,arguments,void 0,function*(r,i="read"){return yield this.source.next({cmd:i,size:r})})}throw(e){return T(this,void 0,void 0,function*(){let r=this.source.throw&&(yield this.source.throw(e))||Oe;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}return(e){return T(this,void 0,void 0,function*(){let r=this.source.return&&(yield this.source.return(e))||Oe;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}}});var Cs,ei,bm=f(()=>{Ft();Gi();Xe();Cs=class extends Kr{constructor(e,r){super(),this.position=0,this.buffer=P(e),this.size=r===void 0?this.buffer.byteLength:r}readInt32(e){let{buffer:r,byteOffset:i}=this.readAt(e,4);return new DataView(r,i).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){let{buffer:r,size:i,position:n}=this;return r&&n<i?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(i,n+Math.min(i-n,e)),r.subarray(n,this.position)):null}readAt(e,r){let i=this.buffer,n=Math.min(this.size,e+r);return i?i.subarray(e,n):new Uint8Array(r)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}},ei=class extends or{constructor(e,r){super(),this.position=0,this._handle=e,typeof r=="number"?this.size=r:this._pending=T(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return T(this,void 0,void 0,function*(){let{buffer:r,byteOffset:i}=yield this.readAt(e,4);return new DataView(r,i).getInt32(0,!0)})}seek(e){return T(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return T(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:r,size:i,position:n}=this;if(r&&n<i){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let o=n,a=0,s=0,u=Math.min(i,o+Math.min(i-o,e)),c=new Uint8Array(Math.max(0,(this.position=u)-o));for(;(o+=s)<u&&(a+=s)<c.byteLength;)({bytesRead:s}=yield r.read(c,a,c.byteLength-a,o));return c}return null})}readAt(e,r){return T(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:i,size:n}=this;if(i&&e+r<n){let o=Math.min(n,e+r),a=new Uint8Array(o-e);return(yield i.read(a,0,r,e)).buffer}return new Uint8Array(r)})}close(){return T(this,void 0,void 0,function*(){let e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return T(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return T(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}});var xm={};Ue(xm,{BaseInt64:()=>Vs,Int128:()=>Zs,Int64:()=>xn,Uint64:()=>Re});function Jo(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}var Go,wm,Vs,Re,xn,Zs,Sm=f(()=>{Go=8,wm=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Vs=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let r=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),i=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),n=r[3]*i[3];this.buffer[0]=n&65535;let o=n>>>16;return n=r[2]*i[3],o+=n,n=r[3]*i[2]>>>0,o+=n,this.buffer[0]+=o<<16,this.buffer[1]=o>>>0<n?65536:0,this.buffer[1]+=o>>>16,this.buffer[1]+=r[1]*i[3]+r[2]*i[2]+r[3]*i[1],this.buffer[1]+=r[0]*i[3]+r[1]*i[2]+r[2]*i[1]+r[3]*i[0]<<16,this}_plus(e){let r=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],r<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=r}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${Jo(this.buffer[1])} ${Jo(this.buffer[0])}`}},Re=class t extends Vs{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,r=new Uint32Array(2)){return t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(2)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(2)){let i=e.length,n=new t(r);for(let o=0;o<i;){let a=Go<i-o?Go:i-o,s=new t(new Uint32Array([Number.parseInt(e.slice(o,o+a),10),0])),u=new t(new Uint32Array([wm[a],0]));n.times(u),n.plus(s),o+=a}return n}static convertArray(e){let r=new Uint32Array(e.length*2);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+2*i*4,2));return r}static multiply(e,r){return new t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}},xn=class t extends Vs{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){let r=this.buffer[1]<<0,i=e.buffer[1]<<0;return r<i||r===i&&this.buffer[0]<e.buffer[0]}static from(e,r=new Uint32Array(2)){return t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(2)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(2)){let i=e.startsWith("-"),n=e.length,o=new t(r);for(let a=i?1:0;a<n;){let s=Go<n-a?Go:n-a,u=new t(new Uint32Array([Number.parseInt(e.slice(a,a+s),10),0])),c=new t(new Uint32Array([wm[s],0]));o.times(c),o.plus(u),a+=s}return i?o.negate():o}static convertArray(e){let r=new Uint32Array(e.length*2);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+2*i*4,2));return r}static multiply(e,r){return new t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}},Zs=class t{constructor(e){this.buffer=e}high(){return new xn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new xn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){let r=new Re(new Uint32Array([this.buffer[3],0])),i=new Re(new Uint32Array([this.buffer[2],0])),n=new Re(new Uint32Array([this.buffer[1],0])),o=new Re(new Uint32Array([this.buffer[0],0])),a=new Re(new Uint32Array([e.buffer[3],0])),s=new Re(new Uint32Array([e.buffer[2],0])),u=new Re(new Uint32Array([e.buffer[1],0])),c=new Re(new Uint32Array([e.buffer[0],0])),l=Re.multiply(o,c);this.buffer[0]=l.low();let d=new Re(new Uint32Array([l.high(),0]));return l=Re.multiply(n,c),d.plus(l),l=Re.multiply(o,u),d.plus(l),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(l)?1:0,this.buffer[2]=d.high(),new Re(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Re.multiply(i,c)).plus(Re.multiply(n,u)).plus(Re.multiply(o,s)),this.buffer[3]+=Re.multiply(r,c).plus(Re.multiply(i,u)).plus(Re.multiply(n,s)).plus(Re.multiply(o,a)).low(),this}plus(e){let r=new Uint32Array(4);return r[3]=this.buffer[3]+e.buffer[3]>>>0,r[2]=this.buffer[2]+e.buffer[2]>>>0,r[1]=this.buffer[1]+e.buffer[1]>>>0,r[0]=this.buffer[0]+e.buffer[0]>>>0,r[0]<this.buffer[0]>>>0&&++r[1],r[1]<this.buffer[1]>>>0&&++r[2],r[2]<this.buffer[2]>>>0&&++r[3],this.buffer[3]=r[3],this.buffer[2]=r[2],this.buffer[1]=r[1],this.buffer[0]=r[0],this}hex(){return`${Jo(this.buffer[3])} ${Jo(this.buffer[2])} ${Jo(this.buffer[1])} ${Jo(this.buffer[0])}`}static multiply(e,r){return new t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}static from(e,r=new Uint32Array(4)){return t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(4)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(4)){let i=e.startsWith("-"),n=e.length,o=new t(r);for(let a=i?1:0;a<n;){let s=Go<n-a?Go:n-a,u=new t(new Uint32Array([Number.parseInt(e.slice(a,a+s),10),0,0,0])),c=new t(new Uint32Array([wm[s],0,0,0]));o.times(c),o.plus(u),a+=s}return i?o.negate():o}static convertArray(e){let r=new Uint32Array(e.length*4);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+16*i,4));return r}}});var km={};Ue(km,{toIntervalDayTimeInt32Array:()=>Im,toIntervalDayTimeObjects:()=>u2,toIntervalMonthDayNanoInt32Array:()=>$m,toIntervalMonthDayNanoObjects:()=>l2});function Im(t){var e,r;let i=t.length,n=new Int32Array(i*2);for(let o=0,a=0;o<i;o++){let s=t[o];n[a++]=(e=s.days)!==null&&e!==void 0?e:0,n[a++]=(r=s.milliseconds)!==null&&r!==void 0?r:0}return n}function $m(t){var e,r;let i=t.length,n=new Int32Array(i*4);for(let o=0,a=0;o<i;o++){let s=t[o];n[a++]=(e=s.months)!==null&&e!==void 0?e:0,n[a++]=(r=s.days)!==null&&r!==void 0?r:0;let u=s.nanoseconds;if(u){let c=BigInt(u);n[a++]=Number(c&BigInt(4294967295))>>>0,n[a++]=Number(c>>BigInt(32))>>>0}else a+=2}return n}function u2(t){let e=t.length,r=new Array(e/2);for(let i=0,n=0;i<e;i+=2)r[n++]={days:t[i],milliseconds:t[i+1]};return r}function l2(t,e){let r=t.length,i=new Array(r/4);for(let n=0,o=0;n<r;n+=4){let a=BigInt(t[n+3])<<BigInt(32)|BigInt(t[n+2]>>>0);i[o++]={months:t[n],days:t[n+1],nanoseconds:e?`${a}`:a}}return i}var Dm=f(()=>{});function LS(t){let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)e[r>>1]=Number.parseInt(t.slice(r,r+2),16);return e}function d2(t){return LS(t.join(""))}function PS(t,e){let r=new Uint8Array(t.length*16),i=new DataView(r.buffer);for(let[n,o]of t.entries()){let a=n*16,s=o.SIZE;if(i.setInt32(a,s,!0),o.INLINED!==void 0){let u=e(o.INLINED);for(let c=0;c<u.length&&c<12;c++)r[a+4+c]=u[c]}else{let u=o.PREFIX_HEX;for(let c=0;c<8&&c<u.length;c+=2)r[a+4+(c>>1)]=Number.parseInt(u.slice(c,c+2),16);i.setInt32(a+8,o.BUFFER_INDEX,!0),i.setInt32(a+12,o.OFFSET,!0)}}return r}function f2(t){return PS(t,e=>{let r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i>>1]=Number.parseInt(e.slice(i,i+2),16);return r})}function p2(t){return PS(t,e=>new TextEncoder().encode(e))}var Ko,jl,Ml,FS=f(()=>{Sr();yt();Se();wr();Vo();fn();Sm();qe();Xe();Dm();Ko=class extends W{constructor(e,r,i,n,o=be.V5,a=[]){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.variadicBufferIndex=-1,this.bytes=e,this.nodes=r,this.buffers=i,this.dictionaries=n,this.metadataVersion=o,this.variadicBufferCounts=a}visit(e){return super.visit(e instanceof X?e.type:e)}visitNull(e,{length:r}=this.nextFieldNode()){return E({type:e,length:r})}visitBool(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitInt(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFloat(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitUtf8(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeUtf8(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitUtf8View(e,{length:r,nullCount:i}=this.nextFieldNode()){let n=this.readNullBitmap(e,i),o=this.readData(e),a=this.readVariadicBuffers(this.nextVariadicBufferCount());return E({type:e,length:r,nullCount:i,nullBitmap:n,views:o,variadicBuffers:a})}visitBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinaryView(e,{length:r,nullCount:i}=this.nextFieldNode()){let n=this.readNullBitmap(e,i),o=this.readData(e),a=this.readVariadicBuffers(this.nextVariadicBufferCount());return E({type:e,length:r,nullCount:i,nullBitmap:n,views:o,variadicBuffers:a})}visitFixedSizeBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDate(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTimestamp(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTime(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDecimal(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitList(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitLargeList(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),children:this.visitMany(e.children)})}visitUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return this.metadataVersion<be.V5&&this.readNullBitmap(e,i),e.mode===ke.Sparse?this.visitSparseUnion(e,{length:r,nullCount:i}):this.visitDenseUnion(e,{length:r,nullCount:i})}visitDenseUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDuration(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFixedSizeList(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),child:this.visit(e.children[0])})}visitMap(e,{length:r,nullCount:i}=this.nextFieldNode()){return E({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,r,i=this.nextBufferRange()){return r>0&&this.readData(e,i)||new Uint8Array(0)}readOffsets(e,r){return this.readData(e,r)}readTypeIds(e,r){return this.readData(e,r)}readData(e,{length:r,offset:i}=this.nextBufferRange()){return this.bytes.subarray(i,i+r)}readVariadicBuffers(e){return Array.from({length:e},()=>this.readData(null))}nextVariadicBufferCount(){var e;return(e=this.variadicBufferCounts[++this.variadicBufferIndex])!==null&&e!==void 0?e:0}readDictionary(e){return this.dictionaries.get(e.id)}},jl=class extends Ko{constructor(e,r,i,n,o,a=[]){super(new Uint8Array(0),r,i,n,o,a),this.sources=e}readNullBitmap(e,r,{offset:i}=this.nextBufferRange()){return r<=0?new Uint8Array(0):Mi(this.sources[i])}readOffsets(e,{offset:r}=this.nextBufferRange()){return oe(Uint8Array,oe(e.OffsetArrayType,this.sources[r]))}readTypeIds(e,{offset:r}=this.nextBufferRange()){return oe(Uint8Array,oe(e.ArrayType,this.sources[r]))}readData(e,{offset:r}=this.nextBufferRange()){let{sources:i}=this;if(k.isTimestamp(e))return oe(Uint8Array,xn.convertArray(i[r]));if((k.isInt(e)||k.isTime(e))&&e.bitWidth===64||k.isDuration(e))return oe(Uint8Array,xn.convertArray(i[r]));if(k.isDate(e)&&e.unit===Ze.MILLISECOND)return oe(Uint8Array,xn.convertArray(i[r]));if(k.isDecimal(e))return oe(Uint8Array,Zs.convertArray(i[r]));if(k.isBinary(e)||k.isLargeBinary(e)||k.isFixedSizeBinary(e))return d2(i[r]);if(k.isBinaryView(e))return f2(i[r]);if(k.isUtf8View(e))return p2(i[r]);if(k.isBool(e))return Mi(i[r]);if(k.isUtf8(e)||k.isLargeUtf8(e))return Rt(i[r].join(""));if(k.isInterval(e))switch(e.unit){case ze.DAY_TIME:return Im(i[r]);case ze.MONTH_DAY_NANO:return $m(i[r]);default:break}return oe(Uint8Array,oe(e.ArrayType,i[r].map(n=>+n)))}readVariadicBuffers(e){let r=[];for(let i=0;i<e;i++){let{offset:n}=this.nextBufferRange(),o=this.sources[n];r.push(LS(o))}return r}};Ml=class extends Ko{constructor(e,r,i,n,o,a=[]){super(new Uint8Array(0),r,i,n,o,a),this.bodyChunks=e}readData(e,r=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}});var Yo,Am=f(()=>{Ir();Ne();Xe();Yo=class extends ft{constructor(e){super(e),this._values=new Tt(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,P(r))}_flushPending(e,r){let i=this._offsets,n=this._values.reserve(r).buffer,o=0;for(let[a,s]of e)if(s===void 0)i.set(a,0);else{let u=s.length;n.set(s,o),i.set(a,u),o+=u}}}});var Xo,Bm=f(()=>{Xe();Ir();Ne();Xo=class extends ft{constructor(e){super(e),this._values=new Tt(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,P(r))}_flushPending(e,r){let i=this._offsets,n=this._values.reserve(r).buffer,o=0;for(let[a,s]of e)if(s===void 0)i.set(a,BigInt(0));else{let u=s.length;n.set(s,o),i.set(a,BigInt(u)),o+=u}}}});var Cl,RS=f(()=>{Ir();Ne();Cl=class extends Ae{constructor(e){super(e),this._values=new Wo}setValue(e,r){this._values.set(e,+r)}}});var Ki,Hs,Ws,jS=f(()=>{Ne();Ht();Ki=class extends Ge{};Ki.prototype._setValue=Kh;Hs=class extends Ki{};Hs.prototype._setValue=ol;Ws=class extends Ki{};Ws.prototype._setValue=al});var Js,MS=f(()=>{Ne();Ht();Js=class extends Ge{};Js.prototype._setValue=qh});var Vl,CS=f(()=>{Se();Ne();Tm();Vl=class extends Ae{constructor({type:e,nullValues:r,dictionaryHashFunction:i}){super({type:new At(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Yi({type:this.type.indices,nullValues:r}),this.dictionary=Yi({type:this.type.dictionary,nullValues:null}),typeof i=="function"&&(this.valueToKey=i)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(e){return this.indices.isValid(e)}setValid(e,r){let i=this.indices;return r=i.setValid(e,r),this.length=i.length,r}setValue(e,r){let i=this._keysToIndices,n=this.valueToKey(r),o=i[n];return o===void 0&&(i[n]=o=this._dictionaryOffset+this.dictionary.append(r).length-1),this.indices.setValue(e,o)}flush(){let e=this.type,r=this._dictionary,i=this.dictionary.toVector(),n=this.indices.flush().clone(e);return n.dictionary=r?r.concat(i):i,this.finished||(this._dictionaryOffset+=i.length),this._dictionary=n.dictionary,this.clear(),n}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(e){return typeof e=="string"?e:`${e}`}}});var Gs,VS=f(()=>{Ne();Ht();Gs=class extends Ge{};Gs.prototype._setValue=Gh});var Zl,ZS=f(()=>{yt();Ne();Se();Zl=class extends Ae{setValue(e,r){let[i]=this.children,n=e*this.stride;for(let o=-1,a=this.stride;++o<a;)i.set(n+o,r[o])}setValid(e,r){return super.setValid(e,r)||this.children[0].setValid((e+1)*this.stride-1,!1),r}addChild(e,r="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");let i=this.children.push(e);return this.type=new Dt(this.type.listSize,new X(r,e.type,!0)),i}}});var Xi,Hl,Wl,Jl,HS=f(()=>{Ns();Ne();Xi=class extends Ge{setValue(e,r){this._values.set(e,r)}},Hl=class extends Xi{setValue(e,r){super.setValue(e,Us(r))}},Wl=class extends Xi{},Jl=class extends Xi{}});var ti,Ks,Ys,Xs,WS=f(()=>{Ne();Ht();ti=class extends Ge{};ti.prototype._setValue=Qh;Ks=class extends ti{};Ks.prototype._setValue=ml;Ys=class extends ti{};Ys.prototype._setValue=gl;Xs=class extends ti{};Xs.prototype._setValue=yl});var Sn,qs,Qs,ec,tc,JS=f(()=>{Ne();Ht();Sn=class extends Ge{};Sn.prototype._setValue=em;qs=class extends Sn{};qs.prototype._setValue=vl;Qs=class extends Sn{};Qs.prototype._setValue=_l;ec=class extends Sn{};ec.prototype._setValue=bl;tc=class extends Sn{};tc.prototype._setValue=wl});var ar,Gl,Kl,Yl,Xl,ql,Ql,ed,td,GS=f(()=>{Ne();ar=class extends Ge{setValue(e,r){this._values.set(e,r)}},Gl=class extends ar{},Kl=class extends ar{},Yl=class extends ar{},Xl=class extends ar{},ql=class extends ar{},Ql=class extends ar{},ed=class extends ar{},td=class extends ar{}});var rd,KS=f(()=>{yt();Se();Ir();Ne();rd=class extends ft{constructor(e){super(e),this._offsets=new Qn(e.type)}addChild(e,r="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new er(new X(r,e.type,!0)),this.numChildren-1}_flushPending(e){let r=this._offsets,[i]=this.children;for(let[n,o]of e)if(typeof o>"u")r.set(n,0);else{let a=o,s=a.length,u=r.set(n,s).buffer[n];for(let c=-1;++c<s;)i.set(u+c,a[c])}}}});var nd,YS=f(()=>{yt();Se();Ir();Ur();Ne();nd=class extends ft{constructor(e){super(e),this._offsets=new Qn(e.type)}addChild(e,r="0"){if(this.numChildren>0)throw new Error("LargeListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new tr(new X(r,e.type,!0)),this.numChildren-1}_flushPending(e){let r=this._offsets,[i]=this.children;for(let[n,o]of e)if(typeof o>"u")r.set(n,BigInt(0));else{let a=o,s=a.length,u=ae(r.set(n,BigInt(s)).buffer[n]);for(let c=-1;++c<s;)i.set(u+c,a[c])}}}});var id,XS=f(()=>{yt();Se();Ne();id=class extends ft{set(e,r){return super.set(e,r)}setValue(e,r){let i=r instanceof Map?r:new Map(Object.entries(r)),n=this._pending||(this._pending=new Map),o=n.get(e);o&&(this._pendingLength-=o.size),this._pendingLength+=i.size,n.set(e,i)}addChild(e,r=`${this.numChildren}`){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new nr(new X(r,e.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(e){let r=this._offsets,[i]=this.children;for(let[n,o]of e)if(o===void 0)r.set(n,0);else{let{[n]:a,[n+1]:s}=r.set(n,o.size).buffer;for(let u of o.entries())if(i.set(a,u),++a>=s)break}}}});var od,qS=f(()=>{Ne();od=class extends Ae{setValue(e,r){}setValid(e,r){return this.length=Math.max(e+1,this.length),r}}});var ad,QS=f(()=>{yt();Ne();Se();ad=class extends Ae{setValue(e,r){let{children:i,type:n}=this;switch(Array.isArray(r)||r.constructor){case!0:return n.children.forEach((o,a)=>i[a].set(e,r[a]));case Map:return n.children.forEach((o,a)=>i[a].set(e,r.get(o.name)));default:return n.children.forEach((o,a)=>i[a].set(e,r[o.name]))}}setValid(e,r){return super.setValid(e,r)||this.children.forEach(i=>i.setValid(e,r)),r}addChild(e,r=`${this.numChildren}`){let i=this.children.push(e);return this.type=new De([...this.type.children,new X(r,e.type,!0)]),i}}});var In,rc,nc,ic,oc,eI=f(()=>{Ne();Ht();In=class extends Ge{};In.prototype._setValue=Yh;rc=class extends In{};rc.prototype._setValue=sl;nc=class extends In{};nc.prototype._setValue=cl;ic=class extends In{};ic.prototype._setValue=ul;oc=class extends In{};oc.prototype._setValue=ll});var $n,ac,sc,cc,uc,tI=f(()=>{Ne();Ht();$n=class extends Ge{};$n.prototype._setValue=Xh;ac=class extends $n{};ac.prototype._setValue=dl;sc=class extends $n{};sc.prototype._setValue=fl;cc=class extends $n{};cc.prototype._setValue=pl;uc=class extends $n{};uc.prototype._setValue=hl});var qo,sd,cd,rI=f(()=>{yt();Ir();Ne();Se();qo=class extends Ae{constructor(e){super(e),this._typeIds=new vn(Int8Array,0,1),typeof e.valueToChildTypeId=="function"&&(this._valueToChildTypeId=e.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(e,r){return this.set(this.length,e,r)}set(e,r,i){return i===void 0&&(i=this._valueToChildTypeId(this,r,e)),this.setValue(e,r,i),this}setValue(e,r,i){this._typeIds.set(e,i);let n=this.type.typeIdToChildIndex[i],o=this.children[n];o?.set(e,r),this.length=Math.max(e+1,this.length)}addChild(e,r=`${this.children.length}`){let i=this.children.push(e),{type:{children:n,mode:o,typeIds:a}}=this,s=[...n,new X(r,e.type)];return this.type=new rr(o,[...a,i],s),i}_valueToChildTypeId(e,r,i){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},sd=class extends qo{},cd=class extends qo{constructor(e){super(e),this._offsets=new vn(Int32Array)}setValue(e,r,i){let n=this._typeIds.set(e,i).buffer[e],o=this.getChildAt(this.type.typeIdToChildIndex[n]),a=this._offsets.set(e,o.length).buffer[e];o?.set(a,r),this.length=Math.max(e+1,this.length)}}});var lc,nI=f(()=>{fn();Am();Ir();Ne();lc=class extends ft{constructor(e){super(e),this._values=new Tt(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,Rt(r))}_flushPending(e,r){}};lc.prototype._flushPending=Yo.prototype._flushPending});var dc,iI=f(()=>{fn();Ir();Ne();Bm();dc=class extends ft{constructor(e){super(e),this._values=new Tt(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,Rt(r))}_flushPending(e,r){}};dc.prototype._flushPending=Xo.prototype._flushPending});var Qo,zm=f(()=>{Se();Ne();Ir();Xe();Sr();Qo=class extends Ae{constructor(e){super(e),this._variadicBuffers=[],this._currentBuffer=null,this._currentBufferIndex=0,this._currentBufferOffset=0,this._bufferSize=32*1024*1024,this._views=new Tt(Uint8Array)}get byteLength(){let e=0;this._views&&(e+=this._views.byteLength),this._nulls&&(e+=this._nulls.byteLength);for(let r of this._variadicBuffers)e+=r.byteLength;return this._currentBuffer&&(e+=this._currentBuffer.byteLength),e}setValue(e,r){return this.writeBinaryValue(e,this.encodeValue(r))}writeBinaryValue(e,r){let i=r.length,n=(e+1)*re.ELEMENT_WIDTH,o=this._views.length;n>o&&this._views.reserve(n-o);let a=this._views.buffer,s=e*re.ELEMENT_WIDTH,u=new DataView(a.buffer,a.byteOffset+s,re.ELEMENT_WIDTH);if(u.setInt32(re.LENGTH_OFFSET,i,!0),i<=re.INLINE_CAPACITY){a.set(r,s+re.INLINE_OFFSET);for(let c=i;c<re.INLINE_CAPACITY;c++)a[s+re.INLINE_OFFSET+c]=0}else{let c=new DataView(r.buffer,r.byteOffset,Math.min(4,i));u.setUint32(re.INLINE_OFFSET,c.getUint32(0,!0),!0),(!this._currentBuffer||this._currentBufferOffset+i>this._bufferSize)&&(this._currentBuffer&&this._variadicBuffers.push(this._currentBuffer.buffer.slice(0,this._currentBufferOffset)),this._currentBuffer=new Tt(Uint8Array),this._currentBufferIndex=this._variadicBuffers.length,this._currentBufferOffset=0),this._currentBuffer.reserve(i).buffer.set(r,this._currentBufferOffset),u.setInt32(re.BUFFER_INDEX_OFFSET,this._currentBufferIndex,!0),u.setInt32(re.BUFFER_OFFSET_OFFSET,this._currentBufferOffset,!0),this._currentBufferOffset+=i}return this}encodeValue(e){return P(e)}setValid(e,r){let i=(e+1)*re.ELEMENT_WIDTH,n=this._views.length;i>n&&this._views.reserve(i-n);let o=super.setValid(e,r);if(!o){let a=this._views.buffer,s=e*re.ELEMENT_WIDTH;for(let u=0;u<re.ELEMENT_WIDTH;u++)a[s+u]=0}return o}clear(){return this._variadicBuffers=[],this._currentBuffer=null,this._currentBufferIndex=0,this._currentBufferOffset=0,this._views.clear(),super.clear()}flush(){let{type:e,length:r,nullCount:i,_views:n,_nulls:o}=this;this._currentBuffer&&this._currentBufferOffset>0&&(this._variadicBuffers.push(this._currentBuffer.buffer.slice(0,this._currentBufferOffset)),this._currentBuffer=null,this._currentBufferOffset=0);let a=n.flush(r*re.ELEMENT_WIDTH),s=i>0?o.flush(r):void 0,u=this._variadicBuffers.slice();return this._variadicBuffers=[],this._currentBufferIndex=0,this.clear(),E({type:e,length:r,nullCount:i,nullBitmap:s,views:a,variadicBuffers:u})}finish(){return this.finished=!0,this}}});var ud,oI=f(()=>{zm();fn();ud=class extends Qo{constructor(e){super(e)}setValue(e,r){return this.writeBinaryValue(e,Rt(r))}}});var Om,aI,sI=f(()=>{wr();Am();Bm();RS();jS();MS();CS();VS();ZS();HS();WS();JS();GS();KS();YS();XS();qS();QS();eI();tI();rI();nI();iI();zm();oI();Om=class extends W{visitNull(){return od}visitBool(){return Cl}visitInt(){return ar}visitInt8(){return Gl}visitInt16(){return Kl}visitInt32(){return Yl}visitInt64(){return Xl}visitUint8(){return ql}visitUint16(){return Ql}visitUint32(){return ed}visitUint64(){return td}visitFloat(){return Xi}visitFloat16(){return Hl}visitFloat32(){return Wl}visitFloat64(){return Jl}visitUtf8(){return lc}visitLargeUtf8(){return dc}visitBinary(){return Yo}visitLargeBinary(){return Xo}visitFixedSizeBinary(){return Gs}visitDate(){return Ki}visitDateDay(){return Hs}visitDateMillisecond(){return Ws}visitTimestamp(){return In}visitTimestampSecond(){return rc}visitTimestampMillisecond(){return nc}visitTimestampMicrosecond(){return ic}visitTimestampNanosecond(){return oc}visitTime(){return $n}visitTimeSecond(){return ac}visitTimeMillisecond(){return sc}visitTimeMicrosecond(){return cc}visitTimeNanosecond(){return uc}visitDecimal(){return Js}visitList(){return rd}visitLargeList(){return nd}visitStruct(){return ad}visitUnion(){return qo}visitDenseUnion(){return cd}visitSparseUnion(){return sd}visitDictionary(){return Vl}visitInterval(){return ti}visitIntervalDayTime(){return Ks}visitIntervalYearMonth(){return Ys}visitIntervalMonthDayNano(){return Xs}visitDuration(){return Sn}visitDurationSecond(){return qs}visitDurationMillisecond(){return Qs}visitDurationMicrosecond(){return ec}visitDurationNanosecond(){return tc}visitFixedSizeList(){return Zl}visitMap(){return id}visitBinaryView(){return Qo}visitUtf8View(){return ud}},aI=new Om});function vt(t,e){return e instanceof t.constructor}function kn(t,e){return t===e||vt(t,e)}function Dn(t,e){return t===e||vt(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function ld(t,e){return t===e||vt(t,e)&&t.precision===e.precision}function h2(t,e){return t===e||vt(t,e)&&t.byteWidth===e.byteWidth}function Em(t,e){return t===e||vt(t,e)&&t.unit===e.unit}function fc(t,e){return t===e||vt(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function pc(t,e){return t===e||vt(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function cI(t,e){return t===e||vt(t,e)&&t.children.length===e.children.length&&Yr.compareManyFields(t.children,e.children)}function m2(t,e){return t===e||vt(t,e)&&t.children.length===e.children.length&&Yr.compareManyFields(t.children,e.children)}function Um(t,e){return t===e||vt(t,e)&&t.mode===e.mode&&t.typeIds.every((r,i)=>r===e.typeIds[i])&&Yr.compareManyFields(t.children,e.children)}function g2(t,e){return t===e||vt(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&Yr.visit(t.indices,e.indices)&&Yr.visit(t.dictionary,e.dictionary)}function dd(t,e){return t===e||vt(t,e)&&t.unit===e.unit}function hc(t,e){return t===e||vt(t,e)&&t.unit===e.unit}function y2(t,e){return t===e||vt(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&Yr.compareManyFields(t.children,e.children)}function v2(t,e){return t===e||vt(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&Yr.compareManyFields(t.children,e.children)}function qi(t,e){return Yr.compareSchemas(t,e)}function uI(t,e){return Yr.compareFields(t,e)}function lI(t,e){return Yr.visit(t,e)}var C,Yr,fd=f(()=>{wr();C=class extends W{compareSchemas(e,r){return e===r||r instanceof e.constructor&&this.compareManyFields(e.fields,r.fields)}compareManyFields(e,r){return e===r||Array.isArray(e)&&Array.isArray(r)&&e.length===r.length&&e.every((i,n)=>this.compareFields(i,r[n]))}compareFields(e,r){return e===r||r instanceof e.constructor&&e.name===r.name&&e.nullable===r.nullable&&this.visit(e.type,r.type)}};C.prototype.visitNull=kn;C.prototype.visitBool=kn;C.prototype.visitInt=Dn;C.prototype.visitInt8=Dn;C.prototype.visitInt16=Dn;C.prototype.visitInt32=Dn;C.prototype.visitInt64=Dn;C.prototype.visitUint8=Dn;C.prototype.visitUint16=Dn;C.prototype.visitUint32=Dn;C.prototype.visitUint64=Dn;C.prototype.visitFloat=ld;C.prototype.visitFloat16=ld;C.prototype.visitFloat32=ld;C.prototype.visitFloat64=ld;C.prototype.visitUtf8=kn;C.prototype.visitLargeUtf8=kn;C.prototype.visitUtf8View=kn;C.prototype.visitBinary=kn;C.prototype.visitLargeBinary=kn;C.prototype.visitBinaryView=kn;C.prototype.visitFixedSizeBinary=h2;C.prototype.visitDate=Em;C.prototype.visitDateDay=Em;C.prototype.visitDateMillisecond=Em;C.prototype.visitTimestamp=fc;C.prototype.visitTimestampSecond=fc;C.prototype.visitTimestampMillisecond=fc;C.prototype.visitTimestampMicrosecond=fc;C.prototype.visitTimestampNanosecond=fc;C.prototype.visitTime=pc;C.prototype.visitTimeSecond=pc;C.prototype.visitTimeMillisecond=pc;C.prototype.visitTimeMicrosecond=pc;C.prototype.visitTimeNanosecond=pc;C.prototype.visitDecimal=kn;C.prototype.visitList=cI;C.prototype.visitLargeList=cI;C.prototype.visitStruct=m2;C.prototype.visitUnion=Um;C.prototype.visitDenseUnion=Um;C.prototype.visitSparseUnion=Um;C.prototype.visitDictionary=g2;C.prototype.visitInterval=dd;C.prototype.visitIntervalDayTime=dd;C.prototype.visitIntervalYearMonth=dd;C.prototype.visitIntervalMonthDayNano=dd;C.prototype.visitDuration=hc;C.prototype.visitDurationSecond=hc;C.prototype.visitDurationMillisecond=hc;C.prototype.visitDurationMicrosecond=hc;C.prototype.visitDurationNanosecond=hc;C.prototype.visitFixedSizeList=y2;C.prototype.visitMap=v2;Yr=new C});function Yi(t){let e=t.type,r=new(aI.getVisitFn(e)())(t);if(e.children&&e.children.length>0){let i=t.children||[],n={nullValues:t.nullValues},o=Array.isArray(i)?((a,s)=>i[s]||n):(({name:a})=>i[a]||n);for(let[a,s]of e.children.entries()){let{type:u}=s,c=o(s,a);r.children.push(Yi(Object.assign(Object.assign({},c),{type:u})))}}return r}var Tm=f(()=>{sI()});function pd(t,e){return _2(t,e.map(r=>r.data.concat()))}function _2(t,e){let r=[...t.fields],i=[],n={numBatches:e.reduce((d,h)=>Math.max(d,h.length),0)},o=0,a=0,s=-1,u=e.length,c,l=[];for(;n.numBatches-- >0;){for(a=Number.POSITIVE_INFINITY,s=-1;++s<u;)l[s]=c=e[s].shift(),a=Math.min(a,c?c.length:a);Number.isFinite(a)&&(l=b2(r,a,l,e,n),a>0&&(i[o++]=E({type:new De(r),length:a,nullCount:0,children:l.slice()})))}return[t=t.assign(r),i.map(d=>new Be(t,d))]}function b2(t,e,r,i,n){var o;let a=(e+63&-64)>>3;for(let s=-1,u=i.length;++s<u;){let c=r[s],l=c?.length;if(l>=e)l===e?r[s]=c:(r[s]=c.slice(0,e),n.numBatches=Math.max(n.numBatches,i[s].unshift(c.slice(e,l-e))));else{let d=t[s];t[s]=d.clone({nullable:!0}),r[s]=(o=c?._changeLengthAndBackfillNullBitmap(e))!==null&&o!==void 0?o:E({type:d.type,length:e,nullCount:e,nullBitmap:new Uint8Array(a)})}}return r}var dI=f(()=>{Sr();Se();Qi()});var fI,pI,Qe,mc=f(()=>{qe();Sr();Bt();yt();Se();fd();dI();zl();Pi();Ht();Ol();El();Co();Qi();pI=Symbol.for("apache-arrow/Table"),Qe=class t{static isTable(e){return e?.[pI]===!0}constructor(...e){var r,i;if(e.length===0)return this.batches=[],this.schema=new ce([]),this._offsets=[0],this;let n,o;e[0]instanceof ce&&(n=e.shift()),e.at(-1)instanceof Uint32Array&&(o=e.pop());let a=u=>{if(u){if(u instanceof Be)return[u];if(u instanceof t)return u.batches;if(u instanceof ee){if(u.type instanceof De)return[new Be(new ce(u.type.children),u)]}else{if(Array.isArray(u))return u.flatMap(c=>a(c));if(typeof u[Symbol.iterator]=="function")return[...u].flatMap(c=>a(c));if(typeof u=="object"){let c=Object.keys(u),l=c.map(p=>new N([u[p]])),d=n??new ce(c.map((p,v)=>new X(String(p),l[v].type,l[v].nullable))),[,h]=pd(d,l);return h.length===0?[new Be(u)]:h}}}return[]},s=e.flatMap(u=>a(u));if(n=(i=n??((r=s[0])===null||r===void 0?void 0:r.schema))!==null&&i!==void 0?i:new ce([]),!(n instanceof ce))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let u of s){if(!(u instanceof Be))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!qi(n,u.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=n,this.batches=s,this._offsets=o??Dl(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,r)=>e+r.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=kl(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(Fi(e,this.numRows))}set(e,r){}indexOf(e,r){return-1}[Symbol.iterator](){return this.batches.length>0?Ho.visit(new N(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
14
14
|
${this.toArray().join(`,
|
|
15
15
|
`)}
|
|
16
|
-
]`}concat(...t){let e=this.schema,n=this.data.concat(t.flatMap(({data:i})=>i));return new St(e,n.map(i=>new lt(e,i)))}slice(t,e){let n=this.schema;[t,e]=Vs({length:this.numRows},t,e);let i=Ha(this.data,this._offsets,t,e);return new St(n,i.map(s=>new lt(n,s)))}getChild(t){return this.getChildAt(this.schema.fields.findIndex(e=>e.name===t))}getChildAt(t){if(t>-1&&t<this.schema.fields.length){let e=this.data.map(n=>n.children[t]);if(e.length===0){let{type:n}=this.schema.fields[t],i=A({type:n,length:0,nullCount:0});e.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new v(e)}return null}setChild(t,e){var n;return this.setChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(i=>i.name===t),e)}setChildAt(t,e){let n=this.schema,i=[...this.batches];if(t>-1&&t<this.numCols){e||(e=new v([A({type:new Yt,length:this.numRows})]));let s=n.fields.slice(),o=s[t].clone({type:e.type}),a=this.schema.fields.map((l,c)=>this.getChildAt(c));[s[t],a[t]]=[o,e],[n,i]=Ac(n,a)}return new St(n,i)}select(t){let e=this.schema.fields.reduce((n,i,s)=>n.set(i.name,s),new Map);return this.selectAt(t.map(n=>e.get(n)).filter(n=>n>-1))}selectAt(t){let e=this.schema.selectAt(t),n=this.batches.map(i=>i.selectAt(t));return new St(e,n)}assign(t){let e=this.schema.fields,[n,i]=t.schema.fields.reduce((a,l,c)=>{let[u,h]=a,m=e.findIndex(p=>p.name===l.name);return~m?h[m]=c:u.push(c),a},[[],[]]),s=this.schema.assign(t.schema),o=[...e.map((a,l)=>[l,i[l]]).map(([a,l])=>l===void 0?this.getChildAt(a):t.getChildAt(l)),...n.map(a=>t.getChildAt(a))].filter(Boolean);return new St(...Ac(s,o))}};tm=Symbol.toStringTag;St[tm]=(r=>(r.schema=null,r.batches=[],r._offsets=new Uint32Array([0]),r._nullCount=-1,r[Symbol.isConcatSpreadable]=!0,r.isValid=ki(Hs),r.get=ki(Bt.getVisitFn(f.Struct)),r.set=$a(Ht.getVisitFn(f.Struct)),r.indexOf=Za(Hn.getVisitFn(f.Struct)),"Table"))(St.prototype)});function em(r,t,e=t.reduce((n,i)=>Math.max(n,i.length),0)){var n;let i=[...r.fields],s=[...t],o=(e+63&-64)>>3;for(let[a,l]of r.fields.entries()){let c=t[a];(!c||c.length!==e)&&(i[a]=l.clone({nullable:!0}),s[a]=(n=c?._changeLengthAndBackfillNullBitmap(e))!==null&&n!==void 0?n:A({type:l.type,length:e,nullCount:e,nullBitmap:new Uint8Array(o)}))}return[r.assign(i),A({type:new ct(i),length:e,children:s})]}function nm(r,t,e=new Map){var n,i;if(((n=r?.length)!==null&&n!==void 0?n:0)>0&&r?.length===t?.length)for(let s=-1,o=r.length;++s<o;){let{type:a}=r[s],l=t[s];for(let c of[l,...((i=l?.dictionary)===null||i===void 0?void 0:i.data)||[]])nm(a.children,c?.children,e);if(_.isDictionary(a)){let{id:c}=a;if(!e.has(c))l?.dictionary&&e.set(c,l.dictionary);else if(e.get(c)!==l.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return e}var rm,lt,ei,Gi=d(()=>{Vr();Bc();Ae();Be();_t();Mi();Cn();Ie();Ga();Ya();lt=class{constructor(...t){switch(t.length){case 2:{if([this.schema]=t,!(this.schema instanceof $))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=A({nullCount:0,type:new ct(this.schema.fields),children:this.schema.fields.map(e=>A({type:e.type,nullCount:0}))})]=t,!(this.data instanceof Z))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=em(this.schema,this.data.children);break}case 1:{let[e]=t,{fields:n,children:i,length:s}=Object.keys(e).reduce((l,c,u)=>(l.children[u]=e[c],l.length=Math.max(l.length,e[c].length),l.fields[u]=U.new({name:c,type:e[c].type,nullable:!0}),l),{length:0,fields:new Array,children:new Array}),o=new $(n),a=A({type:new ct(n),length:s,children:i,nullCount:0});[this.schema,this.data]=em(o,a.children,s);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=nm(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(t){return this.data.getValid(t)}get(t){return Bt.visit(this.data,t)}at(t){return this.get(Un(t,this.numRows))}set(t,e){return Ht.visit(this.data,t,e)}indexOf(t,e){return Hn.visit(this.data,t,e)}[Symbol.iterator](){return Ci.visit(new v([this.data]))}toArray(){return[...this]}concat(...t){return new St(this.schema,[this,...t])}slice(t,e){let[n]=new v([this.data]).slice(t,e).data;return new lt(this.schema,n)}getChild(t){var e;return this.getChildAt((e=this.schema.fields)===null||e===void 0?void 0:e.findIndex(n=>n.name===t))}getChildAt(t){return t>-1&&t<this.schema.fields.length?new v([this.data.children[t]]):null}setChild(t,e){var n;return this.setChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(i=>i.name===t),e)}setChildAt(t,e){let n=this.schema,i=this.data;if(t>-1&&t<this.numCols){e||(e=new v([A({type:new Yt,length:this.numRows})]));let s=n.fields.slice(),o=i.children.slice(),a=s[t].clone({type:e.type});[s[t],o[t]]=[a,e.data[0]],n=new $(s,new Map(this.schema.metadata)),i=A({type:new ct(s),children:o})}return new lt(n,i)}select(t){let e=this.schema.select(t),n=new ct(e.fields),i=[];for(let s of t){let o=this.schema.fields.findIndex(a=>a.name===s);~o&&(i[o]=this.data.children[o])}return new lt(e,A({type:n,length:this.numRows,children:i}))}selectAt(t){let e=this.schema.selectAt(t),n=t.map(s=>this.data.children[s]).filter(Boolean),i=A({type:new ct(e.fields),length:this.numRows,children:n});return new lt(e,i)}};rm=Symbol.toStringTag;lt[rm]=(r=>(r._nullCount=-1,r[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(lt.prototype);ei=class extends lt{constructor(t){let e=t.fields.map(i=>A({type:i.type})),n=A({type:new ct(t.fields),nullCount:0,children:e});super(t,n)}}});function Tc(r,t=0){for(let e=-1,n=Ki.length;++e<n;)if(Ki[e]!==r[t+e])return!1;return!0}var tf,ef,im,sm,Yi,bo,wo,Dc,Qu,Ki,Ji,rf,om,nf=d(()=>{ge();Nt();K();Wn();In();Pu();kt();Kn();Zs();tf=r=>`Expected ${W[r]} Message in stream, but was null or length 0.`,ef=r=>`Header pointer of flatbuffer-encoded ${W[r]} Message is null or length 0.`,im=(r,t)=>`Expected to read ${r} metadata bytes, but only read ${t}.`,sm=(r,t)=>`Expected to read ${r} bytes for message body, but only read ${t}.`,Yi=class{constructor(t){this.source=t instanceof Dr?t:new Dr(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done?dt:t.value===-1&&(t=this.readMetadataLength()).done?dt:(t=this.readMetadata(t.value)).done?dt:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e;if((e=this.next()).done)return null;if(t!=null&&e.value.headerType!==t)throw new Error(tf(t));return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);let e=F(this.source.read(t));if(e.byteLength<t)throw new Error(sm(t,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(t=!1){let e=W.Schema,n=this.readMessage(e),i=n?.header();if(t&&!i)throw new Error(ef(e));return i}readMetadataLength(){let t=this.source.read(Dc),e=t&&new Ft(t),n=e?.readInt32(0)||0;return{done:n===0,value:n}}readMetadata(t){let e=this.source.read(t);if(!e)return dt;if(e.byteLength<t)throw new Error(im(t,e.byteLength));return{done:!1,value:Ot.decode(e)}}},bo=class{constructor(t,e){this.source=t instanceof he?t:oa(t)?new hn(t,e):new he(t)}[Symbol.asyncIterator](){return this}next(){return b(this,void 0,void 0,function*(){let t;return(t=yield this.readMetadataLength()).done?dt:t.value===-1&&(t=yield this.readMetadataLength()).done?dt:(t=yield this.readMetadata(t.value)).done?dt:t})}throw(t){return b(this,void 0,void 0,function*(){return yield this.source.throw(t)})}return(t){return b(this,void 0,void 0,function*(){return yield this.source.return(t)})}readMessage(t){return b(this,void 0,void 0,function*(){let e;if((e=yield this.next()).done)return null;if(t!=null&&e.value.headerType!==t)throw new Error(tf(t));return e.value})}readMessageBody(t){return b(this,void 0,void 0,function*(){if(t<=0)return new Uint8Array(0);let e=F(yield this.source.read(t));if(e.byteLength<t)throw new Error(sm(t,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()})}readSchema(){return b(this,arguments,void 0,function*(t=!1){let e=W.Schema,n=yield this.readMessage(e),i=n?.header();if(t&&!i)throw new Error(ef(e));return i})}readMetadataLength(){return b(this,void 0,void 0,function*(){let t=yield this.source.read(Dc),e=t&&new Ft(t),n=e?.readInt32(0)||0;return{done:n===0,value:n}})}readMetadata(t){return b(this,void 0,void 0,function*(){let e=yield this.source.read(t);if(!e)return dt;if(e.byteLength<t)throw new Error(im(t,e.byteLength));return{done:!1,value:Ot.decode(e)}})}},wo=class extends Yi{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof $s?t:new $s(t)}next(){let{_json:t}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Ot.fromJSON(t.schema,W.Schema)};if(this._dictionaryIndex<t.dictionaries.length){let e=t.dictionaries[this._dictionaryIndex++];return this._body=e.data.columns,{done:!1,value:Ot.fromJSON(e,W.DictionaryBatch)}}if(this._batchIndex<t.batches.length){let e=t.batches[this._batchIndex++];return this._body=e.columns,{done:!1,value:Ot.fromJSON(e,W.RecordBatch)}}return this._body=[],dt}readMessageBody(t){return e(this._body);function e(n){return(n||[]).reduce((i,s)=>[...i,...s.VALIDITY&&[s.VALIDITY]||[],...s.TYPE_ID&&[s.TYPE_ID]||[],...s.OFFSET&&[s.OFFSET]||[],...s.DATA&&[s.DATA]||[],...e(s.children)],[])}}readMessage(t){let e;if((e=this.next()).done)return null;if(t!=null&&e.value.headerType!==t)throw new Error(tf(t));return e.value}readSchema(){let t=W.Schema,e=this.readMessage(t),n=e?.header();if(!e||!n)throw new Error(ef(t));return n}},Dc=4,Qu="ARROW1",Ki=new Uint8Array(Qu.length);for(let r=0;r<Qu.length;r+=1)Ki[r]=Qu.codePointAt(r);Ji=Ki.length,rf=Ji+Dc,om=Ji*2+Dc});var sf,of,am,cm=d(()=>{Ns();sf=class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(t){let e=new Uint8Array([1,2,3,4,5,6,7,8]),n=t.encode(e);return this._isValidCompressed(n)}_isValidCompressed(t){return this._hasMinimumLength(t)&&this._hasValidMagicNumber(t)&&this._hasValidVersion(t)}_hasMinimumLength(t){return t.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(t){return this.LZ4_FRAME_MAGIC.every((e,n)=>t[n]===e)}_hasValidVersion(t){return(t[4]&192)>>6===1}},of=class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(t){let e=new Uint8Array([1,2,3,4,5,6,7,8]),n=t.encode(e);return this._isValidCompressed(n)}_isValidCompressed(t){return this._hasMinimumLength(t)&&this._hasValidMagicNumber(t)}_hasMinimumLength(t){return t.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(t){return this.ZSTD_MAGIC.every((e,n)=>t[n]===e)}},am={[qt.LZ4_FRAME]:new sf,[qt.ZSTD]:new of}});var af,Xi,cf=d(()=>{Ns();cm();af=class{constructor(){this.registry={}}set(t,e){if(e?.encode&&typeof e.encode=="function"&&!am[t].isValidCodecEncode(e))throw new Error(`Encoder for ${qt[t]} is not valid.`);this.registry[t]=e}get(t){var e;return((e=this.registry)===null||e===void 0?void 0:e[t])||null}},Xi=new af});function dm(r,t){return t&&typeof t.autoDestroy=="boolean"?t.autoDestroy:r.autoDestroy}function*lm(r){let t=te.from(r);try{if(!t.open({autoDestroy:!1}).closed)do yield t;while(!t.reset().open().closed)}finally{t.cancel()}}function um(r){return _e(this,arguments,function*(){let e=yield P(te.from(r));try{if(!(yield P(e.open({autoDestroy:!1}))).closed)do yield yield P(e);while(!(yield P(e.reset().open())).closed)}finally{yield P(e.cancel())}})}function zb(r){return new Kr(new uf(r))}function jb(r){let t=r.peek(Ji+7&-8);return t&&t.byteLength>=4?Tc(t)?new ni(new Lc(r.read())):new Kr(new qi(r)):new Kr(new qi(function*(){}()))}function Hb(r){return b(this,void 0,void 0,function*(){let t=yield r.peek(Ji+7&-8);return t&&t.byteLength>=4?Tc(t)?new ni(new Lc(yield r.read())):new ri(new Qi(r)):new ri(new Qi(function(){return _e(this,arguments,function*(){})}()))})}function $b(r){return b(this,void 0,void 0,function*(){let{size:t}=yield r.stat(),e=new hn(r,t);return t>=om&&Tc(yield e.readAt(0,Ji+7&-8))?new Ec(new lf(e)):new ri(new Qi(e))})}var te,Kr,ri,ni,Ec,Oc,qi,Qi,Lc,lf,uf,ff=d(()=>{ge();Vr();Ae();_t();Nt();Ru();Os();Wn();Kn();Pu();Ep();Gi();Zs();nf();In();cf();Ur();K();te=class extends Yn{constructor(t){super(),this._impl=t}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){let e=this._impl.open(t);return ze(e)?e.then(()=>this):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return zt.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return zt.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof te?t:ia(t)?zb(t):oa(t)?$b(t):ze(t)?(()=>b(this,void 0,void 0,function*(){return yield te.from(yield t)}))():aa(t)||Ts(t)||la(t)||Te(t)?Hb(new he(t)):jb(new Dr(t))}static readAll(t){return t instanceof te?t.isSync()?lm(t):um(t):ia(t)||ArrayBuffer.isView(t)||je(t)||sa(t)?lm(t):um(t)}},Kr=class extends te{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return _e(this,arguments,function*(){yield P(yield*vi(Ve(this[Symbol.iterator]())))})}},ri=class extends te{constructor(t){super(t),this._impl=t}readAll(){return b(this,void 0,void 0,function*(){var t,e,n,i;let s=new Array;try{for(var o=!0,a=Ve(this),l;l=yield a.next(),t=l.done,!t;o=!0){i=l.value,o=!1;let c=i;s.push(c)}}catch(c){e={error:c}}finally{try{!o&&!t&&(n=a.return)&&(yield n.call(a))}finally{if(e)throw e.error}}return s})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},ni=class extends Kr{constructor(t){super(t),this._impl=t}},Ec=class extends ri{constructor(t){super(t),this._impl=t}},Oc=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){let n;if(t.compression!=null){let s=Xi.get(t.compression.type);if(s?.decode&&typeof s.decode=="function"){let{decommpressedBody:o,buffers:a}=this._decompressBuffers(t,e,s);n=this._loadCompressedVectors(t,o,this.schema.fields),t=new Et(t.length,t.nodes,a,null)}else throw new Error("Record batch is compressed but codec not found")}else n=this._loadVectors(t,e,this.schema.fields);let i=A({type:new ct(this.schema.fields),length:t.length,children:n});return new lt(this.schema,i)}_loadDictionaryBatch(t,e){let{id:n,isDelta:i}=t,{dictionaries:s,schema:o}=this,a=s.get(n),l=o.dictionaries.get(n),c;if(t.data.compression!=null){let u=Xi.get(t.data.compression.type);if(u?.decode&&typeof u.decode=="function"){let{decommpressedBody:h,buffers:m}=this._decompressBuffers(t.data,e,u);c=this._loadCompressedVectors(t.data,h,[l]),t=new Jt(new Et(t.data.length,t.data.nodes,m,null),n,i)}else throw new Error("Dictionary batch is compressed but codec not found")}else c=this._loadVectors(t.data,e,[l]);return(a&&i?a.concat(new v(c)):new v(c)).memoize()}_loadVectors(t,e,n){return new Hi(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}_loadCompressedVectors(t,e,n){return new ec(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}_decompressBuffers(t,e,n){let i=[],s=[],o=0;for(let{offset:a,length:l}of t.buffers){if(l===0){i.push(new Uint8Array(0)),s.push(new Tt(o,0));continue}let c=new Ft(e.subarray(a,a+l)),u=q(c.readInt64(0)),h=c.bytes().subarray(8),m=u===-1?h:n.decode(h);i.push(m);let p=(o+7&-8)-o;o+=p,s.push(new Tt(o,m.length)),o+=m.length}return{decommpressedBody:i,buffers:s}}},qi=class extends Oc{constructor(t,e){super(e),this._reader=ia(t)?new wo(this._handle=t):new Yi(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return this.closed||(this.autoDestroy=dm(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):dt}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):dt}next(){if(this.closed)return dt;let t,{_reader:e}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;let n=t.header(),i=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(n,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;let n=t.header(),i=e.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(n,i);this.dictionaries.set(n.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new ei(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}},Qi=class extends Oc{constructor(t,e){super(e),this._reader=new bo(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return b(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(t){return b(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=dm(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(t){return b(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):dt})}return(t){return b(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):dt})}next(){return b(this,void 0,void 0,function*(){if(this.closed)return dt;let t,{_reader:e}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;let n=t.header(),i=yield e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(n,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;let n=t.header(),i=yield e.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(n,i);this.dictionaries.set(n.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new ei(this.schema)}):yield this.return()})}_readNextMessageAndValidate(t){return b(this,void 0,void 0,function*(){return yield this._reader.readMessage(t)})}},Lc=class extends qi{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,e){super(t instanceof Ws?t:new Ws(t),e)}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var e;if(this.closed)return null;this._footer||this.open();let n=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(t);if(n&&this._handle.seek(n.offset)){let i=this._reader.readMessage(W.RecordBatch);if(i?.isRecordBatch()){let s=i.header(),o=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null}_readDictionaryBatch(t){var e;let n=(e=this._footer)===null||e===void 0?void 0:e.getDictionaryBatch(t);if(n&&this._handle.seek(n.offset)){let i=this._reader.readMessage(W.DictionaryBatch);if(i?.isDictionaryBatch()){let s=i.header(),o=this._reader.readMessageBody(i.bodyLength),a=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,a)}}}_readFooter(){let{_handle:t}=this,e=t.size-rf,n=t.readInt32(e),i=t.readAt(e-n,n);return Hr.decode(i)}_readNextMessageAndValidate(t){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let n=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(this._recordBatchIndex);if(n&&this._handle.seek(n.offset))return this._reader.readMessage(t)}return null}},lf=class extends Qi{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,...e){let n=typeof e[0]!="number"?e.shift():void 0,i=e[0]instanceof Map?e.shift():void 0;super(t instanceof hn?t:new hn(t,n),i)}isFile(){return!0}isAsync(){return!0}open(t){let e=Object.create(null,{open:{get:()=>super.open}});return b(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let n of this._footer.dictionaryBatches())n&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield e.open.call(this,t)})}readRecordBatch(t){return b(this,void 0,void 0,function*(){var e;if(this.closed)return null;this._footer||(yield this.open());let n=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(t);if(n&&(yield this._handle.seek(n.offset))){let i=yield this._reader.readMessage(W.RecordBatch);if(i?.isRecordBatch()){let s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null})}_readDictionaryBatch(t){return b(this,void 0,void 0,function*(){var e;let n=(e=this._footer)===null||e===void 0?void 0:e.getDictionaryBatch(t);if(n&&(yield this._handle.seek(n.offset))){let i=yield this._reader.readMessage(W.DictionaryBatch);if(i?.isDictionaryBatch()){let s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength),a=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,a)}}})}_readFooter(){return b(this,void 0,void 0,function*(){let{_handle:t}=this;t._pending&&(yield t._pending);let e=t.size-rf,n=yield t.readInt32(e),i=yield t.readAt(e-n,n);return Hr.decode(i)})}_readNextMessageAndValidate(t){return b(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let e=this._footer.getRecordBatch(this._recordBatchIndex);if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(t)}return null})}},uf=class extends qi{constructor(t,e){super(t,e)}_loadVectors(t,e,n){return new tc(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}}});function qe(r){let t=r.byteLength+7&-8;return this.buffers.push(r),this.bufferRegions.push(new Tt(this._byteLength,t)),this._byteLength+=t,this}function Zb(r){var t;let{type:e,length:n,typeIds:i,valueOffsets:s}=r;if(qe.call(this,i),e.mode===at.Sparse)return df.call(this,r);if(e.mode===at.Dense){if(r.offset<=0)return qe.call(this,s),df.call(this,r);{let o=new Int32Array(n),a=Object.create(null),l=Object.create(null);for(let c,u,h=-1;++h<n;)(c=i[h])!==void 0&&((u=a[c])===void 0&&(u=a[c]=s[h]),o[h]=s[h]-u,l[c]=((t=l[c])!==null&&t!==void 0?t:0)+1);qe.call(this,o),this.visitMany(r.children.map((c,u)=>{let h=e.typeIds[u],m=a[h],p=l[h];return c.slice(m,Math.min(n,p))}))}}return this}function Wb(r){let t;return r.nullCount>=r.length?qe.call(this,new Uint8Array(0)):(t=r.values)instanceof Uint8Array?qe.call(this,Vn(r.offset,r.length,t)):qe.call(this,zn(r.values))}function Jr(r){return qe.call(this,r.values.subarray(0,r.length*r.stride))}function Fc(r){let{length:t,values:e,valueOffsets:n}=r,i=q(n[0]),s=q(n[t]),o=Math.min(s-i,e.byteLength-i);return qe.call(this,fa(-i,t+1,n)),qe.call(this,e.subarray(i,i+o)),this}function hf(r){let{length:t,valueOffsets:e}=r;if(e){let{[0]:n,[t]:i}=e;return qe.call(this,fa(-n,t+1,e)),this.visit(r.children[0].slice(n,i-n))}return this.visit(r.children[0])}function df(r){return this.visitMany(r.type.children.map((t,e)=>r.children[e]).filter(Boolean))[0]}var pt,hm=d(()=>{Ae();Ye();Nt();Gi();kt();Ri();Wn();_t();Ur();pt=class extends B{static assemble(...t){let e=i=>i.flatMap(s=>Array.isArray(s)?e(s):s instanceof lt?s.data.children:s.data),n=new pt;return n.visitMany(e(t)),n}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(t){if(t instanceof v)return this.visitMany(t.data),this;let{type:e}=t;if(!_.isDictionary(e)){let{length:n}=t;if(n>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(_.isUnion(e))this.nodes.push(new Me(n,0));else{let{nullCount:i}=t;_.isNull(e)||qe.call(this,i<=0?new Uint8Array(0):Vn(t.offset,n,t.nullBitmap)),this.nodes.push(new Me(n,i))}}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};pt.prototype.visitBool=Wb;pt.prototype.visitInt=Jr;pt.prototype.visitFloat=Jr;pt.prototype.visitUtf8=Fc;pt.prototype.visitLargeUtf8=Fc;pt.prototype.visitBinary=Fc;pt.prototype.visitLargeBinary=Fc;pt.prototype.visitFixedSizeBinary=Jr;pt.prototype.visitDate=Jr;pt.prototype.visitTimestamp=Jr;pt.prototype.visitTime=Jr;pt.prototype.visitDecimal=Jr;pt.prototype.visitList=hf;pt.prototype.visitStruct=df;pt.prototype.visitUnion=Zb;pt.prototype.visitInterval=Jr;pt.prototype.visitDuration=Jr;pt.prototype.visitFixedSizeList=hf;pt.prototype.visitMap=hf});function pf(r,t){let e=t;t instanceof St&&(e=t.batches,r.reset(void 0,t.schema));for(let n of e)r.write(n);return r.finish()}function mf(r,t){return b(this,void 0,void 0,function*(){var e,n,i,s,o,a,l;try{for(e=!0,n=Ve(t);i=yield n.next(),s=i.done,!s;e=!0){l=i.value,e=!1;let c=l;r.write(c)}}catch(c){o={error:c}}finally{try{!e&&!s&&(a=n.return)&&(yield a.call(n))}finally{if(o)throw o.error}}return r.finish()})}var ii,si,oi,pm=d(()=>{ge();Bc();nf();Ae();Wn();Wn();Ru();Nt();Ic();Kn();hm();kt();Gi();Zs();In();Ns();cf();K();ii=class extends Yn{static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}constructor(t){if(super(),this._position=0,this._started=!1,this._compression=null,this._sink=new Br,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,Xt(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1,compressionType:null}),this._autoDestroy=typeof t.autoDestroy=="boolean"?t.autoDestroy:!0,this._writeLegacyIpcFormat=typeof t.writeLegacyIpcFormat=="boolean"?t.writeLegacyIpcFormat:!1,t.compressionType!=null){if(this._writeLegacyIpcFormat)throw new Error("Legacy IPC format does not support columnar compression. Use modern IPC format (writeLegacyIpcFormat=false).");if(Object.values(qt).includes(t.compressionType))this._compression=new Gn(t.compressionType);else{let e=Object.values(qt).filter(n=>typeof n=="string");throw new Error(`Unsupported compressionType: ${t.compressionType} Available types: ${e.join(", ")}`)}}else this._compression=null}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return ze(t)?t.then(e=>this.writeAll(e)):Te(t)?mf(this,t):pf(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,e=null){return t===this._sink||t instanceof Br?this._sink=t:(this._sink=new Br,t&&Cd(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&Ud(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!e||!ti(e,this._schema))&&(e==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}write(t){let e=null;if(this._sink){if(t==null)return this.finish()&&void 0;if(t instanceof St&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof lt&&!(e=t.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(e&&!ti(e,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof lt?t instanceof ei||this._writeRecordBatch(t):t instanceof St?this.writeAll(t.batches):je(t)&&this.writeAll(t)}_writeMessage(t,e=8){let n=e-1,i=Ot.encode(t),s=i.byteLength,o=this._writeLegacyIpcFormat?4:8,a=s+o+n&~n,l=a-s-o;return t.headerType===W.RecordBatch?this._recordBatchBlocks.push(new Xe(a,t.bodyLength,this._position)):t.headerType===W.DictionaryBatch&&this._dictionaryBlocks.push(new Xe(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-o)),s>0&&this._write(i),this._writePadding(l)}_write(t){if(this._started){let e=F(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}_writeSchema(t){return this._writeMessage(Ot.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Ki)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){let{byteLength:e,nodes:n,bufferRegions:i,buffers:s}=this._assembleRecordBatch(t),o=new Et(t.numRows,n,i,this._compression),a=Ot.from(o,e);return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(s)}_assembleRecordBatch(t){let{byteLength:e,nodes:n,bufferRegions:i,buffers:s}=pt.assemble(t);return this._compression!=null&&({byteLength:e,bufferRegions:i,buffers:s}=this._compressBodyBuffers(s)),{byteLength:e,nodes:n,bufferRegions:i,buffers:s}}_compressBodyBuffers(t){let e=Xi.get(this._compression.type);if(!e?.encode||typeof e.encode!="function")throw new Error(`Codec for compression type "${qt[this._compression.type]}" has invalid encode method`);let n=0,i=[],s=[];for(let a of t){let l=F(a);if(l.length===0){i.push(new Uint8Array(0),new Uint8Array(0)),s.push(new Tt(n,0));continue}let c=e.encode(l),u=c.length<l.length,h=u?c:l,m=u?h.length:-1,p=new Ft(new Uint8Array(8));p.writeInt64(0,BigInt(m)),i.push(p.bytes(),new Uint8Array(h));let y=(n+7&-8)-n;n+=y;let g=8+h.length;s.push(new Tt(n,g)),n+=g}let o=(n+7&-8)-n;return n+=o,{byteLength:n,bufferRegions:s,buffers:i}}_writeDictionaryBatch(t,e,n=!1){let{byteLength:i,nodes:s,bufferRegions:o,buffers:a}=this._assembleRecordBatch(new v([t])),l=new Et(t.length,s,o,this._compression),c=new Jt(l,e,n),u=Ot.from(c,i);return this._writeMessage(u)._writeBodyBuffers(a)}_writeBodyBuffers(t){let e=this._compression!=null?2:1,n=new Array(e);for(let i=0;i<t.length;i+=e){let s=0;for(let a=-1;++a<e;)n[a]=t[i+a],s+=n[a].byteLength;if(s===0)continue;for(let a of n)this._write(a);let o=(s+7&-8)-s;o>0&&this._writePadding(o)}return this}_writeDictionaries(t){var e,n;for(let[i,s]of t.dictionaries){let o=(e=s?.data)!==null&&e!==void 0?e:[],a=this._seenDictionaries.get(i),l=(n=this._dictionaryDeltaOffsets.get(i))!==null&&n!==void 0?n:0;if(!a||a.data[0]!==o[0])for(let[c,u]of o.entries())this._writeDictionaryBatch(u,i,c>0);else if(l<o.length)for(let c of o.slice(l))this._writeDictionaryBatch(c,i,!0);this._seenDictionaries.set(i,s),this._dictionaryDeltaOffsets.set(i,o.length)}return this}},si=class extends ii{static writeAll(t,e){let n=new si(e);return ze(t)?t.then(i=>n.writeAll(i)):Te(t)?mf(n,t):pf(n,t)}},oi=class extends ii{static writeAll(t,e){let n=new oi(e);return ze(t)?t.then(i=>n.writeAll(i)):Te(t)?mf(n,t):pf(n,t)}constructor(t){super(t),this._autoDestroy=!0,this._writeLegacyIpcFormat=!1}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(t,e,n=!1){if(!n&&this._seenDictionaries.has(e))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(t,e,n)}_writeFooter(t){let e=Hr.encode(new Hr(t,it.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}}});function mm(r,t){if(Te(r))return Yb(r,t);if(je(r))return Gb(r,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function Gb(r,t){let e=null,n=t?.type==="bytes"||!1,i=t?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(o){s(o,e||(e=r[Symbol.iterator]()))},pull(o){e?s(o,e):o.close()},cancel(){e?.return&&e.return(),e=null}}),Object.assign({highWaterMark:n?i:void 0},t));function s(o,a){let l,c=null,u=o.desiredSize||null;for(;!(c=a.next(n?u:null)).done;)if(ArrayBuffer.isView(c.value)&&(l=F(c.value))&&(u!=null&&n&&(u=u-l.byteLength+1),c.value=l),o.enqueue(c.value),u!=null&&--u<=0)return;o.close()}}function Yb(r,t){let e=null,n=t?.type==="bytes"||!1,i=t?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(o){return b(this,void 0,void 0,function*(){yield s(o,e||(e=r[Symbol.asyncIterator]()))})},pull(o){return b(this,void 0,void 0,function*(){e?yield s(o,e):o.close()})},cancel(){return b(this,void 0,void 0,function*(){e?.return&&(yield e.return()),e=null})}}),Object.assign({highWaterMark:n?i:void 0},t));function s(o,a){return b(this,void 0,void 0,function*(){let l,c=null,u=o.desiredSize||null;for(;!(c=yield a.next(n?u:null)).done;)if(ArrayBuffer.isView(c.value)&&(l=F(c.value))&&(u!=null&&n&&(u=u-l.byteLength+1),c.value=l),o.enqueue(c.value),u!=null&&--u<=0)return;o.close()})}}var ym=d(()=>{ge();kt();In()});function bm(r){return new yf(r)}var yf,_m,gm,wm=d(()=>{ge();Ku();yf=class{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:e,["writableStrategy"]:n,["queueingStrategy"]:i="count"}=t,s=Md(t,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Xn(s),this._getSize=i!=="bytes"?_m:gm;let{["highWaterMark"]:o=i==="bytes"?Math.pow(2,14):1e3}=Object.assign({},e),{["highWaterMark"]:a=i==="bytes"?Math.pow(2,14):1e3}=Object.assign({},n);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:l=>{this._maybeFlush(this._builder,this._controller=l)},start:l=>{this._maybeFlush(this._builder,this._controller=l)}},{highWaterMark:o,size:i!=="bytes"?_m:gm}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:l=>this._writeValueAndReturnChunkSize(l)})}_writeValueAndReturnChunkSize(t){let e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}_maybeFlush(t,e){e!=null&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}_enqueue(t,e){this._bufferedSize=0,this._controller=null,e==null?t.close():t.enqueue(e)}},_m=r=>{var t;return(t=r?.length)!==null&&t!==void 0?t:0},gm=r=>{var t;return(t=r?.byteLength)!==null&&t!==void 0?t:0}});function Nc(r,t){let e=new Br,n=null,i=new ReadableStream({cancel(){return b(this,void 0,void 0,function*(){yield e.close()})},start(a){return b(this,void 0,void 0,function*(){yield o(a,n||(n=yield s()))})},pull(a){return b(this,void 0,void 0,function*(){n?yield o(a,n):a.close()})}});return{writable:new WritableStream(e,Object.assign({highWaterMark:Math.pow(2,14)},r)),readable:i};function s(){return b(this,void 0,void 0,function*(){return yield(yield te.from(e)).open(t)})}function o(a,l){return b(this,void 0,void 0,function*(){let c=a.desiredSize,u=null;for(;!(u=yield l.next()).done;)if(a.enqueue(u.value),c!=null&&--c<=0)return;a.close()})}}var vm=d(()=>{ge();Kn();ff()});function Mc(r,t){let e=new this(r),n=new he(e),i=new ReadableStream({cancel(){return b(this,void 0,void 0,function*(){yield n.cancel()})},pull(o){return b(this,void 0,void 0,function*(){yield s(o)})},start(o){return b(this,void 0,void 0,function*(){yield s(o)})}},Object.assign({highWaterMark:Math.pow(2,14)},t));return{writable:new WritableStream(e,r),readable:i};function s(o){return b(this,void 0,void 0,function*(){let a=null,l=o.desiredSize;for(;a=yield n.read(l||null);)if(o.enqueue(a),l!=null&&(l-=a.byteLength)<=0)return;o.close()})}}var Sm=d(()=>{ge();Kn()});var yw,xm=d(()=>{Vr();_t();Bc();Ae();Be();fu();ju();Ri();Ps();kt();Mi();Rs();Wu();Ic();yw=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uu),zu),Tu),du),Tl),Du),ou),Zu),{compareSchemas:ti,compareFields:Xp,compareTypes:qp})});var Im=d(()=>{Os();gt();ff();pm();ym();wm();vm();Sm();xm();zt.toDOMStream=mm;ht.throughDOM=bm;te.throughDOM=Nc;ni.throughDOM=Nc;Kr.throughDOM=Nc;ii.throughDOM=Mc;oi.throughDOM=Mc;si.throughDOM=Mc});function Rc(r){return(r/255-.5)/_f}function kc(r){return Math.min(Math.max(r/255,0),1)}function Xr(r,t,e,n){let i=Math.hypot(r,t,e,n);return!Number.isFinite(i)||i<=Number.EPSILON?[1,0,0,0]:[r/i,t/i,e/i,n/i]}function vo(r){return(r-128)/128}function So(r){let t=r&32768?-1:1,e=r>>10&31,n=r&1023;return e===0?t*Math.pow(2,-14)*(n/1024):e===31?n?Number.NaN:t*Number.POSITIVE_INFINITY:t*Math.pow(2,e-15)*(1+n/1024)}var _f,ts=d(()=>{"use strict";_f=.28209479177387814});function Er(r){let t={},e=[],n=[];Bm(t,e,n,"POSITION",bw(r.positions,3),{type:"fixed-size-list",listSize:3,children:[{name:"value",type:"float32"}]});let i=ww(r);es(t,e,n,"f_dc_0",i[0],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"0","loaders_gl.gaussian_splats.encoding":"coefficient"}),es(t,e,n,"f_dc_1",i[1],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"1","loaders_gl.gaussian_splats.encoding":"coefficient"}),es(t,e,n,"f_dc_2",i[2],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"2","loaders_gl.gaussian_splats.encoding":"coefficient"}),es(t,e,n,"opacity",r.opacities,{"loaders_gl.gaussian_splats.semantic":"opacity","loaders_gl.gaussian_splats.encoding":"linear"}),Am(t,e,n,"scale",r.scales,3,{"loaders_gl.gaussian_splats.semantic":"scale","loaders_gl.gaussian_splats.encoding":"linear"}),Am(t,e,n,"rot",r.rotations,4,{"loaders_gl.gaussian_splats.semantic":"rotation","loaders_gl.gaussian_splats.encoding":"quaternion"}),r.sphericalHarmonics&&r.sphericalHarmonicsComponentCount&&gw(t,e,n,r.sphericalHarmonics,r.sphericalHarmonicsComponentCount);let s=new Map([["loaders_gl.semantic_type","gaussian-splats"],["loaders_gl.gaussian_splats.version","1"],["loaders_gl.gaussian_splats.source_format",r.format],["topology","point-list"],["mode","0"]]),o=new $(e,s);return{shape:"arrow-table",schema:{fields:n,metadata:Object.fromEntries(s)},data:new St(o,t),topology:"point-list",loaderData:r.loaderData}}function Am(r,t,e,n,i,s,o){for(let a=0;a<s;a++){let l=new Float32Array(i.length/s);for(let c=0;c<l.length;c++)l[c]=i[c*s+a];es(r,t,e,`${n}_${a}`,l,{...o,"loaders_gl.gaussian_splats.component":String(a)})}}function gw(r,t,e,n,i){for(let s=0;s<i;s++){let o=new Float32Array(n.length/i);for(let a=0;a<o.length;a++)o[a]=n[a*i+s];es(r,t,e,`f_rest_${s}`,o,{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_rest","loaders_gl.gaussian_splats.component":String(s),"loaders_gl.gaussian_splats.encoding":"coefficient"})}}function es(r,t,e,n,i,s){Bm(r,t,e,n,$n(i),"float32",s)}function Bm(r,t,e,n,i,s,o={}){r[n]=i,t.push(new U(n,i.type,!1,new Map(Object.entries(o)))),e.push({name:n,type:s,nullable:!1,metadata:o})}function bw(r,t){let n=$n(r).data[0],i=new ue(t,new U("value",n.type,!1)),s=new Z(i,0,r.length/t,0,{},[n]);return new v([s])}function ww(r){let t=r.splatCount,e=new Float32Array(t),n=new Float32Array(t),i=new Float32Array(t);for(let s=0;s<t;s++)r.sphericalHarmonicDcs?(e[s]=r.sphericalHarmonicDcs[s*3+0],n[s]=r.sphericalHarmonicDcs[s*3+1],i[s]=r.sphericalHarmonicDcs[s*3+2]):(e[s]=Rc(r.colors[s*3+0]),n[s]=Rc(r.colors[s*3+1]),i[s]=Rc(r.colors[s*3+2]));return[e,n,i]}var rs=d(()=>{"use strict";Im();ts()});function gf(r){return Er(vw(r))}function vw(r){if(r.byteLength%xo!==0)throw new Error(`SPLATLoader: byte length must be a multiple of ${xo}.`);let t=r.byteLength/xo,e=new DataView(r),n=new Float32Array(t*3),i=new Float32Array(t*3),s=new Float32Array(t*4),o=new Uint8Array(t*3),a=new Float32Array(t);for(let l=0;l<t;l++){let c=l*xo,u=l*3,h=l*4;n[u+0]=e.getFloat32(c+0,!0),n[u+1]=e.getFloat32(c+4,!0),n[u+2]=e.getFloat32(c+8,!0),i[u+0]=e.getFloat32(c+12,!0),i[u+1]=e.getFloat32(c+16,!0),i[u+2]=e.getFloat32(c+20,!0),o[u+0]=e.getUint8(c+24),o[u+1]=e.getUint8(c+25),o[u+2]=e.getUint8(c+26),a[l]=kc(e.getUint8(c+27));let[m,p,y,g]=Xr(vo(e.getUint8(c+28)),vo(e.getUint8(c+29)),vo(e.getUint8(c+30)),vo(e.getUint8(c+31)));s[h+0]=m,s[h+1]=p,s[h+2]=y,s[h+3]=g}return{format:"splat",splatCount:t,positions:n,scales:i,rotations:s,colors:o,opacities:a,loaderData:{format:"splat",splatCount:t,rowByteLength:xo}}}var xo,Dm=d(()=>{"use strict";rs();ts();xo=32});var Tm={};ye(Tm,{SPLATLoaderWithParser:()=>xw});var qL,Sw,xw,Em=d(()=>{"use strict";Dm();bf();({preload:qL,...Sw}=Cc),xw={...Sw,parse:async r=>gf(r),parseSync:r=>gf(r)}});async function Aw(){let{SPLATLoaderWithParser:r}=await Promise.resolve().then(()=>(Em(),Tm));return r}var Iw,Cc,bf=d(()=>{"use strict";xn();Iw="5.0.0-alpha.1";Cc={dataType:null,batchType:null,...ea,version:Iw,options:{splats:{shape:"arrow-table"}},preload:Aw}});function Sf(r){return Er(Tw(r))}function Tw(r){if(r.byteLength<ns)throw new Error(`KSPLATLoader: file must contain a ${ns}-byte header.`);let t=Ow(r);Lw(t);let e=Fw(r,t),n=Uw(t,e),i=Math.max(0,...e.slice(0,Pc(t)).map(m=>xf(m.sphericalHarmonicsDegree))),s=new Float32Array(n*3),o=new Float32Array(n*3),a=new Float32Array(n*4),l=new Uint8Array(n*3),c=new Float32Array(n),u=i?new Float32Array(n*i):void 0,h=0;for(let m of e.slice(0,Pc(t))){Pw(r,m);for(let p=0;p<m.splatCount&&h<n;p++)Ew(r,t,m,p,h,s,o,a,l,c,u,i),h++}return{format:"ksplat",splatCount:n,positions:s,scales:o,rotations:a,colors:l,opacities:c,sphericalHarmonics:u,sphericalHarmonicsComponentCount:i,loaderData:{format:"ksplat",...t,sections:e.slice(0,Pc(t)).map(m=>({splatCount:m.splatCount,maxSplatCount:m.maxSplatCount,sphericalHarmonicsDegree:m.sphericalHarmonicsDegree}))}}}function Ew(r,t,e,n,i,s,o,a,l,c,u,h){let m=vf[t.compressionLevel],p=e.dataBase+e.bytesPerSplat*n,y=i*3,g=i*4,N=Mw(r,e,n);s[y+0]=wf(r,p,0,t,e,N[0]),s[y+1]=wf(r,p,1,t,e,N[1]),s[y+2]=wf(r,p,2,t,e,N[2]),o[y+0]=mn(r,p+m.scaleOffsetBytes,0,t.compressionLevel),o[y+1]=mn(r,p+m.scaleOffsetBytes,1,t.compressionLevel),o[y+2]=mn(r,p+m.scaleOffsetBytes,2,t.compressionLevel);let[S,G,tt,V]=Xr(mn(r,p+m.scaleOffsetBytes,3,t.compressionLevel),mn(r,p+m.scaleOffsetBytes,4,t.compressionLevel),mn(r,p+m.scaleOffsetBytes,5,t.compressionLevel),mn(r,p+m.scaleOffsetBytes,6,t.compressionLevel));a[g+0]=S,a[g+1]=G,a[g+2]=tt,a[g+3]=V;let w=p+m.colorOffsetBytes,Y=new Uint8Array(r,w,4);l[y+0]=Y[0],l[y+1]=Y[1],l[y+2]=Y[2],c[i]=kc(Y[3]),u&&h&&kw(r,p+m.sphericalHarmonicsOffsetBytes,t,e,i,u,h)}function Ow(r){let t=new DataView(r,0,ns),e=t.getUint16(20,!0);if(e!==0&&e!==1&&e!==2)throw new Error(`KSPLATLoader: unsupported compression level ${e}.`);return{versionMajor:t.getUint8(0),versionMinor:t.getUint8(1),maxSectionCount:t.getUint32(4,!0),sectionCount:t.getUint32(8,!0),maxSplatCount:t.getUint32(12,!0),splatCount:t.getUint32(16,!0),compressionLevel:e,minSphericalHarmonicsCoeff:t.getFloat32(36,!0)||-Lm,maxSphericalHarmonicsCoeff:t.getFloat32(40,!0)||Lm}}function Lw(r){if(!(r.versionMajor===Om?r.versionMinor>=Bw:r.versionMajor>Om))throw new Error(`KSPLATLoader: version ${r.versionMajor}.${r.versionMinor} is not supported.`)}function Fw(r,t){if(r.byteLength<ns+t.maxSectionCount*Uc)throw new Error("KSPLATLoader: file does not contain all section headers.");let e=[],n=ns+t.maxSectionCount*Uc,i=0;for(let s=0;s<t.maxSectionCount;s++){let o=ns+s*Uc,a=new DataView(r,o,Uc),l=a.getUint32(0,!0),c=a.getUint32(4,!0),u=a.getUint32(8,!0),h=a.getUint32(12,!0),m=a.getFloat32(16,!0),p=a.getUint16(20,!0),y=a.getUint32(24,!0)||vf[t.compressionLevel].scaleRange,g=a.getUint32(32,!0),N=a.getUint32(36,!0),S=a.getUint16(40,!0),G=Cw(t.compressionLevel,S),tt=N*4,V=p*h+tt,w=G*c+V;e.push({bytesPerSplat:G,splatCountOffset:i,splatCount:l||c,maxSplatCount:c,bucketSize:u,bucketCount:h,bucketStorageSizeBytes:p,bucketsStorageSizeBytes:V,compressionScaleRange:y,compressionScaleFactor:m/2/y,base:n,bucketsBase:n+tt,dataBase:n+V,fullBucketCount:g,partiallyFilledBucketCount:N,sphericalHarmonicsDegree:S}),n+=w,i+=c}return e}function wf(r,t,e,n,i,s){let o=Nw(r,t,e,n.compressionLevel);return n.compressionLevel>=1?(o-i.compressionScaleRange)*i.compressionScaleFactor+s:o}function Nw(r,t,e,n){let i=new DataView(r);return n===0?i.getFloat32(t+e*4,!0):i.getUint16(t+e*2,!0)}function Mw(r,t,e){if(!t.bucketCount)return[0,0,0];let n=Rw(r,t,e),i=t.bucketsBase+n*t.bucketStorageSizeBytes,s=new DataView(r,i,12);return[s.getFloat32(0,!0),s.getFloat32(4,!0),s.getFloat32(8,!0)]}function Rw(r,t,e){let n=t.fullBucketCount*t.bucketSize;if(e<n)return Math.floor(e/t.bucketSize);let i=n,s=t.fullBucketCount;for(let o=0;o<t.partiallyFilledBucketCount;o++){let a=new DataView(r,t.base+o*4,4).getUint32(0,!0);if(e<i+a)return s;i+=a,s++}return Math.max(s-1,0)}function kw(r,t,e,n,i,s,o){let a=xf(n.sphericalHarmonicsDegree),l=i*o;for(let c=0;c<a;c++)s[l+c]=mn(r,t,c,e.compressionLevel,!0,e.minSphericalHarmonicsCoeff,e.maxSphericalHarmonicsCoeff)}function mn(r,t,e,n,i=!1,s=0,o=0){let a=new DataView(r);return n===0?a.getFloat32(t+e*4,!0):n===1||!i?So(a.getUint16(t+e*2,!0)):a.getUint8(t+e)/255*(o-s)+s}function Cw(r,t){let e=vf[r];return e.bytesPerCenter+e.bytesPerScale+e.bytesPerRotation+e.bytesPerColor+e.bytesPerSphericalHarmonicsComponent*xf(t)}function xf(r){switch(r){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;default:throw new Error(`KSPLATLoader: unsupported spherical harmonics degree ${r}.`)}}function Pc(r){return r.sectionCount||r.maxSectionCount}function Uw(r,t){let e=t.slice(0,Pc(r)).reduce((n,i)=>n+i.splatCount,0);return r.splatCount?Math.min(r.splatCount,e||r.splatCount):e}function Pw(r,t){if(t.dataBase+t.bytesPerSplat*t.splatCount>r.byteLength)throw new Error("KSPLATLoader: section data extends beyond the file length.")}var Om,Bw,ns,Uc,Dw,Lm,vf,Fm=d(()=>{"use strict";rs();ts();Om=0,Bw=1,ns=4096,Uc=1024,Dw=3,Lm=Dw/2,vf={0:{bytesPerCenter:12,bytesPerScale:12,bytesPerRotation:16,bytesPerColor:4,scaleOffsetBytes:12,colorOffsetBytes:40,sphericalHarmonicsOffsetBytes:44,scaleRange:1,bytesPerSphericalHarmonicsComponent:4},1:{bytesPerCenter:6,bytesPerScale:6,bytesPerRotation:8,bytesPerColor:4,scaleOffsetBytes:6,colorOffsetBytes:20,sphericalHarmonicsOffsetBytes:24,scaleRange:32767,bytesPerSphericalHarmonicsComponent:2},2:{bytesPerCenter:6,bytesPerScale:6,bytesPerRotation:8,bytesPerColor:4,scaleOffsetBytes:6,colorOffsetBytes:20,sphericalHarmonicsOffsetBytes:24,scaleRange:32767,bytesPerSphericalHarmonicsComponent:1}}});var Nm={};ye(Nm,{KSPLATLoaderWithParser:()=>zw});var oF,Vw,zw,Mm=d(()=>{"use strict";Fm();If();({preload:oF,...Vw}=Vc),zw={...Vw,parse:async r=>Sf(r),parseSync:r=>Sf(r)}});async function Hw(){let{KSPLATLoaderWithParser:r}=await Promise.resolve().then(()=>(Mm(),Nm));return r}var jw,Vc,If=d(()=>{"use strict";xn();jw="5.0.0-alpha.1";Vc={dataType:null,batchType:null,...ra,version:jw,options:{splats:{shape:"arrow-table"}},preload:Hw}});var Or,$w,Zw,Ww,Gw,is,Rm,Yw,km=d(()=>{"use strict";Or={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document},$w=Or.self||Or.window||Or.global||{},Zw=Or.window||Or.self||Or.global||{},Ww=Or.global||Or.self||Or.window||{},Gw=Or.document||{},is=Boolean(typeof process!="object"||String(process)!=="[object process]"||process.browser),Rm=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version),Yw=Rm&&parseFloat(Rm[1])||0});var zc,Kw,jc,Jw,uF,Cm=d(()=>{zc=globalThis,Kw=globalThis.document||{},jc=globalThis.process||{},Jw=globalThis.console,uF=globalThis.navigator||{}});function Um(r){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&Boolean(process.versions?.electron))return!0;let t=typeof navigator<"u"&&navigator.userAgent,e=r||t;return Boolean(e&&e.indexOf("Electron")>=0)}var Pm=d(()=>{});function ai(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||Um()}var Vm=d(()=>{Pm()});var Af,Hc=d(()=>{Cm();Vm();Af="4.1.1"});function ss(r,t){if(!r)throw new Error(t||"Assertion failed")}var Bf=d(()=>{});function Df(r){if(!r)return 0;let t;switch(typeof r){case"number":t=r;break;case"object":t=r.logLevel||r.priority||0;break;default:return 0}return ss(Number.isFinite(t)&&t>=0),t}function zm(r){let{logLevel:t,message:e}=r;r.logLevel=Df(t);let n=r.args?Array.from(r.args):[];for(;n.length&&n.shift()!==e;);switch(typeof t){case"string":case"function":e!==void 0&&n.unshift(e),r.message=t;break;case"object":Object.assign(r,t);break;default:}typeof r.message=="function"&&(r.message=r.message());let i=typeof r.message;return ss(i==="string"||i==="object"),Object.assign(r,{args:n},r.opts)}var jm=d(()=>{Bf()});var ci,$c,Hm=d(()=>{jm();ci=()=>{},$c=class{constructor({level:t=0}={}){this.userData={},this._onceCache=new Set,this._level=t}set level(t){this.setLevel(t)}get level(){return this.getLevel()}setLevel(t){return this._level=t,this}getLevel(){return this._level}warn(t,...e){return this._log("warn",0,t,e,{once:!0})}error(t,...e){return this._log("error",0,t,e)}log(t,e,...n){return this._log("log",t,e,n)}info(t,e,...n){return this._log("info",t,e,n)}once(t,e,...n){return this._log("once",t,e,n,{once:!0})}_log(t,e,n,i,s={}){let o=zm({logLevel:e,message:n,args:this._buildArgs(e,n,i),opts:s});return this._createLogFunction(t,o,s)}_buildArgs(t,e,n){return[t,e,...n]}_createLogFunction(t,e,n){if(!this._shouldLog(e.logLevel))return ci;let i=this._getOnceTag(n.tag??e.tag??e.message);if((n.once||e.once)&&i!==void 0){if(this._onceCache.has(i))return ci;this._onceCache.add(i)}return this._emit(t,e)}_shouldLog(t){return this.getLevel()>=Df(t)}_getOnceTag(t){if(t!==void 0)try{return typeof t=="string"?t:String(t)}catch{return}}}});function qw(r){try{let t=window[r],e="__storage_test__";return t.setItem(e,e),t.removeItem(e),t}catch{return null}}var Zc,$m=d(()=>{Zc=class{constructor(t,e,n="sessionStorage"){this.storage=qw(n),this.id=t,this.config=e,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){let e=JSON.stringify(this.config);this.storage.setItem(this.id,e)}}_loadConfiguration(){let t={};if(this.storage){let e=this.storage.getItem(this.id);t=e?JSON.parse(e):{}}return Object.assign(this.config,t),this}}});function Zm(r){let t;return r<10?t=`${r.toFixed(2)}ms`:r<100?t=`${r.toFixed(1)}ms`:r<1e3?t=`${r.toFixed(0)}ms`:t=`${(r/1e3).toFixed(2)}s`,t}function Wm(r,t=8){let e=Math.max(t-r.length,0);return`${" ".repeat(e)}${r}`}var Gm=d(()=>{});function Ym(r){return typeof r!="string"?r:(r=r.toUpperCase(),Wc[r]||Wc.WHITE)}function Km(r,t,e){return!ai&&typeof r=="string"&&(t&&(r=`\x1B[${Ym(t)}m${r}\x1B[39m`),e&&(r=`\x1B[${Ym(e)+Qw}m${r}\x1B[49m`)),r}var Wc,Qw,Jm=d(()=>{Hc();(function(r){r[r.BLACK=30]="BLACK",r[r.RED=31]="RED",r[r.GREEN=32]="GREEN",r[r.YELLOW=33]="YELLOW",r[r.BLUE=34]="BLUE",r[r.MAGENTA=35]="MAGENTA",r[r.CYAN=36]="CYAN",r[r.WHITE=37]="WHITE",r[r.BRIGHT_BLACK=90]="BRIGHT_BLACK",r[r.BRIGHT_RED=91]="BRIGHT_RED",r[r.BRIGHT_GREEN=92]="BRIGHT_GREEN",r[r.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",r[r.BRIGHT_BLUE=94]="BRIGHT_BLUE",r[r.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",r[r.BRIGHT_CYAN=96]="BRIGHT_CYAN",r[r.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Wc||(Wc={}));Qw=10});function Xm(r,t=["constructor"]){let e=Object.getPrototypeOf(r),n=Object.getOwnPropertyNames(e),i=r;for(let s of n){let o=i[s];typeof o=="function"&&(t.find(a=>s===a)||(i[s]=o.bind(r)))}}var qm=d(()=>{});function os(){let r;if(ai()&&zc.performance)r=zc?.performance?.now?.();else if("hrtime"in jc){let t=jc?.hrtime?.();r=t[0]*1e3+t[1]/1e6}else r=Date.now();return r}var Qm=d(()=>{Hc()});function tv(r,t,e){if(typeof t=="string"){let n=e.time?Wm(Zm(e.total)):"";t=e.time?`${r}: ${n} ${t}`:`${r}: ${t}`,t=Km(t,e.color,e.background)}return t}function ev(r){for(let t in r)for(let e in r[t])return e||"untitled";return"empty"}var as,Tf,qr,Ef=d(()=>{Hc();Hm();$m();Gm();Jm();qm();Bf();Qm();as={debug:ai()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Tf={enabled:!0,level:0},qr=class extends $c{constructor({id:t}={id:""}){super({level:0}),this.VERSION=Af,this._startTs=os(),this._deltaTs=os(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=t,this.userData={},this._storage=new Zc(`__probe-${this.id}__`,{[this.id]:Tf}),this.timeStamp(`${this.id} started`),Xm(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((os()-this._startTs).toPrecision(10))}getDelta(){return Number((os()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(t=!0){return this._updateConfiguration({enabled:t}),this}setLevel(t){return this._updateConfiguration({level:t}),this}get(t){return this._getConfiguration()[t]}set(t,e){this._updateConfiguration({[t]:e})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,e){if(!t)throw new Error(e||"Assertion failed")}warn(t,...e){return this._log("warn",0,t,e,{method:as.warn,once:!0})}error(t,...e){return this._log("error",0,t,e,{method:as.error})}deprecated(t,e){return this.warn(`\`${t}\` is deprecated and will be removed in a later version. Use \`${e}\` instead`)}removed(t,e){return this.error(`\`${t}\` has been removed. Use \`${e}\` instead`)}probe(t,e,...n){return this._log("log",t,e,n,{method:as.log,time:!0,once:!0})}log(t,e,...n){return this._log("log",t,e,n,{method:as.debug})}info(t,e,...n){return this._log("info",t,e,n,{method:console.info})}once(t,e,...n){return this._log("once",t,e,n,{method:as.debug||as.info,once:!0})}table(t,e,n){return e?this._log("table",t,e,n&&[n]||[],{method:console.table||ci,tag:ev(e)}):ci}time(t,e){return this._log("time",t,e,[],{method:console.time?console.time:console.info})}timeEnd(t,e){return this._log("time",t,e,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(t,e){return this._log("time",t,e,[],{method:console.timeStamp||ci})}group(t,e,n={collapsed:!1}){let i=(n.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",t,e,[],{method:i})}groupCollapsed(t,e,n={}){return this.group(t,e,Object.assign({},n,{collapsed:!0}))}groupEnd(t){return this._log("groupEnd",t,"",[],{method:console.groupEnd||ci})}withGroup(t,e,n){this.group(t,e)();try{n()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&super._shouldLog(t)}_emit(t,e){let n=e.method;ss(n),e.total=this.getTotal(),e.delta=this.getDelta(),this._deltaTs=os();let i=tv(this.id,e.message,e);return n.bind(console,i,...e.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Tf),this._storage.config[this.id]}_updateConfiguration(t){let e=this._storage.config[this.id]||{...Tf};this._storage.setConfiguration({[this.id]:{...e,...t}})}};qr.VERSION=Af});var ty=d(()=>{globalThis.probe={}});var VF,ey=d(()=>{Ef();Ef();ty();VF=new qr({id:"@probe.gl/log"})});function nv(){let r=new qr({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=r,globalThis.loaders.version=rv,globalThis.probe||={},globalThis.probe.loaders=r,r}var Of,rv,Gc,Lf=d(()=>{"use strict";ey();Of="5.0.0-alpha.1",rv=Of[0]>="0"&&Of[0]<="9"?`v${Of}`:"";Gc=nv()});var Ff,ry=d(()=>{"use strict";Ff=r=>typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer});function ny(r,t){return iy(r||{},t)}function iy(r,t,e=0){if(e>3)return t;let n={...r};for(let[i,s]of Object.entries(t))s&&typeof s=="object"&&!Array.isArray(s)?n[i]=iy(n[i]||{},t[i],e+1):n[i]=t[i];return n}var sy=d(()=>{"use strict"});function cs(r){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,r)}function Nf(r,t){globalThis.loaders?.modules?.[r]||Gc.warn(`${t}: ${r} library not installed`)()}function Yc(r,t){let e=globalThis.loaders?.modules?.[r];if(!e)throw new Error(`${t}: ${r} library not installed`);return e}function Mf(r){return globalThis.loaders?.modules?.[r]||null}var Rf=d(()=>{"use strict";Lf()});function oy(...r){return iv(r)}function iv(r){let t=r.map(s=>s instanceof ArrayBuffer?new Uint8Array(s):s),e=t.reduce((s,o)=>s+o.byteLength,0),n=new Uint8Array(e),i=0;for(let s of t)n.set(s,i),i+=s.byteLength;return n.buffer}var ay=d(()=>{"use strict"});async function kf(r){let t=[];for await(let e of r)t.push(sv(e));return oy(...t)}function sv(r){if(r instanceof ArrayBuffer)return r;if(ArrayBuffer.isView(r)){let{buffer:t,byteOffset:e,byteLength:n}=r;return cy(t,e,n)}return cy(r)}function cy(r,t=0,e=r.byteLength-t){let n=new Uint8Array(r,t,e),i=new Uint8Array(n.length);return i.set(n),i.buffer}var ly=d(()=>{"use strict";ay()});function fy(r){for(let t in uy)if(r.startsWith(t)){let e=uy[t];r=r.replace(t,e)}return!r.startsWith("http://")&&!r.startsWith("https://")&&(r=`${ov}${r}`),r}var ov,uy,dy=d(()=>{"use strict";ov="",uy={}});function hy(r){return r&&typeof r=="object"&&r.isBuffer}function yn(r){if(hy(r))return r;if(r instanceof ArrayBuffer)return r;if(Ff(r))return Kc(r);if(ArrayBuffer.isView(r)){let t=r.buffer;return r.byteOffset===0&&r.byteLength===r.buffer.byteLength?t:t.slice(r.byteOffset,r.byteOffset+r.byteLength)}if(typeof r=="string"){let t=r;return new TextEncoder().encode(t).buffer}if(r&&typeof r=="object"&&r._toArrayBuffer)return r._toArrayBuffer();throw new Error("toArrayBuffer")}function Cf(r){if(r instanceof ArrayBuffer)return r;if(Ff(r))return Kc(r);let{buffer:t,byteOffset:e,byteLength:n}=r;return t instanceof ArrayBuffer&&e===0&&n===t.byteLength?t:Kc(t,e,n)}function Kc(r,t=0,e=r.byteLength-t){let n=new Uint8Array(r,t,e),i=new Uint8Array(n.length);return i.set(n),i.buffer}var py=d(()=>{"use strict";ry()});function ls(r){return t=>new Promise((e,n)=>r(t,(i,s)=>i?n(i):e(s)))}var my=d(()=>{"use strict"});function cv(r){let t=r?.core?.fetch;if(t&&typeof t=="function")return(n,i)=>t(n,i);let e=r?.fetch;return e&&typeof e!="function"?(n,i)=>fetch(n,lv(e,i)):(n,i)=>fetch(n,i)}function lv(r,t){let e={...r,...t};return(r.headers||t?.headers)&&(e.headers=uv(r.headers,t?.headers)),e}function uv(r,t){let e=new Headers(r);return t&&new Headers(t).forEach((n,i)=>e.set(i,n)),e}function fv(r){let t={...r};r?.core&&(t.core={...r.core});let e=typeof t.baseUri=="string"?t.baseUri:void 0,n=typeof t.baseUrl=="string"?t.baseUrl:void 0;return(e!==void 0||n!==void 0)&&(t.core||={},t.core.baseUrl===void 0&&(t.core.baseUrl=n??e),delete t.baseUri,delete t.baseUrl),t}function dv(r,t){return r instanceof Error?r:typeof r=="string"?new Error(r):new Error(t)}function li(r){return()=>{throw new Error(`CoreAPI.${r} is unavailable. Use @loaders.gl/core.createDataSource().`)}}var av,Uf,us,yy=d(()=>{"use strict";sy();dy();Lf();av={fetchFile:li("fetchFile"),parse:li("parse"),parseFile:li("parseFile"),parseSync:li("parseSync"),parseInBatches:li("parseInBatches"),load:li("load"),loadInBatches:li("loadInBatches")},Uf=class{optionsType;options;data;url;loadOptions;fetch;coreApi;hasCoreApi;_needsRefresh=!0;constructor(t,e,n,i){n?this.options=ny({...n,core:Uf.defaultOptions},e):this.options={...e},this.data=t,this.url=typeof t=="string"?fy(t):"";let s=fv(this.options.core?.loadOptions);this.loadOptions=s;let o=cv(s);this.coreApi=i||av,this.hasCoreApi=Boolean(i),this.fetch=o}setProps(t){this.options=Object.assign(this.options,t),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(t=!0){let e=this._needsRefresh;return t&&(this._needsRefresh=!1),e}reportError(t,e){let n=dv(t,e),i=this.options.core?.onError;return i?i(n,this):Gc.warn(`${this.constructor.name}: ${n.message}`)(),n}},us=Uf;Od(us,"defaultOptions",{core:{type:"auto",attributions:[],loadOptions:{},loaders:[],onError:void 0}})});var Io=d(()=>{"use strict";km();Rf();Rf();ly();py();my();yy()});var fs,Pf=d(()=>{"use strict";Io();fs=class{constructor(t){this.compressBatches=this.compressBatches.bind(this),this.decompressBatches=this.decompressBatches.bind(this)}async preload(t={}){cs(t)}async compress(t){return await this.preload(),this.compressSync(t)}async decompress(t,e){return await this.preload(),this.decompressSync(t,e)}compressSync(t){throw new Error(`${this.name}: sync compression not supported`)}decompressSync(t,e){throw new Error(`${this.name}: sync decompression not supported`)}async*compressBatches(t){let e=await this.concatenate(t);yield this.compress(e)}async*decompressBatches(t){let e=await this.concatenate(t);yield this.decompress(e)}concatenate(t){return kf(t)}improveError(t){return t.message.includes(this.name)||(t.message=`${this.name} ${t.message}`),t}}});var Qr=Rt(ee=>{"use strict";var hv=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function pv(r,t){return Object.prototype.hasOwnProperty.call(r,t)}ee.assign=function(r){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var n in e)pv(e,n)&&(r[n]=e[n])}}return r};ee.shrinkBuf=function(r,t){return r.length===t?r:r.subarray?r.subarray(0,t):(r.length=t,r)};var mv={arraySet:function(r,t,e,n,i){if(t.subarray&&r.subarray){r.set(t.subarray(e,e+n),i);return}for(var s=0;s<n;s++)r[i+s]=t[e+s]},flattenChunks:function(r){var t,e,n,i,s,o;for(n=0,t=0,e=r.length;t<e;t++)n+=r[t].length;for(o=new Uint8Array(n),i=0,t=0,e=r.length;t<e;t++)s=r[t],o.set(s,i),i+=s.length;return o}},yv={arraySet:function(r,t,e,n,i){for(var s=0;s<n;s++)r[i+s]=t[e+s]},flattenChunks:function(r){return[].concat.apply([],r)}};ee.setTyped=function(r){r?(ee.Buf8=Uint8Array,ee.Buf16=Uint16Array,ee.Buf32=Int32Array,ee.assign(ee,mv)):(ee.Buf8=Array,ee.Buf16=Array,ee.Buf32=Array,ee.assign(ee,yv))};ee.setTyped(hv)});var Py=Rt(ps=>{"use strict";var _v=Qr(),gv=4,_y=0,gy=1,bv=2;function hs(r){for(var t=r.length;--t>=0;)r[t]=0}var wv=0,Iy=1,vv=2,Sv=3,xv=258,Wf=29,Oo=256,Bo=Oo+1+Wf,ds=30,Gf=19,Ay=2*Bo+1,ui=15,Vf=16,Iv=7,Yf=256,By=16,Dy=17,Ty=18,$f=[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],Jc=[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],Av=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ey=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bv=512,tn=new Array((Bo+2)*2);hs(tn);var Ao=new Array(ds*2);hs(Ao);var Do=new Array(Bv);hs(Do);var To=new Array(xv-Sv+1);hs(To);var Kf=new Array(Wf);hs(Kf);var Xc=new Array(ds);hs(Xc);function zf(r,t,e,n,i){this.static_tree=r,this.extra_bits=t,this.extra_base=e,this.elems=n,this.max_length=i,this.has_stree=r&&r.length}var Oy,Ly,Fy;function jf(r,t){this.dyn_tree=r,this.max_code=0,this.stat_desc=t}function Ny(r){return r<256?Do[r]:Do[256+(r>>>7)]}function Eo(r,t){r.pending_buf[r.pending++]=t&255,r.pending_buf[r.pending++]=t>>>8&255}function me(r,t,e){r.bi_valid>Vf-e?(r.bi_buf|=t<<r.bi_valid&65535,Eo(r,r.bi_buf),r.bi_buf=t>>Vf-r.bi_valid,r.bi_valid+=e-Vf):(r.bi_buf|=t<<r.bi_valid&65535,r.bi_valid+=e)}function Lr(r,t,e){me(r,e[t*2],e[t*2+1])}function My(r,t){var e=0;do e|=r&1,r>>>=1,e<<=1;while(--t>0);return e>>>1}function Dv(r){r.bi_valid===16?(Eo(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)}function Tv(r,t){var e=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length,c,u,h,m,p,y,g=0;for(m=0;m<=ui;m++)r.bl_count[m]=0;for(e[r.heap[r.heap_max]*2+1]=0,c=r.heap_max+1;c<Ay;c++)u=r.heap[c],m=e[e[u*2+1]*2+1]+1,m>l&&(m=l,g++),e[u*2+1]=m,!(u>n)&&(r.bl_count[m]++,p=0,u>=a&&(p=o[u-a]),y=e[u*2],r.opt_len+=y*(m+p),s&&(r.static_len+=y*(i[u*2+1]+p)));if(g!==0){do{for(m=l-1;r.bl_count[m]===0;)m--;r.bl_count[m]--,r.bl_count[m+1]+=2,r.bl_count[l]--,g-=2}while(g>0);for(m=l;m!==0;m--)for(u=r.bl_count[m];u!==0;)h=r.heap[--c],!(h>n)&&(e[h*2+1]!==m&&(r.opt_len+=(m-e[h*2+1])*e[h*2],e[h*2+1]=m),u--)}}function Ry(r,t,e){var n=new Array(ui+1),i=0,s,o;for(s=1;s<=ui;s++)n[s]=i=i+e[s-1]<<1;for(o=0;o<=t;o++){var a=r[o*2+1];a!==0&&(r[o*2]=My(n[a]++,a))}}function Ev(){var r,t,e,n,i,s=new Array(ui+1);for(e=0,n=0;n<Wf-1;n++)for(Kf[n]=e,r=0;r<1<<$f[n];r++)To[e++]=n;for(To[e-1]=n,i=0,n=0;n<16;n++)for(Xc[n]=i,r=0;r<1<<Jc[n];r++)Do[i++]=n;for(i>>=7;n<ds;n++)for(Xc[n]=i<<7,r=0;r<1<<Jc[n]-7;r++)Do[256+i++]=n;for(t=0;t<=ui;t++)s[t]=0;for(r=0;r<=143;)tn[r*2+1]=8,r++,s[8]++;for(;r<=255;)tn[r*2+1]=9,r++,s[9]++;for(;r<=279;)tn[r*2+1]=7,r++,s[7]++;for(;r<=287;)tn[r*2+1]=8,r++,s[8]++;for(Ry(tn,Bo+1,s),r=0;r<ds;r++)Ao[r*2+1]=5,Ao[r*2]=My(r,5);Oy=new zf(tn,$f,Oo+1,Bo,ui),Ly=new zf(Ao,Jc,0,ds,ui),Fy=new zf(new Array(0),Av,0,Gf,Iv)}function ky(r){var t;for(t=0;t<Bo;t++)r.dyn_ltree[t*2]=0;for(t=0;t<ds;t++)r.dyn_dtree[t*2]=0;for(t=0;t<Gf;t++)r.bl_tree[t*2]=0;r.dyn_ltree[Yf*2]=1,r.opt_len=r.static_len=0,r.last_lit=r.matches=0}function Cy(r){r.bi_valid>8?Eo(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0}function Ov(r,t,e,n){Cy(r),n&&(Eo(r,e),Eo(r,~e)),_v.arraySet(r.pending_buf,r.window,t,e,r.pending),r.pending+=e}function by(r,t,e,n){var i=t*2,s=e*2;return r[i]<r[s]||r[i]===r[s]&&n[t]<=n[e]}function Hf(r,t,e){for(var n=r.heap[e],i=e<<1;i<=r.heap_len&&(i<r.heap_len&&by(t,r.heap[i+1],r.heap[i],r.depth)&&i++,!by(t,n,r.heap[i],r.depth));)r.heap[e]=r.heap[i],e=i,i<<=1;r.heap[e]=n}function wy(r,t,e){var n,i,s=0,o,a;if(r.last_lit!==0)do n=r.pending_buf[r.d_buf+s*2]<<8|r.pending_buf[r.d_buf+s*2+1],i=r.pending_buf[r.l_buf+s],s++,n===0?Lr(r,i,t):(o=To[i],Lr(r,o+Oo+1,t),a=$f[o],a!==0&&(i-=Kf[o],me(r,i,a)),n--,o=Ny(n),Lr(r,o,e),a=Jc[o],a!==0&&(n-=Xc[o],me(r,n,a)));while(s<r.last_lit);Lr(r,Yf,t)}function Zf(r,t){var e=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems,o,a,l=-1,c;for(r.heap_len=0,r.heap_max=Ay,o=0;o<s;o++)e[o*2]!==0?(r.heap[++r.heap_len]=l=o,r.depth[o]=0):e[o*2+1]=0;for(;r.heap_len<2;)c=r.heap[++r.heap_len]=l<2?++l:0,e[c*2]=1,r.depth[c]=0,r.opt_len--,i&&(r.static_len-=n[c*2+1]);for(t.max_code=l,o=r.heap_len>>1;o>=1;o--)Hf(r,e,o);c=s;do o=r.heap[1],r.heap[1]=r.heap[r.heap_len--],Hf(r,e,1),a=r.heap[1],r.heap[--r.heap_max]=o,r.heap[--r.heap_max]=a,e[c*2]=e[o*2]+e[a*2],r.depth[c]=(r.depth[o]>=r.depth[a]?r.depth[o]:r.depth[a])+1,e[o*2+1]=e[a*2+1]=c,r.heap[1]=c++,Hf(r,e,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],Tv(r,t),Ry(e,l,r.bl_count)}function vy(r,t,e){var n,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(e+1)*2+1]=65535,n=0;n<=e;n++)s=o,o=t[(n+1)*2+1],!(++a<l&&s===o)&&(a<c?r.bl_tree[s*2]+=a:s!==0?(s!==i&&r.bl_tree[s*2]++,r.bl_tree[By*2]++):a<=10?r.bl_tree[Dy*2]++:r.bl_tree[Ty*2]++,a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4))}function Sy(r,t,e){var n,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),n=0;n<=e;n++)if(s=o,o=t[(n+1)*2+1],!(++a<l&&s===o)){if(a<c)do Lr(r,s,r.bl_tree);while(--a!==0);else s!==0?(s!==i&&(Lr(r,s,r.bl_tree),a--),Lr(r,By,r.bl_tree),me(r,a-3,2)):a<=10?(Lr(r,Dy,r.bl_tree),me(r,a-3,3)):(Lr(r,Ty,r.bl_tree),me(r,a-11,7));a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4)}}function Lv(r){var t;for(vy(r,r.dyn_ltree,r.l_desc.max_code),vy(r,r.dyn_dtree,r.d_desc.max_code),Zf(r,r.bl_desc),t=Gf-1;t>=3&&r.bl_tree[Ey[t]*2+1]===0;t--);return r.opt_len+=3*(t+1)+5+5+4,t}function Fv(r,t,e,n){var i;for(me(r,t-257,5),me(r,e-1,5),me(r,n-4,4),i=0;i<n;i++)me(r,r.bl_tree[Ey[i]*2+1],3);Sy(r,r.dyn_ltree,t-1),Sy(r,r.dyn_dtree,e-1)}function Nv(r){var t=4093624447,e;for(e=0;e<=31;e++,t>>>=1)if(t&1&&r.dyn_ltree[e*2]!==0)return _y;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return gy;for(e=32;e<Oo;e++)if(r.dyn_ltree[e*2]!==0)return gy;return _y}var xy=!1;function Mv(r){xy||(Ev(),xy=!0),r.l_desc=new jf(r.dyn_ltree,Oy),r.d_desc=new jf(r.dyn_dtree,Ly),r.bl_desc=new jf(r.bl_tree,Fy),r.bi_buf=0,r.bi_valid=0,ky(r)}function Uy(r,t,e,n){me(r,(wv<<1)+(n?1:0),3),Ov(r,t,e,!0)}function Rv(r){me(r,Iy<<1,3),Lr(r,Yf,tn),Dv(r)}function kv(r,t,e,n){var i,s,o=0;r.level>0?(r.strm.data_type===bv&&(r.strm.data_type=Nv(r)),Zf(r,r.l_desc),Zf(r,r.d_desc),o=Lv(r),i=r.opt_len+3+7>>>3,s=r.static_len+3+7>>>3,s<=i&&(i=s)):i=s=e+5,e+4<=i&&t!==-1?Uy(r,t,e,n):r.strategy===gv||s===i?(me(r,(Iy<<1)+(n?1:0),3),wy(r,tn,Ao)):(me(r,(vv<<1)+(n?1:0),3),Fv(r,r.l_desc.max_code+1,r.d_desc.max_code+1,o+1),wy(r,r.dyn_ltree,r.dyn_dtree)),ky(r),n&&Cy(r)}function Cv(r,t,e){return r.pending_buf[r.d_buf+r.last_lit*2]=t>>>8&255,r.pending_buf[r.d_buf+r.last_lit*2+1]=t&255,r.pending_buf[r.l_buf+r.last_lit]=e&255,r.last_lit++,t===0?r.dyn_ltree[e*2]++:(r.matches++,t--,r.dyn_ltree[(To[e]+Oo+1)*2]++,r.dyn_dtree[Ny(t)*2]++),r.last_lit===r.lit_bufsize-1}ps._tr_init=Mv;ps._tr_stored_block=Uy;ps._tr_flush_block=kv;ps._tr_tally=Cv;ps._tr_align=Rv});var Jf=Rt((BN,Vy)=>{"use strict";function Uv(r,t,e,n){for(var i=r&65535|0,s=r>>>16&65535|0,o=0;e!==0;){o=e>2e3?2e3:e,e-=o;do i=i+t[n++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}Vy.exports=Uv});var Xf=Rt((DN,zy)=>{"use strict";function Pv(){for(var r,t=[],e=0;e<256;e++){r=e;for(var n=0;n<8;n++)r=r&1?3988292384^r>>>1:r>>>1;t[e]=r}return t}var Vv=Pv();function zv(r,t,e,n){var i=Vv,s=n+e;r^=-1;for(var o=n;o<s;o++)r=r>>>8^i[(r^t[o])&255];return r^-1}zy.exports=zv});var qc=Rt((TN,jy)=>{"use strict";jy.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 Xy=Rt(Mr=>{"use strict";var re=Qr(),ke=Py(),Wy=Jf(),_n=Xf(),jv=qc(),pi=0,Hv=1,$v=3,Sn=4,Hy=5,Nr=0,$y=1,Ce=-2,Zv=-3,qf=-5,Wv=-1,Gv=1,Qc=2,Yv=3,Kv=4,Jv=0,Xv=2,nl=8,qv=9,Qv=15,tS=8,eS=29,rS=256,td=rS+1+eS,nS=30,iS=19,sS=2*td+1,oS=15,J=3,wn=258,Qe=wn+J+1,aS=32,il=42,ed=69,tl=73,el=91,rl=103,fi=113,Fo=666,Mt=1,No=2,di=3,_s=4,cS=3;function vn(r,t){return r.msg=jv[t],t}function Zy(r){return(r<<1)-(r>4?9:0)}function bn(r){for(var t=r.length;--t>=0;)r[t]=0}function gn(r){var t=r.state,e=t.pending;e>r.avail_out&&(e=r.avail_out),e!==0&&(re.arraySet(r.output,t.pending_buf,t.pending_out,e,r.next_out),r.next_out+=e,t.pending_out+=e,r.total_out+=e,r.avail_out-=e,t.pending-=e,t.pending===0&&(t.pending_out=0))}function $t(r,t){ke._tr_flush_block(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,t),r.block_start=r.strstart,gn(r.strm)}function nt(r,t){r.pending_buf[r.pending++]=t}function Lo(r,t){r.pending_buf[r.pending++]=t>>>8&255,r.pending_buf[r.pending++]=t&255}function lS(r,t,e,n){var i=r.avail_in;return i>n&&(i=n),i===0?0:(r.avail_in-=i,re.arraySet(t,r.input,r.next_in,i,e),r.state.wrap===1?r.adler=Wy(r.adler,t,i,e):r.state.wrap===2&&(r.adler=_n(r.adler,t,i,e)),r.next_in+=i,r.total_in+=i,i)}function Gy(r,t){var e=r.max_chain_length,n=r.strstart,i,s,o=r.prev_length,a=r.nice_match,l=r.strstart>r.w_size-Qe?r.strstart-(r.w_size-Qe):0,c=r.window,u=r.w_mask,h=r.prev,m=r.strstart+wn,p=c[n+o-1],y=c[n+o];r.prev_length>=r.good_match&&(e>>=2),a>r.lookahead&&(a=r.lookahead);do if(i=t,!(c[i+o]!==y||c[i+o-1]!==p||c[i]!==c[n]||c[++i]!==c[n+1])){n+=2,i++;do;while(c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&n<m);if(s=wn-(m-n),n=m-wn,s>o){if(r.match_start=t,o=s,s>=a)break;p=c[n+o-1],y=c[n+o]}}while((t=h[t&u])>l&&--e!==0);return o<=r.lookahead?o:r.lookahead}function hi(r){var t=r.w_size,e,n,i,s,o;do{if(s=r.window_size-r.lookahead-r.strstart,r.strstart>=t+(t-Qe)){re.arraySet(r.window,r.window,t,t,0),r.match_start-=t,r.strstart-=t,r.block_start-=t,n=r.hash_size,e=n;do i=r.head[--e],r.head[e]=i>=t?i-t:0;while(--n);n=t,e=n;do i=r.prev[--e],r.prev[e]=i>=t?i-t:0;while(--n);s+=t}if(r.strm.avail_in===0)break;if(n=lS(r.strm,r.window,r.strstart+r.lookahead,s),r.lookahead+=n,r.lookahead+r.insert>=J)for(o=r.strstart-r.insert,r.ins_h=r.window[o],r.ins_h=(r.ins_h<<r.hash_shift^r.window[o+1])&r.hash_mask;r.insert&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[o+J-1])&r.hash_mask,r.prev[o&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=o,o++,r.insert--,!(r.lookahead+r.insert<J)););}while(r.lookahead<Qe&&r.strm.avail_in!==0)}function uS(r,t){var e=65535;for(e>r.pending_buf_size-5&&(e=r.pending_buf_size-5);;){if(r.lookahead<=1){if(hi(r),r.lookahead===0&&t===pi)return Mt;if(r.lookahead===0)break}r.strstart+=r.lookahead,r.lookahead=0;var n=r.block_start+e;if((r.strstart===0||r.strstart>=n)&&(r.lookahead=r.strstart-n,r.strstart=n,$t(r,!1),r.strm.avail_out===0)||r.strstart-r.block_start>=r.w_size-Qe&&($t(r,!1),r.strm.avail_out===0))return Mt}return r.insert=0,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):(r.strstart>r.block_start&&($t(r,!1),r.strm.avail_out===0),Mt)}function Qf(r,t){for(var e,n;;){if(r.lookahead<Qe){if(hi(r),r.lookahead<Qe&&t===pi)return Mt;if(r.lookahead===0)break}if(e=0,r.lookahead>=J&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+J-1])&r.hash_mask,e=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),e!==0&&r.strstart-e<=r.w_size-Qe&&(r.match_length=Gy(r,e)),r.match_length>=J)if(n=ke._tr_tally(r,r.strstart-r.match_start,r.match_length-J),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=J){r.match_length--;do r.strstart++,r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+J-1])&r.hash_mask,e=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!==0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+1])&r.hash_mask;else n=ke._tr_tally(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(n&&($t(r,!1),r.strm.avail_out===0))return Mt}return r.insert=r.strstart<J-1?r.strstart:J-1,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):r.last_lit&&($t(r,!1),r.strm.avail_out===0)?Mt:No}function ms(r,t){for(var e,n,i;;){if(r.lookahead<Qe){if(hi(r),r.lookahead<Qe&&t===pi)return Mt;if(r.lookahead===0)break}if(e=0,r.lookahead>=J&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+J-1])&r.hash_mask,e=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=J-1,e!==0&&r.prev_length<r.max_lazy_match&&r.strstart-e<=r.w_size-Qe&&(r.match_length=Gy(r,e),r.match_length<=5&&(r.strategy===Gv||r.match_length===J&&r.strstart-r.match_start>4096)&&(r.match_length=J-1)),r.prev_length>=J&&r.match_length<=r.prev_length){i=r.strstart+r.lookahead-J,n=ke._tr_tally(r,r.strstart-1-r.prev_match,r.prev_length-J),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=i&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+J-1])&r.hash_mask,e=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!==0);if(r.match_available=0,r.match_length=J-1,r.strstart++,n&&($t(r,!1),r.strm.avail_out===0))return Mt}else if(r.match_available){if(n=ke._tr_tally(r,0,r.window[r.strstart-1]),n&&$t(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return Mt}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(n=ke._tr_tally(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart<J-1?r.strstart:J-1,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):r.last_lit&&($t(r,!1),r.strm.avail_out===0)?Mt:No}function fS(r,t){for(var e,n,i,s,o=r.window;;){if(r.lookahead<=wn){if(hi(r),r.lookahead<=wn&&t===pi)return Mt;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=J&&r.strstart>0&&(i=r.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){s=r.strstart+wn;do;while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<s);r.match_length=wn-(s-i),r.match_length>r.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=J?(e=ke._tr_tally(r,1,r.match_length-J),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(e=ke._tr_tally(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),e&&($t(r,!1),r.strm.avail_out===0))return Mt}return r.insert=0,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):r.last_lit&&($t(r,!1),r.strm.avail_out===0)?Mt:No}function dS(r,t){for(var e;;){if(r.lookahead===0&&(hi(r),r.lookahead===0)){if(t===pi)return Mt;break}if(r.match_length=0,e=ke._tr_tally(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,e&&($t(r,!1),r.strm.avail_out===0))return Mt}return r.insert=0,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):r.last_lit&&($t(r,!1),r.strm.avail_out===0)?Mt:No}function Fr(r,t,e,n,i){this.good_length=r,this.max_lazy=t,this.nice_length=e,this.max_chain=n,this.func=i}var ys;ys=[new Fr(0,0,0,0,uS),new Fr(4,4,8,4,Qf),new Fr(4,5,16,8,Qf),new Fr(4,6,32,32,Qf),new Fr(4,4,16,16,ms),new Fr(8,16,32,32,ms),new Fr(8,16,128,128,ms),new Fr(8,32,128,256,ms),new Fr(32,128,258,1024,ms),new Fr(32,258,258,4096,ms)];function hS(r){r.window_size=2*r.w_size,bn(r.head),r.max_lazy_match=ys[r.level].max_lazy,r.good_match=ys[r.level].good_length,r.nice_match=ys[r.level].nice_length,r.max_chain_length=ys[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=J-1,r.match_available=0,r.ins_h=0}function pS(){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=nl,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 re.Buf16(sS*2),this.dyn_dtree=new re.Buf16((2*nS+1)*2),this.bl_tree=new re.Buf16((2*iS+1)*2),bn(this.dyn_ltree),bn(this.dyn_dtree),bn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new re.Buf16(oS+1),this.heap=new re.Buf16(2*td+1),bn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new re.Buf16(2*td+1),bn(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 Yy(r){var t;return!r||!r.state?vn(r,Ce):(r.total_in=r.total_out=0,r.data_type=Xv,t=r.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?il:fi,r.adler=t.wrap===2?0:1,t.last_flush=pi,ke._tr_init(t),Nr)}function Ky(r){var t=Yy(r);return t===Nr&&hS(r.state),t}function mS(r,t){return!r||!r.state||r.state.wrap!==2?Ce:(r.state.gzhead=t,Nr)}function Jy(r,t,e,n,i,s){if(!r)return Ce;var o=1;if(t===Wv&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>qv||e!==nl||n<8||n>15||t<0||t>9||s<0||s>Kv)return vn(r,Ce);n===8&&(n=9);var a=new pS;return r.state=a,a.strm=r,a.wrap=o,a.gzhead=null,a.w_bits=n,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+J-1)/J),a.window=new re.Buf8(a.w_size*2),a.head=new re.Buf16(a.hash_size),a.prev=new re.Buf16(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new re.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=(1+2)*a.lit_bufsize,a.level=t,a.strategy=s,a.method=e,Ky(r)}function yS(r,t){return Jy(r,t,nl,Qv,tS,Jv)}function _S(r,t){var e,n,i,s;if(!r||!r.state||t>Hy||t<0)return r?vn(r,Ce):Ce;if(n=r.state,!r.output||!r.input&&r.avail_in!==0||n.status===Fo&&t!==Sn)return vn(r,r.avail_out===0?qf:Ce);if(n.strm=r,e=n.last_flush,n.last_flush=t,n.status===il)if(n.wrap===2)r.adler=0,nt(n,31),nt(n,139),nt(n,8),n.gzhead?(nt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),nt(n,n.gzhead.time&255),nt(n,n.gzhead.time>>8&255),nt(n,n.gzhead.time>>16&255),nt(n,n.gzhead.time>>24&255),nt(n,n.level===9?2:n.strategy>=Qc||n.level<2?4:0),nt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(nt(n,n.gzhead.extra.length&255),nt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(r.adler=_n(r.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=ed):(nt(n,0),nt(n,0),nt(n,0),nt(n,0),nt(n,0),nt(n,n.level===9?2:n.strategy>=Qc||n.level<2?4:0),nt(n,cS),n.status=fi);else{var o=nl+(n.w_bits-8<<4)<<8,a=-1;n.strategy>=Qc||n.level<2?a=0:n.level<6?a=1:n.level===6?a=2:a=3,o|=a<<6,n.strstart!==0&&(o|=aS),o+=31-o%31,n.status=fi,Lo(n,o),n.strstart!==0&&(Lo(n,r.adler>>>16),Lo(n,r.adler&65535)),r.adler=1}if(n.status===ed)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&!(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),gn(r),i=n.pending,n.pending===n.pending_buf_size));)nt(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=tl)}else n.status=tl;if(n.status===tl)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),gn(r),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,nt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),s===0&&(n.gzindex=0,n.status=el)}else n.status=el;if(n.status===el)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),gn(r),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,nt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),s===0&&(n.status=rl)}else n.status=rl;if(n.status===rl&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&gn(r),n.pending+2<=n.pending_buf_size&&(nt(n,r.adler&255),nt(n,r.adler>>8&255),r.adler=0,n.status=fi)):n.status=fi),n.pending!==0){if(gn(r),r.avail_out===0)return n.last_flush=-1,Nr}else if(r.avail_in===0&&Zy(t)<=Zy(e)&&t!==Sn)return vn(r,qf);if(n.status===Fo&&r.avail_in!==0)return vn(r,qf);if(r.avail_in!==0||n.lookahead!==0||t!==pi&&n.status!==Fo){var l=n.strategy===Qc?dS(n,t):n.strategy===Yv?fS(n,t):ys[n.level].func(n,t);if((l===di||l===_s)&&(n.status=Fo),l===Mt||l===di)return r.avail_out===0&&(n.last_flush=-1),Nr;if(l===No&&(t===Hv?ke._tr_align(n):t!==Hy&&(ke._tr_stored_block(n,0,0,!1),t===$v&&(bn(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),gn(r),r.avail_out===0))return n.last_flush=-1,Nr}return t!==Sn?Nr:n.wrap<=0?$y:(n.wrap===2?(nt(n,r.adler&255),nt(n,r.adler>>8&255),nt(n,r.adler>>16&255),nt(n,r.adler>>24&255),nt(n,r.total_in&255),nt(n,r.total_in>>8&255),nt(n,r.total_in>>16&255),nt(n,r.total_in>>24&255)):(Lo(n,r.adler>>>16),Lo(n,r.adler&65535)),gn(r),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Nr:$y)}function gS(r){var t;return!r||!r.state?Ce:(t=r.state.status,t!==il&&t!==ed&&t!==tl&&t!==el&&t!==rl&&t!==fi&&t!==Fo?vn(r,Ce):(r.state=null,t===fi?vn(r,Zv):Nr))}function bS(r,t){var e=t.length,n,i,s,o,a,l,c,u;if(!r||!r.state||(n=r.state,o=n.wrap,o===2||o===1&&n.status!==il||n.lookahead))return Ce;for(o===1&&(r.adler=Wy(r.adler,t,e,0)),n.wrap=0,e>=n.w_size&&(o===0&&(bn(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new re.Buf8(n.w_size),re.arraySet(u,t,e-n.w_size,n.w_size,0),t=u,e=n.w_size),a=r.avail_in,l=r.next_in,c=r.input,r.avail_in=e,r.next_in=0,r.input=t,hi(n);n.lookahead>=J;){i=n.strstart,s=n.lookahead-(J-1);do n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+J-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++;while(--s);n.strstart=i,n.lookahead=J-1,hi(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=J-1,n.match_available=0,r.next_in=l,r.input=c,r.avail_in=a,n.wrap=o,Nr}Mr.deflateInit=yS;Mr.deflateInit2=Jy;Mr.deflateReset=Ky;Mr.deflateResetKeep=Yy;Mr.deflateSetHeader=mS;Mr.deflate=_S;Mr.deflateEnd=gS;Mr.deflateSetDictionary=bS;Mr.deflateInfo="pako deflate (from Nodeca project)"});var rd=Rt(gs=>{"use strict";var sl=Qr(),qy=!0,Qy=!0;try{String.fromCharCode.apply(null,[0])}catch{qy=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Qy=!1}var Mo=new sl.Buf8(256);for(en=0;en<256;en++)Mo[en]=en>=252?6:en>=248?5:en>=240?4:en>=224?3:en>=192?2:1;var en;Mo[254]=Mo[254]=1;gs.string2buf=function(r){var t,e,n,i,s,o=r.length,a=0;for(i=0;i<o;i++)e=r.charCodeAt(i),(e&64512)===55296&&i+1<o&&(n=r.charCodeAt(i+1),(n&64512)===56320&&(e=65536+(e-55296<<10)+(n-56320),i++)),a+=e<128?1:e<2048?2:e<65536?3:4;for(t=new sl.Buf8(a),s=0,i=0;s<a;i++)e=r.charCodeAt(i),(e&64512)===55296&&i+1<o&&(n=r.charCodeAt(i+1),(n&64512)===56320&&(e=65536+(e-55296<<10)+(n-56320),i++)),e<128?t[s++]=e:e<2048?(t[s++]=192|e>>>6,t[s++]=128|e&63):e<65536?(t[s++]=224|e>>>12,t[s++]=128|e>>>6&63,t[s++]=128|e&63):(t[s++]=240|e>>>18,t[s++]=128|e>>>12&63,t[s++]=128|e>>>6&63,t[s++]=128|e&63);return t};function t_(r,t){if(t<65534&&(r.subarray&&Qy||!r.subarray&&qy))return String.fromCharCode.apply(null,sl.shrinkBuf(r,t));for(var e="",n=0;n<t;n++)e+=String.fromCharCode(r[n]);return e}gs.buf2binstring=function(r){return t_(r,r.length)};gs.binstring2buf=function(r){for(var t=new sl.Buf8(r.length),e=0,n=t.length;e<n;e++)t[e]=r.charCodeAt(e);return t};gs.buf2string=function(r,t){var e,n,i,s,o=t||r.length,a=new Array(o*2);for(n=0,e=0;e<o;){if(i=r[e++],i<128){a[n++]=i;continue}if(s=Mo[i],s>4){a[n++]=65533,e+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&e<o;)i=i<<6|r[e++]&63,s--;if(s>1){a[n++]=65533;continue}i<65536?a[n++]=i:(i-=65536,a[n++]=55296|i>>10&1023,a[n++]=56320|i&1023)}return t_(a,n)};gs.utf8border=function(r,t){var e;for(t=t||r.length,t>r.length&&(t=r.length),e=t-1;e>=0&&(r[e]&192)===128;)e--;return e<0||e===0?t:e+Mo[r[e]]>t?e:t}});var nd=Rt((LN,e_)=>{"use strict";function wS(){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}e_.exports=wS});var s_=Rt(Co=>{"use strict";var Ro=Xy(),ko=Qr(),sd=rd(),od=qc(),vS=nd(),i_=Object.prototype.toString,SS=0,id=4,bs=0,r_=1,n_=2,xS=-1,IS=0,AS=8;function mi(r){if(!(this instanceof mi))return new mi(r);this.options=ko.assign({level:xS,method:AS,chunkSize:16384,windowBits:15,memLevel:8,strategy:IS,to:""},r||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new vS,this.strm.avail_out=0;var e=Ro.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==bs)throw new Error(od[e]);if(t.header&&Ro.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(typeof t.dictionary=="string"?n=sd.string2buf(t.dictionary):i_.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,e=Ro.deflateSetDictionary(this.strm,n),e!==bs)throw new Error(od[e]);this._dict_set=!0}}mi.prototype.push=function(r,t){var e=this.strm,n=this.options.chunkSize,i,s;if(this.ended)return!1;s=t===~~t?t:t===!0?id:SS,typeof r=="string"?e.input=sd.string2buf(r):i_.call(r)==="[object ArrayBuffer]"?e.input=new Uint8Array(r):e.input=r,e.next_in=0,e.avail_in=e.input.length;do{if(e.avail_out===0&&(e.output=new ko.Buf8(n),e.next_out=0,e.avail_out=n),i=Ro.deflate(e,s),i!==r_&&i!==bs)return this.onEnd(i),this.ended=!0,!1;(e.avail_out===0||e.avail_in===0&&(s===id||s===n_))&&(this.options.to==="string"?this.onData(sd.buf2binstring(ko.shrinkBuf(e.output,e.next_out))):this.onData(ko.shrinkBuf(e.output,e.next_out)))}while((e.avail_in>0||e.avail_out===0)&&i!==r_);return s===id?(i=Ro.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===bs):(s===n_&&(this.onEnd(bs),e.avail_out=0),!0)};mi.prototype.onData=function(r){this.chunks.push(r)};mi.prototype.onEnd=function(r){r===bs&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ko.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function ad(r,t){var e=new mi(t);if(e.push(r,!0),e.err)throw e.msg||od[e.err];return e.result}function BS(r,t){return t=t||{},t.raw=!0,ad(r,t)}function DS(r,t){return t=t||{},t.gzip=!0,ad(r,t)}Co.Deflate=mi;Co.deflate=ad;Co.deflateRaw=BS;Co.gzip=DS});var a_=Rt((NN,o_)=>{"use strict";var ol=30,TS=12;o_.exports=function(t,e){var n,i,s,o,a,l,c,u,h,m,p,y,g,N,S,G,tt,V,w,Y,X,z,et,bt,j;n=t.state,i=t.next_in,bt=t.input,s=i+(t.avail_in-5),o=t.next_out,j=t.output,a=o-(e-t.avail_out),l=o+(t.avail_out-257),c=n.dmax,u=n.wsize,h=n.whave,m=n.wnext,p=n.window,y=n.hold,g=n.bits,N=n.lencode,S=n.distcode,G=(1<<n.lenbits)-1,tt=(1<<n.distbits)-1;t:do{g<15&&(y+=bt[i++]<<g,g+=8,y+=bt[i++]<<g,g+=8),V=N[y&G];e:for(;;){if(w=V>>>24,y>>>=w,g-=w,w=V>>>16&255,w===0)j[o++]=V&65535;else if(w&16){Y=V&65535,w&=15,w&&(g<w&&(y+=bt[i++]<<g,g+=8),Y+=y&(1<<w)-1,y>>>=w,g-=w),g<15&&(y+=bt[i++]<<g,g+=8,y+=bt[i++]<<g,g+=8),V=S[y&tt];r:for(;;){if(w=V>>>24,y>>>=w,g-=w,w=V>>>16&255,w&16){if(X=V&65535,w&=15,g<w&&(y+=bt[i++]<<g,g+=8,g<w&&(y+=bt[i++]<<g,g+=8)),X+=y&(1<<w)-1,X>c){t.msg="invalid distance too far back",n.mode=ol;break t}if(y>>>=w,g-=w,w=o-a,X>w){if(w=X-w,w>h&&n.sane){t.msg="invalid distance too far back",n.mode=ol;break t}if(z=0,et=p,m===0){if(z+=u-w,w<Y){Y-=w;do j[o++]=p[z++];while(--w);z=o-X,et=j}}else if(m<w){if(z+=u+m-w,w-=m,w<Y){Y-=w;do j[o++]=p[z++];while(--w);if(z=0,m<Y){w=m,Y-=w;do j[o++]=p[z++];while(--w);z=o-X,et=j}}}else if(z+=m-w,w<Y){Y-=w;do j[o++]=p[z++];while(--w);z=o-X,et=j}for(;Y>2;)j[o++]=et[z++],j[o++]=et[z++],j[o++]=et[z++],Y-=3;Y&&(j[o++]=et[z++],Y>1&&(j[o++]=et[z++]))}else{z=o-X;do j[o++]=j[z++],j[o++]=j[z++],j[o++]=j[z++],Y-=3;while(Y>2);Y&&(j[o++]=j[z++],Y>1&&(j[o++]=j[z++]))}}else if(w&64){t.msg="invalid distance code",n.mode=ol;break t}else{V=S[(V&65535)+(y&(1<<w)-1)];continue r}break}}else if(w&64)if(w&32){n.mode=TS;break t}else{t.msg="invalid literal/length code",n.mode=ol;break t}else{V=N[(V&65535)+(y&(1<<w)-1)];continue e}break}}while(i<s&&o<l);Y=g>>3,i-=Y,g-=Y<<3,y&=(1<<g)-1,t.next_in=i,t.next_out=o,t.avail_in=i<s?5+(s-i):5-(i-s),t.avail_out=o<l?257+(l-o):257-(o-l),n.hold=y,n.bits=g}});var p_=Rt((MN,h_)=>{"use strict";var c_=Qr(),ws=15,l_=852,u_=592,f_=0,cd=1,d_=2,ES=[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],OS=[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],LS=[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],FS=[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];h_.exports=function(t,e,n,i,s,o,a,l){var c=l.bits,u=0,h=0,m=0,p=0,y=0,g=0,N=0,S=0,G=0,tt=0,V,w,Y,X,z,et=null,bt=0,j,Pe=new c_.Buf16(ws+1),Ko=new c_.Buf16(ws+1),Jo=null,Td=0,Ed,Xo,qo;for(u=0;u<=ws;u++)Pe[u]=0;for(h=0;h<i;h++)Pe[e[n+h]]++;for(y=c,p=ws;p>=1&&Pe[p]===0;p--);if(y>p&&(y=p),p===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,l.bits=1,0;for(m=1;m<p&&Pe[m]===0;m++);for(y<m&&(y=m),S=1,u=1;u<=ws;u++)if(S<<=1,S-=Pe[u],S<0)return-1;if(S>0&&(t===f_||p!==1))return-1;for(Ko[1]=0,u=1;u<ws;u++)Ko[u+1]=Ko[u]+Pe[u];for(h=0;h<i;h++)e[n+h]!==0&&(a[Ko[e[n+h]]++]=h);if(t===f_?(et=Jo=a,j=19):t===cd?(et=ES,bt-=257,Jo=OS,Td-=257,j=256):(et=LS,Jo=FS,j=-1),tt=0,h=0,u=m,z=o,g=y,N=0,Y=-1,G=1<<y,X=G-1,t===cd&&G>l_||t===d_&&G>u_)return 1;for(;;){Ed=u-N,a[h]<j?(Xo=0,qo=a[h]):a[h]>j?(Xo=Jo[Td+a[h]],qo=et[bt+a[h]]):(Xo=32+64,qo=0),V=1<<u-N,w=1<<g,m=w;do w-=V,s[z+(tt>>N)+w]=Ed<<24|Xo<<16|qo|0;while(w!==0);for(V=1<<u-1;tt&V;)V>>=1;if(V!==0?(tt&=V-1,tt+=V):tt=0,h++,--Pe[u]===0){if(u===p)break;u=e[n+a[h]]}if(u>y&&(tt&X)!==Y){for(N===0&&(N=y),z+=m,g=u-N,S=1<<g;g+N<p&&(S-=Pe[g+N],!(S<=0));)g++,S<<=1;if(G+=1<<g,t===cd&&G>l_||t===d_&&G>u_)return 1;Y=tt&X,s[Y]=y<<24|g<<16|z-o|0}}return tt!==0&&(s[z+tt]=u-N<<24|64<<16|0),l.bits=y,0}});var K_=Rt(tr=>{"use strict";var De=Qr(),pd=Jf(),Rr=Xf(),NS=a_(),Uo=p_(),MS=0,V_=1,z_=2,m_=4,RS=5,al=6,yi=0,kS=1,CS=2,Ue=-2,j_=-3,md=-4,US=-5,y_=8,H_=1,__=2,g_=3,b_=4,w_=5,v_=6,S_=7,x_=8,I_=9,A_=10,ul=11,rn=12,ld=13,B_=14,ud=15,D_=16,T_=17,E_=18,O_=19,cl=20,ll=21,L_=22,F_=23,N_=24,M_=25,R_=26,fd=27,k_=28,C_=29,mt=30,yd=31,PS=32,VS=852,zS=592,jS=15,HS=jS;function U_(r){return(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24)}function $S(){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 De.Buf16(320),this.work=new De.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function $_(r){var t;return!r||!r.state?Ue:(t=r.state,r.total_in=r.total_out=t.total=0,r.msg="",t.wrap&&(r.adler=t.wrap&1),t.mode=H_,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new De.Buf32(VS),t.distcode=t.distdyn=new De.Buf32(zS),t.sane=1,t.back=-1,yi)}function Z_(r){var t;return!r||!r.state?Ue:(t=r.state,t.wsize=0,t.whave=0,t.wnext=0,$_(r))}function W_(r,t){var e,n;return!r||!r.state||(n=r.state,t<0?(e=0,t=-t):(e=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ue:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=e,n.wbits=t,Z_(r))}function G_(r,t){var e,n;return r?(n=new $S,r.state=n,n.window=null,e=W_(r,t),e!==yi&&(r.state=null),e):Ue}function ZS(r){return G_(r,HS)}var P_=!0,dd,hd;function WS(r){if(P_){var t;for(dd=new De.Buf32(512),hd=new De.Buf32(32),t=0;t<144;)r.lens[t++]=8;for(;t<256;)r.lens[t++]=9;for(;t<280;)r.lens[t++]=7;for(;t<288;)r.lens[t++]=8;for(Uo(V_,r.lens,0,288,dd,0,r.work,{bits:9}),t=0;t<32;)r.lens[t++]=5;Uo(z_,r.lens,0,32,hd,0,r.work,{bits:5}),P_=!1}r.lencode=dd,r.lenbits=9,r.distcode=hd,r.distbits=5}function Y_(r,t,e,n){var i,s=r.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new De.Buf8(s.wsize)),n>=s.wsize?(De.arraySet(s.window,t,e-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>n&&(i=n),De.arraySet(s.window,t,e-n,i,s.wnext),n-=i,n?(De.arraySet(s.window,t,e-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function GS(r,t){var e,n,i,s,o,a,l,c,u,h,m,p,y,g,N=0,S,G,tt,V,w,Y,X,z,et=new De.Buf8(4),bt,j,Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!r||!r.state||!r.output||!r.input&&r.avail_in!==0)return Ue;e=r.state,e.mode===rn&&(e.mode=ld),o=r.next_out,i=r.output,l=r.avail_out,s=r.next_in,n=r.input,a=r.avail_in,c=e.hold,u=e.bits,h=a,m=l,z=yi;t:for(;;)switch(e.mode){case H_:if(e.wrap===0){e.mode=ld;break}for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(e.wrap&2&&c===35615){e.check=0,et[0]=c&255,et[1]=c>>>8&255,e.check=Rr(e.check,et,2,0),c=0,u=0,e.mode=__;break}if(e.flags=0,e.head&&(e.head.done=!1),!(e.wrap&1)||(((c&255)<<8)+(c>>8))%31){r.msg="incorrect header check",e.mode=mt;break}if((c&15)!==y_){r.msg="unknown compression method",e.mode=mt;break}if(c>>>=4,u-=4,X=(c&15)+8,e.wbits===0)e.wbits=X;else if(X>e.wbits){r.msg="invalid window size",e.mode=mt;break}e.dmax=1<<X,r.adler=e.check=1,e.mode=c&512?A_:rn,c=0,u=0;break;case __:for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(e.flags=c,(e.flags&255)!==y_){r.msg="unknown compression method",e.mode=mt;break}if(e.flags&57344){r.msg="unknown header flags set",e.mode=mt;break}e.head&&(e.head.text=c>>8&1),e.flags&512&&(et[0]=c&255,et[1]=c>>>8&255,e.check=Rr(e.check,et,2,0)),c=0,u=0,e.mode=g_;case g_:for(;u<32;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.head&&(e.head.time=c),e.flags&512&&(et[0]=c&255,et[1]=c>>>8&255,et[2]=c>>>16&255,et[3]=c>>>24&255,e.check=Rr(e.check,et,4,0)),c=0,u=0,e.mode=b_;case b_:for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.head&&(e.head.xflags=c&255,e.head.os=c>>8),e.flags&512&&(et[0]=c&255,et[1]=c>>>8&255,e.check=Rr(e.check,et,2,0)),c=0,u=0,e.mode=w_;case w_:if(e.flags&1024){for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.length=c,e.head&&(e.head.extra_len=c),e.flags&512&&(et[0]=c&255,et[1]=c>>>8&255,e.check=Rr(e.check,et,2,0)),c=0,u=0}else e.head&&(e.head.extra=null);e.mode=v_;case v_:if(e.flags&1024&&(p=e.length,p>a&&(p=a),p&&(e.head&&(X=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),De.arraySet(e.head.extra,n,s,p,X)),e.flags&512&&(e.check=Rr(e.check,n,p,s)),a-=p,s+=p,e.length-=p),e.length))break t;e.length=0,e.mode=S_;case S_:if(e.flags&2048){if(a===0)break t;p=0;do X=n[s+p++],e.head&&X&&e.length<65536&&(e.head.name+=String.fromCharCode(X));while(X&&p<a);if(e.flags&512&&(e.check=Rr(e.check,n,p,s)),a-=p,s+=p,X)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=x_;case x_:if(e.flags&4096){if(a===0)break t;p=0;do X=n[s+p++],e.head&&X&&e.length<65536&&(e.head.comment+=String.fromCharCode(X));while(X&&p<a);if(e.flags&512&&(e.check=Rr(e.check,n,p,s)),a-=p,s+=p,X)break t}else e.head&&(e.head.comment=null);e.mode=I_;case I_:if(e.flags&512){for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(c!==(e.check&65535)){r.msg="header crc mismatch",e.mode=mt;break}c=0,u=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),r.adler=e.check=0,e.mode=rn;break;case A_:for(;u<32;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}r.adler=e.check=U_(c),c=0,u=0,e.mode=ul;case ul:if(e.havedict===0)return r.next_out=o,r.avail_out=l,r.next_in=s,r.avail_in=a,e.hold=c,e.bits=u,CS;r.adler=e.check=1,e.mode=rn;case rn:if(t===RS||t===al)break t;case ld:if(e.last){c>>>=u&7,u-=u&7,e.mode=fd;break}for(;u<3;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}switch(e.last=c&1,c>>>=1,u-=1,c&3){case 0:e.mode=B_;break;case 1:if(WS(e),e.mode=cl,t===al){c>>>=2,u-=2;break t}break;case 2:e.mode=T_;break;case 3:r.msg="invalid block type",e.mode=mt}c>>>=2,u-=2;break;case B_:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){r.msg="invalid stored block lengths",e.mode=mt;break}if(e.length=c&65535,c=0,u=0,e.mode=ud,t===al)break t;case ud:e.mode=D_;case D_:if(p=e.length,p){if(p>a&&(p=a),p>l&&(p=l),p===0)break t;De.arraySet(i,n,s,p,o),a-=p,s+=p,l-=p,o+=p,e.length-=p;break}e.mode=rn;break;case T_:for(;u<14;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(e.nlen=(c&31)+257,c>>>=5,u-=5,e.ndist=(c&31)+1,c>>>=5,u-=5,e.ncode=(c&15)+4,c>>>=4,u-=4,e.nlen>286||e.ndist>30){r.msg="too many length or distance symbols",e.mode=mt;break}e.have=0,e.mode=E_;case E_:for(;e.have<e.ncode;){for(;u<3;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.lens[Pe[e.have++]]=c&7,c>>>=3,u-=3}for(;e.have<19;)e.lens[Pe[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,bt={bits:e.lenbits},z=Uo(MS,e.lens,0,19,e.lencode,0,e.work,bt),e.lenbits=bt.bits,z){r.msg="invalid code lengths set",e.mode=mt;break}e.have=0,e.mode=O_;case O_:for(;e.have<e.nlen+e.ndist;){for(;N=e.lencode[c&(1<<e.lenbits)-1],S=N>>>24,G=N>>>16&255,tt=N&65535,!(S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(tt<16)c>>>=S,u-=S,e.lens[e.have++]=tt;else{if(tt===16){for(j=S+2;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(c>>>=S,u-=S,e.have===0){r.msg="invalid bit length repeat",e.mode=mt;break}X=e.lens[e.have-1],p=3+(c&3),c>>>=2,u-=2}else if(tt===17){for(j=S+3;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}c>>>=S,u-=S,X=0,p=3+(c&7),c>>>=3,u-=3}else{for(j=S+7;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}c>>>=S,u-=S,X=0,p=11+(c&127),c>>>=7,u-=7}if(e.have+p>e.nlen+e.ndist){r.msg="invalid bit length repeat",e.mode=mt;break}for(;p--;)e.lens[e.have++]=X}}if(e.mode===mt)break;if(e.lens[256]===0){r.msg="invalid code -- missing end-of-block",e.mode=mt;break}if(e.lenbits=9,bt={bits:e.lenbits},z=Uo(V_,e.lens,0,e.nlen,e.lencode,0,e.work,bt),e.lenbits=bt.bits,z){r.msg="invalid literal/lengths set",e.mode=mt;break}if(e.distbits=6,e.distcode=e.distdyn,bt={bits:e.distbits},z=Uo(z_,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,bt),e.distbits=bt.bits,z){r.msg="invalid distances set",e.mode=mt;break}if(e.mode=cl,t===al)break t;case cl:e.mode=ll;case ll:if(a>=6&&l>=258){r.next_out=o,r.avail_out=l,r.next_in=s,r.avail_in=a,e.hold=c,e.bits=u,NS(r,m),o=r.next_out,i=r.output,l=r.avail_out,s=r.next_in,n=r.input,a=r.avail_in,c=e.hold,u=e.bits,e.mode===rn&&(e.back=-1);break}for(e.back=0;N=e.lencode[c&(1<<e.lenbits)-1],S=N>>>24,G=N>>>16&255,tt=N&65535,!(S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(G&&!(G&240)){for(V=S,w=G,Y=tt;N=e.lencode[Y+((c&(1<<V+w)-1)>>V)],S=N>>>24,G=N>>>16&255,tt=N&65535,!(V+S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}c>>>=V,u-=V,e.back+=V}if(c>>>=S,u-=S,e.back+=S,e.length=tt,G===0){e.mode=R_;break}if(G&32){e.back=-1,e.mode=rn;break}if(G&64){r.msg="invalid literal/length code",e.mode=mt;break}e.extra=G&15,e.mode=L_;case L_:if(e.extra){for(j=e.extra;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.length+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=F_;case F_:for(;N=e.distcode[c&(1<<e.distbits)-1],S=N>>>24,G=N>>>16&255,tt=N&65535,!(S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(!(G&240)){for(V=S,w=G,Y=tt;N=e.distcode[Y+((c&(1<<V+w)-1)>>V)],S=N>>>24,G=N>>>16&255,tt=N&65535,!(V+S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}c>>>=V,u-=V,e.back+=V}if(c>>>=S,u-=S,e.back+=S,G&64){r.msg="invalid distance code",e.mode=mt;break}e.offset=tt,e.extra=G&15,e.mode=N_;case N_:if(e.extra){for(j=e.extra;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.offset+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){r.msg="invalid distance too far back",e.mode=mt;break}e.mode=M_;case M_:if(l===0)break t;if(p=m-l,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){r.msg="invalid distance too far back",e.mode=mt;break}p>e.wnext?(p-=e.wnext,y=e.wsize-p):y=e.wnext-p,p>e.length&&(p=e.length),g=e.window}else g=i,y=o-e.offset,p=e.length;p>l&&(p=l),l-=p,e.length-=p;do i[o++]=g[y++];while(--p);e.length===0&&(e.mode=ll);break;case R_:if(l===0)break t;i[o++]=e.length,l--,e.mode=ll;break;case fd:if(e.wrap){for(;u<32;){if(a===0)break t;a--,c|=n[s++]<<u,u+=8}if(m-=l,r.total_out+=m,e.total+=m,m&&(r.adler=e.check=e.flags?Rr(e.check,i,m,o-m):pd(e.check,i,m,o-m)),m=l,(e.flags?c:U_(c))!==e.check){r.msg="incorrect data check",e.mode=mt;break}c=0,u=0}e.mode=k_;case k_:if(e.wrap&&e.flags){for(;u<32;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(c!==(e.total&4294967295)){r.msg="incorrect length check",e.mode=mt;break}c=0,u=0}e.mode=C_;case C_:z=kS;break t;case mt:z=j_;break t;case yd:return md;case PS:default:return Ue}return r.next_out=o,r.avail_out=l,r.next_in=s,r.avail_in=a,e.hold=c,e.bits=u,(e.wsize||m!==r.avail_out&&e.mode<mt&&(e.mode<fd||t!==m_))&&Y_(r,r.output,r.next_out,m-r.avail_out)?(e.mode=yd,md):(h-=r.avail_in,m-=r.avail_out,r.total_in+=h,r.total_out+=m,e.total+=m,e.wrap&&m&&(r.adler=e.check=e.flags?Rr(e.check,i,m,r.next_out-m):pd(e.check,i,m,r.next_out-m)),r.data_type=e.bits+(e.last?64:0)+(e.mode===rn?128:0)+(e.mode===cl||e.mode===ud?256:0),(h===0&&m===0||t===m_)&&z===yi&&(z=US),z)}function YS(r){if(!r||!r.state)return Ue;var t=r.state;return t.window&&(t.window=null),r.state=null,yi}function KS(r,t){var e;return!r||!r.state||(e=r.state,!(e.wrap&2))?Ue:(e.head=t,t.done=!1,yi)}function JS(r,t){var e=t.length,n,i,s;return!r||!r.state||(n=r.state,n.wrap!==0&&n.mode!==ul)?Ue:n.mode===ul&&(i=1,i=pd(i,t,e,0),i!==n.check)?j_:(s=Y_(r,t,e,e),s?(n.mode=yd,md):(n.havedict=1,yi))}tr.inflateReset=Z_;tr.inflateReset2=W_;tr.inflateResetKeep=$_;tr.inflateInit=ZS;tr.inflateInit2=G_;tr.inflate=GS;tr.inflateEnd=YS;tr.inflateGetHeader=KS;tr.inflateSetDictionary=JS;tr.inflateInfo="pako inflate (from Nodeca project)"});var _d=Rt((kN,J_)=>{"use strict";J_.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 q_=Rt((CN,X_)=>{"use strict";function XS(){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}X_.exports=XS});var tg=Rt(Vo=>{"use strict";var vs=K_(),Po=Qr(),fl=rd(),xt=_d(),gd=qc(),qS=nd(),QS=q_(),Q_=Object.prototype.toString;function _i(r){if(!(this instanceof _i))return new _i(r);this.options=Po.assign({chunkSize:16384,windowBits:0,to:""},r||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(r&&r.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new qS,this.strm.avail_out=0;var e=vs.inflateInit2(this.strm,t.windowBits);if(e!==xt.Z_OK)throw new Error(gd[e]);if(this.header=new QS,vs.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=fl.string2buf(t.dictionary):Q_.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=vs.inflateSetDictionary(this.strm,t.dictionary),e!==xt.Z_OK)))throw new Error(gd[e])}_i.prototype.push=function(r,t){var e=this.strm,n=this.options.chunkSize,i=this.options.dictionary,s,o,a,l,c,u=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?xt.Z_FINISH:xt.Z_NO_FLUSH,typeof r=="string"?e.input=fl.binstring2buf(r):Q_.call(r)==="[object ArrayBuffer]"?e.input=new Uint8Array(r):e.input=r,e.next_in=0,e.avail_in=e.input.length;do{if(e.avail_out===0&&(e.output=new Po.Buf8(n),e.next_out=0,e.avail_out=n),s=vs.inflate(e,xt.Z_NO_FLUSH),s===xt.Z_NEED_DICT&&i&&(s=vs.inflateSetDictionary(this.strm,i)),s===xt.Z_BUF_ERROR&&u===!0&&(s=xt.Z_OK,u=!1),s!==xt.Z_STREAM_END&&s!==xt.Z_OK)return this.onEnd(s),this.ended=!0,!1;e.next_out&&(e.avail_out===0||s===xt.Z_STREAM_END||e.avail_in===0&&(o===xt.Z_FINISH||o===xt.Z_SYNC_FLUSH))&&(this.options.to==="string"?(a=fl.utf8border(e.output,e.next_out),l=e.next_out-a,c=fl.buf2string(e.output,a),e.next_out=l,e.avail_out=n-l,l&&Po.arraySet(e.output,e.output,a,l,0),this.onData(c)):this.onData(Po.shrinkBuf(e.output,e.next_out))),e.avail_in===0&&e.avail_out===0&&(u=!0)}while((e.avail_in>0||e.avail_out===0)&&s!==xt.Z_STREAM_END);return s===xt.Z_STREAM_END&&(o=xt.Z_FINISH),o===xt.Z_FINISH?(s=vs.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===xt.Z_OK):(o===xt.Z_SYNC_FLUSH&&(this.onEnd(xt.Z_OK),e.avail_out=0),!0)};_i.prototype.onData=function(r){this.chunks.push(r)};_i.prototype.onEnd=function(r){r===xt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Po.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function bd(r,t){var e=new _i(t);if(e.push(r,!0),e.err)throw e.msg||gd[e.err];return e.result}function tx(r,t){return t=t||{},t.raw=!0,bd(r,t)}Vo.Inflate=_i;Vo.inflate=bd;Vo.inflateRaw=tx;Vo.ungzip=bd});var ng=Rt((PN,rg)=>{"use strict";var ex=Qr().assign,rx=s_(),nx=tg(),ix=_d(),eg={};ex(eg,rx,nx,ix);rg.exports=eg});var ig=Rt(()=>{});var gi,nn,Ss,sg=d(()=>{"use strict";Pf();Io();gi=Sl(ng(),1),nn=Sl(ig(),1),Ss=class extends fs{name="deflate";extensions=[];contentEncodings=["deflate"];isSupported=!0;options;_chunks=[];constructor(t={}){super(t),this.options=t}async compress(t){if(!is&&this.options.deflate?.useZlib){let e=this.options.deflate?.gzip?await ls(nn.default.gzip)(t):await ls(nn.default.deflate)(t);return yn(e)}return this.compressSync(t)}async decompress(t){if(!is&&this.options.deflate?.useZlib){let e=this.options.deflate?.gzip?await ls(nn.default.gunzip)(t):await ls(nn.default.inflate)(t);return yn(e)}return this.decompressSync(t)}compressSync(t){if(!is&&this.options.deflate?.useZlib){let s=this.options.deflate?.gzip?nn.default.gzipSync(t):nn.default.deflateSync(t);return yn(s)}let e=this.options?.deflate||{},n=new Uint8Array(t),i=this.options?.raw?gi.default.deflateRaw:gi.default.deflate;return yn(i(n,e).buffer)}decompressSync(t){if(!is&&this.options.deflate?.useZlib){let s=this.options.deflate?.gzip?nn.default.gunzipSync(t):nn.default.inflateSync(t);return yn(s)}let e=this.options?.deflate||{},n=new Uint8Array(t),i=this.options?.raw?gi.default.inflateRaw:gi.default.inflate;return yn(i(n,e).buffer)}async*compressBatches(t){let e=this.options?.deflate||{},n=new gi.default.Deflate(e);yield*this.transformBatches(n,t)}async*decompressBatches(t){let e=this.options?.deflate||{},n=new gi.default.Inflate(e);yield*this.transformBatches(n,t)}async*transformBatches(t,e){t.onData=this._onData.bind(this),t.onEnd=this._onEnd.bind(this);for await(let o of e){let a=new Uint8Array(o);if(!t.push(a,!1))throw new Error(`${this._getError()}write`);yield*this._getChunks()}let n=new Uint8Array(0),i=t.push(n,!0);yield*this._getChunks()}_onData(t){this._chunks.push(t)}_onEnd(t){if(t!==0)throw new Error(this._getError(t)+this._chunks.length)}_getChunks(){let t=this._chunks;return this._chunks=[],t}_getError(t=0){let e={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"};return`${this.name}: ${e[t]}`}}});var og,dl,hl,zo,ag=d(()=>{"use strict";Pf();Io();og=1e6,zo=class extends fs{name="zstd";extensions=[];contentEncodings=[];isSupported=!0;options;constructor(t){super(t),this.options=t,cs(t?.modules)}async preload(t={}){cs(t),Nf("zstd-codec",this.name);let e=Mf("zstd-codec");!dl&&e&&(dl=new Promise(n=>e.run(i=>n(i)))),dl&&(hl=await dl)}compressSync(t){Yc("zstd-codec",this.name);let e=new hl.Simple,n=new Uint8Array(t);return e.compress(n).buffer}decompressSync(t){Yc("zstd-codec",this.name);let e=new hl.Simple,n=new Uint8Array(t);return e.decompress(n).buffer}async decompress(t,e){await this.preload();let n=new hl.Streaming,i=new Uint8Array(t),s=[];for(let a=0;a<=i.length;a+=og){let l=i.subarray(a,a+og),c=Cf(l);s.push(new Uint8Array(c))}return(await n.decompressChunks(s)).buffer}}});var wd=d(()=>{"use strict";sg();ag()});async function fg(r,t){return Er(await lx(r,t))}async function lx(r,t){let e=ux(r),n=fx(r,e,dx(e)),i=n.map(a=>r.slice(a.compressedOffset,a.compressedOffset+a.compressedSize)),s=new zo({modules:t?.modules}),o=await Promise.all(i.map((a,l)=>s.decompress(a,n[l].uncompressedSize)));return hx(o,n),px(e,o,r)}function ux(r){if(r.byteLength<jo)throw new Error(`SPZLoader: file must contain a ${jo}-byte header.`);let t=new DataView(r),e={magic:t.getUint32(0,!0),version:t.getUint32(4,!0),numPoints:t.getUint32(8,!0),shDegree:t.getUint8(12),fractionalBits:t.getUint8(13),flags:t.getUint8(14),numStreams:t.getUint8(15),tocByteOffset:t.getUint32(16,!0)};if(e.magic!==sx)throw new Error("SPZLoader: NGSP magic header not found.");if(e.version!==ox)throw new Error(`SPZLoader: version ${e.version} is not supported.`);if(e.shDegree>4)throw new Error(`SPZLoader: spherical harmonics degree ${e.shDegree} is not supported.`);if(e.tocByteOffset<jo||e.tocByteOffset>r.byteLength)throw new Error("SPZLoader: invalid table of contents byte offset.");return e}function fx(r,t,e){if(t.numStreams!==e.length)throw new Error(`SPZLoader: expected ${e.length} streams, found ${t.numStreams}.`);let n=t.numStreams*16,i=t.tocByteOffset+n;if(i>r.byteLength)throw new Error("SPZLoader: table of contents exceeds file byte length.");let s=new DataView(r),o=i,a=[];for(let l=0;l<t.numStreams;l++){let c=t.tocByteOffset+l*16,u=lg(s,c),h=lg(s,c+8),m=e[l];if(h!==m)throw new Error(`SPZLoader: stream ${l} has ${h} uncompressed bytes, expected ${m}.`);if(o+u>r.byteLength)throw new Error(`SPZLoader: stream ${l} exceeds file byte length.`);a.push({compressedSize:u,uncompressedSize:h,compressedOffset:o}),o+=u}if(o!==r.byteLength)throw new Error("SPZLoader: compressed stream byte lengths do not match file byte length.");return a}function lg(r,t){let e=r.getBigUint64(t,!0);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("SPZLoader: stream byte length exceeds Number.MAX_SAFE_INTEGER.");return Number(e)}function dx(r){return[r.numPoints*9,r.numPoints,r.numPoints*3,r.numPoints*3,r.numPoints*4,r.numPoints*dg(r.shDegree)].filter(t=>t>0)}function hx(r,t){for(let e=0;e<r.length;e++)if(r[e].byteLength!==t[e].uncompressedSize)throw new Error(`SPZLoader: decompressed stream ${e} has unexpected byte length.`)}function px(r,t,e){let n=r.numPoints,i=new Float32Array(n*3),s=new Float32Array(n*3),o=new Float32Array(n*4),a=new Uint8Array(n*3),l=new Float32Array(n*3),c=new Float32Array(n),u=dg(r.shDegree),h=u?new Float32Array(n*u):void 0,[m,p,y,g,N,S]=t.map(G=>new Uint8Array(G));return mx(m,i,r.fractionalBits),yx(g,s),_x(N,o),bx(y,a,l),wx(p,c),h&&S&&vx(S,h),{format:"spz",splatCount:n,positions:i,scales:s,rotations:o,colors:a,sphericalHarmonicDcs:l,opacities:c,sphericalHarmonics:h,sphericalHarmonicsComponentCount:u,loaderData:{format:"spz",...r,antialiased:Boolean(r.flags&1),extensionByteLength:hg(r),extensionBytes:xx(e,r)}}}function mx(r,t,e){let n=1/2**e;for(let i=0;i<t.length;i++){let s=i*3,o=r[s]|r[s+1]<<8|r[s+2]<<16;o|=o&8388608?4278190080:0,t[i]=o*n}}function yx(r,t){for(let e=0;e<t.length;e++)t[e]=Math.exp(r[e]/16-10)}function _x(r,t){for(let e=0;e<t.length/4;e++){let n=e*4,i=r[n]|r[n+1]<<8|r[n+2]<<16|r[n+3]<<24,s=gx(i>>>0),[o,a,l,c]=Xr(s[3],s[0],s[1],s[2]),u=e*4;t[u+0]=o,t[u+1]=a,t[u+2]=l,t[u+3]=c}}function gx(r){let t=[0,0,0,0],e=r>>>30,n=r,i=0;for(let s=3;s>=0;s--)if(s!==e){let o=n&cg,a=n>>>9&1;n>>>=10;let l=cx*o/cg;a&&(l=-l),t[s]=l,i+=l*l}return t[e]=Math.sqrt(Math.max(0,1-i)),t}function bx(r,t,e){for(let n=0;n<t.length;n++)e[n]=(r[n]/255-.5)/ug,t[n]=Sx(e[n])}function wx(r,t){for(let e=0;e<t.length;e++)t[e]=r[e]/255}function vx(r,t){for(let e=0;e<t.length;e++)t[e]=(r[e]-128)/128}function Sx(r){return Math.min(Math.max(Math.round((r*ug+.5)*255),0),255)}function dg(r){switch(r){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;case 4:return 72;default:throw new Error(`SPZLoader: spherical harmonics degree ${r} is not supported.`)}}function hg(r){return r.flags&ax?r.tocByteOffset-jo:0}function xx(r,t){return hg(t)?new Uint8Array(r.slice(jo,t.tocByteOffset)):void 0}var jo,sx,ox,ax,ug,cx,cg,pg=d(()=>{"use strict";wd();rs();ts();jo=32,sx=1347635022,ox=4,ax=2,ug=.15,cx=Math.SQRT1_2,cg=(1<<9)-1});var mg={};ye(mg,{SPZLoaderWithParser:()=>Ax});var nM,Ix,Ax,yg=d(()=>{"use strict";pg();vd();({preload:nM,...Ix}=pl),Ax={...Ix,parse:async(r,t)=>fg(r,t)}});async function Dx(){let{SPZLoaderWithParser:r}=await Promise.resolve().then(()=>(yg(),mg));return r}var Bx,pl,vd=d(()=>{"use strict";xn();Bx="5.0.0-alpha.1";pl={dataType:null,batchType:null,...na,version:Bx,options:{splats:{shape:"arrow-table"}},preload:Dx}});function Ho(r){let t=xs(r);if(!t)throw new Error("RADLoader: file must contain a complete RAD metadata header.");return t}function xs(r){let t=wg(r);if(t.byteLength<8)return null;let e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=e.getUint32(0,!0);if(n!==809779538)throw new Error(`RADLoader: RAD0 magic header not found, received 0x${n.toString(16)}.`);let i=e.getUint32(4,!0),s=8+i;if(t.byteLength<s)return null;let o=gg(t.subarray(8,s),"RADLoader: failed to parse RAD metadata JSON.");return Ex(o,i)}function Is(r){let t=wg(r);if(t.byteLength<8)throw new Error("RADLoader: RADC chunk must contain an 8-byte metadata header.");let e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=e.getUint32(0,!0);if(n!==1128546642)throw new Error(`RADLoader: RADC magic header not found, received 0x${n.toString(16)}.`);let i=e.getUint32(4,!0),s=8+i,o=8+yl(i),a=o+8;if(t.byteLength<a)throw new Error("RADLoader: RADC chunk must contain a complete metadata header.");let l=gg(t.subarray(8,s),"RADLoader: failed to parse RADC metadata JSON."),c=Nx(e,o,"RADC payload byte length");return Lx(l,i,a,c)}function yl(r){return r+7&-8}function Ex(r,t){let e=er(r.version,"RAD version");if(e!==1)throw new Error(`RADLoader: version ${e} is not supported.`);let n=ml(r.type,"RAD type");if(n!=="gsplat")throw new Error(`RADLoader: RAD type ${n} is not supported.`);let i=bg(r.chunks,"RAD chunks").map((o,a)=>Ox(o,a));return{version:e,type:n,count:er(r.count,"RAD count"),maxSh:bi(r.maxSh,"RAD maxSh"),lodTree:xd(r.lodTree,"RAD lodTree"),chunkSize:bi(r.chunkSize,"RAD chunkSize"),allChunkBytes:bi(r.allChunkBytes,"RAD allChunkBytes"),chunks:i,splatEncoding:_g(r.splatEncoding,"RAD splatEncoding"),shCodeCount:bi(r.shCodeCount,"RAD shCodeCount"),comment:Sd(r.comment,"RAD comment"),headerJsonByteLength:t,chunksByteOffset:8+yl(t)}}function Ox(r,t){let e=_l(r,`RAD chunk ${t}`);return{offset:er(e.offset,`RAD chunk ${t} offset`),bytes:er(e.bytes,`RAD chunk ${t} bytes`),base:bi(e.base,`RAD chunk ${t} base`),count:bi(e.count,`RAD chunk ${t} count`),filename:Sd(e.filename,`RAD chunk ${t} filename`)}}function Lx(r,t,e,n){let i=er(r.version,"RADC version");if(i!==1)throw new Error(`RADLoader: RADC version ${i} is not supported.`);if(er(r.payloadBytes,"RADC payloadBytes")!==n)throw new Error("RADLoader: RADC metadata payload byte length does not match binary header.");return{version:i,base:er(r.base,"RADC base"),count:er(r.count,"RADC count"),payloadBytes:n,maxSh:bi(r.maxSh,"RADC maxSh"),lodTree:xd(r.lodTree,"RADC lodTree"),splatEncoding:_g(r.splatEncoding,"RADC splatEncoding"),properties:bg(r.properties,"RADC properties").map((o,a)=>Fx(o,a)),headerJsonByteLength:t,payloadByteOffset:e,chunkByteLength:e+n}}function Fx(r,t){let e=_l(r,`RADC property ${t}`);return{offset:er(e.offset,`RADC property ${t} offset`),bytes:er(e.bytes,`RADC property ${t} bytes`),property:ml(e.property,`RADC property ${t} name`),encoding:ml(e.encoding,`RADC property ${t} encoding`),compression:Sd(e.compression,`RADC property ${t} compression`),min:sn(e.min,`RADC property ${t} min`),max:sn(e.max,`RADC property ${t} max`)}}function _g(r,t){if(r===void 0)return;let e=_l(r,t);return{rgbMin:sn(e.rgbMin,`${t}.rgbMin`),rgbMax:sn(e.rgbMax,`${t}.rgbMax`),lnScaleMin:sn(e.lnScaleMin,`${t}.lnScaleMin`),lnScaleMax:sn(e.lnScaleMax,`${t}.lnScaleMax`),sh1Max:sn(e.sh1Max,`${t}.sh1Max`),sh2Max:sn(e.sh2Max,`${t}.sh2Max`),sh3Max:sn(e.sh3Max,`${t}.sh3Max`),lodOpacity:xd(e.lodOpacity,`${t}.lodOpacity`)}}function gg(r,t){try{return _l(JSON.parse(Tx.decode(r)),t)}catch(e){throw e instanceof Error&&e.message.startsWith("RADLoader:")?e:new Error(t)}}function _l(r,t){if(!r||typeof r!="object"||Array.isArray(r))throw new Error(`RADLoader: ${t} must be an object.`);return r}function bg(r,t){if(!Array.isArray(r))throw new Error(`RADLoader: ${t} must be an array.`);return r}function ml(r,t){if(typeof r!="string")throw new Error(`RADLoader: ${t} must be a string.`);return r}function Sd(r,t){if(r!==void 0)return ml(r,t)}function xd(r,t){if(r!==void 0){if(typeof r!="boolean")throw new Error(`RADLoader: ${t} must be a boolean.`);return r}}function er(r,t){if(!Number.isSafeInteger(r)||Number(r)<0)throw new Error(`RADLoader: ${t} must be a non-negative safe integer.`);return Number(r)}function bi(r,t){if(r!==void 0)return er(r,t)}function sn(r,t){if(r!==void 0){if(typeof r!="number"||!Number.isFinite(r))throw new Error(`RADLoader: ${t} must be a finite number.`);return r}}function Nx(r,t,e){let n=r.getBigUint64(t,!0);if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`RADLoader: ${e} exceeds Number.MAX_SAFE_INTEGER.`);return Number(n)}function wg(r){return r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var Tx,$o=d(()=>{"use strict";Tx=new TextDecoder});function gl(r,t){return Er(Wo(r,t))}function Wo(r,t){let e=f1(r),n=o1(Is(e),t);if(e.byteLength<n.chunkByteLength)throw new Error("RADLoader: RADC chunk payload is incomplete.");let i=n.count,s=As(e,n,s1(n,"center"),3),o=kx(e,n,i),a=Ux(e,n,i),l=Px(e,n,i),c=Vx(e,n,i),{colors:u,sphericalHarmonicDcs:h}=e1(a),m=t?.radChunk?.includeLoDTree??!0,p=m?jx(e,n,"child_count"):null,y=m?Hx(e,n,"child_start"):null,N=t?.radChunk?.includeSphericalHarmonics??!1?zx(e,n):null;return{format:"rad",splatCount:i,positions:s,scales:l,rotations:c,colors:u,sphericalHarmonicDcs:h,opacities:o,sphericalHarmonics:N?.values,sphericalHarmonicsComponentCount:N?.componentCount,loaderData:{format:"rad",base:n.base,count:n.count,maxSh:n.maxSh??0,lodTree:n.lodTree??!1,splatEncoding:n.splatEncoding,childCounts:p??void 0,childStarts:y??void 0}}}function kx(r,t,e){let n=kr(t,"alpha");if(!n)return new Float32Array(e).fill(1);let i=As(r,t,n,1);for(let s=0;s<i.length;s++)i[s]=Cx(i[s],t,n);return i}function Cx(r,t,e){let n=Math.max(r,0);return!t.splatEncoding?.lodOpacity||e.encoding!=="r8"&&e.encoding!=="r8_delta"?n:n*2}function Ux(r,t,e){let n=kr(t,"rgb");return n?As(r,t,n,3):new Float32Array(e*3).fill(1)}function Px(r,t,e){let n=kr(t,"scales");return n?As(r,t,n,3):new Float32Array(e*3).fill(1)}function Vx(r,t,e){let n=kr(t,"orientation");if(!n)return r1(e);let i=bl(r,t,n);switch(n.encoding){case"oct88r8":return t1(i,e);case"f32":case"f16":{let s=As(r,t,n,3),o=new Float32Array(e*4);for(let a=0;a<e;a++){let l=a*3,c=a*4,u=s[l+0],h=s[l+1],m=s[l+2],p=Math.sqrt(Math.max(0,1-u*u-h*h-m*m)),y=Xr(p,u,h,m);o.set(y,c)}return o}default:throw new Error(`RADLoader: unsupported orientation encoding ${n.encoding}.`)}}function zx(r,t){let e=[{property:kr(t,"sh1"),dimensions:9},{property:kr(t,"sh2"),dimensions:15},{property:kr(t,"sh3"),dimensions:21}].filter(o=>o.property!==void 0);if(e.length===0)return null;let n=e.map(o=>({values:As(r,t,o.property,o.dimensions),dimensions:o.dimensions})),i=n.reduce((o,a)=>o+a.dimensions,0),s=new Float32Array(t.count*i);for(let o=0;o<t.count;o++){let a=o*i;for(let l of n){let c=o*l.dimensions;s.set(l.values.subarray(c,c+l.dimensions),a),a+=l.dimensions}}return{values:s,componentCount:i}}function As(r,t,e,n){let i=bl(r,t,e);switch(e.encoding){case"f32":return Zx(i,n,t.count);case"f16":return vg(i,n,t.count);case"f32_lebytes":return Wx(i,n,t.count);case"f16_lebytes":return Gx(i,n,t.count);case"r8":return Yx(i,n,t.count,Id(t,e),Zo(t,e));case"r8_delta":return Kx(i,n,t.count,Id(t,e),Zo(t,e));case"s8":return Jx(i,n,t.count,Zo(t,e));case"s8_delta":return Xx(i,n,t.count,Zo(t,e));case"ln_0r8":return qx(i,n,t.count,Id(t,e),Zo(t,e));case"ln_f16":return Qx(i,n,t.count);default:throw new Error(`RADLoader: unsupported ${e.property} encoding ${e.encoding}.`)}}function jx(r,t,e){let n=kr(t,e);if(!n)return null;if(n.encoding!=="u16")throw new Error(`RADLoader: unsupported ${e} encoding ${n.encoding}.`);let i=bl(r,t,n),s=new Uint16Array(t.count);for(let o=0;o<t.count;o++)s[o]=i[o*2]|i[o*2+1]<<8;return s}function Hx(r,t,e){let n=kr(t,e);if(!n)return null;if(n.encoding!=="u32")throw new Error(`RADLoader: unsupported ${e} encoding ${n.encoding}.`);let i=bl(r,t,n),s=new DataView(i.buffer,i.byteOffset,i.byteLength),o=new Uint32Array(t.count);for(let a=0;a<t.count;a++)o[a]=s.getUint32(a*4,!0);return o}function bl(r,t,e){let n=yl(e.bytes),i=t.payloadByteOffset+e.offset;if(i+n>r.byteLength||e.offset+n>t.payloadBytes)throw new Error(`RADLoader: property ${e.property} exceeds RADC payload byte length.`);let o=r.subarray(i,i+e.bytes);if(!e.compression)return o;if(e.compression!=="gz")throw new Error(`RADLoader: unsupported property compression ${e.compression}.`);return $x(o,e.property)}function $x(r,t){let e=u1(r);try{return new Uint8Array(Mx.decompressSync(e))}catch{try{return new Uint8Array(Rx.decompressSync(e))}catch{throw new Error(`RADLoader: failed to decompress RADC property ${t}.`)}}}function Zx(r,t,e){let n=new DataView(r.buffer,r.byteOffset,r.byteLength),i=new Float32Array(e*t);for(let s=0;s<e;s++)for(let o=0;o<t;o++)i[s*t+o]=n.getFloat32((o*e+s)*4,!0);return i}function vg(r,t,e){let n=new Float32Array(e*t);for(let i=0;i<e;i++)for(let s=0;s<t;s++){let o=(s*e+i)*2;n[i*t+s]=So(r[o]|r[o+1]<<8)}return n}function Wx(r,t,e){let n=new Float32Array(e*t),i=e*t,s=new Uint8Array(4),o=new DataView(s.buffer);for(let a=0;a<e;a++)for(let l=0;l<t;l++){let c=l*e+a;for(let u=0;u<4;u++)s[u]=r[c+i*u];n[a*t+l]=o.getFloat32(0,!0)}return n}function Gx(r,t,e){let n=new Float32Array(e*t),i=e*t;for(let s=0;s<e;s++)for(let o=0;o<t;o++){let a=o*e+s;n[s*t+o]=So(r[a]|r[a+i]<<8)}return n}function Yx(r,t,e,n,i){let s=new Float32Array(e*t),o=i-n;for(let a=0;a<e;a++)for(let l=0;l<t;l++)s[a*t+l]=r[l*e+a]/255*o+n;return s}function Kx(r,t,e,n,i){let s=new Float32Array(e*t),o=i-n,a=new Uint8Array(t);for(let l=0;l<e;l++)for(let c=0;c<t;c++){let u=c*e+l,h=a[c]+r[u]&255;a[c]=h,s[l*t+c]=h/255*o+n}return s}function Jx(r,t,e,n){let i=new Float32Array(e*t);for(let s=0;s<e;s++)for(let o=0;o<t;o++){let a=r[o*e+s];i[s*t+o]=(a<<24>>24)/127*n}return i}function Xx(r,t,e,n){let i=new Float32Array(e*t),s=new Uint8Array(t);for(let o=0;o<e;o++)for(let a=0;a<t;a++){let l=a*e+o,c=s[a]+r[l]&255;s[a]=c,i[o*t+a]=(c<<24>>24)/127*n}return i}function qx(r,t,e,n,i){let s=new Float32Array(e*t);for(let o=0;o<e;o++)for(let a=0;a<t;a++)s[o*t+a]=n1(r[a*e+o],n,i);return s}function Qx(r,t,e){let n=vg(r,t,e);for(let i=0;i<n.length;i++)n[i]=Math.exp(n[i]);return n}function t1(r,t){let e=new Float32Array(t*4);for(let n=0;n<t;n++){let i=n*3,[s,o,a,l]=i1(r[i],r[i+1],r[i+2]);e.set(Xr(l,s,o,a),n*4)}return e}function e1(r){let t=new Uint8Array(r.length),e=new Float32Array(r.length);for(let n=0;n<r.length;n++){let i=r[n];t[n]=l1(i),e[n]=(i-.5)/_f}return{colors:t,sphericalHarmonicDcs:e}}function r1(r){let t=new Float32Array(r*4);for(let e=0;e<r;e++)t[e*4]=1;return t}function n1(r,t,e){if(r===0)return 0;let n=(e-t)/254;return Math.exp(t+(r-1)*n)}function i1(r,t,e){let n=r/255*2-1,i=t/255*2-1,s=1-Math.abs(n)-Math.abs(i),o=Math.max(-s,0);n=n>=0?n-o:n+o,i=i>=0?i-o:i+o;let a=Math.hypot(n,i,s),l=a>Number.EPSILON?n/a:1,c=a>Number.EPSILON?i/a:0,u=a>Number.EPSILON?s/a:0,h=e/255*.5*Math.PI,m=Math.sin(h);return[l*m,c*m,u*m,Math.cos(h)]}function s1(r,t){let e=kr(r,t);if(!e)throw new Error(`RADLoader: RADC chunk is missing ${t} property.`);return e}function kr(r,t){return r.properties.find(e=>e.property===t)}function o1(r,t){let e=t?.radChunk?.splatEncoding;return e?{...r,splatEncoding:{...e,...r.splatEncoding}}:r}function Id(r,t){if(t.min===void 0){let e=a1(r.splatEncoding,t.property);if(e!==void 0)return e;throw new Error(`RADLoader: RADC property ${t.property} is missing min.`)}return t.min}function Zo(r,t){if(t.max===void 0){let e=c1(r.splatEncoding,t.property);if(e!==void 0)return e;throw new Error(`RADLoader: RADC property ${t.property} is missing max.`)}return t.max}function a1(r,t){switch(t){case"rgb":return r?.rgbMin;case"scales":return r?.lnScaleMin;default:return}}function c1(r,t){switch(t){case"rgb":return r?.rgbMax;case"scales":return r?.lnScaleMax;case"sh1":return r?.sh1Max;case"sh2":return r?.sh2Max;case"sh3":return r?.sh3Max;default:return}}function l1(r){return Math.round(Math.min(Math.max(r,0),1)*255)}function u1(r){let t=new Uint8Array(r.byteLength);return t.set(r),t.buffer}function f1(r){return r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var Mx,Rx,Ad=d(()=>{"use strict";wd();$o();rs();ts();Mx=new Ss,Rx=new Ss({raw:!0})});var Sg={};ye(Sg,{RADLoaderWithParser:()=>h1,parseRADChunk:()=>gl,parseRADChunkHeader:()=>Is,parseRADChunkToGaussianSplats:()=>Wo,parseRADHeader:()=>Ho,tryParseRADHeader:()=>xs});var pM,d1,h1,xg=d(()=>{"use strict";$o();Bd();$o();Ad();({preload:pM,...d1}=wl),h1={...d1,parse:async r=>Ho(r),parseSync:r=>Ho(r)}});async function m1(){let{RADLoaderWithParser:r}=await Promise.resolve().then(()=>(xg(),Sg));return r}var p1,wl,Bd=d(()=>{"use strict";xn();p1="5.0.0-alpha.1";wl={dataType:null,batchType:null,...wi,version:p1,options:{},preload:m1}});var Yo={};ye(Yo,{KSPLATFormat:()=>ra,KSPLATLoader:()=>Vc,RADFormat:()=>wi,RADLoader:()=>wl,RADSource:()=>Go,RADSourceLoader:()=>Dd,SPLATFormat:()=>ea,SPLATLoader:()=>Cc,SPZFormat:()=>na,SPZLoader:()=>pl,resolveRADChunkUrl:()=>vl});ta(Yo,Sl(Fd(),1));xn();bf();If();vd();Bd();Io();xn();$o();Ad();rs();var y1=[64*1024,256*1024,1024*1024],_1=4,g1="5.0.0-alpha.1",Dd={dataType:null,batchType:null,...wi,name:"RADSourceLoader",version:g1,type:"rad",fromUrl:!0,fromBlob:!0,options:{rad:{headers:void 0,withCredentials:!1,headerByteLengths:void 0}},defaultOptions:{rad:{headers:void 0,withCredentials:!1,headerByteLengths:void 0}},testURL:r=>/\.rad(?:$|[?#])/i.test(r),createDataSource:(r,t,e)=>new Go(r,t,e)},Go=class extends us{metadata;_metadataPromise=null;_chunkMetadataPromises=new Map;constructor(t,e,n){super(t,e,Dd.defaultOptions,n),this.metadata=this.getMetadata()}async initialize(){await this.getMetadata()}async getMetadata(){return this._metadataPromise||(this._metadataPromise=this._loadMetadata()),await this._metadataPromise}async getChunkCount(){return(await this.getMetadata()).chunks.length}async getChunkUrl(t){let e=await this.getMetadata(),n=this._getChunkRange(e,t);return n.filename?vl(this.url,n.filename):typeof this.data=="string"?this.url:null}async getChunk(t,e={}){let n=await this.getMetadata(),i=this._getChunkRange(n,t);if(i.filename){if(typeof this.data!="string")throw new Error("RADSource: sidecar RADC chunks require a URL-backed RAD source.");return await this._fetchArrayBuffer(vl(this.url,i.filename),void 0,{signal:e.signal})}if(i.bytes===0)return new ArrayBuffer(0);let s=n.chunksByteOffset+i.offset;return typeof this.data!="string"?await this.data.slice(s,s+i.bytes).arrayBuffer():await this._fetchArrayBuffer(this.url,{offset:s,bytes:i.bytes},{signal:e.signal})}async getChunkMetadata(t,e={}){let n=this._chunkMetadataPromises.get(t);return n||(n=this.getChunk(t,e).then(i=>Is(i)),this._chunkMetadataPromises.set(t,n)),await n}async getChunkSplats(t,e={}){let n=await this.getMetadata();return Wo(await this.getChunk(t,e),this._getChunkDecodeOptions(n,e))}async getChunkTable(t,e={}){let n=await this.getMetadata();return gl(await this.getChunk(t,e),this._getChunkDecodeOptions(n,e))}async*getChunkTables(t={}){let e=await this.getMetadata(),n=t.startChunkIndex??0,i=t.maxChunks??Number.POSITIVE_INFINITY,s=t.maxSplats??Number.POSITIVE_INFINITY,o=0,a=0;if(t.pruneLoadedLoDParents){let l=b1(e,n,i,s),c=await this._getChunkSplatsConcurrently(l,t),u=0;for(let h of c){o++,a+=h.splatCount;let m=v1(h);u=Math.max(u,m+h.splatCount)}for(let h of c)yield Er(S1(h,u));return}for(let l=n;l<e.chunks.length&&o<i&&a<s;l++){let c=await this.getChunkTable(l,t);o++,a+=c.data.numRows,yield c}}async _getChunkSplatsConcurrently(t,e){let n=new Array(t.length),i=w1(e.maxConcurrentChunkRequests),s=0;async function o(l){for(;s<t.length;){let c=s++,u=t[c];n[c]=await l.getChunkSplats(u,e)}}let a=Math.min(i,t.length);return await Promise.all(Array.from({length:a},()=>o(this))),n}_getChunkDecodeOptions(t,e){return{...e,radChunk:{splatEncoding:t.splatEncoding,...e.radChunk}}}async _loadMetadata(){let t=this.options.rad?.headerByteLengths?.length?this.options.rad.headerByteLengths:y1;if(typeof this.data!="string"){let e=Math.min(this.data.size,Math.max(...t)),n=xs(await this.data.slice(0,e).arrayBuffer());if(n)return n;throw new Error("RADSource: Blob does not contain a complete RAD metadata header.")}for(let e of t){let n=xs(await this._fetchArrayBuffer(this.url,{offset:0,bytes:e}));if(n)return n}throw new Error("RADSource: failed to load a complete RAD metadata header.")}_getChunkRange(t,e){if(!Number.isInteger(e)||e<0||e>=t.chunks.length)throw new Error(`RADSource: chunk index ${e} is outside 0-${t.chunks.length-1}.`);return t.chunks[e]}async _fetchArrayBuffer(t,e,n={}){let i=await this._fetchResponse(t,this._getRequestInit(e,n));if(!i.ok)throw new Error(`RADSource: failed to fetch ${t}: ${i.status} ${i.statusText}`);let s=await i.arrayBuffer();return e&&i.status!==206&&s.byteLength>=e.offset+e.bytes?s.slice(e.offset,e.offset+e.bytes):e&&s.byteLength>e.bytes?s.slice(0,e.bytes):s}async _fetchResponse(t,e){return this._hasCustomFetch()?await this.fetch(t,e):this.hasCoreApi?await this.coreApi.fetchFile(t,e):await this.fetch(t,e)}_hasCustomFetch(){return Boolean(this.loadOptions?.core?.fetch||this.loadOptions?.fetch)}_getRequestInit(t,e={}){let n=new Headers(this.options.rad?.headers);return t&&t.bytes>0&&n.set("Range",`bytes=${t.offset}-${t.offset+t.bytes-1}`),{headers:n,credentials:this.options.rad?.withCredentials?"include":"same-origin",signal:e.signal}}};function b1(r,t,e,n){let i=[],s=0;for(let o=t;o<r.chunks.length&&i.length<e&&s<n;o++){let a=r.chunks[o];i.push(o),s+=a?.count??r.chunkSize??0}return i}function w1(r){return Number.isFinite(r)&&r>0?Math.floor(r):_1}function v1(r){return typeof r.loaderData?.base=="number"?r.loaderData.base:0}function S1(r,t){let e=r.loaderData?.childCounts,n=r.loaderData?.childStarts;if(!(e instanceof Uint16Array)||!(n instanceof Uint32Array))return r;let i=new Uint32Array(r.splatCount),s=0;for(let l=0;l<r.splatCount;l++){let c=e[l],u=n[l];c>0&&u<t||(i[s++]=l)}if(s===r.splatCount)return r;let o=i.subarray(0,s),a=r.sphericalHarmonicsComponentCount??0;return{...r,splatCount:s,positions:on(r.positions,3,o),scales:on(r.scales,3,o),rotations:on(r.rotations,4,o),colors:on(r.colors,3,o),sphericalHarmonicDcs:r.sphericalHarmonicDcs?on(r.sphericalHarmonicDcs,3,o):void 0,opacities:on(r.opacities,1,o),sphericalHarmonics:r.sphericalHarmonics&&a?on(r.sphericalHarmonics,a,o):void 0,loaderData:{...r.loaderData,count:s,childCounts:on(e,1,o),childStarts:on(n,1,o)}}}function on(r,t,e){let n=new r.constructor(e.length*t);for(let i=0;i<e.length;i++){let s=e[i]*t,o=i*t;n.set(r.subarray(s,s+t),o)}return n}function vl(r,t){if(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith("/"))return t;if(!r)throw new Error("RADSource: cannot resolve a sidecar RADC chunk without a RAD URL.");try{return new URL(t,r).toString()}catch{let[e,n=""]=r.split(/([?#].*)/,2),i=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return`${i>=0?e.slice(0,i+1):""}${t}${n}`}}return Og(Yo);})();
|
|
16
|
+
]`}concat(...e){let r=this.schema,i=this.data.concat(e.flatMap(({data:n})=>n));return new t(r,i.map(n=>new Be(r,n)))}slice(e,r){let i=this.schema;[e,r]=Ls({length:this.numRows},e,r);let n=Al(this.data,this._offsets,e,r);return new t(i,n.map(o=>new Be(i,o)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(r=>r.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){let r=this.data.map(i=>i.children[e]);if(r.length===0){let{type:i}=this.schema.fields[e],n=E({type:i,length:0,nullCount:0});r.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new N(r)}return null}setChild(e,r){var i;return this.setChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(n=>n.name===e),r)}setChildAt(e,r){let i=this.schema,n=[...this.batches];if(e>-1&&e<this.numCols){r||(r=new N([E({type:new dt,length:this.numRows})]));let o=i.fields.slice(),a=o[e].clone({type:r.type}),s=this.schema.fields.map((u,c)=>this.getChildAt(c));[o[e],s[e]]=[a,r],[i,n]=pd(i,s)}return new t(i,n)}select(e){let r=this.schema.fields.reduce((i,n,o)=>i.set(n.name,o),new Map);return this.selectAt(e.map(i=>r.get(i)).filter(i=>i>-1))}selectAt(e){let r=this.schema.selectAt(e),i=this.batches.map(n=>n.selectAt(e));return new t(r,i)}assign(e){let r=this.schema.fields,[i,n]=e.schema.fields.reduce((s,u,c)=>{let[l,d]=s,h=r.findIndex(p=>p.name===u.name);return~h?d[h]=c:l.push(c),s},[[],[]]),o=this.schema.assign(e.schema),a=[...r.map((s,u)=>[u,n[u]]).map(([s,u])=>u===void 0?this.getChildAt(s):e.getChildAt(u)),...i.map(s=>e.getChildAt(s))].filter(Boolean);return new t(...pd(o,a))}};fI=Symbol.toStringTag;Qe[fI]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[pI]=!0,t.isValid=Zo(Rs),t.get=Zo(Je.getVisitFn(m.Struct)),t.set=Bl(ot.getVisitFn(m.Struct)),t.indexOf=Tl(Ci.getVisitFn(m.Struct)),"Table"))(Qe.prototype);Object.defineProperty(Qe,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===Qe&&Qe.isTable(e)}})});function hI(t,e,r=e.reduce((i,n)=>Math.max(i,n.length),0)){var i;let n=[...t.fields],o=[...e],a=(r+63&-64)>>3;for(let[s,u]of t.fields.entries()){let c=e[s];(!c||c.length!==r)&&(n[s]=u.clone({nullable:!0}),o[s]=(i=c?._changeLengthAndBackfillNullBitmap(r))!==null&&i!==void 0?i:E({type:u.type,length:r,nullCount:r,nullBitmap:new Uint8Array(a)}))}return[t.assign(n),E({type:new De(n),length:r,children:o})]}function yI(t,e,r=new Map){var i,n;if(((i=t?.length)!==null&&i!==void 0?i:0)>0&&t?.length===e?.length)for(let o=-1,a=t.length;++o<a;){let{type:s}=t[o],u=e[o];for(let c of[u,...((n=u?.dictionary)===null||n===void 0?void 0:n.data)||[]])yI(s.children,c?.children,r);if(k.isDictionary(s)){let{id:c}=s;if(!r.has(c))u?.dictionary&&r.set(c,u.dictionary);else if(r.get(c)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return r}var mI,gI,Be,eo,Qi=f(()=>{Sr();mc();Bt();yt();Se();Co();Pi();Ht();Ol();El();gI=Symbol.for("apache-arrow/RecordBatch"),Be=class t{static isRecordBatch(e){return e?.[gI]===!0}constructor(...e){switch(e.length){case 3:case 2:{if([this.schema]=e,!(this.schema instanceof ce))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=E({nullCount:0,type:new De(this.schema.fields),children:this.schema.fields.map(r=>E({type:r.type,nullCount:0}))}),this._metadata=new Map]=e,!(this.data instanceof ee))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=hI(this.schema,this.data.children,this.data.length);break}case 1:{let[r]=e,{fields:i,children:n,length:o}=Object.keys(r).reduce((u,c,l)=>(u.children[l]=r[c],u.length=Math.max(u.length,r[c].length),u.fields[l]=X.new({name:c,type:r[c].type,nullable:!0}),u),{length:0,fields:new Array,children:new Array}),a=new ce(i),s=E({type:new De(i),length:o,children:n,nullCount:0});[this.schema,this.data]=hI(a,s.children,o),this._metadata=new Map;break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get metadata(){return this._metadata}get dictionaries(){return this._dictionaries||(this._dictionaries=yI(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Je.visit(this.data,e)}at(e){return this.get(Fi(e,this.numRows))}set(e,r){return ot.visit(this.data,e,r)}indexOf(e,r){return Ci.visit(this.data,e,r)}[Symbol.iterator](){return Ho.visit(new N([this.data]))}toArray(){return[...this]}concat(...e){return new Qe(this.schema,[this,...e])}slice(e,r){let[i]=new N([this.data]).slice(e,r).data;return new t(this.schema,i,this._metadata)}getChild(e){var r;return this.getChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new N([this.data.children[e]]):null}setChild(e,r){var i;return this.setChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(n=>n.name===e),r)}setChildAt(e,r){let i=this.schema,n=this.data;if(e>-1&&e<this.numCols){r||(r=new N([E({type:new dt,length:this.numRows})]));let o=i.fields.slice(),a=n.children.slice(),s=o[e].clone({type:r.type});[o[e],a[e]]=[s,r.data[0]],i=new ce(o,new Map(this.schema.metadata)),n=E({type:new De(o),length:n.length,children:a})}return new t(i,n,this._metadata)}select(e){let r=this.schema.select(e),i=new De(r.fields),n=[];for(let o of e){let a=this.schema.fields.findIndex(s=>s.name===o);~a&&(n[a]=this.data.children[a])}return new t(r,E({type:i,length:this.numRows,children:n}),this._metadata)}selectAt(e){let r=this.schema.selectAt(e),i=e.map(o=>this.data.children[o]).filter(Boolean),n=E({type:new De(r.fields),length:this.numRows,children:i});return new t(r,n,this._metadata)}};mI=Symbol.toStringTag;Be[mI]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[gI]=!0,"RecordBatch"))(Be.prototype);Object.defineProperty(Be,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===Be&&Be.isRecordBatch(e)}});eo=class extends Be{constructor(e,r){let i=e.fields.map(o=>E({type:o.type})),n=E({type:new De(e.fields),length:0,nullCount:0,children:i});super(e,n,r||new Map)}}});function md(t,e=0){for(let r=-1,i=ta.length;++r<i;)if(ta[r]!==t[e+r])return!1;return!0}var Lm,Pm,vI,_I,ea,gc,yc,hd,Nm,ta,ra,Fm,bI,Rm=f(()=>{Ft();qe();fe();Hi();Ii();bm();Xe();Gi();Ms();Lm=t=>`Expected ${de[t]} Message in stream, but was null or length 0.`,Pm=t=>`Header pointer of flatbuffer-encoded ${de[t]} Message is null or length 0.`,vI=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,_I=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,ea=class{constructor(e){this.source=e instanceof Kr?e:new Kr(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done?Oe:e.value===-1&&(e=this.readMetadataLength()).done?Oe:(e=this.readMetadata(e.value)).done?Oe:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(Lm(e));return r.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let r=P(this.source.read(e));if(r.byteLength<e)throw new Error(_I(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()}readSchema(e=!1){let r=de.Schema,i=this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(Pm(r));return n}readMetadataLength(){let e=this.source.read(hd),r=e&&new it(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}}readMetadata(e){let r=this.source.read(e);if(!r)return Oe;if(r.byteLength<e)throw new Error(vI(e,r.byteLength));return{done:!1,value:zt.decode(r)}}},gc=class{constructor(e,r){this.source=e instanceof or?e:Wu(e)?new ei(e,r):new or(e)}[Symbol.asyncIterator](){return this}next(){return T(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done?Oe:e.value===-1&&(e=yield this.readMetadataLength()).done?Oe:(e=yield this.readMetadata(e.value)).done?Oe:e})}throw(e){return T(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return T(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return T(this,void 0,void 0,function*(){let r;if((r=yield this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(Lm(e));return r.value})}readMessageBody(e){return T(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);let r=P(yield this.source.read(e));if(r.byteLength<e)throw new Error(_I(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()})}readSchema(){return T(this,arguments,void 0,function*(e=!1){let r=de.Schema,i=yield this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(Pm(r));return n})}readMetadataLength(){return T(this,void 0,void 0,function*(){let e=yield this.source.read(hd),r=e&&new it(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}})}readMetadata(e){return T(this,void 0,void 0,function*(){let r=yield this.source.read(e);if(!r)return Oe;if(r.byteLength<e)throw new Error(vI(e,r.byteLength));return{done:!1,value:zt.decode(r)}})}},yc=class extends ea{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof js?e:new js(e)}next(){let{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:zt.fromJSON(e.schema,de.Schema)};if(this._dictionaryIndex<e.dictionaries.length){let r=e.dictionaries[this._dictionaryIndex++];return this._body=r.data.columns,{done:!1,value:zt.fromJSON(r,de.DictionaryBatch)}}if(this._batchIndex<e.batches.length){let r=e.batches[this._batchIndex++];return this._body=r.columns,{done:!1,value:zt.fromJSON(r,de.RecordBatch)}}return this._body=[],Oe}readMessageBody(e){return r(this._body);function r(i){return(i||[]).reduce((n,o)=>[...n,...o.VALIDITY&&[o.VALIDITY]||[],...o.TYPE_ID&&[o.TYPE_ID]||[],...o.OFFSET&&[o.OFFSET]||[],...o.DATA&&[o.DATA]||[],...o.VIEWS&&[o.VIEWS]||[],...o.VARIADIC_DATA_BUFFERS||[],...r(o.children)],[])}}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(Lm(e));return r.value}readSchema(){let e=de.Schema,r=this.readMessage(e),i=r?.header();if(!r||!i)throw new Error(Pm(e));return i}},hd=4,Nm="ARROW1",ta=new Uint8Array(Nm.length);for(let t=0;t<Nm.length;t+=1)ta[t]=Nm.codePointAt(t);ra=ta.length,Fm=ra+hd,bI=ra*2+hd});var jm,Mm,wI,xI=f(()=>{ys();jm=class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(e){let r=new Uint8Array([1,2,3,4,5,6,7,8]),i=e.encode(r);return this._isValidCompressed(i)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)&&this._hasValidVersion(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.LZ4_FRAME_MAGIC.every((r,i)=>e[i]===r)}_hasValidVersion(e){return(e[4]&192)>>6===1}},Mm=class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(e){let r=new Uint8Array([1,2,3,4,5,6,7,8]),i=e.encode(r);return this._isValidCompressed(i)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.ZSTD_MAGIC.every((r,i)=>e[i]===r)}},wI={[gt.LZ4_FRAME]:new jm,[gt.ZSTD]:new Mm}});var Cm,na,Vm=f(()=>{ys();xI();Cm=class{constructor(){this.registry={}}set(e,r){if(r?.encode&&typeof r.encode=="function"&&!wI[e].isValidCodecEncode(r))throw new Error(`Encoder for ${gt[e]} is not valid.`);this.registry[e]=r}get(e){var r;return((r=this.registry)===null||r===void 0?void 0:r[e])||null}},na=new Cm});function kI(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*SI(t){let e=$r.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function II(t){return Pt(this,arguments,function*(){let r=yield ne($r.from(t));try{if(!(yield ne(r.open({autoDestroy:!1}))).closed)do yield yield ne(r);while(!(yield ne(r.reset().open())).closed)}finally{yield ne(r.cancel())}})}function x2(t){return new An(new Hm(t))}function S2(t){let e=t.peek(ra+7&-8);return e&&e.byteLength>=4?md(e)?new ro(new vd(t.read())):new An(new ia(t)):new An(new ia((function*(){})()))}function I2(t){return T(this,void 0,void 0,function*(){let e=yield t.peek(ra+7&-8);return e&&e.byteLength>=4?md(e)?new ro(new vd(yield t.read())):new to(new oa(t)):new to(new oa((function(){return Pt(this,arguments,function*(){})})()))})}function $2(t){return T(this,void 0,void 0,function*(){let{size:e}=yield t.stat(),r=new ei(t,e);return e>=bI&&md(yield r.readAt(0,ra+7&-8))?new gd(new Zm(r)):new to(new oa(r))})}var $r,An,to,ro,gd,yd,ia,oa,vd,Zm,Hm,Wm=f(()=>{Ft();Sr();Bt();Se();qe();gm();hs();Hi();Gi();bm();FS();Qi();Ms();Rm();Ii();Vm();Ur();fe();$r=class t extends Ji{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){let r=this._impl.open(e);return pr(r)?r.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return nt.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return nt.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,r){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof t?e:Zu(e)?x2(e):Wu(e)?$2(e):pr(e)?T(this,void 0,void 0,function*(){return yield t.from(yield e)}):Ju(e)||ds(e)||Ku(e)||qt(e)?I2(new or(e)):S2(new Kr(e))}static readAll(e){return e instanceof t?e.isSync()?SI(e):II(e):Zu(e)||ArrayBuffer.isView(e)||hr(e)||Hu(e)?SI(e):II(e)}},An=class extends $r{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Pt(this,arguments,function*(){yield ne(yield*Do(fr(this[Symbol.iterator]())))})}},to=class extends $r{constructor(e){super(e),this._impl=e}readAll(){return T(this,void 0,void 0,function*(){var e,r,i,n;let o=new Array;try{for(var a=!0,s=fr(this),u;u=yield s.next(),e=u.done,!e;a=!0){n=u.value,a=!1;let c=n;o.push(c)}}catch(c){r={error:c}}finally{try{!a&&!e&&(i=s.return)&&(yield i.call(s))}finally{if(r)throw r.error}}return o})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},ro=class extends An{constructor(e){super(e),this._impl=e}},gd=class extends to{constructor(e){super(e),this._impl=e}},yd=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,r,i){let n;if(e.compression!=null){let a=na.get(e.compression.type);if(a?.decode&&typeof a.decode=="function"){let{decommpressedBody:s,buffers:u}=this._decompressBuffers(e,r,a);n=this._loadCompressedVectors(e,s,this.schema.fields),e=new Ke(e.length,e.nodes,u,null)}else throw new Error("Record batch is compressed but codec not found")}else n=this._loadVectors(e,r,this.schema.fields);let o=E({type:new De(this.schema.fields),length:e.length,children:n});return new Be(this.schema,o,i)}_loadDictionaryBatch(e,r){let{id:i,isDelta:n}=e,{dictionaries:o,schema:a}=this,s=o.get(i),u=a.dictionaries.get(i),c;if(e.data.compression!=null){let l=na.get(e.data.compression.type);if(l?.decode&&typeof l.decode=="function"){let{decommpressedBody:d,buffers:h}=this._decompressBuffers(e.data,r,l);c=this._loadCompressedVectors(e.data,d,[u]),e=new pt(new Ke(e.data.length,e.data.nodes,h,null,e.data.variadicBufferCounts),i,n)}else throw new Error("Dictionary batch is compressed but codec not found")}else c=this._loadVectors(e.data,r,[u]);return(s&&n?s.concat(new N(c)):new N(c)).memoize()}_loadVectors(e,r,i){return new Ko(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}_loadCompressedVectors(e,r,i){return new Ml(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}_decompressBuffers(e,r,i){let n=[],o=[],a=0;for(let{offset:s,length:u}of e.buffers){if(u===0){n.push(new Uint8Array(0)),o.push(new Me(a,0));continue}let c=new it(r.subarray(s,s+u)),l=ae(c.readInt64(0)),d=c.bytes().subarray(8),h=l===-1?d:i.decode(d);n.push(h);let p=(a+7&-8)-a;a+=p,o.push(new Me(a,h.length)),a+=h.length}return{decommpressedBody:n,buffers:o}}},ia=class extends yd{constructor(e,r){super(r),this._reader=Zu(e)?new yc(this._handle=e):new ea(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=kI(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Oe}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Oe}next(){if(this.closed)return Oe;let e,{_reader:r}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=r.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n,e.metadata)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=r.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new eo(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},oa=class extends yd{constructor(e,r){super(r),this._reader=new gc(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return T(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return T(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=kI(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return T(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):Oe})}return(e){return T(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):Oe})}next(){return T(this,void 0,void 0,function*(){if(this.closed)return Oe;let e,{_reader:r}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=yield r.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n,e.metadata)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=yield r.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new eo(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return T(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},vd=class extends ia{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,r){super(e instanceof Cs?e:new Cs(e),r)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let r of this._footer.dictionaryBatches())r&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var r;if(this.closed)return null;this._footer||this.open();let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(de.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),a=this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,a,n.metadata)}}return null}_readDictionaryBatch(e){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(de.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),a=this._reader.readMessageBody(n.bodyLength),s=this._loadDictionaryBatch(o,a);this.dictionaries.set(o.id,s)}}}_readFooter(){let{_handle:e}=this,r=e.size-Fm,i=e.readInt32(r),n=e.readAt(r-i,i);return _n.decode(n)}_readNextMessageAndValidate(e){var r;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(this._recordBatchIndex);if(i&&this._handle.seek(i.offset))return this._reader.readMessage(e)}return null}},Zm=class extends oa{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...r){let i=typeof r[0]!="number"?r.shift():void 0,n=r[0]instanceof Map?r.shift():void 0;super(e instanceof ei?e:new ei(e,i),n)}isFile(){return!0}isAsync(){return!0}open(e){let r=Object.create(null,{open:{get:()=>super.open}});return T(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let i of this._footer.dictionaryBatches())i&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield r.open.call(this,e)})}readRecordBatch(e){return T(this,void 0,void 0,function*(){var r;if(this.closed)return null;this._footer||(yield this.open());let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(de.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),a=yield this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,a,n.metadata)}}return null})}_readDictionaryBatch(e){return T(this,void 0,void 0,function*(){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(de.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),a=yield this._reader.readMessageBody(n.bodyLength),s=this._loadDictionaryBatch(o,a);this.dictionaries.set(o.id,s)}}})}_readFooter(){return T(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let r=e.size-Fm,i=yield e.readInt32(r),n=yield e.readAt(r-i,i);return _n.decode(n)})}_readNextMessageAndValidate(e){return T(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let r=this._footer.getRecordBatch(this._recordBatchIndex);if(r&&(yield this._handle.seek(r.offset)))return yield this._reader.readMessage(e)}return null})}},Hm=class extends ia{constructor(e,r){super(e,r)}_loadVectors(e,r,i){return new jl(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}}});function Gt(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Me(this._byteLength,e)),this._byteLength+=e,this}function k2(t){var e;let{type:r,length:i,typeIds:n,valueOffsets:o}=t;if(Gt.call(this,n),r.mode===ke.Sparse)return Jm.call(this,t);if(r.mode===ke.Dense){if(t.offset<=0)return Gt.call(this,o),Jm.call(this,t);{let a=new Int32Array(i),s=Object.create(null),u=Object.create(null);for(let c,l,d=-1;++d<i;)(c=n[d])!==void 0&&((l=s[c])===void 0&&(l=s[c]=o[d]),a[d]=o[d]-l,u[c]=((e=u[c])!==null&&e!==void 0?e:0)+1);Gt.call(this,a),this.visitMany(t.children.map((c,l)=>{let d=r.typeIds[l],h=s[d],p=u[d];return c.slice(h,Math.min(i,p))}))}}return this}function D2(t){let e;return t.nullCount>=t.length?Gt.call(this,new Uint8Array(t.length+7>>3)):(e=t.values)instanceof Uint8Array?Gt.call(this,ji(t.offset,t.length,e)):Gt.call(this,Mi(t.values))}function Bn(t){return Gt.call(this,t.values.subarray(0,t.length*t.stride))}function _d(t){let{length:e,values:r,valueOffsets:i}=t,n=ae(i[0]),o=ae(i[e]),a=Math.min(o-n,r.byteLength-n);return Gt.call(this,Yu(-n,e+1,i)),Gt.call(this,r.subarray(n,n+a)),this}function DI(t){let{offset:e,length:r,stride:i,values:n,variadicBuffers:o=[]}=t;if(!n)throw new Error("BinaryView data is missing view buffer");let a=e*i,s=a+r*i;Gt.call(this,n.subarray(a,s));for(let u of o)Gt.call(this,u);return this._variadicBufferCounts.push(o.length),this}function bd(t){let{length:e,valueOffsets:r}=t;if(r){let i=ae(r[0]),n=ae(r[e]);return Gt.call(this,Yu(-i,e+1,r)),this.visit(t.children[0].slice(i,n-i))}return this.visit(t.children[0])}function Jm(t){return this.visitMany(t.type.children.map((e,r)=>t.children[r]).filter(Boolean))[0]}var Ee,AI=f(()=>{Bt();wr();qe();Qi();Xe();Vo();Hi();Se();Ur();Ee=class t extends W{static assemble(...e){let r=n=>n.flatMap(o=>Array.isArray(o)?r(o):o instanceof Be?o.data.children:o.data),i=new t;return i.visitMany(r(e)),i}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[],this._variadicBufferCounts=[]}visit(e){if(e instanceof N)return this.visitMany(e.data),this;let{type:r}=e;if(!k.isDictionary(r)){let{length:i}=e;if(i>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(k.isUnion(r))this.nodes.push(new ir(i,0));else{let{nullCount:n}=e;k.isNull(r)||Gt.call(this,n<=0?new Uint8Array(0):ji(e.offset,i,e.nullBitmap)),this.nodes.push(new ir(i,n))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}get variadicBufferCounts(){return this._variadicBufferCounts}};Ee.prototype.visitBool=D2;Ee.prototype.visitInt=Bn;Ee.prototype.visitFloat=Bn;Ee.prototype.visitUtf8=_d;Ee.prototype.visitLargeUtf8=_d;Ee.prototype.visitUtf8View=DI;Ee.prototype.visitBinary=_d;Ee.prototype.visitLargeBinary=_d;Ee.prototype.visitBinaryView=DI;Ee.prototype.visitFixedSizeBinary=Bn;Ee.prototype.visitDate=Bn;Ee.prototype.visitTimestamp=Bn;Ee.prototype.visitTime=Bn;Ee.prototype.visitDecimal=Bn;Ee.prototype.visitList=bd;Ee.prototype.visitLargeList=bd;Ee.prototype.visitStruct=Jm;Ee.prototype.visitUnion=k2;Ee.prototype.visitInterval=Bn;Ee.prototype.visitDuration=Bn;Ee.prototype.visitFixedSizeList=bd;Ee.prototype.visitMap=bd});function Gm(t,e){let r=e;e instanceof Qe&&(r=e.batches,t.reset(void 0,e.schema));for(let i of r)t.write(i);return t.finish()}function Km(t,e){return T(this,void 0,void 0,function*(){var r,i,n,o,a,s,u;try{for(r=!0,i=fr(e);n=yield i.next(),o=n.done,!o;r=!0){u=n.value,r=!1;let c=u;t.write(c)}}catch(c){a={error:c}}finally{try{!r&&!o&&(s=i.return)&&(yield s.call(i))}finally{if(a)throw a.error}}return t.finish()})}var no,vc,_c,BI=f(()=>{Ft();mc();Rm();Bt();Hi();Hi();gm();qe();fd();Gi();AI();Xe();Qi();Ms();Ii();ys();Vm();fe();no=class extends Ji{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,r){throw new Error('"throughDOM" not available in this environment')}constructor(e){if(super(),this._position=0,this._started=!1,this._compression=null,this._sink=new Gr,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,mt(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1,compressionType:null}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1,e.compressionType!=null){if(this._writeLegacyIpcFormat)throw new Error("Legacy IPC format does not support columnar compression. Use modern IPC format (writeLegacyIpcFormat=false).");if(Object.values(gt).includes(e.compressionType))this._compression=new Wi(e.compressionType);else{let r=Object.values(gt).filter(i=>typeof i=="string");throw new Error(`Unsupported compressionType: ${e.compressionType} Available types: ${r.join(", ")}`)}}else this._compression=null}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return pr(e)?e.then(r=>this.writeAll(r)):qt(e)?Km(this,e):Gm(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,r=null){return e===this._sink||e instanceof Gr?this._sink=e:(this._sink=new Gr,e&&A0(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&B0(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!r||!qi(r,this._schema))&&(r==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=r,this._writeSchema(r))),this}write(e){let r=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof Qe&&!(r=e.schema))return this.finish()&&void 0;if(e instanceof Be&&!(r=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(r&&!qi(r,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,r)}e instanceof Be?e instanceof eo||this._writeRecordBatch(e):e instanceof Qe?this.writeAll(e.batches):hr(e)&&this.writeAll(e)}_writeMessage(e,r=8){let i=r-1,n=zt.encode(e),o=n.byteLength,a=this._writeLegacyIpcFormat?4:8,s=o+a+i&~i,u=s-o-a;return e.headerType===de.RecordBatch?this._recordBatchBlocks.push(new bn(s,e.bodyLength,this._position)):e.headerType===de.DictionaryBatch&&this._dictionaryBlocks.push(new bn(s,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(s-a)),o>0&&this._write(n),this._writePadding(u)}_write(e){if(this._started){let r=P(e);r&&r.byteLength>0&&(this._sink.write(r),this._position+=r.byteLength)}return this}_writeSchema(e){return this._writeMessage(zt.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(ta)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:a}=this._assembleRecordBatch(e),s=new Ke(e.numRows,i,n,this._compression,a,e.metadata),u=zt.from(s,r);return this._writeDictionaries(e)._writeMessage(u)._writeBodyBuffers(o)}_assembleRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:a}=Ee.assemble(e);return this._compression!=null&&({byteLength:r,bufferRegions:n,buffers:o}=this._compressBodyBuffers(o)),{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:a}}_compressBodyBuffers(e){let r=na.get(this._compression.type);if(!r?.encode||typeof r.encode!="function")throw new Error(`Codec for compression type "${gt[this._compression.type]}" has invalid encode method`);let i=0,n=[],o=[];for(let s of e){let u=P(s);if(u.length===0){n.push(new Uint8Array(0),new Uint8Array(0)),o.push(new Me(i,0));continue}let c=r.encode(u),l=c.length<u.length,d=l?c:u,h=l?d.length:-1,p=new it(new Uint8Array(8));p.writeInt64(0,BigInt(h)),n.push(p.bytes(),new Uint8Array(d));let v=(i+7&-8)-i;i+=v;let _=8+d.length;o.push(new Me(i,_)),i+=_}let a=(i+7&-8)-i;return i+=a,{byteLength:i,bufferRegions:o,buffers:n}}_writeDictionaryBatch(e,r,i=!1){let{byteLength:n,nodes:o,bufferRegions:a,buffers:s,variadicBufferCounts:u}=this._assembleRecordBatch(new N([e])),c=new Ke(e.length,o,a,this._compression,u),l=new pt(c,r,i),d=zt.from(l,n);return this._writeMessage(d)._writeBodyBuffers(s)}_writeBodyBuffers(e){let r=this._compression!=null?2:1,i=new Array(r);for(let n=0;n<e.length;n+=r){let o=0;for(let s=-1;++s<r;)i[s]=e[n+s],o+=i[s].byteLength;if(o===0)continue;for(let s of i)this._write(s);let a=(o+7&-8)-o;a>0&&this._writePadding(a)}return this}_writeDictionaries(e){var r,i;for(let[n,o]of e.dictionaries){let a=(r=o?.data)!==null&&r!==void 0?r:[],s=this._seenDictionaries.get(n),u=(i=this._dictionaryDeltaOffsets.get(n))!==null&&i!==void 0?i:0;if(!s||s.data[0]!==a[0])for(let[c,l]of a.entries())this._writeDictionaryBatch(l,n,c>0);else if(u<a.length)for(let c of a.slice(u))this._writeDictionaryBatch(c,n,!0);this._seenDictionaries.set(n,o),this._dictionaryDeltaOffsets.set(n,a.length)}return this}},vc=class t extends no{static writeAll(e,r){let i=new t(r);return pr(e)?e.then(n=>i.writeAll(n)):qt(e)?Km(i,e):Gm(i,e)}},_c=class t extends no{static writeAll(e,r){let i=new t(r);return pr(e)?e.then(n=>i.writeAll(n)):qt(e)?Km(i,e):Gm(i,e)}constructor(e){super(e),this._autoDestroy=!0,this._writeLegacyIpcFormat=!1}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,r,i=!1){if(!i&&this._seenDictionaries.has(r))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(e,r,i)}_writeFooter(e){let r=_n.encode(new _n(e,be.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(r)._write(Int32Array.of(r.byteLength))._writeMagic()}}});function TI(t,e){if(qt(t))return B2(t,e);if(hr(t))return A2(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function A2(t,e){let r=null,i=e?.type==="bytes"||!1,n=e?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(a){o(a,r||(r=t[Symbol.iterator]()))},pull(a){r?o(a,r):a.close()},cancel(){r?.return&&r.return(),r=null}}),Object.assign({highWaterMark:i?n:void 0},e));function o(a,s){let u,c=null,l=a.desiredSize||null;for(;!(c=s.next(i?l:null)).done;)if(ArrayBuffer.isView(c.value)&&(u=P(c.value))&&(l!=null&&i&&(l=l-u.byteLength+1),c.value=u),a.enqueue(c.value),l!=null&&--l<=0)return;a.close()}}function B2(t,e){let r=null,i=e?.type==="bytes"||!1,n=e?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(a){return T(this,void 0,void 0,function*(){yield o(a,r||(r=t[Symbol.asyncIterator]()))})},pull(a){return T(this,void 0,void 0,function*(){r?yield o(a,r):a.close()})},cancel(){return T(this,void 0,void 0,function*(){r?.return&&(yield r.return()),r=null})}}),Object.assign({highWaterMark:i?n:void 0},e));function o(a,s){return T(this,void 0,void 0,function*(){let u,c=null,l=a.desiredSize||null;for(;!(c=yield s.next(i?l:null)).done;)if(ArrayBuffer.isView(c.value)&&(u=P(c.value))&&(l!=null&&i&&(l=l-u.byteLength+1),c.value=u),a.enqueue(c.value),l!=null&&--l<=0)return;a.close()})}}var zI=f(()=>{Ft();Xe();Ii()});function UI(t){return new Ym(t)}var Ym,OI,EI,NI=f(()=>{Ft();Tm();Ym=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:r,["writableStrategy"]:i,["queueingStrategy"]:n="count"}=e,o=$0(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Yi(o),this._getSize=n!=="bytes"?OI:EI;let{["highWaterMark"]:a=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},r),{["highWaterMark"]:s=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:u=>{this._maybeFlush(this._builder,this._controller=u)},start:u=>{this._maybeFlush(this._builder,this._controller=u)}},{highWaterMark:a,size:n!=="bytes"?OI:EI}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:s,size:u=>this._writeValueAndReturnChunkSize(u)})}_writeValueAndReturnChunkSize(e){let r=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-r}_maybeFlush(e,r){r!=null&&(this._bufferedSize>=r.desiredSize&&++this._numChunks&&this._enqueue(r,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(r,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(r,null)))}_enqueue(e,r){this._bufferedSize=0,this._controller=null,r==null?e.close():e.enqueue(r)}},OI=t=>{var e;return(e=t?.length)!==null&&e!==void 0?e:0},EI=t=>{var e;return(e=t?.byteLength)!==null&&e!==void 0?e:0}});function wd(t,e){let r=new Gr,i=null,n=new ReadableStream({cancel(){return T(this,void 0,void 0,function*(){yield r.close()})},start(s){return T(this,void 0,void 0,function*(){yield a(s,i||(i=yield o()))})},pull(s){return T(this,void 0,void 0,function*(){i?yield a(s,i):s.close()})}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:n};function o(){return T(this,void 0,void 0,function*(){return yield(yield $r.from(r)).open(e)})}function a(s,u){return T(this,void 0,void 0,function*(){let c=s.desiredSize,l=null;for(;!(l=yield u.next()).done;)if(s.enqueue(l.value),c!=null&&--c<=0)return;s.close()})}}var LI=f(()=>{Ft();Gi();Wm()});function xd(t,e){let r=new this(t),i=new or(r),n=new ReadableStream({cancel(){return T(this,void 0,void 0,function*(){yield i.cancel()})},pull(a){return T(this,void 0,void 0,function*(){yield o(a)})},start(a){return T(this,void 0,void 0,function*(){yield o(a)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(r,t),readable:n};function o(a){return T(this,void 0,void 0,function*(){let s=null,u=a.desiredSize;for(;s=yield i.read(u||null);)if(a.enqueue(s),u!=null&&(u-=s.byteLength)<=0)return;a.close()})}}var PI=f(()=>{Ft();Gi()});var Xm={};Ue(Xm,{isArrowData:()=>MI,isArrowDataType:()=>jI,isArrowField:()=>RI,isArrowRecordBatch:()=>VI,isArrowSchema:()=>FI,isArrowTable:()=>ZI,isArrowVector:()=>CI});function FI(t){return ce.isSchema(t)}function RI(t){return X.isField(t)}function jI(t){return k.isDataType(t)}function MI(t){return ee.isData(t)}function CI(t){return N.isVector(t)}function VI(t){return Be.isRecordBatch(t)}function ZI(t){return Qe.isTable(t)}var HI=f(()=>{yt();Se();Sr();Bt();Qi();mc()});var X2,WI=f(()=>{Sr();Se();mc();Bt();yt();Hh();Sm();Vo();Ns();Xe();Co();Ts();Dm();HI();fd();X2=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zh),xm),cm),Wh),ch),sm),jh),km),Xm),{compareSchemas:qi,compareFields:uI,compareTypes:lI})});var JI=f(()=>{hs();Ne();Wm();BI();zI();NI();LI();PI();WI();nt.toDOMStream=TI;Ae.throughDOM=UI;$r.throughDOM=wd;ro.throughDOM=wd;An.throughDOM=wd;no.throughDOM=xd;_c.throughDOM=xd;vc.throughDOM=xd});function Sd(t){return(t/255-.5)/qm}function Id(t){return Math.min(Math.max(t/255,0),1)}function Tn(t,e,r,i){let n=Math.hypot(t,e,r,i);return!Number.isFinite(n)||n<=Number.EPSILON?[1,0,0,0]:[t/n,e/n,r/n,i/n]}function bc(t){return(t-128)/128}function wc(t){let e=t&32768?-1:1,r=t>>10&31,i=t&1023;return r===0?e*Math.pow(2,-14)*(i/1024):r===31?i?Number.NaN:e*Number.POSITIVE_INFINITY:e*Math.pow(2,r-15)*(1+i/1024)}var qm,aa=f(()=>{"use strict";qm=.28209479177387814});function Xr(t){let e={},r=[],i=[];KI(e,r,i,"POSITION",eE(t.positions,3),{type:"fixed-size-list",listSize:3,children:[{name:"value",type:"float32"}]});let n=tE(t);sa(e,r,i,"f_dc_0",n[0],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"0","loaders_gl.gaussian_splats.encoding":"coefficient"}),sa(e,r,i,"f_dc_1",n[1],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"1","loaders_gl.gaussian_splats.encoding":"coefficient"}),sa(e,r,i,"f_dc_2",n[2],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"2","loaders_gl.gaussian_splats.encoding":"coefficient"}),sa(e,r,i,"opacity",t.opacities,{"loaders_gl.gaussian_splats.semantic":"opacity","loaders_gl.gaussian_splats.encoding":"linear"}),GI(e,r,i,"scale",t.scales,3,{"loaders_gl.gaussian_splats.semantic":"scale","loaders_gl.gaussian_splats.encoding":"linear"}),GI(e,r,i,"rot",t.rotations,4,{"loaders_gl.gaussian_splats.semantic":"rotation","loaders_gl.gaussian_splats.encoding":"quaternion"}),t.sphericalHarmonics&&t.sphericalHarmonicsComponentCount&&Q2(e,r,i,t.sphericalHarmonics,t.sphericalHarmonicsComponentCount);let o=new Map([["loaders_gl.semantic_type","gaussian-splats"],["loaders_gl.gaussian_splats.version","1"],["loaders_gl.gaussian_splats.source_format",t.format],["topology","point-list"],["mode","0"]]),a=new ce(r,o);return{shape:"arrow-table",schema:{fields:i,metadata:Object.fromEntries(o)},data:new Qe(a,e),topology:"point-list",loaderData:t.loaderData}}function GI(t,e,r,i,n,o,a){for(let s=0;s<o;s++){let u=new Float32Array(n.length/o);for(let c=0;c<u.length;c++)u[c]=n[c*o+s];sa(t,e,r,`${i}_${s}`,u,{...a,"loaders_gl.gaussian_splats.component":String(s)})}}function Q2(t,e,r,i,n){for(let o=0;o<n;o++){let a=new Float32Array(i.length/n);for(let s=0;s<a.length;s++)a[s]=i[s*n+o];sa(t,e,r,`f_rest_${o}`,a,{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_rest","loaders_gl.gaussian_splats.component":String(o),"loaders_gl.gaussian_splats.encoding":"coefficient"})}}function sa(t,e,r,i,n,o){KI(t,e,r,i,Vi(n),"float32",o)}function KI(t,e,r,i,n,o,a={}){t[i]=n,e.push(new X(i,n.type,!1,new Map(Object.entries(a)))),r.push({name:i,type:o,nullable:!1,metadata:a})}function eE(t,e){let i=Vi(t).data[0],n=new Dt(e,new X("value",i.type,!1)),o=new ee(n,0,t.length/e,0,{},[i]);return new N([o])}function tE(t){let e=t.splatCount,r=new Float32Array(e),i=new Float32Array(e),n=new Float32Array(e);for(let o=0;o<e;o++)t.sphericalHarmonicDcs?(r[o]=t.sphericalHarmonicDcs[o*3+0],i[o]=t.sphericalHarmonicDcs[o*3+1],n[o]=t.sphericalHarmonicDcs[o*3+2]):(r[o]=Sd(t.colors[o*3+0]),i[o]=Sd(t.colors[o*3+1]),n[o]=Sd(t.colors[o*3+2]));return[r,i,n]}var ca=f(()=>{"use strict";JI();aa()});function Qm(t){return Xr(rE(t))}function rE(t){if(t.byteLength%xc!==0)throw new Error(`SPLATLoader: byte length must be a multiple of ${xc}.`);let e=t.byteLength/xc,r=new DataView(t),i=new Float32Array(e*3),n=new Float32Array(e*3),o=new Float32Array(e*4),a=new Uint8Array(e*3),s=new Float32Array(e);for(let u=0;u<e;u++){let c=u*xc,l=u*3,d=u*4;i[l+0]=r.getFloat32(c+0,!0),i[l+1]=r.getFloat32(c+4,!0),i[l+2]=r.getFloat32(c+8,!0),n[l+0]=r.getFloat32(c+12,!0),n[l+1]=r.getFloat32(c+16,!0),n[l+2]=r.getFloat32(c+20,!0),a[l+0]=r.getUint8(c+24),a[l+1]=r.getUint8(c+25),a[l+2]=r.getUint8(c+26),s[u]=Id(r.getUint8(c+27));let[h,p,v,_]=Tn(bc(r.getUint8(c+28)),bc(r.getUint8(c+29)),bc(r.getUint8(c+30)),bc(r.getUint8(c+31)));o[d+0]=h,o[d+1]=p,o[d+2]=v,o[d+3]=_}return{format:"splat",splatCount:e,positions:i,scales:n,rotations:o,colors:a,opacities:s,loaderData:{format:"splat",splatCount:e,rowByteLength:xc}}}var xc,YI=f(()=>{"use strict";ca();aa();xc=32});var XI={};Ue(XI,{SPLATLoaderWithParser:()=>iE});var xH,nE,iE,qI=f(()=>{"use strict";YI();eg();({preload:xH,...nE}=$d),iE={...nE,parse:async t=>Qm(t),parseSync:t=>Qm(t)}});async function aE(){let{SPLATLoaderWithParser:t}=await Promise.resolve().then(()=>(qI(),XI));return t}var oE,$d,eg=f(()=>{"use strict";Si();oE="5.0.0-alpha.2";$d={dataType:null,batchType:null,...Mu,version:oE,options:{splats:{shape:"arrow-table"}},preload:aE}});function ng(t){return Xr(uE(t))}function uE(t){if(t.byteLength<ua)throw new Error(`KSPLATLoader: file must contain a ${ua}-byte header.`);let e=dE(t);fE(e);let r=pE(t,e),i=_E(e,r),n=Math.max(0,...r.slice(0,Dd(e)).map(h=>ig(h.sphericalHarmonicsDegree))),o=new Float32Array(i*3),a=new Float32Array(i*3),s=new Float32Array(i*4),u=new Uint8Array(i*3),c=new Float32Array(i),l=n?new Float32Array(i*n):void 0,d=0;for(let h of r.slice(0,Dd(e))){bE(t,h);for(let p=0;p<h.splatCount&&d<i;p++)lE(t,e,h,p,d,o,a,s,u,c,l,n),d++}return{format:"ksplat",splatCount:i,positions:o,scales:a,rotations:s,colors:u,opacities:c,sphericalHarmonics:l,sphericalHarmonicsComponentCount:n,loaderData:{format:"ksplat",...e,sections:r.slice(0,Dd(e)).map(h=>({splatCount:h.splatCount,maxSplatCount:h.maxSplatCount,sphericalHarmonicsDegree:h.sphericalHarmonicsDegree}))}}}function lE(t,e,r,i,n,o,a,s,u,c,l,d){let h=rg[e.compressionLevel],p=r.dataBase+r.bytesPerSplat*i,v=n*3,_=n*4,$=mE(t,r,i);o[v+0]=tg(t,p,0,e,r,$[0]),o[v+1]=tg(t,p,1,e,r,$[1]),o[v+2]=tg(t,p,2,e,r,$[2]),a[v+0]=ri(t,p+h.scaleOffsetBytes,0,e.compressionLevel),a[v+1]=ri(t,p+h.scaleOffsetBytes,1,e.compressionLevel),a[v+2]=ri(t,p+h.scaleOffsetBytes,2,e.compressionLevel);let[B,Z,U,z]=Tn(ri(t,p+h.scaleOffsetBytes,3,e.compressionLevel),ri(t,p+h.scaleOffsetBytes,4,e.compressionLevel),ri(t,p+h.scaleOffsetBytes,5,e.compressionLevel),ri(t,p+h.scaleOffsetBytes,6,e.compressionLevel));s[_+0]=B,s[_+1]=Z,s[_+2]=U,s[_+3]=z;let w=p+h.colorOffsetBytes,D=new Uint8Array(t,w,4);u[v+0]=D[0],u[v+1]=D[1],u[v+2]=D[2],c[n]=Id(D[3]),l&&d&&yE(t,p+h.sphericalHarmonicsOffsetBytes,e,r,n,l,d)}function dE(t){let e=new DataView(t,0,ua),r=e.getUint16(20,!0);if(r!==0&&r!==1&&r!==2)throw new Error(`KSPLATLoader: unsupported compression level ${r}.`);return{versionMajor:e.getUint8(0),versionMinor:e.getUint8(1),maxSectionCount:e.getUint32(4,!0),sectionCount:e.getUint32(8,!0),maxSplatCount:e.getUint32(12,!0),splatCount:e.getUint32(16,!0),compressionLevel:r,minSphericalHarmonicsCoeff:e.getFloat32(36,!0)||-e$,maxSphericalHarmonicsCoeff:e.getFloat32(40,!0)||e$}}function fE(t){if(!(t.versionMajor===QI?t.versionMinor>=sE:t.versionMajor>QI))throw new Error(`KSPLATLoader: version ${t.versionMajor}.${t.versionMinor} is not supported.`)}function pE(t,e){if(t.byteLength<ua+e.maxSectionCount*kd)throw new Error("KSPLATLoader: file does not contain all section headers.");let r=[],i=ua+e.maxSectionCount*kd,n=0;for(let o=0;o<e.maxSectionCount;o++){let a=ua+o*kd,s=new DataView(t,a,kd),u=s.getUint32(0,!0),c=s.getUint32(4,!0),l=s.getUint32(8,!0),d=s.getUint32(12,!0),h=s.getFloat32(16,!0),p=s.getUint16(20,!0),v=s.getUint32(24,!0)||rg[e.compressionLevel].scaleRange,_=s.getUint32(32,!0),$=s.getUint32(36,!0),B=s.getUint16(40,!0),Z=vE(e.compressionLevel,B),U=$*4,z=p*d+U,w=Z*c+z;r.push({bytesPerSplat:Z,splatCountOffset:n,splatCount:u||c,maxSplatCount:c,bucketSize:l,bucketCount:d,bucketStorageSizeBytes:p,bucketsStorageSizeBytes:z,compressionScaleRange:v,compressionScaleFactor:h/2/v,base:i,bucketsBase:i+U,dataBase:i+z,fullBucketCount:_,partiallyFilledBucketCount:$,sphericalHarmonicsDegree:B}),i+=w,n+=c}return r}function tg(t,e,r,i,n,o){let a=hE(t,e,r,i.compressionLevel);return i.compressionLevel>=1?(a-n.compressionScaleRange)*n.compressionScaleFactor+o:a}function hE(t,e,r,i){let n=new DataView(t);return i===0?n.getFloat32(e+r*4,!0):n.getUint16(e+r*2,!0)}function mE(t,e,r){if(!e.bucketCount)return[0,0,0];let i=gE(t,e,r),n=e.bucketsBase+i*e.bucketStorageSizeBytes,o=new DataView(t,n,12);return[o.getFloat32(0,!0),o.getFloat32(4,!0),o.getFloat32(8,!0)]}function gE(t,e,r){let i=e.fullBucketCount*e.bucketSize;if(r<i)return Math.floor(r/e.bucketSize);let n=i,o=e.fullBucketCount;for(let a=0;a<e.partiallyFilledBucketCount;a++){let s=new DataView(t,e.base+a*4,4).getUint32(0,!0);if(r<n+s)return o;n+=s,o++}return Math.max(o-1,0)}function yE(t,e,r,i,n,o,a){let s=ig(i.sphericalHarmonicsDegree),u=n*a;for(let c=0;c<s;c++)o[u+c]=ri(t,e,c,r.compressionLevel,!0,r.minSphericalHarmonicsCoeff,r.maxSphericalHarmonicsCoeff)}function ri(t,e,r,i,n=!1,o=0,a=0){let s=new DataView(t);return i===0?s.getFloat32(e+r*4,!0):i===1||!n?wc(s.getUint16(e+r*2,!0)):s.getUint8(e+r)/255*(a-o)+o}function vE(t,e){let r=rg[t];return r.bytesPerCenter+r.bytesPerScale+r.bytesPerRotation+r.bytesPerColor+r.bytesPerSphericalHarmonicsComponent*ig(e)}function ig(t){switch(t){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;default:throw new Error(`KSPLATLoader: unsupported spherical harmonics degree ${t}.`)}}function Dd(t){return t.sectionCount||t.maxSectionCount}function _E(t,e){let r=e.slice(0,Dd(t)).reduce((i,n)=>i+n.splatCount,0);return t.splatCount?Math.min(t.splatCount,r||t.splatCount):r}function bE(t,e){if(e.dataBase+e.bytesPerSplat*e.splatCount>t.byteLength)throw new Error("KSPLATLoader: section data extends beyond the file length.")}var QI,sE,ua,kd,cE,e$,rg,t$=f(()=>{"use strict";ca();aa();QI=0,sE=1,ua=4096,kd=1024,cE=3,e$=cE/2,rg={0:{bytesPerCenter:12,bytesPerScale:12,bytesPerRotation:16,bytesPerColor:4,scaleOffsetBytes:12,colorOffsetBytes:40,sphericalHarmonicsOffsetBytes:44,scaleRange:1,bytesPerSphericalHarmonicsComponent:4},1:{bytesPerCenter:6,bytesPerScale:6,bytesPerRotation:8,bytesPerColor:4,scaleOffsetBytes:6,colorOffsetBytes:20,sphericalHarmonicsOffsetBytes:24,scaleRange:32767,bytesPerSphericalHarmonicsComponent:2},2:{bytesPerCenter:6,bytesPerScale:6,bytesPerRotation:8,bytesPerColor:4,scaleOffsetBytes:6,colorOffsetBytes:20,sphericalHarmonicsOffsetBytes:24,scaleRange:32767,bytesPerSphericalHarmonicsComponent:1}}});var r$={};Ue(r$,{KSPLATLoaderWithParser:()=>xE});var TH,wE,xE,n$=f(()=>{"use strict";t$();og();({preload:TH,...wE}=Ad),xE={...wE,parse:async t=>ng(t),parseSync:t=>ng(t)}});async function IE(){let{KSPLATLoaderWithParser:t}=await Promise.resolve().then(()=>(n$(),r$));return t}var SE,Ad,og=f(()=>{"use strict";Si();SE="5.0.0-alpha.2";Ad={dataType:null,batchType:null,...Cu,version:SE,options:{splats:{shape:"arrow-table"}},preload:IE}});async function ag(t,e){let r=i$([t],e);return r?await DE(r):null}function i$(t,e){let r=$E(e);return r?kE(t,r):null}function $E(t){if(typeof globalThis.DecompressionStream>"u"||globalThis.process?.versions?.node&&typeof globalThis.Buffer>"u")return null;try{let e=globalThis.DecompressionStream;return new e(t)}catch(e){if(e instanceof TypeError||e?.name==="TypeError")return null;throw e}}async function*kE(t,e){let r=e.writable.getWriter(),i=e.readable.getReader(),n=BE(t,r);n.catch(()=>{});let o=!1;try{for(;;){let{done:a,value:s}=await i.read();if(a){o=!0;break}yield AE(s)}await n}finally{o||(await i.cancel().catch(()=>{}),await r.abort().catch(()=>{}),await n.catch(()=>{})),i.releaseLock()}}async function DE(t){let e=[],r=0;for await(let o of t){let a=new Uint8Array(o);e.push(a),r+=a.byteLength}let i=new Uint8Array(r),n=0;for(let o of e)i.set(o,n),n+=o.byteLength;return i.buffer}function AE(t){return new Uint8Array(t).buffer}async function BE(t,e){try{for await(let r of t)await e.write(new Uint8Array(r));await e.close()}catch(r){throw await e.abort(r).catch(()=>{}),r}}var o$=f(()=>{"use strict"});var a$=f(()=>{"use strict";o$()});var qr,TE,zE,OE,EE,la,s$,UE,c$=f(()=>{"use strict";qr={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document},TE=qr.self||qr.window||qr.global||{},zE=qr.window||qr.self||qr.global||{},OE=qr.global||qr.self||qr.window||{},EE=qr.document||{},la=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),s$=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version),UE=s$&&parseFloat(s$[1])||0});var Bd,NE,Td,LE,PH,u$=f(()=>{Bd=globalThis,NE=globalThis.document||{},Td=globalThis.process||{},LE=globalThis.console,PH=globalThis.navigator||{}});function l$(t){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;let e=typeof navigator<"u"&&navigator.userAgent,r=t||e;return!!(r&&r.indexOf("Electron")>=0)}var d$=f(()=>{});function io(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||l$()}var f$=f(()=>{d$()});var sg,zd=f(()=>{u$();f$();sg="4.1.1"});function da(t,e){if(!t)throw new Error(e||"Assertion failed")}var cg=f(()=>{});function ug(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return da(Number.isFinite(e)&&e>=0),e}function p$(t){let{logLevel:e,message:r}=t;t.logLevel=ug(e);let i=t.args?Array.from(t.args):[];for(;i.length&&i.shift()!==r;);switch(typeof e){case"string":case"function":r!==void 0&&i.unshift(r),t.message=e;break;case"object":Object.assign(t,e);break;default:}typeof t.message=="function"&&(t.message=t.message());let n=typeof t.message;return da(n==="string"||n==="object"),Object.assign(t,{args:i},t.opts)}var h$=f(()=>{cg()});var oo,Od,m$=f(()=>{h$();oo=()=>{},Od=class{constructor({level:e=0}={}){this.userData={},this._onceCache=new Set,this._level=e}set level(e){this.setLevel(e)}get level(){return this.getLevel()}setLevel(e){return this._level=e,this}getLevel(){return this._level}warn(e,...r){return this._log("warn",0,e,r,{once:!0})}error(e,...r){return this._log("error",0,e,r)}log(e,r,...i){return this._log("log",e,r,i)}info(e,r,...i){return this._log("info",e,r,i)}once(e,r,...i){return this._log("once",e,r,i,{once:!0})}_log(e,r,i,n,o={}){let a=p$({logLevel:r,message:i,args:this._buildArgs(r,i,n),opts:o});return this._createLogFunction(e,a,o)}_buildArgs(e,r,i){return[e,r,...i]}_createLogFunction(e,r,i){if(!this._shouldLog(r.logLevel))return oo;let n=this._getOnceTag(i.tag??r.tag??r.message);if((i.once||r.once)&&n!==void 0){if(this._onceCache.has(n))return oo;this._onceCache.add(n)}return this._emit(e,r)}_shouldLog(e){return this.getLevel()>=ug(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}}});function FE(t){try{let e=window[t],r="__storage_test__";return e.setItem(r,r),e.removeItem(r),e}catch{return null}}var Ed,g$=f(()=>{Ed=class{constructor(e,r,i="sessionStorage"){this.storage=FE(i),this.id=e,this.config=r,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){let r=JSON.stringify(this.config);this.storage.setItem(this.id,r)}}_loadConfiguration(){let e={};if(this.storage){let r=this.storage.getItem(this.id);e=r?JSON.parse(r):{}}return Object.assign(this.config,e),this}}});function y$(t){let e;return t<10?e=`${t.toFixed(2)}ms`:t<100?e=`${t.toFixed(1)}ms`:t<1e3?e=`${t.toFixed(0)}ms`:e=`${(t/1e3).toFixed(2)}s`,e}function v$(t,e=8){let r=Math.max(e-t.length,0);return`${" ".repeat(r)}${t}`}var _$=f(()=>{});function b$(t){return typeof t!="string"?t:(t=t.toUpperCase(),Ud[t]||Ud.WHITE)}function w$(t,e,r){return!io&&typeof t=="string"&&(e&&(t=`\x1B[${b$(e)}m${t}\x1B[39m`),r&&(t=`\x1B[${b$(r)+RE}m${t}\x1B[49m`)),t}var Ud,RE,x$=f(()=>{zd();(function(t){t[t.BLACK=30]="BLACK",t[t.RED=31]="RED",t[t.GREEN=32]="GREEN",t[t.YELLOW=33]="YELLOW",t[t.BLUE=34]="BLUE",t[t.MAGENTA=35]="MAGENTA",t[t.CYAN=36]="CYAN",t[t.WHITE=37]="WHITE",t[t.BRIGHT_BLACK=90]="BRIGHT_BLACK",t[t.BRIGHT_RED=91]="BRIGHT_RED",t[t.BRIGHT_GREEN=92]="BRIGHT_GREEN",t[t.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",t[t.BRIGHT_BLUE=94]="BRIGHT_BLUE",t[t.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",t[t.BRIGHT_CYAN=96]="BRIGHT_CYAN",t[t.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Ud||(Ud={}));RE=10});function S$(t,e=["constructor"]){let r=Object.getPrototypeOf(t),i=Object.getOwnPropertyNames(r),n=t;for(let o of i){let a=n[o];typeof a=="function"&&(e.find(s=>o===s)||(n[o]=a.bind(t)))}}var I$=f(()=>{});function fa(){let t;if(io()&&Bd.performance)t=Bd?.performance?.now?.();else if("hrtime"in Td){let e=Td?.hrtime?.();t=e[0]*1e3+e[1]/1e6}else t=Date.now();return t}var $$=f(()=>{zd()});function jE(t,e,r){if(typeof e=="string"){let i=r.time?v$(y$(r.total)):"";e=r.time?`${t}: ${i} ${e}`:`${t}: ${e}`,e=w$(e,r.color,r.background)}return e}function ME(t){for(let e in t)for(let r in t[e])return r||"untitled";return"empty"}var pa,lg,zn,dg=f(()=>{zd();m$();g$();_$();x$();I$();cg();$$();pa={debug:io()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},lg={enabled:!0,level:0},zn=class extends Od{constructor({id:e}={id:""}){super({level:0}),this.VERSION=sg,this._startTs=fa(),this._deltaTs=fa(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new Ed(`__probe-${this.id}__`,{[this.id]:lg}),this.timeStamp(`${this.id} started`),S$(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((fa()-this._startTs).toPrecision(10))}getDelta(){return Number((fa()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._updateConfiguration({enabled:e}),this}setLevel(e){return this._updateConfiguration({level:e}),this}get(e){return this._getConfiguration()[e]}set(e,r){this._updateConfiguration({[e]:r})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,r){if(!e)throw new Error(r||"Assertion failed")}warn(e,...r){return this._log("warn",0,e,r,{method:pa.warn,once:!0})}error(e,...r){return this._log("error",0,e,r,{method:pa.error})}deprecated(e,r){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${r}\` instead`)}removed(e,r){return this.error(`\`${e}\` has been removed. Use \`${r}\` instead`)}probe(e,r,...i){return this._log("log",e,r,i,{method:pa.log,time:!0,once:!0})}log(e,r,...i){return this._log("log",e,r,i,{method:pa.debug})}info(e,r,...i){return this._log("info",e,r,i,{method:console.info})}once(e,r,...i){return this._log("once",e,r,i,{method:pa.debug||pa.info,once:!0})}table(e,r,i){return r?this._log("table",e,r,i&&[i]||[],{method:console.table||oo,tag:ME(r)}):oo}time(e,r){return this._log("time",e,r,[],{method:console.time?console.time:console.info})}timeEnd(e,r){return this._log("time",e,r,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,r){return this._log("time",e,r,[],{method:console.timeStamp||oo})}group(e,r,i={collapsed:!1}){let n=(i.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",e,r,[],{method:n})}groupCollapsed(e,r,i={}){return this.group(e,r,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._log("groupEnd",e,"",[],{method:console.groupEnd||oo})}withGroup(e,r,i){this.group(e,r)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,r){let i=r.method;da(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=fa();let n=jE(this.id,r.message,r);return i.bind(console,n,...r.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(lg),this._storage.config[this.id]}_updateConfiguration(e){let r=this._storage.config[this.id]||{...lg};this._storage.setConfiguration({[this.id]:{...r,...e}})}};zn.VERSION=sg});var k$=f(()=>{globalThis.probe={}});var pW,D$=f(()=>{dg();dg();k$();pW=new zn({id:"@probe.gl/log"})});function VE(){let t=new zn({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=t,globalThis.loaders.version=CE,globalThis.probe||={},globalThis.probe.loaders=t,t}var fg,CE,A$,B$=f(()=>{"use strict";D$();fg="5.0.0-alpha.2",CE=fg[0]>="0"&&fg[0]<="9"?`v${fg}`:"";A$=VE()});var ZE,T$,pg,hg=f(()=>{"use strict";ZE=t=>t!==null&&typeof t=="object",T$=t=>ZE(t)&&t.constructor==={}.constructor,pg=t=>typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer});function z$(t,e){return O$(t||{},e)}function O$(t,e,r=0){if(r>3)return e;let i={...t};for(let[n,o]of Object.entries(e))T$(o)?i[n]=O$(i[n]||{},e[n],r+1):i[n]=e[n];return i}var E$=f(()=>{"use strict";hg()});function ni(t){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,t)}function Nd(t,e){let r=globalThis.loaders?.modules?.[t];if(!r)throw new Error(`${e}: ${t} library not installed`);return r}function Sc(t){return globalThis.loaders?.modules?.[t]||null}var mg=f(()=>{"use strict"});function U$(...t){return HE(t)}function HE(t){let e=t.map(o=>o instanceof ArrayBuffer?new Uint8Array(o):o),r=e.reduce((o,a)=>o+a.byteLength,0),i=new Uint8Array(r),n=0;for(let o of e)i.set(o,n),n+=o.byteLength;return i.buffer}var N$=f(()=>{"use strict"});async function gg(t){let e=[];for await(let r of t)e.push(WE(r));return U$(...e)}function WE(t){if(t instanceof ArrayBuffer)return t;if(ArrayBuffer.isView(t)){let{buffer:e,byteOffset:r,byteLength:i}=t;return L$(e,r,i)}return L$(t)}function L$(t,e=0,r=t.byteLength-e){let i=new Uint8Array(t,e,r),n=new Uint8Array(i.length);return n.set(i),n.buffer}var P$=f(()=>{"use strict";N$()});function R$(t){for(let e in F$)if(t.startsWith(e)){let r=F$[e];t=t.replace(e,r)}return!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`${JE}${t}`),t}var JE,F$,j$=f(()=>{"use strict";JE="",F$={}});function M$(t){return t&&typeof t=="object"&&t.isBuffer}function ii(t){if(M$(t))return t;if(t instanceof ArrayBuffer)return t;if(pg(t))return Ld(t);if(ArrayBuffer.isView(t)){let e=t.buffer;return t.byteOffset===0&&t.byteLength===t.buffer.byteLength?e:e.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(typeof t=="string"){let e=t;return new TextEncoder().encode(e).buffer}if(t&&typeof t=="object"&&t._toArrayBuffer)return t._toArrayBuffer();throw new Error("toArrayBuffer")}function Pd(t){if(t instanceof ArrayBuffer)return t;if(pg(t))return Ld(t);let{buffer:e,byteOffset:r,byteLength:i}=t;return e instanceof ArrayBuffer&&r===0&&i===e.byteLength?e:Ld(e,r,i)}function Ld(t,e=0,r=t.byteLength-e){let i=new Uint8Array(t,e,r),n=new Uint8Array(i.length);return n.set(i),n.buffer}var C$=f(()=>{"use strict";hg()});function ha(t){return e=>new Promise((r,i)=>t(e,(n,o)=>n?i(n):r(o)))}var V$=f(()=>{"use strict"});function KE(t){let e=t?.core?.fetch;if(e&&typeof e=="function")return(i,n)=>e(i,n);let r=t?.fetch;return r&&typeof r!="function"?(i,n)=>fetch(i,YE(r,n)):(i,n)=>fetch(i,n)}function YE(t,e){let r={...t,...e};return(t.headers||e?.headers)&&(r.headers=XE(t.headers,e?.headers)),r}function XE(t,e){let r=new Headers(t);return e&&new Headers(e).forEach((i,n)=>r.set(n,i)),r}function qE(t){let e={...t};t?.core&&(e.core={...t.core});let r=typeof e.baseUri=="string"?e.baseUri:void 0,i=typeof e.baseUrl=="string"?e.baseUrl:void 0;return(r!==void 0||i!==void 0)&&(e.core||={},e.core.baseUrl===void 0&&(e.core.baseUrl=i??r),delete e.baseUri,delete e.baseUrl),e}function QE(t,e){return t instanceof Error?t:typeof t=="string"?new Error(t):new Error(e)}function ao(t){return()=>{throw new Error(`CoreAPI.${t} is unavailable. Use @loaders.gl/core.createDataSource().`)}}var GE,Ic,Z$=f(()=>{"use strict";E$();j$();B$();GE={fetchFile:ao("fetchFile"),parse:ao("parse"),parseFile:ao("parseFile"),parseSync:ao("parseSync"),parseInBatches:ao("parseInBatches"),load:ao("load"),loadInBatches:ao("loadInBatches")},Ic=class t{static defaultOptions={core:{type:"auto",attributions:[],loadOptions:{},loaders:[],onError:void 0}};optionsType;options;data;url;loadOptions;fetch;coreApi;hasCoreApi;_needsRefresh=!0;constructor(e,r,i,n){i?this.options=z$({...i,core:t.defaultOptions},r):this.options={...r},this.data=e,this.url=typeof e=="string"?R$(e):"";let o=qE(this.options.core?.loadOptions);this.loadOptions=o;let a=KE(o);this.coreApi=n||GE,this.hasCoreApi=!!n,this.fetch=a}setProps(e){this.options=Object.assign(this.options,e),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(e=!0){let r=this._needsRefresh;return e&&(this._needsRefresh=!1),r}reportError(e,r){let i=QE(e,r),n=this.options.core?.onError;return n?n(i,this):A$.warn(`${this.constructor.name}: ${i.message}`)(),i}}});var ma=f(()=>{"use strict";c$();mg();mg();P$();C$();V$();Z$()});var ga,yg=f(()=>{"use strict";ma();ga=class{constructor(e){this.compressBatches=this.compressBatches.bind(this),this.decompressBatches=this.decompressBatches.bind(this)}async preload(e={}){ni(e)}async compress(e){return await this.preload(),this.compressSync(e)}async decompress(e,r){return await this.preload(),this.decompressSync(e,r)}compressSync(e){throw new Error(`${this.name}: sync compression not supported`)}decompressSync(e,r){throw new Error(`${this.name}: sync decompression not supported`)}async*compressBatches(e){let r=await this.concatenate(e);yield this.compress(r)}async*decompressBatches(e){let r=await this.concatenate(e);yield this.decompress(r)}concatenate(e){return gg(e)}improveError(e){return e.message.includes(this.name)||(e.message=`${this.name} ${e.message}`),e}}});var Y$={};Ue(Y$,{Decompress:()=>pU,ZstdErrorCode:()=>rU,decompress:()=>fU});function fU(t,e){for(var r=[],i=+!e,n=0,o=0;t.length;){var a=J$(t,i||e);if(typeof a=="object"){for(i?(e=null,a.w.length==a.u&&(r.push(e=a.w),o+=a.u)):(r.push(e),a.e=0);!a.l;){var s=K$(t,a,e);s||Le(5),e?a.e=a.y:(r.push(s),o+=s.length,W$(a.w,0,s.length),a.w.set(s,a.w.length-s.length))}n=a.b+a.c*4}else n=a;t=t.subarray(n)}return wg(r,o)}var eU,Ce,Fd,tU,Rd,vg,kc,W$,rU,nU,Le,H$,iU,J$,so,Dc,oU,aU,sU,cU,G$,_g,uU,bg,lU,$c,dU,K$,wg,pU,X$=f(()=>{eU=ArrayBuffer,Ce=Uint8Array,Fd=Uint16Array,tU=Int16Array,Rd=Int32Array,vg=function(t,e,r){if(Ce.prototype.slice)return Ce.prototype.slice.call(t,e,r);(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new Ce(r-e);return i.set(t.subarray(e,r)),i},kc=function(t,e,r,i){if(Ce.prototype.fill)return Ce.prototype.fill.call(t,e,r,i);for((r==null||r<0)&&(r=0),(i==null||i>t.length)&&(i=t.length);r<i;++r)t[r]=e;return t},W$=function(t,e,r,i){if(Ce.prototype.copyWithin)return Ce.prototype.copyWithin.call(t,e,r,i);for((r==null||r<0)&&(r=0),(i==null||i>t.length)&&(i=t.length);r<i;)t[e++]=t[r++]},rU={InvalidData:0,WindowSizeTooLarge:1,InvalidBlockType:2,FSEAccuracyTooHigh:3,DistanceTooFarBack:4,UnexpectedEOF:5},nU=["invalid zstd data","window size too large (>2046MB)","invalid block type","FSE accuracy too high","match distance too far back","unexpected EOF"],Le=function(t,e,r){var i=new Error(e||nU[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,Le),!r)throw i;return i},H$=function(t,e,r){for(var i=0,n=0;i<r;++i)n|=t[e++]<<(i<<3);return n},iU=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},J$=function(t,e){var r=t[0]|t[1]<<8|t[2]<<16;if(r==3126568&&t[3]==253){var i=t[4],n=i>>5&1,o=i>>2&1,a=i&3,s=i>>6;i&8&&Le(0);var u=6-n,c=a==3?4:a,l=H$(t,u,c);u+=c;var d=s?1<<s:n,h=H$(t,u,d)+(s==1&&256),p=h;if(!n){var v=1<<10+(t[5]>>3);p=v+(v>>3)*(t[5]&7)}p>2145386496&&Le(1);var _=new Ce((e==1?h||p:e?0:p)+12);return _[0]=1,_[4]=4,_[8]=8,{b:u+d,y:0,l:0,d:l,w:e&&e!=1?e:_.subarray(12),e:p,o:new Rd(_.buffer,0,3),u:h,c:o,m:Math.min(131072,p)}}else if((r>>4|t[3]<<20)==25481893)return iU(t,4)+8;Le(0)},so=function(t){for(var e=0;1<<e<=t;++e);return e-1},Dc=function(t,e,r){var i=(e<<3)+4,n=(t[e]&15)+5;n>r&&Le(3);for(var o=1<<n,a=o,s=-1,u=-1,c=-1,l=o,d=new eU(512+(o<<2)),h=new tU(d,0,256),p=new Fd(d,0,256),v=new Fd(d,512,o),_=512+(o<<1),$=new Ce(d,_,o),B=new Ce(d,_+o);s<255&&a>0;){var Z=so(a+1),U=i>>3,z=(1<<Z+1)-1,w=(t[U]|t[U+1]<<8|t[U+2]<<16)>>(i&7)&z,D=(1<<Z)-1,q=z-a-1,H=w&D;if(H<q?(i+=Z,w=H):(i+=Z+1,w>D&&(w-=q)),h[++s]=--w,w==-1?(a+=w,$[--l]=s):a-=w,!w)do{var ie=i>>3;u=(t[ie]|t[ie+1]<<8)>>(i&7)&3,i+=2,s+=u}while(u==3)}(s>255||a)&&Le(0);for(var pe=0,Y=(o>>1)+(o>>3)+3,je=o-1,ct=0;ct<=s;++ct){var ge=h[ct];if(ge<1){p[ct]=-ge;continue}for(c=0;c<ge;++c){$[pe]=ct;do pe=pe+Y&je;while(pe>=l)}}for(pe&&Le(0),c=0;c<o;++c){var le=p[$[c]]++,rt=B[c]=n-so(le);v[c]=(le<<rt)-o}return[i+7>>3,{b:n,s:$,n:B,t:v}]},oU=function(t,e){var r=0,i=-1,n=new Ce(292),o=t[e],a=n.subarray(0,256),s=n.subarray(256,268),u=new Fd(n.buffer,268);if(o<128){var c=Dc(t,e+1,6),l=c[0],d=c[1];e+=o;var h=l<<3,p=t[e];p||Le(0);for(var v=0,_=0,$=d.b,B=$,Z=(++e<<3)-8+so(p);Z-=$,!(Z<h);){var U=Z>>3;if(v+=(t[U]|t[U+1]<<8)>>(Z&7)&(1<<$)-1,a[++i]=d.s[v],Z-=B,Z<h)break;U=Z>>3,_+=(t[U]|t[U+1]<<8)>>(Z&7)&(1<<B)-1,a[++i]=d.s[_],$=d.n[v],v=d.t[v],B=d.n[_],_=d.t[_]}++i>255&&Le(0)}else{for(i=o-127;r<i;r+=2){var z=t[++e];a[r]=z>>4,a[r+1]=z&15}++e}var w=0;for(r=0;r<i;++r){var D=a[r];D>11&&Le(0),w+=D&&1<<D-1}var q=so(w)+1,H=1<<q,ie=H-w;for(ie&ie-1&&Le(0),a[i++]=so(ie)+1,r=0;r<i;++r){var D=a[r];++s[a[r]=D&&q+1-D]}var pe=new Ce(H<<1),Y=pe.subarray(0,H),je=pe.subarray(H);for(u[q]=0,r=q;r>0;--r){var ct=u[r];kc(je,r,ct,u[r-1]=ct+s[r]*(1<<q-r))}for(u[0]!=H&&Le(0),r=0;r<i;++r){var ge=a[r];if(ge){var le=u[ge];kc(Y,r,le,u[ge]=le+(1<<q-ge))}}return[e,{n:je,b:q,s:Y}]},aU=Dc(new Ce([81,16,99,140,49,198,24,99,12,33,196,24,99,102,102,134,70,146,4]),0,6)[1],sU=Dc(new Ce([33,20,196,24,99,140,33,132,16,66,8,33,132,16,66,8,33,68,68,68,68,68,68,68,68,36,9]),0,6)[1],cU=Dc(new Ce([32,132,16,66,102,70,68,68,68,68,36,73,2]),0,5)[1],G$=function(t,e){for(var r=t.length,i=new Rd(r),n=0;n<r;++n)i[n]=e,e+=1<<t[n];return i},_g=new Ce(new Rd([0,0,0,0,16843009,50528770,134678020,202050057,269422093]).buffer,0,36),uU=G$(_g,0),bg=new Ce(new Rd([0,0,0,0,0,0,0,0,16843009,50528770,117769220,185207048,252579084,16]).buffer,0,53),lU=G$(bg,3),$c=function(t,e,r){var i=t.length,n=e.length,o=t[i-1],a=(1<<r.b)-1,s=-r.b;o||Le(0);for(var u=0,c=r.b,l=(i<<3)-8+so(o)-c,d=-1;l>s&&d<n;){var h=l>>3,p=(t[h]|t[h+1]<<8|t[h+2]<<16)>>(l&7);u=(u<<c|p)&a,e[++d]=r.s[u],l-=c=r.n[u]}(l!=s||d+1!=n)&&Le(0)},dU=function(t,e,r){var i=6,n=e.length,o=n+3>>2,a=o<<1,s=o+a;$c(t.subarray(i,i+=t[0]|t[1]<<8),e.subarray(0,o),r),$c(t.subarray(i,i+=t[2]|t[3]<<8),e.subarray(o,a),r),$c(t.subarray(i,i+=t[4]|t[5]<<8),e.subarray(a,s),r),$c(t.subarray(i),e.subarray(s),r)},K$=function(t,e,r){var i,n=e.b,o=t[n],a=o>>1&3;e.l=o&1;var s=o>>3|t[n+1]<<5|t[n+2]<<13,u=(n+=3)+s;if(a==1)return n>=t.length?void 0:(e.b=n+1,r?(kc(r,t[n],e.y,e.y+=s),r):kc(new Ce(s),t[n]));if(!(u>t.length)){if(a==0)return e.b=u,r?(r.set(t.subarray(n,u),e.y),e.y+=s,r):vg(t,n,u);if(a==2){var c=t[n],l=c&3,d=c>>2&3,h=c>>4,p=0,v=0;l<2?d&1?h|=t[++n]<<4|(d&2&&t[++n]<<12):h=c>>3:(v=d,d<2?(h|=(t[++n]&63)<<4,p=t[n]>>6|t[++n]<<2):d==2?(h|=t[++n]<<4|(t[++n]&3)<<12,p=t[n]>>2|t[++n]<<6):(h|=t[++n]<<4|(t[++n]&63)<<12,p=t[n]>>6|t[++n]<<2|t[++n]<<10)),++n;var _=r?r.subarray(e.y,e.y+e.m):new Ce(e.m),$=_.length-h;if(l==0)_.set(t.subarray(n,n+=h),$);else if(l==1)kc(_,t[n++],$);else{var B=e.h;if(l==2){var Z=oU(t,n);p+=n-(n=Z[0]),e.h=B=Z[1]}else B||Le(0);(v?dU:$c)(t.subarray(n,n+=p),_.subarray($),B)}var U=t[n++];if(U){U==255?U=(t[n++]|t[n++]<<8)+32512:U>127&&(U=U-128<<8|t[n++]);var z=t[n++];z&3&&Le(0);for(var w=[sU,cU,aU],D=2;D>-1;--D){var q=z>>(D<<1)+2&3;if(q==1){var H=new Ce([0,0,t[n++]]);w[D]={s:H.subarray(2,3),n:H.subarray(0,1),t:new Fd(H.buffer,0,1),b:0}}else q==2?(i=Dc(t,n,9-(D&1)),n=i[0],w[D]=i[1]):q==3&&(e.t||Le(0),w[D]=e.t[D])}var ie=e.t=w,pe=ie[0],Y=ie[1],je=ie[2],ct=t[u-1];ct||Le(0);var ge=(u<<3)-8+so(ct)-je.b,le=ge>>3,rt=0,ln=(t[le]|t[le+1]<<8)>>(ge&7)&(1<<je.b)-1;le=(ge-=Y.b)>>3;var dn=(t[le]|t[le+1]<<8)>>(ge&7)&(1<<Y.b)-1;le=(ge-=pe.b)>>3;var Nu=(t[le]|t[le+1]<<8)>>(ge&7)&(1<<pe.b)-1;for(++U;--U;){var eh=je.s[ln],y0=je.n[ln],th=pe.s[Nu],v0=pe.n[Nu],_0=Y.s[dn],b0=Y.n[dn];le=(ge-=_0)>>3;var w0=1<<_0,xi=w0+((t[le]|t[le+1]<<8|t[le+2]<<16|t[le+3]<<24)>>>(ge&7)&w0-1);le=(ge-=bg[th])>>3;var cs=lU[th]+((t[le]|t[le+1]<<8|t[le+2]<<16)>>(ge&7)&(1<<bg[th])-1);le=(ge-=_g[eh])>>3;var Lu=uU[eh]+((t[le]|t[le+1]<<8|t[le+2]<<16)>>(ge&7)&(1<<_g[eh])-1);if(le=(ge-=y0)>>3,ln=je.t[ln]+((t[le]|t[le+1]<<8)>>(ge&7)&(1<<y0)-1),le=(ge-=v0)>>3,Nu=pe.t[Nu]+((t[le]|t[le+1]<<8)>>(ge&7)&(1<<v0)-1),le=(ge-=b0)>>3,dn=Y.t[dn]+((t[le]|t[le+1]<<8)>>(ge&7)&(1<<b0)-1),xi>3)e.o[2]=e.o[1],e.o[1]=e.o[0],e.o[0]=xi-=3;else{var Pu=xi-(Lu!=0);Pu?(xi=Pu==3?e.o[0]-1:e.o[Pu],Pu>1&&(e.o[2]=e.o[1]),e.o[1]=e.o[0],e.o[0]=xi):xi=e.o[0]}for(var D=0;D<Lu;++D)_[rt+D]=_[$+D];rt+=Lu,$+=Lu;var us=rt-xi;if(us<0){var ls=-us,qT=e.e+us;ls>cs&&(ls=cs);for(var D=0;D<ls;++D)_[rt+D]=e.w[qT+D];rt+=ls,cs-=ls,us=0}for(var D=0;D<cs;++D)_[rt+D]=_[us+D];rt+=cs}if(rt!=$)for(;$<_.length;)_[rt++]=_[$++];else rt=_.length;r?e.y+=rt:_=vg(_,0,rt)}else if(r){if(e.y+=h,$)for(var D=0;D<h;++D)_[D]=_[$+D]}else $&&(_=vg(_,$));return e.b=u,_}Le(2)}},wg=function(t,e){if(t.length==1)return t[0];for(var r=new Ce(e),i=0,n=0;i<t.length;++i){var o=t[i];r.set(o,n),n+=o.length}return r};pU=(function(){function t(e){this.ondata=e,this.c=[],this.l=0,this.z=0}return t.prototype.push=function(e,r){if(typeof this.s=="number"){var i=Math.min(e.length,this.s);e=e.subarray(i),this.s-=i}var n=e.length,o=n+this.l;if(!this.s){if(r){if(!o){this.ondata(new Ce(0),!0);return}o<5&&Le(5)}else if(o<18){this.c.push(e),this.l=o;return}if(this.l&&(this.c.push(e),e=wg(this.c,o),this.c=[],this.l=0),typeof(this.s=J$(e))=="number")return this.push(e,r)}if(typeof this.s!="number"){if(o<(this.z||3)){r&&Le(5),this.c.push(e),this.l=o;return}if(this.l&&(this.c.push(e),e=wg(this.c,o),this.c=[],this.l=0),!this.z&&o<(this.z=e[this.s.b]&2?4:3+(e[this.s.b]>>3|e[this.s.b+1]<<5|e[this.s.b+2]<<13))){r&&Le(5),this.c.push(e),this.l=o;return}else this.z=0;for(;;){var a=K$(e,this.s);if(a)this.ondata(a,!1),W$(this.s.w,0,a.length),this.s.w.set(a,this.s.w.length-a.length);else{r&&Le(5);var s=e.subarray(this.s.b);this.s.b=0,this.c.push(s),this.l+=s.length;return}if(this.s.l){var u=e.subarray(this.s.b);this.s=this.s.c*4,this.push(u,r);return}}}else r&&Le(5)},t})()});var q$,jd,Ac,Md,Q$=f(()=>{"use strict";yg();ma();q$=1e6,Md=class extends ga{name="zstd";extensions=[];contentEncodings=[];isSupported=!0;options;constructor(e={}){super(e),this.options=e,ni(e?.modules)}async preload(e={}){ni(e);let r=Sc("zstd-codec");!jd&&r&&(jd=new Promise(i=>r.run(n=>i(n)))),jd&&(Ac=await jd)}compressSync(e){Nd("zstd-codec",this.name);let r=new Ac.Simple,i=new Uint8Array(e);return r.compress(i).buffer}decompressSync(e){Nd("zstd-codec",this.name);let r=new Ac.Simple,i=new Uint8Array(e);return r.decompress(i).buffer}async decompress(e,r){await this.preload();let i=new Uint8Array(e);if(!Ac){let{decompress:s}=await Promise.resolve().then(()=>(X$(),Y$));return Pd(s(i))}let n=new Ac.Streaming,o=[];for(let s=0;s<=i.length;s+=q$){let u=i.subarray(s,s+q$),c=Pd(u);o.push(new Uint8Array(c))}return(await n.decompressChunks(o)).buffer}}});var ek={};Ue(ek,{ZstdCompression:()=>Md});var tk=f(()=>{"use strict";Q$()});async function ok(t,e){return Xr(await vU(t,e))}async function vU(t,e){let r=wU(t),i=xU(t,r,SU(r)),n=i.map(u=>t.slice(u.compressedOffset,u.compressedOffset+u.compressedSize));ni(e?.modules);let o=!Sc("zstd-codec"),a,s=await Promise.all(n.map((u,c)=>_U(u,i[c].uncompressedSize,o,()=>(a||=bU(e?.modules),a))));return IU(s,i),$U(r,s,t)}async function _U(t,e,r,i){if(r){let o=await ag(t,"zstd");if(o)return o}return await(await i()).decompress(t,e)}async function bU(t){let{ZstdCompression:e}=await Promise.resolve().then(()=>(tk(),ek));return new e({modules:t})}function wU(t){if(t.byteLength<Bc)throw new Error(`SPZLoader: file must contain a ${Bc}-byte header.`);let e=new DataView(t),r={magic:e.getUint32(0,!0),version:e.getUint32(4,!0),numPoints:e.getUint32(8,!0),shDegree:e.getUint8(12),fractionalBits:e.getUint8(13),flags:e.getUint8(14),numStreams:e.getUint8(15),tocByteOffset:e.getUint32(16,!0)};if(r.magic!==hU)throw new Error("SPZLoader: NGSP magic header not found.");if(r.version!==mU)throw new Error(`SPZLoader: version ${r.version} is not supported.`);if(r.shDegree>4)throw new Error(`SPZLoader: spherical harmonics degree ${r.shDegree} is not supported.`);if(r.tocByteOffset<Bc||r.tocByteOffset>t.byteLength)throw new Error("SPZLoader: invalid table of contents byte offset.");return r}function xU(t,e,r){if(e.numStreams!==r.length)throw new Error(`SPZLoader: expected ${r.length} streams, found ${e.numStreams}.`);let i=e.numStreams*16,n=e.tocByteOffset+i;if(n>t.byteLength)throw new Error("SPZLoader: table of contents exceeds file byte length.");let o=new DataView(t),a=n,s=[];for(let u=0;u<e.numStreams;u++){let c=e.tocByteOffset+u*16,l=nk(o,c),d=nk(o,c+8),h=r[u];if(d!==h)throw new Error(`SPZLoader: stream ${u} has ${d} uncompressed bytes, expected ${h}.`);if(a+l>t.byteLength)throw new Error(`SPZLoader: stream ${u} exceeds file byte length.`);s.push({compressedSize:l,uncompressedSize:d,compressedOffset:a}),a+=l}if(a!==t.byteLength)throw new Error("SPZLoader: compressed stream byte lengths do not match file byte length.");return s}function nk(t,e){let r=t.getBigUint64(e,!0);if(r>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("SPZLoader: stream byte length exceeds Number.MAX_SAFE_INTEGER.");return Number(r)}function SU(t){return[t.numPoints*9,t.numPoints,t.numPoints*3,t.numPoints*3,t.numPoints*4,t.numPoints*ak(t.shDegree)].filter(e=>e>0)}function IU(t,e){for(let r=0;r<t.length;r++)if(t[r].byteLength!==e[r].uncompressedSize)throw new Error(`SPZLoader: decompressed stream ${r} has unexpected byte length.`)}function $U(t,e,r){let i=t.numPoints,n=new Float32Array(i*3),o=new Float32Array(i*3),a=new Float32Array(i*4),s=new Uint8Array(i*3),u=new Float32Array(i*3),c=new Float32Array(i),l=ak(t.shDegree),d=l?new Float32Array(i*l):void 0,[h,p,v,_,$,B]=e.map(Z=>new Uint8Array(Z));return kU(h,n,t.fractionalBits),DU(_,o),AU($,a),TU(v,s,u),zU(p,c),d&&B&&OU(B,d),{format:"spz",splatCount:i,positions:n,scales:o,rotations:a,colors:s,sphericalHarmonicDcs:u,opacities:c,sphericalHarmonics:d,sphericalHarmonicsComponentCount:l,loaderData:{format:"spz",...t,antialiased:!!(t.flags&1),extensionByteLength:sk(t),extensionBytes:UU(r,t)}}}function kU(t,e,r){let i=1/2**r;for(let n=0;n<e.length;n++){let o=n*3,a=t[o]|t[o+1]<<8|t[o+2]<<16;a|=a&8388608?4278190080:0,e[n]=a*i}}function DU(t,e){for(let r=0;r<e.length;r++)e[r]=Math.exp(t[r]/16-10)}function AU(t,e){for(let r=0;r<e.length/4;r++){let i=r*4,n=t[i]|t[i+1]<<8|t[i+2]<<16|t[i+3]<<24,o=BU(n>>>0),[a,s,u,c]=Tn(o[3],o[0],o[1],o[2]),l=r*4;e[l+0]=a,e[l+1]=s,e[l+2]=u,e[l+3]=c}}function BU(t){let e=[0,0,0,0],r=t>>>30,i=t,n=0;for(let o=3;o>=0;o--)if(o!==r){let a=i&rk,s=i>>>9&1;i>>>=10;let u=yU*a/rk;s&&(u=-u),e[o]=u,n+=u*u}return e[r]=Math.sqrt(Math.max(0,1-n)),e}function TU(t,e,r){for(let i=0;i<e.length;i++)r[i]=(t[i]/255-.5)/ik,e[i]=EU(r[i])}function zU(t,e){for(let r=0;r<e.length;r++)e[r]=t[r]/255}function OU(t,e){for(let r=0;r<e.length;r++)e[r]=(t[r]-128)/128}function EU(t){return Math.min(Math.max(Math.round((t*ik+.5)*255),0),255)}function ak(t){switch(t){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;case 4:return 72;default:throw new Error(`SPZLoader: spherical harmonics degree ${t} is not supported.`)}}function sk(t){return t.flags&gU?t.tocByteOffset-Bc:0}function UU(t,e){return sk(e)?new Uint8Array(t.slice(Bc,e.tocByteOffset)):void 0}var Bc,hU,mU,gU,ik,yU,rk,ck=f(()=>{"use strict";a$();ma();ca();aa();Bc=32,hU=1347635022,mU=4,gU=2,ik=.15,yU=Math.SQRT1_2,rk=511});var uk={};Ue(uk,{SPZLoaderWithParser:()=>LU});var cJ,NU,LU,lk=f(()=>{"use strict";ck();xg();({preload:cJ,...NU}=Cd),LU={...NU,parse:async(t,e)=>ok(t,e)}});async function FU(){let{SPZLoaderWithParser:t}=await Promise.resolve().then(()=>(lk(),uk));return t}var PU,Cd,xg=f(()=>{"use strict";Si();PU="5.0.0-alpha.2";Cd={dataType:null,batchType:null,...Vu,version:PU,options:{splats:{shape:"arrow-table"}},preload:FU}});function g(t,e,r){function i(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(t))return;s._zod.traits.add(t),e(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let h=l[d];h in s||(s[h]=c[h].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:t});function a(s){var u;let c=r?.Parent?new o:this;i(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}function Ve(t){return t&&Object.assign(Tc,t),Tc}var Sg,Vd,kr,oi,Tc,ya=f(()=>{Sg=Object.freeze({status:"aborted"});Vd=Symbol("zod_brand"),kr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},oi=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},Tc={}});var S={};Ue(S,{BIGINT_FORMAT_RANGES:()=>Eg,Class:()=>$g,NUMBER_FORMAT_RANGES:()=>Og,aborted:()=>ui,allowsEval:()=>Ag,assert:()=>VU,assertEqual:()=>RU,assertIs:()=>MU,assertNever:()=>CU,assertNotEqual:()=>jU,assignProp:()=>si,base64ToUint8Array:()=>fk,base64urlToUint8Array:()=>aN,cached:()=>_a,captureStackTrace:()=>Hd,cleanEnum:()=>oN,cleanRegex:()=>Ec,clone:()=>_t,cloneDef:()=>HU,createTransparentProxy:()=>XU,defineLazy:()=>ue,esc:()=>Zd,escapeRegex:()=>sr,extend:()=>eN,finalizeIssue:()=>Ot,floatSafeRemainder:()=>kg,getElementAtPath:()=>WU,getEnumValues:()=>Oc,getLengthableOrigin:()=>Lc,getParsedType:()=>YU,getSizableOrigin:()=>Nc,hexToUint8Array:()=>cN,isObject:()=>co,isPlainObject:()=>ci,issue:()=>ba,joinValues:()=>y,jsonStringifyReplacer:()=>va,merge:()=>rN,mergeDefs:()=>On,normalizeParams:()=>I,nullish:()=>ai,numKeys:()=>KU,objectClone:()=>ZU,omit:()=>QU,optionalKeys:()=>zg,parsedType:()=>x,partial:()=>nN,pick:()=>qU,prefixIssues:()=>Kt,primitiveTypes:()=>Tg,promiseAllObject:()=>JU,propertyKeyTypes:()=>Uc,randomString:()=>GU,required:()=>iN,safeExtend:()=>tN,shallowClone:()=>Bg,slugify:()=>Dg,stringifyPrimitive:()=>b,uint8ArrayToBase64:()=>pk,uint8ArrayToBase64url:()=>sN,uint8ArrayToHex:()=>uN,unwrapMessage:()=>zc});function RU(t){return t}function jU(t){return t}function MU(t){}function CU(t){throw new Error("Unexpected value in exhaustive check")}function VU(t){}function Oc(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,n])=>e.indexOf(+i)===-1).map(([i,n])=>n)}function y(t,e="|"){return t.map(r=>b(r)).join(e)}function va(t,e){return typeof e=="bigint"?e.toString():e}function _a(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function ai(t){return t==null}function Ec(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function kg(t,e){let r=(t.toString().split(".")[1]||"").length,i=e.toString(),n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){let u=i.match(/\d?e-(\d?)/);u?.[1]&&(n=Number.parseInt(u[1]))}let o=r>n?r:n,a=Number.parseInt(t.toFixed(o).replace(".","")),s=Number.parseInt(e.toFixed(o).replace(".",""));return a%s/10**o}function ue(t,e,r){let i;Object.defineProperty(t,e,{get(){if(i!==dk)return i===void 0&&(i=dk,i=r()),i},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function ZU(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function si(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function On(...t){let e={};for(let r of t){let i=Object.getOwnPropertyDescriptors(r);Object.assign(e,i)}return Object.defineProperties({},e)}function HU(t){return On(t._zod.def)}function WU(t,e){return e?e.reduce((r,i)=>r?.[i],t):t}function JU(t){let e=Object.keys(t),r=e.map(i=>t[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<e.length;o++)n[e[o]]=i[o];return n})}function GU(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}function Zd(t){return JSON.stringify(t)}function Dg(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function co(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function ci(t){if(co(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(co(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Bg(t){return ci(t)?{...t}:Array.isArray(t)?[...t]:t}function KU(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}function sr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _t(t,e,r){let i=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(i._zod.parent=t),i}function I(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function XU(t){let e;return new Proxy({},{get(r,i,n){return e??(e=t()),Reflect.get(e,i,n)},set(r,i,n,o){return e??(e=t()),Reflect.set(e,i,n,o)},has(r,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(r,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(r,i,n){return e??(e=t()),Reflect.defineProperty(e,i,n)}})}function b(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function zg(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}function qU(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=On(t._zod.def,{get shape(){let a={};for(let s in e){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&(a[s]=r.shape[s])}return si(this,"shape",a),a},checks:[]});return _t(t,o)}function QU(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=On(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let s in e){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&delete a[s]}return si(this,"shape",a),a},checks:[]});return _t(t,o)}function eN(t,e){if(!ci(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let o=t._zod.def.shape;for(let a in e)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=On(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return si(this,"shape",o),o}});return _t(t,n)}function tN(t,e){if(!ci(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=On(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return si(this,"shape",i),i}});return _t(t,r)}function rN(t,e){let r=On(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e._zod.def.shape};return si(this,"shape",i),i},get catchall(){return e._zod.def.catchall},checks:[]});return _t(t,r)}function nN(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=On(e._zod.def,{get shape(){let s=e._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=t?new t({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=t?new t({type:"optional",innerType:s[c]}):s[c];return si(this,"shape",u),u},checks:[]});return _t(e,a)}function iN(t,e,r){let i=On(e._zod.def,{get shape(){let n=e._zod.def.shape,o={...n};if(r)for(let a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new t({type:"nonoptional",innerType:n[a]}))}else for(let a in n)o[a]=new t({type:"nonoptional",innerType:n[a]});return si(this,"shape",o),o}});return _t(e,i)}function ui(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function Kt(t,e){return e.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(t),r})}function zc(t){return typeof t=="string"?t:t?.message}function Ot(t,e,r){let i={...t,path:t.path??[]};if(!t.message){let n=zc(t.inst?._zod.def?.error?.(t))??zc(e?.error?.(t))??zc(r.customError?.(t))??zc(r.localeError?.(t))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,e?.reportInput||delete i.input,i}function Nc(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Lc(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function x(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function ba(...t){let[e,r,i]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:i}:{...e}}function oN(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function fk(t){let e=atob(t),r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r}function pk(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function aN(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return fk(e+r)}function sN(t){return pk(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cN(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i/2]=Number.parseInt(e.slice(i,i+2),16);return r}function uN(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var dk,Hd,Ag,YU,Uc,Tg,Og,Eg,$g,F=f(()=>{dk=Symbol("evaluating");Hd="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};Ag=_a(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});YU=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Uc=new Set(["string","number","symbol"]),Tg=new Set(["string","number","bigint","boolean","symbol","undefined"]);Og={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Eg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};$g=class{constructor(...e){}}});function Fc(t,e=r=>r.message){let r={},i=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}function Rc(t,e=r=>r.message){let r={_errors:[]},i=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)r._errors.push(e(o));else{let a=r,s=0;for(;s<o.path.length;){let u=o.path[s];s===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(e(o))):a[u]=a[u]||{_errors:[]},a=a[u],s++}}};return i(t),r}function Ug(t,e=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c},u.path));else if(u.code==="invalid_key")i({issues:u.issues},u.path);else if(u.code==="invalid_element")i({issues:u.issues},u.path);else{let c=[...o,...u.path];if(c.length===0){r.errors.push(e(u));continue}let l=r,d=0;for(;d<c.length;){let h=c[d],p=d===c.length-1;typeof h=="string"?(l.properties??(l.properties={}),(a=l.properties)[h]??(a[h]={errors:[]}),l=l.properties[h]):(l.items??(l.items=[]),(s=l.items)[h]??(s[h]={errors:[]}),l=l.items[h]),p&&l.errors.push(e(u)),d++}}};return i(t),r}function mk(t){let e=[],r=t.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?e.push(`[${i}]`):typeof i=="symbol"?e.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push("."),e.push(i));return e.join("")}function Ng(t){let e=[],r=[...t.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)e.push(`\u2716 ${i.message}`),i.path?.length&&e.push(` \u2192 at ${mk(i.path)}`);return e.join(`
|
|
17
|
+
`)}var hk,Pc,Et,Lg=f(()=>{ya();F();hk=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,va,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Pc=g("$ZodError",hk),Et=g("$ZodError",hk,{Parent:Error})});var wa,Wd,xa,Jd,Sa,Pg,Ia,Fg,Gd,dN,Kd,fN,Yd,pN,Xd,hN,qd,mN,Qd,gN,ef,yN,tf,vN,Rg=f(()=>{ya();Lg();F();wa=t=>(e,r,i,n)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=e._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new kr;if(a.issues.length){let s=new(n?.Err??t)(a.issues.map(u=>Ot(u,o,Ve())));throw Hd(s,n?.callee),s}return a.value},Wd=wa(Et),xa=t=>async(e,r,i,n)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=e._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??t)(a.issues.map(u=>Ot(u,o,Ve())));throw Hd(s,n?.callee),s}return a.value},Jd=xa(Et),Sa=t=>(e,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=e._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new kr;return o.issues.length?{success:!1,error:new(t??Pc)(o.issues.map(a=>Ot(a,n,Ve())))}:{success:!0,data:o.value}},Pg=Sa(Et),Ia=t=>async(e,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},o=e._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(a=>Ot(a,n,Ve())))}:{success:!0,data:o.value}},Fg=Ia(Et),Gd=t=>(e,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return wa(t)(e,r,n)},dN=Gd(Et),Kd=t=>(e,r,i)=>wa(t)(e,r,i),fN=Kd(Et),Yd=t=>async(e,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return xa(t)(e,r,n)},pN=Yd(Et),Xd=t=>async(e,r,i)=>xa(t)(e,r,i),hN=Xd(Et),qd=t=>(e,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Sa(t)(e,r,n)},mN=qd(Et),Qd=t=>(e,r,i)=>Sa(t)(e,r,i),gN=Qd(Et),ef=t=>async(e,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ia(t)(e,r,n)},yN=ef(Et),tf=t=>async(e,r,i)=>Ia(t)(e,r,i),vN=tf(Et)});var cr={};Ue(cr,{base64:()=>ty,base64url:()=>rf,bigint:()=>sy,boolean:()=>uy,browserEmail:()=>kN,cidrv4:()=>Qg,cidrv6:()=>ey,cuid:()=>jg,cuid2:()=>Mg,date:()=>ny,datetime:()=>oy,domain:()=>BN,duration:()=>Wg,e164:()=>ry,email:()=>Gg,emoji:()=>Kg,extendedDuration:()=>_N,guid:()=>Jg,hex:()=>TN,hostname:()=>AN,html5Email:()=>SN,idnEmail:()=>$N,integer:()=>cy,ipv4:()=>Yg,ipv6:()=>Xg,ksuid:()=>Zg,lowercase:()=>fy,mac:()=>qg,md5_base64:()=>ON,md5_base64url:()=>EN,md5_hex:()=>zN,nanoid:()=>Hg,null:()=>ly,number:()=>nf,rfc5322Email:()=>IN,sha1_base64:()=>NN,sha1_base64url:()=>LN,sha1_hex:()=>UN,sha256_base64:()=>FN,sha256_base64url:()=>RN,sha256_hex:()=>PN,sha384_base64:()=>MN,sha384_base64url:()=>CN,sha384_hex:()=>jN,sha512_base64:()=>ZN,sha512_base64url:()=>HN,sha512_hex:()=>VN,string:()=>ay,time:()=>iy,ulid:()=>Cg,undefined:()=>dy,unicodeEmail:()=>gk,uppercase:()=>py,uuid:()=>uo,uuid4:()=>bN,uuid6:()=>wN,uuid7:()=>xN,xid:()=>Vg});function Kg(){return new RegExp(DN,"u")}function vk(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function iy(t){return new RegExp(`^${vk(t)}$`)}function oy(t){let e=vk({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${e}(?:${r.join("|")})`;return new RegExp(`^${yk}T(?:${i})$`)}function jc(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function Mc(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var jg,Mg,Cg,Vg,Zg,Hg,Wg,_N,Jg,uo,bN,wN,xN,Gg,SN,IN,gk,$N,kN,DN,Yg,Xg,qg,Qg,ey,ty,rf,AN,BN,ry,yk,ny,ay,sy,cy,nf,uy,ly,dy,fy,py,TN,zN,ON,EN,UN,NN,LN,PN,FN,RN,jN,MN,CN,VN,ZN,HN,of=f(()=>{F();jg=/^[cC][^\s-]{8,}$/,Mg=/^[0-9a-z]+$/,Cg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vg=/^[0-9a-vA-V]{20}$/,Zg=/^[A-Za-z0-9]{27}$/,Hg=/^[a-zA-Z0-9_-]{21}$/,Wg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_N=/^[-+]?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)?)??$/,Jg=/^([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})$/,uo=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([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)$/,bN=uo(4),wN=uo(6),xN=uo(7),Gg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,SN=/^[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])?)*$/,IN=/^(([^<>()\[\]\\.,;:\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,}))$/,gk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,$N=gk,kN=/^[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])?)*$/,DN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";Yg=/^(?:(?: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])$/,Xg=/^(([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}|:))$/,qg=t=>{let e=sr(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Qg=/^((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])$/,ey=/^(([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])$/,ty=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rf=/^[A-Za-z0-9_-]*$/,AN=/^(?=.{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])?)*\.?$/,BN=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ry=/^\+[1-9]\d{6,14}$/,yk="(?:(?:\\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])))",ny=new RegExp(`^${yk}$`);ay=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},sy=/^-?\d+n?$/,cy=/^-?\d+$/,nf=/^-?\d+(?:\.\d+)?$/,uy=/^(?:true|false)$/i,ly=/^null$/i,dy=/^undefined$/i,fy=/^[^A-Z]*$/,py=/^[^a-z]*$/,TN=/^[0-9a-fA-F]*$/;zN=/^[0-9a-fA-F]{32}$/,ON=jc(22,"=="),EN=Mc(22),UN=/^[0-9a-fA-F]{40}$/,NN=jc(27,"="),LN=Mc(27),PN=/^[0-9a-fA-F]{64}$/,FN=jc(43,"="),RN=Mc(43),jN=/^[0-9a-fA-F]{96}$/,MN=jc(64,""),CN=Mc(64),VN=/^[0-9a-fA-F]{128}$/,ZN=jc(86,"=="),HN=Mc(86)});function _k(t,e,r){t.issues.length&&e.issues.push(...Kt(r,t.issues))}var Te,bk,af,sf,hy,my,gy,yy,vy,_y,by,wy,xy,$a,Sy,Iy,$y,ky,Dy,Ay,By,Ty,zy,cf=f(()=>{ya();of();F();Te=g("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),bk={number:"number",bigint:"bigint",object:"date"},af=g("$ZodCheckLessThan",(t,e)=>{Te.init(t,e);let r=bk[typeof e.value];t._zod.onattach.push(i=>{let n=i._zod.bag,o=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<o&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),sf=g("$ZodCheckGreaterThan",(t,e)=>{Te.init(t,e);let r=bk[typeof e.value];t._zod.onattach.push(i=>{let n=i._zod.bag,o=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>o&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),hy=g("$ZodCheckMultipleOf",(t,e)=>{Te.init(t,e),t._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):kg(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),my=g("$ZodCheckNumberFormat",(t,e)=>{Te.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),i=r?"int":"number",[n,o]=Og[e.format];t._zod.onattach.push(a=>{let s=a._zod.bag;s.format=e.format,s.minimum=n,s.maximum=o,r&&(s.pattern=cy)}),t._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:e.format,code:"invalid_type",continue:!1,input:s,inst:t});return}if(!Number.isSafeInteger(s)){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:t,origin:i,inclusive:!0,continue:!e.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),gy=g("$ZodCheckBigIntFormat",(t,e)=>{Te.init(t,e);let[r,i]=Eg[e.format];t._zod.onattach.push(n=>{let o=n._zod.bag;o.format=e.format,o.minimum=r,o.maximum=i}),t._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),yy=g("$ZodCheckMaxSize",(t,e)=>{var r;Te.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!ai(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let n=i.value;n.size<=e.maximum||i.issues.push({origin:Nc(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),vy=g("$ZodCheckMinSize",(t,e)=>{var r;Te.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!ai(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let n=i.value;n.size>=e.minimum||i.issues.push({origin:Nc(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),_y=g("$ZodCheckSizeEquals",(t,e)=>{var r;Te.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!ai(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=i=>{let n=i.value,o=n.size;if(o===e.size)return;let a=o>e.size;i.issues.push({origin:Nc(n),...a?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),by=g("$ZodCheckMaxLength",(t,e)=>{var r;Te.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!ai(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let n=i.value;if(n.length<=e.maximum)return;let a=Lc(n);i.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),wy=g("$ZodCheckMinLength",(t,e)=>{var r;Te.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!ai(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let n=i.value;if(n.length>=e.minimum)return;let a=Lc(n);i.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),xy=g("$ZodCheckLengthEquals",(t,e)=>{var r;Te.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!ai(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=i=>{let n=i.value,o=n.length;if(o===e.length)return;let a=Lc(n),s=o>e.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),$a=g("$ZodCheckStringFormat",(t,e)=>{var r,i;Te.init(t,e),t._zod.onattach.push(n=>{let o=n._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),Sy=g("$ZodCheckRegex",(t,e)=>{$a.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Iy=g("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=fy),$a.init(t,e)}),$y=g("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=py),$a.init(t,e)}),ky=g("$ZodCheckIncludes",(t,e)=>{Te.init(t,e);let r=sr(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=i,t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),Dy=g("$ZodCheckStartsWith",(t,e)=>{Te.init(t,e);let r=new RegExp(`^${sr(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),Ay=g("$ZodCheckEndsWith",(t,e)=>{Te.init(t,e);let r=new RegExp(`.*${sr(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});By=g("$ZodCheckProperty",(t,e)=>{Te.init(t,e),t._zod.check=r=>{let i=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>_k(n,r,e.property));_k(i,r,e.property)}}),Ty=g("$ZodCheckMimeType",(t,e)=>{Te.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(i=>{i._zod.bag.mime=e.mime}),t._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:e.mime,input:i.value.type,inst:t,continue:!e.abort})}}),zy=g("$ZodCheckOverwrite",(t,e)=>{Te.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}})});var Cc,Oy=f(()=>{Cc=class{constructor(e=[]){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 i=e.split(`
|
|
18
|
+
`).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let e=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new e(...r,n.join(`
|
|
19
|
+
`))}}});var Ey,Uy=f(()=>{Ey={major:4,minor:3,patch:6}});function rv(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}function Ek(t){if(!rf.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return rv(r)}function Uk(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}function xk(t,e,r){t.issues.length&&e.issues.push(...Kt(r,t.issues)),e.value[r]=t.value}function pf(t,e,r,i,n){if(t.issues.length){if(n&&!(r in i))return;e.issues.push(...Kt(r,t.issues))}t.value===void 0?r in i&&(e.value[r]=void 0):e.value[r]=t.value}function Nk(t){let e=Object.keys(t.shape);for(let i of e)if(!t.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=zg(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function Lk(t,e,r,i,n,o){let a=[],s=n.keySet,u=n.catchall._zod,c=u.def.type,l=u.optout==="optional";for(let d in e){if(s.has(d))continue;if(c==="never"){a.push(d);continue}let h=u.run({value:e[d],issues:[]},i);h instanceof Promise?t.push(h.then(p=>pf(p,r,d,e,l))):pf(h,r,d,e,l)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:e,inst:o}),t.length?Promise.all(t).then(()=>r):r}function Sk(t,e,r,i){for(let o of t)if(o.issues.length===0)return e.value=o.value,e;let n=t.filter(o=>!ui(o));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(a=>Ot(a,i,Ve())))}),e)}function Ik(t,e,r,i){let n=t.filter(o=>o.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(a=>Ot(a,i,Ve())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}function Ny(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(ci(t)&&ci(e)){let r=Object.keys(e),i=Object.keys(t).filter(o=>r.indexOf(o)!==-1),n={...t,...e};for(let o of i){let a=Ny(t[o],e[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let n=t[i],o=e[i],a=Ny(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function $k(t,e,r){let i=new Map,n;for(let s of e.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else t.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else t.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&t.issues.push({...n,keys:o}),ui(t))return t;let a=Ny(e.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return t.value=a.data,t}function uf(t,e,r){t.issues.length&&e.issues.push(...Kt(r,t.issues)),e.value[r]=t.value}function kk(t,e,r,i,n,o,a){t.issues.length&&(Uc.has(typeof i)?r.issues.push(...Kt(i,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:t.issues.map(s=>Ot(s,a,Ve()))})),e.issues.length&&(Uc.has(typeof i)?r.issues.push(...Kt(i,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:e.issues.map(s=>Ot(s,a,Ve()))})),r.value.set(t.value,e.value)}function Dk(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}function Ak(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}function Bk(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}function Tk(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}function lf(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}function df(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(o=>ff(t,o,e.out,r)):ff(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(o=>ff(t,o,e.in,r)):ff(t,n,e.in,r)}}function ff(t,e,r,i){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},i)}function zk(t){return t.value=Object.freeze(t.value),t}function Ok(t,e,r,i){if(!t){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),e.issues.push(ba(n))}}var te,lo,Ie,Ly,Py,Fy,Ry,jy,My,Cy,Vy,Zy,Hy,Wy,Jy,Gy,Ky,Yy,Xy,qy,Qy,ev,tv,nv,iv,ov,av,sv,hf,cv,Vc,mf,uv,lv,dv,fv,pv,hv,mv,gv,yv,vv,Pk,_v,Zc,bv,wv,xv,gf,Sv,Iv,$v,kv,Dv,Av,Bv,yf,Tv,zv,Ov,Ev,Uv,Nv,Lv,Pv,Fv,Hc,Rv,jv,Mv,Cv,Vv,Zv,Hv=f(()=>{cf();ya();Oy();Rg();of();F();Uy();F();te=g("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Ey;let i=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&i.unshift(t);for(let n of i)for(let o of n._zod.onattach)o(t);if(i.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=(a,s,u)=>{let c=ui(a),l;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;let h=a.issues.length,p=d._zod.check(a);if(p instanceof Promise&&u?.async===!1)throw new kr;if(l||p instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await p,a.issues.length!==h&&(c||(c=ui(a,h)))});else{if(a.issues.length===h)continue;c||(c=ui(a,h))}}return l?l.then(()=>a):a},o=(a,s,u)=>{if(ui(a))return a.aborted=!0,a;let c=n(s,i,u);if(c instanceof Promise){if(u.async===!1)throw new kr;return c.then(l=>t._zod.parse(l,u))}return t._zod.parse(c,u)};t._zod.run=(a,s)=>{if(s.skipChecks)return t._zod.parse(a,s);if(s.direction==="backward"){let c=t._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(l=>o(l,a,s)):o(c,a,s)}let u=t._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new kr;return u.then(c=>n(c,i,s))}return n(u,i,s)}}ue(t,"~standard",()=>({validate:n=>{try{let o=Pg(t,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Fg(t,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),lo=g("$ZodString",(t,e)=>{te.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??ay(t._zod.bag),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),Ie=g("$ZodStringFormat",(t,e)=>{$a.init(t,e),lo.init(t,e)}),Ly=g("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Jg),Ie.init(t,e)}),Py=g("$ZodUUID",(t,e)=>{if(e.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(i===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=uo(i))}else e.pattern??(e.pattern=uo());Ie.init(t,e)}),Fy=g("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Gg),Ie.init(t,e)}),Ry=g("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),jy=g("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Kg()),Ie.init(t,e)}),My=g("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Hg),Ie.init(t,e)}),Cy=g("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=jg),Ie.init(t,e)}),Vy=g("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Mg),Ie.init(t,e)}),Zy=g("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Cg),Ie.init(t,e)}),Hy=g("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Vg),Ie.init(t,e)}),Wy=g("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Zg),Ie.init(t,e)}),Jy=g("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=oy(e)),Ie.init(t,e)}),Gy=g("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=ny),Ie.init(t,e)}),Ky=g("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=iy(e)),Ie.init(t,e)}),Yy=g("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Wg),Ie.init(t,e)}),Xy=g("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Yg),Ie.init(t,e),t._zod.bag.format="ipv4"}),qy=g("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Xg),Ie.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Qy=g("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=qg(e.delimiter)),Ie.init(t,e),t._zod.bag.format="mac"}),ev=g("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Qg),Ie.init(t,e)}),tv=g("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=ey),Ie.init(t,e),t._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});nv=g("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=ty),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{rv(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});iv=g("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=rf),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{Ek(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),ov=g("$ZodE164",(t,e)=>{e.pattern??(e.pattern=ry),Ie.init(t,e)});av=g("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=r=>{Uk(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),sv=g("$ZodCustomStringFormat",(t,e)=>{Ie.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),hf=g("$ZodNumber",(t,e)=>{te.init(t,e),t._zod.pattern=t._zod.bag.pattern??nf,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...o?{received:o}:{}}),r}}),cv=g("$ZodNumberFormat",(t,e)=>{my.init(t,e),hf.init(t,e)}),Vc=g("$ZodBoolean",(t,e)=>{te.init(t,e),t._zod.pattern=uy,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),mf=g("$ZodBigInt",(t,e)=>{te.init(t,e),t._zod.pattern=sy,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:t}),r}}),uv=g("$ZodBigIntFormat",(t,e)=>{gy.init(t,e),mf.init(t,e)}),lv=g("$ZodSymbol",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),dv=g("$ZodUndefined",(t,e)=>{te.init(t,e),t._zod.pattern=dy,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),fv=g("$ZodNull",(t,e)=>{te.init(t,e),t._zod.pattern=ly,t._zod.values=new Set([null]),t._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),pv=g("$ZodAny",(t,e)=>{te.init(t,e),t._zod.parse=r=>r}),hv=g("$ZodUnknown",(t,e)=>{te.init(t,e),t._zod.parse=r=>r}),mv=g("$ZodNever",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),gv=g("$ZodVoid",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),yv=g("$ZodDate",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:t}),r}});vv=g("$ZodArray",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let o=[];for(let a=0;a<n.length;a++){let s=n[a],u=e.element._zod.run({value:s,issues:[]},i);u instanceof Promise?o.push(u.then(c=>xk(c,r,a))):xk(u,r,a)}return o.length?Promise.all(o).then(()=>r):r}});Pk=g("$ZodObject",(t,e)=>{if(te.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let s=e.shape;Object.defineProperty(e,"shape",{get:()=>{let u={...s};return Object.defineProperty(e,"shape",{value:u}),u}})}let i=_a(()=>Nk(e));ue(t._zod,"propValues",()=>{let s=e.shape,u={};for(let c in s){let l=s[c]._zod;if(l.values){u[c]??(u[c]=new Set);for(let d of l.values)u[c].add(d)}}return u});let n=co,o=e.catchall,a;t._zod.parse=(s,u)=>{a??(a=i.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:t}),s;s.value={};let l=[],d=a.shape;for(let h of a.keys){let p=d[h],v=p._zod.optout==="optional",_=p._zod.run({value:c[h],issues:[]},u);_ instanceof Promise?l.push(_.then($=>pf($,s,h,c,v))):pf(_,s,h,c,v)}return o?Lk(l,c,s,u,i.value,t):l.length?Promise.all(l).then(()=>s):s}}),_v=g("$ZodObjectJIT",(t,e)=>{Pk.init(t,e);let r=t._zod.parse,i=_a(()=>Nk(e)),n=h=>{let p=new Cc(["shape","payload","ctx"]),v=i.value,_=U=>{let z=Zd(U);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};p.write("const input = payload.value;");let $=Object.create(null),B=0;for(let U of v.keys)$[U]=`key_${B++}`;p.write("const newResult = {};");for(let U of v.keys){let z=$[U],w=Zd(U),q=h[U]?._zod?.optout==="optional";p.write(`const ${z} = ${_(U)};`),q?p.write(`
|
|
20
|
+
if (${z}.issues.length) {
|
|
21
|
+
if (${w} in input) {
|
|
22
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
23
|
+
...iss,
|
|
24
|
+
path: iss.path ? [${w}, ...iss.path] : [${w}]
|
|
25
|
+
})));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (${z}.value === undefined) {
|
|
30
|
+
if (${w} in input) {
|
|
31
|
+
newResult[${w}] = undefined;
|
|
32
|
+
}
|
|
33
|
+
} else {
|
|
34
|
+
newResult[${w}] = ${z}.value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
`):p.write(`
|
|
38
|
+
if (${z}.issues.length) {
|
|
39
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
40
|
+
...iss,
|
|
41
|
+
path: iss.path ? [${w}, ...iss.path] : [${w}]
|
|
42
|
+
})));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (${z}.value === undefined) {
|
|
46
|
+
if (${w} in input) {
|
|
47
|
+
newResult[${w}] = undefined;
|
|
48
|
+
}
|
|
49
|
+
} else {
|
|
50
|
+
newResult[${w}] = ${z}.value;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");let Z=p.compile();return(U,z)=>Z(h,U,z)},o,a=co,s=!Tc.jitless,c=s&&Ag.value,l=e.catchall,d;t._zod.parse=(h,p)=>{d??(d=i.value);let v=h.value;return a(v)?s&&c&&p?.async===!1&&p.jitless!==!0?(o||(o=n(e.shape)),h=o(h,p),l?Lk([],v,h,p,d,t):h):r(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:v,inst:t}),h)}});Zc=g("$ZodUnion",(t,e)=>{te.init(t,e),ue(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ue(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ue(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),ue(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Ec(o.source)).join("|")})$`)}});let r=e.options.length===1,i=e.options[0]._zod.run;t._zod.parse=(n,o)=>{if(r)return i(n,o);let a=!1,s=[];for(let u of e.options){let c=u._zod.run({value:n.value,issues:[]},o);if(c instanceof Promise)s.push(c),a=!0;else{if(c.issues.length===0)return c;s.push(c)}}return a?Promise.all(s).then(u=>Sk(u,n,t,o)):Sk(s,n,t,o)}});bv=g("$ZodXor",(t,e)=>{Zc.init(t,e),e.inclusive=!1;let r=e.options.length===1,i=e.options[0]._zod.run;t._zod.parse=(n,o)=>{if(r)return i(n,o);let a=!1,s=[];for(let u of e.options){let c=u._zod.run({value:n.value,issues:[]},o);c instanceof Promise?(s.push(c),a=!0):s.push(c)}return a?Promise.all(s).then(u=>Ik(u,n,t,o)):Ik(s,n,t,o)}}),wv=g("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Zc.init(t,e);let r=t._zod.parse;ue(t._zod,"propValues",()=>{let n={};for(let o of e.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(let[s,u]of Object.entries(a)){n[s]||(n[s]=new Set);for(let c of u)n[s].add(c)}}return n});let i=_a(()=>{let n=e.options,o=new Map;for(let a of n){let s=a._zod.propValues?.[e.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(let u of s){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,a)}}return o});t._zod.parse=(n,o)=>{let a=n.value;if(!co(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),n;let s=i.value.get(a?.[e.discriminator]);return s?s._zod.run(n,o):e.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:a,path:[e.discriminator],inst:t}),n)}}),xv=g("$ZodIntersection",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value,o=e.left._zod.run({value:n,issues:[]},i),a=e.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,c])=>$k(r,u,c)):$k(r,o,a)}});gf=g("$ZodTuple",(t,e)=>{te.init(t,e);let r=e.items;t._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:t,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=[...r].reverse().findIndex(l=>l._zod.optin!=="optional"),u=s===-1?0:r.length-s;if(!e.rest){let l=o.length>r.length,d=o.length<u-1;if(l||d)return i.issues.push({...l?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:t,origin:"array"}),i}let c=-1;for(let l of r){if(c++,c>=o.length&&c>=u)continue;let d=l._zod.run({value:o[c],issues:[]},n);d instanceof Promise?a.push(d.then(h=>uf(h,i,c))):uf(d,i,c)}if(e.rest){let l=o.slice(r.length);for(let d of l){c++;let h=e.rest._zod.run({value:d,issues:[]},n);h instanceof Promise?a.push(h.then(p=>uf(p,i,c))):uf(h,i,c)}}return a.length?Promise.all(a).then(()=>i):i}});Sv=g("$ZodRecord",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!ci(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let o=[],a=e.keyType._zod.values;if(a){r.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 l=e.valueType._zod.run({value:n[c],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&r.issues.push(...Kt(c,d.issues)),r.value[c]=d.value})):(l.issues.length&&r.issues.push(...Kt(c,l.issues)),r.value[c]=l.value)}let u;for(let c in n)s.has(c)||(u=u??[],u.push(c));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:u})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let u=e.keyType._zod.run({value:s,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&nf.test(s)&&u.issues.length){let d=e.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){e.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>Ot(d,i,Ve())),input:s,path:[s],inst:t});continue}let l=e.valueType._zod.run({value:n[s],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&r.issues.push(...Kt(s,d.issues)),r.value[u.value]=d.value})):(l.issues.length&&r.issues.push(...Kt(s,l.issues)),r.value[u.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),Iv=g("$ZodMap",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let o=[];r.value=new Map;for(let[a,s]of n){let u=e.keyType._zod.run({value:a,issues:[]},i),c=e.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then(([l,d])=>{kk(l,d,r,a,n,t,i)})):kk(u,c,r,a,n,t,i)}return o.length?Promise.all(o).then(()=>r):r}});$v=g("$ZodSet",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let a of n){let s=e.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(u=>Dk(u,r))):Dk(s,r)}return o.length?Promise.all(o).then(()=>r):r}});kv=g("$ZodEnum",(t,e)=>{te.init(t,e);let r=Oc(e.entries),i=new Set(r);t._zod.values=i,t._zod.pattern=new RegExp(`^(${r.filter(n=>Uc.has(typeof n)).map(n=>typeof n=="string"?sr(n):n.toString()).join("|")})$`),t._zod.parse=(n,o)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:t}),n}}),Dv=g("$ZodLiteral",(t,e)=>{if(te.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(i=>typeof i=="string"?sr(i):i?sr(i.toString()):String(i)).join("|")})$`),t._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),i}}),Av=g("$ZodFile",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),Bv=g("$ZodTransform",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new oi(t.constructor.name);let n=e.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new kr;return r.value=n,r}});yf=g("$ZodOptional",(t,e)=>{te.init(t,e),t._zod.optin="optional",t._zod.optout="optional",ue(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),ue(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Ec(r.source)})?$`):void 0}),t._zod.parse=(r,i)=>{if(e.innerType._zod.optin==="optional"){let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Ak(o,r.value)):Ak(n,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,i)}}),Tv=g("$ZodExactOptional",(t,e)=>{yf.init(t,e),ue(t._zod,"values",()=>e.innerType._zod.values),ue(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,i)=>e.innerType._zod.run(r,i)}),zv=g("$ZodNullable",(t,e)=>{te.init(t,e),ue(t._zod,"optin",()=>e.innerType._zod.optin),ue(t._zod,"optout",()=>e.innerType._zod.optout),ue(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Ec(r.source)}|null)$`):void 0}),ue(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,i)=>r.value===null?r:e.innerType._zod.run(r,i)}),Ov=g("$ZodDefault",(t,e)=>{te.init(t,e),t._zod.optin="optional",ue(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Bk(o,e)):Bk(n,e)}});Ev=g("$ZodPrefault",(t,e)=>{te.init(t,e),t._zod.optin="optional",ue(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,i))}),Uv=g("$ZodNonOptional",(t,e)=>{te.init(t,e),ue(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),t._zod.parse=(r,i)=>{let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Tk(o,t)):Tk(n,t)}});Nv=g("$ZodSuccess",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new oi("ZodSuccess");let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Lv=g("$ZodCatch",(t,e)=>{te.init(t,e),ue(t._zod,"optin",()=>e.innerType._zod.optin),ue(t._zod,"optout",()=>e.innerType._zod.optout),ue(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=e.catchValue({...r,error:{issues:o.issues.map(a=>Ot(a,i,Ve()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(o=>Ot(o,i,Ve()))},input:r.value}),r.issues=[]),r)}}),Pv=g("$ZodNaN",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Fv=g("$ZodPipe",(t,e)=>{te.init(t,e),ue(t._zod,"values",()=>e.in._zod.values),ue(t._zod,"optin",()=>e.in._zod.optin),ue(t._zod,"optout",()=>e.out._zod.optout),ue(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(a=>lf(a,e.in,i)):lf(o,e.in,i)}let n=e.in._zod.run(r,i);return n instanceof Promise?n.then(o=>lf(o,e.out,i)):lf(n,e.out,i)}});Hc=g("$ZodCodec",(t,e)=>{te.init(t,e),ue(t._zod,"values",()=>e.in._zod.values),ue(t._zod,"optin",()=>e.in._zod.optin),ue(t._zod,"optout",()=>e.out._zod.optout),ue(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=e.in._zod.run(r,i);return o instanceof Promise?o.then(a=>df(a,e,i)):df(o,e,i)}else{let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(a=>df(a,e,i)):df(o,e,i)}}});Rv=g("$ZodReadonly",(t,e)=>{te.init(t,e),ue(t._zod,"propValues",()=>e.innerType._zod.propValues),ue(t._zod,"values",()=>e.innerType._zod.values),ue(t._zod,"optin",()=>e.innerType?._zod?.optin),ue(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(zk):zk(n)}});jv=g("$ZodTemplateLiteral",(t,e)=>{te.init(t,e);let r=[];for(let i of e.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a))}else if(i===null||Tg.has(typeof i))r.push(sr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:t,expected:"string",code:"invalid_type"}),i):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),i)}),Mv=g("$ZodFunction",(t,e)=>(te.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=t._def.input?Wd(t._def.input,i):i,o=Reflect.apply(r,this,n);return t._def.output?Wd(t._def.output,o):o}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=t._def.input?await Jd(t._def.input,i):i,o=await Reflect.apply(r,this,n);return t._def.output?await Jd(t._def.output,o):o}},t._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let i=t.constructor;return Array.isArray(r[0])?new i({type:"function",input:new gf({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new i({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let i=t.constructor;return new i({type:"function",input:t._def.input,output:r})},t)),Cv=g("$ZodPromise",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},i))}),Vv=g("$ZodLazy",(t,e)=>{te.init(t,e),ue(t._zod,"innerType",()=>e.getter()),ue(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),ue(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),ue(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),ue(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,i)=>t._zod.innerType._zod.run(r,i)}),Zv=g("$ZodCustom",(t,e)=>{Te.init(t,e),te.init(t,e),t._zod.parse=(r,i)=>r,t._zod.check=r=>{let i=r.value,n=e.fn(i);if(n instanceof Promise)return n.then(o=>Ok(o,r,i,t));Ok(n,r,i,t)}})});function Fk(){return{localeError:JN()}}var JN,Rk=f(()=>{F();JN=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function e(n){return t[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${b(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${r[o.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${y(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}}});function jk(){return{localeError:GN()}}var GN,Mk=f(()=>{F();GN=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${b(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}}});function Ck(t,e,r,i){let n=Math.abs(t),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?e:o>=2&&o<=4?r:i}function Vk(){return{localeError:KN()}}var KN,Zk=f(()=>{F();KN=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function e(n){return t[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${b(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),u=Ck(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),u=Ck(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}}});function Hk(){return{localeError:YN()}}var YN,Wk=f(()=>{F();YN=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${b(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}}});function Jk(){return{localeError:XN()}}var XN,Gk=f(()=>{F();XN=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${b(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${y(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",a=e(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=e(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}}});function Kk(){return{localeError:qN()}}var qN,Yk=f(()=>{F();qN=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function e(n){return t[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${b(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${y(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}}});function Xk(){return{localeError:QN()}}var QN,qk=f(()=>{F();QN=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}let r={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",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"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${b(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}}});function Qk(){return{localeError:e6()}}var e6,e1=f(()=>{F();e6=()=>{let t={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 e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${b(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}}});function vf(){return{localeError:t6()}}var t6,Wv=f(()=>{F();t6=()=>{let t={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 e(n){return t[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${b(n.values[0])}`:`Invalid option: expected one of ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}}});function t1(){return{localeError:r6()}}var r6,r1=f(()=>{F();r6=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${b(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}}});function n1(){return{localeError:n6()}}var n6,i1=f(()=>{F();n6=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${b(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}}});function o1(){return{localeError:i6()}}var i6,a1=f(()=>{F();i6=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${b(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${y(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${y(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}}});function s1(){return{localeError:o6()}}var o6,c1=f(()=>{F();o6=()=>{let t={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function e(n){return t[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${b(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${y(n.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\xF6te"}}}});function u1(){return{localeError:a6()}}var a6,l1=f(()=>{F();a6=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${b(n.values[0])} attendu`:`Option invalide : une valeur parmi ${y(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${y(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}}});function d1(){return{localeError:s6()}}var s6,f1=f(()=>{F();s6=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${b(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",a=e(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",a=e(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${y(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}}});function p1(){return{localeError:c6()}}var c6,h1=f(()=>{F();c6=()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},e={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=c=>c?t[c]:void 0,i=c=>{let l=r(c);return l?l.label:c??t.unknown.label},n=c=>`\u05D4${i(c)}`,o=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?e[c]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",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:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let l=c.expected,d=u[l??""]??i(l),h=x(c.input),p=u[h]??t[h]?.label??h;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${b(c.values[0])}`;let l=c.values.map(p=>b(p));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let d=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let l=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let v=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(c.origin==="array"||c.origin==="set"){let v=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=c.inclusive?`${c.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let h=c.inclusive?"<=":"<",p=o(c.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${h}${c.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${h}${c.maximum.toString()}`}case"too_small":{let l=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let v=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(c.origin==="array"||c.origin==="set"){let v=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let $=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${$}`}let _=c.inclusive?`${c.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let h=c.inclusive?">=":">",p=o(c.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${h}${c.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${h}${c.minimum.toString()}`}case"invalid_format":{let l=c;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let d=s[l.format],h=d?.label??l.format,v=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${v}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${y(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function m1(){return{localeError:u6()}}var u6,g1=f(()=>{F();u6=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}let r={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${b(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}}});function y1(t,e,r){return Math.abs(t)===1?e:r}function ka(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}function v1(){return{localeError:l6()}}var l6,_1=f(()=>{F();l6=()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function e(n){return t[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${b(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),u=y1(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ka(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ka(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),u=y1(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ka(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ka(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${y(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${ka(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${ka(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}}});function b1(){return{localeError:d6()}}var d6,w1=f(()=>{F();d6=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${b(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}}});function x1(){return{localeError:f6()}}var f6,S1=f(()=>{F();f6=()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function e(n){return t[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${b(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${y(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}}});function I1(){return{localeError:p6()}}var p6,$1=f(()=>{F();p6=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${b(n.values[0])}`:`Opzione non valida: atteso uno tra ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${y(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}}});function k1(){return{localeError:h6()}}var h6,D1=f(()=>{F();h6=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function e(n){return t[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${b(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${y(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=e(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=e(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${y(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}}});function A1(){return{localeError:m6()}}var m6,B1=f(()=>{F();m6=()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function e(n){return t[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${b(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${y(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}}});function _f(){return{localeError:g6()}}var g6,Jv=f(()=>{F();g6=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function e(n){return t[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${b(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${y(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}}});function T1(){return _f()}var z1=f(()=>{Jv()});function O1(){return{localeError:y6()}}var y6,E1=f(()=>{F();y6=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function e(n){return t[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${b(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${y(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=e(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${u} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${a}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=e(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${u} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${y(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}}});function U1(t){let e=Math.abs(t),r=e%10,i=e%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}function N1(){return{localeError:v6()}}var Wc,v6,L1=f(()=>{F();Wc=t=>t.charAt(0).toUpperCase()+t.slice(1);v6=()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function e(n,o,a,s){let u=t[n]??null;return u===null?u:{unit:u.unit[o],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${b(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${y(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,a=e(n.origin,U1(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Wc(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Wc(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=e(n.origin,U1(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Wc(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Wc(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${y(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${Wc(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}}});function P1(){return{localeError:_6()}}var _6,F1=f(()=>{F();_6=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function e(n){return t[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${b(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}}});function R1(){return{localeError:b6()}}var b6,j1=f(()=>{F();b6=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${b(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${y(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}}});function M1(){return{localeError:w6()}}var w6,C1=f(()=>{F();w6=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${b(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}}});function V1(){return{localeError:x6()}}var x6,Z1=f(()=>{F();x6=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function e(n){return t[n]??null}let r={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\xE5de",ipv6:"IPv6-omr\xE5de",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"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${b(n.values[0])}`:`Ugyldig valg: forventet en av ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}}});function H1(){return{localeError:S6()}}var S6,W1=f(()=>{F();S6=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}let r={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${b(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}}});function J1(){return{localeError:I6()}}var I6,G1=f(()=>{F();I6=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${b(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${y(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}}});function K1(){return{localeError:$6()}}var $6,Y1=f(()=>{F();$6=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function e(n){return t[n]??null}let r={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${b(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}}});function X1(){return{localeError:k6()}}var k6,q1=f(()=>{F();k6=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${b(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}}});function Q1(t,e,r,i){let n=Math.abs(t),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?e:o>=2&&o<=4?r:i}function eD(){return{localeError:D6()}}var D6,tD=f(()=>{F();D6=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${b(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),u=Q1(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),u=Q1(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}}});function rD(){return{localeError:A6()}}var A6,nD=f(()=>{F();A6=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}let r={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${b(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${y(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}}});function iD(){return{localeError:B6()}}var B6,oD=f(()=>{F();B6=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function e(n){return t[n]??null}let r={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${b(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}}});function aD(){return{localeError:T6()}}var T6,sD=f(()=>{F();T6=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function e(n){return t[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${b(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${y(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}}});function cD(){return{localeError:z6()}}var z6,uD=f(()=>{F();z6=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function e(n){return t[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${b(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=e(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=e(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${y(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}}});function lD(){return{localeError:O6()}}var O6,dD=f(()=>{F();O6=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function e(n){return t[n]??null}let r={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${b(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}}});function bf(){return{localeError:E6()}}var E6,Gv=f(()=>{F();E6=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${b(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}}});function fD(){return bf()}var pD=f(()=>{Gv()});function hD(){return{localeError:U6()}}var U6,mD=f(()=>{F();U6=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function e(n){return t[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${b(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${y(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${y(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}}});function gD(){return{localeError:N6()}}var N6,yD=f(()=>{F();N6=()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${b(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}}});function vD(){return{localeError:L6()}}var L6,_D=f(()=>{F();L6=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function e(n){return t[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${b(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${y(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}}});function bD(){return{localeError:P6()}}var P6,wD=f(()=>{F();P6=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function e(n){return t[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${b(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}}});function xD(){return{localeError:F6()}}var F6,SD=f(()=>{F();F6=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function e(n){return t[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${b(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${y(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}}});function ID(){return{localeError:R6()}}var R6,$D=f(()=>{F();R6=()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function e(n){return t[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=x(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${b(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${y(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}}});var Jc={};Ue(Jc,{ar:()=>Fk,az:()=>jk,be:()=>Vk,bg:()=>Hk,ca:()=>Jk,cs:()=>Kk,da:()=>Xk,de:()=>Qk,en:()=>vf,eo:()=>t1,es:()=>n1,fa:()=>o1,fi:()=>s1,fr:()=>u1,frCA:()=>d1,he:()=>p1,hu:()=>m1,hy:()=>v1,id:()=>b1,is:()=>x1,it:()=>I1,ja:()=>k1,ka:()=>A1,kh:()=>T1,km:()=>_f,ko:()=>O1,lt:()=>N1,mk:()=>P1,ms:()=>R1,nl:()=>M1,no:()=>V1,ota:()=>H1,pl:()=>K1,ps:()=>J1,pt:()=>X1,ru:()=>eD,sl:()=>rD,sv:()=>iD,ta:()=>aD,th:()=>cD,tr:()=>lD,ua:()=>fD,uk:()=>bf,ur:()=>hD,uz:()=>gD,vi:()=>vD,yo:()=>ID,zhCN:()=>bD,zhTW:()=>xD});var Kv=f(()=>{Rk();Mk();Zk();Wk();Gk();Yk();qk();e1();Wv();r1();i1();a1();c1();l1();f1();h1();g1();_1();w1();S1();$1();D1();B1();z1();Jv();E1();L1();F1();j1();C1();Z1();W1();G1();Y1();q1();tD();nD();oD();sD();uD();dD();pD();Gv();mD();yD();_D();wD();SD();$D()});function xf(){return new wf}var kD,Yv,Xv,wf,at,Gc=f(()=>{Yv=Symbol("ZodOutput"),Xv=Symbol("ZodInput"),wf=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let i=r[0];return this._map.set(e,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};(kD=globalThis).__zod_globalRegistry??(kD.__zod_globalRegistry=xf());at=globalThis.__zod_globalRegistry});function qv(t,e){return new t({type:"string",...I(e)})}function Qv(t,e){return new t({type:"string",coerce:!0,...I(e)})}function Sf(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...I(e)})}function Kc(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...I(e)})}function If(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...I(e)})}function $f(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I(e)})}function kf(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I(e)})}function Df(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I(e)})}function Yc(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...I(e)})}function Af(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...I(e)})}function Bf(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...I(e)})}function Tf(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...I(e)})}function zf(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...I(e)})}function Of(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...I(e)})}function Ef(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...I(e)})}function Uf(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...I(e)})}function Nf(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...I(e)})}function Lf(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...I(e)})}function e_(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...I(e)})}function Pf(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I(e)})}function Ff(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I(e)})}function Rf(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...I(e)})}function jf(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...I(e)})}function Mf(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...I(e)})}function Cf(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...I(e)})}function r_(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I(e)})}function n_(t,e){return new t({type:"string",format:"date",check:"string_format",...I(e)})}function i_(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...I(e)})}function o_(t,e){return new t({type:"string",format:"duration",check:"string_format",...I(e)})}function a_(t,e){return new t({type:"number",checks:[],...I(e)})}function s_(t,e){return new t({type:"number",coerce:!0,checks:[],...I(e)})}function c_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...I(e)})}function u_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...I(e)})}function l_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...I(e)})}function d_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...I(e)})}function f_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...I(e)})}function p_(t,e){return new t({type:"boolean",...I(e)})}function h_(t,e){return new t({type:"boolean",coerce:!0,...I(e)})}function m_(t,e){return new t({type:"bigint",...I(e)})}function g_(t,e){return new t({type:"bigint",coerce:!0,...I(e)})}function y_(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...I(e)})}function v_(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...I(e)})}function __(t,e){return new t({type:"symbol",...I(e)})}function b_(t,e){return new t({type:"undefined",...I(e)})}function w_(t,e){return new t({type:"null",...I(e)})}function x_(t){return new t({type:"any"})}function S_(t){return new t({type:"unknown"})}function I_(t,e){return new t({type:"never",...I(e)})}function $_(t,e){return new t({type:"void",...I(e)})}function k_(t,e){return new t({type:"date",...I(e)})}function D_(t,e){return new t({type:"date",coerce:!0,...I(e)})}function A_(t,e){return new t({type:"nan",...I(e)})}function Qr(t,e){return new af({check:"less_than",...I(e),value:t,inclusive:!1})}function Yt(t,e){return new af({check:"less_than",...I(e),value:t,inclusive:!0})}function en(t,e){return new sf({check:"greater_than",...I(e),value:t,inclusive:!1})}function bt(t,e){return new sf({check:"greater_than",...I(e),value:t,inclusive:!0})}function Vf(t){return en(0,t)}function Zf(t){return Qr(0,t)}function Hf(t){return Yt(0,t)}function Wf(t){return bt(0,t)}function li(t,e){return new hy({check:"multiple_of",...I(e),value:t})}function di(t,e){return new yy({check:"max_size",...I(e),maximum:t})}function tn(t,e){return new vy({check:"min_size",...I(e),minimum:t})}function fo(t,e){return new _y({check:"size_equals",...I(e),size:t})}function po(t,e){return new by({check:"max_length",...I(e),maximum:t})}function En(t,e){return new wy({check:"min_length",...I(e),minimum:t})}function ho(t,e){return new xy({check:"length_equals",...I(e),length:t})}function Da(t,e){return new Sy({check:"string_format",format:"regex",...I(e),pattern:t})}function Aa(t){return new Iy({check:"string_format",format:"lowercase",...I(t)})}function Ba(t){return new $y({check:"string_format",format:"uppercase",...I(t)})}function Ta(t,e){return new ky({check:"string_format",format:"includes",...I(e),includes:t})}function za(t,e){return new Dy({check:"string_format",format:"starts_with",...I(e),prefix:t})}function Oa(t,e){return new Ay({check:"string_format",format:"ends_with",...I(e),suffix:t})}function Jf(t,e,r){return new By({check:"property",property:t,schema:e,...I(r)})}function Ea(t,e){return new Ty({check:"mime_type",mime:t,...I(e)})}function Dr(t){return new zy({check:"overwrite",tx:t})}function Ua(t){return Dr(e=>e.normalize(t))}function Na(){return Dr(t=>t.trim())}function La(){return Dr(t=>t.toLowerCase())}function Pa(){return Dr(t=>t.toUpperCase())}function Fa(){return Dr(t=>Dg(t))}function B_(t,e,r){return new t({type:"array",element:e,...I(r)})}function M6(t,e,r){return new t({type:"union",options:e,...I(r)})}function C6(t,e,r){return new t({type:"union",options:e,inclusive:!1,...I(r)})}function V6(t,e,r,i){return new t({type:"union",options:r,discriminator:e,...I(i)})}function Z6(t,e,r){return new t({type:"intersection",left:e,right:r})}function H6(t,e,r,i){let n=r instanceof te,o=n?i:r,a=n?r:null;return new t({type:"tuple",items:e,rest:a,...I(o)})}function W6(t,e,r,i){return new t({type:"record",keyType:e,valueType:r,...I(i)})}function J6(t,e,r,i){return new t({type:"map",keyType:e,valueType:r,...I(i)})}function G6(t,e,r){return new t({type:"set",valueType:e,...I(r)})}function K6(t,e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:i,...I(r)})}function Y6(t,e,r){return new t({type:"enum",entries:e,...I(r)})}function X6(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...I(r)})}function T_(t,e){return new t({type:"file",...I(e)})}function q6(t,e){return new t({type:"transform",transform:e})}function Q6(t,e){return new t({type:"optional",innerType:e})}function e4(t,e){return new t({type:"nullable",innerType:e})}function t4(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Bg(r)}})}function r4(t,e,r){return new t({type:"nonoptional",innerType:e,...I(r)})}function n4(t,e){return new t({type:"success",innerType:e})}function i4(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}function o4(t,e,r){return new t({type:"pipe",in:e,out:r})}function a4(t,e){return new t({type:"readonly",innerType:e})}function s4(t,e,r){return new t({type:"template_literal",parts:e,...I(r)})}function c4(t,e){return new t({type:"lazy",getter:e})}function u4(t,e){return new t({type:"promise",innerType:e})}function z_(t,e,r){let i=I(r);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function O_(t,e,r){return new t({type:"custom",check:"custom",fn:e,...I(r)})}function E_(t){let e=DD(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(ba(i,r.value,e._zod.def));else{let n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!e._zod.def.abort),r.issues.push(ba(n))}},t(r.value,r)));return e}function DD(t,e){let r=new Te({check:"custom",...I(e)});return r._zod.check=t,r}function U_(t){let e=new Te({check:"describe"});return e._zod.onattach=[r=>{let i=at.get(r)??{};at.add(r,{...i,description:t})}],e._zod.check=()=>{},e}function N_(t){let e=new Te({check:"meta"});return e._zod.onattach=[r=>{let i=at.get(r)??{};at.add(r,{...i,...t})}],e._zod.check=()=>{},e}function L_(t,e){let r=I(e),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),a=new Set(n),s=t.Codec??Hc,u=t.Boolean??Vc,c=t.String??lo,l=new c({type:"string",error:r.error}),d=new u({type:"boolean",error:r.error}),h=new s({type:"pipe",in:l,out:d,transform:((p,v)=>{let _=p;return r.case!=="sensitive"&&(_=_.toLowerCase()),o.has(_)?!0:a.has(_)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:h,continue:!1}),{})}),reverseTransform:((p,v)=>p===!0?i[0]||"true":n[0]||"false"),error:r.error});return h}function Ra(t,e,r,i={}){let n=I(i),o={...I(i),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new t(o)}var t_,AD=f(()=>{cf();Gc();Hv();F();t_={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function fi(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??at,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function we(t,e,r={path:[],schemaPath:[]}){var i;let n=t._zod.def,o=e.seen.get(t);if(o)return o.count++,r.schemaPath.includes(t)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,a);let s=t._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,a.schema,l);else{let h=a.schema,p=e.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(t,e,h,l)}let d=t._zod.parent;d&&(a.ref||(a.ref=d),we(d,e,l),e.seen.get(d).isParent=!0)}let u=e.metadataRegistry.get(t);return u&&Object.assign(a.schema,u),e.io==="input"&&wt(t)&&(delete a.schema.examples,delete a.schema.default),e.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,e.seen.get(t).schema}function pi(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of t.seen.entries()){let s=t.metadataRegistry.get(a[0])?.id;if(s){let u=i.get(s);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let n=a=>{let s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let d=t.external.registry.get(a[0])?.id,h=t.external.uri??(v=>v);if(d)return{ref:h(d)};let p=a[1].defId??a[1].schema.id??`schema${t.counter++}`;return a[1].defId=p,{defId:p,ref:`${h("__shared")}#/${s}/${p}`}}if(a[1]===r)return{ref:"#"};let c=`#/${s}/`,l=a[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:c+l}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:c}=n(a);s.def={...s.schema},c&&(s.defId=c);let l=s.schema;for(let d in l)delete l[d];l.$ref=u};if(t.cycles==="throw")for(let a of t.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
54
|
+
|
|
55
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let s=a[1];if(e===a[0]){o(a);continue}if(t.external){let c=t.external.registry.get(a[0])?.id;if(e!==a[0]&&c){o(a);continue}}if(t.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&t.reused==="ref"){o(a);continue}}}function hi(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let s=t.seen.get(a);if(s.ref===null)return;let u=s.def??s.schema,c={...u},l=s.ref;if(s.ref=null,l){i(l);let h=t.seen.get(l),p=h.schema;if(p.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(p)):Object.assign(u,p),Object.assign(u,c),a._zod.parent===l)for(let _ in u)_==="$ref"||_==="allOf"||_ in c||delete u[_];if(p.$ref&&h.def)for(let _ in u)_==="$ref"||_==="allOf"||_ in h.def&&JSON.stringify(u[_])===JSON.stringify(h.def[_])&&delete u[_]}let d=a._zod.parent;if(d&&d!==l){i(d);let h=t.seen.get(d);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let p in u)p==="$ref"||p==="allOf"||p in h.def&&JSON.stringify(u[p])===JSON.stringify(h.def[p])&&delete u[p]}t.override({zodSchema:a,jsonSchema:u,path:s.path??[]})};for(let a of[...t.seen.entries()].reverse())i(a[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let a=t.external.registry.get(e)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(a)}Object.assign(n,r.def??r.schema);let o=t.external?.defs??{};for(let a of t.seen.entries()){let s=a[1];s.def&&s.defId&&(o[s.defId]=s.def)}t.external||Object.keys(o).length>0&&(t.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...e["~standard"],jsonSchema:{input:ja(e,"input",t.processors),output:ja(e,"output",t.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function wt(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return wt(i.element,r);if(i.type==="set")return wt(i.valueType,r);if(i.type==="lazy")return wt(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return wt(i.innerType,r);if(i.type==="intersection")return wt(i.left,r)||wt(i.right,r);if(i.type==="record"||i.type==="map")return wt(i.keyType,r)||wt(i.valueType,r);if(i.type==="pipe")return wt(i.in,r)||wt(i.out,r);if(i.type==="object"){for(let n in i.shape)if(wt(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(wt(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(wt(n,r))return!0;return!!(i.rest&&wt(i.rest,r))}return!1}var P_,ja,Xc=f(()=>{Gc();P_=(t,e={})=>r=>{let i=fi({...r,processors:e});return we(t,i),pi(i,t),hi(i,t)},ja=(t,e,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=fi({...n??{},target:o,io:e,processors:r});return we(t,a),pi(a,t),hi(a,t)}});function Xf(t,e){if("_idmap"in t){let i=t,n=fi({...e,processors:Gf}),o={};for(let u of i._idmap.entries()){let[c,l]=u;we(l,n)}let a={},s={registry:i,uri:e?.uri,defs:o};n.external=s;for(let u of i._idmap.entries()){let[c,l]=u;pi(n,l),a[c]=hi(n,l)}if(Object.keys(o).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}let r=fi({...e,processors:Gf});return we(t,r),pi(r,t),hi(r,t)}var l4,F_,R_,j_,M_,C_,V_,Z_,H_,W_,J_,G_,K_,Y_,X_,q_,Q_,eb,tb,rb,nb,ib,ob,ab,sb,cb,Kf,ub,lb,db,fb,pb,hb,mb,gb,yb,vb,_b,Yf,bb,Gf,qc=f(()=>{Xc();F();l4={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},F_=(t,e,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:u,contentEncoding:c}=t._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=l4[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),u&&u.size>0){let l=[...u];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},R_=(t,e,r,i)=>{let n=r,{minimum:o,maximum:a,format:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:l}=t._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof l=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l),typeof o=="number"&&(n.minimum=o,typeof l=="number"&&e.target!=="draft-04"&&(l>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c),typeof a=="number"&&(n.maximum=a,typeof c=="number"&&e.target!=="draft-04"&&(c<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof u=="number"&&(n.multipleOf=u)},j_=(t,e,r,i)=>{r.type="boolean"},M_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},C_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},V_=(t,e,r,i)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Z_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},H_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},W_=(t,e,r,i)=>{r.not={}},J_=(t,e,r,i)=>{},G_=(t,e,r,i)=>{},K_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Y_=(t,e,r,i)=>{let n=t._zod.def,o=Oc(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},X_=(t,e,r,i)=>{let n=t._zod.def,o=[];for(let a of n.values)if(a===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];r.type=a===null?"null":typeof a,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},q_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Q_=(t,e,r,i)=>{let n=r,o=t._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},eb=(t,e,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=t._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),u?u.length===1?(o.contentMediaType=u[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(n,o)},tb=(t,e,r,i)=>{r.type="boolean"},rb=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},nb=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ib=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ob=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},ab=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},sb=(t,e,r,i)=>{let n=r,o=t._zod.def,{minimum:a,maximum:s}=t._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=we(o.element,e,{...i,path:[...i.path,"items"]})},cb=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object",n.properties={};let a=o.shape;for(let c in a)n.properties[c]=we(a[c],e,{...i,path:[...i.path,"properties",c]});let s=new Set(Object.keys(a)),u=new Set([...s].filter(c=>{let l=o.shape[c]._zod;return e.io==="input"?l.optin===void 0:l.optout===void 0}));u.size>0&&(n.required=Array.from(u)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=we(o.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},Kf=(t,e,r,i)=>{let n=t._zod.def,o=n.inclusive===!1,a=n.options.map((s,u)=>we(s,e,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?r.oneOf=a:r.anyOf=a},ub=(t,e,r,i)=>{let n=t._zod.def,o=we(n.left,e,{...i,path:[...i.path,"allOf",0]}),a=we(n.right,e,{...i,path:[...i.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=u},lb=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="array";let a=e.target==="draft-2020-12"?"prefixItems":"items",s=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((h,p)=>we(h,e,{...i,path:[...i.path,a,p]})),c=o.rest?we(o.rest,e,{...i,path:[...i.path,s,...e.target==="openapi-3.0"?[o.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=u,c&&(n.items=c)):e.target==="openapi-3.0"?(n.items={anyOf:u},c&&n.items.anyOf.push(c),n.minItems=u.length,c||(n.maxItems=u.length)):(n.items=u,c&&(n.additionalItems=c));let{minimum:l,maximum:d}=t._zod.bag;typeof l=="number"&&(n.minItems=l),typeof d=="number"&&(n.maxItems=d)},db=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object";let a=o.keyType,u=a._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let l=we(o.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of u)n.patternProperties[d.source]=l}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=we(o.keyType,e,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=we(o.valueType,e,{...i,path:[...i.path,"additionalProperties"]});let c=a._zod.values;if(c){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l)}},fb=(t,e,r,i)=>{let n=t._zod.def,o=we(n.innerType,e,i),a=e.seen.get(t);e.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},pb=(t,e,r,i)=>{let n=t._zod.def;we(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},hb=(t,e,r,i)=>{let n=t._zod.def;we(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},mb=(t,e,r,i)=>{let n=t._zod.def;we(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},gb=(t,e,r,i)=>{let n=t._zod.def;we(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},yb=(t,e,r,i)=>{let n=t._zod.def,o=e.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;we(o,e,i);let a=e.seen.get(t);a.ref=o},vb=(t,e,r,i)=>{let n=t._zod.def;we(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.readOnly=!0},_b=(t,e,r,i)=>{let n=t._zod.def;we(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},Yf=(t,e,r,i)=>{let n=t._zod.def;we(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},bb=(t,e,r,i)=>{let n=t._zod.innerType;we(n,e,i);let o=e.seen.get(t);o.ref=n},Gf={string:F_,number:R_,boolean:j_,bigint:M_,symbol:C_,null:V_,undefined:Z_,void:H_,never:W_,any:J_,unknown:G_,date:K_,enum:Y_,literal:X_,nan:q_,template_literal:Q_,file:eb,success:tb,custom:rb,function:nb,transform:ib,map:ob,set:ab,array:sb,object:cb,union:Kf,intersection:ub,tuple:lb,record:db,nullable:fb,nonoptional:pb,default:hb,prefault:mb,catch:gb,pipe:yb,readonly:vb,promise:_b,optional:Yf,lazy:bb}});var qf,BD=f(()=>{qc();Xc();qf=class{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";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=fi({processors:Gf,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 we(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),pi(this.ctx,e);let i=hi(this.ctx,e),{"~standard":n,...o}=i;return o}}});var TD={};var zD=f(()=>{});var Un={};Ue(Un,{$ZodAny:()=>pv,$ZodArray:()=>vv,$ZodAsyncError:()=>kr,$ZodBase64:()=>nv,$ZodBase64URL:()=>iv,$ZodBigInt:()=>mf,$ZodBigIntFormat:()=>uv,$ZodBoolean:()=>Vc,$ZodCIDRv4:()=>ev,$ZodCIDRv6:()=>tv,$ZodCUID:()=>Cy,$ZodCUID2:()=>Vy,$ZodCatch:()=>Lv,$ZodCheck:()=>Te,$ZodCheckBigIntFormat:()=>gy,$ZodCheckEndsWith:()=>Ay,$ZodCheckGreaterThan:()=>sf,$ZodCheckIncludes:()=>ky,$ZodCheckLengthEquals:()=>xy,$ZodCheckLessThan:()=>af,$ZodCheckLowerCase:()=>Iy,$ZodCheckMaxLength:()=>by,$ZodCheckMaxSize:()=>yy,$ZodCheckMimeType:()=>Ty,$ZodCheckMinLength:()=>wy,$ZodCheckMinSize:()=>vy,$ZodCheckMultipleOf:()=>hy,$ZodCheckNumberFormat:()=>my,$ZodCheckOverwrite:()=>zy,$ZodCheckProperty:()=>By,$ZodCheckRegex:()=>Sy,$ZodCheckSizeEquals:()=>_y,$ZodCheckStartsWith:()=>Dy,$ZodCheckStringFormat:()=>$a,$ZodCheckUpperCase:()=>$y,$ZodCodec:()=>Hc,$ZodCustom:()=>Zv,$ZodCustomStringFormat:()=>sv,$ZodDate:()=>yv,$ZodDefault:()=>Ov,$ZodDiscriminatedUnion:()=>wv,$ZodE164:()=>ov,$ZodEmail:()=>Fy,$ZodEmoji:()=>jy,$ZodEncodeError:()=>oi,$ZodEnum:()=>kv,$ZodError:()=>Pc,$ZodExactOptional:()=>Tv,$ZodFile:()=>Av,$ZodFunction:()=>Mv,$ZodGUID:()=>Ly,$ZodIPv4:()=>Xy,$ZodIPv6:()=>qy,$ZodISODate:()=>Gy,$ZodISODateTime:()=>Jy,$ZodISODuration:()=>Yy,$ZodISOTime:()=>Ky,$ZodIntersection:()=>xv,$ZodJWT:()=>av,$ZodKSUID:()=>Wy,$ZodLazy:()=>Vv,$ZodLiteral:()=>Dv,$ZodMAC:()=>Qy,$ZodMap:()=>Iv,$ZodNaN:()=>Pv,$ZodNanoID:()=>My,$ZodNever:()=>mv,$ZodNonOptional:()=>Uv,$ZodNull:()=>fv,$ZodNullable:()=>zv,$ZodNumber:()=>hf,$ZodNumberFormat:()=>cv,$ZodObject:()=>Pk,$ZodObjectJIT:()=>_v,$ZodOptional:()=>yf,$ZodPipe:()=>Fv,$ZodPrefault:()=>Ev,$ZodPromise:()=>Cv,$ZodReadonly:()=>Rv,$ZodRealError:()=>Et,$ZodRecord:()=>Sv,$ZodRegistry:()=>wf,$ZodSet:()=>$v,$ZodString:()=>lo,$ZodStringFormat:()=>Ie,$ZodSuccess:()=>Nv,$ZodSymbol:()=>lv,$ZodTemplateLiteral:()=>jv,$ZodTransform:()=>Bv,$ZodTuple:()=>gf,$ZodType:()=>te,$ZodULID:()=>Zy,$ZodURL:()=>Ry,$ZodUUID:()=>Py,$ZodUndefined:()=>dv,$ZodUnion:()=>Zc,$ZodUnknown:()=>hv,$ZodVoid:()=>gv,$ZodXID:()=>Hy,$ZodXor:()=>bv,$brand:()=>Vd,$constructor:()=>g,$input:()=>Xv,$output:()=>Yv,Doc:()=>Cc,JSONSchema:()=>TD,JSONSchemaGenerator:()=>qf,NEVER:()=>Sg,TimePrecision:()=>t_,_any:()=>x_,_array:()=>B_,_base64:()=>Rf,_base64url:()=>jf,_bigint:()=>m_,_boolean:()=>p_,_catch:()=>i4,_check:()=>DD,_cidrv4:()=>Pf,_cidrv6:()=>Ff,_coercedBigint:()=>g_,_coercedBoolean:()=>h_,_coercedDate:()=>D_,_coercedNumber:()=>s_,_coercedString:()=>Qv,_cuid:()=>Tf,_cuid2:()=>zf,_custom:()=>z_,_date:()=>k_,_decode:()=>Kd,_decodeAsync:()=>Xd,_default:()=>t4,_discriminatedUnion:()=>V6,_e164:()=>Mf,_email:()=>Sf,_emoji:()=>Af,_encode:()=>Gd,_encodeAsync:()=>Yd,_endsWith:()=>Oa,_enum:()=>K6,_file:()=>T_,_float32:()=>u_,_float64:()=>l_,_gt:()=>en,_gte:()=>bt,_guid:()=>Kc,_includes:()=>Ta,_int:()=>c_,_int32:()=>d_,_int64:()=>y_,_intersection:()=>Z6,_ipv4:()=>Nf,_ipv6:()=>Lf,_isoDate:()=>n_,_isoDateTime:()=>r_,_isoDuration:()=>o_,_isoTime:()=>i_,_jwt:()=>Cf,_ksuid:()=>Uf,_lazy:()=>c4,_length:()=>ho,_literal:()=>X6,_lowercase:()=>Aa,_lt:()=>Qr,_lte:()=>Yt,_mac:()=>e_,_map:()=>J6,_max:()=>Yt,_maxLength:()=>po,_maxSize:()=>di,_mime:()=>Ea,_min:()=>bt,_minLength:()=>En,_minSize:()=>tn,_multipleOf:()=>li,_nan:()=>A_,_nanoid:()=>Bf,_nativeEnum:()=>Y6,_negative:()=>Zf,_never:()=>I_,_nonnegative:()=>Wf,_nonoptional:()=>r4,_nonpositive:()=>Hf,_normalize:()=>Ua,_null:()=>w_,_nullable:()=>e4,_number:()=>a_,_optional:()=>Q6,_overwrite:()=>Dr,_parse:()=>wa,_parseAsync:()=>xa,_pipe:()=>o4,_positive:()=>Vf,_promise:()=>u4,_property:()=>Jf,_readonly:()=>a4,_record:()=>W6,_refine:()=>O_,_regex:()=>Da,_safeDecode:()=>Qd,_safeDecodeAsync:()=>tf,_safeEncode:()=>qd,_safeEncodeAsync:()=>ef,_safeParse:()=>Sa,_safeParseAsync:()=>Ia,_set:()=>G6,_size:()=>fo,_slugify:()=>Fa,_startsWith:()=>za,_string:()=>qv,_stringFormat:()=>Ra,_stringbool:()=>L_,_success:()=>n4,_superRefine:()=>E_,_symbol:()=>__,_templateLiteral:()=>s4,_toLowerCase:()=>La,_toUpperCase:()=>Pa,_transform:()=>q6,_trim:()=>Na,_tuple:()=>H6,_uint32:()=>f_,_uint64:()=>v_,_ulid:()=>Of,_undefined:()=>b_,_union:()=>M6,_unknown:()=>S_,_uppercase:()=>Ba,_url:()=>Yc,_uuid:()=>If,_uuidv4:()=>$f,_uuidv6:()=>kf,_uuidv7:()=>Df,_void:()=>$_,_xid:()=>Ef,_xor:()=>C6,clone:()=>_t,config:()=>Ve,createStandardJSONSchemaMethod:()=>ja,createToJSONSchemaMethod:()=>P_,decode:()=>fN,decodeAsync:()=>hN,describe:()=>U_,encode:()=>dN,encodeAsync:()=>pN,extractDefs:()=>pi,finalize:()=>hi,flattenError:()=>Fc,formatError:()=>Rc,globalConfig:()=>Tc,globalRegistry:()=>at,initializeContext:()=>fi,isValidBase64:()=>rv,isValidBase64URL:()=>Ek,isValidJWT:()=>Uk,locales:()=>Jc,meta:()=>N_,parse:()=>Wd,parseAsync:()=>Jd,prettifyError:()=>Ng,process:()=>we,regexes:()=>cr,registry:()=>xf,safeDecode:()=>gN,safeDecodeAsync:()=>vN,safeEncode:()=>mN,safeEncodeAsync:()=>yN,safeParse:()=>Pg,safeParseAsync:()=>Fg,toDotPath:()=>mk,toJSONSchema:()=>Xf,treeifyError:()=>Ug,util:()=>S,version:()=>Ey});var Ut=f(()=>{ya();Rg();Lg();Hv();cf();Uy();F();of();Kv();Gc();Oy();AD();Xc();qc();BD();zD()});var Qf={};Ue(Qf,{endsWith:()=>Oa,gt:()=>en,gte:()=>bt,includes:()=>Ta,length:()=>ho,lowercase:()=>Aa,lt:()=>Qr,lte:()=>Yt,maxLength:()=>po,maxSize:()=>di,mime:()=>Ea,minLength:()=>En,minSize:()=>tn,multipleOf:()=>li,negative:()=>Zf,nonnegative:()=>Wf,nonpositive:()=>Hf,normalize:()=>Ua,overwrite:()=>Dr,positive:()=>Vf,property:()=>Jf,regex:()=>Da,size:()=>fo,slugify:()=>Fa,startsWith:()=>za,toLowerCase:()=>La,toUpperCase:()=>Pa,trim:()=>Na,uppercase:()=>Ba});var ep=f(()=>{Ut()});var Ma={};Ue(Ma,{ZodISODate:()=>rp,ZodISODateTime:()=>tp,ZodISODuration:()=>ip,ZodISOTime:()=>np,date:()=>xb,datetime:()=>wb,duration:()=>Ib,time:()=>Sb});function wb(t){return r_(tp,t)}function xb(t){return n_(rp,t)}function Sb(t){return i_(np,t)}function Ib(t){return o_(ip,t)}var tp,rp,np,ip,Qc=f(()=>{Ut();tu();tp=g("ZodISODateTime",(t,e)=>{Jy.init(t,e),$e.init(t,e)});rp=g("ZodISODate",(t,e)=>{Gy.init(t,e),$e.init(t,e)});np=g("ZodISOTime",(t,e)=>{Ky.init(t,e),$e.init(t,e)});ip=g("ZodISODuration",(t,e)=>{Yy.init(t,e),$e.init(t,e)})});var OD,f4,Nt,$b=f(()=>{Ut();Ut();F();OD=(t,e)=>{Pc.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>Rc(t,r)},flatten:{value:r=>Fc(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,va,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,va,2)}},isEmpty:{get(){return t.issues.length===0}}})},f4=g("ZodError",OD),Nt=g("ZodError",OD,{Parent:Error})});var kb,Db,Ab,Bb,Tb,zb,Ob,Eb,Ub,Nb,Lb,Pb,Fb=f(()=>{Ut();$b();kb=wa(Nt),Db=xa(Nt),Ab=Sa(Nt),Bb=Ia(Nt),Tb=Gd(Nt),zb=Kd(Nt),Ob=Yd(Nt),Eb=Xd(Nt),Ub=qd(Nt),Nb=Qd(Nt),Lb=ef(Nt),Pb=tf(Nt)});var eu={};Ue(eu,{ZodAny:()=>Wb,ZodArray:()=>Yb,ZodBase64:()=>bp,ZodBase64URL:()=>wp,ZodBigInt:()=>Ja,ZodBigIntFormat:()=>Ip,ZodBoolean:()=>Wa,ZodCIDRv4:()=>vp,ZodCIDRv6:()=>_p,ZodCUID:()=>dp,ZodCUID2:()=>fp,ZodCatch:()=>vw,ZodCodec:()=>Op,ZodCustom:()=>fu,ZodCustomStringFormat:()=>Za,ZodDate:()=>su,ZodDefault:()=>fw,ZodDiscriminatedUnion:()=>qb,ZodE164:()=>xp,ZodEmail:()=>cp,ZodEmoji:()=>up,ZodEnum:()=>Ca,ZodExactOptional:()=>uw,ZodFile:()=>sw,ZodFunction:()=>Dw,ZodGUID:()=>ru,ZodIPv4:()=>gp,ZodIPv6:()=>yp,ZodIntersection:()=>Qb,ZodJWT:()=>Sp,ZodKSUID:()=>mp,ZodLazy:()=>Iw,ZodLiteral:()=>aw,ZodMAC:()=>Rb,ZodMap:()=>iw,ZodNaN:()=>bw,ZodNanoID:()=>lp,ZodNever:()=>Gb,ZodNonOptional:()=>Tp,ZodNull:()=>Zb,ZodNullable:()=>dw,ZodNumber:()=>Ha,ZodNumberFormat:()=>go,ZodObject:()=>uu,ZodOptional:()=>Bp,ZodPipe:()=>zp,ZodPrefault:()=>hw,ZodPromise:()=>kw,ZodReadonly:()=>ww,ZodRecord:()=>du,ZodSet:()=>ow,ZodString:()=>Va,ZodStringFormat:()=>$e,ZodSuccess:()=>yw,ZodSymbol:()=>Cb,ZodTemplateLiteral:()=>Sw,ZodTransform:()=>cw,ZodTuple:()=>tw,ZodType:()=>se,ZodULID:()=>pp,ZodURL:()=>au,ZodUUID:()=>rn,ZodUndefined:()=>Vb,ZodUnion:()=>lu,ZodUnknown:()=>Jb,ZodVoid:()=>Kb,ZodXID:()=>hp,ZodXor:()=>Xb,_ZodString:()=>sp,_default:()=>pw,_function:()=>FA,any:()=>gA,array:()=>cu,base64:()=>QD,base64url:()=>eA,bigint:()=>dA,boolean:()=>Mb,catch:()=>_w,check:()=>RA,cidrv4:()=>XD,cidrv6:()=>qD,codec:()=>NA,cuid:()=>VD,cuid2:()=>ZD,custom:()=>jA,date:()=>vA,describe:()=>MA,discriminatedUnion:()=>IA,e164:()=>tA,email:()=>ED,emoji:()=>MD,enum:()=>Dp,exactOptional:()=>lw,file:()=>zA,float32:()=>sA,float64:()=>cA,function:()=>FA,guid:()=>UD,hash:()=>aA,hex:()=>oA,hostname:()=>iA,httpUrl:()=>jD,instanceof:()=>VA,int:()=>ap,int32:()=>uA,int64:()=>fA,intersection:()=>ew,ipv4:()=>GD,ipv6:()=>YD,json:()=>HA,jwt:()=>rA,keyof:()=>_A,ksuid:()=>JD,lazy:()=>$w,literal:()=>TA,looseObject:()=>xA,looseRecord:()=>kA,mac:()=>KD,map:()=>DA,meta:()=>CA,nan:()=>UA,nanoid:()=>CD,nativeEnum:()=>BA,never:()=>$p,nonoptional:()=>gw,null:()=>Hb,nullable:()=>iu,nullish:()=>OA,number:()=>jb,object:()=>bA,optional:()=>nu,partialRecord:()=>$A,pipe:()=>ou,prefault:()=>mw,preprocess:()=>WA,promise:()=>PA,readonly:()=>xw,record:()=>nw,refine:()=>Aw,set:()=>AA,strictObject:()=>wA,string:()=>op,stringFormat:()=>nA,stringbool:()=>ZA,success:()=>EA,superRefine:()=>Bw,symbol:()=>hA,templateLiteral:()=>LA,transform:()=>Ap,tuple:()=>rw,uint32:()=>lA,uint64:()=>pA,ulid:()=>HD,undefined:()=>mA,union:()=>kp,unknown:()=>mo,url:()=>RD,uuid:()=>ND,uuidv4:()=>LD,uuidv6:()=>PD,uuidv7:()=>FD,void:()=>yA,xid:()=>WD,xor:()=>SA});function op(t){return qv(Va,t)}function ED(t){return Sf(cp,t)}function UD(t){return Kc(ru,t)}function ND(t){return If(rn,t)}function LD(t){return $f(rn,t)}function PD(t){return kf(rn,t)}function FD(t){return Df(rn,t)}function RD(t){return Yc(au,t)}function jD(t){return Yc(au,{protocol:/^https?$/,hostname:cr.domain,...S.normalizeParams(t)})}function MD(t){return Af(up,t)}function CD(t){return Bf(lp,t)}function VD(t){return Tf(dp,t)}function ZD(t){return zf(fp,t)}function HD(t){return Of(pp,t)}function WD(t){return Ef(hp,t)}function JD(t){return Uf(mp,t)}function GD(t){return Nf(gp,t)}function KD(t){return e_(Rb,t)}function YD(t){return Lf(yp,t)}function XD(t){return Pf(vp,t)}function qD(t){return Ff(_p,t)}function QD(t){return Rf(bp,t)}function eA(t){return jf(wp,t)}function tA(t){return Mf(xp,t)}function rA(t){return Cf(Sp,t)}function nA(t,e,r={}){return Ra(Za,t,e,r)}function iA(t){return Ra(Za,"hostname",cr.hostname,t)}function oA(t){return Ra(Za,"hex",cr.hex,t)}function aA(t,e){let r=e?.enc??"hex",i=`${t}_${r}`,n=cr[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Ra(Za,i,n,e)}function jb(t){return a_(Ha,t)}function ap(t){return c_(go,t)}function sA(t){return u_(go,t)}function cA(t){return l_(go,t)}function uA(t){return d_(go,t)}function lA(t){return f_(go,t)}function Mb(t){return p_(Wa,t)}function dA(t){return m_(Ja,t)}function fA(t){return y_(Ip,t)}function pA(t){return v_(Ip,t)}function hA(t){return __(Cb,t)}function mA(t){return b_(Vb,t)}function Hb(t){return w_(Zb,t)}function gA(){return x_(Wb)}function mo(){return S_(Jb)}function $p(t){return I_(Gb,t)}function yA(t){return $_(Kb,t)}function vA(t){return k_(su,t)}function cu(t,e){return B_(Yb,t,e)}function _A(t){let e=t._zod.def.shape;return Dp(Object.keys(e))}function bA(t,e){let r={type:"object",shape:t??{},...S.normalizeParams(e)};return new uu(r)}function wA(t,e){return new uu({type:"object",shape:t,catchall:$p(),...S.normalizeParams(e)})}function xA(t,e){return new uu({type:"object",shape:t,catchall:mo(),...S.normalizeParams(e)})}function kp(t,e){return new lu({type:"union",options:t,...S.normalizeParams(e)})}function SA(t,e){return new Xb({type:"union",options:t,inclusive:!1,...S.normalizeParams(e)})}function IA(t,e,r){return new qb({type:"union",options:e,discriminator:t,...S.normalizeParams(r)})}function ew(t,e){return new Qb({type:"intersection",left:t,right:e})}function rw(t,e,r){let i=e instanceof te,n=i?r:e,o=i?e:null;return new tw({type:"tuple",items:t,rest:o,...S.normalizeParams(n)})}function nw(t,e,r){return new du({type:"record",keyType:t,valueType:e,...S.normalizeParams(r)})}function $A(t,e,r){let i=_t(t);return i._zod.values=void 0,new du({type:"record",keyType:i,valueType:e,...S.normalizeParams(r)})}function kA(t,e,r){return new du({type:"record",keyType:t,valueType:e,mode:"loose",...S.normalizeParams(r)})}function DA(t,e,r){return new iw({type:"map",keyType:t,valueType:e,...S.normalizeParams(r)})}function AA(t,e){return new ow({type:"set",valueType:t,...S.normalizeParams(e)})}function Dp(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Ca({type:"enum",entries:r,...S.normalizeParams(e)})}function BA(t,e){return new Ca({type:"enum",entries:t,...S.normalizeParams(e)})}function TA(t,e){return new aw({type:"literal",values:Array.isArray(t)?t:[t],...S.normalizeParams(e)})}function zA(t){return T_(sw,t)}function Ap(t){return new cw({type:"transform",transform:t})}function nu(t){return new Bp({type:"optional",innerType:t})}function lw(t){return new uw({type:"optional",innerType:t})}function iu(t){return new dw({type:"nullable",innerType:t})}function OA(t){return nu(iu(t))}function pw(t,e){return new fw({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():S.shallowClone(e)}})}function mw(t,e){return new hw({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():S.shallowClone(e)}})}function gw(t,e){return new Tp({type:"nonoptional",innerType:t,...S.normalizeParams(e)})}function EA(t){return new yw({type:"success",innerType:t})}function _w(t,e){return new vw({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}function UA(t){return A_(bw,t)}function ou(t,e){return new zp({type:"pipe",in:t,out:e})}function NA(t,e,r){return new Op({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}function xw(t){return new ww({type:"readonly",innerType:t})}function LA(t,e){return new Sw({type:"template_literal",parts:t,...S.normalizeParams(e)})}function $w(t){return new Iw({type:"lazy",getter:t})}function PA(t){return new kw({type:"promise",innerType:t})}function FA(t){return new Dw({type:"function",input:Array.isArray(t?.input)?rw(t?.input):t?.input??cu(mo()),output:t?.output??mo()})}function RA(t){let e=new Te({check:"custom"});return e._zod.check=t,e}function jA(t,e){return z_(fu,t??(()=>!0),e)}function Aw(t,e={}){return O_(fu,t,e)}function Bw(t){return E_(t)}function VA(t,e={}){let r=new fu({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...S.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=i=>{i.value instanceof t||i.issues.push({code:"invalid_type",expected:t.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}function HA(t){let e=$w(()=>kp([op(t),jb(),Mb(),Hb(),cu(e),nw(op(),e)]));return e}function WA(t,e){return ou(Ap(t),e)}var se,sp,Va,$e,cp,ru,rn,au,up,lp,dp,fp,pp,hp,mp,gp,Rb,yp,vp,_p,bp,wp,xp,Sp,Za,Ha,go,Wa,Ja,Ip,Cb,Vb,Zb,Wb,Jb,Gb,Kb,su,Yb,uu,lu,Xb,qb,Qb,tw,du,iw,ow,Ca,aw,sw,cw,Bp,uw,dw,fw,hw,Tp,yw,vw,bw,zp,Op,ww,Sw,Iw,kw,Dw,fu,MA,CA,ZA,tu=f(()=>{Ut();Ut();qc();Xc();ep();Qc();Fb();se=g("ZodType",(t,e)=>(te.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:ja(t,"input"),output:ja(t,"output")}}),t.toJSONSchema=P_(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone(S.mergeDefs(e,{checks:[...e.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),t.with=t.check,t.clone=(r,i)=>_t(t,r,i),t.brand=()=>t,t.register=((r,i)=>(r.add(t,i),t)),t.parse=(r,i)=>kb(t,r,i,{callee:t.parse}),t.safeParse=(r,i)=>Ab(t,r,i),t.parseAsync=async(r,i)=>Db(t,r,i,{callee:t.parseAsync}),t.safeParseAsync=async(r,i)=>Bb(t,r,i),t.spa=t.safeParseAsync,t.encode=(r,i)=>Tb(t,r,i),t.decode=(r,i)=>zb(t,r,i),t.encodeAsync=async(r,i)=>Ob(t,r,i),t.decodeAsync=async(r,i)=>Eb(t,r,i),t.safeEncode=(r,i)=>Ub(t,r,i),t.safeDecode=(r,i)=>Nb(t,r,i),t.safeEncodeAsync=async(r,i)=>Lb(t,r,i),t.safeDecodeAsync=async(r,i)=>Pb(t,r,i),t.refine=(r,i)=>t.check(Aw(r,i)),t.superRefine=r=>t.check(Bw(r)),t.overwrite=r=>t.check(Dr(r)),t.optional=()=>nu(t),t.exactOptional=()=>lw(t),t.nullable=()=>iu(t),t.nullish=()=>nu(iu(t)),t.nonoptional=r=>gw(t,r),t.array=()=>cu(t),t.or=r=>kp([t,r]),t.and=r=>ew(t,r),t.transform=r=>ou(t,Ap(r)),t.default=r=>pw(t,r),t.prefault=r=>mw(t,r),t.catch=r=>_w(t,r),t.pipe=r=>ou(t,r),t.readonly=()=>xw(t),t.describe=r=>{let i=t.clone();return at.add(i,{description:r}),i},Object.defineProperty(t,"description",{get(){return at.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return at.get(t);let i=t.clone();return at.add(i,r[0]),i},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=r=>r(t),t)),sp=g("_ZodString",(t,e)=>{lo.init(t,e),se.init(t,e),t._zod.processJSONSchema=(i,n,o)=>F_(t,i,n,o);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...i)=>t.check(Da(...i)),t.includes=(...i)=>t.check(Ta(...i)),t.startsWith=(...i)=>t.check(za(...i)),t.endsWith=(...i)=>t.check(Oa(...i)),t.min=(...i)=>t.check(En(...i)),t.max=(...i)=>t.check(po(...i)),t.length=(...i)=>t.check(ho(...i)),t.nonempty=(...i)=>t.check(En(1,...i)),t.lowercase=i=>t.check(Aa(i)),t.uppercase=i=>t.check(Ba(i)),t.trim=()=>t.check(Na()),t.normalize=(...i)=>t.check(Ua(...i)),t.toLowerCase=()=>t.check(La()),t.toUpperCase=()=>t.check(Pa()),t.slugify=()=>t.check(Fa())}),Va=g("ZodString",(t,e)=>{lo.init(t,e),sp.init(t,e),t.email=r=>t.check(Sf(cp,r)),t.url=r=>t.check(Yc(au,r)),t.jwt=r=>t.check(Cf(Sp,r)),t.emoji=r=>t.check(Af(up,r)),t.guid=r=>t.check(Kc(ru,r)),t.uuid=r=>t.check(If(rn,r)),t.uuidv4=r=>t.check($f(rn,r)),t.uuidv6=r=>t.check(kf(rn,r)),t.uuidv7=r=>t.check(Df(rn,r)),t.nanoid=r=>t.check(Bf(lp,r)),t.guid=r=>t.check(Kc(ru,r)),t.cuid=r=>t.check(Tf(dp,r)),t.cuid2=r=>t.check(zf(fp,r)),t.ulid=r=>t.check(Of(pp,r)),t.base64=r=>t.check(Rf(bp,r)),t.base64url=r=>t.check(jf(wp,r)),t.xid=r=>t.check(Ef(hp,r)),t.ksuid=r=>t.check(Uf(mp,r)),t.ipv4=r=>t.check(Nf(gp,r)),t.ipv6=r=>t.check(Lf(yp,r)),t.cidrv4=r=>t.check(Pf(vp,r)),t.cidrv6=r=>t.check(Ff(_p,r)),t.e164=r=>t.check(Mf(xp,r)),t.datetime=r=>t.check(wb(r)),t.date=r=>t.check(xb(r)),t.time=r=>t.check(Sb(r)),t.duration=r=>t.check(Ib(r))});$e=g("ZodStringFormat",(t,e)=>{Ie.init(t,e),sp.init(t,e)}),cp=g("ZodEmail",(t,e)=>{Fy.init(t,e),$e.init(t,e)});ru=g("ZodGUID",(t,e)=>{Ly.init(t,e),$e.init(t,e)});rn=g("ZodUUID",(t,e)=>{Py.init(t,e),$e.init(t,e)});au=g("ZodURL",(t,e)=>{Ry.init(t,e),$e.init(t,e)});up=g("ZodEmoji",(t,e)=>{jy.init(t,e),$e.init(t,e)});lp=g("ZodNanoID",(t,e)=>{My.init(t,e),$e.init(t,e)});dp=g("ZodCUID",(t,e)=>{Cy.init(t,e),$e.init(t,e)});fp=g("ZodCUID2",(t,e)=>{Vy.init(t,e),$e.init(t,e)});pp=g("ZodULID",(t,e)=>{Zy.init(t,e),$e.init(t,e)});hp=g("ZodXID",(t,e)=>{Hy.init(t,e),$e.init(t,e)});mp=g("ZodKSUID",(t,e)=>{Wy.init(t,e),$e.init(t,e)});gp=g("ZodIPv4",(t,e)=>{Xy.init(t,e),$e.init(t,e)});Rb=g("ZodMAC",(t,e)=>{Qy.init(t,e),$e.init(t,e)});yp=g("ZodIPv6",(t,e)=>{qy.init(t,e),$e.init(t,e)});vp=g("ZodCIDRv4",(t,e)=>{ev.init(t,e),$e.init(t,e)});_p=g("ZodCIDRv6",(t,e)=>{tv.init(t,e),$e.init(t,e)});bp=g("ZodBase64",(t,e)=>{nv.init(t,e),$e.init(t,e)});wp=g("ZodBase64URL",(t,e)=>{iv.init(t,e),$e.init(t,e)});xp=g("ZodE164",(t,e)=>{ov.init(t,e),$e.init(t,e)});Sp=g("ZodJWT",(t,e)=>{av.init(t,e),$e.init(t,e)});Za=g("ZodCustomStringFormat",(t,e)=>{sv.init(t,e),$e.init(t,e)});Ha=g("ZodNumber",(t,e)=>{hf.init(t,e),se.init(t,e),t._zod.processJSONSchema=(i,n,o)=>R_(t,i,n,o),t.gt=(i,n)=>t.check(en(i,n)),t.gte=(i,n)=>t.check(bt(i,n)),t.min=(i,n)=>t.check(bt(i,n)),t.lt=(i,n)=>t.check(Qr(i,n)),t.lte=(i,n)=>t.check(Yt(i,n)),t.max=(i,n)=>t.check(Yt(i,n)),t.int=i=>t.check(ap(i)),t.safe=i=>t.check(ap(i)),t.positive=i=>t.check(en(0,i)),t.nonnegative=i=>t.check(bt(0,i)),t.negative=i=>t.check(Qr(0,i)),t.nonpositive=i=>t.check(Yt(0,i)),t.multipleOf=(i,n)=>t.check(li(i,n)),t.step=(i,n)=>t.check(li(i,n)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});go=g("ZodNumberFormat",(t,e)=>{cv.init(t,e),Ha.init(t,e)});Wa=g("ZodBoolean",(t,e)=>{Vc.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>j_(t,r,i,n)});Ja=g("ZodBigInt",(t,e)=>{mf.init(t,e),se.init(t,e),t._zod.processJSONSchema=(i,n,o)=>M_(t,i,n,o),t.gte=(i,n)=>t.check(bt(i,n)),t.min=(i,n)=>t.check(bt(i,n)),t.gt=(i,n)=>t.check(en(i,n)),t.gte=(i,n)=>t.check(bt(i,n)),t.min=(i,n)=>t.check(bt(i,n)),t.lt=(i,n)=>t.check(Qr(i,n)),t.lte=(i,n)=>t.check(Yt(i,n)),t.max=(i,n)=>t.check(Yt(i,n)),t.positive=i=>t.check(en(BigInt(0),i)),t.negative=i=>t.check(Qr(BigInt(0),i)),t.nonpositive=i=>t.check(Yt(BigInt(0),i)),t.nonnegative=i=>t.check(bt(BigInt(0),i)),t.multipleOf=(i,n)=>t.check(li(i,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});Ip=g("ZodBigIntFormat",(t,e)=>{uv.init(t,e),Ja.init(t,e)});Cb=g("ZodSymbol",(t,e)=>{lv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>C_(t,r,i,n)});Vb=g("ZodUndefined",(t,e)=>{dv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Z_(t,r,i,n)});Zb=g("ZodNull",(t,e)=>{fv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>V_(t,r,i,n)});Wb=g("ZodAny",(t,e)=>{pv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>J_(t,r,i,n)});Jb=g("ZodUnknown",(t,e)=>{hv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>G_(t,r,i,n)});Gb=g("ZodNever",(t,e)=>{mv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>W_(t,r,i,n)});Kb=g("ZodVoid",(t,e)=>{gv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>H_(t,r,i,n)});su=g("ZodDate",(t,e)=>{yv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(i,n,o)=>K_(t,i,n,o),t.min=(i,n)=>t.check(bt(i,n)),t.max=(i,n)=>t.check(Yt(i,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});Yb=g("ZodArray",(t,e)=>{vv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>sb(t,r,i,n),t.element=e.element,t.min=(r,i)=>t.check(En(r,i)),t.nonempty=r=>t.check(En(1,r)),t.max=(r,i)=>t.check(po(r,i)),t.length=(r,i)=>t.check(ho(r,i)),t.unwrap=()=>t.element});uu=g("ZodObject",(t,e)=>{_v.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>cb(t,r,i,n),S.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>Dp(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:mo()}),t.loose=()=>t.clone({...t._zod.def,catchall:mo()}),t.strict=()=>t.clone({...t._zod.def,catchall:$p()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>S.extend(t,r),t.safeExtend=r=>S.safeExtend(t,r),t.merge=r=>S.merge(t,r),t.pick=r=>S.pick(t,r),t.omit=r=>S.omit(t,r),t.partial=(...r)=>S.partial(Bp,t,r[0]),t.required=(...r)=>S.required(Tp,t,r[0])});lu=g("ZodUnion",(t,e)=>{Zc.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Kf(t,r,i,n),t.options=e.options});Xb=g("ZodXor",(t,e)=>{lu.init(t,e),bv.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Kf(t,r,i,n),t.options=e.options});qb=g("ZodDiscriminatedUnion",(t,e)=>{lu.init(t,e),wv.init(t,e)});Qb=g("ZodIntersection",(t,e)=>{xv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ub(t,r,i,n)});tw=g("ZodTuple",(t,e)=>{gf.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>lb(t,r,i,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});du=g("ZodRecord",(t,e)=>{Sv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>db(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType});iw=g("ZodMap",(t,e)=>{Iv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ob(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(tn(...r)),t.nonempty=r=>t.check(tn(1,r)),t.max=(...r)=>t.check(di(...r)),t.size=(...r)=>t.check(fo(...r))});ow=g("ZodSet",(t,e)=>{$v.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ab(t,r,i,n),t.min=(...r)=>t.check(tn(...r)),t.nonempty=r=>t.check(tn(1,r)),t.max=(...r)=>t.check(di(...r)),t.size=(...r)=>t.check(fo(...r))});Ca=g("ZodEnum",(t,e)=>{kv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Y_(t,i,n,o),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(i,n)=>{let o={};for(let a of i)if(r.has(a))o[a]=e.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ca({...e,checks:[],...S.normalizeParams(n),entries:o})},t.exclude=(i,n)=>{let o={...e.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Ca({...e,checks:[],...S.normalizeParams(n),entries:o})}});aw=g("ZodLiteral",(t,e)=>{Dv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>X_(t,r,i,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});sw=g("ZodFile",(t,e)=>{Av.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>eb(t,r,i,n),t.min=(r,i)=>t.check(tn(r,i)),t.max=(r,i)=>t.check(di(r,i)),t.mime=(r,i)=>t.check(Ea(Array.isArray(r)?r:[r],i))});cw=g("ZodTransform",(t,e)=>{Bv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ib(t,r,i,n),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new oi(t.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(S.issue(o,r.value,e));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),r.issues.push(S.issue(a))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});Bp=g("ZodOptional",(t,e)=>{yf.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Yf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});uw=g("ZodExactOptional",(t,e)=>{Tv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Yf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});dw=g("ZodNullable",(t,e)=>{zv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>fb(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});fw=g("ZodDefault",(t,e)=>{Ov.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>hb(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});hw=g("ZodPrefault",(t,e)=>{Ev.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>mb(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});Tp=g("ZodNonOptional",(t,e)=>{Uv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>pb(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});yw=g("ZodSuccess",(t,e)=>{Nv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>tb(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});vw=g("ZodCatch",(t,e)=>{Lv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>gb(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});bw=g("ZodNaN",(t,e)=>{Pv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>q_(t,r,i,n)});zp=g("ZodPipe",(t,e)=>{Fv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>yb(t,r,i,n),t.in=e.in,t.out=e.out});Op=g("ZodCodec",(t,e)=>{zp.init(t,e),Hc.init(t,e)});ww=g("ZodReadonly",(t,e)=>{Rv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>vb(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});Sw=g("ZodTemplateLiteral",(t,e)=>{jv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Q_(t,r,i,n)});Iw=g("ZodLazy",(t,e)=>{Vv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>bb(t,r,i,n),t.unwrap=()=>t._zod.def.getter()});kw=g("ZodPromise",(t,e)=>{Cv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>_b(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});Dw=g("ZodFunction",(t,e)=>{Mv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>nb(t,r,i,n)});fu=g("ZodCustom",(t,e)=>{Zv.init(t,e),se.init(t,e),t._zod.processJSONSchema=(r,i,n)=>rb(t,r,i,n)});MA=U_,CA=N_;ZA=(...t)=>L_({Codec:Op,Boolean:Wa,String:Va},...t)});function m4(t){Ve({customError:t})}function g4(){return Ve().customError}var h4,Tw,JA=f(()=>{Ut();Ut();h4={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"};Tw||(Tw={})});function v4(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}function _4(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let i=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}function GA(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return A.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return A.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let o=_4(n,e),a=ht(o,e);return e.refs.set(n,a),e.processing.delete(n),a}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return A.null();if(n.length===0)return A.never();if(n.length===1)return A.literal(n[0]);if(n.every(a=>typeof a=="string"))return A.enum(n);let o=n.map(a=>A.literal(a));return o.length<2?o[0]:A.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return A.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...t,type:o};return GA(a,e)});return n.length===0?A.never():n.length===1?n[0]:A.union(n)}if(!r)return A.any();let i;switch(r){case"string":{let n=A.string();if(t.format){let o=t.format;o==="email"?n=n.check(A.email()):o==="uri"||o==="uri-reference"?n=n.check(A.url()):o==="uuid"||o==="guid"?n=n.check(A.uuid()):o==="date-time"?n=n.check(A.iso.datetime()):o==="date"?n=n.check(A.iso.date()):o==="time"?n=n.check(A.iso.time()):o==="duration"?n=n.check(A.iso.duration()):o==="ipv4"?n=n.check(A.ipv4()):o==="ipv6"?n=n.check(A.ipv6()):o==="mac"?n=n.check(A.mac()):o==="cidr"?n=n.check(A.cidrv4()):o==="cidr-v6"?n=n.check(A.cidrv6()):o==="base64"?n=n.check(A.base64()):o==="base64url"?n=n.check(A.base64url()):o==="e164"?n=n.check(A.e164()):o==="jwt"?n=n.check(A.jwt()):o==="emoji"?n=n.check(A.emoji()):o==="nanoid"?n=n.check(A.nanoid()):o==="cuid"?n=n.check(A.cuid()):o==="cuid2"?n=n.check(A.cuid2()):o==="ulid"?n=n.check(A.ulid()):o==="xid"?n=n.check(A.xid()):o==="ksuid"&&(n=n.check(A.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?A.number().int():A.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),i=n;break}case"boolean":{i=A.boolean();break}case"null":{i=A.null();break}case"object":{let n={},o=t.properties||{},a=new Set(t.required||[]);for(let[u,c]of Object.entries(o)){let l=ht(c,e);n[u]=a.has(u)?l:l.optional()}if(t.propertyNames){let u=ht(t.propertyNames,e),c=t.additionalProperties&&typeof t.additionalProperties=="object"?ht(t.additionalProperties,e):A.any();if(Object.keys(n).length===0){i=A.record(u,c);break}let l=A.object(n).passthrough(),d=A.looseRecord(u,c);i=A.intersection(l,d);break}if(t.patternProperties){let u=t.patternProperties,c=Object.keys(u),l=[];for(let h of c){let p=ht(u[h],e),v=A.string().regex(new RegExp(h));l.push(A.looseRecord(v,p))}let d=[];if(Object.keys(n).length>0&&d.push(A.object(n).passthrough()),d.push(...l),d.length===0)i=A.object({}).passthrough();else if(d.length===1)i=d[0];else{let h=A.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)h=A.intersection(h,d[p]);i=h}break}let s=A.object(n);t.additionalProperties===!1?i=s.strict():typeof t.additionalProperties=="object"?i=s.catchall(ht(t.additionalProperties,e)):i=s.passthrough();break}case"array":{let n=t.prefixItems,o=t.items;if(n&&Array.isArray(n)){let a=n.map(u=>ht(u,e)),s=o&&typeof o=="object"&&!Array.isArray(o)?ht(o,e):void 0;s?i=A.tuple(a).rest(s):i=A.tuple(a),typeof t.minItems=="number"&&(i=i.check(A.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(A.maxLength(t.maxItems)))}else if(Array.isArray(o)){let a=o.map(u=>ht(u,e)),s=t.additionalItems&&typeof t.additionalItems=="object"?ht(t.additionalItems,e):void 0;s?i=A.tuple(a).rest(s):i=A.tuple(a),typeof t.minItems=="number"&&(i=i.check(A.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(A.maxLength(t.maxItems)))}else if(o!==void 0){let a=ht(o,e),s=A.array(a);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),i=s}else i=A.array(A.any());break}default:throw new Error(`Unsupported type: ${r}`)}return t.description&&(i=i.describe(t.description)),t.default!==void 0&&(i=i.default(t.default)),i}function ht(t,e){if(typeof t=="boolean")return t?A.any():A.never();let r=GA(t,e),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let s=t.anyOf.map(c=>ht(c,e)),u=A.union(s);r=i?A.intersection(r,u):u}if(t.oneOf&&Array.isArray(t.oneOf)){let s=t.oneOf.map(c=>ht(c,e)),u=A.xor(s);r=i?A.intersection(r,u):u}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=i?r:A.any();else{let s=i?r:ht(t.allOf[0],e),u=i?0:1;for(let c=u;c<t.allOf.length;c++)s=A.intersection(s,ht(t.allOf[c],e));r=s}t.nullable===!0&&e.version==="openapi-3.0"&&(r=A.nullable(r)),t.readOnly===!0&&(r=A.readonly(r));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in t&&(n[s]=t[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in t&&(n[s]=t[s]);for(let s of Object.keys(t))y4.has(s)||(n[s]=t[s]);return Object.keys(n).length>0&&e.registry.add(r,n),r}function KA(t,e){if(typeof t=="boolean")return t?A.any():A.never();let r=v4(t,e?.defaultTarget),i=t.$defs||t.definitions||{},n={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:t,registry:e?.registry??at};return ht(t,n)}var A,y4,YA=f(()=>{Gc();ep();Qc();tu();A={...eu,...Qf,iso:Ma},y4=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"])});var zw={};Ue(zw,{bigint:()=>S4,boolean:()=>x4,date:()=>I4,number:()=>w4,string:()=>b4});function b4(t){return Qv(Va,t)}function w4(t){return s_(Ha,t)}function x4(t){return h_(Wa,t)}function S4(t){return g_(Ja,t)}function I4(t){return D_(su,t)}var XA=f(()=>{Ut();tu()});var _e={};Ue(_e,{$brand:()=>Vd,$input:()=>Xv,$output:()=>Yv,NEVER:()=>Sg,TimePrecision:()=>t_,ZodAny:()=>Wb,ZodArray:()=>Yb,ZodBase64:()=>bp,ZodBase64URL:()=>wp,ZodBigInt:()=>Ja,ZodBigIntFormat:()=>Ip,ZodBoolean:()=>Wa,ZodCIDRv4:()=>vp,ZodCIDRv6:()=>_p,ZodCUID:()=>dp,ZodCUID2:()=>fp,ZodCatch:()=>vw,ZodCodec:()=>Op,ZodCustom:()=>fu,ZodCustomStringFormat:()=>Za,ZodDate:()=>su,ZodDefault:()=>fw,ZodDiscriminatedUnion:()=>qb,ZodE164:()=>xp,ZodEmail:()=>cp,ZodEmoji:()=>up,ZodEnum:()=>Ca,ZodError:()=>f4,ZodExactOptional:()=>uw,ZodFile:()=>sw,ZodFirstPartyTypeKind:()=>Tw,ZodFunction:()=>Dw,ZodGUID:()=>ru,ZodIPv4:()=>gp,ZodIPv6:()=>yp,ZodISODate:()=>rp,ZodISODateTime:()=>tp,ZodISODuration:()=>ip,ZodISOTime:()=>np,ZodIntersection:()=>Qb,ZodIssueCode:()=>h4,ZodJWT:()=>Sp,ZodKSUID:()=>mp,ZodLazy:()=>Iw,ZodLiteral:()=>aw,ZodMAC:()=>Rb,ZodMap:()=>iw,ZodNaN:()=>bw,ZodNanoID:()=>lp,ZodNever:()=>Gb,ZodNonOptional:()=>Tp,ZodNull:()=>Zb,ZodNullable:()=>dw,ZodNumber:()=>Ha,ZodNumberFormat:()=>go,ZodObject:()=>uu,ZodOptional:()=>Bp,ZodPipe:()=>zp,ZodPrefault:()=>hw,ZodPromise:()=>kw,ZodReadonly:()=>ww,ZodRealError:()=>Nt,ZodRecord:()=>du,ZodSet:()=>ow,ZodString:()=>Va,ZodStringFormat:()=>$e,ZodSuccess:()=>yw,ZodSymbol:()=>Cb,ZodTemplateLiteral:()=>Sw,ZodTransform:()=>cw,ZodTuple:()=>tw,ZodType:()=>se,ZodULID:()=>pp,ZodURL:()=>au,ZodUUID:()=>rn,ZodUndefined:()=>Vb,ZodUnion:()=>lu,ZodUnknown:()=>Jb,ZodVoid:()=>Kb,ZodXID:()=>hp,ZodXor:()=>Xb,_ZodString:()=>sp,_default:()=>pw,_function:()=>FA,any:()=>gA,array:()=>cu,base64:()=>QD,base64url:()=>eA,bigint:()=>dA,boolean:()=>Mb,catch:()=>_w,check:()=>RA,cidrv4:()=>XD,cidrv6:()=>qD,clone:()=>_t,codec:()=>NA,coerce:()=>zw,config:()=>Ve,core:()=>Un,cuid:()=>VD,cuid2:()=>ZD,custom:()=>jA,date:()=>vA,decode:()=>zb,decodeAsync:()=>Eb,describe:()=>MA,discriminatedUnion:()=>IA,e164:()=>tA,email:()=>ED,emoji:()=>MD,encode:()=>Tb,encodeAsync:()=>Ob,endsWith:()=>Oa,enum:()=>Dp,exactOptional:()=>lw,file:()=>zA,flattenError:()=>Fc,float32:()=>sA,float64:()=>cA,formatError:()=>Rc,fromJSONSchema:()=>KA,function:()=>FA,getErrorMap:()=>g4,globalRegistry:()=>at,gt:()=>en,gte:()=>bt,guid:()=>UD,hash:()=>aA,hex:()=>oA,hostname:()=>iA,httpUrl:()=>jD,includes:()=>Ta,instanceof:()=>VA,int:()=>ap,int32:()=>uA,int64:()=>fA,intersection:()=>ew,ipv4:()=>GD,ipv6:()=>YD,iso:()=>Ma,json:()=>HA,jwt:()=>rA,keyof:()=>_A,ksuid:()=>JD,lazy:()=>$w,length:()=>ho,literal:()=>TA,locales:()=>Jc,looseObject:()=>xA,looseRecord:()=>kA,lowercase:()=>Aa,lt:()=>Qr,lte:()=>Yt,mac:()=>KD,map:()=>DA,maxLength:()=>po,maxSize:()=>di,meta:()=>CA,mime:()=>Ea,minLength:()=>En,minSize:()=>tn,multipleOf:()=>li,nan:()=>UA,nanoid:()=>CD,nativeEnum:()=>BA,negative:()=>Zf,never:()=>$p,nonnegative:()=>Wf,nonoptional:()=>gw,nonpositive:()=>Hf,normalize:()=>Ua,null:()=>Hb,nullable:()=>iu,nullish:()=>OA,number:()=>jb,object:()=>bA,optional:()=>nu,overwrite:()=>Dr,parse:()=>kb,parseAsync:()=>Db,partialRecord:()=>$A,pipe:()=>ou,positive:()=>Vf,prefault:()=>mw,preprocess:()=>WA,prettifyError:()=>Ng,promise:()=>PA,property:()=>Jf,readonly:()=>xw,record:()=>nw,refine:()=>Aw,regex:()=>Da,regexes:()=>cr,registry:()=>xf,safeDecode:()=>Nb,safeDecodeAsync:()=>Pb,safeEncode:()=>Ub,safeEncodeAsync:()=>Lb,safeParse:()=>Ab,safeParseAsync:()=>Bb,set:()=>AA,setErrorMap:()=>m4,size:()=>fo,slugify:()=>Fa,startsWith:()=>za,strictObject:()=>wA,string:()=>op,stringFormat:()=>nA,stringbool:()=>ZA,success:()=>EA,superRefine:()=>Bw,symbol:()=>hA,templateLiteral:()=>LA,toJSONSchema:()=>Xf,toLowerCase:()=>La,toUpperCase:()=>Pa,transform:()=>Ap,treeifyError:()=>Ug,trim:()=>Na,tuple:()=>rw,uint32:()=>lA,uint64:()=>pA,ulid:()=>HD,undefined:()=>mA,union:()=>kp,unknown:()=>mo,uppercase:()=>Ba,url:()=>RD,util:()=>S,uuid:()=>ND,uuidv4:()=>LD,uuidv6:()=>PD,uuidv7:()=>FD,void:()=>yA,xid:()=>WD,xor:()=>SA});var Ow=f(()=>{Ut();tu();ep();$b();Fb();JA();Ut();Wv();Ut();qc();YA();Kv();Qc();Qc();XA();Ve(vf())});var qA=f(()=>{Ow();Ow()});var xt,QA,$4,eB,k4,tB,rB=f(()=>{"use strict";qA();xt=_e.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),QA=_e.object({rgbMin:_e.number().finite().optional(),rgbMax:_e.number().finite().optional(),lnScaleMin:_e.number().finite().optional(),lnScaleMax:_e.number().finite().optional(),sh1Max:_e.number().finite().optional(),sh2Max:_e.number().finite().optional(),sh3Max:_e.number().finite().optional(),lodOpacity:_e.boolean().optional()}).passthrough(),$4=_e.object({offset:xt,bytes:xt,base:xt.optional(),count:xt.optional(),filename:_e.string().optional()}).passthrough(),eB=_e.object({version:_e.literal(1),type:_e.literal("gsplat"),count:xt,maxSh:xt.optional(),lodTree:_e.boolean().optional(),chunkSize:xt.optional(),allChunkBytes:xt.optional(),chunks:_e.array($4),splatEncoding:QA.optional(),shCodeCount:xt.optional(),comment:_e.string().optional()}).passthrough(),k4=_e.object({offset:xt,bytes:xt,property:_e.string(),encoding:_e.string(),compression:_e.string().optional(),min:_e.number().finite().optional(),max:_e.number().finite().optional()}).passthrough(),tB=_e.object({version:_e.literal(1),base:xt,count:xt,payloadBytes:xt,maxSh:xt.optional(),lodTree:_e.boolean().optional(),splatEncoding:QA.optional(),properties:_e.array(k4)}).passthrough()});function pu(t){let e=Ga(t);if(!e)throw new Error("RADLoader: file must contain a complete RAD metadata header.");return e}function Ga(t){let e=iB(t);if(e.byteLength<mi)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0);if(i!==D4)throw new Error(`RADLoader: RAD0 magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=mi+n;if(e.byteLength<o)return null;let a=eB.parse(nB(e.subarray(mi,o),"RADLoader: failed to parse RAD metadata JSON."));return z4(a,n)}function Ka(t){let e=iB(t);if(e.byteLength<mi)throw new Error("RADLoader: RADC chunk must contain an 8-byte metadata header.");let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0);if(i!==A4)throw new Error(`RADLoader: RADC magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=mi+n,a=mi+Ep(n),s=a+B4;if(e.byteLength<s)throw new Error("RADLoader: RADC chunk must contain a complete metadata header.");let u=tB.parse(nB(e.subarray(mi,o),"RADLoader: failed to parse RADC metadata JSON.")),c=E4(r,a,"RADC payload byte length");return O4(u,n,s,c)}function Ep(t){return t+7&-8}function z4(t,e){return{...t,headerJsonByteLength:e,chunksByteOffset:mi+Ep(e)}}function O4(t,e,r,i){if(t.payloadBytes!==i)throw new Error("RADLoader: RADC metadata payload byte length does not match binary header.");return{...t,payloadBytes:i,headerJsonByteLength:e,payloadByteOffset:r,chunkByteLength:r+i}}function nB(t,e){try{return JSON.parse(T4.decode(t))}catch{throw new Error(e)}}function E4(t,e,r){let i=t.getBigUint64(e,!0);if(i>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`RADLoader: ${r} exceeds Number.MAX_SAFE_INTEGER.`);return Number(i)}function iB(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var D4,A4,mi,B4,T4,hu=f(()=>{"use strict";rB();D4=809779538,A4=1128546642,mi=8,B4=8,T4=new TextDecoder});var Nn=tt(St=>{"use strict";var U4=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function N4(t,e){return Object.prototype.hasOwnProperty.call(t,e)}St.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)N4(r,i)&&(t[i]=r[i])}}return t};St.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var L4={arraySet:function(t,e,r,i,n){if(e.subarray&&t.subarray){t.set(e.subarray(r,r+i),n);return}for(var o=0;o<i;o++)t[n+o]=e[r+o]},flattenChunks:function(t){var e,r,i,n,o,a;for(i=0,e=0,r=t.length;e<r;e++)i+=t[e].length;for(a=new Uint8Array(i),n=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,n),n+=o.length;return a}},P4={arraySet:function(t,e,r,i,n){for(var o=0;o<i;o++)t[n+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};St.setTyped=function(t){t?(St.Buf8=Uint8Array,St.Buf16=Uint16Array,St.Buf32=Int32Array,St.assign(St,L4)):(St.Buf8=Array,St.Buf16=Array,St.Buf32=Array,St.assign(St,P4))};St.setTyped(U4)});var DB=tt(qa=>{"use strict";var F4=Nn(),R4=4,oB=0,aB=1,j4=2;function Xa(t){for(var e=t.length;--e>=0;)t[e]=0}var M4=0,fB=1,C4=2,V4=3,Z4=258,Rw=29,bu=256,gu=bu+1+Rw,Ya=30,jw=19,pB=2*gu+1,yo=15,Ew=16,H4=7,Mw=256,hB=16,mB=17,gB=18,Pw=[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],Up=[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],W4=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],yB=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J4=512,Ln=new Array((gu+2)*2);Xa(Ln);var mu=new Array(Ya*2);Xa(mu);var yu=new Array(J4);Xa(yu);var vu=new Array(Z4-V4+1);Xa(vu);var Cw=new Array(Rw);Xa(Cw);var Np=new Array(Ya);Xa(Np);function Uw(t,e,r,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}var vB,_B,bB;function Nw(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function wB(t){return t<256?yu[t]:yu[256+(t>>>7)]}function _u(t,e){t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255}function Lt(t,e,r){t.bi_valid>Ew-r?(t.bi_buf|=e<<t.bi_valid&65535,_u(t,t.bi_buf),t.bi_buf=e>>Ew-t.bi_valid,t.bi_valid+=r-Ew):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function nn(t,e,r){Lt(t,r[e*2],r[e*2+1])}function xB(t,e){var r=0;do r|=t&1,t>>>=1,r<<=1;while(--e>0);return r>>>1}function G4(t){t.bi_valid===16?(_u(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)}function K4(t,e){var r=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,u=e.stat_desc.max_length,c,l,d,h,p,v,_=0;for(h=0;h<=yo;h++)t.bl_count[h]=0;for(r[t.heap[t.heap_max]*2+1]=0,c=t.heap_max+1;c<pB;c++)l=t.heap[c],h=r[r[l*2+1]*2+1]+1,h>u&&(h=u,_++),r[l*2+1]=h,!(l>i)&&(t.bl_count[h]++,p=0,l>=s&&(p=a[l-s]),v=r[l*2],t.opt_len+=v*(h+p),o&&(t.static_len+=v*(n[l*2+1]+p)));if(_!==0){do{for(h=u-1;t.bl_count[h]===0;)h--;t.bl_count[h]--,t.bl_count[h+1]+=2,t.bl_count[u]--,_-=2}while(_>0);for(h=u;h!==0;h--)for(l=t.bl_count[h];l!==0;)d=t.heap[--c],!(d>i)&&(r[d*2+1]!==h&&(t.opt_len+=(h-r[d*2+1])*r[d*2],r[d*2+1]=h),l--)}}function SB(t,e,r){var i=new Array(yo+1),n=0,o,a;for(o=1;o<=yo;o++)i[o]=n=n+r[o-1]<<1;for(a=0;a<=e;a++){var s=t[a*2+1];s!==0&&(t[a*2]=xB(i[s]++,s))}}function Y4(){var t,e,r,i,n,o=new Array(yo+1);for(r=0,i=0;i<Rw-1;i++)for(Cw[i]=r,t=0;t<1<<Pw[i];t++)vu[r++]=i;for(vu[r-1]=i,n=0,i=0;i<16;i++)for(Np[i]=n,t=0;t<1<<Up[i];t++)yu[n++]=i;for(n>>=7;i<Ya;i++)for(Np[i]=n<<7,t=0;t<1<<Up[i]-7;t++)yu[256+n++]=i;for(e=0;e<=yo;e++)o[e]=0;for(t=0;t<=143;)Ln[t*2+1]=8,t++,o[8]++;for(;t<=255;)Ln[t*2+1]=9,t++,o[9]++;for(;t<=279;)Ln[t*2+1]=7,t++,o[7]++;for(;t<=287;)Ln[t*2+1]=8,t++,o[8]++;for(SB(Ln,gu+1,o),t=0;t<Ya;t++)mu[t*2+1]=5,mu[t*2]=xB(t,5);vB=new Uw(Ln,Pw,bu+1,gu,yo),_B=new Uw(mu,Up,0,Ya,yo),bB=new Uw(new Array(0),W4,0,jw,H4)}function IB(t){var e;for(e=0;e<gu;e++)t.dyn_ltree[e*2]=0;for(e=0;e<Ya;e++)t.dyn_dtree[e*2]=0;for(e=0;e<jw;e++)t.bl_tree[e*2]=0;t.dyn_ltree[Mw*2]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function $B(t){t.bi_valid>8?_u(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function X4(t,e,r,i){$B(t),i&&(_u(t,r),_u(t,~r)),F4.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}function sB(t,e,r,i){var n=e*2,o=r*2;return t[n]<t[o]||t[n]===t[o]&&i[e]<=i[r]}function Lw(t,e,r){for(var i=t.heap[r],n=r<<1;n<=t.heap_len&&(n<t.heap_len&&sB(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!sB(e,i,t.heap[n],t.depth));)t.heap[r]=t.heap[n],r=n,n<<=1;t.heap[r]=i}function cB(t,e,r){var i,n,o=0,a,s;if(t.last_lit!==0)do i=t.pending_buf[t.d_buf+o*2]<<8|t.pending_buf[t.d_buf+o*2+1],n=t.pending_buf[t.l_buf+o],o++,i===0?nn(t,n,e):(a=vu[n],nn(t,a+bu+1,e),s=Pw[a],s!==0&&(n-=Cw[a],Lt(t,n,s)),i--,a=wB(i),nn(t,a,r),s=Up[a],s!==0&&(i-=Np[a],Lt(t,i,s)));while(o<t.last_lit);nn(t,Mw,e)}function Fw(t,e){var r=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,o=e.stat_desc.elems,a,s,u=-1,c;for(t.heap_len=0,t.heap_max=pB,a=0;a<o;a++)r[a*2]!==0?(t.heap[++t.heap_len]=u=a,t.depth[a]=0):r[a*2+1]=0;for(;t.heap_len<2;)c=t.heap[++t.heap_len]=u<2?++u:0,r[c*2]=1,t.depth[c]=0,t.opt_len--,n&&(t.static_len-=i[c*2+1]);for(e.max_code=u,a=t.heap_len>>1;a>=1;a--)Lw(t,r,a);c=o;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Lw(t,r,1),s=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=s,r[c*2]=r[a*2]+r[s*2],t.depth[c]=(t.depth[a]>=t.depth[s]?t.depth[a]:t.depth[s])+1,r[a*2+1]=r[s*2+1]=c,t.heap[1]=c++,Lw(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],K4(t,e),SB(r,u,t.bl_count)}function uB(t,e,r){var i,n=-1,o,a=e[1],s=0,u=7,c=4;for(a===0&&(u=138,c=3),e[(r+1)*2+1]=65535,i=0;i<=r;i++)o=a,a=e[(i+1)*2+1],!(++s<u&&o===a)&&(s<c?t.bl_tree[o*2]+=s:o!==0?(o!==n&&t.bl_tree[o*2]++,t.bl_tree[hB*2]++):s<=10?t.bl_tree[mB*2]++:t.bl_tree[gB*2]++,s=0,n=o,a===0?(u=138,c=3):o===a?(u=6,c=3):(u=7,c=4))}function lB(t,e,r){var i,n=-1,o,a=e[1],s=0,u=7,c=4;for(a===0&&(u=138,c=3),i=0;i<=r;i++)if(o=a,a=e[(i+1)*2+1],!(++s<u&&o===a)){if(s<c)do nn(t,o,t.bl_tree);while(--s!==0);else o!==0?(o!==n&&(nn(t,o,t.bl_tree),s--),nn(t,hB,t.bl_tree),Lt(t,s-3,2)):s<=10?(nn(t,mB,t.bl_tree),Lt(t,s-3,3)):(nn(t,gB,t.bl_tree),Lt(t,s-11,7));s=0,n=o,a===0?(u=138,c=3):o===a?(u=6,c=3):(u=7,c=4)}}function q4(t){var e;for(uB(t,t.dyn_ltree,t.l_desc.max_code),uB(t,t.dyn_dtree,t.d_desc.max_code),Fw(t,t.bl_desc),e=jw-1;e>=3&&t.bl_tree[yB[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e}function Q4(t,e,r,i){var n;for(Lt(t,e-257,5),Lt(t,r-1,5),Lt(t,i-4,4),n=0;n<i;n++)Lt(t,t.bl_tree[yB[n]*2+1],3);lB(t,t.dyn_ltree,e-1),lB(t,t.dyn_dtree,r-1)}function eL(t){var e=4093624447,r;for(r=0;r<=31;r++,e>>>=1)if(e&1&&t.dyn_ltree[r*2]!==0)return oB;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return aB;for(r=32;r<bu;r++)if(t.dyn_ltree[r*2]!==0)return aB;return oB}var dB=!1;function tL(t){dB||(Y4(),dB=!0),t.l_desc=new Nw(t.dyn_ltree,vB),t.d_desc=new Nw(t.dyn_dtree,_B),t.bl_desc=new Nw(t.bl_tree,bB),t.bi_buf=0,t.bi_valid=0,IB(t)}function kB(t,e,r,i){Lt(t,(M4<<1)+(i?1:0),3),X4(t,e,r,!0)}function rL(t){Lt(t,fB<<1,3),nn(t,Mw,Ln),G4(t)}function nL(t,e,r,i){var n,o,a=0;t.level>0?(t.strm.data_type===j4&&(t.strm.data_type=eL(t)),Fw(t,t.l_desc),Fw(t,t.d_desc),a=q4(t),n=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=n&&(n=o)):n=o=r+5,r+4<=n&&e!==-1?kB(t,e,r,i):t.strategy===R4||o===n?(Lt(t,(fB<<1)+(i?1:0),3),cB(t,Ln,mu)):(Lt(t,(C4<<1)+(i?1:0),3),Q4(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),cB(t,t.dyn_ltree,t.dyn_dtree)),IB(t),i&&$B(t)}function iL(t,e,r){return t.pending_buf[t.d_buf+t.last_lit*2]=e>>>8&255,t.pending_buf[t.d_buf+t.last_lit*2+1]=e&255,t.pending_buf[t.l_buf+t.last_lit]=r&255,t.last_lit++,e===0?t.dyn_ltree[r*2]++:(t.matches++,e--,t.dyn_ltree[(vu[r]+bu+1)*2]++,t.dyn_dtree[wB(e)*2]++),t.last_lit===t.lit_bufsize-1}qa._tr_init=tL;qa._tr_stored_block=kB;qa._tr_flush_block=nL;qa._tr_tally=iL;qa._tr_align=rL});var Vw=tt((a7,AB)=>{"use strict";function oL(t,e,r,i){for(var n=t&65535|0,o=t>>>16&65535|0,a=0;r!==0;){a=r>2e3?2e3:r,r-=a;do n=n+e[i++]|0,o=o+n|0;while(--a);n%=65521,o%=65521}return n|o<<16|0}AB.exports=oL});var Zw=tt((s7,BB)=>{"use strict";function aL(){for(var t,e=[],r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;e[r]=t}return e}var sL=aL();function cL(t,e,r,i){var n=sL,o=i+r;t^=-1;for(var a=i;a<o;a++)t=t>>>8^n[(t^e[a])&255];return t^-1}BB.exports=cL});var Lp=tt((c7,TB)=>{"use strict";TB.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 RB=tt(sn=>{"use strict";var It=Nn(),ur=DB(),UB=Vw(),gi=Zw(),uL=Lp(),wo=0,lL=1,dL=3,wi=4,zB=5,an=0,OB=1,lr=-2,fL=-3,Hw=-5,pL=-1,hL=1,Pp=2,mL=3,gL=4,yL=0,vL=2,Mp=8,_L=9,bL=15,wL=8,xL=29,SL=256,Jw=SL+1+xL,IL=30,$L=19,kL=2*Jw+1,DL=15,me=3,_i=258,Ar=_i+me+1,AL=32,Cp=42,Gw=69,Fp=73,Rp=91,jp=103,vo=113,xu=666,et=1,Su=2,_o=3,ts=4,BL=3;function bi(t,e){return t.msg=uL[e],e}function EB(t){return(t<<1)-(t>4?9:0)}function vi(t){for(var e=t.length;--e>=0;)t[e]=0}function yi(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),r!==0&&(It.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,e.pending===0&&(e.pending_out=0))}function st(t,e){ur._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,yi(t.strm)}function ye(t,e){t.pending_buf[t.pending++]=e}function wu(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255}function TL(t,e,r,i){var n=t.avail_in;return n>i&&(n=i),n===0?0:(t.avail_in-=n,It.arraySet(e,t.input,t.next_in,n,r),t.state.wrap===1?t.adler=UB(t.adler,e,n,r):t.state.wrap===2&&(t.adler=gi(t.adler,e,n,r)),t.next_in+=n,t.total_in+=n,n)}function NB(t,e){var r=t.max_chain_length,i=t.strstart,n,o,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Ar?t.strstart-(t.w_size-Ar):0,c=t.window,l=t.w_mask,d=t.prev,h=t.strstart+_i,p=c[i+a-1],v=c[i+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do if(n=e,!(c[n+a]!==v||c[n+a-1]!==p||c[n]!==c[i]||c[++n]!==c[i+1])){i+=2,n++;do;while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(o=_i-(h-i),i=h-_i,o>a){if(t.match_start=e,a=o,o>=s)break;p=c[i+a-1],v=c[i+a]}}while((e=d[e&l])>u&&--r!==0);return a<=t.lookahead?a:t.lookahead}function bo(t){var e=t.w_size,r,i,n,o,a;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-Ar)){It.arraySet(t.window,t.window,e,e,0),t.match_start-=e,t.strstart-=e,t.block_start-=e,i=t.hash_size,r=i;do n=t.head[--r],t.head[r]=n>=e?n-e:0;while(--i);i=e,r=i;do n=t.prev[--r],t.prev[r]=n>=e?n-e:0;while(--i);o+=e}if(t.strm.avail_in===0)break;if(i=TL(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=i,t.lookahead+t.insert>=me)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+me-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<me)););}while(t.lookahead<Ar&&t.strm.avail_in!==0)}function zL(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(bo(t),t.lookahead===0&&e===wo)return et;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+r;if((t.strstart===0||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,st(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-Ar&&(st(t,!1),t.strm.avail_out===0))return et}return t.insert=0,e===wi?(st(t,!0),t.strm.avail_out===0?_o:ts):(t.strstart>t.block_start&&(st(t,!1),t.strm.avail_out===0),et)}function Ww(t,e){for(var r,i;;){if(t.lookahead<Ar){if(bo(t),t.lookahead<Ar&&e===wo)return et;if(t.lookahead===0)break}if(r=0,t.lookahead>=me&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+me-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),r!==0&&t.strstart-r<=t.w_size-Ar&&(t.match_length=NB(t,r)),t.match_length>=me)if(i=ur._tr_tally(t,t.strstart-t.match_start,t.match_length-me),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=me){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+me-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=ur._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(st(t,!1),t.strm.avail_out===0))return et}return t.insert=t.strstart<me-1?t.strstart:me-1,e===wi?(st(t,!0),t.strm.avail_out===0?_o:ts):t.last_lit&&(st(t,!1),t.strm.avail_out===0)?et:Su}function Qa(t,e){for(var r,i,n;;){if(t.lookahead<Ar){if(bo(t),t.lookahead<Ar&&e===wo)return et;if(t.lookahead===0)break}if(r=0,t.lookahead>=me&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+me-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=me-1,r!==0&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-Ar&&(t.match_length=NB(t,r),t.match_length<=5&&(t.strategy===hL||t.match_length===me&&t.strstart-t.match_start>4096)&&(t.match_length=me-1)),t.prev_length>=me&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-me,i=ur._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-me),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+me-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=me-1,t.strstart++,i&&(st(t,!1),t.strm.avail_out===0))return et}else if(t.match_available){if(i=ur._tr_tally(t,0,t.window[t.strstart-1]),i&&st(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return et}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=ur._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<me-1?t.strstart:me-1,e===wi?(st(t,!0),t.strm.avail_out===0?_o:ts):t.last_lit&&(st(t,!1),t.strm.avail_out===0)?et:Su}function OL(t,e){for(var r,i,n,o,a=t.window;;){if(t.lookahead<=_i){if(bo(t),t.lookahead<=_i&&e===wo)return et;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=me&&t.strstart>0&&(n=t.strstart-1,i=a[n],i===a[++n]&&i===a[++n]&&i===a[++n])){o=t.strstart+_i;do;while(i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&n<o);t.match_length=_i-(o-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=me?(r=ur._tr_tally(t,1,t.match_length-me),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=ur._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(st(t,!1),t.strm.avail_out===0))return et}return t.insert=0,e===wi?(st(t,!0),t.strm.avail_out===0?_o:ts):t.last_lit&&(st(t,!1),t.strm.avail_out===0)?et:Su}function EL(t,e){for(var r;;){if(t.lookahead===0&&(bo(t),t.lookahead===0)){if(e===wo)return et;break}if(t.match_length=0,r=ur._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(st(t,!1),t.strm.avail_out===0))return et}return t.insert=0,e===wi?(st(t,!0),t.strm.avail_out===0?_o:ts):t.last_lit&&(st(t,!1),t.strm.avail_out===0)?et:Su}function on(t,e,r,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=i,this.func=n}var es;es=[new on(0,0,0,0,zL),new on(4,4,8,4,Ww),new on(4,5,16,8,Ww),new on(4,6,32,32,Ww),new on(4,4,16,16,Qa),new on(8,16,32,32,Qa),new on(8,16,128,128,Qa),new on(8,32,128,256,Qa),new on(32,128,258,1024,Qa),new on(32,258,258,4096,Qa)];function UL(t){t.window_size=2*t.w_size,vi(t.head),t.max_lazy_match=es[t.level].max_lazy,t.good_match=es[t.level].good_length,t.nice_match=es[t.level].nice_length,t.max_chain_length=es[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=me-1,t.match_available=0,t.ins_h=0}function NL(){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=Mp,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 It.Buf16(kL*2),this.dyn_dtree=new It.Buf16((2*IL+1)*2),this.bl_tree=new It.Buf16((2*$L+1)*2),vi(this.dyn_ltree),vi(this.dyn_dtree),vi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new It.Buf16(DL+1),this.heap=new It.Buf16(2*Jw+1),vi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new It.Buf16(2*Jw+1),vi(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 LB(t){var e;return!t||!t.state?bi(t,lr):(t.total_in=t.total_out=0,t.data_type=vL,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?Cp:vo,t.adler=e.wrap===2?0:1,e.last_flush=wo,ur._tr_init(e),an)}function PB(t){var e=LB(t);return e===an&&UL(t.state),e}function LL(t,e){return!t||!t.state||t.state.wrap!==2?lr:(t.state.gzhead=e,an)}function FB(t,e,r,i,n,o){if(!t)return lr;var a=1;if(e===pL&&(e=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),n<1||n>_L||r!==Mp||i<8||i>15||e<0||e>9||o<0||o>gL)return bi(t,lr);i===8&&(i=9);var s=new NL;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+me-1)/me),s.window=new It.Buf8(s.w_size*2),s.head=new It.Buf16(s.hash_size),s.prev=new It.Buf16(s.w_size),s.lit_bufsize=1<<n+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new It.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=r,PB(t)}function PL(t,e){return FB(t,e,Mp,bL,wL,yL)}function FL(t,e){var r,i,n,o;if(!t||!t.state||e>zB||e<0)return t?bi(t,lr):lr;if(i=t.state,!t.output||!t.input&&t.avail_in!==0||i.status===xu&&e!==wi)return bi(t,t.avail_out===0?Hw:lr);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===Cp)if(i.wrap===2)t.adler=0,ye(i,31),ye(i,139),ye(i,8),i.gzhead?(ye(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ye(i,i.gzhead.time&255),ye(i,i.gzhead.time>>8&255),ye(i,i.gzhead.time>>16&255),ye(i,i.gzhead.time>>24&255),ye(i,i.level===9?2:i.strategy>=Pp||i.level<2?4:0),ye(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(ye(i,i.gzhead.extra.length&255),ye(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=gi(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Gw):(ye(i,0),ye(i,0),ye(i,0),ye(i,0),ye(i,0),ye(i,i.level===9?2:i.strategy>=Pp||i.level<2?4:0),ye(i,BL),i.status=vo);else{var a=Mp+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=Pp||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,a|=s<<6,i.strstart!==0&&(a|=AL),a+=31-a%31,i.status=vo,wu(i,a),i.strstart!==0&&(wu(i,t.adler>>>16),wu(i,t.adler&65535)),t.adler=1}if(i.status===Gw)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=gi(t.adler,i.pending_buf,i.pending-n,n)),yi(t),n=i.pending,i.pending===i.pending_buf_size));)ye(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=gi(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Fp)}else i.status=Fp;if(i.status===Fp)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=gi(t.adler,i.pending_buf,i.pending-n,n)),yi(t),n=i.pending,i.pending===i.pending_buf_size)){o=1;break}i.gzindex<i.gzhead.name.length?o=i.gzhead.name.charCodeAt(i.gzindex++)&255:o=0,ye(i,o)}while(o!==0);i.gzhead.hcrc&&i.pending>n&&(t.adler=gi(t.adler,i.pending_buf,i.pending-n,n)),o===0&&(i.gzindex=0,i.status=Rp)}else i.status=Rp;if(i.status===Rp)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=gi(t.adler,i.pending_buf,i.pending-n,n)),yi(t),n=i.pending,i.pending===i.pending_buf_size)){o=1;break}i.gzindex<i.gzhead.comment.length?o=i.gzhead.comment.charCodeAt(i.gzindex++)&255:o=0,ye(i,o)}while(o!==0);i.gzhead.hcrc&&i.pending>n&&(t.adler=gi(t.adler,i.pending_buf,i.pending-n,n)),o===0&&(i.status=jp)}else i.status=jp;if(i.status===jp&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&yi(t),i.pending+2<=i.pending_buf_size&&(ye(i,t.adler&255),ye(i,t.adler>>8&255),t.adler=0,i.status=vo)):i.status=vo),i.pending!==0){if(yi(t),t.avail_out===0)return i.last_flush=-1,an}else if(t.avail_in===0&&EB(e)<=EB(r)&&e!==wi)return bi(t,Hw);if(i.status===xu&&t.avail_in!==0)return bi(t,Hw);if(t.avail_in!==0||i.lookahead!==0||e!==wo&&i.status!==xu){var u=i.strategy===Pp?EL(i,e):i.strategy===mL?OL(i,e):es[i.level].func(i,e);if((u===_o||u===ts)&&(i.status=xu),u===et||u===_o)return t.avail_out===0&&(i.last_flush=-1),an;if(u===Su&&(e===lL?ur._tr_align(i):e!==zB&&(ur._tr_stored_block(i,0,0,!1),e===dL&&(vi(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),yi(t),t.avail_out===0))return i.last_flush=-1,an}return e!==wi?an:i.wrap<=0?OB:(i.wrap===2?(ye(i,t.adler&255),ye(i,t.adler>>8&255),ye(i,t.adler>>16&255),ye(i,t.adler>>24&255),ye(i,t.total_in&255),ye(i,t.total_in>>8&255),ye(i,t.total_in>>16&255),ye(i,t.total_in>>24&255)):(wu(i,t.adler>>>16),wu(i,t.adler&65535)),yi(t),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?an:OB)}function RL(t){var e;return!t||!t.state?lr:(e=t.state.status,e!==Cp&&e!==Gw&&e!==Fp&&e!==Rp&&e!==jp&&e!==vo&&e!==xu?bi(t,lr):(t.state=null,e===vo?bi(t,fL):an))}function jL(t,e){var r=e.length,i,n,o,a,s,u,c,l;if(!t||!t.state||(i=t.state,a=i.wrap,a===2||a===1&&i.status!==Cp||i.lookahead))return lr;for(a===1&&(t.adler=UB(t.adler,e,r,0)),i.wrap=0,r>=i.w_size&&(a===0&&(vi(i.head),i.strstart=0,i.block_start=0,i.insert=0),l=new It.Buf8(i.w_size),It.arraySet(l,e,r-i.w_size,i.w_size,0),e=l,r=i.w_size),s=t.avail_in,u=t.next_in,c=t.input,t.avail_in=r,t.next_in=0,t.input=e,bo(i);i.lookahead>=me;){n=i.strstart,o=i.lookahead-(me-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+me-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--o);i.strstart=n,i.lookahead=me-1,bo(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=me-1,i.match_available=0,t.next_in=u,t.input=c,t.avail_in=s,i.wrap=a,an}sn.deflateInit=PL;sn.deflateInit2=FB;sn.deflateReset=PB;sn.deflateResetKeep=LB;sn.deflateSetHeader=LL;sn.deflate=FL;sn.deflateEnd=RL;sn.deflateSetDictionary=jL;sn.deflateInfo="pako deflate (from Nodeca project)"});var Kw=tt(rs=>{"use strict";var Vp=Nn(),jB=!0,MB=!0;try{String.fromCharCode.apply(null,[0])}catch{jB=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{MB=!1}var Iu=new Vp.Buf8(256);for(Pn=0;Pn<256;Pn++)Iu[Pn]=Pn>=252?6:Pn>=248?5:Pn>=240?4:Pn>=224?3:Pn>=192?2:1;var Pn;Iu[254]=Iu[254]=1;rs.string2buf=function(t){var e,r,i,n,o,a=t.length,s=0;for(n=0;n<a;n++)r=t.charCodeAt(n),(r&64512)===55296&&n+1<a&&(i=t.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Vp.Buf8(s),o=0,n=0;o<s;n++)r=t.charCodeAt(n),(r&64512)===55296&&n+1<a&&(i=t.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|r&63):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|r&63):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|r&63);return e};function CB(t,e){if(e<65534&&(t.subarray&&MB||!t.subarray&&jB))return String.fromCharCode.apply(null,Vp.shrinkBuf(t,e));for(var r="",i=0;i<e;i++)r+=String.fromCharCode(t[i]);return r}rs.buf2binstring=function(t){return CB(t,t.length)};rs.binstring2buf=function(t){for(var e=new Vp.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e};rs.buf2string=function(t,e){var r,i,n,o,a=e||t.length,s=new Array(a*2);for(i=0,r=0;r<a;){if(n=t[r++],n<128){s[i++]=n;continue}if(o=Iu[n],o>4){s[i++]=65533,r+=o-1;continue}for(n&=o===2?31:o===3?15:7;o>1&&r<a;)n=n<<6|t[r++]&63,o--;if(o>1){s[i++]=65533;continue}n<65536?s[i++]=n:(n-=65536,s[i++]=55296|n>>10&1023,s[i++]=56320|n&1023)}return CB(s,i)};rs.utf8border=function(t,e){var r;for(e=e||t.length,e>t.length&&(e=t.length),r=e-1;r>=0&&(t[r]&192)===128;)r--;return r<0||r===0?e:r+Iu[t[r]]>e?r:e}});var Yw=tt((d7,VB)=>{"use strict";function ML(){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}VB.exports=ML});var JB=tt(Du=>{"use strict";var $u=RB(),ku=Nn(),qw=Kw(),Qw=Lp(),CL=Yw(),WB=Object.prototype.toString,VL=0,Xw=4,ns=0,ZB=1,HB=2,ZL=-1,HL=0,WL=8;function xo(t){if(!(this instanceof xo))return new xo(t);this.options=ku.assign({level:ZL,method:WL,chunkSize:16384,windowBits:15,memLevel:8,strategy:HL,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new CL,this.strm.avail_out=0;var r=$u.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==ns)throw new Error(Qw[r]);if(e.header&&$u.deflateSetHeader(this.strm,e.header),e.dictionary){var i;if(typeof e.dictionary=="string"?i=qw.string2buf(e.dictionary):WB.call(e.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(e.dictionary):i=e.dictionary,r=$u.deflateSetDictionary(this.strm,i),r!==ns)throw new Error(Qw[r]);this._dict_set=!0}}xo.prototype.push=function(t,e){var r=this.strm,i=this.options.chunkSize,n,o;if(this.ended)return!1;o=e===~~e?e:e===!0?Xw:VL,typeof t=="string"?r.input=qw.string2buf(t):WB.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new ku.Buf8(i),r.next_out=0,r.avail_out=i),n=$u.deflate(r,o),n!==ZB&&n!==ns)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(o===Xw||o===HB))&&(this.options.to==="string"?this.onData(qw.buf2binstring(ku.shrinkBuf(r.output,r.next_out))):this.onData(ku.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==ZB);return o===Xw?(n=$u.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===ns):(o===HB&&(this.onEnd(ns),r.avail_out=0),!0)};xo.prototype.onData=function(t){this.chunks.push(t)};xo.prototype.onEnd=function(t){t===ns&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ku.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function e0(t,e){var r=new xo(e);if(r.push(t,!0),r.err)throw r.msg||Qw[r.err];return r.result}function JL(t,e){return e=e||{},e.raw=!0,e0(t,e)}function GL(t,e){return e=e||{},e.gzip=!0,e0(t,e)}Du.Deflate=xo;Du.deflate=e0;Du.deflateRaw=JL;Du.gzip=GL});var KB=tt((p7,GB)=>{"use strict";var Zp=30,KL=12;GB.exports=function(e,r){var i,n,o,a,s,u,c,l,d,h,p,v,_,$,B,Z,U,z,w,D,q,H,ie,pe,Y;i=e.state,n=e.next_in,pe=e.input,o=n+(e.avail_in-5),a=e.next_out,Y=e.output,s=a-(r-e.avail_out),u=a+(e.avail_out-257),c=i.dmax,l=i.wsize,d=i.whave,h=i.wnext,p=i.window,v=i.hold,_=i.bits,$=i.lencode,B=i.distcode,Z=(1<<i.lenbits)-1,U=(1<<i.distbits)-1;e:do{_<15&&(v+=pe[n++]<<_,_+=8,v+=pe[n++]<<_,_+=8),z=$[v&Z];t:for(;;){if(w=z>>>24,v>>>=w,_-=w,w=z>>>16&255,w===0)Y[a++]=z&65535;else if(w&16){D=z&65535,w&=15,w&&(_<w&&(v+=pe[n++]<<_,_+=8),D+=v&(1<<w)-1,v>>>=w,_-=w),_<15&&(v+=pe[n++]<<_,_+=8,v+=pe[n++]<<_,_+=8),z=B[v&U];r:for(;;){if(w=z>>>24,v>>>=w,_-=w,w=z>>>16&255,w&16){if(q=z&65535,w&=15,_<w&&(v+=pe[n++]<<_,_+=8,_<w&&(v+=pe[n++]<<_,_+=8)),q+=v&(1<<w)-1,q>c){e.msg="invalid distance too far back",i.mode=Zp;break e}if(v>>>=w,_-=w,w=a-s,q>w){if(w=q-w,w>d&&i.sane){e.msg="invalid distance too far back",i.mode=Zp;break e}if(H=0,ie=p,h===0){if(H+=l-w,w<D){D-=w;do Y[a++]=p[H++];while(--w);H=a-q,ie=Y}}else if(h<w){if(H+=l+h-w,w-=h,w<D){D-=w;do Y[a++]=p[H++];while(--w);if(H=0,h<D){w=h,D-=w;do Y[a++]=p[H++];while(--w);H=a-q,ie=Y}}}else if(H+=h-w,w<D){D-=w;do Y[a++]=p[H++];while(--w);H=a-q,ie=Y}for(;D>2;)Y[a++]=ie[H++],Y[a++]=ie[H++],Y[a++]=ie[H++],D-=3;D&&(Y[a++]=ie[H++],D>1&&(Y[a++]=ie[H++]))}else{H=a-q;do Y[a++]=Y[H++],Y[a++]=Y[H++],Y[a++]=Y[H++],D-=3;while(D>2);D&&(Y[a++]=Y[H++],D>1&&(Y[a++]=Y[H++]))}}else if((w&64)===0){z=B[(z&65535)+(v&(1<<w)-1)];continue r}else{e.msg="invalid distance code",i.mode=Zp;break e}break}}else if((w&64)===0){z=$[(z&65535)+(v&(1<<w)-1)];continue t}else if(w&32){i.mode=KL;break e}else{e.msg="invalid literal/length code",i.mode=Zp;break e}break}}while(n<o&&a<u);D=_>>3,n-=D,_-=D<<3,v&=(1<<_)-1,e.next_in=n,e.next_out=a,e.avail_in=n<o?5+(o-n):5-(n-o),e.avail_out=a<u?257+(u-a):257-(a-u),i.hold=v,i.bits=_}});var rT=tt((h7,tT)=>{"use strict";var YB=Nn(),is=15,XB=852,qB=592,QB=0,t0=1,eT=2,YL=[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],XL=[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],qL=[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],QL=[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];tT.exports=function(e,r,i,n,o,a,s,u){var c=u.bits,l=0,d=0,h=0,p=0,v=0,_=0,$=0,B=0,Z=0,U=0,z,w,D,q,H,ie=null,pe=0,Y,je=new YB.Buf16(is+1),ct=new YB.Buf16(is+1),ge=null,le=0,rt,ln,dn;for(l=0;l<=is;l++)je[l]=0;for(d=0;d<n;d++)je[r[i+d]]++;for(v=c,p=is;p>=1&&je[p]===0;p--);if(v>p&&(v=p),p===0)return o[a++]=1<<24|64<<16|0,o[a++]=1<<24|64<<16|0,u.bits=1,0;for(h=1;h<p&&je[h]===0;h++);for(v<h&&(v=h),B=1,l=1;l<=is;l++)if(B<<=1,B-=je[l],B<0)return-1;if(B>0&&(e===QB||p!==1))return-1;for(ct[1]=0,l=1;l<is;l++)ct[l+1]=ct[l]+je[l];for(d=0;d<n;d++)r[i+d]!==0&&(s[ct[r[i+d]]++]=d);if(e===QB?(ie=ge=s,Y=19):e===t0?(ie=YL,pe-=257,ge=XL,le-=257,Y=256):(ie=qL,ge=QL,Y=-1),U=0,d=0,l=h,H=a,_=v,$=0,D=-1,Z=1<<v,q=Z-1,e===t0&&Z>XB||e===eT&&Z>qB)return 1;for(;;){rt=l-$,s[d]<Y?(ln=0,dn=s[d]):s[d]>Y?(ln=ge[le+s[d]],dn=ie[pe+s[d]]):(ln=96,dn=0),z=1<<l-$,w=1<<_,h=w;do w-=z,o[H+(U>>$)+w]=rt<<24|ln<<16|dn|0;while(w!==0);for(z=1<<l-1;U&z;)z>>=1;if(z!==0?(U&=z-1,U+=z):U=0,d++,--je[l]===0){if(l===p)break;l=r[i+s[d]]}if(l>v&&(U&q)!==D){for($===0&&($=v),H+=h,_=l-$,B=1<<_;_+$<p&&(B-=je[_+$],!(B<=0));)_++,B<<=1;if(Z+=1<<_,e===t0&&Z>XB||e===eT&&Z>qB)return 1;D=U&q,o[D]=v<<24|_<<16|H-a|0}}return U!==0&&(o[H+U]=l-$<<24|64<<16|0),u.bits=v,0}});var PT=tt(Br=>{"use strict";var Xt=Nn(),s0=Vw(),cn=Zw(),eP=KB(),Au=rT(),tP=0,AT=1,BT=2,nT=4,rP=5,Hp=6,So=0,nP=1,iP=2,dr=-2,TT=-3,c0=-4,oP=-5,iT=8,zT=1,oT=2,aT=3,sT=4,cT=5,uT=6,lT=7,dT=8,fT=9,pT=10,Gp=11,Fn=12,r0=13,hT=14,n0=15,mT=16,gT=17,yT=18,vT=19,Wp=20,Jp=21,_T=22,bT=23,wT=24,xT=25,ST=26,i0=27,IT=28,$T=29,Pe=30,u0=31,aP=32,sP=852,cP=592,uP=15,lP=uP;function kT(t){return(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24)}function dP(){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 Xt.Buf16(320),this.work=new Xt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function OT(t){var e;return!t||!t.state?dr:(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=zT,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Xt.Buf32(sP),e.distcode=e.distdyn=new Xt.Buf32(cP),e.sane=1,e.back=-1,So)}function ET(t){var e;return!t||!t.state?dr:(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,OT(t))}function UT(t,e){var r,i;return!t||!t.state||(i=t.state,e<0?(r=0,e=-e):(r=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?dr:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=r,i.wbits=e,ET(t))}function NT(t,e){var r,i;return t?(i=new dP,t.state=i,i.window=null,r=UT(t,e),r!==So&&(t.state=null),r):dr}function fP(t){return NT(t,lP)}var DT=!0,o0,a0;function pP(t){if(DT){var e;for(o0=new Xt.Buf32(512),a0=new Xt.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Au(AT,t.lens,0,288,o0,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Au(BT,t.lens,0,32,a0,0,t.work,{bits:5}),DT=!1}t.lencode=o0,t.lenbits=9,t.distcode=a0,t.distbits=5}function LT(t,e,r,i){var n,o=t.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Xt.Buf8(o.wsize)),i>=o.wsize?(Xt.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n=o.wsize-o.wnext,n>i&&(n=i),Xt.arraySet(o.window,e,r-i,n,o.wnext),i-=n,i?(Xt.arraySet(o.window,e,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=n,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=n))),0}function hP(t,e){var r,i,n,o,a,s,u,c,l,d,h,p,v,_,$=0,B,Z,U,z,w,D,q,H,ie=new Xt.Buf8(4),pe,Y,je=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&t.avail_in!==0)return dr;r=t.state,r.mode===Fn&&(r.mode=r0),a=t.next_out,n=t.output,u=t.avail_out,o=t.next_in,i=t.input,s=t.avail_in,c=r.hold,l=r.bits,d=s,h=u,H=So;e:for(;;)switch(r.mode){case zT:if(r.wrap===0){r.mode=r0;break}for(;l<16;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if(r.wrap&2&&c===35615){r.check=0,ie[0]=c&255,ie[1]=c>>>8&255,r.check=cn(r.check,ie,2,0),c=0,l=0,r.mode=oT;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=Pe;break}if((c&15)!==iT){t.msg="unknown compression method",r.mode=Pe;break}if(c>>>=4,l-=4,q=(c&15)+8,r.wbits===0)r.wbits=q;else if(q>r.wbits){t.msg="invalid window size",r.mode=Pe;break}r.dmax=1<<q,t.adler=r.check=1,r.mode=c&512?pT:Fn,c=0,l=0;break;case oT:for(;l<16;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if(r.flags=c,(r.flags&255)!==iT){t.msg="unknown compression method",r.mode=Pe;break}if(r.flags&57344){t.msg="unknown header flags set",r.mode=Pe;break}r.head&&(r.head.text=c>>8&1),r.flags&512&&(ie[0]=c&255,ie[1]=c>>>8&255,r.check=cn(r.check,ie,2,0)),c=0,l=0,r.mode=aT;case aT:for(;l<32;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}r.head&&(r.head.time=c),r.flags&512&&(ie[0]=c&255,ie[1]=c>>>8&255,ie[2]=c>>>16&255,ie[3]=c>>>24&255,r.check=cn(r.check,ie,4,0)),c=0,l=0,r.mode=sT;case sT:for(;l<16;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}r.head&&(r.head.xflags=c&255,r.head.os=c>>8),r.flags&512&&(ie[0]=c&255,ie[1]=c>>>8&255,r.check=cn(r.check,ie,2,0)),c=0,l=0,r.mode=cT;case cT:if(r.flags&1024){for(;l<16;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}r.length=c,r.head&&(r.head.extra_len=c),r.flags&512&&(ie[0]=c&255,ie[1]=c>>>8&255,r.check=cn(r.check,ie,2,0)),c=0,l=0}else r.head&&(r.head.extra=null);r.mode=uT;case uT:if(r.flags&1024&&(p=r.length,p>s&&(p=s),p&&(r.head&&(q=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Xt.arraySet(r.head.extra,i,o,p,q)),r.flags&512&&(r.check=cn(r.check,i,p,o)),s-=p,o+=p,r.length-=p),r.length))break e;r.length=0,r.mode=lT;case lT:if(r.flags&2048){if(s===0)break e;p=0;do q=i[o+p++],r.head&&q&&r.length<65536&&(r.head.name+=String.fromCharCode(q));while(q&&p<s);if(r.flags&512&&(r.check=cn(r.check,i,p,o)),s-=p,o+=p,q)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=dT;case dT:if(r.flags&4096){if(s===0)break e;p=0;do q=i[o+p++],r.head&&q&&r.length<65536&&(r.head.comment+=String.fromCharCode(q));while(q&&p<s);if(r.flags&512&&(r.check=cn(r.check,i,p,o)),s-=p,o+=p,q)break e}else r.head&&(r.head.comment=null);r.mode=fT;case fT:if(r.flags&512){for(;l<16;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if(c!==(r.check&65535)){t.msg="header crc mismatch",r.mode=Pe;break}c=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Fn;break;case pT:for(;l<32;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}t.adler=r.check=kT(c),c=0,l=0,r.mode=Gp;case Gp:if(r.havedict===0)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,iP;t.adler=r.check=1,r.mode=Fn;case Fn:if(e===rP||e===Hp)break e;case r0:if(r.last){c>>>=l&7,l-=l&7,r.mode=i0;break}for(;l<3;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}switch(r.last=c&1,c>>>=1,l-=1,c&3){case 0:r.mode=hT;break;case 1:if(pP(r),r.mode=Wp,e===Hp){c>>>=2,l-=2;break e}break;case 2:r.mode=gT;break;case 3:t.msg="invalid block type",r.mode=Pe}c>>>=2,l-=2;break;case hT:for(c>>>=l&7,l-=l&7;l<32;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if((c&65535)!==(c>>>16^65535)){t.msg="invalid stored block lengths",r.mode=Pe;break}if(r.length=c&65535,c=0,l=0,r.mode=n0,e===Hp)break e;case n0:r.mode=mT;case mT:if(p=r.length,p){if(p>s&&(p=s),p>u&&(p=u),p===0)break e;Xt.arraySet(n,i,o,p,a),s-=p,o+=p,u-=p,a+=p,r.length-=p;break}r.mode=Fn;break;case gT:for(;l<14;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if(r.nlen=(c&31)+257,c>>>=5,l-=5,r.ndist=(c&31)+1,c>>>=5,l-=5,r.ncode=(c&15)+4,c>>>=4,l-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=Pe;break}r.have=0,r.mode=yT;case yT:for(;r.have<r.ncode;){for(;l<3;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}r.lens[je[r.have++]]=c&7,c>>>=3,l-=3}for(;r.have<19;)r.lens[je[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,pe={bits:r.lenbits},H=Au(tP,r.lens,0,19,r.lencode,0,r.work,pe),r.lenbits=pe.bits,H){t.msg="invalid code lengths set",r.mode=Pe;break}r.have=0,r.mode=vT;case vT:for(;r.have<r.nlen+r.ndist;){for(;$=r.lencode[c&(1<<r.lenbits)-1],B=$>>>24,Z=$>>>16&255,U=$&65535,!(B<=l);){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if(U<16)c>>>=B,l-=B,r.lens[r.have++]=U;else{if(U===16){for(Y=B+2;l<Y;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if(c>>>=B,l-=B,r.have===0){t.msg="invalid bit length repeat",r.mode=Pe;break}q=r.lens[r.have-1],p=3+(c&3),c>>>=2,l-=2}else if(U===17){for(Y=B+3;l<Y;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}c>>>=B,l-=B,q=0,p=3+(c&7),c>>>=3,l-=3}else{for(Y=B+7;l<Y;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}c>>>=B,l-=B,q=0,p=11+(c&127),c>>>=7,l-=7}if(r.have+p>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=Pe;break}for(;p--;)r.lens[r.have++]=q}}if(r.mode===Pe)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=Pe;break}if(r.lenbits=9,pe={bits:r.lenbits},H=Au(AT,r.lens,0,r.nlen,r.lencode,0,r.work,pe),r.lenbits=pe.bits,H){t.msg="invalid literal/lengths set",r.mode=Pe;break}if(r.distbits=6,r.distcode=r.distdyn,pe={bits:r.distbits},H=Au(BT,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,pe),r.distbits=pe.bits,H){t.msg="invalid distances set",r.mode=Pe;break}if(r.mode=Wp,e===Hp)break e;case Wp:r.mode=Jp;case Jp:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,eP(t,h),a=t.next_out,n=t.output,u=t.avail_out,o=t.next_in,i=t.input,s=t.avail_in,c=r.hold,l=r.bits,r.mode===Fn&&(r.back=-1);break}for(r.back=0;$=r.lencode[c&(1<<r.lenbits)-1],B=$>>>24,Z=$>>>16&255,U=$&65535,!(B<=l);){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if(Z&&(Z&240)===0){for(z=B,w=Z,D=U;$=r.lencode[D+((c&(1<<z+w)-1)>>z)],B=$>>>24,Z=$>>>16&255,U=$&65535,!(z+B<=l);){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}c>>>=z,l-=z,r.back+=z}if(c>>>=B,l-=B,r.back+=B,r.length=U,Z===0){r.mode=ST;break}if(Z&32){r.back=-1,r.mode=Fn;break}if(Z&64){t.msg="invalid literal/length code",r.mode=Pe;break}r.extra=Z&15,r.mode=_T;case _T:if(r.extra){for(Y=r.extra;l<Y;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=bT;case bT:for(;$=r.distcode[c&(1<<r.distbits)-1],B=$>>>24,Z=$>>>16&255,U=$&65535,!(B<=l);){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if((Z&240)===0){for(z=B,w=Z,D=U;$=r.distcode[D+((c&(1<<z+w)-1)>>z)],B=$>>>24,Z=$>>>16&255,U=$&65535,!(z+B<=l);){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}c>>>=z,l-=z,r.back+=z}if(c>>>=B,l-=B,r.back+=B,Z&64){t.msg="invalid distance code",r.mode=Pe;break}r.offset=U,r.extra=Z&15,r.mode=wT;case wT:if(r.extra){for(Y=r.extra;l<Y;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=Pe;break}r.mode=xT;case xT:if(u===0)break e;if(p=h-u,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=Pe;break}p>r.wnext?(p-=r.wnext,v=r.wsize-p):v=r.wnext-p,p>r.length&&(p=r.length),_=r.window}else _=n,v=a-r.offset,p=r.length;p>u&&(p=u),u-=p,r.length-=p;do n[a++]=_[v++];while(--p);r.length===0&&(r.mode=Jp);break;case ST:if(u===0)break e;n[a++]=r.length,u--,r.mode=Jp;break;case i0:if(r.wrap){for(;l<32;){if(s===0)break e;s--,c|=i[o++]<<l,l+=8}if(h-=u,t.total_out+=h,r.total+=h,h&&(t.adler=r.check=r.flags?cn(r.check,n,h,a-h):s0(r.check,n,h,a-h)),h=u,(r.flags?c:kT(c))!==r.check){t.msg="incorrect data check",r.mode=Pe;break}c=0,l=0}r.mode=IT;case IT:if(r.wrap&&r.flags){for(;l<32;){if(s===0)break e;s--,c+=i[o++]<<l,l+=8}if(c!==(r.total&4294967295)){t.msg="incorrect length check",r.mode=Pe;break}c=0,l=0}r.mode=$T;case $T:H=nP;break e;case Pe:H=TT;break e;case u0:return c0;case aP:default:return dr}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,(r.wsize||h!==t.avail_out&&r.mode<Pe&&(r.mode<i0||e!==nT))&<(t,t.output,t.next_out,h-t.avail_out)?(r.mode=u0,c0):(d-=t.avail_in,h-=t.avail_out,t.total_in+=d,t.total_out+=h,r.total+=h,r.wrap&&h&&(t.adler=r.check=r.flags?cn(r.check,n,h,t.next_out-h):s0(r.check,n,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Fn?128:0)+(r.mode===Wp||r.mode===n0?256:0),(d===0&&h===0||e===nT)&&H===So&&(H=oP),H)}function mP(t){if(!t||!t.state)return dr;var e=t.state;return e.window&&(e.window=null),t.state=null,So}function gP(t,e){var r;return!t||!t.state||(r=t.state,(r.wrap&2)===0)?dr:(r.head=e,e.done=!1,So)}function yP(t,e){var r=e.length,i,n,o;return!t||!t.state||(i=t.state,i.wrap!==0&&i.mode!==Gp)?dr:i.mode===Gp&&(n=1,n=s0(n,e,r,0),n!==i.check)?TT:(o=LT(t,e,r,r),o?(i.mode=u0,c0):(i.havedict=1,So))}Br.inflateReset=ET;Br.inflateReset2=UT;Br.inflateResetKeep=OT;Br.inflateInit=fP;Br.inflateInit2=NT;Br.inflate=hP;Br.inflateEnd=mP;Br.inflateGetHeader=gP;Br.inflateSetDictionary=yP;Br.inflateInfo="pako inflate (from Nodeca project)"});var l0=tt((g7,FT)=>{"use strict";FT.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 jT=tt((y7,RT)=>{"use strict";function vP(){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}RT.exports=vP});var CT=tt(Tu=>{"use strict";var os=PT(),Bu=Nn(),Kp=Kw(),He=l0(),d0=Lp(),_P=Yw(),bP=jT(),MT=Object.prototype.toString;function Io(t){if(!(this instanceof Io))return new Io(t);this.options=Bu.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _P,this.strm.avail_out=0;var r=os.inflateInit2(this.strm,e.windowBits);if(r!==He.Z_OK)throw new Error(d0[r]);if(this.header=new bP,os.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Kp.string2buf(e.dictionary):MT.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=os.inflateSetDictionary(this.strm,e.dictionary),r!==He.Z_OK)))throw new Error(d0[r])}Io.prototype.push=function(t,e){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,o,a,s,u,c,l=!1;if(this.ended)return!1;a=e===~~e?e:e===!0?He.Z_FINISH:He.Z_NO_FLUSH,typeof t=="string"?r.input=Kp.binstring2buf(t):MT.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Bu.Buf8(i),r.next_out=0,r.avail_out=i),o=os.inflate(r,He.Z_NO_FLUSH),o===He.Z_NEED_DICT&&n&&(o=os.inflateSetDictionary(this.strm,n)),o===He.Z_BUF_ERROR&&l===!0&&(o=He.Z_OK,l=!1),o!==He.Z_STREAM_END&&o!==He.Z_OK)return this.onEnd(o),this.ended=!0,!1;r.next_out&&(r.avail_out===0||o===He.Z_STREAM_END||r.avail_in===0&&(a===He.Z_FINISH||a===He.Z_SYNC_FLUSH))&&(this.options.to==="string"?(s=Kp.utf8border(r.output,r.next_out),u=r.next_out-s,c=Kp.buf2string(r.output,s),r.next_out=u,r.avail_out=i-u,u&&Bu.arraySet(r.output,r.output,s,u,0),this.onData(c)):this.onData(Bu.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(l=!0)}while((r.avail_in>0||r.avail_out===0)&&o!==He.Z_STREAM_END);return o===He.Z_STREAM_END&&(a=He.Z_FINISH),a===He.Z_FINISH?(o=os.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===He.Z_OK):(a===He.Z_SYNC_FLUSH&&(this.onEnd(He.Z_OK),r.avail_out=0),!0)};Io.prototype.onData=function(t){this.chunks.push(t)};Io.prototype.onEnd=function(t){t===He.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Bu.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function f0(t,e){var r=new Io(e);if(r.push(t,!0),r.err)throw r.msg||d0[r.err];return r.result}function wP(t,e){return e=e||{},e.raw=!0,f0(t,e)}Tu.Inflate=Io;Tu.inflate=f0;Tu.inflateRaw=wP;Tu.ungzip=f0});var HT=tt((_7,ZT)=>{"use strict";var xP=Nn().assign,SP=JB(),IP=CT(),$P=l0(),VT={};xP(VT,SP,IP,$P);ZT.exports=VT});var WT=tt(()=>{});var $o,Rn,as,JT=f(()=>{"use strict";yg();ma();$o=rh(HT(),1),Rn=rh(WT(),1),as=class extends ga{name="deflate";extensions=[];contentEncodings=["deflate"];isSupported=!0;options;_chunks=[];constructor(e={}){super(e),this.options=e}async compress(e){if(!la&&this.options.deflate?.useZlib){let r=this.options.deflate?.gzip?await ha(Rn.default.gzip)(e):await ha(Rn.default.deflate)(e);return ii(r)}return this.compressSync(e)}async decompress(e){if(!la&&this.options.deflate?.useZlib){let r=this.options.deflate?.gzip?await ha(Rn.default.gunzip)(e):await ha(Rn.default.inflate)(e);return ii(r)}return this.decompressSync(e)}compressSync(e){if(!la&&this.options.deflate?.useZlib){let o=this.options.deflate?.gzip?Rn.default.gzipSync(e):Rn.default.deflateSync(e);return ii(o)}let r=this.options?.deflate||{},i=new Uint8Array(e),n=this.options?.raw?$o.default.deflateRaw:$o.default.deflate;return ii(n(i,r).buffer)}decompressSync(e){if(!la&&this.options.deflate?.useZlib){let o=this.options.deflate?.gzip?Rn.default.gunzipSync(e):Rn.default.inflateSync(e);return ii(o)}let r=this.options?.deflate||{},i=new Uint8Array(e),n=this.options?.raw?$o.default.inflateRaw:$o.default.inflate;return ii(n(i,r).buffer)}async*compressBatches(e){let r=this.options?.deflate||{},i=new $o.default.Deflate(r);yield*this.transformBatches(i,e)}async*decompressBatches(e){let r=this.options?.deflate||{},i=new $o.default.Inflate(r);yield*this.transformBatches(i,e)}async*transformBatches(e,r){e.onData=this._onData.bind(this),e.onEnd=this._onEnd.bind(this);for await(let a of r){let s=new Uint8Array(a);if(!e.push(s,!1))throw new Error(`${this._getError()}write`);yield*this._getChunks()}let i=new Uint8Array(0),n=e.push(i,!0);yield*this._getChunks()}_onData(e){this._chunks.push(e)}_onEnd(e){if(e!==0)throw new Error(this._getError(e)+this._chunks.length)}_getChunks(){let e=this._chunks;return this._chunks=[],e}_getError(e=0){let r={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"};return`${this.name}: ${r[e]}`}}});var GT=f(()=>{"use strict";JT()});function Yp(t,e){return Xr(Ou(t,e))}function Ou(t,e){let r=nF(t),i=qP(Ka(r),e);if(r.byteLength<i.chunkByteLength)throw new Error("RADLoader: RADC chunk payload is incomplete.");let n=i.count,o=ss(r,i,XP(i,"center"),3),a=AP(r,i,n),s=TP(r,i,n),u=zP(r,i,n),c=OP(r,i,n),{colors:l,sphericalHarmonicDcs:d}=JP(s),h=e?.radChunk?.includeLoDTree??!0,p=h?UP(r,i,"child_count"):null,v=h?NP(r,i,"child_start"):null,$=e?.radChunk?.includeSphericalHarmonics??!1?EP(r,i):null;return{format:"rad",splatCount:n,positions:o,scales:u,rotations:c,colors:l,sphericalHarmonicDcs:d,opacities:a,sphericalHarmonics:$?.values,sphericalHarmonicsComponentCount:$?.componentCount,loaderData:{format:"rad",base:i.base,count:i.count,maxSh:i.maxSh??0,lodTree:i.lodTree??!1,splatEncoding:i.splatEncoding,childCounts:p??void 0,childStarts:v??void 0}}}function AP(t,e,r){let i=un(e,"alpha");if(!i)return new Float32Array(r).fill(1);let n=ss(t,e,i,1);for(let o=0;o<n.length;o++)n[o]=BP(n[o],e,i);return n}function BP(t,e,r){let i=Math.max(t,0);return!e.splatEncoding?.lodOpacity||r.encoding!=="r8"&&r.encoding!=="r8_delta"?i:i*2}function TP(t,e,r){let i=un(e,"rgb");return i?ss(t,e,i,3):new Float32Array(r*3).fill(1)}function zP(t,e,r){let i=un(e,"scales");return i?ss(t,e,i,3):new Float32Array(r*3).fill(1)}function OP(t,e,r){let i=un(e,"orientation");if(!i)return GP(r);let n=Xp(t,e,i);switch(i.encoding){case"oct88r8":return WP(n,r);case"f32":case"f16":{let o=ss(t,e,i,3),a=new Float32Array(r*4);for(let s=0;s<r;s++){let u=s*3,c=s*4,l=o[u+0],d=o[u+1],h=o[u+2],p=Math.sqrt(Math.max(0,1-l*l-d*d-h*h)),v=Tn(p,l,d,h);a.set(v,c)}return a}default:throw new Error(`RADLoader: unsupported orientation encoding ${i.encoding}.`)}}function EP(t,e){let r=[{property:un(e,"sh1"),dimensions:9},{property:un(e,"sh2"),dimensions:15},{property:un(e,"sh3"),dimensions:21}].filter(a=>a.property!==void 0);if(r.length===0)return null;let i=r.map(a=>({values:ss(t,e,a.property,a.dimensions),dimensions:a.dimensions})),n=i.reduce((a,s)=>a+s.dimensions,0),o=new Float32Array(e.count*n);for(let a=0;a<e.count;a++){let s=a*n;for(let u of i){let c=a*u.dimensions;o.set(u.values.subarray(c,c+u.dimensions),s),s+=u.dimensions}}return{values:o,componentCount:n}}function ss(t,e,r,i){let n=Xp(t,e,r);switch(r.encoding){case"f32":return PP(n,i,e.count);case"f16":return KT(n,i,e.count);case"f32_lebytes":return FP(n,i,e.count);case"f16_lebytes":return RP(n,i,e.count);case"r8":return jP(n,i,e.count,p0(e,r),zu(e,r));case"r8_delta":return MP(n,i,e.count,p0(e,r),zu(e,r));case"s8":return CP(n,i,e.count,zu(e,r));case"s8_delta":return VP(n,i,e.count,zu(e,r));case"ln_0r8":return ZP(n,i,e.count,p0(e,r),zu(e,r));case"ln_f16":return HP(n,i,e.count);default:throw new Error(`RADLoader: unsupported ${r.property} encoding ${r.encoding}.`)}}function UP(t,e,r){let i=un(e,r);if(!i)return null;if(i.encoding!=="u16")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=Xp(t,e,i),o=new Uint16Array(e.count);for(let a=0;a<e.count;a++)o[a]=n[a*2]|n[a*2+1]<<8;return o}function NP(t,e,r){let i=un(e,r);if(!i)return null;if(i.encoding!=="u32")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=Xp(t,e,i),o=new DataView(n.buffer,n.byteOffset,n.byteLength),a=new Uint32Array(e.count);for(let s=0;s<e.count;s++)a[s]=o.getUint32(s*4,!0);return a}function Xp(t,e,r){let i=Ep(r.bytes),n=e.payloadByteOffset+r.offset;if(n+i>t.byteLength||r.offset+i>e.payloadBytes)throw new Error(`RADLoader: property ${r.property} exceeds RADC payload byte length.`);let a=t.subarray(n,n+r.bytes);if(!r.compression)return a;if(r.compression!=="gz")throw new Error(`RADLoader: unsupported property compression ${r.compression}.`);return LP(a,r.property)}function LP(t,e){let r=rF(t);try{return new Uint8Array(kP.decompressSync(r))}catch{try{return new Uint8Array(DP.decompressSync(r))}catch{throw new Error(`RADLoader: failed to decompress RADC property ${e}.`)}}}function PP(t,e,r){let i=new DataView(t.buffer,t.byteOffset,t.byteLength),n=new Float32Array(r*e);for(let o=0;o<r;o++)for(let a=0;a<e;a++)n[o*e+a]=i.getFloat32((a*r+o)*4,!0);return n}function KT(t,e,r){let i=new Float32Array(r*e);for(let n=0;n<r;n++)for(let o=0;o<e;o++){let a=(o*r+n)*2;i[n*e+o]=wc(t[a]|t[a+1]<<8)}return i}function FP(t,e,r){let i=new Float32Array(r*e),n=r*e,o=new Uint8Array(4),a=new DataView(o.buffer);for(let s=0;s<r;s++)for(let u=0;u<e;u++){let c=u*r+s;for(let l=0;l<4;l++)o[l]=t[c+n*l];i[s*e+u]=a.getFloat32(0,!0)}return i}function RP(t,e,r){let i=new Float32Array(r*e),n=r*e;for(let o=0;o<r;o++)for(let a=0;a<e;a++){let s=a*r+o;i[o*e+a]=wc(t[s]|t[s+n]<<8)}return i}function jP(t,e,r,i,n){let o=new Float32Array(r*e),a=n-i;for(let s=0;s<r;s++)for(let u=0;u<e;u++)o[s*e+u]=t[u*r+s]/255*a+i;return o}function MP(t,e,r,i,n){let o=new Float32Array(r*e),a=n-i,s=new Uint8Array(e);for(let u=0;u<r;u++)for(let c=0;c<e;c++){let l=c*r+u,d=s[c]+t[l]&255;s[c]=d,o[u*e+c]=d/255*a+i}return o}function CP(t,e,r,i){let n=new Float32Array(r*e);for(let o=0;o<r;o++)for(let a=0;a<e;a++){let s=t[a*r+o];n[o*e+a]=(s<<24>>24)/127*i}return n}function VP(t,e,r,i){let n=new Float32Array(r*e),o=new Uint8Array(e);for(let a=0;a<r;a++)for(let s=0;s<e;s++){let u=s*r+a,c=o[s]+t[u]&255;o[s]=c,n[a*e+s]=(c<<24>>24)/127*i}return n}function ZP(t,e,r,i,n){let o=new Float32Array(r*e);for(let a=0;a<r;a++)for(let s=0;s<e;s++)o[a*e+s]=KP(t[s*r+a],i,n);return o}function HP(t,e,r){let i=KT(t,e,r);for(let n=0;n<i.length;n++)i[n]=Math.exp(i[n]);return i}function WP(t,e){let r=new Float32Array(e*4);for(let i=0;i<e;i++){let n=i*3,[o,a,s,u]=YP(t[n],t[n+1],t[n+2]);r.set(Tn(u,o,a,s),i*4)}return r}function JP(t){let e=new Uint8Array(t.length),r=new Float32Array(t.length);for(let i=0;i<t.length;i++){let n=t[i];e[i]=tF(n),r[i]=(n-.5)/qm}return{colors:e,sphericalHarmonicDcs:r}}function GP(t){let e=new Float32Array(t*4);for(let r=0;r<t;r++)e[r*4]=1;return e}function KP(t,e,r){if(t===0)return 0;let i=(r-e)/254;return Math.exp(e+(t-1)*i)}function YP(t,e,r){let i=t/255*2-1,n=e/255*2-1,o=1-Math.abs(i)-Math.abs(n),a=Math.max(-o,0);i=i>=0?i-a:i+a,n=n>=0?n-a:n+a;let s=Math.hypot(i,n,o),u=s>Number.EPSILON?i/s:1,c=s>Number.EPSILON?n/s:0,l=s>Number.EPSILON?o/s:0,d=r/255*.5*Math.PI,h=Math.sin(d);return[u*h,c*h,l*h,Math.cos(d)]}function XP(t,e){let r=un(t,e);if(!r)throw new Error(`RADLoader: RADC chunk is missing ${e} property.`);return r}function un(t,e){return t.properties.find(r=>r.property===e)}function qP(t,e){let r=e?.radChunk?.splatEncoding;return r?{...t,splatEncoding:{...r,...t.splatEncoding}}:t}function p0(t,e){if(e.min===void 0){let r=QP(t.splatEncoding,e.property);if(r!==void 0)return r;throw new Error(`RADLoader: RADC property ${e.property} is missing min.`)}return e.min}function zu(t,e){if(e.max===void 0){let r=eF(t.splatEncoding,e.property);if(r!==void 0)return r;throw new Error(`RADLoader: RADC property ${e.property} is missing max.`)}return e.max}function QP(t,e){switch(e){case"rgb":return t?.rgbMin;case"scales":return t?.lnScaleMin;default:return}}function eF(t,e){switch(e){case"rgb":return t?.rgbMax;case"scales":return t?.lnScaleMax;case"sh1":return t?.sh1Max;case"sh2":return t?.sh2Max;case"sh3":return t?.sh3Max;default:return}}function tF(t){return Math.round(Math.min(Math.max(t,0),1)*255)}function rF(t){let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer}function nF(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var kP,DP,h0=f(()=>{"use strict";GT();hu();ca();aa();kP=new as,DP=new as({raw:!0})});var YT={};Ue(YT,{RADLoaderWithParser:()=>oF,parseRADChunk:()=>Yp,parseRADChunkHeader:()=>Ka,parseRADChunkToGaussianSplats:()=>Ou,parseRADHeader:()=>pu,tryParseRADHeader:()=>Ga});var U7,iF,oF,XT=f(()=>{"use strict";hu();m0();hu();h0();({preload:U7,...iF}=qp),oF={...iF,parse:async t=>pu(t),parseSync:t=>pu(t)}});async function sF(){let{RADLoaderWithParser:t}=await Promise.resolve().then(()=>(XT(),YT));return t}var aF,qp,m0=f(()=>{"use strict";Si();aF="5.0.0-alpha.2";qp={dataType:null,batchType:null,...ko,version:aF,options:{},preload:sF}});var Uu={};Ue(Uu,{KSPLATFormat:()=>Cu,KSPLATLoader:()=>Ad,RADFormat:()=>ko,RADLoader:()=>qp,RADSource:()=>Eu,RADSourceLoader:()=>g0,SPLATFormat:()=>Mu,SPLATLoader:()=>$d,SPZFormat:()=>Vu,SPZLoader:()=>Cd,resolveRADChunkUrl:()=>Qp});ju(Uu,rh(S0(),1));Si();eg();og();xg();m0();ma();Si();hu();h0();ca();var cF=[64*1024,256*1024,1024*1024],uF=4,lF="5.0.0-alpha.2",g0={dataType:null,batchType:null,...ko,name:"RADSourceLoader",version:lF,type:"rad",fromUrl:!0,fromBlob:!0,options:{rad:{headers:void 0,withCredentials:!1,headerByteLengths:void 0}},defaultOptions:{rad:{headers:void 0,withCredentials:!1,headerByteLengths:void 0}},testURL:t=>/\.rad(?:$|[?#])/i.test(t),createDataSource:(t,e,r)=>new Eu(t,e,r)},Eu=class extends Ic{metadata;_metadataPromise=null;_chunkMetadataPromises=new Map;constructor(e,r,i){super(e,r,g0.defaultOptions,i),this.metadata=this.getMetadata()}async initialize(){await this.getMetadata()}async getMetadata(){return this._metadataPromise||(this._metadataPromise=this._loadMetadata()),await this._metadataPromise}async getChunkCount(){return(await this.getMetadata()).chunks.length}async getChunkUrl(e){let r=await this.getMetadata(),i=this._getChunkRange(r,e);return i.filename?Qp(this.url,i.filename):typeof this.data=="string"?this.url:null}async getChunk(e,r={}){let i=await this.getMetadata(),n=this._getChunkRange(i,e);if(n.filename){if(typeof this.data!="string")throw new Error("RADSource: sidecar RADC chunks require a URL-backed RAD source.");return await this._fetchArrayBuffer(Qp(this.url,n.filename),void 0,{signal:r.signal})}if(n.bytes===0)return new ArrayBuffer(0);let o=i.chunksByteOffset+n.offset;return typeof this.data!="string"?await this.data.slice(o,o+n.bytes).arrayBuffer():await this._fetchArrayBuffer(this.url,{offset:o,bytes:n.bytes},{signal:r.signal})}async getChunkMetadata(e,r={}){let i=this._chunkMetadataPromises.get(e);return i||(i=this.getChunk(e,r).then(n=>Ka(n)),this._chunkMetadataPromises.set(e,i)),await i}async getChunkSplats(e,r={}){let i=await this.getMetadata();return Ou(await this.getChunk(e,r),this._getChunkDecodeOptions(i,r))}async getChunkTable(e,r={}){let i=await this.getMetadata();return Yp(await this.getChunk(e,r),this._getChunkDecodeOptions(i,r))}async*getChunkTables(e={}){let r=await this.getMetadata(),i=e.startChunkIndex??0,n=e.maxChunks??Number.POSITIVE_INFINITY,o=e.maxSplats??Number.POSITIVE_INFINITY,a=0,s=0;if(e.pruneLoadedLoDParents){let u=dF(r,i,n,o),c=await this._getChunkSplatsConcurrently(u,e),l=0;for(let d of c){a++,s+=d.splatCount;let h=pF(d);l=Math.max(l,h+d.splatCount)}for(let d of c)yield Xr(hF(d,l));return}for(let u=i;u<r.chunks.length&&a<n&&s<o;u++){let c=await this.getChunkTable(u,e);a++,s+=c.data.numRows,yield c}}async _getChunkSplatsConcurrently(e,r){let i=new Array(e.length),n=fF(r.maxConcurrentChunkRequests),o=0;async function a(u){for(;o<e.length;){let c=o++,l=e[c];i[c]=await u.getChunkSplats(l,r)}}let s=Math.min(n,e.length);return await Promise.all(Array.from({length:s},()=>a(this))),i}_getChunkDecodeOptions(e,r){return{...r,radChunk:{splatEncoding:e.splatEncoding,...r.radChunk}}}async _loadMetadata(){let e=this.options.rad?.headerByteLengths?.length?this.options.rad.headerByteLengths:cF;if(typeof this.data!="string"){let r=Math.min(this.data.size,Math.max(...e)),i=Ga(await this.data.slice(0,r).arrayBuffer());if(i)return i;throw new Error("RADSource: Blob does not contain a complete RAD metadata header.")}for(let r of e){let i=Ga(await this._fetchArrayBuffer(this.url,{offset:0,bytes:r}));if(i)return i}throw new Error("RADSource: failed to load a complete RAD metadata header.")}_getChunkRange(e,r){if(!Number.isInteger(r)||r<0||r>=e.chunks.length)throw new Error(`RADSource: chunk index ${r} is outside 0-${e.chunks.length-1}.`);return e.chunks[r]}async _fetchArrayBuffer(e,r,i={}){let n=await this._fetchResponse(e,this._getRequestInit(r,i));if(!n.ok)throw new Error(`RADSource: failed to fetch ${e}: ${n.status} ${n.statusText}`);let o=await n.arrayBuffer();return r&&n.status!==206&&o.byteLength>=r.offset+r.bytes?o.slice(r.offset,r.offset+r.bytes):r&&o.byteLength>r.bytes?o.slice(0,r.bytes):o}async _fetchResponse(e,r){return this._hasCustomFetch()?await this.fetch(e,r):this.hasCoreApi?await this.coreApi.fetchFile(e,r):await this.fetch(e,r)}_hasCustomFetch(){return!!(this.loadOptions?.core?.fetch||this.loadOptions?.fetch)}_getRequestInit(e,r={}){let i=new Headers(this.options.rad?.headers);return e&&e.bytes>0&&i.set("Range",`bytes=${e.offset}-${e.offset+e.bytes-1}`),{headers:i,credentials:this.options.rad?.withCredentials?"include":"same-origin",signal:r.signal}}};function dF(t,e,r,i){let n=[],o=0;for(let a=e;a<t.chunks.length&&n.length<r&&o<i;a++){let s=t.chunks[a];n.push(a),o+=s?.count??t.chunkSize??0}return n}function fF(t){return Number.isFinite(t)&&t>0?Math.floor(t):uF}function pF(t){return typeof t.loaderData?.base=="number"?t.loaderData.base:0}function hF(t,e){let r=t.loaderData?.childCounts,i=t.loaderData?.childStarts;if(!(r instanceof Uint16Array)||!(i instanceof Uint32Array))return t;let n=new Uint32Array(t.splatCount),o=0;for(let u=0;u<t.splatCount;u++){let c=r[u],l=i[u];c>0&&l<e||(n[o++]=u)}if(o===t.splatCount)return t;let a=n.subarray(0,o),s=t.sphericalHarmonicsComponentCount??0;return{...t,splatCount:o,positions:jn(t.positions,3,a),scales:jn(t.scales,3,a),rotations:jn(t.rotations,4,a),colors:jn(t.colors,3,a),sphericalHarmonicDcs:t.sphericalHarmonicDcs?jn(t.sphericalHarmonicDcs,3,a):void 0,opacities:jn(t.opacities,1,a),sphericalHarmonics:t.sphericalHarmonics&&s?jn(t.sphericalHarmonics,s,a):void 0,loaderData:{...t.loaderData,count:o,childCounts:jn(r,1,a),childStarts:jn(i,1,a)}}}function jn(t,e,r){let i=new t.constructor(r.length*e);for(let n=0;n<r.length;n++){let o=r[n]*e,a=n*e;i.set(t.subarray(o,o+e),a)}return i}function Qp(t,e){if(/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith("/"))return e;if(!t)throw new Error("RADSource: cannot resolve a sidecar RADC chunk without a RAD URL.");try{return new URL(e,t).toString()}catch{let[r,i=""]=t.split(/([?#].*)/,2),n=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));return`${n>=0?r.slice(0,n+1):""}${e}${i}`}}return iz(Uu);})();
|
|
17
56
|
return __exports__;
|
|
18
57
|
});
|