1import{r as e}from"./chunk.DuxOD-Sk.js";import{D as t,E as n,O as r,T as i,w as a}from"./ErrorElement.BPchO-rz.js";var o=new TextDecoder(`utf-8`),s=o.decode.bind(o),c=new TextEncoder,l=e=>c.encode(e),u=e=>typeof e==`number`,ee=e=>typeof e==`boolean`,d=e=>typeof e==`function`,f=e=>e!=null&&Object(e)===e,te=e=>f(e)&&d(e.then),ne=e=>f(e)&&d(e[Symbol.iterator]),re=e=>f(e)&&d(e[Symbol.asyncIterator]),ie=e=>f(e)&&f(e.schema),ae=e=>f(e)&&`done`in e&&`value`in e,oe=e=>f(e)&&d(e.stat)&&u(e.fd),se=e=>f(e)&&le(e.body),ce=e=>`_getDOMStream`in e&&`_getNodeStream`in e,le=e=>f(e)&&d(e.cancel)&&d(e.getReader)&&!ce(e),ue=e=>f(e)&&d(e.read)&&d(e.pipe)&&ee(e.readable)&&!ce(e),de=e=>f(e)&&d(e.clear)&&d(e.bytes)&&d(e.position)&&d(e.setPosition)&&d(e.capacity)&&d(e.getBufferIdentifier)&&d(e.createLong),fe=e({compareArrayLike:()=>Je,joinUint8Arrays:()=>ge,memcpy:()=>he,rebaseValueOffsets:()=>qe,toArrayBufferView:()=>p,toArrayBufferViewAsyncIterator:()=>h,toArrayBufferViewIterator:()=>Oe,toBigInt64Array:()=>be,toBigUint64Array:()=>Ce,toFloat32Array:()=>we,toFloat32ArrayAsyncIterator:()=>We,toFloat32ArrayIterator:()=>Fe,toFloat64Array:()=>Te,toFloat64ArrayAsyncIterator:()=>Ge,toFloat64ArrayIterator:()=>Ie,toInt16Array:()=>ve,toInt16ArrayAsyncIterator:()=>ze,toInt16ArrayIterator:()=>Ae,toInt32Array:()=>ye,toInt32ArrayAsyncIterator:()=>Be,toInt32ArrayIterator:()=>je,toInt8Array:()=>_e,toInt8ArrayAsyncIterator:()=>Re,toInt8ArrayIterator:()=>ke,toUint16Array:()=>xe,toUint16ArrayAsyncIterator:()=>He,toUint16ArrayIterator:()=>Ne,toUint32Array:()=>Se,toUint32ArrayAsyncIterator:()=>Ue,toUint32ArrayIterator:()=>Pe,toUint8Array:()=>m,toUint8ArrayAsyncIterator:()=>Ve,toUint8ArrayIterator:()=>Me,toUint8ClampedArray:()=>Ee,toUint8ClampedArrayAsyncIterator:()=>Ke,toUint8ClampedArrayIterator:()=>Le}),pe=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function me(e){let t=e[0]?[e[0]]:[],n,r,i,a;for(let o,s,c=0,l=0,u=e.length;++c<u;){if(o=t[l],s=e[c],!o||!s||o.buffer!==s.buffer||s.byteOffset<o.byteOffset){s&&(t[++l]=s);continue}if({byteOffset:n,byteLength:i}=o,{byteOffset:r,byteLength:a}=s,n+i<r||r+a<n){s&&(t[++l]=s);continue}t[l]=new Uint8Array(o.buffer,n,r-n+a)}return t}function he(e,t,n=0,r=t.byteLength){let i=e.byteLength,a=new Uint8Array(e.buffer,e.byteOffset,i),o=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,i));return a.set(o,n),e}function ge(e,t){let n=me(e),r=n.reduce((e,t)=>e+t.byteLength,0),i,a,o,s=0,c=-1,l=Math.min(t||1/0,r);for(let e=n.length;++c<e;){if(i=n[c],a=i.subarray(0,Math.min(i.length,l-s)),l<=s+a.length){a.length<i.length?n[c]=i.subarray(a.length):a.length===i.length&&c++,o?he(o,a,s):o=a;break}he(o||=new Uint8Array(l),a,s),s+=a.length}return[o||new Uint8Array,n.slice(c),r-(o?o.byteLength:0)]}function p(e,t){let n=ae(t)?t.value:t;return n instanceof e?e===Uint8Array?new e(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n==`string`&&(n=l(n)),n instanceof ArrayBuffer||n instanceof pe?new e(n):de(n)?p(e,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new e(0):new e(n.buffer,n.byteOffset,n.byteLength/e.BYTES_PER_ELEMENT):e.from(n)):new e(0)}var _e=e=>p(Int8Array,e),ve=e=>p(Int16Array,e),ye=e=>p(Int32Array,e),be=e=>p(BigInt64Array,e),m=e=>p(Uint8Array,e),xe=e=>p(Uint16Array,e),Se=e=>p(Uint32Array,e),Ce=e=>p(BigUint64Array,e),we=e=>p(Float32Array,e),Te=e=>p(Float64Array,e),Ee=e=>p(Uint8ClampedArray,e),De=e=>(e.next(),e);function*Oe(e,t){let n=function*(e){yield e};return yield*De((function*(t){let n=null;do n=t.next(yield p(e,n));while(!n.done)})((typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof pe?n(t):ne(t)?t:n(t))[Symbol.iterator]())),new e}var ke=e=>Oe(Int8Array,e),Ae=e=>Oe(Int16Array,e),je=e=>Oe(Int32Array,e),Me=e=>Oe(Uint8Array,e),Ne=e=>Oe(Uint16Array,e),Pe=e=>Oe(Uint32Array,e),Fe=e=>Oe(Float32Array,e),Ie=e=>Oe(Float64Array,e),Le=e=>Oe(Uint8ClampedArray,e);function h(e,r){return i(this,arguments,function*(){if(te(r))return yield t(yield t(yield*a(n(h(e,yield t(r))))));let o=function(e){return i(this,arguments,function*(){yield yield t(yield t(e))})};return yield t(yield*a(n(De((function(n){return i(this,arguments,function*(){let r=null;do r=yield t(n.next(yield yield t(p(e,r))));while(!r.done)})})((typeof r==`string`||ArrayBuffer.isView(r)||r instanceof ArrayBuffer||r instanceof pe?o(r):ne(r)?function(e){return i(this,arguments,function*(){yield t(yield*a(n(De((function*(e){let t=null;do t=e.next(yield t?.value);while(!t.done)})(e[Symbol.iterator]())))))})}(r):re(r)?r:o(r))[Symbol.asyncIterator]()))))),yield t(new e)})}var Re=e=>h(Int8Array,e),ze=e=>h(Int16Array,e),Be=e=>h(Int32Array,e),Ve=e=>h(Uint8Array,e),He=e=>h(Uint16Array,e),Ue=e=>h(Uint32Array,e),We=e=>h(Float32Array,e),Ge=e=>h(Float64Array,e),Ke=e=>h(Uint8ClampedArray,e);function qe(e,t,n){if(e!==0){n=n.slice(0,t);for(let t=-1,r=n.length;++t<r;)n[t]+=e}return n.subarray(0,t)}function Je(e,t){let n=0,r=e.length;if(r!==t.length)return!1;if(r>0)do if(e[n]!==t[n])return!1;while(++n<r);return!0}var Ye={fromIterable(e){return Xe(Ze(e))},fromAsyncIterable(e){return Xe(Qe(e))},fromDOMStream(e){return Xe($e(e))},fromNodeStream(e){return Xe(nt(e))},toDOMStream(e,t){throw Error(`"toDOMStream" not available in this environment`)},toNodeStream(e,t){throw Error(`"toNodeStream" not available in this environment`)}},Xe=e=>(e.next(),e);function*Ze(e){let t,n=!1,r=[],i,a,o,s=0;function c(){return a===`peek`?ge(r,o)[0]:([i,r,s]=ge(r,o),i)}({cmd:a,size:o}=(yield null)||{cmd:`read`,size:0});let l=Me(e)[Symbol.iterator]();try{do if({done:t,value:i}=Number.isNaN(o-s)?l.next():l.next(o-s),!t&&i.byteLength>0&&(r.push(i),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield c());while(o<s);while(!t)}catch(e){n=!0,typeof l.throw==`function`&&l.throw(e)}finally{n===!1&&typeof l.return==`function`&&l.return(null)}return null}function Qe(e){return i(this,arguments,function*(){let n,r=!1,i=[],a,o,s,c=0;function l(){return o===`peek`?ge(i,s)[0]:([a,i,c]=ge(i,s),a)}({cmd:o,size:s}=(yield yield t(null))||{cmd:`read`,size:0});let u=Ve(e)[Symbol.asyncIterator]();try{do if({done:n,value:a}=Number.isNaN(s-c)?yield t(u.next()):yield t(u.next(s-c)),!n&&a.byteLength>0&&(i.push(a),c+=a.byteLength),n||s<=c)do({cmd:o,size:s}=yield yield t(l()));while(s<c);while(!n)}catch(e){r=!0,typeof u.throw==`function`&&(yield t(u.throw(e)))}finally{r===!1&&typeof u.return==`function`&&(yield t(u.return(new Uint8Array)))}return yield t(null)})}function $e(e){return i(this,arguments,function*(){let n=!1,r=!1,i=[],a,o,s,c=0;function l(){return o===`peek`?ge(i,s)[0]:([a,i,c]=ge(i,s),a)}({cmd:o,size:s}=(yield yield t(null))||{cmd:`read`,size:0});let u=new et(e);try{do if({done:n,value:a}=Number.isNaN(s-c)?yield t(u.read()):yield t(u.read(s-c)),!n&&a.byteLength>0&&(i.push(m(a)),c+=a.byteLength),n||s<=c)do({cmd:o,size:s}=yield yield t(l()));while(s<c);while(!n)}catch(e){r=!0,yield t(u.cancel(e))}finally{r===!1?yield t(u.cancel()):e.locked&&u.releaseLock()}return yield t(null)})}var et=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 r(this,void 0,void 0,function*(){let{reader:t,source:n}=this;t&&(yield t.cancel(e).catch(()=>{})),n&&n.locked&&this.releaseLock()})}read(e){return r(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array};let t=yield this.reader.read();return!t.done&&(t.value=m(t)),t})}},tt=(e,t)=>{let n=e=>r([t,e]),r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};function nt(e){return i(this,arguments,function*(){let n=[],r=`error`,i=!1,a=null,o,s,c=0,l=[],u;function ee(){return o===`peek`?ge(l,s)[0]:([u,l,c]=ge(l,s),u)}if({cmd:o,size:s}=(yield yield t(null))||{cmd:`read`,size:0},e.isTTY)return yield yield t(new Uint8Array),yield t(null);try{n[0]=tt(e,`end`),n[1]=tt(e,`error`);do{if(n[2]=tt(e,`readable`),[r,a]=yield t(Promise.race(n.map(e=>e[2]))),r===`error`)break;
vendor: 9,915 bytes, line 1
1if((i=r===`end`)||(Number.isFinite(s-c)?(u=m(e.read(s-c)),u.byteLength<s-c&&(u=m(e.read()))):u=m(e.read()),u.byteLength>0&&(l.push(u),c+=u.byteLength)),i||s<=c)do({cmd:o,size:s}=yield yield t(ee()));while(s<c)}while(!i)}finally{yield t(d(n,r===`error`?a:null))}return yield t(null);function d(t,n){return u=l=null,new Promise((r,i)=>{for(let[n,r]of t)e.off(n,r);try{let t=e.destroy;t&&t.call(e,n),n=void 0}catch(e){n=e||n}finally{n==null?r():i(n)}})}})}var g;(function(e){e[e.V1=0]=`V1`,e[e.V2=1]=`V2`,e[e.V3=2]=`V3`,e[e.V4=3]=`V4`,e[e.V5=4]=`V5`})(g||={});var _;(function(e){e[e.Sparse=0]=`Sparse`,e[e.Dense=1]=`Dense`})(_||={});var v;(function(e){e[e.HALF=0]=`HALF`,e[e.SINGLE=1]=`SINGLE`,e[e.DOUBLE=2]=`DOUBLE`})(v||={});var rt;(function(e){e[e.DAY=0]=`DAY`,e[e.MILLISECOND=1]=`MILLISECOND`})(rt||={});var y;(function(e){e[e.SECOND=0]=`SECOND`,e[e.MILLISECOND=1]=`MILLISECOND`,e[e.MICROSECOND=2]=`MICROSECOND`,e[e.NANOSECOND=3]=`NANOSECOND`})(y||={});var b;(function(e){e[e.YEAR_MONTH=0]=`YEAR_MONTH`,e[e.DAY_TIME=1]=`DAY_TIME`,e[e.MONTH_DAY_NANO=2]=`MONTH_DAY_NANO`})(b||={});var it=new Int32Array(2),at=new Float32Array(it.buffer),ot=new Float64Array(it.buffer),st=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1,ct;(function(e){e[e.UTF8_BYTES=1]=`UTF8_BYTES`,e[e.UTF16_STRING=2]=`UTF16_STRING`})(ct||={});var lt=class e{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new e(new Uint8Array(t))}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 it[0]=this.readInt32(e),at[0]}readFloat64(e){return it[+!st]=this.readInt32(e),it[+!!st]=this.readInt32(e+4),ot[0]}writeInt8(e,t){this.bytes_[e]=t}writeUint8(e,t){this.bytes_[e]=t}writeInt16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){at[0]=t,this.writeInt32(e,it[0])}writeFloat64(e,t){ot[0]=t,this.writeInt32(e,it[+!st]),this.writeInt32(e+4,it[+!!st])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw Error(`FlatBuffers: ByteBuffer is too short to contain an identifier.`);let e=``;for(let t=0;t<4;t++)e+=String.fromCharCode(this.readInt8(this.position_+4+t));return e}__offset(e,t){let n=e-this.readInt32(e);return t<this.readInt16(n)?this.readInt16(n+t):0}__union(e,t){return e.bb_pos=t+this.readInt32(t),e.bb=this,e}__string(e,t){e+=this.readInt32(e);let n=this.readInt32(e);e+=4;let r=this.bytes_.subarray(e,e+n);return t===ct.UTF8_BYTES?r:this.text_decoder_.decode(r)}__union_with_string(e,t){return typeof e==`string`?this.__string(t):this.__union(e,t)}__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 Error(`FlatBuffers: file identifier must be length 4`);for(let t=0;t<4;t++)if(e.charCodeAt(t)!=this.readInt8(this.position()+4+t))return!1;return!0}createScalarList(e,t){let n=[];for(let r=0;r<t;++r){let t=e(r);t!==null&&n.push(t)}return n}createObjList(e,t){let n=[];for(let r=0;r<t;++r){let t=e(r);t!==null&&n.push(t.unpack())}return n}},ut=class e{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 t;t=e||1024,this.bb=lt.allocate(t),this.space=t}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(t,n){t>this.minalign&&(this.minalign=t);let r=~(this.bb.capacity()-this.space+n)+1&t-1;for(;this.space<r+t+n;){let t=this.bb.capacity();this.bb=e.growByteBuffer(this.bb),this.space+=this.bb.capacity()-t}this.pad(r)}pad(e){for(let t=0;t<e;t++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(--this.space,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,t,n){(this.force_defaults||t!=n)&&(this.addInt8(t),this.slot(e))}addFieldInt16(e,t,n){(this.force_defaults||t!=n)&&(this.addInt16(t),this.slot(e))}addFieldInt32(e,t,n){(this.force_defaults||t!=n)&&(this.addInt32(t),this.slot(e))}addFieldInt64(e,t,n){(this.force_defaults||t!==n)&&(this.addInt64(t),this.slot(e))}addFieldFloat32(e,t,n){(this.force_defaults||t!=n)&&(this.addFloat32(t),this.slot(e))}addFieldFloat64(e,t,n){(this.force_defaults||t!=n)&&(this.addFloat64(t),this.slot(e))}addFieldOffset(e,t,n){(this.force_defaults||t!=n)&&(this.addOffset(t),this.slot(e))}addFieldStruct(e,t,n){t!=n&&(this.nested(t),this.slot(e))}nested(e){if(e!=this.offset())throw TypeError(`FlatBuffers: struct must be serialized inline.`)}notNested(){if(this.isNested)throw 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 t=e.capacity();if(t&3221225472)throw Error(`FlatBuffers: cannot grow buffer beyond 2 gigabytes.`);let n=t<<1,r=lt.allocate(n);return r.setPosition(n-t),r.bytes().set(e.bytes(),n-t),r}addOffset(e){this.prep(4,0),this.writeInt32(this.offset()-e+4)}startObject(e){this.notNested(),this.vtable??=[],this.vtable_in_use=e;for(let t=0;t<e;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw Error(`FlatBuffers: endObject called without startObject`);this.addInt32(0);let e=this.offset(),t=this.vtable_in_use-1;for(;t>=0&&this.vtable[t]==0;t--);let n=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]==0?0:e-this.vtable[t]);this.addInt16(e-this.object_start);let r=(n+2)*2;this.addInt16(r);let i=0,a=this.space;outer_loop:for(t=0;t<this.vtables.length;t++){let e=this.bb.capacity()-this.vtables[t];if(r==this.bb.readInt16(e)){for(let t=2;t<r;t+=2)if(this.bb.readInt16(a+t)!=this.bb.readInt16(e+t))continue outer_loop;i=this.vtables[t];break}}return i?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,i-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,t,n){let r=n?4:0;if(t){let e=t;if(this.prep(this.minalign,8+r),e.length!=4)throw TypeError(`FlatBuffers: file identifier must be length 4`);for(let t=3;t>=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+r),this.addOffset(e),r&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){let n=this.bb.capacity()-e,r=n-this.bb.readInt32(n);if(!(t<this.bb.readInt16(r)&&this.bb.readInt16(r+t)!=0))throw TypeError(`FlatBuffers: field `+t+` must be set`)}startVector(e,t,n){this.notNested(),this.vector_num_elems=t,this.prep(4,e*t),this.prep(n,e*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||=new Map,this.string_maps.has(e))return this.string_maps.get(e);let t=this.createString(e);return this.string_maps.set(e,t),t}createString(e){if(e==null)return 0;let t;return t=e instanceof Uint8Array?e:this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,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 t=[];for(let n=0;n<e.length;++n){let r=e[n];if(r!==null)t.push(this.createObjectOffset(r));else throw TypeError(`FlatBuffers: Argument for createObjectOffsetList cannot contain null.`)}return t}createStructOffsetList(e,t){return t(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}},dt;(function(e){e[e.BUFFER=0]=`BUFFER`})(dt||={});var ft;(function(e){e[e.LZ4_FRAME=0]=`LZ4_FRAME`,e[e.ZSTD=1]=`ZSTD`})(ft||={});var pt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}
1static getRootAsBodyCompression(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}codec(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):ft.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):dt.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,ft.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,dt.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(t,n,r){return e.startBodyCompression(t),e.addCodec(t,n),e.addMethod(t,r),e.endBodyCompression(t)}},mt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,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,t,n){return e.prep(8,16),e.writeInt64(BigInt(n??0)),e.writeInt64(BigInt(t??0)),e.offset()}},ht=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,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,t,n){return e.prep(8,16),e.writeInt64(BigInt(n??0)),e.writeInt64(BigInt(t??0)),e.offset()}},gt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}length(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}nodes(e,t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new ht).__init(this.bb.__vector(this.bb_pos+n)+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,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new mt).__init(this.bb.__vector(this.bb_pos+n)+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 t=this.bb.__offset(this.bb_pos,10);return t?(e||new pt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,BigInt(`0`))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}},_t=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}data(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new gt).__init(this.bb.__indirect(this.bb_pos+t),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,t){e.addFieldInt64(0,t,BigInt(`0`))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}},vt;(function(e){e[e.Little=0]=`Little`,e[e.Big=1]=`Big`})(vt||={});var yt;(function(e){e[e.DenseArray=0]=`DenseArray`})(yt||={});var bt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}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}
vendor: 15,669 bytes, line 1
1static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(t,n,r){return e.startInt(t),e.addBitWidth(t,n),e.addIsSigned(t,r),e.endInt(t)}},xt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}indexType(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new bt).__init(this.bb.__indirect(this.bb_pos+t),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):yt.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,BigInt(`0`))}static addIndexType(e,t){e.addFieldOffset(1,t,0)}static addIsOrdered(e,t){e.addFieldInt8(2,+t,0)}static addDictionaryKind(e,t){e.addFieldInt16(3,t,yt.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}},x=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}key(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}value(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,t){e.addFieldOffset(0,t,0)}static addValue(e,t){e.addFieldOffset(1,t,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(t,n,r){return e.startKeyValue(t),e.addKey(t,n),e.addValue(t,r),e.endKeyValue(t)}},St=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(t){return e.startBinary(t),e.endBinary(t)}},Ct=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(t){return e.startBool(t),e.endBool(t)}},wt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):rt.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,rt.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(t,n){return e.startDate(t),e.addUnit(t,n),e.endDate(t)}},Tt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}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,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(t,n,r,i){return e.startDecimal(t),e.addPrecision(t,n),e.addScale(t,r),e.addBitWidth(t,i),e.endDecimal(t)}},Et=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDuration(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDuration(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):y.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,y.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(t,n){return e.startDuration(t),e.addUnit(t,n),e.endDuration(t)}},Dt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}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,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(t,n){return e.startFixedSizeBinary(t),e.addByteWidth(t,n),e.endFixedSizeBinary(t)}},Ot=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}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,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(t,n){return e.startFixedSizeList(t),e.addListSize(t,n),e.endFixedSizeList(t)}},kt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):v.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,v.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(t,n){return e.startFloatingPoint(t),e.addPrecision(t,n),e.endFloatingPoint(t)}},At=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):b.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,b.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(t,n){return e.startInterval(t),e.addUnit(t,n),e.endInterval(t)}},jt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeBinary(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(t){return e.startLargeBinary(t),e.endLargeBinary(t)}},Mt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeUtf8(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeUtf8(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(t){return e.startLargeUtf8(t),e.endLargeUtf8(t)}},Nt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(t){return e.startList(t),e.endList(t)}},Pt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}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,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(t,n){return e.startMap(t),e.addKeysSorted(t,n),e.endMap(t)}},Ft=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(t){return e.startNull(t),e.endNull(t)}},It=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(t){return e.startStruct_(t),e.endStruct_(t)}},Lt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):y.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,t){e.addFieldInt16(0,t,y.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(t,n,r){return e.startTime(t),e.addUnit(t,n),e.addBitWidth(t,r),e.endTime(t)}},Rt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):y.SECOND}timezone(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,y.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(t,n,r){return e.startTimestamp(t),e.addUnit(t,n),e.addTimezone(t,r),e.endTimestamp(t)}},zt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):_.Sparse}typeIds(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+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,t){e.addFieldInt16(0,t,_.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addInt32(t[n]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(t,n,r){return e.startUnion(t),e.addMode(t,n),e.addTypeIds(t,r),e.endUnion(t)}},Bt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(t){return e.startUtf8(t),e.endUtf8(t)}},S;(function(e){e[e.NONE=0]=`NONE`,e[e.Null=1]=`Null`,e[e.Int=2]=`Int`,e[e.FloatingPoint=3]=`FloatingPoint`,e[e.Binary=4]=`Binary`,e[e.Utf8=5]=`Utf8`,e[e.Bool=6]=`Bool`,e[e.Decimal=7]=`Decimal`,e[e.Date=8]=`Date`,e[e.Time=9]=`Time`,e[e.Timestamp=10]=`Timestamp`,e[e.Interval=11]=`Interval`,e[e.List=12]=`List`,e[e.Struct_=13]=`Struct_`,e[e.Union=14]=`Union`,e[e.FixedSizeBinary=15]=`FixedSizeBinary`,e[e.FixedSizeList=16]=`FixedSizeList`,e[e.Map=17]=`Map`,e[e.Duration=18]=`Duration`,e[e.LargeBinary=19]=`LargeBinary`,e[e.LargeUtf8=20]=`LargeUtf8`,e[e.LargeList=21]=`LargeList`,e[e.RunEndEncoded=22]=`RunEndEncoded`})(S||={});var C=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}
1typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):S.NONE}type(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){let t=this.bb.__offset(this.bb_pos,12);return t?(e||new xt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(t,n){let r=this.bb.__offset(this.bb_pos,14);return r?(n||new e).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*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,t){let n=this.bb.__offset(this.bb_pos,16);return n?(t||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+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,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,S.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}},Vt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):vt.Little}fields(e,t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new C).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+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,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+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 t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+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,t){e.addFieldInt16(0,t,vt.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(t,n,r,i,a){return e.startSchema(t),e.addEndianness(t,n),e.addFields(t,r),e.addCustomMetadata(t,i),e.addFeatures(t,a),e.endSchema(t)}},w;(function(e){e[e.NONE=0]=`NONE`,e[e.Schema=1]=`Schema`,e[e.DictionaryBatch=2]=`DictionaryBatch`,e[e.RecordBatch=3]=`RecordBatch`,e[e.Tensor=4]=`Tensor`,e[e.SparseTensor=5]=`SparseTensor`})(w||={});var T;(function(e){e[e.NONE=0]=`NONE`,e[e.Null=1]=`Null`,e[e.Int=2]=`Int`,e[e.Float=3]=`Float`,e[e.Binary=4]=`Binary`,e[e.Utf8=5]=`Utf8`,e[e.Bool=6]=`Bool`,e[e.Decimal=7]=`Decimal`,e[e.Date=8]=`Date`,e[e.Time=9]=`Time`,e[e.Timestamp=10]=`Timestamp`,e[e.Interval=11]=`Interval`,e[e.List=12]=`List`,e[e.Struct=13]=`Struct`,e[e.Union=14]=`Union`,e[e.FixedSizeBinary=15]=`FixedSizeBinary`,e[e.FixedSizeList=16]=`FixedSizeList`,e[e.Map=17]=`Map`,e[e.Duration=18]=`Duration`,e[e.LargeBinary=19]=`LargeBinary`,e[e.LargeUtf8=20]=`LargeUtf8`,e[e.Dictionary=-1]=`Dictionary`,e[e.Int8=-2]=`Int8`,e[e.Int16=-3]=`Int16`,e[e.Int32=-4]=`Int32`,e[e.Int64=-5]=`Int64`,e[e.Uint8=-6]=`Uint8`,e[e.Uint16=-7]=`Uint16`,e[e.Uint32=-8]=`Uint32`,e[e.Uint64=-9]=`Uint64`,e[e.Float16=-10]=`Float16`,e[e.Float32=-11]=`Float32`,e[e.Float64=-12]=`Float64`,e[e.DateDay=-13]=`DateDay`,e[e.DateMillisecond=-14]=`DateMillisecond`,e[e.TimestampSecond=-15]=`TimestampSecond`,e[e.TimestampMillisecond=-16]=`TimestampMillisecond`,e[e.TimestampMicrosecond=-17]=`TimestampMicrosecond`,e[e.TimestampNanosecond=-18]=`TimestampNanosecond`,e[e.TimeSecond=-19]=`TimeSecond`,e[e.TimeMillisecond=-20]=`TimeMillisecond`,e[e.TimeMicrosecond=-21]=`TimeMicrosecond`,e[e.TimeNanosecond=-22]=`TimeNanosecond`,e[e.DenseUnion=-23]=`DenseUnion`,e[e.SparseUnion=-24]=`SparseUnion`,e[e.IntervalDayTime=-25]=`IntervalDayTime`,e[e.IntervalYearMonth=-26]=`IntervalYearMonth`,e[e.DurationSecond=-27]=`DurationSecond`,e[e.DurationMillisecond=-28]=`DurationMillisecond`,e[e.DurationMicrosecond=-29]=`DurationMicrosecond`,e[e.DurationNanosecond=-30]=`DurationNanosecond`,e[e.IntervalMonthDayNano=-31]=`IntervalMonthDayNano`})(T||={});var Ht;(function(e){e[e.OFFSET=0]=`OFFSET`,e[e.DATA=1]=`DATA`,e[e.VALIDITY=2]=`VALIDITY`,e[e.TYPE=3]=`TYPE`})(Ht||={});var Ut=e({valueToString:()=>Gt}),Wt=void 0;function Gt(e){if(e===null)return`null`;if(e===Wt)return`undefined`;switch(typeof e){case`number`:return`${e}`;case`bigint`:return`${e}`;case`string`:return`"${e}"`}return typeof e[Symbol.toPrimitive]==`function`?e[Symbol.toPrimitive](`string`):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?`[${[...e].map(e=>Gt(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function E(e){if(typeof e==`bigint`&&(e<-(2**53-1)||e>2**53-1))throw TypeError(`${e} is not safe to convert to a number.`);return Number(e)}function Kt(e,t){return E(e/t)+E(e%t)/E(t)}var qt=e({BN:()=>an,bigNumToBigInt:()=>nn,bigNumToNumber:()=>en,bigNumToString:()=>tn,isArrowBigNumSymbol:()=>Jt}),Jt=Symbol.for(`isArrowBigNum`);function Yt(e,...t){return t.length===0?Object.setPrototypeOf(p(this.TypedArray,e),this.constructor.prototype):Object.
1setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}Yt.prototype[Jt]=!0,Yt.prototype.toJSON=function(){return`"${tn(this)}"`},Yt.prototype.valueOf=function(e){return en(this,e)},Yt.prototype.toString=function(){return tn(this)},Yt.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return en(this);case`string`:return tn(this);case`default`:return nn(this)}return tn(this)};function Xt(...e){return Yt.apply(this,e)}function Zt(...e){return Yt.apply(this,e)}function Qt(...e){return Yt.apply(this,e)}Object.setPrototypeOf(Xt.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Zt.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(Qt.prototype,Object.create(Uint32Array.prototype)),Object.assign(Xt.prototype,Yt.prototype,{constructor:Xt,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(Zt.prototype,Yt.prototype,{constructor:Zt,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(Qt.prototype,Yt.prototype,{constructor:Qt,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});var $t=BigInt(4294967296)*BigInt(4294967296)-BigInt(1);function en(e,t){let{buffer:n,byteOffset:r,byteLength:i,signed:a}=e,o=new BigUint64Array(n,r,i/8),s=a&&o.at(-1)&BigInt(1)<<BigInt(63),c=BigInt(0),l=0;if(s){for(let e of o)c|=(e^$t)*(BigInt(1)<<BigInt(64*l++));c*=BigInt(-1),c-=BigInt(1)}else for(let e of o)c|=e*(BigInt(1)<<BigInt(64*l++));if(typeof t==`number`&&t>0){let e=BigInt(`1`.padEnd(t+1,`0`)),n=c/e,r=s?-(c%e):c%e,i=E(n),a=`${r}`.padStart(t,`0`);return+`${s&&i===0?`-`:``}${i}.${a}`}return E(c)}function tn(e){if(e.byteLength===8)return`${new e.BigIntArray(e.buffer,e.byteOffset,1)[0]}`;if(!e.signed)return rn(e);let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2);if(new Int16Array([t.at(-1)])[0]>=0)return rn(e);t=t.slice();let n=1;for(let e=0;e<t.length;e++){let r=t[e],i=~r+n;t[e]=i,n&=+(r===0)}return`-${rn(t)}`}function nn(e){return e.byteLength===8?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:tn(e)}function rn(e){let t=``,n=new Uint32Array(2),r=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),a=-1,o=r.length-1;do{for(n[0]=r[a=0];a<o;)r[a++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[a];r[a]=n[1]=n[0]/10,n[0]-=n[1]*10,t=`${n[0]}${t}`}while(i[0]||i[1]||i[2]||i[3]);return t??`0`}var an=class e{static new(e,t){switch(t){case!0:return new Xt(e);case!1:return new Zt(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new Xt(e)}return e.byteLength===16?new Qt(e):new Zt(e)}static signed(e){return new Xt(e)}static unsigned(e){return new Zt(e)}static decimal(e){return new Qt(e)}constructor(t,n){return e.new(t,n)}},on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,D=class e{static isNull(e){return e?.typeId===T.Null}static isInt(e){return e?.typeId===T.Int}static isFloat(e){return e?.typeId===T.Float}static isBinary(e){return e?.typeId===T.Binary}static isLargeBinary(e){return e?.typeId===T.LargeBinary}static isUtf8(e){return e?.typeId===T.Utf8}static isLargeUtf8(e){return e?.typeId===T.LargeUtf8}static isBool(e){return e?.typeId===T.Bool}static isDecimal(e){return e?.typeId===T.Decimal}static isDate(e){return e?.typeId===T.Date}static isTime(e){return e?.typeId===T.Time}static isTimestamp(e){return e?.typeId===T.Timestamp}static isInterval(e){return e?.typeId===T.Interval}static isDuration(e){return e?.typeId===T.Duration}static isList(e){return e?.typeId===T.List}static isStruct(e){return e?.typeId===T.Struct}static isUnion(e){return e?.typeId===T.Union}static isFixedSizeBinary(e){return e?.typeId===T.FixedSizeBinary}static isFixedSizeList(e){return e?.typeId===T.FixedSizeList}static isMap(e){return e?.typeId===T.Map}static isDictionary(e){return e?.typeId===T.Dictionary}static isDenseUnion(t){return e.isUnion(t)&&t.mode===_.Dense}static isSparseUnion(t){return e.isUnion(t)&&t.mode===_.Sparse}constructor(e){this.typeId=e}};on=Symbol.toStringTag,D[on]=(e=>(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]=`DataType`))(D.prototype);var On=class extends D{constructor(){super(T.Null)}toString(){return`Null`}};sn=Symbol.toStringTag,On[sn]=(e=>e[Symbol.toStringTag]=`Null`)(On.prototype);var O=class extends D{constructor(e,t){super(T.Int),this.isSigned=e,this.bitWidth=t}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 Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?`I`:`Ui`}nt${this.bitWidth}`}};cn=Symbol.toStringTag,O[cn]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(O.prototype);var kn=class extends O{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},An=class extends O{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},jn=class extends O{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},Mn=class extends O{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Nn=class extends O{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Pn=class extends O{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Fn=class extends O{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},In=class extends O{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(kn.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(An.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(jn.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(Mn.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(Nn.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(Pn.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(Fn.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(In.prototype,`ArrayType`,{value:BigUint64Array});var Ln=class extends D{constructor(e){super(T.Float),this.precision=e}get ArrayType(){switch(this.precision){case v.HALF:return Uint16Array;case v.SINGLE:return Float32Array;case v.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};ln=Symbol.toStringTag,Ln[ln]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(Ln.prototype);var Rn=class extends Ln{constructor(){super(v.HALF)}},zn=class extends Ln{constructor(){super(v.SINGLE)}},Bn=class extends Ln{constructor(){super(v.DOUBLE)}};Object.defineProperty(Rn.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(zn.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(Bn.prototype,`ArrayType`,{value:Float64Array});var Vn=class extends D{constructor(){super(T.Binary)}toString(){return`Binary`}};un=Symbol.toStringTag,Vn[un]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(Vn.prototype);var Hn=class extends D{constructor(){super(T.LargeBinary)}toString(){return`LargeBinary`}};dn=Symbol.toStringTag,Hn[dn]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(Hn.prototype);var Un=class extends D{constructor(){super(T.Utf8)}toString(){return`Utf8`}};fn=Symbol.toStringTag,Un[fn]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(Un.prototype);var Wn=class extends D{constructor(){super(T.LargeUtf8)}toString(){return`LargeUtf8`}};pn=Symbol.toStringTag,Wn[pn]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(Wn.prototype);var Gn=class extends D{constructor(){super(T.Bool)}toString(){return`Bool`}};mn=Symbol.toStringTag,Gn[mn]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))(Gn.prototype);var Kn=class extends D{constructor(e,t,n=128){super(T.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};hn=Symbol.toStringTag,Kn[hn]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(Kn.prototype);var qn=class extends D{constructor(e){super(T.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${rt[this.unit]}>`}get ArrayType(){return this.unit===rt.DAY?Int32Array:BigInt64Array}};gn=Symbol.toStringTag,qn[gn]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(qn.prototype);var Jn=class extends D{constructor(e,t){super(T.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${y[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};_n=Symbol.toStringTag,Jn[_n]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(Jn.prototype);var Yn=class extends D{constructor(e,t){super(T.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${y[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};vn=Symbol.toStringTag,Yn[vn]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(Yn.prototype);var Xn=class extends D{constructor(e){super(T.Interval),this.unit=e}toString(){return`Interval<${b[this.unit]}>`}};yn=Symbol.toStringTag,Xn[yn]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(Xn.prototype);var Zn=class extends D{constructor(e){super(T.Duration),this.unit=e}toString(){return`Duration<${y[this.unit]}>`}};bn=Symbol.toStringTag,Zn[bn]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(Zn.prototype);var Qn=class extends D{constructor(e){super(T.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}};xn=Symbol.toStringTag,Qn[xn]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(Qn.prototype);var k=class extends D{constructor(e){super(T.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};Sn=Symbol.toStringTag,k[Sn]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(k.prototype);var $n=class extends D{constructor(e,t,n){super(T.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((e,t,n
1)=>(e[t]=n)&&e||e,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(` | `)}>`}};Cn=Symbol.toStringTag,$n[Cn]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))($n.prototype);var er=class extends D{constructor(e){super(T.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};wn=Symbol.toStringTag,er[wn]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(er.prototype);var tr=class extends D{constructor(e,t){super(T.FixedSizeList),this.listSize=e,this.children=[t]}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}>`}};Tn=Symbol.toStringTag,tr[Tn]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(tr.prototype);var nr=class extends D{constructor(e,t=!1){if(super(T.Map),this.children=[e],this.keysSorted=t,e&&(e.name=`entries`,e?.type?.children)){let t=(e?.type)?.children[0];t&&(t.name=`key`);let n=(e?.type)?.children[1];n&&(n.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(`, `)}}>`}};En=Symbol.toStringTag,nr[En]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(nr.prototype);var rr=(e=>()=>++e)(-1),ir=class extends D{constructor(e,t,n,r){super(T.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?rr():E(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}>`}};Dn=Symbol.toStringTag,ir[Dn]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(ir.prototype);function ar(e){let t=e;switch(e.typeId){case T.Decimal:return e.bitWidth/32;case T.Interval:return t.unit===b.MONTH_DAY_NANO?4:1+t.unit;case T.FixedSizeList:return t.listSize;case T.FixedSizeBinary:return t.byteWidth;default:return 1}}var A=class{visitMany(e,...t){return e.map((e,n)=>this.visit(e,...t.map(e=>e[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return or(this,e,t)}getVisitFnByTypeId(e,t=!0){return sr(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function or(e,t,n=!0){return typeof t==`number`?sr(e,t,n):typeof t==`string`&&t in T?sr(e,T[t],n):t&&t instanceof D?sr(e,cr(t),n):t?.type&&t.type instanceof D?sr(e,cr(t.type),n):sr(e,T.NONE,n)}function sr(e,t,n=!0){let r=null;switch(t){case T.Null:r=e.visitNull;break;case T.Bool:r=e.visitBool;break;case T.Int:r=e.visitInt;break;case T.Int8:r=e.visitInt8||e.visitInt;break;case T.Int16:r=e.visitInt16||e.visitInt;break;case T.Int32:r=e.visitInt32||e.visitInt;break;case T.Int64:r=e.visitInt64||e.visitInt;break;case T.Uint8:r=e.visitUint8||e.visitInt;break;case T.Uint16:r=e.visitUint16||e.visitInt;break;case T.Uint32:r=e.visitUint32||e.visitInt;break;case T.Uint64:r=e.visitUint64||e.visitInt;break;case T.Float:r=e.visitFloat;break;case T.Float16:r=e.visitFloat16||e.visitFloat;break;case T.Float32:r=e.visitFloat32||e.visitFloat;break;case T.Float64:r=e.visitFloat64||e.visitFloat;break;case T.Utf8:r=e.visitUtf8;break;case T.LargeUtf8:r=e.visitLargeUtf8;break;case T.Binary:r=e.visitBinary;break;case T.LargeBinary:r=e.visitLargeBinary;break;case T.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case T.Date:r=e.visitDate;break;case T.DateDay:r=e.visitDateDay||e.visitDate;break;case T.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case T.Timestamp:r=e.visitTimestamp;break;case T.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case T.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case T.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case T.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case T.Time:r=e.visitTime;break;case T.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case T.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case T.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case T.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case T.Decimal:r=e.visitDecimal;break;case T.List:r=e.visitList;break;case T.Struct:r=e.visitStruct;break;case T.Union:r=e.visitUnion;break;case T.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case T.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case T.Dictionary:r=e.visitDictionary;break;case T.Interval:r=e.visitInterval;break;case T.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case T.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case T.IntervalMonthDayNano:r=e.visitIntervalMonthDayNano||e.visitInterval;break;case T.Duration:r=e.visitDuration;break;case T.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case T.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case T.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case T.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case T.FixedSizeList:r=e.visitFixedSizeList;break;case T.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${T[t]}'`)}function cr(e){switch(e.typeId){case T.Null:return T.Null;case T.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?T.Int8:T.Uint8;case 16:return n?T.Int16:T.Uint16;case 32:return n?T.Int32:T.Uint32;case 64:return n?T.Int64:T.Uint64}return T.Int}case T.Float:switch(e.precision){case v.HALF:return T.Float16;case v.SINGLE:return T.Float32;case v.DOUBLE:return T.Float64}return T.Float;case T.Binary:return T.Binary;case T.LargeBinary:return T.LargeBinary;case T.Utf8:return T.Utf8;case T.LargeUtf8:return T.LargeUtf8;case T.Bool:return T.Bool;case T.Decimal:return T.Decimal;case T.Time:switch(e.unit){case y.SECOND:return T.TimeSecond;case y.MILLISECOND:return T.TimeMillisecond;case y.MICROSECOND:return T.TimeMicrosecond;case y.NANOSECOND:return T.TimeNanosecond}return T.Time;case T.Timestamp:switch(e.unit){case y.SECOND:return T.TimestampSecond;case y.MILLISECOND:return T.TimestampMillisecond;case y.MICROSECOND:return T.TimestampMicrosecond;case y.NANOSECOND:return T.TimestampNanosecond}return T.Timestamp;case T.Date:switch(e.unit){case rt.DAY:return T.DateDay;case rt.MILLISECOND:return T.DateMillisecond}return T.Date;case T.Interval:switch(e.unit){case b.DAY_TIME:return T.IntervalDayTime;case b.YEAR_MONTH:return T.IntervalYearMonth;case b.MONTH_DAY_NANO:return T.IntervalMonthDayNano}return T.Interval;case T.Duration:switch(e.unit){case y.SECOND:return T.DurationSecond;case y.MILLISECOND:return T.DurationMillisecond;case y.MICROSECOND:return T.DurationMicrosecond;case y.NANOSECOND:return T.DurationNanosecond}return T.Duration;case T.Map:return T.Map;case T.List:return T.List;case T.Struct:return T.Struct;case T.Union:switch(e.mode){case _.Dense:return T.DenseUnion;case _.Sparse:return T.SparseUnion}return T.Union;case T.FixedSizeBinary:return T.FixedSizeBinary;case T.FixedSizeList:return T.FixedSizeList;case T.Dictionary:return T.Dictionary}throw Error(`Unrecognized type '${T[e.typeId]}'`)}A.prototype.visitInt8=null,A.prototype.visitInt16=null,A.prototype.visitInt32=null,A.prototype.visitInt64=null,A.prototype.visitUint8=null,A.prototype.visitUint16=null,A.prototype.visitUint32=null,A.prototype.visitUint64=null,A.prototype.visitFloat16=null,A.prototype.visitFloat32=null,A.prototype.visitFloat64=null,A.prototype.visitDateDay=null,A.prototype.visitDateMillisecond=null,A.prototype.visitTimestampSecond=null,A.prototype.visitTimestampMillisecond=null,A.prototype.visitTimestampMicrosecond=null,A.prototype.visitTimestampNanosecond=null,A.prototype.visitTimeSecond=null,A.prototype.visitTimeMillisecond=null,A.prototype.visitTimeMicrosecond=null,A.prototype.visitTimeNanosecond=null,A.prototype.visitDenseUnion=null,A.prototype.visitSparseUnion=null,A.prototype.visitIntervalDayTime=null,A.prototype.visitIntervalYearMonth=null,A.prototype.visitIntervalMonthDayNano=null,A.prototype.visitDuration=null,A.prototype.visitDurationSecond=null,A.prototype.visitDurationMillisecond=null,A.prototype.visitDurationMicrosecond=null,A.prototype.visitDurationNanosecond=null;var lr=e({float64ToUint16:()=>pr,uint16ToFloat64:()=>fr}
vendor: 3,592 bytes, line 1
1),ur=new Float64Array(1),dr=new Uint32Array(ur.buffer);function fr(e){let t=(e&31744)>>10,n=(e&1023)/1024,r=(-1)**((e&32768)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(t-15)*(1+n)}function pr(e){if(e!==e)return 32256;ur[0]=e;let t=(dr[1]&2147483648)>>16&65535,n=dr[1]&2146435072,r=0;return n>=1089470464?dr[0]>0?n=31744:(n=(n&2080374784)>>16,r=(dr[1]&1048575)>>10):n<=1056964608?(r=1048576+(dr[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(dr[1]&1048575)+512>>10),t|n|r&65535}var j=class extends A{};function M(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}var mr=(e,t,n)=>{e[t]=Math.floor(n/864e5)},hr=(e,t,n,r)=>{if(n+1<t.length){let i=E(t[n]),a=E(t[n+1]);e.set(r.subarray(0,a-i),i)}},gr=({offset:e,values:t},n,r)=>{let i=e+n;r?t[i>>3]|=1<<i%8:t[i>>3]&=~(1<<i%8)},_r=({values:e},t,n)=>{e[t]=n},vr=({values:e},t,n)=>{e[t]=n},yr=({values:e},t,n)=>{e[t]=pr(n)},br=(e,t,n)=>{switch(e.type.precision){case v.HALF:return yr(e,t,n);case v.SINGLE:case v.DOUBLE:return vr(e,t,n)}},xr=({values:e},t,n)=>{mr(e,t,n.valueOf())},Sr=({values:e},t,n)=>{e[t]=BigInt(n)},Cr=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},wr=({values:e,valueOffsets:t},n,r)=>hr(e,t,n,r),Tr=({values:e,valueOffsets:t},n,r)=>hr(e,t,n,l(r)),Er=(e,t,n)=>{e.type.unit===rt.DAY?xr(e,t,n):Sr(e,t,n)},Dr=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},Or=({values:e},t,n)=>{e[t]=BigInt(n)},kr=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},Ar=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},jr=(e,t,n)=>{switch(e.type.unit){case y.SECOND:return Dr(e,t,n);case y.MILLISECOND:return Or(e,t,n);case y.MICROSECOND:return kr(e,t,n);case y.NANOSECOND:return Ar(e,t,n)}},Mr=({values:e},t,n)=>{e[t]=n},Nr=({values:e},t,n)=>{e[t]=n},Pr=({values:e},t,n)=>{e[t]=n},Fr=({values:e},t,n)=>{e[t]=n},Ir=(e,t,n)=>{switch(e.type.unit){case y.SECOND:return Mr(e,t,n);case y.MILLISECOND:return Nr(e,t,n);case y.MICROSECOND:return Pr(e,t,n);case y.NANOSECOND:return Fr(e,t,n)}},Lr=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Rr=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=N.getVisitFn(r);if(Array.isArray(n))for(let e=-1,o=i[t],s=i[t+1];o<s;)a(r,o++,n[++e]);else for(let e=-1,o=i[t],s=i[t+1];o<s;)a(r,o++,n.get(++e))},zr=(e,t,n)=>{let r=e.children[0],{valueOffsets:i}=e,a=N.getVisitFn(r),{[t]:o,[t+1]:s}=i,c=n instanceof Map?n.entries():Object.entries(n);for(let e of c)if(a(r,o,e),++o>=s)break},Br=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),Vr=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),Hr=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),Ur=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),Wr=(e,t,n)=>{let r=e.type.children.map(e=>N.getVisitFn(e.type)),i=n instanceof Map?Hr(t,n):n instanceof W?Vr(t,n):Array.isArray(n)?Br(t,n):Ur(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},Gr=(e,t,n)=>{e.type.mode===_.Dense?Kr(e,t,n):qr(e,t,n)},Kr=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];N.visit(i,e.valueOffsets[t],n)},qr=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];N.visit(i,t,n)},Jr=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},Yr=(e,t,n)=>{switch(e.type.unit){case b.YEAR_MONTH:return Zr(e,t,n);case b.DAY_TIME:return Xr(e,t,n);case b.MONTH_DAY_NANO:return Qr(e,t,n)}},Xr=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},Zr=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},Qr=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},$r=({values:e},t,n)=>{e[t]=n},ei=({values:e},t,n)=>{e[t]=n},ti=({values:e},t,n)=>{e[t]=n},ni=({values:e},t,n)=>{e[t]=n},ri=(e,t,n)=>{switch(e.type.unit){case y.SECOND:return $r(e,t,n);
1case y.MILLISECOND:return ei(e,t,n);case y.MICROSECOND:return ti(e,t,n);case y.NANOSECOND:return ni(e,t,n)}},ii=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=N.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e<r;)a(i,o+e,n[e]);else for(let e=-1,o=t*r;++e<r;)a(i,o+e,n.get(e))};j.prototype.visitBool=M(gr),j.prototype.visitInt=M(_r),j.prototype.visitInt8=M(_r),j.prototype.visitInt16=M(_r),j.prototype.visitInt32=M(_r),j.prototype.visitInt64=M(_r),j.prototype.visitUint8=M(_r),j.prototype.visitUint16=M(_r),j.prototype.visitUint32=M(_r),j.prototype.visitUint64=M(_r),j.prototype.visitFloat=M(br),j.prototype.visitFloat16=M(yr),j.prototype.visitFloat32=M(vr),j.prototype.visitFloat64=M(vr),j.prototype.visitUtf8=M(Tr),j.prototype.visitLargeUtf8=M(Tr),j.prototype.visitBinary=M(wr),j.prototype.visitLargeBinary=M(wr),j.prototype.visitFixedSizeBinary=M(Cr),j.prototype.visitDate=M(Er),j.prototype.visitDateDay=M(xr),j.prototype.visitDateMillisecond=M(Sr),j.prototype.visitTimestamp=M(jr),j.prototype.visitTimestampSecond=M(Dr),j.prototype.visitTimestampMillisecond=M(Or),j.prototype.visitTimestampMicrosecond=M(kr),j.prototype.visitTimestampNanosecond=M(Ar),j.prototype.visitTime=M(Ir),j.prototype.visitTimeSecond=M(Mr),j.prototype.visitTimeMillisecond=M(Nr),j.prototype.visitTimeMicrosecond=M(Pr),j.prototype.visitTimeNanosecond=M(Fr),j.prototype.visitDecimal=M(Lr),j.prototype.visitList=M(Rr),j.prototype.visitStruct=M(Wr),j.prototype.visitUnion=M(Gr),j.prototype.visitDenseUnion=M(Kr),j.prototype.visitSparseUnion=M(qr),j.prototype.visitDictionary=M(Jr),j.prototype.visitInterval=M(Yr),j.prototype.visitIntervalDayTime=M(Xr),j.prototype.visitIntervalYearMonth=M(Zr),j.prototype.visitIntervalMonthDayNano=M(Qr),j.prototype.visitDuration=M(ri),j.prototype.visitDurationSecond=M($r),j.prototype.visitDurationMillisecond=M(ei),j.prototype.visitDurationMicrosecond=M(ti),j.prototype.visitDurationNanosecond=M(ni),j.prototype.visitFixedSizeList=M(ii),j.prototype.visitMap=M(zr);var N=new j,P=Symbol.for(`parent`),ai=Symbol.for(`rowIndex`),oi=class{constructor(e,t){return this[P]=e,this[ai]=t,new Proxy(this,ci)}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[ai],t=this[P],n=t.type.children,r={};for(let i=-1,a=n.length;++i<a;)r[n[i].name]=L.visit(t.children[i],e);return r}toString(){return`{${[...this].map(([e,t])=>`${Gt(e)}: ${Gt(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new si(this[P],this[ai])}},si=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,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,L.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}};Object.defineProperties(oi.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[P]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ai]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});var ci=new class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[P].type.children.map(e=>e.name)}has(e,t){return e[P].type.children.some(e=>e.name===t)}getOwnPropertyDescriptor(e,t){if(e[P].type.children.some(e=>e.name===t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[P].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=L.visit(e[P].children[n],e[ai]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[P].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(N.visit(e[P].children[r],e[ai],n),Reflect.set(e,t,n))}},F=class extends A{};function I(e){return(t,n)=>t.getValid(n)?e(t,n):null}var li=(e,t)=>864e5*e[t],ui=(e,t)=>null,di=(e,t,n)=>{if(n+1>=t.length)return null;let r=E(t[n]),i=E(t[n+1]);return e.subarray(r,i)},fi=({offset:e,values:t},n)=>{let r=e+n;return(t[r>>3]&1<<r%8)!=0},pi=({values:e},t)=>li(e,t),mi=({values:e},t)=>E(e[t]),hi=({stride:e,values:t},n)=>t[e*n],gi=({stride:e,values:t},n)=>fr(t[e*n]),_i=({values:e},t)=>e[t],vi=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),yi=({values:e,valueOffsets:t},n)=>di(e,t,n),bi=({values:e,valueOffsets:t},n)=>{let r=di(e,t,n);return r===null?null:s(r)},xi=({values:e},t)=>e[t],Si=({type:e,values:t},n)=>
1e.precision===v.HALF?fr(t[n]):t[n],Ci=(e,t)=>e.type.unit===rt.DAY?pi(e,t):mi(e,t),wi=({values:e},t)=>1e3*E(e[t]),Ti=({values:e},t)=>E(e[t]),Ei=({values:e},t)=>Kt(e[t],BigInt(1e3)),Di=({values:e},t)=>Kt(e[t],BigInt(1e6)),Oi=(e,t)=>{switch(e.type.unit){case y.SECOND:return wi(e,t);case y.MILLISECOND:return Ti(e,t);case y.MICROSECOND:return Ei(e,t);case y.NANOSECOND:return Di(e,t)}},ki=({values:e},t)=>e[t],Ai=({values:e},t)=>e[t],ji=({values:e},t)=>e[t],Mi=({values:e},t)=>e[t],Ni=(e,t)=>{switch(e.type.unit){case y.SECOND:return ki(e,t);case y.MILLISECOND:return Ai(e,t);case y.MICROSECOND:return ji(e,t);case y.NANOSECOND:return Mi(e,t)}},Pi=({values:e,stride:t},n)=>an.decimal(e.subarray(t*n,t*(n+1))),Fi=(e,t)=>{let{valueOffsets:n,stride:r,children:i}=e,{[t*r]:a,[t*r+1]:o}=n;return new W([i[0].slice(a,o-a)])},Ii=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new na(o.slice(i,a-i))},Li=(e,t)=>new oi(e,t),Ri=(e,t)=>e.type.mode===_.Dense?zi(e,t):Bi(e,t),zi=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return L.visit(r,e.valueOffsets[t])},Bi=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return L.visit(r,t)},Vi=(e,t)=>e.dictionary?.get(e.values[t]),Hi=(e,t)=>e.type.unit===b.MONTH_DAY_NANO?Gi(e,t):e.type.unit===b.DAY_TIME?Ui(e,t):Wi(e,t),Ui=({values:e},t)=>e.subarray(2*t,2*(t+1)),Wi=({values:e},t)=>{let n=e[t],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},Gi=({values:e},t)=>e.subarray(4*t,4*(t+1)),Ki=({values:e},t)=>e[t],qi=({values:e},t)=>e[t],Ji=({values:e},t)=>e[t],Yi=({values:e},t)=>e[t],Xi=(e,t)=>{switch(e.type.unit){case y.SECOND:return Ki(e,t);case y.MILLISECOND:return qi(e,t);case y.MICROSECOND:return Ji(e,t);case y.NANOSECOND:return Yi(e,t)}},Zi=(e,t)=>{let{stride:n,children:r}=e;return new W([r[0].slice(t*n,n)])};F.prototype.visitNull=I(ui),F.prototype.visitBool=I(fi),F.prototype.visitInt=I(xi),F.prototype.visitInt8=I(hi),F.prototype.visitInt16=I(hi),F.prototype.visitInt32=I(hi),F.prototype.visitInt64=I(_i),F.prototype.visitUint8=I(hi),F.prototype.visitUint16=I(hi),F.prototype.visitUint32=I(hi),F.prototype.visitUint64=I(_i),F.prototype.visitFloat=I(Si),F.prototype.visitFloat16=I(gi),F.prototype.visitFloat32=I(hi),F.prototype.visitFloat64=I(hi),F.prototype.visitUtf8=I(bi),F.prototype.visitLargeUtf8=I(bi),F.prototype.visitBinary=I(yi),F.prototype.visitLargeBinary=I(yi),F.prototype.visitFixedSizeBinary=I(vi),F.prototype.visitDate=I(Ci),F.prototype.visitDateDay=I(pi),F.prototype.visitDateMillisecond=I(mi),F.prototype.visitTimestamp=I(Oi),F.prototype.visitTimestampSecond=I(wi),F.prototype.visitTimestampMillisecond=I(Ti),F.prototype.visitTimestampMicrosecond=I(Ei),F.prototype.visitTimestampNanosecond=I(Di),F.prototype.visitTime=I(Ni),F.prototype.visitTimeSecond=I(ki),F.prototype.visitTimeMillisecond=I(Ai),F.prototype.visitTimeMicrosecond=I(ji),F.prototype.visitTimeNanosecond=I(Mi),F.prototype.visitDecimal=I(Pi),F.prototype.visitList=I(Fi),F.prototype.visitStruct=I(Li),F.prototype.visitUnion=I(Ri),F.prototype.visitDenseUnion=I(zi),F.prototype.visitSparseUnion=I(Bi),F.prototype.visitDictionary=I(Vi),F.prototype.visitInterval=I(Hi),F.prototype.visitIntervalDayTime=I(Ui),F.prototype.visitIntervalYearMonth=I(Wi),F.prototype.visitIntervalMonthDayNano=I(Gi),F.prototype.visitDuration=I(Xi),F.prototype.visitDurationSecond=I(Ki),F.prototype.visitDurationMillisecond=I(qi),F.prototype.visitDurationMicrosecond=I(Ji),F.prototype.visitDurationNanosecond=I(Yi),F.prototype.visitFixedSizeList=I(Zi),F.prototype.visitMap=I(Ii);var L=new F,Qi=Symbol.for(`keys`),$i=Symbol.for(`vals`),ea=Symbol.for(`kKeysAsStrings`),ta=Symbol.for(`_kKeysAsStrings`),na=class{constructor(e){return this[Qi]=new W([e.children[0]]).memoize(),this[$i]=e.children[1],new Proxy(this,new ia)}get[ea](){return this[ta]||(this[ta]=Array.from(this[Qi].toArray(),String))}[Symbol.iterator](){return new ra(this[Qi],this[$i])}get size(){return this[Qi].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Qi],t=this[$i],n={};for(let r=-1,i=e.length;++r<i;)n[e.get(r)]=L.visit(t,r);return n}toString(){return`{${[...this].map(([e,t])=>`${Gt(e)}: ${Gt(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},ra=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKe
vendor: 4,150 bytes, line 1
1ys=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),L.visit(this.vals,e)]})}},ia=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[ea]}has(e,t){return e[ea].includes(t)}getOwnPropertyDescriptor(e,t){if(e[ea].indexOf(t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[ea].indexOf(t);if(n!==-1){let r=L.visit(Reflect.get(e,$i),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[ea].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(N.visit(Reflect.get(e,$i),r,n),Reflect.set(e,t,n))}};Object.defineProperties(na.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[Qi]:{writable:!0,enumerable:!1,configurable:!1,value:null},[$i]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ta]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var aa=e({clampRange:()=>sa,createElementComparator:()=>ua,wrapIndex:()=>ca}),oa;function sa(e,t,n,r){let{length:i=0}=e,a=typeof t==`number`?t:0,o=typeof n==`number`?n:i;return a<0&&(a=(a%i+i)%i),o<0&&(o=(o%i+i)%i),o<a&&(oa=a,a=o,o=oa),o>i&&(o=i),r?r(e,a,o):[a,o]}var ca=(e,t)=>e<0?t+e:e,la=e=>e!==e;function ua(e){if(typeof e!=`object`||!e)return la(e)?la:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date?e.valueOf()===t:!1}return ArrayBuffer.isView(e)?t=>t?Je(e,t):!1:e instanceof Map?fa(e):Array.isArray(e)?da(e):e instanceof W?pa(e):ma(e,!0)}function da(e){let t=[];for(let n=-1,r=e.length;++n<r;)t[n]=ua(e[n]);return ha(t)}function fa(e){let t=-1,n=[];for(let r of e.values())n[++t]=ua(r);return ha(n)}function pa(e){let t=[];for(let n=-1,r=e.length;++n<r;)t[n]=ua(e.get(n));return ha(t)}function ma(e,t=!1){let n=Object.keys(e);if(!t&&n.length===0)return()=>!1;let r=[];for(let t=-1,i=n.length;++t<i;)r[t]=ua(e[n[t]]);return ha(r,n)}function ha(e,t){return n=>{if(!n||typeof n!=`object`)return!1;switch(n.constructor){case Array:return ga(e,n);case Map:return va(e,n,n.keys());case na:case oi:case Object:case void 0:return va(e,n,t||Object.keys(n))}return n instanceof W?_a(e,n):!1}}function ga(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++r<n;)if(!e[r](t[r]))return!1;return!0}function _a(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++r<n;)if(!e[r](t.get(r)))return!1;return!0}function va(e,t,n){let r=n[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),a=t instanceof Map?t.values():Object.values(t)[Symbol.iterator](),o=0,s=e.length,c=a.next(),l=r.next(),u=i.next();for(;o<s&&!l.done&&!u.done&&!c.done&&!(l.value!==u.value||!e[o](c.value));++o,l=r.next(),u=i.next(),c=a.next());return o===s&&l.done&&u.done&&c.done?!0:(r.return&&r.return(),i.return&&i.return(),a.return&&a.return(),!1)}var ya=e({BitIterator:()=>Ta,getBit:()=>xa,getBool:()=>ba,packBools:()=>wa,popcnt_array:()=>Da,popcnt_bit_range:()=>Ea,popcnt_uint32:()=>Oa,setBool:()=>Sa,truncateBitmap:()=>Ca});function ba(e,t,n,r){return(n&1<<r)!=0}function xa(e,t,n,r){return(n&1<<r)>>r}function Sa(e,t,n){return n?!!(e[t>>3]|=1<<t%8)||!0:!(e[t>>3]&=~(1<<t%8))&&!1}function Ca(e,t,n){let r=n.byteLength+7&-8;if(e>0||n.byteLength<r){let i=new Uint8Array(r);return i.set(e%8==0?n.subarray(e>>3):wa(new Ta(n,e,t,null,ba)).subarray(0,r)),i}return n}function wa(e){let t=[],n=0,r=0,i=0;for(let a of e)a&&(i|=1<<r),++r===8&&(t[n++]=i,i=r=0);(n===0||r>0)&&(t[n++]=i);let a=new Uint8Array(t.length+7&-8);return a.set(t),a}var Ta=class{constructor(e,t,n,r,i){this.bytes=e,this.length=n,this.context=r,this.get=i,this.bit=t%8,this.byteIndex=t>>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 Ea(e,t,n){if(n-t<=0)return 0;if(n-t<8){let r=0;for(let i of new Ta(e,t,n-t,e,xa))r+=i;return r}let r=n>>3<<3,i=t+(t%8==0?0:8-t%8);return Ea(e,t,i)+Ea(e,r,n)+Da(e,i>>3,r-i>>3)}
1function Da(e,t,n){let r=0,i=Math.trunc(t),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=Oa(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=Oa(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=Oa(a.getUint8(i)),i+=1;return r}function Oa(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}var R=class e{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 D.isSparseUnion(e)||D.isDenseUnion(e)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:n,nullBitmap:r,typeIds:i}=this;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),this.children.reduce((e,t)=>e+t.byteLength,e)}get nullCount(){if(D.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-Ea(t,this.offset,this.offset+this.length)),e}constructor(t,n,r,i,a,o=[],s){this.type=t,this.children=o,this.dictionary=s,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let c;a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=ar(t),a&&((c=a[0])&&(this.valueOffsets=c),(c=a[1])&&(this.values=c),(c=a[2])&&(this.nullBitmap=c),(c=a[3])&&(this.typeIds=c)))}getValid(e){let{type:t}=this;if(D.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===_.Dense?this.valueOffsets[e]:e;return r.getValid(i)}if(this.nullable&&this.nullCount>0){let t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!=0}return!0}setValid(e,t){let n,{type:r}=this;if(D.isUnion(r)){let i=r,a=this.children[i.typeIdToChildIndex[this.typeIds[e]]],o=i.mode===_.Dense?this.valueOffsets[e]:e;n=a.getValid(o),a.setValid(o,t)}else{let{nullBitmap:r}=this,{offset:i,length:a}=this,o=i+e,s=1<<o%8,c=o>>3;(!r||r.byteLength<=c)&&(r=new Uint8Array((i+a+63&-64)>>3).fill(255),this.nullCount>0?(r.set(Ca(i,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:r})):Object.assign(this,{nullBitmap:r,_nullCount:0}));let l=r[c];n=(l&s)!==0,r[c]=t?l|s:l&~s}return n!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,n=this.offset,r=this.length,i=this._nullCount,a=this,o=this.children){return new e(t,n,r,i,a,o,this.dictionary)}slice(e,t){let{stride:n,typeId:r,children:i}=this,a=(this._nullCount===0)-1,o=r===16?n:1,s=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,a,s,i.length===0||this.valueOffsets?i:this._sliceChildren(i,o*e,o*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===T.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:n}=this,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<<t-(t&-8))-1,n>0&&r.set(Ca(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[Ht.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),i)}_sliceBuffers(e,t,n,r){let i,{buffers:a}=this;return(i=a[Ht.TYPE])&&(a[Ht.TYPE]=i.subarray(e,e+t)),(i=a[Ht.OFFSET])&&(a[Ht.OFFSET]=i.subarray(e,e+t+1))||(i=a[Ht.DATA])&&(a[Ht.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};R.prototype.children=Object.freeze([]);var ka=new class e extends A{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new R(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=m(e.data),i=m(e.nullBitmap),a=ye(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new R(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=m(e.data),i=m(e.nullBitmap),a=be(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new R(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=m(e.data),i=m(e.nullBitmap),a=ye(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new R(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=m(e.data),i=m(e.nullBitmap),a=be(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new R(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length/ar(t),nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length/ar(t),nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length/ar(t),nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length/ar(t),nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length/ar(t),nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=m(e.nullBitmap),a=ye(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new R(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=m(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=p(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;return D.isSparseUnion(t)?new R(t,n,a,o,[void 0,void 0,void 0,i],r):new R(t,n,a,o,[ye(e.valueOffsets),void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=m(t.nullBitmap),a=p(n.indices.ArrayType,t.data),{dictionary:o=new W([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new R(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length/ar(t),nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=m(e.nullBitmap),i=p(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new R(t,n,a,o,[void 0,i,r])}visitFixedSizeList(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.valueType})}=t,a=m(t.nullBitmap),{length:o=i.length/ar(n),nullCount:s=t.nullBitmap?-1:0}=t;return new R(n,r,o,s,[void 0,void 0,a],[i])}visitMap(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.childType})}=t,a=m(t.nullBitmap),o=ye(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new R(n,r,s,c,[o,void 0,a],[i])}};function z(e){return ka.visit(e)}var Aa=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,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 ja(e){return e.some(e=>e.nullable)}function Ma(e){return e.reduce((e,t)=>
vendor: 1,678 bytes, line 1
1e+t.nullCount,0)}function Na(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function Pa(e,t,n,r){let i=[];for(let a=-1,o=e.length;++a<o;){let o=e[a],s=t[a],{length:c}=o;if(s>=r)break;if(n>=s+c)continue;if(s>=n&&s+c<=r){i.push(o);continue}let l=Math.max(0,n-s),u=Math.min(r-s,c);i.push(o.slice(l,u-l))}return i.length===0&&i.push(e[0].slice(0,0)),i}function Fa(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n<t[o]?r(e,i,n-t[i]):null;a=i+Math.trunc((o-i)*.5),n<t[a]?o=a:i=a}while(i<o)}function Ia(e,t){return e.getValid(t)}function La(e){function t(t,n,r){return e(t[n],r)}return function(e){let n=this.data;return Fa(n,this._offsets,e,t)}}function Ra(e){let t;function n(n,r,i){return e(n[r],i,t)}return function(e,r){let i=this.data;t=r;let a=Fa(i,this._offsets,e,n);return t=void 0,a}}function za(e){let t;function n(n,r,i){let a=i,o=0,s=0;for(let i=r-1,c=n.length;++i<c;){let r=n[i];if(~(o=e(r,t,a)))return s+o;a=0,s+=r.length}return-1}return function(e,r){t=e;let i=this.data,a=typeof r==`number`?Fa(i,this._offsets,r,n):n(i,0,0);return t=void 0,a}}var B=class extends A{};function Ba(e,t){return t===null&&e.length>0?0:-1}function Va(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new Ta(n,e.offset+(t||0),e.length,n,ba)){if(!i)return r;++r}return-1}function V(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case T.Union:break;case T.Dictionary:break;default:return Va(e,n)}let r=L.getVisitFn(e),i=ua(t);for(let t=(n||0)-1,a=e.length;++t<a;)if(i(r(e,t)))return t;return-1}function Ha(e,t,n){let r=L.getVisitFn(e),i=ua(t);for(let t=(n||0)-1,a=e.length;++t<a;)if(i(r(e,t)))return t;return-1}
1B.prototype.visitNull=Ba,B.prototype.visitBool=V,B.prototype.visitInt=V,B.prototype.visitInt8=V,B.prototype.visitInt16=V,B.prototype.visitInt32=V,B.prototype.visitInt64=V,B.prototype.visitUint8=V,B.prototype.visitUint16=V,B.prototype.visitUint32=V,B.prototype.visitUint64=V,B.prototype.visitFloat=V,B.prototype.visitFloat16=V,B.prototype.visitFloat32=V,B.prototype.visitFloat64=V,B.prototype.visitUtf8=V,B.prototype.visitLargeUtf8=V,B.prototype.visitBinary=V,B.prototype.visitLargeBinary=V,B.prototype.visitFixedSizeBinary=V,B.prototype.visitDate=V,B.prototype.visitDateDay=V,B.prototype.visitDateMillisecond=V,B.prototype.visitTimestamp=V,B.prototype.visitTimestampSecond=V,B.prototype.visitTimestampMillisecond=V,B.prototype.visitTimestampMicrosecond=V,B.prototype.visitTimestampNanosecond=V,B.prototype.visitTime=V,B.prototype.visitTimeSecond=V,B.prototype.visitTimeMillisecond=V,B.prototype.visitTimeMicrosecond=V,B.prototype.visitTimeNanosecond=V,B.prototype.visitDecimal=V,B.prototype.visitList=V,B.prototype.visitStruct=V,B.prototype.visitUnion=V,B.prototype.visitDenseUnion=Ha,B.prototype.visitSparseUnion=Ha,B.prototype.visitDictionary=V,B.prototype.visitInterval=V,B.prototype.visitIntervalDayTime=V,B.prototype.visitIntervalYearMonth=V,B.prototype.visitIntervalMonthDayNano=V,B.prototype.visitDuration=V,B.prototype.visitDurationSecond=V,B.prototype.visitDurationMillisecond=V,B.prototype.visitDurationMicrosecond=V,B.prototype.visitDurationNanosecond=V,B.prototype.visitFixedSizeList=V,B.prototype.visitMap=V;var Ua=new B,H=class extends A{};function U(e){let{type:t}=e;if(e.nullCount===0&&e.stride===1&&(D.isInt(t)&&t.bitWidth!==64||D.isTime(t)&&t.bitWidth!==64||D.isFloat(t)&&t.precision!==v.HALF))return new Aa(e.data.length,t=>{let n=e.data[t];return n.values.subarray(0,n.length)[Symbol.iterator]()});let n=0;return new Aa(e.data.length,t=>{let r=e.data[t].length,i=e.slice(n,n+r);return n+=r,new Wa(i)})}var Wa=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}};H.prototype.visitNull=U,H.prototype.visitBool=U,H.prototype.visitInt=U,H.prototype.visitInt8=U,H.prototype.visitInt16=U,H.prototype.visitInt32=U,H.prototype.visitInt64=U,H.prototype.visitUint8=U,H.prototype.visitUint16=U,H.prototype.visitUint32=U,H.prototype.visitUint64=U,H.prototype.visitFloat=U,H.prototype.visitFloat16=U,H.prototype.visitFloat32=U,H.prototype.visitFloat64=U,H.prototype.visitUtf8=U,H.prototype.visitLargeUtf8=U,H.prototype.visitBinary=U,H.prototype.visitLargeBinary=U,H.prototype.visitFixedSizeBinary=U,H.prototype.visitDate=U,H.prototype.visitDateDay=U,H.prototype.visitDateMillisecond=U,H.prototype.visitTimestamp=U,H.prototype.visitTimestampSecond=U,H.prototype.visitTimestampMillisecond=U,H.prototype.visitTimestampMicrosecond=U,H.prototype.visitTimestampNanosecond=U,H.prototype.visitTime=U,H.prototype.visitTimeSecond=U,H.prototype.visitTimeMillisecond=U,H.prototype.visitTimeMicrosecond=U,H.prototype.visitTimeNanosecond=U,H.prototype.visitDecimal=U,H.prototype.visitList=U,H.prototype.visitStruct=U,H.prototype.visitUnion=U,H.prototype.visitDenseUnion=U,H.prototype.visitSparseUnion=U,H.prototype.visitDictionary=U,H.prototype.visitInterval=U,H.prototype.visitIntervalDayTime=U,H.prototype.visitIntervalYearMonth=U,H.prototype.visitIntervalMonthDayNano=U,H.prototype.visitDuration=U,H.prototype.visitDurationSecond=U,H.prototype.visitDurationMillisecond=U,H.prototype.visitDurationMicrosecond=U,H.prototype.visitDurationNanosecond=U,H.prototype.visitFixedSizeList=U,H.prototype.visitMap=U;var Ga=new H,Ka,qa={},Ja={},W=class e{constructor(t){let n=t[0]instanceof e?t.flatMap(e=>e.data):t;if(n.length===0||n.some(e=>!(e instanceof R)))throw TypeError(`Vector constructor expects an Array of Data instances.`);let r=n[0]?.type;switch(n.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:i}=qa[r.typeId],a=n[0];this.isValid=e=>Ia(a,e),this.get=t=>e(a,t),this.set=(e,n)=>t(a,e,n),this.indexOf=e=>i(a,e),this._offsets=[0,a.length];break}default:Object.setPrototypeOf(this,Ja[r.typeId]),this._offsets=Na(n);break}this.data=n,this.type=r,this.stride=ar(r),this.numChildren=r.children?.length??0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,t)=>
1e+t.byteLength,0)}get nullable(){return ja(this.data)}get nullCount(){return Ma(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${T[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(ca(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return Ga.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(sa(this,t,n,({data:e,_offsets:t},n,r)=>Pa(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case T.Int:case T.Float:case T.Decimal:case T.Time:case T.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,n*r);default:return t.reduce((e,{values:t,length:n})=>(e.array.set(t.subarray(0,n*r),e.offset),e.offset+=n*r,e),{array:new i(n*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(`,`)}]`}getChild(e){return this.getChildAt(this.type.children?.findIndex(t=>t.name===e))}getChildAt(t){return t>-1&&t<this.numChildren?new e(this.data.map(({children:e})=>e[t])):null}get isMemoized(){return D.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(D.isDictionary(this.type)){let t=new Ya(this.data[0].dictionary);return new e(this.data.map(e=>{let n=e.clone();return n.dictionary=t,n}))}return new Ya(this)}unmemoize(){if(D.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize();return new e(this.data.map(e=>{let n=e.clone();return n.dictionary=t,n}))}return this}};Ka=Symbol.toStringTag,W[Ka]=(e=>{e.type=D.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(T).map(e=>T[e]).filter(e=>typeof e==`number`&&e!==T.NONE);for(let n of t)qa[n]={get:L.getVisitFnByTypeId(n),set:N.getVisitFnByTypeId(n),indexOf:Ua.getVisitFnByTypeId(n)},Ja[n]=Object.create(e,{isValid:{value:La(Ia)},get:{value:La(L.getVisitFnByTypeId(n))},set:{value:Ra(N.getVisitFnByTypeId(n))},indexOf:{value:za(Ua.getVisitFnByTypeId(n))}});return`Vector`})(W.prototype);var Ya=class e extends W{constructor(t){super(t.data);let n=this.get,r=this.set,i=this.slice,a=Array(this.length);Object.defineProperty(this,`get`,{value(e){let t=a[e];if(t!==void 0)return t;let r=n.call(this,e);return a[e]=r,r}}),Object.defineProperty(this,`set`,{value(e,t){r.call(this,e,t),a[e]=t}}),Object.defineProperty(this,`slice`,{value:(t,n)=>new e(i.call(this,t,n))}),Object.defineProperty(this,`isMemoized`,{value:!0}),Object.defineProperty(this,`unmemoize`,{value:()=>new W(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}};function Xa(e){if(e){if(e instanceof R)return new W([e]);if(e instanceof W)return new W(e.data);if(e.type instanceof D)return new W([z(e)]);if(Array.isArray(e))return new W(e.flatMap(e=>Za(e)));if(ArrayBuffer.isView(e)){e instanceof DataView&&(e=new Uint8Array(e.buffer));let t={offset:0,length:e.length,nullCount:-1,data:e};if(e instanceof Int8Array)return new W([z(Object.assign(Object.assign({},t),{type:new kn}))]);if(e instanceof Int16Array)return new W([z(Object.assign(Object.assign({},t),{type:new An}))]);if(e instanceof Int32Array)return new W([z(Object.assign(Object.assign({},t),{type:new jn}))]);if(e instanceof BigInt64Array)return new W([z(Object.assign(Object.assign({},t),{type:new Mn}))]);if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new W([z(Object.assign(Object.assign({},t),{type:new Nn}))]);if(e instanceof Uint16Array)return new W([z(Object.assign(Object.assign({},t),{type:new Pn}))]);if(e instanceof Uint32Array)return new W([z(Object.assign(Object.assign({},t),{type:new Fn}))]);if(e instanceof BigUint64Array)return new W([z(Object.assign(Object.assign({},t),{type:new In}))]);if(e instanceof Float32Array)return new W([z(Object.assign(Object.assign({},t),{type:new zn}))]);if(e instanceof Float64Array)return new W([z(Object.assign(Object.assign({},t),{type:new Bn}))]);throw Error(`Unrecognized input`)}}throw Error(`Unrecognized input`)}function Za(e){return e instanceof R?[e]:e instanceof W?e.data:Xa(e).data}var Qa=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,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,t,n,r){return e.prep(8,24),e.writeInt64(BigInt(r??0)),e.pad(4),e.writeInt32(n),e.writeInt64(BigInt(t??0)),e.offset()}},$a=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):g.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new Vt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new Qa).__init(this.bb.__vector(this.bb_pos+n)+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,t){let n=this.bb.__offset(this.bb_pos,10);return n?(t||new Qa).__init(this.bb.__vector(this.bb_pos+n)+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,t){let n=this.bb.__offset(this.bb_pos,12);return n?(t||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+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,t){e.addFieldInt16(0,t,g.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}}
vendor: 11,266 bytes, line 1
1,G=class e{constructor(e=[],t,n,r=g.V5){this.fields=e||[],this.metadata=t||new Map,n||=to(this.fields),this.dictionaries=n,this.metadataVersion=r}get[Symbol.toStringTag](){return`Schema`}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(`, `)} }>`}select(t){let n=new Set(t);return new e(this.fields.filter(e=>n.has(e.name)),this.metadata)}selectAt(t){return new e(t.map(e=>this.fields[e]).filter(Boolean),this.metadata)}assign(...t){let n=t[0]instanceof e?t[0]:Array.isArray(t[0])?new e(t[0]):new e(t),r=[...this.fields],i=eo(eo(new Map,this.metadata),n.metadata),a=n.fields.filter(e=>{let t=r.findIndex(t=>t.name===e.name);return~t?(r[t]=e.clone({metadata:eo(eo(new Map,r[t].metadata),e.metadata)}))&&!1:!0}),o=to(a,new Map);return new e([...r,...a],i,new Map([...this.dictionaries,...o]))}};G.prototype.fields=null,G.prototype.metadata=null,G.prototype.dictionaries=null;var K=class e{static new(...t){let[n,r,i,a]=t;return t[0]&&typeof t[0]==`object`&&({name:n}=t[0],r===void 0&&(r=t[0].type),i===void 0&&(i=t[0].nullable),a===void 0&&(a=t[0].metadata)),new e(`${n}`,r,i,a)}constructor(e,t,n=!1,r){this.name=e,this.type=t,this.nullable=n,this.metadata=r||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return`Field`}toString(){return`${this.name}: ${this.type}`}clone(...t){let[n,r,i,a]=t;return!t[0]||typeof t[0]!=`object`?[n=this.name,r=this.type,i=this.nullable,a=this.metadata]=t:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:a=this.metadata}=t[0],e.new(n,r,i,a)}};K.prototype.type=null,K.prototype.name=null,K.prototype.nullable=null,K.prototype.metadata=null;function eo(e,t){return new Map([...e||new Map,...t||new Map])}function to(e,t=new Map){for(let n=-1,r=e.length;++n<r;){let r=e[n].type;if(D.isDictionary(r)){if(!t.has(r.id))t.set(r.id,r.dictionary);else if(t.get(r.id)!==r.dictionary)throw Error(`Cannot create Schema containing two different dictionaries with the same Id`)}r.children&&r.children.length>0&&to(r.children,t)}return t}var no=ut,ro=lt,io=class{static decode(e){e=new ro(m(e));let t=$a.getRootAsFooter(e);return new ao(G.decode(t.schema(),new Map,t.version()),t)}static encode(e){let t=new no,n=G.encode(t,e.schema);$a.startRecordBatchesVector(t,e.numRecordBatches);for(let n of[...e.recordBatches()].slice().reverse())oo.encode(t,n);let r=t.endVector();$a.startDictionariesVector(t,e.numDictionaries);for(let n of[...e.dictionaryBatches()].slice().reverse())oo.encode(t,n);let i=t.endVector();return $a.startFooter(t),$a.addSchema(t,n),$a.addVersion(t,g.V5),$a.addRecordBatches(t,r),$a.addDictionaries(t,i),$a.finishFooterBuffer(t,$a.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=g.V5,n,r){this.schema=e,this.version=t,n&&(this._recordBatches=n),r&&(this._dictionaryBatches=r)}*recordBatches(){for(let e,t=-1,n=this.numRecordBatches;++t<n;)(e=this.getRecordBatch(t))&&(yield e)}*dictionaryBatches(){for(let e,t=-1,n=this.numDictionaries;++t<n;)(e=this.getDictionaryBatch(t))&&(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}},ao=class extends io{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,t){super(e,t.version()),this._footer=t}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){let t=this._footer.recordBatches(e);if(t)return oo.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){let t=this._footer.dictionaries(e);if(t)return oo.decode(t)}return null}},oo=class e{static decode(t){return new e(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(e,t){let{metaDataLength:n}=t,r=BigInt(t.offset),i=BigInt(t.bodyLength);return Qa.createBlock(e,r,n,i)}constructor(e,t,n){this.metaDataLength=e,this.offset=E(n),this.bodyLength=E(t)}},so=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):g.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):w.NONE}header(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,12);return n?(t||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+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,t){e.addFieldInt16(0,t,g.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,w.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt(`0`))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(t,n,r,i,a,o){return e.startMessage(t),e.addVersion(t,n),e.addHeaderType(t,r),e.addHeader(t,i),e.addBodyLength(t,a),e.addCustomMetadata(t,o),e.endMessage(t)}},co=new class extends A{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return Ft.startNull(t),Ft.endNull(t)}visitInt(e,t){return bt.startInt(t),bt.addBitWidth(t,e.bitWidth),bt.addIsSigned(t,e.isSigned),bt.endInt(t)}visitFloat(e,t){return kt.startFloatingPoint(t),kt.addPrecision(t,e.precision),kt.endFloatingPoint(t)}visitBinary(e,t){return St.startBinary(t),St.endBinary(t)}visitLargeBinary(e,t){return jt.startLargeBinary(t),jt.endLargeBinary(t)}visitBool(e,t){return Ct.startBool(t),Ct.endBool(t)}visitUtf8(e,t){return Bt.startUtf8(t),Bt.endUtf8(t)}visitLargeUtf8(e,t){return Mt.startLargeUtf8(t),Mt.endLargeUtf8(t)}visitDecimal(e,t){return Tt.startDecimal(t),Tt.addScale(t,e.scale),Tt.addPrecision(t,e.precision),Tt.addBitWidth(t,e.bitWidth),Tt.endDecimal(t)}visitDate(e,t){return wt.startDate(t),wt.addUnit(t,e.unit),wt.endDate(t)}visitTime(e,t){return Lt.startTime(t),Lt.addUnit(t,e.unit),Lt.addBitWidth(t,e.bitWidth),Lt.endTime(t)}visitTimestamp(e,t){let n=e.timezone&&t.createString(e.timezone)||void 0;return Rt.startTimestamp(t),Rt.addUnit(t,e.unit),n!==void 0&&Rt.addTimezone(t,n),Rt.endTimestamp(t)}visitInterval(e,t){return At.startInterval(t),At.addUnit(t,e.unit),At.endInterval(t)}visitDuration(e,t){return Et.startDuration(t),Et.addUnit(t,e.unit),Et.endDuration(t)}visitList(e,t){return Nt.startList(t),Nt.endList(t)}visitStruct(e,t){return It.startStruct_(t),It.endStruct_(t)}visitUnion(e,t){zt.startTypeIdsVector(t,e.typeIds.length);let n=zt.createTypeIdsVector(t,e.typeIds);return zt.startUnion(t),zt.addMode(t,e.mode),zt.addTypeIds(t,n),zt.endUnion(t)}visitDictionary(e,t){let n=this.visit(e.indices,t);return xt.startDictionaryEncoding(t),xt.addId(t,BigInt(e.id)),xt.addIsOrdered(t,e.isOrdered),n!==void 0&&xt.addIndexType(t,n),xt.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return Dt.startFixedSizeBinary(t),Dt.addByteWidth(t,e.byteWidth),Dt.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return Ot.startFixedSizeList(t),Ot.addListSize(t,e.listSize),Ot.endFixedSizeList(t)}visitMap(e,t){return Pt.startMap(t),Pt.addKeysSorted(t,e.keysSorted),Pt.endMap(t)}};function lo(e,t=new Map){return new G(po(e,t),yo(e.metadata),t)}function uo(e){return new q(e.count,ho(e.columns),go(e.columns),null)}function fo(e){return new To(uo(e.data),e.id,e.isDelta)}function po(e,t){return(e.fields||[]).filter(Boolean).map(e=>K.fromJSON(e,t))}function mo(e,t){return(e.children||[]).filter(Boolean).map(e=>K.fromJSON(e,t))}function ho(e){return(e||[]).reduce((e,t)=>[...e,new Do(t.count,_o(t.VALIDITY)),...ho(t.children)],[])}function go(e,t=[]){for(let n=-1,r=(e||[]).length;++n<r;){let r=e[n];r.VALIDITY&&t.push(new Eo(t.length,r.VALIDITY.length)),r.TYPE_ID&&t.push(new Eo(t.length,r.TYPE_ID.length)),r.OFFSET&&t.push(new Eo(t.length,r.OFFSET.length)),r.DATA&&t.push(new Eo(t.length,r.DATA.length)),t=go(r.children,t)}return t}function _o(e){return(e||[]).reduce((e,t)=>e+ +(t===0),0)}function vo(e,t){let n,r,i,a,o,s;return!t||!(a=e.dictionary)?(o=xo(e,mo(e,t)),i=new K(e.name,o,e.nullable,yo(e.metadata))):t.has(n=a.id)?(r=(r=a.indexType)?bo(r):new jn,s=new ir(t.get(n),r,n,a.isOrdered),i=new K(e.name,s,e.nullable,yo(e.metadata))):(r=(r=a.indexType)?bo(r):new jn,t.set(n,o=xo(e,mo(e,t))),s=new ir(o,r,n,a.isOrdered),i=new K(e.name,s,e.nullable,yo(e.metadata))),i||null}function yo(e=[]){return new Map(e.map(({key:e,value:t})=>[e,t]))}function bo(e){return new O(e.isSigned,e.bitWidth)}function xo(e,t){let n=e.type.name;switch(n){case`NONE`:return new On;case`null`:return new On;case`binary`:return new Vn;case`largebinary`:return new Hn;case`utf8`:return new Un;case`largeutf8`:return new Wn;case`bool`:return new Gn;case`list`:return new Qn((t||[])[0]);case`struct`:return new k(t||[]);case`struct_`:return new k(t||[])}switch(n){case`int`:{let t=e.type;return new O(t.isSigned,t.bitWidth)}case`floatingpoint`:{let t=e.type;return new Ln(v[t.precision])}case`decimal`:{let t=e.type;return new Kn(t.scale,t.precision,t.bitWidth)}case`date`:{let t=e.type;return new qn(rt[t.unit])}case`time`:{let t=e.type;return new Jn(y[t.unit],t.bitWidth)}case`timestamp`:{let t=e.type;return new Yn(y[t.unit],t.timezone)}case`interval`:{let t=e.type;return new Xn(b[t.unit])}case`duration`:{let t=e.type;return new Zn(y[t.unit])}case`union`:{let n=e.type,[r,...i]=(n.mode+``).toLowerCase();return new $n(_[r.toUpperCase()+i.join(``)],n.typeIds||[],t||[])}case`fixedsizebinary`:{let t=e.type;return new er(t.byteWidth)}case`fixedsizelist`:{let n=e.type;return new tr(n.listSize,(t||[])[0])}case`map`:{let n=e.type;return new nr((t||[])[0],n.keysSorted)}}throw Error(`Unrecognized type: "${n}"`)}var So=ut,Co=lt,wo=class e{static fromJSON(t,n){let r=new e(0,g.V5,n);return r._createHeader=ko(t,n),r}static decode(t){t=new Co(m(t));let n=so.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),a=n.headerType(),o=new e(r,i,a);return o._createHeader=Ao(n,a),o}static encode(e){let t=new So,n=-1;return e.isSchema()?n=G.encode(t,e.header()):e.isRecordBatch()?n=q.encode(t,e.header()):e.isDictionaryBatch()&&(n=To.encode(t,e.header())),so.startMessage(t),so.addVersion(t,g.V5),so.addHeader(t,n),so.addHeaderType(t,e.headerType),so.addBodyLength(t,BigInt(e.bodyLength)),so.finishMessageBuffer(t,so.endMessage(t)),t.asUint8Array()}static from(t,n=0){if(t instanceof G)return new e(0,g.V5,w.Schema,t);if(t instanceof q)return new e(n,g.V5,w.RecordBatch,t);
1if(t instanceof To)return new e(n,g.V5,w.DictionaryBatch,t);throw 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(e,t,n,r){this._version=t,this._headerType=n,this.body=new Uint8Array,this._compression=r?.compression,r&&(this._createHeader=()=>r),this._bodyLength=E(e)}},q=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}constructor(e,t,n,r){this._nodes=t,this._buffers=n,this._length=E(e),this._compression=r}},To=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,t,n=!1){this._data=e,this._isDelta=n,this._id=E(t)}},Eo=class{constructor(e,t){this.offset=E(e),this.length=E(t)}},Do=class{constructor(e,t){this.length=E(e),this.nullCount=E(t)}},Oo=class{constructor(e,t=dt.BUFFER){this.type=e,this.method=t}};function ko(e,t){return(()=>{switch(t){case w.Schema:return G.fromJSON(e);case w.RecordBatch:return q.fromJSON(e);case w.DictionaryBatch:return To.fromJSON(e)}throw Error(`Unrecognized Message type: { name: ${w[t]}, type: ${t} }`)})}function Ao(e,t){return(()=>{switch(t){case w.Schema:return G.decode(e.header(new Vt),new Map,e.version());case w.RecordBatch:return q.decode(e.header(new gt),e.version());case w.DictionaryBatch:return To.decode(e.header(new _t),e.version())}throw Error(`Unrecognized Message type: { name: ${w[t]}, type: ${t} }`)})}K.encode=Ko,K.decode=Bo,K.fromJSON=vo,G.encode=Go,G.decode=jo,G.fromJSON=lo,q.encode=qo,q.decode=Mo,q.fromJSON=uo,To.encode=Yo,To.decode=No,To.fromJSON=fo,Do.encode=Xo,Do.decode=Fo,Eo.encode=Zo,Eo.decode=Po,Oo.encode=Jo,Oo.decode=Wo;function jo(e,t=new Map,n=g.V5){return new G(Ro(e,t),Vo(e),t,n)}function Mo(e,t=g.V5){return new q(e.length(),Io(e),Lo(e,t),Wo(e.compression()))}function No(e,t=g.V5){return new To(q.decode(e.data(),t),e.id(),e.isDelta())}function Po(e){return new Eo(e.offset(),e.length())}function Fo(e){return new Do(e.length(),e.nullCount())}function Io(e){let t=[];for(let n,r=-1,i=-1,a=e.nodesLength();++r<a;)(n=e.nodes(r))&&(t[++i]=Do.decode(n));return t}function Lo(e,t){let n=[];for(let r,i=-1,a=-1,o=e.buffersLength();++i<o;)(r=e.buffers(i))&&(t<g.V4&&(r.bb_pos+=8*(i+1)),n[++a]=Eo.decode(r));return n}function Ro(e,t){let n=[];for(let r,i=-1,a=-1,o=e.fieldsLength();++i<o;)(r=e.fields(i))&&(n[++a]=K.decode(r,t));return n}function zo(e,t){let n=[];for(let r,i=-1,a=-1,o=e.childrenLength();++i<o;)(r=e.children(i))&&(n[++a]=K.decode(r,t));return n}function Bo(e,t){let n,r,i,a,o,s;return!t||!(s=e.dictionary())?(i=Uo(e,zo(e,t)),r=new K(e.name(),i,e.nullable(),Vo(e))):t.has(n=E(s.id()))?(a=(a=s.indexType())?Ho(a):new jn,o=new ir(t.get(n),a,n,s.isOrdered()),r=new K(e.name(),o,e.nullable(),Vo(e))):(a=(a=s.indexType())?Ho(a):new jn,t.set(n,i=Uo(e,zo(e,t))),o=new ir(i,a,n,s.isOrdered()),r=new K(e.name(),o,e.nullable(),Vo(e))),r||null}function Vo(e){let t=new Map;if(e)for(let n,r,i=-1,a=Math.trunc(e.customMetadataLength());++i<a;)(n=e.customMetadata(i))&&(r=n.key())!=null&&t.set(r,n.value());return t}function Ho(e){return new O(e.isSigned(),e.bitWidth())}function Uo(e,t){let n=e.typeType();switch(n){case S.NONE:return new On;case S.Null:return new On;case S.Binary:return new Vn;case S.LargeBinary:return new Hn;case S.Utf8:return new Un;case S.LargeUtf8:return new Wn;case S.Bool:return new Gn;case S.List:return new Qn((t||[])[0]);case S.Struct_:return new k(t||[])}switch(n){case S.Int:{let t=e.type(new bt);return new O(t.isSigned(),t.bitWidth())}case S.FloatingPoint:return new Ln(e.type(new kt).precision());case S.Decimal:{let t=e.type(new Tt);return new Kn(t.scale(),t.precision(),t.bitWidth())}case S.Date:return new qn(e.type(new wt).unit());case S.Time:{let t=e.type(new Lt);return new Jn(t.unit(),t.bitWidth())}case S.Timestamp:{let t=e.type(new Rt);return new Yn(t.unit(),t.timezone())}case S.Interval:return new Xn(e.type(new At).unit());case S.Duration:return new Zn(e.type(new Et).unit());case S.Union:{let n=e.type(new zt);return new $n(n.mode(),n.typeIdsArray()||[],t||[])}case S.FixedSizeBinary:return new er(e.type(new Dt).byteWidth());case S.FixedSizeList:return new tr(e.type(new Ot).listSize(),(t||[])[0]);case S.Map:{let n=e.type(new Pt);return new nr((t||[])[0],n.keysSorted())}}throw Error(`Unrecognized type: "${S[n]}" (${n})`)}function Wo(e){return e?new Oo(e.codec(),e.method()):null}function Go(e,t){let n=t.fields.map(t=>K.encode(e,t));Vt.startFieldsVector(e,n.length);let r=Vt.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?Vt.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return x.startKeyValue(e),x.addKey(e,r),x.addValue(e,i),x.endKeyValue(e)})):-1;return Vt.startSchema(e),Vt.addFields(e,r),Vt.addEndianness(e,Qo?vt.Little:vt.Big),i!==-1&&Vt.addCustomMetadata(e,i),Vt.endSchema(e)}function Ko(e,t){let n=-1,r=-1,i=-1,a=t.type,o=t.typeId;D.isDictionary(a)?(o=a.dictionary.typeId,i=co.visit(a,e),r=co.visit(a.dictionary,e)):r=co.visit(a,e);let s=(a.children||[]).map(t=>K.encode(e,t)),c=C.createChildrenVector(e,s),l=t.metadata&&t.metadata.size>0?C.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return x.startKeyValue(e),x.addKey(e,r),x.addValue(e,i),x.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),C.startField(e),C.addType(e,r),C.addTypeType(e,o),C.addChildren(e,c),C.addNullable(e,!!t.nullable),n!==-1&&C.addName(e,n),i!==-1&&C.addDictionary(e,i),l!==-1&&C.addCustomMetadata(e,l),C.endField(e)}function qo(e,t){let n=t.nodes||[],r=t.buffers||[];gt.startNodesVector(e,n.length);for(let t of n.slice().reverse())Do.encode(e,t);let i=e.endVector();gt.startBuffersVector(e,r.length);for(let t of r.slice().reverse())Eo.encode(e,t);let a=e.endVector(),o=null;return t.compression!==null&&(o=Jo(e,t.compression)),gt.startRecordBatch(e),gt.addLength(e,BigInt(t.length)),gt.addNodes(e,i),gt.addBuffers(e,a),t.compression!==null&&o&>.addCompression(e,o),gt.endRecordBatch(e)}function Jo(e,t){return pt.startBodyCompression(e),pt.addCodec(e,t.type),pt.addMethod(e,t.method),pt.endBodyCompression(e)}function Yo(e,t){let n=q.encode(e,t.data);return _t.startDictionaryBatch(e),_t.addId(e,BigInt(t.id)),_t.addIsDelta(e,t.isDelta),_t.addData(e,n),_t.endDictionaryBatch(e)}function Xo(e,t){return ht.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function Zo(e,t){return mt.createBuffer(e,BigInt(t.offset),BigInt(t.length))}var Qo=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256})(),J=Object.freeze({done:!0,value:void 0}),$o=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},es=class{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||=this.toDOMStream()}_getNodeStream(){return this._nodeStream||=this.toNodeStream()}},ts=class extends es{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return r(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(J);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Ye.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Ye.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return r(this,void 0,void 0,function*(){return yield this.abort(e),J})}return(e){return r(this,void 0,void 0,function*(){return yield this.close(),J})}read(e){return r(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return r(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((e,t)=>
vendor: 10,968 bytes, line 1
1{this.resolvers.push({resolve:e,reject:t})}):Promise.resolve(J)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw Error(`AsyncQueue is closed`)}},ns=class extends ts{write(e){if((e=m(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?s(this.toUint8Array(!0)):this.toUint8Array(!1).then(s)}toUint8Array(e=!1){return e?ge(this._values)[0]:r(this,void 0,void 0,function*(){var e,t,r,i;let a=[],o=0;try{for(var s=!0,c=n(this),l;l=yield c.next(),e=l.done,!e;s=!0){i=l.value,s=!1;let e=i;a.push(e),o+=e.byteLength}}catch(e){t={error:e}}finally{try{!s&&!e&&(r=c.return)&&(yield r.call(c))}finally{if(t)throw t.error}}return ge(a,o)[0]})}},rs=class{constructor(e){e&&(this.source=new as(Ye.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)}},is=class e{constructor(t){t instanceof e?this.source=t.source:t instanceof ns?this.source=new os(Ye.fromAsyncIterable(t)):ue(t)?this.source=new os(Ye.fromNodeStream(t)):le(t)?this.source=new os(Ye.fromDOMStream(t)):se(t)?this.source=new os(Ye.fromDOMStream(t.body)):ne(t)?this.source=new os(Ye.fromIterable(t)):(te(t)||re(t))&&(this.source=new os(Ye.fromAsyncIterable(t)))}[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)}},as=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,t=`read`){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||J)}return(e){return Object.create(this.source.return&&this.source.return(e)||J)}},os=class{constructor(e){this.source=e,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}cancel(e){return r(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return r(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return r(this,void 0,void 0,function*(){return(yield this.next(e,`peek`)).value})}next(e){return r(this,arguments,void 0,function*(e,t=`read`){return yield this.source.next({cmd:t,size:e})})}throw(e){return r(this,void 0,void 0,function*(){let t=this.source.throw&&(yield this.source.throw(e))||J;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return r(this,void 0,void 0,function*(){let t=this.source.return&&(yield this.source.return(e))||J;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}},ss=class extends rs{constructor(e,t){super(),this.position=0,this.buffer=m(e),this.size=t===void 0?this.buffer.byteLength:t}readInt32(e){let{buffer:t,byteOffset:n}=this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){let{buffer:t,size:n,position:r}=this;return t&&r<n?(typeof e!=`number`&&(e=1/0),this.position=Math.min(n,r+Math.min(n-r,e)),t.subarray(r,this.position)):null}readAt(e,t){let n=this.buffer,r=Math.min(this.size,e+t);return n?n.subarray(e,r):new Uint8Array(t)}close(){this.buffer&&=null}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}},cs=class extends is{constructor(e,t){super(),this.position=0,this._handle=e,typeof t==`number`?this.size=t:this._pending=r(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return r(this,void 0,void 0,function*(){let{buffer:t,byteOffset:n}=yield this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)})}seek(e){return r(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 r(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:t,size:n,position:r}=this;if(t&&r<n){typeof e!=`number`&&(e=1/0);let i=r,a=0,o=0,s=Math.min(n,i+Math.min(n-i,e)),c=new Uint8Array(Math.max(0,(this.position=s)-i));for(;(i+=o)<s&&(a+=o)<c.byteLength;)({bytesRead:o}=yield t.read(c,a,c.byteLength-a,i));return c}return null})}readAt(e,t){return r(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:n,size:r}=this;if(n&&e+t<r){let i=Math.min(r,e+t),a=new Uint8Array(i-e);return(yield n.read(a,0,t,e)).buffer}return new Uint8Array(t)})}close(){return r(this,void 0,void 0,function*(){let e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return r(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return r(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}},ls=e({BaseInt64:()=>ms,Int128:()=>gs,Int64:()=>hs,Uint64:()=>Y}),us=65536;function ds(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}var fs=8,ps=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],ms=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),n=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),r=t[3]*n[3];this.buffer[0]=r&65535;let i=r>>>16;return r=t[2]*n[3],i+=r,r=t[3]*n[2]>>>0,i+=r,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0<r?us:0,this.buffer[1]+=i>>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}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`${ds(this.buffer[1])} ${ds(this.buffer[0])}`}},Y=class e extends ms{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(t,n=new Uint32Array(2)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(2)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(2)){let r=t.length,i=new e(n);for(let n=0;n<r;){let a=fs<r-n?fs:r-n,o=new e(new Uint32Array([Number.parseInt(t.slice(n,n+a),10),0])),s=new e(new Uint32Array([ps[a],0]));i.times(s),i.plus(o),n+=a}return i}static convertArray(t){let n=new Uint32Array(t.length*2);for(let r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(t,n){return new e(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}},hs=class e extends ms{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 t=this.buffer[1]<<0,n=e.buffer[1]<<0;return t<n||t===n&&this.buffer[0]<e.buffer[0]}static from(t,n=new Uint32Array(2)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(2)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(2)){let r=t.startsWith(`-`),i=t.length,a=new e(n);for(let n=+!!r;n<i;){let r=fs<i-n?fs:i-n,o=new e(new Uint32Array([Number.parseInt(t.slice(n,n+r),10),0])),s=new e(new Uint32Array([ps[r],0]));a.times(s),a.plus(o),n+=r}return r?a.negate():a}static convertArray(t){let n=new Uint32Array(t.length*2);for(let r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(t,n){return new e(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}},gs=class e{constructor(e){this.buffer=e}high(){return new hs(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new hs(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 t=new Y(new Uint32Array([this.buffer[3],0])),n=new Y(new Uint32Array([this.buffer[2],0])),r=new Y(new Uint32Array([this.buffer[1],0])),i=new Y(new Uint32Array([this.buffer[0],0])),a=new Y(new Uint32Array([e.buffer[3],0])),o=new Y(new Uint32Array([e.buffer[2],0])),s=new Y(new Uint32Array([e.buffer[1],0])),c=new Y(new Uint32Array([e.buffer[0],0])),l=Y.multiply(i,c);this.buffer[0]=l.low();let u=new Y(new Uint32Array([l.high(),0]));return l=Y.multiply(r,c),u.plus(l),l=Y.multiply(i,s),u.plus(l),this.buffer[1]=u.low(),this.buffer[3]=+!!u.lessThan(l),this.buffer[2]=u.high(),new Y(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Y.multiply(n,c)).plus(Y.multiply(r,s)).plus(Y.multiply(i,o)),this.buffer[3]+=Y.multiply(t,c).plus(Y.multiply(n,s)).plus(Y.multiply(r,o)).plus(Y.multiply(i,a)).low(),this}plus(e){let t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${ds(this.buffer[3])} ${ds(this.buffer[2])} ${ds(this.buffer[1])} ${ds(this.buffer[0])}`}static multiply(t,n){return new e(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}static from(t,n=new Uint32Array(4)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){let r=t.startsWith(`-`),i=t.length,a=new e(n);for(let n=+!!r;n<i;){let r=fs<i-n?fs:i-n,o=new e(new Uint32Array([Number.parseInt(t.slice(n,n+r),10),0,0,0])),s=new e(new Uint32Array([ps[r],0,0,0]));a.times(s),a.plus(o),n+=r}return r?a.negate():a}static convertArray(t){let n=new Uint32Array(t.length*4);for(let r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+16*r,4));return n}},_s=e({toIntervalDayTimeInt32Array:()=>vs,toIntervalDayTimeObjects:()=>bs,toIntervalMonthDayNanoInt32Array:()=>ys,toIntervalMonthDayNanoObjects:()=>xs});function vs(e){let t=e.length,n=new Int32Array(t*2);for(let r=0,i=0;r<t;r++){let t=e[r];n[i++]=t.days??0,n[i++]=t.milliseconds??0}return n}function ys(e){let t=e.length,n=new Int32Array(t*4);for(let r=0,i=0;r<t;r++){let t=e[r];n[i++]=t.months??0,n[i++]=t.days??0;let a=t.nanoseconds;
1a?(n[i++]=Number(BigInt(a)&BigInt(4294967295)),n[i++]=Number(BigInt(a)>>BigInt(32))):i+=2}return n}function bs(e){let t=e.length,n=Array(t/2);for(let r=0,i=0;r<t;r+=2)n[i++]={days:e[r],milliseconds:e[r+1]};return n}function xs(e,t){let n=e.length,r=Array(n/4);for(let i=0,a=0;i<n;i+=4){let n=BigInt(e[i+3])<<BigInt(32)|BigInt(e[i+2]>>>0);r[a++]={months:e[i],days:e[i+1],nanoseconds:t?`${n}`:n}}return r}var Ss=class extends A{constructor(e,t,n,r,i=g.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=n,this.dictionaries=r,this.metadataVersion=i}visit(e){return super.visit(e instanceof K?e.type:e)}visitNull(e,{length:t}=this.nextFieldNode()){return z({type:e,length:t})}visitBool(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitInt(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitFloat(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitUtf8(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeUtf8(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeBinary(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDate(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitTimestamp(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitTime(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDecimal(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitList(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),children:this.visitMany(e.children)})}visitUnion(e,{length:t,nullCount:n}=this.nextFieldNode()){return this.metadataVersion<g.V5&&this.readNullBitmap(e,n),e.mode===_.Sparse?this.visitSparseUnion(e,{length:t,nullCount:n}):this.visitDenseUnion(e,{length:t,nullCount:n})}visitDenseUnion(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDuration(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitFixedSizeList(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),child:this.visit(e.children[0])})}visitMap(e,{length:t,nullCount:n}=this.nextFieldNode()){return z({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t,n=this.nextBufferRange()){return t>0&&this.readData(e,n)||new Uint8Array}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+t)}readDictionary(e){return this.dictionaries.get(e.id)}},Cs=class extends Ss{constructor(e,t,n,r,i){super(new Uint8Array,t,n,r,i),this.sources=e}readNullBitmap(e,t,{offset:n}=this.nextBufferRange()){return t<=0?new Uint8Array:wa(this.sources[n])}readOffsets(e,{offset:t}=this.nextBufferRange()){return p(Uint8Array,p(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return p(Uint8Array,p(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:n}=this;if(D.isTimestamp(e)||(D.isInt(e)||D.isTime(e))&&e.bitWidth===64||D.isDuration(e)||D.isDate(e)&&e.unit===rt.MILLISECOND)return p(Uint8Array,hs.convertArray(n[t]));if(D.isDecimal(e))return p(Uint8Array,gs.convertArray(n[t]));if(D.isBinary(e)||D.isLargeBinary(e)||D.isFixedSizeBinary(e))return ws(n[t]);if(D.isBool(e))return wa(n[t]);if(D.isUtf8(e)||D.isLargeUtf8(e))return l(n[t].join(``));if(D.isInterval(e))switch(e.unit){case b.DAY_TIME:return vs(n[t]);case b.MONTH_DAY_NANO:return ys(n[t]);default:break}return p(Uint8Array,p(e.ArrayType,n[t].map(e=>+e)))}};function ws(e){let t=e.join(``),n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e>>1]=Number.parseInt(t.slice(e,e+2),16);return n}var Ts=class extends Ss{constructor(e,t,n,r,i){super(new Uint8Array,t,n,r,i),this.bodyChunks=e}readData(e,t=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}},X=class extends A{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>this.compareFields(e,t[n]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function Z(e,t){return t instanceof e.constructor}function Es(e,t){return e===t||Z(e,t)}function Ds(e,t){return e===t||Z(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function Os(e,t){return e===t||Z(e,t)&&e.precision===t.precision}function ks(e,t){return e===t||Z(e,t)&&e.byteWidth===t.byteWidth}function As(e,t){return e===t||Z(e,t)&&e.unit===t.unit}function js(e,t){return e===t||Z(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Ms(e,t){return e===t||Z(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function Ns(e,t){return e===t||Z(e,t)&&e.children.length===t.children.length&&Vs.compareManyFields(e.children,t.children)}function Ps(e,t){return e===t||Z(e,t)&&e.children.length===t.children.length&&Vs.compareManyFields(e.children,t.children)}function Fs(e,t){return e===t||Z(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&Vs.compareManyFields(e.children,t.children)}function Is(e,t){return e===t||Z(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&Vs.visit(e.indices,t.indices)&&Vs.visit(e.dictionary,t.dictionary)}function Ls(e,t){return e===t||Z(e,t)&&e.unit===t.unit}function Rs(e,t){return e===t||Z(e,t)&&e.unit===t.unit}function zs(e,t){return e===t||Z(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&Vs.compareManyFields(e.children,t.children)}function Bs(e,t){return e===t||Z(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&Vs.compareManyFields(e.children,t.children)}X.prototype.visitNull=Es,X.prototype.visitBool=Es,X.prototype.visitInt=Ds,X.prototype.visitInt8=Ds,X.prototype.visitInt16=Ds,X.prototype.visitInt32=Ds,
1X.prototype.visitInt64=Ds,X.prototype.visitUint8=Ds,X.prototype.visitUint16=Ds,X.prototype.visitUint32=Ds,X.prototype.visitUint64=Ds,X.prototype.visitFloat=Os,X.prototype.visitFloat16=Os,X.prototype.visitFloat32=Os,X.prototype.visitFloat64=Os,X.prototype.visitUtf8=Es,X.prototype.visitLargeUtf8=Es,X.prototype.visitBinary=Es,X.prototype.visitLargeBinary=Es,X.prototype.visitFixedSizeBinary=ks,X.prototype.visitDate=As,X.prototype.visitDateDay=As,X.prototype.visitDateMillisecond=As,X.prototype.visitTimestamp=js,X.prototype.visitTimestampSecond=js,X.prototype.visitTimestampMillisecond=js,X.prototype.visitTimestampMicrosecond=js,X.prototype.visitTimestampNanosecond=js,X.prototype.visitTime=Ms,X.prototype.visitTimeSecond=Ms,X.prototype.visitTimeMillisecond=Ms,X.prototype.visitTimeMicrosecond=Ms,X.prototype.visitTimeNanosecond=Ms,X.prototype.visitDecimal=Es,X.prototype.visitList=Ns,X.prototype.visitStruct=Ps,X.prototype.visitUnion=Fs,X.prototype.visitDenseUnion=Fs,X.prototype.visitSparseUnion=Fs,X.prototype.visitDictionary=Is,X.prototype.visitInterval=Ls,X.prototype.visitIntervalDayTime=Ls,X.prototype.visitIntervalYearMonth=Ls,X.prototype.visitIntervalMonthDayNano=Ls,X.prototype.visitDuration=Rs,X.prototype.visitDurationSecond=Rs,X.prototype.visitDurationMillisecond=Rs,X.prototype.visitDurationMicrosecond=Rs,X.prototype.visitDurationNanosecond=Rs,X.prototype.visitFixedSizeList=zs,X.prototype.visitMap=Bs;var Vs=new X;function Hs(e,t){return Vs.compareSchemas(e,t)}function Us(e,t){return Vs.compareFields(e,t)}function Ws(e,t){return Vs.visit(e,t)}function Gs(e,t){return Ks(e,t.map(e=>e.data.concat()))}function Ks(e,t){let n=[...e.fields],r=[],i={numBatches:t.reduce((e,t)=>Math.max(e,t.length),0)},a=0,o=0,s=-1,c=t.length,l,u=[];for(;i.numBatches-- >0;){for(o=1/0,s=-1;++s<c;)u[s]=l=t[s].shift(),o=Math.min(o,l?l.length:o);Number.isFinite(o)&&(u=qs(n,o,u,t,i),o>0&&(r[a++]=z({type:new k(n),length:o,nullCount:0,children:u.slice()})))}return[e=e.assign(n),r.map(t=>new Q(e,t))]}function qs(e,t,n,r,i){let a=(t+63&-64)>>3;for(let o=-1,s=r.length;++o<s;){let s=n[o],c=s?.length;if(c>=t)c===t?n[o]=s:(n[o]=s.slice(0,t),i.numBatches=Math.max(i.numBatches,r[o].unshift(s.slice(t,c-t))));else{let r=e[o];e[o]=r.clone({nullable:!0}),n[o]=s?._changeLengthAndBackfillNullBitmap(t)??z({type:r.type,length:t,nullCount:t,nullBitmap:new Uint8Array(a)})}}return n}var Js,Ys=class e{constructor(...t){if(t.length===0)return this.batches=[],this.schema=new G([]),this._offsets=[0],this;let n,r;t[0]instanceof G&&(n=t.shift()),t.at(-1)instanceof Uint32Array&&(r=t.pop());let i=t=>{if(t){if(t instanceof Q)return[t];if(t instanceof e)return t.batches;if(t instanceof R){if(t.type instanceof k)return[new Q(new G(t.type.children),t)]}else if(Array.isArray(t))return t.flatMap(e=>i(e));else if(typeof t[Symbol.iterator]==`function`)return[...t].flatMap(e=>i(e));else if(typeof t==`object`){let e=Object.keys(t),r=e.map(e=>new W([t[e]])),[,i]=Gs(n??new G(e.map((e,t)=>new K(String(e),r[t].type,r[t].nullable))),r);return i.length===0?[new Q(t)]:i}}return[]},a=t.flatMap(e=>i(e));if(n=n??a[0]?.schema??new G([]),!(n instanceof G))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);for(let e of a){if(!(e instanceof Q))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);if(!Hs(n,e.schema))throw TypeError(`Table and inner RecordBatch schemas must be equivalent.`)}this.schema=n,this.batches=a,this._offsets=r??Na(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,t)=>e+t.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=Ma(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(ca(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?Ga.visit(new W(this.data)):[][Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(`, 2 `)}\n]`}concat(...t){let n=this.schema;return new e(n,this.data.concat(t.flatMap(({data:e})=>e)).map(e=>new Q(n,e)))}slice(t,n){let r=this.schema;return[t,n]=sa({length:this.numRows},t,n),new e(r,Pa(this.data,this._offsets,t,n).map(e=>new Q(r,e)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){let t=this.data.map(t=>t.children[e]);if(t.length===0){let{type:n}
2=this.schema.fields[e],r=z({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new W(t)}return null}setChild(e,t){return this.setChildAt(this.schema.fields?.findIndex(t=>t.name===e),t)}setChildAt(t,n){let r=this.schema,i=[...this.batches];if(t>-1&&t<this.numCols){n||=new W([z({type:new On,length:this.numRows})]);let e=r.fields.slice(),a=e[t].clone({type:n.type}),o=this.schema.fields.map((e,t)=>this.getChildAt(t));[e[t],o[t]]=[a,n],[r,i]=Gs(r,o)}return new e(r,i)}select(e){let t=this.schema.fields.reduce((e,t,n)=>e.set(t.name,n),new Map);return this.selectAt(e.map(e=>t.get(e)).filter(e=>e>-1))}selectAt(t){return new e(this.schema.selectAt(t),this.batches.map(e=>e.selectAt(t)))}assign(t){let n=this.schema.fields,[r,i]=t.schema.fields.reduce((e,t,r)=>{let[i,a]=e,o=n.findIndex(e=>e.name===t.name);return~o?a[o]=r:i.push(r),e},[[],[]]);return new e(...Gs(this.schema.assign(t.schema),[...n.map((e,t)=>[t,i[t]]).map(([e,n])=>n===void 0?this.getChildAt(e):t.getChildAt(n)),...r.map(e=>t.getChildAt(e))].filter(Boolean)))}};Js=Symbol.toStringTag,Ys[Js]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=La(Ia),e.get=La(L.getVisitFn(T.Struct)),e.set=Ra(N.getVisitFn(T.Struct)),e.indexOf=za(Ua.getVisitFn(T.Struct)),`Table`))(Ys.prototype);var Xs,Q=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof G)||([,this.data=z({nullCount:0,type:new k(this.schema.fields),children:this.schema.fields.map(e=>z({type:e.type,nullCount:0}))})]=e,!(this.data instanceof R)))throw TypeError(`RecordBatch constructor expects a [Schema, Data] pair.`);[this.schema,this.data]=Zs(this.schema,this.data.children);break;case 1:{let[t]=e,{fields:n,children:r,length:i}=Object.keys(t).reduce((e,n,r)=>(e.children[r]=t[n],e.length=Math.max(e.length,t[n].length),e.fields[r]=K.new({name:n,type:t[n].type,nullable:!0}),e),{length:0,fields:[],children:[]}),a=new G(n),o=z({type:new k(n),length:i,children:r,nullCount:0});[this.schema,this.data]=Zs(a,o.children,i);break}default:throw TypeError(`RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.`)}}get dictionaries(){return this._dictionaries||=Qs(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 L.visit(this.data,e)}at(e){return this.get(ca(e,this.numRows))}set(e,t){return N.visit(this.data,e,t)}indexOf(e,t){return Ua.visit(this.data,e,t)}[Symbol.iterator](){return Ga.visit(new W([this.data]))}toArray(){return[...this]}concat(...e){return new Ys(this.schema,[this,...e])}slice(t,n){let[r]=new W([this.data]).slice(t,n).data;return new e(this.schema,r)}getChild(e){return this.getChildAt(this.schema.fields?.findIndex(t=>t.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new W([this.data.children[e]]):null}setChild(e,t){return this.setChildAt(this.schema.fields?.findIndex(t=>t.name===e),t)}setChildAt(t,n){let r=this.schema,i=this.data;if(t>-1&&t<this.numCols){n||=new W([z({type:new On,length:this.numRows})]);let e=r.fields.slice(),a=i.children.slice(),o=e[t].clone({type:n.type});[e[t],a[t]]=[o,n.data[0]],r=new G(e,new Map(this.schema.metadata)),i=z({type:new k(e),children:a})}return new e(r,i)}select(t){let n=this.schema.select(t),r=new k(n.fields),i=[];for(let e of t){let t=this.schema.fields.findIndex(t=>t.name===e);~t&&(i[t]=this.data.children[t])}return new e(n,z({type:r,length:this.numRows,children:i}))}selectAt(t){let n=this.schema.selectAt(t),r=t.map(e=>this.data.children[e]).filter(Boolean);return new e(n,z({type:new k(n.fields),length:this.numRows,children:r}))}};Xs=Symbol.toStringTag,Q[Xs]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,`RecordBatch`))(Q.prototype);function Zs(e,t,n=t.reduce((e,t)=>Math.max(e,t.length),0)){let r=[...e.fields],i=[...t],a=(n+63&-64)>>3;for(let[o,s]of e.fields.entries()){let e=t[o];
2(!e||e.length!==n)&&(r[o]=s.clone({nullable:!0}),i[o]=e?._changeLengthAndBackfillNullBitmap(n)??z({type:s.type,length:n,nullCount:n,nullBitmap:new Uint8Array(a)}))}return[e.assign(r),z({type:new k(r),length:n,children:i})]}function Qs(e,t,n=new Map){if((e?.length??0)>0&&e?.length===t?.length)for(let r=-1,i=e.length;++r<i;){let{type:i}=e[r],a=t[r];for(let e of[a,...a?.dictionary?.data||[]])Qs(i.children,e?.children,n);if(D.isDictionary(i)){let{id:e}=i;if(!n.has(e))a?.dictionary&&n.set(e,a.dictionary);else if(n.get(e)!==a.dictionary)throw Error(`Cannot create Schema containing two different dictionaries with the same Id`)}}return n}var $s=class extends Q{constructor(e){let t=e.fields.map(e=>z({type:e.type})),n=z({type:new k(e.fields),nullCount:0,children:t});super(e,n)}},ec=e=>`Expected ${w[e]} Message in stream, but was null or length 0.`,tc=e=>`Header pointer of flatbuffer-encoded ${w[e]} Message is null or length 0.`,nc=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,rc=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`,ic=class{constructor(e){this.source=e instanceof rs?e:new rs(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?J:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(ec(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array;let t=m(this.source.read(e));if(t.byteLength<e)throw Error(rc(e,t.byteLength));return t.byteOffset%8==0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(e=!1){let t=w.Schema,n=this.readMessage(t)?.header();if(e&&!n)throw Error(tc(t));return n}readMetadataLength(){let e=this.source.read(4),t=(e&&new lt(e))?.readInt32(0)||0;return{done:t===0,value:t}}readMetadata(e){let t=this.source.read(e);if(!t)return J;if(t.byteLength<e)throw Error(nc(e,t.byteLength));return{done:!1,value:wo.decode(t)}}},ac=class{constructor(e,t){this.source=e instanceof is?e:oe(e)?new cs(e,t):new is(e)}[Symbol.asyncIterator](){return this}next(){return r(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?J:e})}throw(e){return r(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return r(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return r(this,void 0,void 0,function*(){let t;if((t=yield this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(ec(e));return t.value})}readMessageBody(e){return r(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array;let t=m(yield this.source.read(e));if(t.byteLength<e)throw Error(rc(e,t.byteLength));return t.byteOffset%8==0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()})}readSchema(){return r(this,arguments,void 0,function*(e=!1){let t=w.Schema,n=(yield this.readMessage(t))?.header();if(e&&!n)throw Error(tc(t));return n})}readMetadataLength(){return r(this,void 0,void 0,function*(){let e=yield this.source.read(4),t=(e&&new lt(e))?.readInt32(0)||0;return{done:t===0,value:t}})}readMetadata(e){return r(this,void 0,void 0,function*(){let t=yield this.source.read(e);if(!t)return J;if(t.byteLength<e)throw Error(nc(e,t.byteLength));return{done:!1,value:wo.decode(t)}})}},oc=class extends ic{constructor(e){super(new Uint8Array),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof $o?e:new $o(e)}next(){let{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:wo.fromJSON(e.schema,w.Schema)};if(this._dictionaryIndex<e.dictionaries.length){let t=e.dictionaries[this._dictionaryIndex++];return this._body=t.data.columns,{done:!1,value:wo.fromJSON(t,w.DictionaryBatch)}}if(this._batchIndex<e.batches.length){let t=e.batches[this._batchIndex++];return this._body=t.columns,{done:!1,value:wo.fromJSON(t,w.RecordBatch)}}return this._body=[],J}readMessageBody(e){return t(this._body);function t(e){return(e||[]).reduce((e,n)=>[...e,...n.VALIDITY&&[n.VALIDITY]||[],...n.TYPE_ID&&[n.TYPE_ID]||[],...n.OFFSET&&[n.OFFSET]||[],...n.DATA&&[n.DATA]||[],...t(n.children)],[])}}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(ec(e));return t.value}readSchema(){let e=w.Schema,t=this.readMessage(e),n=t?.header();if(!t||!n)throw Error(tc(e));return n}},sc=`ARROW1`,cc=new Uint8Array(6);for(let e=0;e<6;e+=1)cc[e]=sc.codePointAt(e);function lc(e,t=0){for(let n=-1,r=cc.length;++n<r;
2)if(cc[n]!==e[t+n])return!1;return!0}var uc=cc.length,dc=uc+4,fc=uc*2+4,pc=class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(e){let t=new Uint8Array([1,2,3,4,5,6,7,8]),n=e.encode(t);return this._isValidCompressed(n)}_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((t,n)=>e[n]===t)}_hasValidVersion(e){return(e[4]&192)>>6==1}},mc=class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(e){let t=new Uint8Array([1,2,3,4,5,6,7,8]),n=e.encode(t);return this._isValidCompressed(n)}_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((t,n)=>e[n]===t)}},hc={[ft.LZ4_FRAME]:new pc,[ft.ZSTD]:new mc},gc=new class{constructor(){this.registry={}}set(e,t){if(t?.encode&&typeof t.encode==`function`&&!hc[e].isValidCodecEncode(t))throw Error(`Encoder for ${ft[e]} is not valid.`);this.registry[e]=t}get(e){return this.registry?.[e]||null}},_c=class e extends es{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 t=this._impl.open(e);return te(t)?t.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 Ye.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Ye.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw Error(`"throughNode" not available in this environment`)}static throughDOM(e,t){throw Error(`"throughDOM" not available in this environment`)}static from(t){return t instanceof e?t:ie(t)?jc(t):oe(t)?Pc(t):te(t)?r(this,void 0,void 0,function*(){return yield e.from(yield t)}):se(t)||le(t)||ue(t)||re(t)?Nc(new is(t)):Mc(new rs(t))}static readAll(t){return t instanceof e?t.isSync()?kc(t):Ac(t):ie(t)||ArrayBuffer.isView(t)||ne(t)||ae(t)?kc(t):Ac(t)}},vc=class extends _c{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return i(this,arguments,function*(){yield t(yield*a(n(this[Symbol.iterator]())))})}},yc=class extends _c{constructor(e){super(e),this._impl=e}readAll(){return r(this,void 0,void 0,function*(){var e,t,r,i;let a=[];try{for(var o=!0,s=n(this),c;c=yield s.next(),e=c.done,!e;o=!0){i=c.value,o=!1;let e=i;a.push(e)}}catch(e){t={error:e}}finally{try{!o&&!e&&(r=s.return)&&(yield r.call(s))}finally{if(t)throw t.error}}return a})}[Symbol.iterator](){throw Error(`AsyncRecordBatchStreamReader is not Iterable`)}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},bc=class extends vc{constructor(e){super(e),this._impl=e}},xc=class extends yc{constructor(e){super(e),this._impl=e}},Sc=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,t){let n;if(e.compression!=null){let r=gc.get(e.compression.type);if(r?.decode&&typeof r.decode==`function`){let{decommpressedBody:i,buffers:a}=this._decompressBuffers(e,t,r);n=this._loadCompressedVectors(e,i,this.schema.fields),e=new q(e.length,e.nodes,a,null)}else throw Error(`Record batch is compressed but codec not found`)}else n=this._loadVectors(e,t,this.schema.fields);let r=z({type:new k(this.schema.fields),length:e.length,children:n});return new Q(this.schema,r)}_loadDictionaryBatch(e,t){let{id:n,isDelta:r}=e,{dictionaries:i,schema:a}=this,o=i.get(n),s=a.dictionaries.get(n),c;if(e.data.compression!=null){let i=gc.get(e.data.compression.type);if(i?.decode&&typeof i.decode==`function`){let{decommpressedBody:a,buffers:o}=this._decompressBuffers(e.data,t,i);c=this._loadCompressedVectors(e.data,a,[s]),e=new To(new q(e.data.length,e.data.nodes,o,null),n,r)}else throw Error(`Dictionary batch is compressed but codec not found`)}else c=this._loadVectors(e.data,t,[s]);return(o&&r?o.concat(new W(c)):new W(c)).memoize()}
2_loadVectors(e,t,n){return new Ss(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}_loadCompressedVectors(e,t,n){return new Ts(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}_decompressBuffers(e,t,n){let r=[],i=[],a=0;for(let{offset:o,length:s}of e.buffers){if(s===0){r.push(new Uint8Array),i.push(new Eo(a,0));continue}let e=new lt(t.subarray(o,o+s)),c=E(e.readInt64(0)),l=e.bytes().subarray(8),u=c===-1?l:n.decode(l);r.push(u);let ee=(a+7&-8)-a;a+=ee,i.push(new Eo(a,u.length)),a+=u.length}return{decommpressedBody:r,buffers:i}}},Cc=class extends Sc{constructor(e,t){super(t),this._reader=ie(e)?new oc(this._handle=e):new ic(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=Oc(this,e),(this.schema||=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):J}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):J}next(){if(this.closed)return J;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let n=e.header(),r=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let n=e.header(),r=t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new $s(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},wc=class extends Sc{constructor(e,t){super(t),this._reader=new ac(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return r(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 r(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=Oc(this,e),(this.schema||=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return r(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):J})}return(e){return r(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):J})}next(){return r(this,void 0,void 0,function*(){if(this.closed)return J;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let n=e.header(),r=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let n=e.header(),r=yield t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new $s(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return r(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},Tc=class extends Cc{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,t){super(e instanceof ss?e:new ss(e),t)}isSync(){return!0}isFile(){return!0}open(e){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(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();let t=this._footer?.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){let e=this._reader.readMessage(w.RecordBatch);if(e?.isRecordBatch()){let t=e.header(),n=this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,n)}}return null}_readDictionaryBatch(e){let t=this._footer?.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let e=this._reader.readMessage(w.DictionaryBatch);if(e?.isDictionaryBatch()){let t=e.header(),n=this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}}_readFooter(){let{_handle:e}=this,t=e.size-dc,n=e.readInt32(t),r=e.readAt(t-n,n);return io.decode(r)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer?.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}},Ec=class extends wc{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,...t){let n=typeof t[0]==`number`?void 0:t.shift(),r=t[0]instanceof Map?t.shift():void 0;super(e instanceof cs?e:new cs(e,n),r)}isFile(){return!0}isAsync(){return!0}open(e){let t=Object.create(null,{open:{get:()=>super.open}});return r(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return r(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());let t=this._footer?.getRecordBatch(e);if(t&&(yield this._handle.seek(t.offset))){let e=yield this._reader.readMessage(w.RecordBatch);if(e?.isRecordBatch()){let t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,n)}}return null})}_readDictionaryBatch(e){return r(this,void 0,void 0,function*(){let t=this._footer?.getDictionaryBatch(e);if(t&&(yield this._handle.seek(t.offset))){let e=yield this._reader.readMessage(w.DictionaryBatch);if(e?.isDictionaryBatch()){let t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}})}_readFooter(){return r(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-dc,n=yield e.readInt32(t),r=yield e.readAt(t-n,n);return io.decode(r)})}_readNextMessageAndValidate(e){return r(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}},Dc=class extends Cc{constructor(e,t){super(e,t)}
2_loadVectors(e,t,n){return new Cs(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}};function Oc(e,t){return t&&typeof t.autoDestroy==`boolean`?t.autoDestroy:e.autoDestroy}function*kc(e){let t=_c.from(e);try{if(!t.open({autoDestroy:!1}).closed)do yield t;while(!t.reset().open().closed)}finally{t.cancel()}}function Ac(e){return i(this,arguments,function*(){let n=yield t(_c.from(e));try{if(!(yield t(n.open({autoDestroy:!1}))).closed)do yield yield t(n);while(!(yield t(n.reset().open())).closed)}finally{yield t(n.cancel())}})}function jc(e){return new vc(new Dc(e))}function Mc(e){let t=e.peek(uc+7&-8);return t&&t.byteLength>=4?lc(t)?new bc(new Tc(e.read())):new vc(new Cc(e)):new vc(new Cc(function*(){}()))}function Nc(e){return r(this,void 0,void 0,function*(){let t=yield e.peek(uc+7&-8);return t&&t.byteLength>=4?lc(t)?new bc(new Tc(yield e.read())):new yc(new wc(e)):new yc(new wc(function(){return i(this,arguments,function*(){})}()))})}function Pc(e){return r(this,void 0,void 0,function*(){let{size:t}=yield e.stat(),n=new cs(e,t);return t>=fc&&lc(yield n.readAt(0,uc+7&-8))?new xc(new Ec(n)):new yc(new wc(n))})}function Fc(e){let t=_c.from(e);return te(t)?t.then(e=>Fc(e)):t.isAsync()?t.readAll().then(e=>
2new Ys(e)):new Ys(t.readAll())}var $=[];for(let e=0;e<256;++e)$.push((e+256).toString(16).slice(1));function Ic(e,t=0){return($[e[t+0]]+$[e[t+1]]+$[e[t+2]]+$[e[t+3]]+`-`+$[e[t+4]]+$[e[t+5]]+`-`+$[e[t+6]]+$[e[t+7]]+`-`+$[e[t+8]]+$[e[t+9]]+`-`+$[e[t+10]]+$[e[t+11]]+$[e[t+12]]+$[e[t+13]]+$[e[t+14]]+$[e[t+15]]).toLowerCase()}var Lc=new Uint8Array(16);function Rc(){return crypto.getRandomValues(Lc)}function zc(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():Bc(e,t,n)}function Bc(e,t,n){e||={};let r=e.random??e.rng?.()??Rc();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Ic(r)}export{k as C,fe as D,y as E,On as S,Ut as T,lr as _,Us as a,zn as b,_s as c,G as d,W as f,aa as g,ya as h,Ys as i,ls as l,z as m,Fc as n,Hs as o,Xa as p,Q as r,Ws as s,zc as t,K as u,D as v,qt as w,O as x,ir as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.