@duckdb/duckdb-wasm 0.0.41-dev283.0 → 0.0.41-dev321.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/duckdb-browser-async-next-coi.pthread.worker.js +3 -3
  2. package/dist/duckdb-browser-async-next-coi.pthread.worker.js.map +2 -2
  3. package/dist/duckdb-browser-async-next-coi.worker.js +3 -3
  4. package/dist/duckdb-browser-async-next-coi.worker.js.map +2 -2
  5. package/dist/duckdb-browser-async-next.worker.js +3 -3
  6. package/dist/duckdb-browser-async-next.worker.js.map +1 -1
  7. package/dist/duckdb-browser-async.js +2 -2
  8. package/dist/duckdb-browser-async.js.map +1 -1
  9. package/dist/duckdb-browser-async.worker.js +3 -3
  10. package/dist/duckdb-browser-async.worker.js.map +2 -2
  11. package/dist/duckdb-browser-sync-next.js +3 -3
  12. package/dist/duckdb-browser-sync-next.js.map +1 -1
  13. package/dist/duckdb-browser-sync.js +3 -3
  14. package/dist/duckdb-browser-sync.js.map +2 -2
  15. package/dist/duckdb-esm.js +1 -1
  16. package/dist/duckdb-esm.js.map +1 -1
  17. package/dist/duckdb-next-coi.wasm +0 -0
  18. package/dist/duckdb-next.wasm +0 -0
  19. package/dist/duckdb-node-async-next.worker.js +3 -3
  20. package/dist/duckdb-node-async-next.worker.js.map +2 -2
  21. package/dist/duckdb-node-async.js +1 -1
  22. package/dist/duckdb-node-async.js.map +1 -1
  23. package/dist/duckdb-node-async.worker.js +2 -2
  24. package/dist/duckdb-node-async.worker.js.map +2 -2
  25. package/dist/duckdb-node-sync-next.js +3 -3
  26. package/dist/duckdb-node-sync-next.js.map +2 -2
  27. package/dist/duckdb-node-sync.js +2 -2
  28. package/dist/duckdb-node-sync.js.map +2 -2
  29. package/dist/duckdb.wasm +0 -0
  30. package/dist/tests-browser.js +6 -5
  31. package/dist/tests-browser.js.map +2 -2
  32. package/dist/tests-node.js +48 -48
  33. package/dist/tests-node.js.map +2 -2
  34. package/dist/types/src/bindings/config.d.ts +1 -0
  35. package/package.json +5 -4
@@ -1,4 +1,4 @@
1
- var duckdb=(()=>{var vS=Object.create;var ro=Object.defineProperty;var jS=Object.getOwnPropertyDescriptor;var wS=Object.getOwnPropertyNames;var TS=Object.getPrototypeOf,IS=Object.prototype.hasOwnProperty;var Fy=r=>ro(r,"__esModule",{value:!0});var E=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),BS=(r,e)=>{Fy(r);for(var t in e)ro(r,t,{get:e[t],enumerable:!0})},SS=(r,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of wS(e))!IS.call(r,i)&&i!=="default"&&ro(r,i,{get:()=>e[i],enumerable:!(t=jS(e,i))||t.enumerable});return r},Dy=r=>SS(Fy(ro(r!=null?vS(TS(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);var jr=E(Ay=>{var D={};D.Offset;D.Table;D.SIZEOF_SHORT=2;D.SIZEOF_INT=4;D.FILE_IDENTIFIER_LENGTH=4;D.SIZE_PREFIX_LENGTH=4;D.Encoding={UTF8_BYTES:1,UTF16_STRING:2};D.int32=new Int32Array(2);D.float32=new Float32Array(D.int32.buffer);D.float64=new Float64Array(D.int32.buffer);D.isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;D.Long=function(r,e){this.low=r|0,this.high=e|0};D.Long.create=function(r,e){return r==0&&e==0?D.Long.ZERO:new D.Long(r,e)};D.Long.prototype.toFloat64=function(){return(this.low>>>0)+this.high*4294967296};D.Long.prototype.equals=function(r){return this.low==r.low&&this.high==r.high};D.Long.ZERO=new D.Long(0,0);D.Builder=function(r){if(r)var e=r;else var e=1024;this.bb=D.ByteBuffer.allocate(e),this.space=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};D.Builder.prototype.clear=function(){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};D.Builder.prototype.forceDefaults=function(r){this.force_defaults=r};D.Builder.prototype.dataBuffer=function(){return this.bb};D.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())};D.Builder.prototype.prep=function(r,e){r>this.minalign&&(this.minalign=r);for(var t=~(this.bb.capacity()-this.space+e)+1&r-1;this.space<t+r+e;){var i=this.bb.capacity();this.bb=D.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(t)};D.Builder.prototype.pad=function(r){for(var e=0;e<r;e++)this.bb.writeInt8(--this.space,0)};D.Builder.prototype.writeInt8=function(r){this.bb.writeInt8(this.space-=1,r)};D.Builder.prototype.writeInt16=function(r){this.bb.writeInt16(this.space-=2,r)};D.Builder.prototype.writeInt32=function(r){this.bb.writeInt32(this.space-=4,r)};D.Builder.prototype.writeInt64=function(r){this.bb.writeInt64(this.space-=8,r)};D.Builder.prototype.writeFloat32=function(r){this.bb.writeFloat32(this.space-=4,r)};D.Builder.prototype.writeFloat64=function(r){this.bb.writeFloat64(this.space-=8,r)};D.Builder.prototype.addInt8=function(r){this.prep(1,0),this.writeInt8(r)};D.Builder.prototype.addInt16=function(r){this.prep(2,0),this.writeInt16(r)};D.Builder.prototype.addInt32=function(r){this.prep(4,0),this.writeInt32(r)};D.Builder.prototype.addInt64=function(r){this.prep(8,0),this.writeInt64(r)};D.Builder.prototype.addFloat32=function(r){this.prep(4,0),this.writeFloat32(r)};D.Builder.prototype.addFloat64=function(r){this.prep(8,0),this.writeFloat64(r)};D.Builder.prototype.addFieldInt8=function(r,e,t){(this.force_defaults||e!=t)&&(this.addInt8(e),this.slot(r))};D.Builder.prototype.addFieldInt16=function(r,e,t){(this.force_defaults||e!=t)&&(this.addInt16(e),this.slot(r))};D.Builder.prototype.addFieldInt32=function(r,e,t){(this.force_defaults||e!=t)&&(this.addInt32(e),this.slot(r))};D.Builder.prototype.addFieldInt64=function(r,e,t){(this.force_defaults||!e.equals(t))&&(this.addInt64(e),this.slot(r))};D.Builder.prototype.addFieldFloat32=function(r,e,t){(this.force_defaults||e!=t)&&(this.addFloat32(e),this.slot(r))};D.Builder.prototype.addFieldFloat64=function(r,e,t){(this.force_defaults||e!=t)&&(this.addFloat64(e),this.slot(r))};D.Builder.prototype.addFieldOffset=function(r,e,t){(this.force_defaults||e!=t)&&(this.addOffset(e),this.slot(r))};D.Builder.prototype.addFieldStruct=function(r,e,t){e!=t&&(this.nested(e),this.slot(r))};D.Builder.prototype.nested=function(r){if(r!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")};D.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")};D.Builder.prototype.slot=function(r){this.vtable[r]=this.offset()};D.Builder.prototype.offset=function(){return this.bb.capacity()-this.space};D.Builder.growByteBuffer=function(r){var e=r.capacity();if(e&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var t=e<<1,i=D.ByteBuffer.allocate(t);return i.setPosition(t-e),i.bytes().set(r.bytes(),t-e),i};D.Builder.prototype.addOffset=function(r){this.prep(D.SIZEOF_INT,0),this.writeInt32(this.offset()-r+D.SIZEOF_INT)};D.Builder.prototype.startObject=function(r){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=r;for(var e=0;e<r;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()};D.Builder.prototype.endObject=function(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);for(var r=this.offset(),e=this.vtable_in_use-1;e>=0&&this.vtable[e]==0;e--);for(var t=e+1;e>=0;e--)this.addInt16(this.vtable[e]!=0?r-this.vtable[e]:0);var i=2;this.addInt16(r-this.object_start);var n=(t+i)*D.SIZEOF_SHORT;this.addInt16(n);var s=0,c=this.space;e:for(e=0;e<this.vtables.length;e++){var v=this.bb.capacity()-this.vtables[e];if(n==this.bb.readInt16(v)){for(var B=D.SIZEOF_SHORT;B<n;B+=D.SIZEOF_SHORT)if(this.bb.readInt16(c+B)!=this.bb.readInt16(v+B))continue e;s=this.vtables[e];break}}return s?(this.space=this.bb.capacity()-r,this.bb.writeInt32(this.space,s-r)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-r,this.offset()-r)),this.isNested=!1,r};D.Builder.prototype.finish=function(r,e,t){var i=t?D.SIZE_PREFIX_LENGTH:0;if(e){var n=e;if(this.prep(this.minalign,D.SIZEOF_INT+D.FILE_IDENTIFIER_LENGTH+i),n.length!=D.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+D.FILE_IDENTIFIER_LENGTH);for(var s=D.FILE_IDENTIFIER_LENGTH-1;s>=0;s--)this.writeInt8(n.charCodeAt(s))}this.prep(this.minalign,D.SIZEOF_INT+i),this.addOffset(r),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)};D.Builder.prototype.finishSizePrefixed=function(r,e){this.finish(r,e,!0)};D.Builder.prototype.requiredField=function(r,e){var t=this.bb.capacity()-r,i=t-this.bb.readInt32(t),n=this.bb.readInt16(i+e)!=0;if(!n)throw new Error("FlatBuffers: field "+e+" must be set")};D.Builder.prototype.startVector=function(r,e,t){this.notNested(),this.vector_num_elems=e,this.prep(D.SIZEOF_INT,r*e),this.prep(t,r*e)};D.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()};D.Builder.prototype.createString=function(r){if(r instanceof Uint8Array)var e=r;else for(var e=[],t=0;t<r.length;){var i,n=r.charCodeAt(t++);if(n<55296||n>=56320)i=n;else{var s=r.charCodeAt(t++);i=(n<<10)+s+(65536-(55296<<10)-56320)}i<128?e.push(i):(i<2048?e.push(i>>6&31|192):(i<65536?e.push(i>>12&15|224):e.push(i>>18&7|240,i>>12&63|128),e.push(i>>6&63|128)),e.push(i&63|128))}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);for(var t=0,c=this.space,v=this.bb.bytes();t<e.length;t++)v[c++]=e[t];return this.endVector()};D.Builder.prototype.createLong=function(r,e){return D.Long.create(r,e)};D.ByteBuffer=function(r){this.bytes_=r,this.position_=0};D.ByteBuffer.allocate=function(r){return new D.ByteBuffer(new Uint8Array(r))};D.ByteBuffer.prototype.clear=function(){this.position_=0};D.ByteBuffer.prototype.bytes=function(){return this.bytes_};D.ByteBuffer.prototype.position=function(){return this.position_};D.ByteBuffer.prototype.setPosition=function(r){this.position_=r};D.ByteBuffer.prototype.capacity=function(){return this.bytes_.length};D.ByteBuffer.prototype.readInt8=function(r){return this.readUint8(r)<<24>>24};D.ByteBuffer.prototype.readUint8=function(r){return this.bytes_[r]};D.ByteBuffer.prototype.readInt16=function(r){return this.readUint16(r)<<16>>16};D.ByteBuffer.prototype.readUint16=function(r){return this.bytes_[r]|this.bytes_[r+1]<<8};D.ByteBuffer.prototype.readInt32=function(r){return this.bytes_[r]|this.bytes_[r+1]<<8|this.bytes_[r+2]<<16|this.bytes_[r+3]<<24};D.ByteBuffer.prototype.readUint32=function(r){return this.readInt32(r)>>>0};D.ByteBuffer.prototype.readInt64=function(r){return new D.Long(this.readInt32(r),this.readInt32(r+4))};D.ByteBuffer.prototype.readUint64=function(r){return new D.Long(this.readUint32(r),this.readUint32(r+4))};D.ByteBuffer.prototype.readFloat32=function(r){return D.int32[0]=this.readInt32(r),D.float32[0]};D.ByteBuffer.prototype.readFloat64=function(r){return D.int32[D.isLittleEndian?0:1]=this.readInt32(r),D.int32[D.isLittleEndian?1:0]=this.readInt32(r+4),D.float64[0]};D.ByteBuffer.prototype.writeInt8=function(r,e){this.bytes_[r]=e};D.ByteBuffer.prototype.writeUint8=function(r,e){this.bytes_[r]=e};D.ByteBuffer.prototype.writeInt16=function(r,e){this.bytes_[r]=e,this.bytes_[r+1]=e>>8};D.ByteBuffer.prototype.writeUint16=function(r,e){this.bytes_[r]=e,this.bytes_[r+1]=e>>8};D.ByteBuffer.prototype.writeInt32=function(r,e){this.bytes_[r]=e,this.bytes_[r+1]=e>>8,this.bytes_[r+2]=e>>16,this.bytes_[r+3]=e>>24};D.ByteBuffer.prototype.writeUint32=function(r,e){this.bytes_[r]=e,this.bytes_[r+1]=e>>8,this.bytes_[r+2]=e>>16,this.bytes_[r+3]=e>>24};D.ByteBuffer.prototype.writeInt64=function(r,e){this.writeInt32(r,e.low),this.writeInt32(r+4,e.high)};D.ByteBuffer.prototype.writeUint64=function(r,e){this.writeUint32(r,e.low),this.writeUint32(r+4,e.high)};D.ByteBuffer.prototype.writeFloat32=function(r,e){D.float32[0]=e,this.writeInt32(r,D.int32[0])};D.ByteBuffer.prototype.writeFloat64=function(r,e){D.float64[0]=e,this.writeInt32(r,D.int32[D.isLittleEndian?0:1]),this.writeInt32(r+4,D.int32[D.isLittleEndian?1:0])};D.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+D.SIZEOF_INT+D.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var r="",e=0;e<D.FILE_IDENTIFIER_LENGTH;e++)r+=String.fromCharCode(this.readInt8(this.position_+D.SIZEOF_INT+e));return r};D.ByteBuffer.prototype.__offset=function(r,e){var t=r-this.readInt32(r);return e<this.readInt16(t)?this.readInt16(t+e):0};D.ByteBuffer.prototype.__union=function(r,e){return r.bb_pos=e+this.readInt32(e),r.bb=this,r};D.ByteBuffer.prototype.__string=function(r,e){r+=this.readInt32(r);var t=this.readInt32(r),i="",n=0;if(r+=D.SIZEOF_INT,e===D.Encoding.UTF8_BYTES)return this.bytes_.subarray(r,r+t);for(;n<t;){var s,c=this.readUint8(r+n++);if(c<192)s=c;else{var v=this.readUint8(r+n++);if(c<224)s=(c&31)<<6|v&63;else{var B=this.readUint8(r+n++);if(c<240)s=(c&15)<<12|(v&63)<<6|B&63;else{var S=this.readUint8(r+n++);s=(c&7)<<18|(v&63)<<12|(B&63)<<6|S&63}}}s<65536?i+=String.fromCharCode(s):(s-=65536,i+=String.fromCharCode((s>>10)+55296,(s&(1<<10)-1)+56320))}return i};D.ByteBuffer.prototype.__indirect=function(r){return r+this.readInt32(r)};D.ByteBuffer.prototype.__vector=function(r){return r+this.readInt32(r)+D.SIZEOF_INT};D.ByteBuffer.prototype.__vector_len=function(r){return this.readInt32(r+this.readInt32(r))};D.ByteBuffer.prototype.__has_identifier=function(r){if(r.length!=D.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+D.FILE_IDENTIFIER_LENGTH);for(var e=0;e<D.FILE_IDENTIFIER_LENGTH;e++)if(r.charCodeAt(e)!=this.readInt8(this.position_+D.SIZEOF_INT+e))return!1;return!0};D.ByteBuffer.prototype.createLong=function(r,e){return D.Long.create(r,e)};Ay.flatbuffers=D});var Ry=E(vu=>{"use strict";function wr(r,e,t){return e<=r&&r<=t}function io(r){if(r===void 0)return{};if(r===Object(r))return r;throw TypeError("Could not convert argument to dictionary")}function OS(r){for(var e=String(r),t=e.length,i=0,n=[];i<t;){var s=e.charCodeAt(i);if(s<55296||s>57343)n.push(s);else if(56320<=s&&s<=57343)n.push(65533);else if(55296<=s&&s<=56319)if(i===t-1)n.push(65533);else{var c=r.charCodeAt(i+1);if(56320<=c&&c<=57343){var v=s&1023,B=c&1023;n.push(65536+(v<<10)+B),i+=1}else n.push(65533)}i+=1}return n}function FS(r){for(var e="",t=0;t<r.length;++t){var i=r[t];i<=65535?e+=String.fromCharCode(i):(i-=65536,e+=String.fromCharCode((i>>10)+55296,(i&1023)+56320))}return e}var no=-1;function bu(r){this.tokens=[].slice.call(r)}bu.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():no},prepend:function(r){if(Array.isArray(r))for(var e=r;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(r)},push:function(r){if(Array.isArray(r))for(var e=r;e.length;)this.tokens.push(e.shift());else this.tokens.push(r)}};var Zi=-1;function gu(r,e){if(r)throw TypeError("Decoder error");return e||65533}var so="utf-8";function oo(r,e){if(!(this instanceof oo))return new oo(r,e);if(r=r!==void 0?String(r).toLowerCase():so,r!==so)throw new Error("Encoding not supported. Only utf-8 is supported");e=io(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}oo.prototype={decode:function(e,t){var i;typeof e=="object"&&e instanceof ArrayBuffer?i=new Uint8Array(e):typeof e=="object"&&"buffer"in e&&e.buffer instanceof ArrayBuffer?i=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):i=new Uint8Array(0),t=io(t),this._streaming||(this._decoder=new DS({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var n=new bu(i),s=[],c;!n.endOfStream()&&(c=this._decoder.handler(n,n.read()),c!==Zi);)c!==null&&(Array.isArray(c)?s.push.apply(s,c):s.push(c));if(!this._streaming){do{if(c=this._decoder.handler(n,n.read()),c===Zi)break;c!==null&&(Array.isArray(c)?s.push.apply(s,c):s.push(c))}while(!n.endOfStream());this._decoder=null}return s.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(s[0]===65279?(this._BOMseen=!0,s.shift()):this._BOMseen=!0),FS(s)}};function ao(r,e){if(!(this instanceof ao))return new ao(r,e);if(r=r!==void 0?String(r).toLowerCase():so,r!==so)throw new Error("Encoding not supported. Only utf-8 is supported");e=io(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}ao.prototype={encode:function(e,t){e=e?String(e):"",t=io(t),this._streaming||(this._encoder=new AS(this._options)),this._streaming=Boolean(t.stream);for(var i=[],n=new bu(OS(e)),s;!n.endOfStream()&&(s=this._encoder.handler(n,n.read()),s!==Zi);)Array.isArray(s)?i.push.apply(i,s):i.push(s);if(!this._streaming){for(;s=this._encoder.handler(n,n.read()),s!==Zi;)Array.isArray(s)?i.push.apply(i,s):i.push(s);this._encoder=null}return new Uint8Array(i)}};function DS(r){var e=r.fatal,t=0,i=0,n=0,s=128,c=191;this.handler=function(v,B){if(B===no&&n!==0)return n=0,gu(e);if(B===no)return Zi;if(n===0){if(wr(B,0,127))return B;if(wr(B,194,223))n=1,t=B-192;else if(wr(B,224,239))B===224&&(s=160),B===237&&(c=159),n=2,t=B-224;else if(wr(B,240,244))B===240&&(s=144),B===244&&(c=143),n=3,t=B-240;else return gu(e);return t=t<<6*n,null}if(!wr(B,s,c))return t=n=i=0,s=128,c=191,v.prepend(B),gu(e);if(s=128,c=191,i+=1,t+=B-128<<6*(n-i),i!==n)return null;var S=t;return t=n=i=0,S}}function AS(r){var e=r.fatal;this.handler=function(t,i){if(i===no)return Zi;if(wr(i,0,127))return i;var n,s;wr(i,128,2047)?(n=1,s=192):wr(i,2048,65535)?(n=2,s=224):wr(i,65536,1114111)&&(n=3,s=240);for(var c=[(i>>6*n)+s];n>0;){var v=i>>6*(n-1);c.push(128|v&63),n-=1}return c}}vu.TextEncoder=ao;vu.TextDecoder=oo});var Ti=E(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.encodeUtf8=Xi.decodeUtf8=void 0;var Ey=Ry(),RS=new(typeof TextDecoder!="undefined"?TextDecoder:Ey.TextDecoder)("utf-8");Xi.decodeUtf8=r=>RS.decode(r);var ES=new(typeof TextEncoder!="undefined"?TextEncoder:Ey.TextEncoder);Xi.encodeUtf8=r=>ES.encode(r)});var en=E(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.AsyncQueue=pt.ReadableInterop=pt.ArrowJSON=pt.ITERATOR_DONE=void 0;var Cy=ns();pt.ITERATOR_DONE=Object.freeze({done:!0,value:void 0});var Uy=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}};pt.ArrowJSON=Uy;var ju=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._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}};pt.ReadableInterop=ju;var My=class extends ju{constructor(){super();this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}async cancel(e){await 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(pt.ITERATOR_DONE);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Cy.default.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Cy.default.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}async throw(e){return await this.abort(e),pt.ITERATOR_DONE}async return(e){return await this.close(),pt.ITERATOR_DONE}async read(e){return(await this.next(e,"read")).value}async peek(e){return(await 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((t,i)=>{this.resolvers.push({resolve:t,reject:i})}):Promise.resolve(pt.ITERATOR_DONE)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error(`${this} is closed`)}};pt.AsyncQueue=My});var ct=E(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.isReadableNodeStream=q.isWritableNodeStream=q.isReadableDOMStream=q.isWritableDOMStream=q.isFetchResponse=q.isFSReadStream=q.isFileHandle=q.isUnderlyingSink=q.isIteratorResult=q.isArrayLike=q.isArrowJSON=q.isAsyncIterable=q.isIterable=q.isObservable=q.isPromise=q.isObject=q.BigUint64ArrayAvailable=q.BigUint64Array=q.BigInt64ArrayAvailable=q.BigInt64Array=q.BigIntAvailable=q.BigInt=void 0;var uo=en(),[CS,US]=(()=>{let r=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw r()}return e.asIntN=()=>{throw r()},e.asUintN=()=>{throw r()},typeof BigInt!="undefined"?[BigInt,!0]:[e,!1]})();q.BigInt=CS;q.BigIntAvailable=US;var[MS,kS]=(()=>{let r=()=>{throw new Error("BigInt64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw r()}static from(){throw r()}constructor(){throw r()}}return typeof BigInt64Array!="undefined"?[BigInt64Array,!0]:[e,!1]})();q.BigInt64Array=MS;q.BigInt64ArrayAvailable=kS;var[VS,PS]=(()=>{let r=()=>{throw new Error("BigUint64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw r()}static from(){throw r()}constructor(){throw r()}}return typeof BigUint64Array!="undefined"?[BigUint64Array,!0]:[e,!1]})();q.BigUint64Array=VS;q.BigUint64ArrayAvailable=PS;var wu=r=>typeof r=="number",ky=r=>typeof r=="boolean",rt=r=>typeof r=="function";q.isObject=r=>r!=null&&Object(r)===r;q.isPromise=r=>q.isObject(r)&&rt(r.then);q.isObservable=r=>q.isObject(r)&&rt(r.subscribe);q.isIterable=r=>q.isObject(r)&&rt(r[Symbol.iterator]);q.isAsyncIterable=r=>q.isObject(r)&&rt(r[Symbol.asyncIterator]);q.isArrowJSON=r=>q.isObject(r)&&q.isObject(r.schema);q.isArrayLike=r=>q.isObject(r)&&wu(r.length);q.isIteratorResult=r=>q.isObject(r)&&"done"in r&&"value"in r;q.isUnderlyingSink=r=>q.isObject(r)&&rt(r.abort)&&rt(r.close)&&rt(r.start)&&rt(r.write);q.isFileHandle=r=>q.isObject(r)&&rt(r.stat)&&wu(r.fd);q.isFSReadStream=r=>q.isReadableNodeStream(r)&&wu(r.bytesRead);q.isFetchResponse=r=>q.isObject(r)&&q.isReadableDOMStream(r.body);q.isWritableDOMStream=r=>q.isObject(r)&&rt(r.abort)&&rt(r.getWriter)&&!(r instanceof uo.ReadableInterop);q.isReadableDOMStream=r=>q.isObject(r)&&rt(r.cancel)&&rt(r.getReader)&&!(r instanceof uo.ReadableInterop);q.isWritableNodeStream=r=>q.isObject(r)&&rt(r.end)&&rt(r.write)&&ky(r.writable)&&!(r instanceof uo.ReadableInterop);q.isReadableNodeStream=r=>q.isObject(r)&&rt(r.read)&&rt(r.pipe)&&ky(r.readable)&&!(r instanceof uo.ReadableInterop)});var Ge=E(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.compareArrayLike=L.rebaseValueOffsets=L.toUint8ClampedArrayAsyncIterator=L.toFloat64ArrayAsyncIterator=L.toFloat32ArrayAsyncIterator=L.toUint32ArrayAsyncIterator=L.toUint16ArrayAsyncIterator=L.toUint8ArrayAsyncIterator=L.toInt32ArrayAsyncIterator=L.toInt16ArrayAsyncIterator=L.toInt8ArrayAsyncIterator=L.toArrayBufferViewAsyncIterator=L.toUint8ClampedArrayIterator=L.toFloat64ArrayIterator=L.toFloat32ArrayIterator=L.toUint32ArrayIterator=L.toUint16ArrayIterator=L.toUint8ArrayIterator=L.toInt32ArrayIterator=L.toInt16ArrayIterator=L.toInt8ArrayIterator=L.toArrayBufferViewIterator=L.toUint8ClampedArray=L.toFloat64Array=L.toFloat32Array=L.toBigUint64Array=L.toUint32Array=L.toUint16Array=L.toUint8Array=L.toBigInt64Array=L.toInt32Array=L.toInt16Array=L.toInt8Array=L.toArrayBufferView=L.joinUint8Arrays=L.memcpy=void 0;var NS=jr(),LS=Ti(),xS=NS.flatbuffers.ByteBuffer,Ii=ct(),Tu=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:ArrayBuffer;function qS(r){let e=r[0]?[r[0]]:[],t,i,n,s;for(let c,v,B=0,S=0,C=r.length;++B<C;){if(c=e[S],v=r[B],!c||!v||c.buffer!==v.buffer||v.byteOffset<c.byteOffset){v&&(e[++S]=v);continue}if({byteOffset:t,byteLength:n}=c,{byteOffset:i,byteLength:s}=v,t+n<i||i+s<t){v&&(e[++S]=v);continue}e[S]=new Uint8Array(c.buffer,t,i-t+s)}return e}function Iu(r,e,t=0,i=e.byteLength){let n=r.byteLength,s=new Uint8Array(r.buffer,r.byteOffset,n),c=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,n));return s.set(c,t),r}L.memcpy=Iu;function zS(r,e){let t=qS(r),i=t.reduce((C,K)=>C+K.byteLength,0),n,s,c,v=0,B=-1,S=Math.min(e||1/0,i);for(let C=t.length;++B<C;){if(n=t[B],s=n.subarray(0,Math.min(n.length,S-v)),S<=v+s.length){s.length<n.length?t[B]=n.subarray(s.length):s.length===n.length&&B++,c?Iu(c,s,v):c=s;break}Iu(c||(c=new Uint8Array(S)),s,v),v+=s.length}return[c||new Uint8Array(0),t.slice(B),i-(c?c.byteLength:0)]}L.joinUint8Arrays=zS;function ft(r,e){let t=Ii.isIteratorResult(e)?e.value:e;return t instanceof r?r===Uint8Array?new r(t.buffer,t.byteOffset,t.byteLength):t:t?(typeof t=="string"&&(t=LS.encodeUtf8(t)),t instanceof ArrayBuffer?new r(t):t instanceof Tu?new r(t):t instanceof xS?ft(r,t.bytes()):ArrayBuffer.isView(t)?t.byteLength<=0?new r(0):new r(t.buffer,t.byteOffset,t.byteLength/r.BYTES_PER_ELEMENT):r.from(t)):new r(0)}L.toArrayBufferView=ft;L.toInt8Array=r=>ft(Int8Array,r);L.toInt16Array=r=>ft(Int16Array,r);L.toInt32Array=r=>ft(Int32Array,r);L.toBigInt64Array=r=>ft(Ii.BigInt64Array,r);L.toUint8Array=r=>ft(Uint8Array,r);L.toUint16Array=r=>ft(Uint16Array,r);L.toUint32Array=r=>ft(Uint32Array,r);L.toBigUint64Array=r=>ft(Ii.BigUint64Array,r);L.toFloat32Array=r=>ft(Float32Array,r);L.toFloat64Array=r=>ft(Float64Array,r);L.toUint8ClampedArray=r=>ft(Uint8ClampedArray,r);var Bu=r=>(r.next(),r);function*er(r,e){let t=function*(n){yield n},i=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Tu?t(e):Ii.isIterable(e)?e:t(e);return yield*Bu(function*(n){let s=null;do s=n.next(yield ft(r,s));while(!s.done)}(i[Symbol.iterator]())),new r}L.toArrayBufferViewIterator=er;L.toInt8ArrayIterator=r=>er(Int8Array,r);L.toInt16ArrayIterator=r=>er(Int16Array,r);L.toInt32ArrayIterator=r=>er(Int32Array,r);L.toUint8ArrayIterator=r=>er(Uint8Array,r);L.toUint16ArrayIterator=r=>er(Uint16Array,r);L.toUint32ArrayIterator=r=>er(Uint32Array,r);L.toFloat32ArrayIterator=r=>er(Float32Array,r);L.toFloat64ArrayIterator=r=>er(Float64Array,r);L.toUint8ClampedArrayIterator=r=>er(Uint8ClampedArray,r);async function*zt(r,e){if(Ii.isPromise(e))return yield*zt(r,await e);let t=async function*(s){yield await s},i=async function*(s){yield*Bu(function*(c){let v=null;do v=c.next(yield v&&v.value);while(!v.done)}(s[Symbol.iterator]()))},n=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Tu?t(e):Ii.isIterable(e)?i(e):Ii.isAsyncIterable(e)?e:t(e);return yield*Bu(async function*(s){let c=null;do c=await s.next(yield ft(r,c));while(!c.done)}(n[Symbol.asyncIterator]())),new r}L.toArrayBufferViewAsyncIterator=zt;L.toInt8ArrayAsyncIterator=r=>zt(Int8Array,r);L.toInt16ArrayAsyncIterator=r=>zt(Int16Array,r);L.toInt32ArrayAsyncIterator=r=>zt(Int32Array,r);L.toUint8ArrayAsyncIterator=r=>zt(Uint8Array,r);L.toUint16ArrayAsyncIterator=r=>zt(Uint16Array,r);L.toUint32ArrayAsyncIterator=r=>zt(Uint32Array,r);L.toFloat32ArrayAsyncIterator=r=>zt(Float32Array,r);L.toFloat64ArrayAsyncIterator=r=>zt(Float64Array,r);L.toUint8ClampedArrayAsyncIterator=r=>zt(Uint8ClampedArray,r);function WS(r,e,t){if(r!==0){t=t.slice(0,e+1);for(let i=-1;++i<=e;)t[i]+=r}return t}L.rebaseValueOffsets=WS;function HS(r,e){let t=0,i=r.length;if(i!==e.length)return!1;if(i>0)do if(r[t]!==e[t])return!1;while(++t<i);return!0}L.compareArrayLike=HS});var ns=E(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var ht=Ge();Ou.default={fromIterable(r){return co(YS(r))},fromAsyncIterable(r){return co(GS(r))},fromDOMStream(r){return co(KS(r))},fromNodeStream(r){return co($S(r))},toDOMStream(r,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(r,e){throw new Error('"toNodeStream" not available in this environment')}};var co=r=>(r.next(),r);function*YS(r){let e,t=!1,i=[],n,s,c,v=0;function B(){return s==="peek"?ht.joinUint8Arrays(i,c)[0]:([n,i,v]=ht.joinUint8Arrays(i,c),n)}({cmd:s,size:c}=yield null);let S=ht.toUint8ArrayIterator(r)[Symbol.iterator]();try{do if({done:e,value:n}=isNaN(c-v)?S.next(void 0):S.next(c-v),!e&&n.byteLength>0&&(i.push(n),v+=n.byteLength),e||c<=v)do({cmd:s,size:c}=yield B());while(c<v);while(!e)}catch(C){(t=!0)&&typeof S.throw=="function"&&S.throw(C)}finally{t===!1&&typeof S.return=="function"&&S.return(null)}return null}async function*GS(r){let e,t=!1,i=[],n,s,c,v=0;function B(){return s==="peek"?ht.joinUint8Arrays(i,c)[0]:([n,i,v]=ht.joinUint8Arrays(i,c),n)}({cmd:s,size:c}=yield null);let S=ht.toUint8ArrayAsyncIterator(r)[Symbol.asyncIterator]();try{do if({done:e,value:n}=isNaN(c-v)?await S.next(void 0):await S.next(c-v),!e&&n.byteLength>0&&(i.push(n),v+=n.byteLength),e||c<=v)do({cmd:s,size:c}=yield B());while(c<v);while(!e)}catch(C){(t=!0)&&typeof S.throw=="function"&&await S.throw(C)}finally{t===!1&&typeof S.return=="function"&&await S.return(new Uint8Array(0))}return null}async function*KS(r){let e=!1,t=!1,i=[],n,s,c,v=0;function B(){return s==="peek"?ht.joinUint8Arrays(i,c)[0]:([n,i,v]=ht.joinUint8Arrays(i,c),n)}({cmd:s,size:c}=yield null);let S=new Vy(r);try{do if({done:e,value:n}=isNaN(c-v)?await S.read(void 0):await S.read(c-v),!e&&n.byteLength>0&&(i.push(ht.toUint8Array(n)),v+=n.byteLength),e||c<=v)do({cmd:s,size:c}=yield B());while(c<v);while(!e)}catch(C){(t=!0)&&await S.cancel(C)}finally{t===!1?await S.cancel():r.locked&&S.releaseLock()}return null}var Vy=class{constructor(e){this.source=e,this.byobReader=null,this.defaultReader=null;try{this.supportsBYOB=!!(this.reader=this.getBYOBReader())}catch(t){this.supportsBYOB=!(this.reader=this.getDefaultReader())}}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}async cancel(e){let{reader:t,source:i}=this;t&&await t.cancel(e).catch(()=>{}),i&&i.locked&&this.releaseLock()}async read(e){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};let t=!this.supportsBYOB||typeof e!="number"?await this.getDefaultReader().read():await this.readFromBYOBReader(e);return!t.done&&(t.value=ht.toUint8Array(t)),t}getDefaultReader(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch(()=>{})),this.reader=this.defaultReader}getBYOBReader(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch(()=>{})),this.reader=this.byobReader}async readFromBYOBReader(e){return await Py(this.getBYOBReader(),new ArrayBuffer(e),0,e)}};async function Py(r,e,t,i){if(t>=i)return{done:!1,value:new Uint8Array(e,0,i)};let{done:n,value:s}=await r.read(new Uint8Array(e,t,i-t));return(t+=s.byteLength)<i&&!n?await Py(r,s.buffer,t,i):{done:n,value:new Uint8Array(s.buffer,0,t)}}var Su=(r,e)=>{let t=n=>i([e,n]),i;return[e,t,new Promise(n=>(i=n)&&r.once(e,t))]};async function*$S(r){let e=[],t="error",i=!1,n=null,s,c,v=0,B=[],S;function C(){return s==="peek"?ht.joinUint8Arrays(B,c)[0]:([S,B,v]=ht.joinUint8Arrays(B,c),S)}if({cmd:s,size:c}=yield null,r.isTTY)return yield new Uint8Array(0),null;try{e[0]=Su(r,"end"),e[1]=Su(r,"error");do{if(e[2]=Su(r,"readable"),[t,n]=await Promise.race(e.map(be=>be[2])),t==="error")break;if((i=t==="end")||(isFinite(c-v)?(S=ht.toUint8Array(r.read(c-v)),S.byteLength<c-v&&(S=ht.toUint8Array(r.read(void 0)))):S=ht.toUint8Array(r.read(void 0)),S.byteLength>0&&(B.push(S),v+=S.byteLength)),i||c<=v)do({cmd:s,size:c}=yield C());while(c<v)}while(!i)}finally{await K(e,t==="error"?n:null)}return null;function K(be,pe){return S=B=null,new Promise((Zt,kr)=>{for(let[ue,Gi]of be)r.off(ue,Gi);try{let ue=r.destroy;ue&&ue.call(r,pe),pe=void 0}catch(ue){pe=ue||pe}finally{pe!=null?kr(pe):Zt()}})}}});var Le=E(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.Vector=tn.AbstractVector=void 0;var lo=class{};tn.AbstractVector=lo;tn.Vector=lo;lo.prototype.data=null});var Gr=E(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.Schema=P.Buffer=P.Field=P.DictionaryEncoding=P.KeyValue=P.Duration=P.Interval=P.Timestamp=P.Time=P.Date=P.Decimal=P.Bool=P.FixedSizeBinary=P.LargeBinary=P.LargeUtf8=P.Binary=P.Utf8=P.FloatingPoint=P.Int=P.Union=P.Map=P.FixedSizeList=P.LargeList=P.List=P.Struct_=P.Null=P.Endianness=P.DictionaryKind=P.Type=P.IntervalUnit=P.TimeUnit=P.DateUnit=P.Precision=P.UnionMode=P.Feature=P.MetadataVersion=void 0;var Fe=jr(),JS;(function(r){r[r.V1=0]="V1",r[r.V2=1]="V2",r[r.V3=2]="V3",r[r.V4=3]="V4",r[r.V5=4]="V5"})(JS=P.MetadataVersion||(P.MetadataVersion={}));var QS;(function(r){r[r.UNUSED=0]="UNUSED",r[r.DICTIONARY_REPLACEMENT=1]="DICTIONARY_REPLACEMENT",r[r.COMPRESSED_BODY=2]="COMPRESSED_BODY"})(QS=P.Feature||(P.Feature={}));var Fu;(function(r){r[r.Sparse=0]="Sparse",r[r.Dense=1]="Dense"})(Fu=P.UnionMode||(P.UnionMode={}));var Du;(function(r){r[r.HALF=0]="HALF",r[r.SINGLE=1]="SINGLE",r[r.DOUBLE=2]="DOUBLE"})(Du=P.Precision||(P.Precision={}));var Au;(function(r){r[r.DAY=0]="DAY",r[r.MILLISECOND=1]="MILLISECOND"})(Au=P.DateUnit||(P.DateUnit={}));var Bi;(function(r){r[r.SECOND=0]="SECOND",r[r.MILLISECOND=1]="MILLISECOND",r[r.MICROSECOND=2]="MICROSECOND",r[r.NANOSECOND=3]="NANOSECOND"})(Bi=P.TimeUnit||(P.TimeUnit={}));var Ru;(function(r){r[r.YEAR_MONTH=0]="YEAR_MONTH",r[r.DAY_TIME=1]="DAY_TIME"})(Ru=P.IntervalUnit||(P.IntervalUnit={}));var Eu;(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.FloatingPoint=3]="FloatingPoint",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct_=13]="Struct_",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Duration=18]="Duration",r[r.LargeBinary=19]="LargeBinary",r[r.LargeUtf8=20]="LargeUtf8",r[r.LargeList=21]="LargeList"})(Eu=P.Type||(P.Type={}));var Cu;(function(r){r[r.DenseArray=0]="DenseArray"})(Cu=P.DictionaryKind||(P.DictionaryKind={}));var Uu;(function(r){r[r.Little=0]="Little",r[r.Big=1]="Big"})(Uu=P.Endianness||(P.Endianness={}));var Si=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new Si).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Si).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return Si.startNull(e),Si.endNull(e)}};P.Null=Si;var Oi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new Oi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Oi).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Oi.startStruct_(e),Oi.endStruct_(e)}};P.Struct_=Oi;var Fi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new Fi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Fi).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Fi.startList(e),Fi.endList(e)}};P.List=Fi;var Di=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeList(e,t){return(t||new Di).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Di).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(e){e.startObject(0)}static endLargeList(e){return e.endObject()}static createLargeList(e){return Di.startLargeList(e),Di.endLargeList(e)}};P.LargeList=Di;var Lr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new Lr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Lr).__init(e.readInt32(e.position())+e.position(),e)}listSize(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return Lr.startFixedSizeList(e),Lr.addListSize(e,t),Lr.endFixedSizeList(e)}};P.FixedSizeList=Lr;var xr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new xr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new xr).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){let e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return xr.startMap(e),xr.addKeysSorted(e,t),xr.endMap(e)}};P.Map=xr;var Tr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new Tr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Tr).__init(e.readInt32(e.position())+e.position(),e)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Fu.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,Fu.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let i=t.length-1;i>=0;i--)e.addInt32(t[i]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,i){return Tr.startUnion(e),Tr.addMode(e,t),Tr.addTypeIds(e,i),Tr.endUnion(e)}};P.Union=Tr;var tr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(e,t){return(t||new tr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new tr).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(e,t,i){return tr.startInt(e),tr.addBitWidth(e,t),tr.addIsSigned(e,i),tr.endInt(e)}};P.Int=tr;var qr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new qr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new qr).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Du.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,Du.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return qr.startFloatingPoint(e),qr.addPrecision(e,t),qr.endFloatingPoint(e)}};P.FloatingPoint=qr;var Ai=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new Ai).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ai).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Ai.startUtf8(e),Ai.endUtf8(e)}};P.Utf8=Ai;var Ri=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new Ri).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ri).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return Ri.startBinary(e),Ri.endBinary(e)}};P.Binary=Ri;var Ei=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeUtf8(e,t){return(t||new Ei).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ei).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return Ei.startLargeUtf8(e),Ei.endLargeUtf8(e)}};P.LargeUtf8=Ei;var Ci=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeBinary(e,t){return(t||new Ci).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ci).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return Ci.startLargeBinary(e),Ci.endLargeBinary(e)}};P.LargeBinary=Ci;var zr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new zr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new zr).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return zr.startFixedSizeBinary(e),zr.addByteWidth(e,t),zr.endFixedSizeBinary(e)}};P.FixedSizeBinary=zr;var Ui=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new Ui).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ui).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return Ui.startBool(e),Ui.endBool(e)}};P.Bool=Ui;var rr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new rr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new rr).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,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(e,t,i,n){return rr.startDecimal(e),rr.addPrecision(e,t),rr.addScale(e,i),rr.addBitWidth(e,n),rr.endDecimal(e)}};P.Decimal=rr;var Wr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new Wr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Wr).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Au.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Au.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return Wr.startDate(e),Wr.addUnit(e,t),Wr.endDate(e)}};P.Date=Wr;var Ir=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new Ir).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ir).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bi.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,Bi.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,i){return Ir.startTime(e),Ir.addUnit(e,t),Ir.addBitWidth(e,i),Ir.endTime(e)}};P.Time=Ir;var Br=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new Br).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Br).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bi.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,Bi.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,i){return Br.startTimestamp(e),Br.addUnit(e,t),Br.addTimezone(e,i),Br.endTimestamp(e)}};P.Timestamp=Br;var Hr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ru.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Ru.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return Hr.startInterval(e),Hr.addUnit(e,t),Hr.endInterval(e)}};P.Interval=Hr;var Yr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDuration(e,t){return(t||new Yr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Yr).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bi.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Bi.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,t){return Yr.startDuration(e),Yr.addUnit(e,t),Yr.endDuration(e)}};P.Duration=Yr;var Wt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(e,t){return(t||new Wt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Wt).__init(e.readInt32(e.position())+e.position(),e)}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(e,t,i){return Wt.startKeyValue(e),Wt.addKey(e,t),Wt.addValue(e,i),Wt.endKeyValue(e)}};P.KeyValue=Wt;var wt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(e,t){return(t||new wt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new wt).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new tr).__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):Cu.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,e.createLong(0,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,Cu.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}static createDictionaryEncoding(e,t,i,n,s){return wt.startDictionaryEncoding(e),wt.addId(e,t),wt.addIndexType(e,i),wt.addIsOrdered(e,n),wt.addDictionaryKind(e,s),wt.endDictionaryEncoding(e)}};P.DictionaryEncoding=wt;var lt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(e,t){return(t||new lt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new lt).__init(e.readInt32(e.position())+e.position(),e)}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}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Eu.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 wt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(e,t){let i=this.bb.__offset(this.bb_pos,14);return i?(t||new lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let i=this.bb.__offset(this.bb_pos,16);return i?(t||new Wt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,Eu.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 i=t.length-1;i>=0;i--)e.addOffset(t[i]);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 i=t.length-1;i>=0;i--)e.addOffset(t[i]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}static createField(e,t,i,n,s,c,v,B){return lt.startField(e),lt.addName(e,t),lt.addNullable(e,i),lt.addTypeType(e,n),lt.addType(e,s),lt.addDictionary(e,c),lt.addChildren(e,v),lt.addCustomMetadata(e,B),lt.endField(e)}};P.Field=lt;var Ny=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 createBuffer(e,t,i){return e.prep(8,16),e.writeInt64(i),e.writeInt64(t),e.offset()}};P.Buffer=Ny;var Ht=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new Ht).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ht).__init(e.readInt32(e.position())+e.position(),e)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Uu.Little}fields(e,t){let i=this.bb.__offset(this.bb_pos,6);return i?(t||new lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let i=this.bb.__offset(this.bb_pos,8);return i?(t||new Wt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):this.bb.createLong(0,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,Uu.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let i=t.length-1;i>=0;i--)e.addOffset(t[i]);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 i=t.length-1;i>=0;i--)e.addOffset(t[i]);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 i=t.length-1;i>=0;i--)e.addInt64(t[i]);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(e,t,i,n,s){return Ht.startSchema(e),Ht.addEndianness(e,t),Ht.addFields(e,i),Ht.addCustomMetadata(e,n),Ht.addFeatures(e,s),Ht.endSchema(e)}};P.Schema=Ht});var po=E(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.Message=xe.DictionaryBatch=xe.RecordBatch=xe.BodyCompression=xe.FieldNode=xe.MessageHeader=xe.BodyCompressionMethod=xe.CompressionType=void 0;var fo=jr(),ho=Gr(),Mu;(function(r){r[r.LZ4_FRAME=0]="LZ4_FRAME",r[r.ZSTD=1]="ZSTD"})(Mu=xe.CompressionType||(xe.CompressionType={}));var ku;(function(r){r[r.BUFFER=0]="BUFFER"})(ku=xe.BodyCompressionMethod||(xe.BodyCompressionMethod={}));var Vu;(function(r){r[r.NONE=0]="NONE",r[r.Schema=1]="Schema",r[r.DictionaryBatch=2]="DictionaryBatch",r[r.RecordBatch=3]="RecordBatch",r[r.Tensor=4]="Tensor",r[r.SparseTensor=5]="SparseTensor"})(Vu=xe.MessageHeader||(xe.MessageHeader={}));var Pu=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 createFieldNode(e,t,i){return e.prep(8,16),e.writeInt64(i),e.writeInt64(t),e.offset()}};xe.FieldNode=Pu;var ir=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new ir).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+fo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new ir).__init(e.readInt32(e.position())+e.position(),e)}codec(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):Mu.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):ku.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,Mu.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,ku.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,i){return ir.startBodyCompression(e),ir.addCodec(e,t),ir.addMethod(e,i),ir.endBodyCompression(e)}};xe.BodyCompression=ir;var Tt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new Tt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+fo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Tt).__init(e.readInt32(e.position())+e.position(),e)}length(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,t){let i=this.bb.__offset(this.bb_pos,6);return i?(t||new Pu).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}nodesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){let i=this.bb.__offset(this.bb_pos,8);return i?(t||new ho.Buffer).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}buffersLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){let t=this.bb.__offset(this.bb_pos,10);return t?(e||new ir).__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,e.createLong(0,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()}static createRecordBatch(e,t,i,n,s){return Tt.startRecordBatch(e),Tt.addLength(e,t),Tt.addNodes(e,i),Tt.addBuffers(e,n),Tt.addCompression(e,s),Tt.endRecordBatch(e)}};xe.RecordBatch=Tt;var nr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new nr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+fo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new nr).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new Tt).__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,e.createLong(0,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()}static createDictionaryBatch(e,t,i,n){return nr.startDictionaryBatch(e),nr.addId(e,t),nr.addData(e,i),nr.addIsDelta(e,n),nr.endDictionaryBatch(e)}};xe.DictionaryBatch=nr;var It=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new It).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+fo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new It).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ho.MetadataVersion.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Vu.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):this.bb.createLong(0,0)}customMetadata(e,t){let i=this.bb.__offset(this.bb_pos,12);return i?(t||new ho.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,ho.MetadataVersion.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,Vu.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,e.createLong(0,0))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let i=t.length-1;i>=0;i--)e.addOffset(t[i]);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(e,t,i,n,s,c){return It.startMessage(e),It.addVersion(e,t),It.addHeaderType(e,i),It.addHeader(e,n),It.addBodyLength(e,s),It.addCustomMetadata(e,c),It.endMessage(e)}};xe.Message=It});var Se=E(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.BufferType=Ue.Type=Ue.MessageHeader=Ue.MetadataVersion=Ue.IntervalUnit=Ue.UnionMode=Ue.Precision=Ue.TimeUnit=Ue.DateUnit=void 0;var rn=Gr();Object.defineProperty(Ue,"DateUnit",{enumerable:!0,get:function(){return rn.DateUnit}});Object.defineProperty(Ue,"TimeUnit",{enumerable:!0,get:function(){return rn.TimeUnit}});Object.defineProperty(Ue,"Precision",{enumerable:!0,get:function(){return rn.Precision}});Object.defineProperty(Ue,"UnionMode",{enumerable:!0,get:function(){return rn.UnionMode}});Object.defineProperty(Ue,"IntervalUnit",{enumerable:!0,get:function(){return rn.IntervalUnit}});Object.defineProperty(Ue,"MetadataVersion",{enumerable:!0,get:function(){return rn.MetadataVersion}});var ZS=po();Object.defineProperty(Ue,"MessageHeader",{enumerable:!0,get:function(){return ZS.MessageHeader}});var XS;(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.Float=3]="Float",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct=13]="Struct",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Dictionary=-1]="Dictionary",r[r.Int8=-2]="Int8",r[r.Int16=-3]="Int16",r[r.Int32=-4]="Int32",r[r.Int64=-5]="Int64",r[r.Uint8=-6]="Uint8",r[r.Uint16=-7]="Uint16",r[r.Uint32=-8]="Uint32",r[r.Uint64=-9]="Uint64",r[r.Float16=-10]="Float16",r[r.Float32=-11]="Float32",r[r.Float64=-12]="Float64",r[r.DateDay=-13]="DateDay",r[r.DateMillisecond=-14]="DateMillisecond",r[r.TimestampSecond=-15]="TimestampSecond",r[r.TimestampMillisecond=-16]="TimestampMillisecond",r[r.TimestampMicrosecond=-17]="TimestampMicrosecond",r[r.TimestampNanosecond=-18]="TimestampNanosecond",r[r.TimeSecond=-19]="TimeSecond",r[r.TimeMillisecond=-20]="TimeMillisecond",r[r.TimeMicrosecond=-21]="TimeMicrosecond",r[r.TimeNanosecond=-22]="TimeNanosecond",r[r.DenseUnion=-23]="DenseUnion",r[r.SparseUnion=-24]="SparseUnion",r[r.IntervalDayTime=-25]="IntervalDayTime",r[r.IntervalYearMonth=-26]="IntervalYearMonth"})(XS=Ue.Type||(Ue.Type={}));var eO;(function(r){r[r.OFFSET=0]="OFFSET",r[r.DATA=1]="DATA",r[r.VALIDITY=2]="VALIDITY",r[r.TYPE=3]="TYPE"})(eO=Ue.BufferType||(Ue.BufferType={}))});var sr=E(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.popcnt_uint32=ze.popcnt_array=ze.popcnt_bit_range=ze.BitIterator=ze.packBools=ze.truncateBitmap=ze.setBool=ze.getBit=ze.getBool=void 0;function Ly(r,e,t,i){return(t&1<<i)!=0}ze.getBool=Ly;function xy(r,e,t,i){return(t&1<<i)>>i}ze.getBit=xy;function tO(r,e,t){return t?!!(r[e>>3]|=1<<e%8)||!0:!(r[e>>3]&=~(1<<e%8))&&!1}ze.setBool=tO;function rO(r,e,t){let i=t.byteLength+7&~7;if(r>0||t.byteLength<i){let n=new Uint8Array(i);return n.set(r%8==0?t.subarray(r>>3):qy(new yo(t,r,e,null,Ly)).subarray(0,i)),n}return t}ze.truncateBitmap=rO;function qy(r){let e=[],t=0,i=0,n=0;for(let c of r)c&&(n|=1<<i),++i==8&&(e[t++]=n,n=i=0);(t===0||i>0)&&(e[t++]=n);let s=new Uint8Array(e.length+7&~7);return s.set(e),s}ze.packBools=qy;var yo=class{constructor(e,t,i,n,s){this.bytes=e,this.length=i,this.context=n,this.get=s,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}};ze.BitIterator=yo;function Nu(r,e,t){if(t-e<=0)return 0;if(t-e<8){let s=0;for(let c of new yo(r,e,t-e,r,xy))s+=c;return s}let i=t>>3<<3,n=e+(e%8==0?0:8-e%8);return Nu(r,e,n)+Nu(r,i,t)+zy(r,n>>3,i-n>>3)}ze.popcnt_bit_range=Nu;function zy(r,e,t){let i=0,n=e|0,s=new DataView(r.buffer,r.byteOffset,r.byteLength),c=t===void 0?r.byteLength:n+t;for(;c-n>=4;)i+=mo(s.getUint32(n)),n+=4;for(;c-n>=2;)i+=mo(s.getUint16(n)),n+=2;for(;c-n>=1;)i+=mo(s.getUint8(n)),n+=1;return i}ze.popcnt_array=zy;function mo(r){let e=r|0;return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}ze.popcnt_uint32=mo});var ve=E(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.strideForType=k.Dictionary=k.Map_=k.FixedSizeList=k.FixedSizeBinary=k.SparseUnion=k.DenseUnion=k.Union=k.Struct=k.List=k.IntervalYearMonth=k.IntervalDayTime=k.Interval=k.TimestampNanosecond=k.TimestampMicrosecond=k.TimestampMillisecond=k.TimestampSecond=k.Timestamp=k.TimeNanosecond=k.TimeMicrosecond=k.TimeMillisecond=k.TimeSecond=k.Time=k.DateMillisecond=k.DateDay=k.Date_=k.Decimal=k.Bool=k.Utf8=k.Binary=k.Float64=k.Float32=k.Float16=k.Float=k.Uint64=k.Uint32=k.Uint16=k.Uint8=k.Int64=k.Int32=k.Int16=k.Int8=k.Int=k.Null=k.DataType=void 0;var x=Se(),Me=class{static isNull(e){return e&&e.typeId===x.Type.Null}static isInt(e){return e&&e.typeId===x.Type.Int}static isFloat(e){return e&&e.typeId===x.Type.Float}static isBinary(e){return e&&e.typeId===x.Type.Binary}static isUtf8(e){return e&&e.typeId===x.Type.Utf8}static isBool(e){return e&&e.typeId===x.Type.Bool}static isDecimal(e){return e&&e.typeId===x.Type.Decimal}static isDate(e){return e&&e.typeId===x.Type.Date}static isTime(e){return e&&e.typeId===x.Type.Time}static isTimestamp(e){return e&&e.typeId===x.Type.Timestamp}static isInterval(e){return e&&e.typeId===x.Type.Interval}static isList(e){return e&&e.typeId===x.Type.List}static isStruct(e){return e&&e.typeId===x.Type.Struct}static isUnion(e){return e&&e.typeId===x.Type.Union}static isFixedSizeBinary(e){return e&&e.typeId===x.Type.FixedSizeBinary}static isFixedSizeList(e){return e&&e.typeId===x.Type.FixedSizeList}static isMap(e){return e&&e.typeId===x.Type.Map}static isDictionary(e){return e&&e.typeId===x.Type.Dictionary}get typeId(){return x.Type.NONE}};k.DataType=Me;Me[Symbol.toStringTag]=(r=>(r.children=null,r.ArrayType=Array,r[Symbol.toStringTag]="DataType"))(Me.prototype);var _o=class extends Me{toString(){return"Null"}get typeId(){return x.Type.Null}};k.Null=_o;_o[Symbol.toStringTag]=(r=>r[Symbol.toStringTag]="Null")(_o.prototype);var Bt=class extends Me{constructor(e,t){super();this.isSigned=e,this.bitWidth=t}get typeId(){return x.Type.Int}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?Int32Array:Uint32Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};k.Int=Bt;Bt[Symbol.toStringTag]=(r=>(r.isSigned=null,r.bitWidth=null,r[Symbol.toStringTag]="Int"))(Bt.prototype);var Lu=class extends Bt{constructor(){super(!0,8)}};k.Int8=Lu;var xu=class extends Bt{constructor(){super(!0,16)}};k.Int16=xu;var qu=class extends Bt{constructor(){super(!0,32)}};k.Int32=qu;var zu=class extends Bt{constructor(){super(!0,64)}};k.Int64=zu;var Wu=class extends Bt{constructor(){super(!1,8)}};k.Uint8=Wu;var Hu=class extends Bt{constructor(){super(!1,16)}};k.Uint16=Hu;var Yu=class extends Bt{constructor(){super(!1,32)}};k.Uint32=Yu;var Gu=class extends Bt{constructor(){super(!1,64)}};k.Uint64=Gu;Object.defineProperty(Lu.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(xu.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(qu.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(zu.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(Wu.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(Hu.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Yu.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Gu.prototype,"ArrayType",{value:Uint32Array});var Mi=class extends Me{constructor(e){super();this.precision=e}get typeId(){return x.Type.Float}get ArrayType(){switch(this.precision){case x.Precision.HALF:return Uint16Array;case x.Precision.SINGLE:return Float32Array;case x.Precision.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};k.Float=Mi;Mi[Symbol.toStringTag]=(r=>(r.precision=null,r[Symbol.toStringTag]="Float"))(Mi.prototype);var Ku=class extends Mi{constructor(){super(x.Precision.HALF)}};k.Float16=Ku;var $u=class extends Mi{constructor(){super(x.Precision.SINGLE)}};k.Float32=$u;var Ju=class extends Mi{constructor(){super(x.Precision.DOUBLE)}};k.Float64=Ju;Object.defineProperty(Ku.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty($u.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(Ju.prototype,"ArrayType",{value:Float64Array});var bo=class extends Me{constructor(){super()}get typeId(){return x.Type.Binary}toString(){return"Binary"}};k.Binary=bo;bo[Symbol.toStringTag]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Binary"))(bo.prototype);var go=class extends Me{constructor(){super()}get typeId(){return x.Type.Utf8}toString(){return"Utf8"}};k.Utf8=go;go[Symbol.toStringTag]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Utf8"))(go.prototype);var vo=class extends Me{constructor(){super()}get typeId(){return x.Type.Bool}toString(){return"Bool"}};k.Bool=vo;vo[Symbol.toStringTag]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Bool"))(vo.prototype);var jo=class extends Me{constructor(e,t){super();this.scale=e,this.precision=t}get typeId(){return x.Type.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};k.Decimal=jo;jo[Symbol.toStringTag]=(r=>(r.scale=null,r.precision=null,r.ArrayType=Uint32Array,r[Symbol.toStringTag]="Decimal"))(jo.prototype);var nn=class extends Me{constructor(e){super();this.unit=e}get typeId(){return x.Type.Date}toString(){return`Date${(this.unit+1)*32}<${x.DateUnit[this.unit]}>`}};k.Date_=nn;nn[Symbol.toStringTag]=(r=>(r.unit=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Date"))(nn.prototype);var Wy=class extends nn{constructor(){super(x.DateUnit.DAY)}};k.DateDay=Wy;var Hy=class extends nn{constructor(){super(x.DateUnit.MILLISECOND)}};k.DateMillisecond=Hy;var Kr=class extends Me{constructor(e,t){super();this.unit=e,this.bitWidth=t}get typeId(){return x.Type.Time}toString(){return`Time${this.bitWidth}<${x.TimeUnit[this.unit]}>`}};k.Time=Kr;Kr[Symbol.toStringTag]=(r=>(r.unit=null,r.bitWidth=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Time"))(Kr.prototype);var Yy=class extends Kr{constructor(){super(x.TimeUnit.SECOND,32)}};k.TimeSecond=Yy;var Gy=class extends Kr{constructor(){super(x.TimeUnit.MILLISECOND,32)}};k.TimeMillisecond=Gy;var Ky=class extends Kr{constructor(){super(x.TimeUnit.MICROSECOND,64)}};k.TimeMicrosecond=Ky;var $y=class extends Kr{constructor(){super(x.TimeUnit.NANOSECOND,64)}};k.TimeNanosecond=$y;var $r=class extends Me{constructor(e,t){super();this.unit=e,this.timezone=t}get typeId(){return x.Type.Timestamp}toString(){return`Timestamp<${x.TimeUnit[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};k.Timestamp=$r;$r[Symbol.toStringTag]=(r=>(r.unit=null,r.timezone=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Timestamp"))($r.prototype);var Jy=class extends $r{constructor(e){super(x.TimeUnit.SECOND,e)}};k.TimestampSecond=Jy;var Qy=class extends $r{constructor(e){super(x.TimeUnit.MILLISECOND,e)}};k.TimestampMillisecond=Qy;var Zy=class extends $r{constructor(e){super(x.TimeUnit.MICROSECOND,e)}};k.TimestampMicrosecond=Zy;var Xy=class extends $r{constructor(e){super(x.TimeUnit.NANOSECOND,e)}};k.TimestampNanosecond=Xy;var sn=class extends Me{constructor(e){super();this.unit=e}get typeId(){return x.Type.Interval}toString(){return`Interval<${x.IntervalUnit[this.unit]}>`}};k.Interval=sn;sn[Symbol.toStringTag]=(r=>(r.unit=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Interval"))(sn.prototype);var em=class extends sn{constructor(){super(x.IntervalUnit.DAY_TIME)}};k.IntervalDayTime=em;var tm=class extends sn{constructor(){super(x.IntervalUnit.YEAR_MONTH)}};k.IntervalYearMonth=tm;var wo=class extends Me{constructor(e){super();this.children=[e]}get typeId(){return x.Type.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};k.List=wo;wo[Symbol.toStringTag]=(r=>(r.children=null,r[Symbol.toStringTag]="List"))(wo.prototype);var To=class extends Me{constructor(e){super();this.children=e}get typeId(){return x.Type.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};k.Struct=To;To[Symbol.toStringTag]=(r=>(r.children=null,r[Symbol.toStringTag]="Struct"))(To.prototype);var on=class extends Me{constructor(e,t,i){super();this.mode=e,this.children=i,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((n,s,c)=>(n[s]=c)&&n||n,Object.create(null))}get typeId(){return x.Type.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}};k.Union=on;on[Symbol.toStringTag]=(r=>(r.mode=null,r.typeIds=null,r.children=null,r.typeIdToChildIndex=null,r.ArrayType=Int8Array,r[Symbol.toStringTag]="Union"))(on.prototype);var rm=class extends on{constructor(e,t){super(x.UnionMode.Dense,e,t)}};k.DenseUnion=rm;var im=class extends on{constructor(e,t){super(x.UnionMode.Sparse,e,t)}};k.SparseUnion=im;var Io=class extends Me{constructor(e){super();this.byteWidth=e}get typeId(){return x.Type.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};k.FixedSizeBinary=Io;Io[Symbol.toStringTag]=(r=>(r.byteWidth=null,r.ArrayType=Uint8Array,r[Symbol.toStringTag]="FixedSizeBinary"))(Io.prototype);var Bo=class extends Me{constructor(e,t){super();this.listSize=e,this.children=[t]}get typeId(){return x.Type.FixedSizeList}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}>`}};k.FixedSizeList=Bo;Bo[Symbol.toStringTag]=(r=>(r.children=null,r.listSize=null,r[Symbol.toStringTag]="FixedSizeList"))(Bo.prototype);var So=class extends Me{constructor(e,t=!1){super();this.children=[e],this.keysSorted=t}get typeId(){return x.Type.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};k.Map_=So;So[Symbol.toStringTag]=(r=>(r.children=null,r.keysSorted=null,r[Symbol.toStringTag]="Map_"))(So.prototype);var iO=(r=>()=>++r)(-1),Oo=class extends Me{constructor(e,t,i,n){super();this.indices=t,this.dictionary=e,this.isOrdered=n||!1,this.id=i==null?iO():typeof i=="number"?i:i.low}get typeId(){return x.Type.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};k.Dictionary=Oo;Oo[Symbol.toStringTag]=(r=>(r.id=null,r.indices=null,r.isOrdered=null,r.dictionary=null,r[Symbol.toStringTag]="Dictionary"))(Oo.prototype);function nO(r){let e=r;switch(r.typeId){case x.Type.Decimal:return 4;case x.Type.Timestamp:return 2;case x.Type.Date:return 1+e.unit;case x.Type.Interval:return 1+e.unit;case x.Type.Int:return 1+ +(e.bitWidth>32);case x.Type.Time:return 1+ +(e.bitWidth>32);case x.Type.FixedSizeList:return e.listSize;case x.Type.FixedSizeBinary:return e.byteWidth;default:return 1}}k.strideForType=nO});var Yt=E(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.Data=ki.kUnknownNullCount=void 0;var sO=sr(),oO=sr(),z=Se(),aO=ve(),ye=Ge();ki.kUnknownNullCount=-1;var re=class{constructor(e,t,i,n,s,c,v){this.type=e,this.dictionary=v,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(i||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1)),this.childData=(c||[]).map(S=>S instanceof re?S:S.data);let B;s instanceof re?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=aO.strideForType(e),s&&((B=s[0])&&(this.valueOffsets=B),(B=s[1])&&(this.values=B),(B=s[2])&&(this.nullBitmap=B),(B=s[3])&&(this.typeIds=B)))}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0,{valueOffsets:t,values:i,nullBitmap:n,typeIds:s}=this;return t&&(e+=t.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),s&&(e+=s.byteLength),this.childData.reduce((c,v)=>c+v.byteLength,e)}get nullCount(){let e=this._nullCount,t;return e<=ki.kUnknownNullCount&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-oO.popcnt_bit_range(t,this.offset,this.offset+this.length)),e}clone(e,t=this.offset,i=this.length,n=this._nullCount,s=this,c=this.childData){return new re(e,t,i,n,s,c,this.dictionary)}slice(e,t){let{stride:i,typeId:n,childData:s}=this,c=+(this._nullCount===0)-1,v=n===16?i:1,B=this._sliceBuffers(e,t,i,n);return this.clone(this.type,this.offset+e,t,c,B,!s.length||this.valueOffsets?s:this._sliceChildren(s,v*e,v*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===z.Type.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:i}=this,n=new Uint8Array((e+63&~63)>>3).fill(255,0,t>>3);n[t>>3]=(1<<t-(t&~7))-1,i>0&&n.set(sO.truncateBitmap(this.offset,t,this.nullBitmap),0);let s=this.buffers;return s[z.BufferType.VALIDITY]=n,this.clone(this.type,0,e,i+(e-t),s)}_sliceBuffers(e,t,i,n){let s,{buffers:c}=this;return(s=c[z.BufferType.TYPE])&&(c[z.BufferType.TYPE]=s.subarray(e,e+t)),(s=c[z.BufferType.OFFSET])&&(c[z.BufferType.OFFSET]=s.subarray(e,e+t+1))||(s=c[z.BufferType.DATA])&&(c[z.BufferType.DATA]=n===6?s:s.subarray(i*e,i*(e+t))),c}_sliceChildren(e,t,i){return e.map(n=>n.slice(t,i))}static new(e,t,i,n,s,c,v){switch(s instanceof re?s=s.buffers:s||(s=[]),e.typeId){case z.Type.Null:return re.Null(e,t,i);case z.Type.Int:return re.Int(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Dictionary:return re.Dictionary(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[],v);case z.Type.Float:return re.Float(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Bool:return re.Bool(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Decimal:return re.Decimal(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Date:return re.Date(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Time:return re.Time(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Timestamp:return re.Timestamp(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Interval:return re.Interval(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.FixedSizeBinary:return re.FixedSizeBinary(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Binary:return re.Binary(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.OFFSET]||[],s[z.BufferType.DATA]||[]);case z.Type.Utf8:return re.Utf8(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.OFFSET]||[],s[z.BufferType.DATA]||[]);case z.Type.List:return re.List(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.OFFSET]||[],(c||[])[0]);case z.Type.FixedSizeList:return re.FixedSizeList(e,t,i,n||0,s[z.BufferType.VALIDITY],(c||[])[0]);case z.Type.Struct:return re.Struct(e,t,i,n||0,s[z.BufferType.VALIDITY],c||[]);case z.Type.Map:return re.Map(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.OFFSET]||[],(c||[])[0]);case z.Type.Union:return re.Union(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.TYPE]||[],s[z.BufferType.OFFSET]||c,c)}throw new Error(`Unrecognized typeId ${e.typeId}`)}static Null(e,t,i){return new re(e,t,i,0)}static Int(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Dictionary(e,t,i,n,s,c,v){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.indices.ArrayType,c),ye.toUint8Array(s)],[],v)}static Float(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Bool(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Decimal(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Date(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Time(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Timestamp(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Interval(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static FixedSizeBinary(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Binary(e,t,i,n,s,c,v){return new re(e,t,i,n,[ye.toInt32Array(c),ye.toUint8Array(v),ye.toUint8Array(s)])}static Utf8(e,t,i,n,s,c,v){return new re(e,t,i,n,[ye.toInt32Array(c),ye.toUint8Array(v),ye.toUint8Array(s)])}static List(e,t,i,n,s,c,v){return new re(e,t,i,n,[ye.toInt32Array(c),void 0,ye.toUint8Array(s)],v?[v]:[])}static FixedSizeList(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,void 0,ye.toUint8Array(s)],c?[c]:[])}static Struct(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,void 0,ye.toUint8Array(s)],c)}static Map(e,t,i,n,s,c,v){return new re(e,t,i,n,[ye.toInt32Array(c),void 0,ye.toUint8Array(s)],v?[v]:[])}static Union(e,t,i,n,s,c,v,B){let S=[void 0,void 0,ye.toUint8Array(s),ye.toArrayBufferView(e.ArrayType,c)];return e.mode===z.UnionMode.Sparse?new re(e,t,i,n,S,v):(S[z.BufferType.OFFSET]=ye.toInt32Array(v),new re(e,t,i,n,S,B))}};ki.Data=re;re.prototype.childData=Object.freeze([])});var Qu=E(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.valueToString=void 0;var uO=void 0;function cO(r){if(r===null)return"null";if(r===uO)return"undefined";switch(typeof r){case"number":return`${r}`;case"bigint":return`${r}`;case"string":return`"${r}"`}return typeof r[Symbol.toPrimitive]=="function"?r[Symbol.toPrimitive]("string"):ArrayBuffer.isView(r)?`[${r}]`:JSON.stringify(r)}Fo.valueToString=cO});var nm=E(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.createIsValidFunction=void 0;var Zu=Qu(),lO=ct();function dO(r){if(!r||r.length<=0)return function(n){return!0};let e="",t=r.filter(i=>i===i);return t.length>0&&(e=`
1
+ var duckdb=(()=>{var vS=Object.create;var ro=Object.defineProperty;var jS=Object.getOwnPropertyDescriptor;var wS=Object.getOwnPropertyNames;var TS=Object.getPrototypeOf,IS=Object.prototype.hasOwnProperty;var Fy=r=>ro(r,"__esModule",{value:!0});var E=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),BS=(r,e)=>{Fy(r);for(var t in e)ro(r,t,{get:e[t],enumerable:!0})},SS=(r,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of wS(e))!IS.call(r,i)&&i!=="default"&&ro(r,i,{get:()=>e[i],enumerable:!(t=jS(e,i))||t.enumerable});return r},Dy=r=>SS(Fy(ro(r!=null?vS(TS(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);var jr=E(Ay=>{var D={};D.Offset;D.Table;D.SIZEOF_SHORT=2;D.SIZEOF_INT=4;D.FILE_IDENTIFIER_LENGTH=4;D.SIZE_PREFIX_LENGTH=4;D.Encoding={UTF8_BYTES:1,UTF16_STRING:2};D.int32=new Int32Array(2);D.float32=new Float32Array(D.int32.buffer);D.float64=new Float64Array(D.int32.buffer);D.isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;D.Long=function(r,e){this.low=r|0,this.high=e|0};D.Long.create=function(r,e){return r==0&&e==0?D.Long.ZERO:new D.Long(r,e)};D.Long.prototype.toFloat64=function(){return(this.low>>>0)+this.high*4294967296};D.Long.prototype.equals=function(r){return this.low==r.low&&this.high==r.high};D.Long.ZERO=new D.Long(0,0);D.Builder=function(r){if(r)var e=r;else var e=1024;this.bb=D.ByteBuffer.allocate(e),this.space=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};D.Builder.prototype.clear=function(){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};D.Builder.prototype.forceDefaults=function(r){this.force_defaults=r};D.Builder.prototype.dataBuffer=function(){return this.bb};D.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())};D.Builder.prototype.prep=function(r,e){r>this.minalign&&(this.minalign=r);for(var t=~(this.bb.capacity()-this.space+e)+1&r-1;this.space<t+r+e;){var i=this.bb.capacity();this.bb=D.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(t)};D.Builder.prototype.pad=function(r){for(var e=0;e<r;e++)this.bb.writeInt8(--this.space,0)};D.Builder.prototype.writeInt8=function(r){this.bb.writeInt8(this.space-=1,r)};D.Builder.prototype.writeInt16=function(r){this.bb.writeInt16(this.space-=2,r)};D.Builder.prototype.writeInt32=function(r){this.bb.writeInt32(this.space-=4,r)};D.Builder.prototype.writeInt64=function(r){this.bb.writeInt64(this.space-=8,r)};D.Builder.prototype.writeFloat32=function(r){this.bb.writeFloat32(this.space-=4,r)};D.Builder.prototype.writeFloat64=function(r){this.bb.writeFloat64(this.space-=8,r)};D.Builder.prototype.addInt8=function(r){this.prep(1,0),this.writeInt8(r)};D.Builder.prototype.addInt16=function(r){this.prep(2,0),this.writeInt16(r)};D.Builder.prototype.addInt32=function(r){this.prep(4,0),this.writeInt32(r)};D.Builder.prototype.addInt64=function(r){this.prep(8,0),this.writeInt64(r)};D.Builder.prototype.addFloat32=function(r){this.prep(4,0),this.writeFloat32(r)};D.Builder.prototype.addFloat64=function(r){this.prep(8,0),this.writeFloat64(r)};D.Builder.prototype.addFieldInt8=function(r,e,t){(this.force_defaults||e!=t)&&(this.addInt8(e),this.slot(r))};D.Builder.prototype.addFieldInt16=function(r,e,t){(this.force_defaults||e!=t)&&(this.addInt16(e),this.slot(r))};D.Builder.prototype.addFieldInt32=function(r,e,t){(this.force_defaults||e!=t)&&(this.addInt32(e),this.slot(r))};D.Builder.prototype.addFieldInt64=function(r,e,t){(this.force_defaults||!e.equals(t))&&(this.addInt64(e),this.slot(r))};D.Builder.prototype.addFieldFloat32=function(r,e,t){(this.force_defaults||e!=t)&&(this.addFloat32(e),this.slot(r))};D.Builder.prototype.addFieldFloat64=function(r,e,t){(this.force_defaults||e!=t)&&(this.addFloat64(e),this.slot(r))};D.Builder.prototype.addFieldOffset=function(r,e,t){(this.force_defaults||e!=t)&&(this.addOffset(e),this.slot(r))};D.Builder.prototype.addFieldStruct=function(r,e,t){e!=t&&(this.nested(e),this.slot(r))};D.Builder.prototype.nested=function(r){if(r!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")};D.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")};D.Builder.prototype.slot=function(r){this.vtable[r]=this.offset()};D.Builder.prototype.offset=function(){return this.bb.capacity()-this.space};D.Builder.growByteBuffer=function(r){var e=r.capacity();if(e&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var t=e<<1,i=D.ByteBuffer.allocate(t);return i.setPosition(t-e),i.bytes().set(r.bytes(),t-e),i};D.Builder.prototype.addOffset=function(r){this.prep(D.SIZEOF_INT,0),this.writeInt32(this.offset()-r+D.SIZEOF_INT)};D.Builder.prototype.startObject=function(r){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=r;for(var e=0;e<r;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()};D.Builder.prototype.endObject=function(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);for(var r=this.offset(),e=this.vtable_in_use-1;e>=0&&this.vtable[e]==0;e--);for(var t=e+1;e>=0;e--)this.addInt16(this.vtable[e]!=0?r-this.vtable[e]:0);var i=2;this.addInt16(r-this.object_start);var n=(t+i)*D.SIZEOF_SHORT;this.addInt16(n);var s=0,c=this.space;e:for(e=0;e<this.vtables.length;e++){var v=this.bb.capacity()-this.vtables[e];if(n==this.bb.readInt16(v)){for(var B=D.SIZEOF_SHORT;B<n;B+=D.SIZEOF_SHORT)if(this.bb.readInt16(c+B)!=this.bb.readInt16(v+B))continue e;s=this.vtables[e];break}}return s?(this.space=this.bb.capacity()-r,this.bb.writeInt32(this.space,s-r)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-r,this.offset()-r)),this.isNested=!1,r};D.Builder.prototype.finish=function(r,e,t){var i=t?D.SIZE_PREFIX_LENGTH:0;if(e){var n=e;if(this.prep(this.minalign,D.SIZEOF_INT+D.FILE_IDENTIFIER_LENGTH+i),n.length!=D.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+D.FILE_IDENTIFIER_LENGTH);for(var s=D.FILE_IDENTIFIER_LENGTH-1;s>=0;s--)this.writeInt8(n.charCodeAt(s))}this.prep(this.minalign,D.SIZEOF_INT+i),this.addOffset(r),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)};D.Builder.prototype.finishSizePrefixed=function(r,e){this.finish(r,e,!0)};D.Builder.prototype.requiredField=function(r,e){var t=this.bb.capacity()-r,i=t-this.bb.readInt32(t),n=this.bb.readInt16(i+e)!=0;if(!n)throw new Error("FlatBuffers: field "+e+" must be set")};D.Builder.prototype.startVector=function(r,e,t){this.notNested(),this.vector_num_elems=e,this.prep(D.SIZEOF_INT,r*e),this.prep(t,r*e)};D.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()};D.Builder.prototype.createString=function(r){if(r instanceof Uint8Array)var e=r;else for(var e=[],t=0;t<r.length;){var i,n=r.charCodeAt(t++);if(n<55296||n>=56320)i=n;else{var s=r.charCodeAt(t++);i=(n<<10)+s+(65536-(55296<<10)-56320)}i<128?e.push(i):(i<2048?e.push(i>>6&31|192):(i<65536?e.push(i>>12&15|224):e.push(i>>18&7|240,i>>12&63|128),e.push(i>>6&63|128)),e.push(i&63|128))}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);for(var t=0,c=this.space,v=this.bb.bytes();t<e.length;t++)v[c++]=e[t];return this.endVector()};D.Builder.prototype.createLong=function(r,e){return D.Long.create(r,e)};D.ByteBuffer=function(r){this.bytes_=r,this.position_=0};D.ByteBuffer.allocate=function(r){return new D.ByteBuffer(new Uint8Array(r))};D.ByteBuffer.prototype.clear=function(){this.position_=0};D.ByteBuffer.prototype.bytes=function(){return this.bytes_};D.ByteBuffer.prototype.position=function(){return this.position_};D.ByteBuffer.prototype.setPosition=function(r){this.position_=r};D.ByteBuffer.prototype.capacity=function(){return this.bytes_.length};D.ByteBuffer.prototype.readInt8=function(r){return this.readUint8(r)<<24>>24};D.ByteBuffer.prototype.readUint8=function(r){return this.bytes_[r]};D.ByteBuffer.prototype.readInt16=function(r){return this.readUint16(r)<<16>>16};D.ByteBuffer.prototype.readUint16=function(r){return this.bytes_[r]|this.bytes_[r+1]<<8};D.ByteBuffer.prototype.readInt32=function(r){return this.bytes_[r]|this.bytes_[r+1]<<8|this.bytes_[r+2]<<16|this.bytes_[r+3]<<24};D.ByteBuffer.prototype.readUint32=function(r){return this.readInt32(r)>>>0};D.ByteBuffer.prototype.readInt64=function(r){return new D.Long(this.readInt32(r),this.readInt32(r+4))};D.ByteBuffer.prototype.readUint64=function(r){return new D.Long(this.readUint32(r),this.readUint32(r+4))};D.ByteBuffer.prototype.readFloat32=function(r){return D.int32[0]=this.readInt32(r),D.float32[0]};D.ByteBuffer.prototype.readFloat64=function(r){return D.int32[D.isLittleEndian?0:1]=this.readInt32(r),D.int32[D.isLittleEndian?1:0]=this.readInt32(r+4),D.float64[0]};D.ByteBuffer.prototype.writeInt8=function(r,e){this.bytes_[r]=e};D.ByteBuffer.prototype.writeUint8=function(r,e){this.bytes_[r]=e};D.ByteBuffer.prototype.writeInt16=function(r,e){this.bytes_[r]=e,this.bytes_[r+1]=e>>8};D.ByteBuffer.prototype.writeUint16=function(r,e){this.bytes_[r]=e,this.bytes_[r+1]=e>>8};D.ByteBuffer.prototype.writeInt32=function(r,e){this.bytes_[r]=e,this.bytes_[r+1]=e>>8,this.bytes_[r+2]=e>>16,this.bytes_[r+3]=e>>24};D.ByteBuffer.prototype.writeUint32=function(r,e){this.bytes_[r]=e,this.bytes_[r+1]=e>>8,this.bytes_[r+2]=e>>16,this.bytes_[r+3]=e>>24};D.ByteBuffer.prototype.writeInt64=function(r,e){this.writeInt32(r,e.low),this.writeInt32(r+4,e.high)};D.ByteBuffer.prototype.writeUint64=function(r,e){this.writeUint32(r,e.low),this.writeUint32(r+4,e.high)};D.ByteBuffer.prototype.writeFloat32=function(r,e){D.float32[0]=e,this.writeInt32(r,D.int32[0])};D.ByteBuffer.prototype.writeFloat64=function(r,e){D.float64[0]=e,this.writeInt32(r,D.int32[D.isLittleEndian?0:1]),this.writeInt32(r+4,D.int32[D.isLittleEndian?1:0])};D.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+D.SIZEOF_INT+D.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var r="",e=0;e<D.FILE_IDENTIFIER_LENGTH;e++)r+=String.fromCharCode(this.readInt8(this.position_+D.SIZEOF_INT+e));return r};D.ByteBuffer.prototype.__offset=function(r,e){var t=r-this.readInt32(r);return e<this.readInt16(t)?this.readInt16(t+e):0};D.ByteBuffer.prototype.__union=function(r,e){return r.bb_pos=e+this.readInt32(e),r.bb=this,r};D.ByteBuffer.prototype.__string=function(r,e){r+=this.readInt32(r);var t=this.readInt32(r),i="",n=0;if(r+=D.SIZEOF_INT,e===D.Encoding.UTF8_BYTES)return this.bytes_.subarray(r,r+t);for(;n<t;){var s,c=this.readUint8(r+n++);if(c<192)s=c;else{var v=this.readUint8(r+n++);if(c<224)s=(c&31)<<6|v&63;else{var B=this.readUint8(r+n++);if(c<240)s=(c&15)<<12|(v&63)<<6|B&63;else{var S=this.readUint8(r+n++);s=(c&7)<<18|(v&63)<<12|(B&63)<<6|S&63}}}s<65536?i+=String.fromCharCode(s):(s-=65536,i+=String.fromCharCode((s>>10)+55296,(s&(1<<10)-1)+56320))}return i};D.ByteBuffer.prototype.__indirect=function(r){return r+this.readInt32(r)};D.ByteBuffer.prototype.__vector=function(r){return r+this.readInt32(r)+D.SIZEOF_INT};D.ByteBuffer.prototype.__vector_len=function(r){return this.readInt32(r+this.readInt32(r))};D.ByteBuffer.prototype.__has_identifier=function(r){if(r.length!=D.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+D.FILE_IDENTIFIER_LENGTH);for(var e=0;e<D.FILE_IDENTIFIER_LENGTH;e++)if(r.charCodeAt(e)!=this.readInt8(this.position_+D.SIZEOF_INT+e))return!1;return!0};D.ByteBuffer.prototype.createLong=function(r,e){return D.Long.create(r,e)};Ay.flatbuffers=D});var Ry=E(vu=>{"use strict";function wr(r,e,t){return e<=r&&r<=t}function io(r){if(r===void 0)return{};if(r===Object(r))return r;throw TypeError("Could not convert argument to dictionary")}function OS(r){for(var e=String(r),t=e.length,i=0,n=[];i<t;){var s=e.charCodeAt(i);if(s<55296||s>57343)n.push(s);else if(56320<=s&&s<=57343)n.push(65533);else if(55296<=s&&s<=56319)if(i===t-1)n.push(65533);else{var c=r.charCodeAt(i+1);if(56320<=c&&c<=57343){var v=s&1023,B=c&1023;n.push(65536+(v<<10)+B),i+=1}else n.push(65533)}i+=1}return n}function FS(r){for(var e="",t=0;t<r.length;++t){var i=r[t];i<=65535?e+=String.fromCharCode(i):(i-=65536,e+=String.fromCharCode((i>>10)+55296,(i&1023)+56320))}return e}var no=-1;function bu(r){this.tokens=[].slice.call(r)}bu.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():no},prepend:function(r){if(Array.isArray(r))for(var e=r;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(r)},push:function(r){if(Array.isArray(r))for(var e=r;e.length;)this.tokens.push(e.shift());else this.tokens.push(r)}};var Zi=-1;function gu(r,e){if(r)throw TypeError("Decoder error");return e||65533}var so="utf-8";function oo(r,e){if(!(this instanceof oo))return new oo(r,e);if(r=r!==void 0?String(r).toLowerCase():so,r!==so)throw new Error("Encoding not supported. Only utf-8 is supported");e=io(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}oo.prototype={decode:function(e,t){var i;typeof e=="object"&&e instanceof ArrayBuffer?i=new Uint8Array(e):typeof e=="object"&&"buffer"in e&&e.buffer instanceof ArrayBuffer?i=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):i=new Uint8Array(0),t=io(t),this._streaming||(this._decoder=new DS({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var n=new bu(i),s=[],c;!n.endOfStream()&&(c=this._decoder.handler(n,n.read()),c!==Zi);)c!==null&&(Array.isArray(c)?s.push.apply(s,c):s.push(c));if(!this._streaming){do{if(c=this._decoder.handler(n,n.read()),c===Zi)break;c!==null&&(Array.isArray(c)?s.push.apply(s,c):s.push(c))}while(!n.endOfStream());this._decoder=null}return s.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(s[0]===65279?(this._BOMseen=!0,s.shift()):this._BOMseen=!0),FS(s)}};function ao(r,e){if(!(this instanceof ao))return new ao(r,e);if(r=r!==void 0?String(r).toLowerCase():so,r!==so)throw new Error("Encoding not supported. Only utf-8 is supported");e=io(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}ao.prototype={encode:function(e,t){e=e?String(e):"",t=io(t),this._streaming||(this._encoder=new AS(this._options)),this._streaming=Boolean(t.stream);for(var i=[],n=new bu(OS(e)),s;!n.endOfStream()&&(s=this._encoder.handler(n,n.read()),s!==Zi);)Array.isArray(s)?i.push.apply(i,s):i.push(s);if(!this._streaming){for(;s=this._encoder.handler(n,n.read()),s!==Zi;)Array.isArray(s)?i.push.apply(i,s):i.push(s);this._encoder=null}return new Uint8Array(i)}};function DS(r){var e=r.fatal,t=0,i=0,n=0,s=128,c=191;this.handler=function(v,B){if(B===no&&n!==0)return n=0,gu(e);if(B===no)return Zi;if(n===0){if(wr(B,0,127))return B;if(wr(B,194,223))n=1,t=B-192;else if(wr(B,224,239))B===224&&(s=160),B===237&&(c=159),n=2,t=B-224;else if(wr(B,240,244))B===240&&(s=144),B===244&&(c=143),n=3,t=B-240;else return gu(e);return t=t<<6*n,null}if(!wr(B,s,c))return t=n=i=0,s=128,c=191,v.prepend(B),gu(e);if(s=128,c=191,i+=1,t+=B-128<<6*(n-i),i!==n)return null;var S=t;return t=n=i=0,S}}function AS(r){var e=r.fatal;this.handler=function(t,i){if(i===no)return Zi;if(wr(i,0,127))return i;var n,s;wr(i,128,2047)?(n=1,s=192):wr(i,2048,65535)?(n=2,s=224):wr(i,65536,1114111)&&(n=3,s=240);for(var c=[(i>>6*n)+s];n>0;){var v=i>>6*(n-1);c.push(128|v&63),n-=1}return c}}vu.TextEncoder=ao;vu.TextDecoder=oo});var Ti=E(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.encodeUtf8=Xi.decodeUtf8=void 0;var Ey=Ry(),RS=new(typeof TextDecoder!="undefined"?TextDecoder:Ey.TextDecoder)("utf-8");Xi.decodeUtf8=r=>RS.decode(r);var ES=new(typeof TextEncoder!="undefined"?TextEncoder:Ey.TextEncoder);Xi.encodeUtf8=r=>ES.encode(r)});var en=E(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.AsyncQueue=pt.ReadableInterop=pt.ArrowJSON=pt.ITERATOR_DONE=void 0;var Cy=ns();pt.ITERATOR_DONE=Object.freeze({done:!0,value:void 0});var Uy=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}};pt.ArrowJSON=Uy;var ju=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._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}};pt.ReadableInterop=ju;var My=class extends ju{constructor(){super();this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}async cancel(e){await 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(pt.ITERATOR_DONE);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Cy.default.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Cy.default.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}async throw(e){return await this.abort(e),pt.ITERATOR_DONE}async return(e){return await this.close(),pt.ITERATOR_DONE}async read(e){return(await this.next(e,"read")).value}async peek(e){return(await 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((t,i)=>{this.resolvers.push({resolve:t,reject:i})}):Promise.resolve(pt.ITERATOR_DONE)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error(`${this} is closed`)}};pt.AsyncQueue=My});var ct=E(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.isReadableNodeStream=q.isWritableNodeStream=q.isReadableDOMStream=q.isWritableDOMStream=q.isFetchResponse=q.isFSReadStream=q.isFileHandle=q.isUnderlyingSink=q.isIteratorResult=q.isArrayLike=q.isArrowJSON=q.isAsyncIterable=q.isIterable=q.isObservable=q.isPromise=q.isObject=q.BigUint64ArrayAvailable=q.BigUint64Array=q.BigInt64ArrayAvailable=q.BigInt64Array=q.BigIntAvailable=q.BigInt=void 0;var uo=en(),[CS,US]=(()=>{let r=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw r()}return e.asIntN=()=>{throw r()},e.asUintN=()=>{throw r()},typeof BigInt!="undefined"?[BigInt,!0]:[e,!1]})();q.BigInt=CS;q.BigIntAvailable=US;var[MS,kS]=(()=>{let r=()=>{throw new Error("BigInt64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw r()}static from(){throw r()}constructor(){throw r()}}return typeof BigInt64Array!="undefined"?[BigInt64Array,!0]:[e,!1]})();q.BigInt64Array=MS;q.BigInt64ArrayAvailable=kS;var[VS,PS]=(()=>{let r=()=>{throw new Error("BigUint64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw r()}static from(){throw r()}constructor(){throw r()}}return typeof BigUint64Array!="undefined"?[BigUint64Array,!0]:[e,!1]})();q.BigUint64Array=VS;q.BigUint64ArrayAvailable=PS;var wu=r=>typeof r=="number",ky=r=>typeof r=="boolean",rt=r=>typeof r=="function";q.isObject=r=>r!=null&&Object(r)===r;q.isPromise=r=>q.isObject(r)&&rt(r.then);q.isObservable=r=>q.isObject(r)&&rt(r.subscribe);q.isIterable=r=>q.isObject(r)&&rt(r[Symbol.iterator]);q.isAsyncIterable=r=>q.isObject(r)&&rt(r[Symbol.asyncIterator]);q.isArrowJSON=r=>q.isObject(r)&&q.isObject(r.schema);q.isArrayLike=r=>q.isObject(r)&&wu(r.length);q.isIteratorResult=r=>q.isObject(r)&&"done"in r&&"value"in r;q.isUnderlyingSink=r=>q.isObject(r)&&rt(r.abort)&&rt(r.close)&&rt(r.start)&&rt(r.write);q.isFileHandle=r=>q.isObject(r)&&rt(r.stat)&&wu(r.fd);q.isFSReadStream=r=>q.isReadableNodeStream(r)&&wu(r.bytesRead);q.isFetchResponse=r=>q.isObject(r)&&q.isReadableDOMStream(r.body);q.isWritableDOMStream=r=>q.isObject(r)&&rt(r.abort)&&rt(r.getWriter)&&!(r instanceof uo.ReadableInterop);q.isReadableDOMStream=r=>q.isObject(r)&&rt(r.cancel)&&rt(r.getReader)&&!(r instanceof uo.ReadableInterop);q.isWritableNodeStream=r=>q.isObject(r)&&rt(r.end)&&rt(r.write)&&ky(r.writable)&&!(r instanceof uo.ReadableInterop);q.isReadableNodeStream=r=>q.isObject(r)&&rt(r.read)&&rt(r.pipe)&&ky(r.readable)&&!(r instanceof uo.ReadableInterop)});var Ge=E(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.compareArrayLike=L.rebaseValueOffsets=L.toUint8ClampedArrayAsyncIterator=L.toFloat64ArrayAsyncIterator=L.toFloat32ArrayAsyncIterator=L.toUint32ArrayAsyncIterator=L.toUint16ArrayAsyncIterator=L.toUint8ArrayAsyncIterator=L.toInt32ArrayAsyncIterator=L.toInt16ArrayAsyncIterator=L.toInt8ArrayAsyncIterator=L.toArrayBufferViewAsyncIterator=L.toUint8ClampedArrayIterator=L.toFloat64ArrayIterator=L.toFloat32ArrayIterator=L.toUint32ArrayIterator=L.toUint16ArrayIterator=L.toUint8ArrayIterator=L.toInt32ArrayIterator=L.toInt16ArrayIterator=L.toInt8ArrayIterator=L.toArrayBufferViewIterator=L.toUint8ClampedArray=L.toFloat64Array=L.toFloat32Array=L.toBigUint64Array=L.toUint32Array=L.toUint16Array=L.toUint8Array=L.toBigInt64Array=L.toInt32Array=L.toInt16Array=L.toInt8Array=L.toArrayBufferView=L.joinUint8Arrays=L.memcpy=void 0;var NS=jr(),LS=Ti(),xS=NS.flatbuffers.ByteBuffer,Ii=ct(),Tu=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:ArrayBuffer;function qS(r){let e=r[0]?[r[0]]:[],t,i,n,s;for(let c,v,B=0,S=0,C=r.length;++B<C;){if(c=e[S],v=r[B],!c||!v||c.buffer!==v.buffer||v.byteOffset<c.byteOffset){v&&(e[++S]=v);continue}if({byteOffset:t,byteLength:n}=c,{byteOffset:i,byteLength:s}=v,t+n<i||i+s<t){v&&(e[++S]=v);continue}e[S]=new Uint8Array(c.buffer,t,i-t+s)}return e}function Iu(r,e,t=0,i=e.byteLength){let n=r.byteLength,s=new Uint8Array(r.buffer,r.byteOffset,n),c=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,n));return s.set(c,t),r}L.memcpy=Iu;function zS(r,e){let t=qS(r),i=t.reduce((C,K)=>C+K.byteLength,0),n,s,c,v=0,B=-1,S=Math.min(e||1/0,i);for(let C=t.length;++B<C;){if(n=t[B],s=n.subarray(0,Math.min(n.length,S-v)),S<=v+s.length){s.length<n.length?t[B]=n.subarray(s.length):s.length===n.length&&B++,c?Iu(c,s,v):c=s;break}Iu(c||(c=new Uint8Array(S)),s,v),v+=s.length}return[c||new Uint8Array(0),t.slice(B),i-(c?c.byteLength:0)]}L.joinUint8Arrays=zS;function ft(r,e){let t=Ii.isIteratorResult(e)?e.value:e;return t instanceof r?r===Uint8Array?new r(t.buffer,t.byteOffset,t.byteLength):t:t?(typeof t=="string"&&(t=LS.encodeUtf8(t)),t instanceof ArrayBuffer?new r(t):t instanceof Tu?new r(t):t instanceof xS?ft(r,t.bytes()):ArrayBuffer.isView(t)?t.byteLength<=0?new r(0):new r(t.buffer,t.byteOffset,t.byteLength/r.BYTES_PER_ELEMENT):r.from(t)):new r(0)}L.toArrayBufferView=ft;L.toInt8Array=r=>ft(Int8Array,r);L.toInt16Array=r=>ft(Int16Array,r);L.toInt32Array=r=>ft(Int32Array,r);L.toBigInt64Array=r=>ft(Ii.BigInt64Array,r);L.toUint8Array=r=>ft(Uint8Array,r);L.toUint16Array=r=>ft(Uint16Array,r);L.toUint32Array=r=>ft(Uint32Array,r);L.toBigUint64Array=r=>ft(Ii.BigUint64Array,r);L.toFloat32Array=r=>ft(Float32Array,r);L.toFloat64Array=r=>ft(Float64Array,r);L.toUint8ClampedArray=r=>ft(Uint8ClampedArray,r);var Bu=r=>(r.next(),r);function*er(r,e){let t=function*(n){yield n},i=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Tu?t(e):Ii.isIterable(e)?e:t(e);return yield*Bu(function*(n){let s=null;do s=n.next(yield ft(r,s));while(!s.done)}(i[Symbol.iterator]())),new r}L.toArrayBufferViewIterator=er;L.toInt8ArrayIterator=r=>er(Int8Array,r);L.toInt16ArrayIterator=r=>er(Int16Array,r);L.toInt32ArrayIterator=r=>er(Int32Array,r);L.toUint8ArrayIterator=r=>er(Uint8Array,r);L.toUint16ArrayIterator=r=>er(Uint16Array,r);L.toUint32ArrayIterator=r=>er(Uint32Array,r);L.toFloat32ArrayIterator=r=>er(Float32Array,r);L.toFloat64ArrayIterator=r=>er(Float64Array,r);L.toUint8ClampedArrayIterator=r=>er(Uint8ClampedArray,r);async function*zt(r,e){if(Ii.isPromise(e))return yield*zt(r,await e);let t=async function*(s){yield await s},i=async function*(s){yield*Bu(function*(c){let v=null;do v=c.next(yield v&&v.value);while(!v.done)}(s[Symbol.iterator]()))},n=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Tu?t(e):Ii.isIterable(e)?i(e):Ii.isAsyncIterable(e)?e:t(e);return yield*Bu(async function*(s){let c=null;do c=await s.next(yield ft(r,c));while(!c.done)}(n[Symbol.asyncIterator]())),new r}L.toArrayBufferViewAsyncIterator=zt;L.toInt8ArrayAsyncIterator=r=>zt(Int8Array,r);L.toInt16ArrayAsyncIterator=r=>zt(Int16Array,r);L.toInt32ArrayAsyncIterator=r=>zt(Int32Array,r);L.toUint8ArrayAsyncIterator=r=>zt(Uint8Array,r);L.toUint16ArrayAsyncIterator=r=>zt(Uint16Array,r);L.toUint32ArrayAsyncIterator=r=>zt(Uint32Array,r);L.toFloat32ArrayAsyncIterator=r=>zt(Float32Array,r);L.toFloat64ArrayAsyncIterator=r=>zt(Float64Array,r);L.toUint8ClampedArrayAsyncIterator=r=>zt(Uint8ClampedArray,r);function WS(r,e,t){if(r!==0){t=t.slice(0,e+1);for(let i=-1;++i<=e;)t[i]+=r}return t}L.rebaseValueOffsets=WS;function HS(r,e){let t=0,i=r.length;if(i!==e.length)return!1;if(i>0)do if(r[t]!==e[t])return!1;while(++t<i);return!0}L.compareArrayLike=HS});var ns=E(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var ht=Ge();Ou.default={fromIterable(r){return co(YS(r))},fromAsyncIterable(r){return co(GS(r))},fromDOMStream(r){return co(KS(r))},fromNodeStream(r){return co($S(r))},toDOMStream(r,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(r,e){throw new Error('"toNodeStream" not available in this environment')}};var co=r=>(r.next(),r);function*YS(r){let e,t=!1,i=[],n,s,c,v=0;function B(){return s==="peek"?ht.joinUint8Arrays(i,c)[0]:([n,i,v]=ht.joinUint8Arrays(i,c),n)}({cmd:s,size:c}=yield null);let S=ht.toUint8ArrayIterator(r)[Symbol.iterator]();try{do if({done:e,value:n}=isNaN(c-v)?S.next(void 0):S.next(c-v),!e&&n.byteLength>0&&(i.push(n),v+=n.byteLength),e||c<=v)do({cmd:s,size:c}=yield B());while(c<v);while(!e)}catch(C){(t=!0)&&typeof S.throw=="function"&&S.throw(C)}finally{t===!1&&typeof S.return=="function"&&S.return(null)}return null}async function*GS(r){let e,t=!1,i=[],n,s,c,v=0;function B(){return s==="peek"?ht.joinUint8Arrays(i,c)[0]:([n,i,v]=ht.joinUint8Arrays(i,c),n)}({cmd:s,size:c}=yield null);let S=ht.toUint8ArrayAsyncIterator(r)[Symbol.asyncIterator]();try{do if({done:e,value:n}=isNaN(c-v)?await S.next(void 0):await S.next(c-v),!e&&n.byteLength>0&&(i.push(n),v+=n.byteLength),e||c<=v)do({cmd:s,size:c}=yield B());while(c<v);while(!e)}catch(C){(t=!0)&&typeof S.throw=="function"&&await S.throw(C)}finally{t===!1&&typeof S.return=="function"&&await S.return(new Uint8Array(0))}return null}async function*KS(r){let e=!1,t=!1,i=[],n,s,c,v=0;function B(){return s==="peek"?ht.joinUint8Arrays(i,c)[0]:([n,i,v]=ht.joinUint8Arrays(i,c),n)}({cmd:s,size:c}=yield null);let S=new Vy(r);try{do if({done:e,value:n}=isNaN(c-v)?await S.read(void 0):await S.read(c-v),!e&&n.byteLength>0&&(i.push(ht.toUint8Array(n)),v+=n.byteLength),e||c<=v)do({cmd:s,size:c}=yield B());while(c<v);while(!e)}catch(C){(t=!0)&&await S.cancel(C)}finally{t===!1?await S.cancel():r.locked&&S.releaseLock()}return null}var Vy=class{constructor(e){this.source=e,this.byobReader=null,this.defaultReader=null;try{this.supportsBYOB=!!(this.reader=this.getBYOBReader())}catch{this.supportsBYOB=!(this.reader=this.getDefaultReader())}}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}async cancel(e){let{reader:t,source:i}=this;t&&await t.cancel(e).catch(()=>{}),i&&i.locked&&this.releaseLock()}async read(e){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};let t=!this.supportsBYOB||typeof e!="number"?await this.getDefaultReader().read():await this.readFromBYOBReader(e);return!t.done&&(t.value=ht.toUint8Array(t)),t}getDefaultReader(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch(()=>{})),this.reader=this.defaultReader}getBYOBReader(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch(()=>{})),this.reader=this.byobReader}async readFromBYOBReader(e){return await Py(this.getBYOBReader(),new ArrayBuffer(e),0,e)}};async function Py(r,e,t,i){if(t>=i)return{done:!1,value:new Uint8Array(e,0,i)};let{done:n,value:s}=await r.read(new Uint8Array(e,t,i-t));return(t+=s.byteLength)<i&&!n?await Py(r,s.buffer,t,i):{done:n,value:new Uint8Array(s.buffer,0,t)}}var Su=(r,e)=>{let t=n=>i([e,n]),i;return[e,t,new Promise(n=>(i=n)&&r.once(e,t))]};async function*$S(r){let e=[],t="error",i=!1,n=null,s,c,v=0,B=[],S;function C(){return s==="peek"?ht.joinUint8Arrays(B,c)[0]:([S,B,v]=ht.joinUint8Arrays(B,c),S)}if({cmd:s,size:c}=yield null,r.isTTY)return yield new Uint8Array(0),null;try{e[0]=Su(r,"end"),e[1]=Su(r,"error");do{if(e[2]=Su(r,"readable"),[t,n]=await Promise.race(e.map(be=>be[2])),t==="error")break;if((i=t==="end")||(isFinite(c-v)?(S=ht.toUint8Array(r.read(c-v)),S.byteLength<c-v&&(S=ht.toUint8Array(r.read(void 0)))):S=ht.toUint8Array(r.read(void 0)),S.byteLength>0&&(B.push(S),v+=S.byteLength)),i||c<=v)do({cmd:s,size:c}=yield C());while(c<v)}while(!i)}finally{await K(e,t==="error"?n:null)}return null;function K(be,pe){return S=B=null,new Promise((Zt,kr)=>{for(let[ue,Gi]of be)r.off(ue,Gi);try{let ue=r.destroy;ue&&ue.call(r,pe),pe=void 0}catch(ue){pe=ue||pe}finally{pe!=null?kr(pe):Zt()}})}}});var Le=E(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.Vector=tn.AbstractVector=void 0;var lo=class{};tn.AbstractVector=lo;tn.Vector=lo;lo.prototype.data=null});var Gr=E(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.Schema=P.Buffer=P.Field=P.DictionaryEncoding=P.KeyValue=P.Duration=P.Interval=P.Timestamp=P.Time=P.Date=P.Decimal=P.Bool=P.FixedSizeBinary=P.LargeBinary=P.LargeUtf8=P.Binary=P.Utf8=P.FloatingPoint=P.Int=P.Union=P.Map=P.FixedSizeList=P.LargeList=P.List=P.Struct_=P.Null=P.Endianness=P.DictionaryKind=P.Type=P.IntervalUnit=P.TimeUnit=P.DateUnit=P.Precision=P.UnionMode=P.Feature=P.MetadataVersion=void 0;var Fe=jr(),JS;(function(r){r[r.V1=0]="V1",r[r.V2=1]="V2",r[r.V3=2]="V3",r[r.V4=3]="V4",r[r.V5=4]="V5"})(JS=P.MetadataVersion||(P.MetadataVersion={}));var QS;(function(r){r[r.UNUSED=0]="UNUSED",r[r.DICTIONARY_REPLACEMENT=1]="DICTIONARY_REPLACEMENT",r[r.COMPRESSED_BODY=2]="COMPRESSED_BODY"})(QS=P.Feature||(P.Feature={}));var Fu;(function(r){r[r.Sparse=0]="Sparse",r[r.Dense=1]="Dense"})(Fu=P.UnionMode||(P.UnionMode={}));var Du;(function(r){r[r.HALF=0]="HALF",r[r.SINGLE=1]="SINGLE",r[r.DOUBLE=2]="DOUBLE"})(Du=P.Precision||(P.Precision={}));var Au;(function(r){r[r.DAY=0]="DAY",r[r.MILLISECOND=1]="MILLISECOND"})(Au=P.DateUnit||(P.DateUnit={}));var Bi;(function(r){r[r.SECOND=0]="SECOND",r[r.MILLISECOND=1]="MILLISECOND",r[r.MICROSECOND=2]="MICROSECOND",r[r.NANOSECOND=3]="NANOSECOND"})(Bi=P.TimeUnit||(P.TimeUnit={}));var Ru;(function(r){r[r.YEAR_MONTH=0]="YEAR_MONTH",r[r.DAY_TIME=1]="DAY_TIME"})(Ru=P.IntervalUnit||(P.IntervalUnit={}));var Eu;(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.FloatingPoint=3]="FloatingPoint",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct_=13]="Struct_",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Duration=18]="Duration",r[r.LargeBinary=19]="LargeBinary",r[r.LargeUtf8=20]="LargeUtf8",r[r.LargeList=21]="LargeList"})(Eu=P.Type||(P.Type={}));var Cu;(function(r){r[r.DenseArray=0]="DenseArray"})(Cu=P.DictionaryKind||(P.DictionaryKind={}));var Uu;(function(r){r[r.Little=0]="Little",r[r.Big=1]="Big"})(Uu=P.Endianness||(P.Endianness={}));var Si=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new Si).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Si).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return Si.startNull(e),Si.endNull(e)}};P.Null=Si;var Oi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new Oi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Oi).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Oi.startStruct_(e),Oi.endStruct_(e)}};P.Struct_=Oi;var Fi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new Fi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Fi).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Fi.startList(e),Fi.endList(e)}};P.List=Fi;var Di=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeList(e,t){return(t||new Di).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Di).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(e){e.startObject(0)}static endLargeList(e){return e.endObject()}static createLargeList(e){return Di.startLargeList(e),Di.endLargeList(e)}};P.LargeList=Di;var Lr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new Lr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Lr).__init(e.readInt32(e.position())+e.position(),e)}listSize(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return Lr.startFixedSizeList(e),Lr.addListSize(e,t),Lr.endFixedSizeList(e)}};P.FixedSizeList=Lr;var xr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new xr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new xr).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){let e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return xr.startMap(e),xr.addKeysSorted(e,t),xr.endMap(e)}};P.Map=xr;var Tr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new Tr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Tr).__init(e.readInt32(e.position())+e.position(),e)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Fu.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,Fu.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let i=t.length-1;i>=0;i--)e.addInt32(t[i]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,i){return Tr.startUnion(e),Tr.addMode(e,t),Tr.addTypeIds(e,i),Tr.endUnion(e)}};P.Union=Tr;var tr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(e,t){return(t||new tr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new tr).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(e,t,i){return tr.startInt(e),tr.addBitWidth(e,t),tr.addIsSigned(e,i),tr.endInt(e)}};P.Int=tr;var qr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new qr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new qr).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Du.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,Du.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return qr.startFloatingPoint(e),qr.addPrecision(e,t),qr.endFloatingPoint(e)}};P.FloatingPoint=qr;var Ai=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new Ai).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ai).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Ai.startUtf8(e),Ai.endUtf8(e)}};P.Utf8=Ai;var Ri=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new Ri).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ri).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return Ri.startBinary(e),Ri.endBinary(e)}};P.Binary=Ri;var Ei=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeUtf8(e,t){return(t||new Ei).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ei).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return Ei.startLargeUtf8(e),Ei.endLargeUtf8(e)}};P.LargeUtf8=Ei;var Ci=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeBinary(e,t){return(t||new Ci).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ci).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return Ci.startLargeBinary(e),Ci.endLargeBinary(e)}};P.LargeBinary=Ci;var zr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new zr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new zr).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return zr.startFixedSizeBinary(e),zr.addByteWidth(e,t),zr.endFixedSizeBinary(e)}};P.FixedSizeBinary=zr;var Ui=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new Ui).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ui).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return Ui.startBool(e),Ui.endBool(e)}};P.Bool=Ui;var rr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new rr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new rr).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,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(e,t,i,n){return rr.startDecimal(e),rr.addPrecision(e,t),rr.addScale(e,i),rr.addBitWidth(e,n),rr.endDecimal(e)}};P.Decimal=rr;var Wr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new Wr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Wr).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Au.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Au.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return Wr.startDate(e),Wr.addUnit(e,t),Wr.endDate(e)}};P.Date=Wr;var Ir=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new Ir).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ir).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bi.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,Bi.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,i){return Ir.startTime(e),Ir.addUnit(e,t),Ir.addBitWidth(e,i),Ir.endTime(e)}};P.Time=Ir;var Br=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new Br).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Br).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bi.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,Bi.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,i){return Br.startTimestamp(e),Br.addUnit(e,t),Br.addTimezone(e,i),Br.endTimestamp(e)}};P.Timestamp=Br;var Hr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ru.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Ru.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return Hr.startInterval(e),Hr.addUnit(e,t),Hr.endInterval(e)}};P.Interval=Hr;var Yr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDuration(e,t){return(t||new Yr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Yr).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bi.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Bi.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,t){return Yr.startDuration(e),Yr.addUnit(e,t),Yr.endDuration(e)}};P.Duration=Yr;var Wt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(e,t){return(t||new Wt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Wt).__init(e.readInt32(e.position())+e.position(),e)}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(e,t,i){return Wt.startKeyValue(e),Wt.addKey(e,t),Wt.addValue(e,i),Wt.endKeyValue(e)}};P.KeyValue=Wt;var wt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(e,t){return(t||new wt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new wt).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new tr).__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):Cu.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,e.createLong(0,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,Cu.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}static createDictionaryEncoding(e,t,i,n,s){return wt.startDictionaryEncoding(e),wt.addId(e,t),wt.addIndexType(e,i),wt.addIsOrdered(e,n),wt.addDictionaryKind(e,s),wt.endDictionaryEncoding(e)}};P.DictionaryEncoding=wt;var lt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(e,t){return(t||new lt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new lt).__init(e.readInt32(e.position())+e.position(),e)}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}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Eu.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 wt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(e,t){let i=this.bb.__offset(this.bb_pos,14);return i?(t||new lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let i=this.bb.__offset(this.bb_pos,16);return i?(t||new Wt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,Eu.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 i=t.length-1;i>=0;i--)e.addOffset(t[i]);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 i=t.length-1;i>=0;i--)e.addOffset(t[i]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}static createField(e,t,i,n,s,c,v,B){return lt.startField(e),lt.addName(e,t),lt.addNullable(e,i),lt.addTypeType(e,n),lt.addType(e,s),lt.addDictionary(e,c),lt.addChildren(e,v),lt.addCustomMetadata(e,B),lt.endField(e)}};P.Field=lt;var Ny=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 createBuffer(e,t,i){return e.prep(8,16),e.writeInt64(i),e.writeInt64(t),e.offset()}};P.Buffer=Ny;var Ht=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new Ht).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+Fe.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ht).__init(e.readInt32(e.position())+e.position(),e)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Uu.Little}fields(e,t){let i=this.bb.__offset(this.bb_pos,6);return i?(t||new lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let i=this.bb.__offset(this.bb_pos,8);return i?(t||new Wt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):this.bb.createLong(0,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,Uu.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let i=t.length-1;i>=0;i--)e.addOffset(t[i]);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 i=t.length-1;i>=0;i--)e.addOffset(t[i]);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 i=t.length-1;i>=0;i--)e.addInt64(t[i]);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(e,t,i,n,s){return Ht.startSchema(e),Ht.addEndianness(e,t),Ht.addFields(e,i),Ht.addCustomMetadata(e,n),Ht.addFeatures(e,s),Ht.endSchema(e)}};P.Schema=Ht});var po=E(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.Message=xe.DictionaryBatch=xe.RecordBatch=xe.BodyCompression=xe.FieldNode=xe.MessageHeader=xe.BodyCompressionMethod=xe.CompressionType=void 0;var fo=jr(),ho=Gr(),Mu;(function(r){r[r.LZ4_FRAME=0]="LZ4_FRAME",r[r.ZSTD=1]="ZSTD"})(Mu=xe.CompressionType||(xe.CompressionType={}));var ku;(function(r){r[r.BUFFER=0]="BUFFER"})(ku=xe.BodyCompressionMethod||(xe.BodyCompressionMethod={}));var Vu;(function(r){r[r.NONE=0]="NONE",r[r.Schema=1]="Schema",r[r.DictionaryBatch=2]="DictionaryBatch",r[r.RecordBatch=3]="RecordBatch",r[r.Tensor=4]="Tensor",r[r.SparseTensor=5]="SparseTensor"})(Vu=xe.MessageHeader||(xe.MessageHeader={}));var Pu=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 createFieldNode(e,t,i){return e.prep(8,16),e.writeInt64(i),e.writeInt64(t),e.offset()}};xe.FieldNode=Pu;var ir=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new ir).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+fo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new ir).__init(e.readInt32(e.position())+e.position(),e)}codec(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):Mu.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):ku.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,Mu.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,ku.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,i){return ir.startBodyCompression(e),ir.addCodec(e,t),ir.addMethod(e,i),ir.endBodyCompression(e)}};xe.BodyCompression=ir;var Tt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new Tt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+fo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Tt).__init(e.readInt32(e.position())+e.position(),e)}length(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,t){let i=this.bb.__offset(this.bb_pos,6);return i?(t||new Pu).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}nodesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){let i=this.bb.__offset(this.bb_pos,8);return i?(t||new ho.Buffer).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}buffersLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){let t=this.bb.__offset(this.bb_pos,10);return t?(e||new ir).__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,e.createLong(0,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()}static createRecordBatch(e,t,i,n,s){return Tt.startRecordBatch(e),Tt.addLength(e,t),Tt.addNodes(e,i),Tt.addBuffers(e,n),Tt.addCompression(e,s),Tt.endRecordBatch(e)}};xe.RecordBatch=Tt;var nr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new nr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+fo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new nr).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new Tt).__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,e.createLong(0,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()}static createDictionaryBatch(e,t,i,n){return nr.startDictionaryBatch(e),nr.addId(e,t),nr.addData(e,i),nr.addIsDelta(e,n),nr.endDictionaryBatch(e)}};xe.DictionaryBatch=nr;var It=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new It).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+fo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new It).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ho.MetadataVersion.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Vu.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):this.bb.createLong(0,0)}customMetadata(e,t){let i=this.bb.__offset(this.bb_pos,12);return i?(t||new ho.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,ho.MetadataVersion.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,Vu.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,e.createLong(0,0))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let i=t.length-1;i>=0;i--)e.addOffset(t[i]);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(e,t,i,n,s,c){return It.startMessage(e),It.addVersion(e,t),It.addHeaderType(e,i),It.addHeader(e,n),It.addBodyLength(e,s),It.addCustomMetadata(e,c),It.endMessage(e)}};xe.Message=It});var Se=E(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.BufferType=Ue.Type=Ue.MessageHeader=Ue.MetadataVersion=Ue.IntervalUnit=Ue.UnionMode=Ue.Precision=Ue.TimeUnit=Ue.DateUnit=void 0;var rn=Gr();Object.defineProperty(Ue,"DateUnit",{enumerable:!0,get:function(){return rn.DateUnit}});Object.defineProperty(Ue,"TimeUnit",{enumerable:!0,get:function(){return rn.TimeUnit}});Object.defineProperty(Ue,"Precision",{enumerable:!0,get:function(){return rn.Precision}});Object.defineProperty(Ue,"UnionMode",{enumerable:!0,get:function(){return rn.UnionMode}});Object.defineProperty(Ue,"IntervalUnit",{enumerable:!0,get:function(){return rn.IntervalUnit}});Object.defineProperty(Ue,"MetadataVersion",{enumerable:!0,get:function(){return rn.MetadataVersion}});var ZS=po();Object.defineProperty(Ue,"MessageHeader",{enumerable:!0,get:function(){return ZS.MessageHeader}});var XS;(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.Float=3]="Float",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct=13]="Struct",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Dictionary=-1]="Dictionary",r[r.Int8=-2]="Int8",r[r.Int16=-3]="Int16",r[r.Int32=-4]="Int32",r[r.Int64=-5]="Int64",r[r.Uint8=-6]="Uint8",r[r.Uint16=-7]="Uint16",r[r.Uint32=-8]="Uint32",r[r.Uint64=-9]="Uint64",r[r.Float16=-10]="Float16",r[r.Float32=-11]="Float32",r[r.Float64=-12]="Float64",r[r.DateDay=-13]="DateDay",r[r.DateMillisecond=-14]="DateMillisecond",r[r.TimestampSecond=-15]="TimestampSecond",r[r.TimestampMillisecond=-16]="TimestampMillisecond",r[r.TimestampMicrosecond=-17]="TimestampMicrosecond",r[r.TimestampNanosecond=-18]="TimestampNanosecond",r[r.TimeSecond=-19]="TimeSecond",r[r.TimeMillisecond=-20]="TimeMillisecond",r[r.TimeMicrosecond=-21]="TimeMicrosecond",r[r.TimeNanosecond=-22]="TimeNanosecond",r[r.DenseUnion=-23]="DenseUnion",r[r.SparseUnion=-24]="SparseUnion",r[r.IntervalDayTime=-25]="IntervalDayTime",r[r.IntervalYearMonth=-26]="IntervalYearMonth"})(XS=Ue.Type||(Ue.Type={}));var eO;(function(r){r[r.OFFSET=0]="OFFSET",r[r.DATA=1]="DATA",r[r.VALIDITY=2]="VALIDITY",r[r.TYPE=3]="TYPE"})(eO=Ue.BufferType||(Ue.BufferType={}))});var sr=E(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.popcnt_uint32=ze.popcnt_array=ze.popcnt_bit_range=ze.BitIterator=ze.packBools=ze.truncateBitmap=ze.setBool=ze.getBit=ze.getBool=void 0;function Ly(r,e,t,i){return(t&1<<i)!=0}ze.getBool=Ly;function xy(r,e,t,i){return(t&1<<i)>>i}ze.getBit=xy;function tO(r,e,t){return t?!!(r[e>>3]|=1<<e%8)||!0:!(r[e>>3]&=~(1<<e%8))&&!1}ze.setBool=tO;function rO(r,e,t){let i=t.byteLength+7&~7;if(r>0||t.byteLength<i){let n=new Uint8Array(i);return n.set(r%8==0?t.subarray(r>>3):qy(new yo(t,r,e,null,Ly)).subarray(0,i)),n}return t}ze.truncateBitmap=rO;function qy(r){let e=[],t=0,i=0,n=0;for(let c of r)c&&(n|=1<<i),++i==8&&(e[t++]=n,n=i=0);(t===0||i>0)&&(e[t++]=n);let s=new Uint8Array(e.length+7&~7);return s.set(e),s}ze.packBools=qy;var yo=class{constructor(e,t,i,n,s){this.bytes=e,this.length=i,this.context=n,this.get=s,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}};ze.BitIterator=yo;function Nu(r,e,t){if(t-e<=0)return 0;if(t-e<8){let s=0;for(let c of new yo(r,e,t-e,r,xy))s+=c;return s}let i=t>>3<<3,n=e+(e%8==0?0:8-e%8);return Nu(r,e,n)+Nu(r,i,t)+zy(r,n>>3,i-n>>3)}ze.popcnt_bit_range=Nu;function zy(r,e,t){let i=0,n=e|0,s=new DataView(r.buffer,r.byteOffset,r.byteLength),c=t===void 0?r.byteLength:n+t;for(;c-n>=4;)i+=mo(s.getUint32(n)),n+=4;for(;c-n>=2;)i+=mo(s.getUint16(n)),n+=2;for(;c-n>=1;)i+=mo(s.getUint8(n)),n+=1;return i}ze.popcnt_array=zy;function mo(r){let e=r|0;return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}ze.popcnt_uint32=mo});var ve=E(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.strideForType=k.Dictionary=k.Map_=k.FixedSizeList=k.FixedSizeBinary=k.SparseUnion=k.DenseUnion=k.Union=k.Struct=k.List=k.IntervalYearMonth=k.IntervalDayTime=k.Interval=k.TimestampNanosecond=k.TimestampMicrosecond=k.TimestampMillisecond=k.TimestampSecond=k.Timestamp=k.TimeNanosecond=k.TimeMicrosecond=k.TimeMillisecond=k.TimeSecond=k.Time=k.DateMillisecond=k.DateDay=k.Date_=k.Decimal=k.Bool=k.Utf8=k.Binary=k.Float64=k.Float32=k.Float16=k.Float=k.Uint64=k.Uint32=k.Uint16=k.Uint8=k.Int64=k.Int32=k.Int16=k.Int8=k.Int=k.Null=k.DataType=void 0;var x=Se(),Me=class{static isNull(e){return e&&e.typeId===x.Type.Null}static isInt(e){return e&&e.typeId===x.Type.Int}static isFloat(e){return e&&e.typeId===x.Type.Float}static isBinary(e){return e&&e.typeId===x.Type.Binary}static isUtf8(e){return e&&e.typeId===x.Type.Utf8}static isBool(e){return e&&e.typeId===x.Type.Bool}static isDecimal(e){return e&&e.typeId===x.Type.Decimal}static isDate(e){return e&&e.typeId===x.Type.Date}static isTime(e){return e&&e.typeId===x.Type.Time}static isTimestamp(e){return e&&e.typeId===x.Type.Timestamp}static isInterval(e){return e&&e.typeId===x.Type.Interval}static isList(e){return e&&e.typeId===x.Type.List}static isStruct(e){return e&&e.typeId===x.Type.Struct}static isUnion(e){return e&&e.typeId===x.Type.Union}static isFixedSizeBinary(e){return e&&e.typeId===x.Type.FixedSizeBinary}static isFixedSizeList(e){return e&&e.typeId===x.Type.FixedSizeList}static isMap(e){return e&&e.typeId===x.Type.Map}static isDictionary(e){return e&&e.typeId===x.Type.Dictionary}get typeId(){return x.Type.NONE}};k.DataType=Me;Me[Symbol.toStringTag]=(r=>(r.children=null,r.ArrayType=Array,r[Symbol.toStringTag]="DataType"))(Me.prototype);var _o=class extends Me{toString(){return"Null"}get typeId(){return x.Type.Null}};k.Null=_o;_o[Symbol.toStringTag]=(r=>r[Symbol.toStringTag]="Null")(_o.prototype);var Bt=class extends Me{constructor(e,t){super();this.isSigned=e,this.bitWidth=t}get typeId(){return x.Type.Int}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?Int32Array:Uint32Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};k.Int=Bt;Bt[Symbol.toStringTag]=(r=>(r.isSigned=null,r.bitWidth=null,r[Symbol.toStringTag]="Int"))(Bt.prototype);var Lu=class extends Bt{constructor(){super(!0,8)}};k.Int8=Lu;var xu=class extends Bt{constructor(){super(!0,16)}};k.Int16=xu;var qu=class extends Bt{constructor(){super(!0,32)}};k.Int32=qu;var zu=class extends Bt{constructor(){super(!0,64)}};k.Int64=zu;var Wu=class extends Bt{constructor(){super(!1,8)}};k.Uint8=Wu;var Hu=class extends Bt{constructor(){super(!1,16)}};k.Uint16=Hu;var Yu=class extends Bt{constructor(){super(!1,32)}};k.Uint32=Yu;var Gu=class extends Bt{constructor(){super(!1,64)}};k.Uint64=Gu;Object.defineProperty(Lu.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(xu.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(qu.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(zu.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(Wu.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(Hu.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Yu.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Gu.prototype,"ArrayType",{value:Uint32Array});var Mi=class extends Me{constructor(e){super();this.precision=e}get typeId(){return x.Type.Float}get ArrayType(){switch(this.precision){case x.Precision.HALF:return Uint16Array;case x.Precision.SINGLE:return Float32Array;case x.Precision.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};k.Float=Mi;Mi[Symbol.toStringTag]=(r=>(r.precision=null,r[Symbol.toStringTag]="Float"))(Mi.prototype);var Ku=class extends Mi{constructor(){super(x.Precision.HALF)}};k.Float16=Ku;var $u=class extends Mi{constructor(){super(x.Precision.SINGLE)}};k.Float32=$u;var Ju=class extends Mi{constructor(){super(x.Precision.DOUBLE)}};k.Float64=Ju;Object.defineProperty(Ku.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty($u.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(Ju.prototype,"ArrayType",{value:Float64Array});var bo=class extends Me{constructor(){super()}get typeId(){return x.Type.Binary}toString(){return"Binary"}};k.Binary=bo;bo[Symbol.toStringTag]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Binary"))(bo.prototype);var go=class extends Me{constructor(){super()}get typeId(){return x.Type.Utf8}toString(){return"Utf8"}};k.Utf8=go;go[Symbol.toStringTag]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Utf8"))(go.prototype);var vo=class extends Me{constructor(){super()}get typeId(){return x.Type.Bool}toString(){return"Bool"}};k.Bool=vo;vo[Symbol.toStringTag]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Bool"))(vo.prototype);var jo=class extends Me{constructor(e,t){super();this.scale=e,this.precision=t}get typeId(){return x.Type.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};k.Decimal=jo;jo[Symbol.toStringTag]=(r=>(r.scale=null,r.precision=null,r.ArrayType=Uint32Array,r[Symbol.toStringTag]="Decimal"))(jo.prototype);var nn=class extends Me{constructor(e){super();this.unit=e}get typeId(){return x.Type.Date}toString(){return`Date${(this.unit+1)*32}<${x.DateUnit[this.unit]}>`}};k.Date_=nn;nn[Symbol.toStringTag]=(r=>(r.unit=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Date"))(nn.prototype);var Wy=class extends nn{constructor(){super(x.DateUnit.DAY)}};k.DateDay=Wy;var Hy=class extends nn{constructor(){super(x.DateUnit.MILLISECOND)}};k.DateMillisecond=Hy;var Kr=class extends Me{constructor(e,t){super();this.unit=e,this.bitWidth=t}get typeId(){return x.Type.Time}toString(){return`Time${this.bitWidth}<${x.TimeUnit[this.unit]}>`}};k.Time=Kr;Kr[Symbol.toStringTag]=(r=>(r.unit=null,r.bitWidth=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Time"))(Kr.prototype);var Yy=class extends Kr{constructor(){super(x.TimeUnit.SECOND,32)}};k.TimeSecond=Yy;var Gy=class extends Kr{constructor(){super(x.TimeUnit.MILLISECOND,32)}};k.TimeMillisecond=Gy;var Ky=class extends Kr{constructor(){super(x.TimeUnit.MICROSECOND,64)}};k.TimeMicrosecond=Ky;var $y=class extends Kr{constructor(){super(x.TimeUnit.NANOSECOND,64)}};k.TimeNanosecond=$y;var $r=class extends Me{constructor(e,t){super();this.unit=e,this.timezone=t}get typeId(){return x.Type.Timestamp}toString(){return`Timestamp<${x.TimeUnit[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};k.Timestamp=$r;$r[Symbol.toStringTag]=(r=>(r.unit=null,r.timezone=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Timestamp"))($r.prototype);var Jy=class extends $r{constructor(e){super(x.TimeUnit.SECOND,e)}};k.TimestampSecond=Jy;var Qy=class extends $r{constructor(e){super(x.TimeUnit.MILLISECOND,e)}};k.TimestampMillisecond=Qy;var Zy=class extends $r{constructor(e){super(x.TimeUnit.MICROSECOND,e)}};k.TimestampMicrosecond=Zy;var Xy=class extends $r{constructor(e){super(x.TimeUnit.NANOSECOND,e)}};k.TimestampNanosecond=Xy;var sn=class extends Me{constructor(e){super();this.unit=e}get typeId(){return x.Type.Interval}toString(){return`Interval<${x.IntervalUnit[this.unit]}>`}};k.Interval=sn;sn[Symbol.toStringTag]=(r=>(r.unit=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Interval"))(sn.prototype);var em=class extends sn{constructor(){super(x.IntervalUnit.DAY_TIME)}};k.IntervalDayTime=em;var tm=class extends sn{constructor(){super(x.IntervalUnit.YEAR_MONTH)}};k.IntervalYearMonth=tm;var wo=class extends Me{constructor(e){super();this.children=[e]}get typeId(){return x.Type.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};k.List=wo;wo[Symbol.toStringTag]=(r=>(r.children=null,r[Symbol.toStringTag]="List"))(wo.prototype);var To=class extends Me{constructor(e){super();this.children=e}get typeId(){return x.Type.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};k.Struct=To;To[Symbol.toStringTag]=(r=>(r.children=null,r[Symbol.toStringTag]="Struct"))(To.prototype);var on=class extends Me{constructor(e,t,i){super();this.mode=e,this.children=i,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((n,s,c)=>(n[s]=c)&&n||n,Object.create(null))}get typeId(){return x.Type.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}};k.Union=on;on[Symbol.toStringTag]=(r=>(r.mode=null,r.typeIds=null,r.children=null,r.typeIdToChildIndex=null,r.ArrayType=Int8Array,r[Symbol.toStringTag]="Union"))(on.prototype);var rm=class extends on{constructor(e,t){super(x.UnionMode.Dense,e,t)}};k.DenseUnion=rm;var im=class extends on{constructor(e,t){super(x.UnionMode.Sparse,e,t)}};k.SparseUnion=im;var Io=class extends Me{constructor(e){super();this.byteWidth=e}get typeId(){return x.Type.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};k.FixedSizeBinary=Io;Io[Symbol.toStringTag]=(r=>(r.byteWidth=null,r.ArrayType=Uint8Array,r[Symbol.toStringTag]="FixedSizeBinary"))(Io.prototype);var Bo=class extends Me{constructor(e,t){super();this.listSize=e,this.children=[t]}get typeId(){return x.Type.FixedSizeList}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}>`}};k.FixedSizeList=Bo;Bo[Symbol.toStringTag]=(r=>(r.children=null,r.listSize=null,r[Symbol.toStringTag]="FixedSizeList"))(Bo.prototype);var So=class extends Me{constructor(e,t=!1){super();this.children=[e],this.keysSorted=t}get typeId(){return x.Type.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};k.Map_=So;So[Symbol.toStringTag]=(r=>(r.children=null,r.keysSorted=null,r[Symbol.toStringTag]="Map_"))(So.prototype);var iO=(r=>()=>++r)(-1),Oo=class extends Me{constructor(e,t,i,n){super();this.indices=t,this.dictionary=e,this.isOrdered=n||!1,this.id=i==null?iO():typeof i=="number"?i:i.low}get typeId(){return x.Type.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};k.Dictionary=Oo;Oo[Symbol.toStringTag]=(r=>(r.id=null,r.indices=null,r.isOrdered=null,r.dictionary=null,r[Symbol.toStringTag]="Dictionary"))(Oo.prototype);function nO(r){let e=r;switch(r.typeId){case x.Type.Decimal:return 4;case x.Type.Timestamp:return 2;case x.Type.Date:return 1+e.unit;case x.Type.Interval:return 1+e.unit;case x.Type.Int:return 1+ +(e.bitWidth>32);case x.Type.Time:return 1+ +(e.bitWidth>32);case x.Type.FixedSizeList:return e.listSize;case x.Type.FixedSizeBinary:return e.byteWidth;default:return 1}}k.strideForType=nO});var Yt=E(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.Data=ki.kUnknownNullCount=void 0;var sO=sr(),oO=sr(),z=Se(),aO=ve(),ye=Ge();ki.kUnknownNullCount=-1;var re=class{constructor(e,t,i,n,s,c,v){this.type=e,this.dictionary=v,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(i||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1)),this.childData=(c||[]).map(S=>S instanceof re?S:S.data);let B;s instanceof re?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=aO.strideForType(e),s&&((B=s[0])&&(this.valueOffsets=B),(B=s[1])&&(this.values=B),(B=s[2])&&(this.nullBitmap=B),(B=s[3])&&(this.typeIds=B)))}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0,{valueOffsets:t,values:i,nullBitmap:n,typeIds:s}=this;return t&&(e+=t.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),s&&(e+=s.byteLength),this.childData.reduce((c,v)=>c+v.byteLength,e)}get nullCount(){let e=this._nullCount,t;return e<=ki.kUnknownNullCount&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-oO.popcnt_bit_range(t,this.offset,this.offset+this.length)),e}clone(e,t=this.offset,i=this.length,n=this._nullCount,s=this,c=this.childData){return new re(e,t,i,n,s,c,this.dictionary)}slice(e,t){let{stride:i,typeId:n,childData:s}=this,c=+(this._nullCount===0)-1,v=n===16?i:1,B=this._sliceBuffers(e,t,i,n);return this.clone(this.type,this.offset+e,t,c,B,!s.length||this.valueOffsets?s:this._sliceChildren(s,v*e,v*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===z.Type.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:i}=this,n=new Uint8Array((e+63&~63)>>3).fill(255,0,t>>3);n[t>>3]=(1<<t-(t&~7))-1,i>0&&n.set(sO.truncateBitmap(this.offset,t,this.nullBitmap),0);let s=this.buffers;return s[z.BufferType.VALIDITY]=n,this.clone(this.type,0,e,i+(e-t),s)}_sliceBuffers(e,t,i,n){let s,{buffers:c}=this;return(s=c[z.BufferType.TYPE])&&(c[z.BufferType.TYPE]=s.subarray(e,e+t)),(s=c[z.BufferType.OFFSET])&&(c[z.BufferType.OFFSET]=s.subarray(e,e+t+1))||(s=c[z.BufferType.DATA])&&(c[z.BufferType.DATA]=n===6?s:s.subarray(i*e,i*(e+t))),c}_sliceChildren(e,t,i){return e.map(n=>n.slice(t,i))}static new(e,t,i,n,s,c,v){switch(s instanceof re?s=s.buffers:s||(s=[]),e.typeId){case z.Type.Null:return re.Null(e,t,i);case z.Type.Int:return re.Int(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Dictionary:return re.Dictionary(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[],v);case z.Type.Float:return re.Float(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Bool:return re.Bool(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Decimal:return re.Decimal(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Date:return re.Date(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Time:return re.Time(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Timestamp:return re.Timestamp(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Interval:return re.Interval(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.FixedSizeBinary:return re.FixedSizeBinary(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.DATA]||[]);case z.Type.Binary:return re.Binary(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.OFFSET]||[],s[z.BufferType.DATA]||[]);case z.Type.Utf8:return re.Utf8(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.OFFSET]||[],s[z.BufferType.DATA]||[]);case z.Type.List:return re.List(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.OFFSET]||[],(c||[])[0]);case z.Type.FixedSizeList:return re.FixedSizeList(e,t,i,n||0,s[z.BufferType.VALIDITY],(c||[])[0]);case z.Type.Struct:return re.Struct(e,t,i,n||0,s[z.BufferType.VALIDITY],c||[]);case z.Type.Map:return re.Map(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.OFFSET]||[],(c||[])[0]);case z.Type.Union:return re.Union(e,t,i,n||0,s[z.BufferType.VALIDITY],s[z.BufferType.TYPE]||[],s[z.BufferType.OFFSET]||c,c)}throw new Error(`Unrecognized typeId ${e.typeId}`)}static Null(e,t,i){return new re(e,t,i,0)}static Int(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Dictionary(e,t,i,n,s,c,v){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.indices.ArrayType,c),ye.toUint8Array(s)],[],v)}static Float(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Bool(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Decimal(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Date(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Time(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Timestamp(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Interval(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static FixedSizeBinary(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,ye.toArrayBufferView(e.ArrayType,c),ye.toUint8Array(s)])}static Binary(e,t,i,n,s,c,v){return new re(e,t,i,n,[ye.toInt32Array(c),ye.toUint8Array(v),ye.toUint8Array(s)])}static Utf8(e,t,i,n,s,c,v){return new re(e,t,i,n,[ye.toInt32Array(c),ye.toUint8Array(v),ye.toUint8Array(s)])}static List(e,t,i,n,s,c,v){return new re(e,t,i,n,[ye.toInt32Array(c),void 0,ye.toUint8Array(s)],v?[v]:[])}static FixedSizeList(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,void 0,ye.toUint8Array(s)],c?[c]:[])}static Struct(e,t,i,n,s,c){return new re(e,t,i,n,[void 0,void 0,ye.toUint8Array(s)],c)}static Map(e,t,i,n,s,c,v){return new re(e,t,i,n,[ye.toInt32Array(c),void 0,ye.toUint8Array(s)],v?[v]:[])}static Union(e,t,i,n,s,c,v,B){let S=[void 0,void 0,ye.toUint8Array(s),ye.toArrayBufferView(e.ArrayType,c)];return e.mode===z.UnionMode.Sparse?new re(e,t,i,n,S,v):(S[z.BufferType.OFFSET]=ye.toInt32Array(v),new re(e,t,i,n,S,B))}};ki.Data=re;re.prototype.childData=Object.freeze([])});var Qu=E(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.valueToString=void 0;var uO=void 0;function cO(r){if(r===null)return"null";if(r===uO)return"undefined";switch(typeof r){case"number":return`${r}`;case"bigint":return`${r}`;case"string":return`"${r}"`}return typeof r[Symbol.toPrimitive]=="function"?r[Symbol.toPrimitive]("string"):ArrayBuffer.isView(r)?`[${r}]`:JSON.stringify(r)}Fo.valueToString=cO});var nm=E(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.createIsValidFunction=void 0;var Zu=Qu(),lO=ct();function dO(r){if(!r||r.length<=0)return function(n){return!0};let e="",t=r.filter(i=>i===i);return t.length>0&&(e=`
2
2
  switch (x) {${t.map(i=>`
3
3
  case ${fO(i)}:`).join("")}
4
4
  return false;
@@ -14,6 +14,6 @@ return true;`)}Do.createIsValidFunction=dO;function fO(r){return typeof r!="bigi
14
14
  `:`,
15
15
  `),this._write(`${XD(this._recordBatches[e])}`),this._recordBatchBlocks.push(new En.FileBlock(0,0,0));this._write(`
16
16
  ]`)}return this._schema&&this._write(`
17
- }`),this._dictionaries=[],this._recordBatches=[],super.close()}};yr.RecordBatchJSONWriter=Ia;function yl(r,e){let t=e;e instanceof ll.Table&&(t=e.chunks,r.reset(void 0,e.schema));for(let i of t)r.write(i);return r.finish()}async function ml(r,e){for await(let t of e)r.write(t);return r.finish()}function Fb({name:r,type:e,nullable:t}){let i=new $D.JSONTypeAssembler;return{name:r,nullable:t,type:i.visit(e),children:(e.children||[]).map(Fb),dictionary:GD.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:i.visit(e.indices)}:void 0}}function ZD(r,e,t=!1){let i=new KD.Field(`${e}`,r.type,r.nullCount>0),n=Ob.JSONVectorAssembler.assemble(new YD.Column(i,[r]));return JSON.stringify({id:e,isDelta:t,data:{count:r.length,columns:n}},null,2)}function XD(r){return JSON.stringify({count:r.length,columns:Ob.JSONVectorAssembler.assemble(r)},null,2)}});var gl=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.distributeVectorsIntoRecordBatches=hi.distributeColumnsIntoRecordBatches=hi.ensureSameLengthData=void 0;var Db=Yt(),_l=Xe(),eA=ci(),tA=Er(),bl=new Uint8Array(0),Ab=r=>[bl,bl,new Uint8Array(r),bl];function rA(r,e,t=e.reduce((i,n)=>Math.max(i,n.length),0)){let i,n,s=-1,c=e.length,v=[...r.fields],B=[],S=(t+63&~63)>>3;for(;++s<c;)(i=e[s])&&i.length===t?B[s]=i:((n=v[s]).nullable||(v[s]=v[s].clone({nullable:!0})),B[s]=i?i._changeLengthAndBackfillNullBitmap(t):Db.Data.new(n.type,0,t,t,Ab(S)));return[new _l.Schema(v),t,B]}hi.ensureSameLengthData=rA;function iA(r){return Rb(new _l.Schema(r.map(({field:e})=>e)),r)}hi.distributeColumnsIntoRecordBatches=iA;function Rb(r,e){return nA(r,e.map(t=>t instanceof eA.Chunked?t.chunks.map(i=>i.data):[t.data]))}hi.distributeVectorsIntoRecordBatches=Rb;function nA(r,e){let t=[...r.fields],i=[],n={numBatches:e.reduce((K,be)=>Math.max(K,be.length),0)},s=0,c=0,v=-1,B=e.length,S,C=[];for(;n.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,v=-1;++v<B;)C[v]=S=e[v].shift(),c=Math.min(c,S?S.length:c);isFinite(c)&&(C=sA(t,c,C,e,n),c>0&&(i[s++]=[c,C.slice()]))}return[r=new _l.Schema(t,r.metadata),i.map(K=>new tA.RecordBatch(r,...K))]}function sA(r,e,t,i,n){let s,c,v=0,B=-1,S=i.length,C=(e+63&~63)>>3;for(;++B<S;)(s=t[B])&&(v=s.length)>=e?v===e?t[B]=s:(t[B]=s.slice(0,e),s=s.slice(e,v-e),n.numBatches=Math.max(n.numBatches,i[B].unshift(s))):((c=r[B]).nullable||(r[B]=c.clone({nullable:!0})),t[B]=s?s._changeLengthAndBackfillNullBitmap(e):Db.Data.new(c.type,0,e,e,Ab(C)));return t}});var qe=E(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.BaseVector=void 0;var oA=Se(),aA=ci(),uA=bs(),vl=Le(),jl=class extends vl.AbstractVector{constructor(e,t){super();this._children=t,this.numChildren=e.childData.length,this._bindDataAccessors(this.data=e)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return`${oA.Type[this.typeId]}Vector`}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(e,t=this._children){return vl.Vector.new(e,t)}concat(...e){return aA.Chunked.concat(this,...e)}slice(e,t){return uA.clampRange(this,e,t,this._sliceInternal)}isValid(e){if(this.nullCount>0){let t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}getChildAt(e){return e<0||e>=this.numChildren?null:(this._children||(this._children=[]))[e]||(this._children[e]=vl.Vector.new(this.data.childData[e]))}toJSON(){return[...this]}_sliceInternal(e,t,i){return e.clone(e.data.slice(t,i-t),null)}_bindDataAccessors(e){}};Sa.BaseVector=jl;jl.prototype[Symbol.isConcatSpreadable]=!0});var wl=E(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.BinaryVector=void 0;var cA=Le(),lA=qe(),dA=ve(),Eb=class extends lA.BaseVector{asUtf8(){return cA.Vector.new(this.data.clone(new dA.Utf8))}};Oa.BinaryVector=Eb});var Tl=E(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.BoolVector=void 0;var fA=ve(),hA=qe(),pA=mr(),Cb=class extends hA.BaseVector{static from(e){return pA.vectorFromValuesWithType(()=>new fA.Bool,e)}};Fa.BoolVector=Cb});var Bl=E(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.DateMillisecondVector=pi.DateDayVector=pi.DateVector=void 0;var yA=Se(),mA=qe(),Ub=mr(),Il=ve(),Da=class extends mA.BaseVector{static from(...e){return e.length===2?Ub.vectorFromValuesWithType(()=>e[1]===yA.DateUnit.DAY?new Il.DateDay:new Il.DateMillisecond,e[0]):Ub.vectorFromValuesWithType(()=>new Il.DateMillisecond,e[0])}};pi.DateVector=Da;var Mb=class extends Da{};pi.DateDayVector=Mb;var kb=class extends Da{};pi.DateMillisecondVector=kb});var Sl=E(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.DecimalVector=void 0;var _A=qe(),Vb=class extends _A.BaseVector{};Aa.DecimalVector=Vb});var Ea=E(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.DictionaryVector=void 0;var bA=Yt(),Pb=Le(),gA=qe(),vA=mr(),jA=ve(),Ol=class extends gA.BaseVector{constructor(e){super(e);this.indices=Pb.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,i,n]=e,s=new jA.Dictionary(t.type,i,null,null);return Pb.Vector.new(bA.Data.Dictionary(s,0,n.length,0,null,n,t))}return vA.vectorFromValuesWithType(()=>e[0].type,e[0])}get dictionary(){return this.data.dictionary}reverseLookup(e){return this.dictionary.indexOf(e)}getKey(e){return this.indices.get(e)}getValue(e){return this.dictionary.get(e)}setKey(e,t){return this.indices.set(e,t)}setValue(e,t){return this.dictionary.set(e,t)}};Ra.DictionaryVector=Ol;Ol.prototype.indices=null});var Fl=E(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.FixedSizeBinaryVector=void 0;var wA=qe(),Nb=class extends wA.BaseVector{};Ca.FixedSizeBinaryVector=Nb});var Dl=E(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.FixedSizeListVector=void 0;var TA=qe(),Lb=class extends TA.BaseVector{};Ua.FixedSizeListVector=Lb});var Cl=E(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.Float64Vector=_r.Float32Vector=_r.Float16Vector=_r.FloatVector=void 0;var IA=Yt(),BA=Le(),SA=qe(),OA=mr(),zi=ve(),Fs=class extends SA.BaseVector{static from(e){let t=AA(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let i=DA(e.constructor)||t;if(t===null&&(t=i),t&&t===i){let n=new t,s=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!FA(t,e.constructor))return BA.Vector.new(IA.Data.Float(n,0,s,0,null,e))}}if(t)return OA.vectorFromValuesWithType(()=>new t,e);throw e instanceof DataView||e instanceof ArrayBuffer?new TypeError(`Cannot infer float type from instance of ${e.constructor.name}`):new TypeError("Unrecognized FloatVector input")}};_r.FloatVector=Fs;var Al=class extends Fs{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};_r.Float16Vector=Al;var Rl=class extends Fs{};_r.Float32Vector=Rl;var El=class extends Fs{};_r.Float64Vector=El;var FA=(r,e)=>r===zi.Float16&&e!==Uint16Array,DA=r=>{switch(r){case Uint16Array:return zi.Float16;case Float32Array:return zi.Float32;case Float64Array:return zi.Float64;default:return null}},AA=r=>{switch(r){case Al:return zi.Float16;case Rl:return zi.Float32;case El:return zi.Float64;default:return null}}});var Ul=E(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.IntervalYearMonthVector=yi.IntervalDayTimeVector=yi.IntervalVector=void 0;var RA=qe(),Ma=class extends RA.BaseVector{};yi.IntervalVector=Ma;var xb=class extends Ma{};yi.IntervalDayTimeVector=xb;var qb=class extends Ma{};yi.IntervalYearMonthVector=qb});var ka=E(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Uint64Vector=Ye.Uint32Vector=Ye.Uint16Vector=Ye.Uint8Vector=Ye.Int64Vector=Ye.Int32Vector=Ye.Int16Vector=Ye.Int8Vector=Ye.IntVector=void 0;var EA=Yt(),CA=Le(),UA=qe(),MA=mr(),zb=ct(),Wb=Ge(),Ne=ve(),br=class extends UA.BaseVector{static from(...e){let[t,i=!1]=e,n=PA(this,i);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let s=VA(t.constructor,i)||n;if(n===null&&(n=s),n&&n===s){let c=new n,v=t.byteLength/c.ArrayType.BYTES_PER_ELEMENT;return kA(n,t.constructor)&&(v*=.5),CA.Vector.new(EA.Data.Int(c,0,v,0,null,t))}}if(n)return MA.vectorFromValuesWithType(()=>new n,t);throw t instanceof DataView||t instanceof ArrayBuffer?new TypeError(`Cannot infer integer type from instance of ${t.constructor.name}`):new TypeError("Unrecognized IntVector input")}};Ye.IntVector=br;var Ml=class extends br{};Ye.Int8Vector=Ml;var kl=class extends br{};Ye.Int16Vector=kl;var Vl=class extends br{};Ye.Int32Vector=Vl;var Pl=class extends br{toBigInt64Array(){return Wb.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};Ye.Int64Vector=Pl;var Nl=class extends br{};Ye.Uint8Vector=Nl;var Ll=class extends br{};Ye.Uint16Vector=Ll;var xl=class extends br{};Ye.Uint32Vector=xl;var ql=class extends br{toBigUint64Array(){return Wb.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};Ye.Uint64Vector=ql;var kA=(r,e)=>(r===Ne.Int64||r===Ne.Uint64)&&(e===Int32Array||e===Uint32Array),VA=(r,e)=>{switch(r){case Int8Array:return Ne.Int8;case Int16Array:return Ne.Int16;case Int32Array:return e?Ne.Int64:Ne.Int32;case zb.BigInt64Array:return Ne.Int64;case Uint8Array:return Ne.Uint8;case Uint16Array:return Ne.Uint16;case Uint32Array:return e?Ne.Uint64:Ne.Uint32;case zb.BigUint64Array:return Ne.Uint64;default:return null}},PA=(r,e)=>{switch(r){case Ml:return Ne.Int8;case kl:return Ne.Int16;case Vl:return e?Ne.Int64:Ne.Int32;case Pl:return Ne.Int64;case Nl:return Ne.Uint8;case Ll:return Ne.Uint16;case xl:return e?Ne.Uint64:Ne.Uint32;case ql:return Ne.Uint64;default:return null}}});var zl=E(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.ListVector=void 0;var NA=qe(),Hb=class extends NA.BaseVector{};Va.ListVector=Hb});var Wl=E(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.MapVector=void 0;var LA=ms(),xA=Le(),qA=qe(),zA=ve(),Yb=class extends qA.BaseVector{asList(){let e=this.type.children[0];return xA.Vector.new(this.data.clone(new zA.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:i,[e+1]:n}=this.valueOffsets;return new LA.MapRow(t.slice(i,n))}};Pa.MapVector=Yb});var Hl=E(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.NullVector=void 0;var WA=qe(),Gb=class extends WA.BaseVector{};Na.NullVector=Gb});var Yl=E(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.StructVector=void 0;var HA=ms(),YA=qe(),GA=Symbol.for("rowIndex"),Kb=class extends YA.BaseVector{bind(e){let t=this._row||(this._row=new HA.StructRow(this)),i=Object.create(t);return i[GA]=e,i}};La.StructVector=Kb});var Gl=E(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.TimestampNanosecondVector=Mt.TimestampMicrosecondVector=Mt.TimestampMillisecondVector=Mt.TimestampSecondVector=Mt.TimestampVector=void 0;var KA=qe(),Cn=class extends KA.BaseVector{};Mt.TimestampVector=Cn;var $b=class extends Cn{};Mt.TimestampSecondVector=$b;var Jb=class extends Cn{};Mt.TimestampMillisecondVector=Jb;var Qb=class extends Cn{};Mt.TimestampMicrosecondVector=Qb;var Zb=class extends Cn{};Mt.TimestampNanosecondVector=Zb});var Kl=E(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.TimeNanosecondVector=kt.TimeMicrosecondVector=kt.TimeMillisecondVector=kt.TimeSecondVector=kt.TimeVector=void 0;var $A=qe(),Un=class extends $A.BaseVector{};kt.TimeVector=Un;var Xb=class extends Un{};kt.TimeSecondVector=Xb;var eg=class extends Un{};kt.TimeMillisecondVector=eg;var tg=class extends Un{};kt.TimeMicrosecondVector=tg;var rg=class extends Un{};kt.TimeNanosecondVector=rg});var $l=E(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.SparseUnionVector=mi.DenseUnionVector=mi.UnionVector=void 0;var JA=qe(),xa=class extends JA.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};mi.UnionVector=xa;var ig=class extends xa{get valueOffsets(){return this.data.valueOffsets}};mi.DenseUnionVector=ig;var ng=class extends xa{};mi.SparseUnionVector=ng});var Jl=E(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.Utf8Vector=void 0;var QA=Le(),ZA=qe(),sg=ve(),XA=mr(),og=class extends ZA.BaseVector{static from(e){return XA.vectorFromValuesWithType(()=>new sg.Utf8,e)}asBinary(){return QA.Vector.new(this.data.clone(new sg.Binary))}};qa.Utf8Vector=og});var ag=E(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.partial2=_i.partial1=_i.partial0=void 0;function eR(r){return function(){return r(this)}}_i.partial0=eR;function tR(r){return function(e){return r(this,e)}}_i.partial1=tR;function rR(r){return function(e,t){return r(this,e,t)}}_i.partial2=rR});var Xl=E(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.instance=Mn.GetVisitor=void 0;var za=ls(),iR=it(),nR=Ti(),sR=os(),Vt=Se(),Q=class extends iR.Visitor{};Mn.GetVisitor=Q;var oR=(r,e)=>864e5*r[e],Ql=(r,e)=>4294967296*r[e+1]+(r[e]>>>0),aR=(r,e)=>4294967296*(r[e+1]/1e3)+(r[e]>>>0)/1e3,uR=(r,e)=>4294967296*(r[e+1]/1e6)+(r[e]>>>0)/1e6,ug=r=>new Date(r),cR=(r,e)=>ug(oR(r,e)),lR=(r,e)=>ug(Ql(r,e)),dR=(r,e)=>null,cg=(r,e,t)=>{let{[t]:i,[t+1]:n}=e;return i!=null&&n!=null?r.subarray(i,n):null},fR=({offset:r,values:e},t)=>{let i=r+t;return(e[i>>3]&1<<i%8)!=0},lg=({values:r},e)=>cR(r,e),dg=({values:r},e)=>lR(r,e*2),gr=({stride:r,values:e},t)=>e[r*t],fg=({stride:r,values:e},t)=>sR.uint16ToFloat64(e[r*t]),Zl=({stride:r,values:e,type:t},i)=>za.BN.new(e.subarray(r*i,r*(i+1)),t.isSigned),hR=({stride:r,values:e},t)=>e.subarray(r*t,r*(t+1)),pR=({values:r,valueOffsets:e},t)=>cg(r,e,t),yR=({values:r,valueOffsets:e},t)=>{let i=cg(r,e,t);return i!==null?nR.decodeUtf8(i):null},mR=(r,e)=>r.type.bitWidth<64?gr(r,e):Zl(r,e),_R=(r,e)=>r.type.precision!==Vt.Precision.HALF?gr(r,e):fg(r,e),bR=(r,e)=>r.type.unit===Vt.DateUnit.DAY?lg(r,e):dg(r,e),hg=({values:r},e)=>1e3*Ql(r,e*2),pg=({values:r},e)=>Ql(r,e*2),yg=({values:r},e)=>aR(r,e*2),mg=({values:r},e)=>uR(r,e*2),gR=(r,e)=>{switch(r.type.unit){case Vt.TimeUnit.SECOND:return hg(r,e);case Vt.TimeUnit.MILLISECOND:return pg(r,e);case Vt.TimeUnit.MICROSECOND:return yg(r,e);case Vt.TimeUnit.NANOSECOND:return mg(r,e)}},_g=({values:r,stride:e},t)=>r[e*t],bg=({values:r,stride:e},t)=>r[e*t],gg=({values:r},e)=>za.BN.signed(r.subarray(2*e,2*(e+1))),vg=({values:r},e)=>za.BN.signed(r.subarray(2*e,2*(e+1))),vR=(r,e)=>{switch(r.type.unit){case Vt.TimeUnit.SECOND:return _g(r,e);case Vt.TimeUnit.MILLISECOND:return bg(r,e);case Vt.TimeUnit.MICROSECOND:return gg(r,e);case Vt.TimeUnit.NANOSECOND:return vg(r,e)}},jR=({values:r},e)=>za.BN.decimal(r.subarray(4*e,4*(e+1))),wR=(r,e)=>{let t=r.getChildAt(0),{valueOffsets:i,stride:n}=r;return t.slice(i[e*n],i[e*n+1])},TR=(r,e)=>r.bind(e),IR=(r,e)=>r.bind(e),BR=(r,e)=>r.type.mode===Vt.UnionMode.Dense?jg(r,e):wg(r,e),jg=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(r.valueOffsets[e]):null},wg=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(e):null},SR=(r,e)=>r.getValue(r.getKey(e)),OR=(r,e)=>r.type.unit===Vt.IntervalUnit.DAY_TIME?Tg(r,e):Ig(r,e),Tg=({values:r},e)=>r.subarray(2*e,2*(e+1)),Ig=({values:r},e)=>{let t=r[e],i=new Int32Array(2);return i[0]=t/12|0,i[1]=t%12|0,i},FR=(r,e)=>{let t=r.getChildAt(0),{stride:i}=r;return t.slice(e*i,(e+1)*i)};Q.prototype.visitNull=dR;Q.prototype.visitBool=fR;Q.prototype.visitInt=mR;Q.prototype.visitInt8=gr;Q.prototype.visitInt16=gr;Q.prototype.visitInt32=gr;Q.prototype.visitInt64=Zl;Q.prototype.visitUint8=gr;Q.prototype.visitUint16=gr;Q.prototype.visitUint32=gr;Q.prototype.visitUint64=Zl;Q.prototype.visitFloat=_R;Q.prototype.visitFloat16=fg;Q.prototype.visitFloat32=gr;Q.prototype.visitFloat64=gr;Q.prototype.visitUtf8=yR;Q.prototype.visitBinary=pR;Q.prototype.visitFixedSizeBinary=hR;Q.prototype.visitDate=bR;Q.prototype.visitDateDay=lg;Q.prototype.visitDateMillisecond=dg;Q.prototype.visitTimestamp=gR;Q.prototype.visitTimestampSecond=hg;Q.prototype.visitTimestampMillisecond=pg;Q.prototype.visitTimestampMicrosecond=yg;Q.prototype.visitTimestampNanosecond=mg;Q.prototype.visitTime=vR;Q.prototype.visitTimeSecond=_g;Q.prototype.visitTimeMillisecond=bg;Q.prototype.visitTimeMicrosecond=gg;Q.prototype.visitTimeNanosecond=vg;Q.prototype.visitDecimal=jR;Q.prototype.visitList=wR;Q.prototype.visitStruct=IR;Q.prototype.visitUnion=BR;Q.prototype.visitDenseUnion=jg;Q.prototype.visitSparseUnion=wg;Q.prototype.visitDictionary=SR;Q.prototype.visitInterval=OR;Q.prototype.visitIntervalDayTime=Tg;Q.prototype.visitIntervalYearMonth=Ig;Q.prototype.visitFixedSizeList=FR;Q.prototype.visitMap=TR;Mn.instance=new Q});var Fg=E(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.instance=kn.IndexOfVisitor=void 0;var DR=it(),Bg=sr(),Sg=bs(),Z=class extends DR.Visitor{};kn.IndexOfVisitor=Z;function AR(r,e){return e===null&&r.length>0?0:-1}function RR(r,e){let{nullBitmap:t}=r.data;if(!t||r.nullCount<=0)return-1;let i=0;for(let n of new Bg.BitIterator(t,r.data.offset+(e||0),r.length,t,Bg.getBool)){if(!n)return i;++i}return-1}function de(r,e,t){if(e===void 0)return-1;if(e===null)return RR(r,t);let i=Sg.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}function Og(r,e,t){let i=Sg.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}Z.prototype.visitNull=AR;Z.prototype.visitBool=de;Z.prototype.visitInt=de;Z.prototype.visitInt8=de;Z.prototype.visitInt16=de;Z.prototype.visitInt32=de;Z.prototype.visitInt64=de;Z.prototype.visitUint8=de;Z.prototype.visitUint16=de;Z.prototype.visitUint32=de;Z.prototype.visitUint64=de;Z.prototype.visitFloat=de;Z.prototype.visitFloat16=de;Z.prototype.visitFloat32=de;Z.prototype.visitFloat64=de;Z.prototype.visitUtf8=de;Z.prototype.visitBinary=de;Z.prototype.visitFixedSizeBinary=de;Z.prototype.visitDate=de;Z.prototype.visitDateDay=de;Z.prototype.visitDateMillisecond=de;Z.prototype.visitTimestamp=de;Z.prototype.visitTimestampSecond=de;Z.prototype.visitTimestampMillisecond=de;Z.prototype.visitTimestampMicrosecond=de;Z.prototype.visitTimestampNanosecond=de;Z.prototype.visitTime=de;Z.prototype.visitTimeSecond=de;Z.prototype.visitTimeMillisecond=de;Z.prototype.visitTimeMicrosecond=de;Z.prototype.visitTimeNanosecond=de;Z.prototype.visitDecimal=de;Z.prototype.visitList=de;Z.prototype.visitStruct=de;Z.prototype.visitUnion=de;Z.prototype.visitDenseUnion=Og;Z.prototype.visitSparseUnion=Og;Z.prototype.visitDictionary=de;Z.prototype.visitInterval=de;Z.prototype.visitIntervalDayTime=de;Z.prototype.visitIntervalYearMonth=de;Z.prototype.visitFixedSizeList=de;Z.prototype.visitMap=de;kn.instance=new Z});var ed=E(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.instance=Vn.IteratorVisitor=void 0;var Wa=Se(),ER=it(),CR=sr(),Dg=Xl(),X=class extends ER.Visitor{};Vn.IteratorVisitor=X;function UR(r){let e=Dg.instance.getVisitFn(r);return new CR.BitIterator(r.data.nullBitmap,r.data.offset,r.length,r,(t,i,n,s)=>(n&1<<s)!=0?e(t,i):null)}var Ag=class{constructor(e,t){this.vector=e,this.getFn=t,this.index=0}next(){return this.index<this.vector.length?{value:this.getFn(this.vector,this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};function oe(r){if(r.nullCount>0)return UR(r);let{type:e,typeId:t,length:i}=r;return r.stride===1&&(t===Wa.Type.Timestamp||t===Wa.Type.Int&&e.bitWidth!==64||t===Wa.Type.Time&&e.bitWidth!==64||t===Wa.Type.Float&&e.precision>0)?r.data.values.subarray(0,i)[Symbol.iterator]():new Ag(r,Dg.instance.getVisitFn(r))}X.prototype.visitNull=oe;X.prototype.visitBool=oe;X.prototype.visitInt=oe;X.prototype.visitInt8=oe;X.prototype.visitInt16=oe;X.prototype.visitInt32=oe;X.prototype.visitInt64=oe;X.prototype.visitUint8=oe;X.prototype.visitUint16=oe;X.prototype.visitUint32=oe;X.prototype.visitUint64=oe;X.prototype.visitFloat=oe;X.prototype.visitFloat16=oe;X.prototype.visitFloat32=oe;X.prototype.visitFloat64=oe;X.prototype.visitUtf8=oe;X.prototype.visitBinary=oe;X.prototype.visitFixedSizeBinary=oe;X.prototype.visitDate=oe;X.prototype.visitDateDay=oe;X.prototype.visitDateMillisecond=oe;X.prototype.visitTimestamp=oe;X.prototype.visitTimestampSecond=oe;X.prototype.visitTimestampMillisecond=oe;X.prototype.visitTimestampMicrosecond=oe;X.prototype.visitTimestampNanosecond=oe;X.prototype.visitTime=oe;X.prototype.visitTimeSecond=oe;X.prototype.visitTimeMillisecond=oe;X.prototype.visitTimeMicrosecond=oe;X.prototype.visitTimeNanosecond=oe;X.prototype.visitDecimal=oe;X.prototype.visitList=oe;X.prototype.visitStruct=oe;X.prototype.visitUnion=oe;X.prototype.visitDenseUnion=oe;X.prototype.visitSparseUnion=oe;X.prototype.visitDictionary=oe;X.prototype.visitInterval=oe;X.prototype.visitIntervalDayTime=oe;X.prototype.visitIntervalYearMonth=oe;X.prototype.visitFixedSizeList=oe;X.prototype.visitMap=oe;Vn.instance=new X});var Rg=E(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.instance=Pn.ToArrayVisitor=void 0;var Ds=Se(),MR=it(),kR=ed(),ee=class extends MR.Visitor{};Pn.ToArrayVisitor=ee;function ae(r){let{type:e,length:t,stride:i}=r;switch(e.typeId){case Ds.Type.Int:case Ds.Type.Float:case Ds.Type.Decimal:case Ds.Type.Time:case Ds.Type.Timestamp:return r.data.values.subarray(0,t*i)}return[...kR.instance.visit(r)]}ee.prototype.visitNull=ae;ee.prototype.visitBool=ae;ee.prototype.visitInt=ae;ee.prototype.visitInt8=ae;ee.prototype.visitInt16=ae;ee.prototype.visitInt32=ae;ee.prototype.visitInt64=ae;ee.prototype.visitUint8=ae;ee.prototype.visitUint16=ae;ee.prototype.visitUint32=ae;ee.prototype.visitUint64=ae;ee.prototype.visitFloat=ae;ee.prototype.visitFloat16=ae;ee.prototype.visitFloat32=ae;ee.prototype.visitFloat64=ae;ee.prototype.visitUtf8=ae;ee.prototype.visitBinary=ae;ee.prototype.visitFixedSizeBinary=ae;ee.prototype.visitDate=ae;ee.prototype.visitDateDay=ae;ee.prototype.visitDateMillisecond=ae;ee.prototype.visitTimestamp=ae;ee.prototype.visitTimestampSecond=ae;ee.prototype.visitTimestampMillisecond=ae;ee.prototype.visitTimestampMicrosecond=ae;ee.prototype.visitTimestampNanosecond=ae;ee.prototype.visitTime=ae;ee.prototype.visitTimeSecond=ae;ee.prototype.visitTimeMillisecond=ae;ee.prototype.visitTimeMicrosecond=ae;ee.prototype.visitTimeNanosecond=ae;ee.prototype.visitDecimal=ae;ee.prototype.visitList=ae;ee.prototype.visitStruct=ae;ee.prototype.visitUnion=ae;ee.prototype.visitDenseUnion=ae;ee.prototype.visitSparseUnion=ae;ee.prototype.visitDictionary=ae;ee.prototype.visitInterval=ae;ee.prototype.visitIntervalDayTime=ae;ee.prototype.visitIntervalYearMonth=ae;ee.prototype.visitFixedSizeList=ae;ee.prototype.visitMap=ae;Pn.instance=new ee});var Eg=E(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.instance=Nn.ByteWidthVisitor=void 0;var VR=it(),PR=Se(),As=(r,e)=>r+e,td=r=>`Cannot compute the byte width of variable-width column ${r}`,rd=class extends VR.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(td(e))}visitUtf8(e){throw new Error(td(e))}visitBool(e){return 1/8}visitDecimal(e){return 16}visitDate(e){return(e.unit+1)*4}visitTime(e){return e.bitWidth/8}visitTimestamp(e){return e.unit===PR.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(td(e))}visitStruct(e){return this.visitFields(e.children).reduce(As,0)}visitUnion(e){return this.visitFields(e.children).reduce(As,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(As,0)}visitMap(e){return this.visitFields(e.children).reduce(As,0)}visitDictionary(e){return this.visit(e.indices)}visitFields(e){return(e||[]).map(t=>this.visit(t.type))}visitSchema(e){return this.visitFields(e.fields).reduce(As,0)}};Nn.ByteWidthVisitor=rd;Nn.instance=new rd});var Cg=E(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.instance=Ln.GetVectorConstructor=void 0;var NR=it(),LR=wl(),xR=Tl(),id=Bl(),qR=Sl(),zR=Ea(),WR=Fl(),HR=Dl(),Ha=Cl(),nd=Ul(),Cr=ka(),YR=zl(),GR=Wl(),KR=Hl(),$R=Yl(),Rs=Gl(),Es=Kl(),sd=$l(),JR=Jl(),od=class extends NR.Visitor{visitNull(){return KR.NullVector}visitBool(){return xR.BoolVector}visitInt(){return Cr.IntVector}visitInt8(){return Cr.Int8Vector}visitInt16(){return Cr.Int16Vector}visitInt32(){return Cr.Int32Vector}visitInt64(){return Cr.Int64Vector}visitUint8(){return Cr.Uint8Vector}visitUint16(){return Cr.Uint16Vector}visitUint32(){return Cr.Uint32Vector}visitUint64(){return Cr.Uint64Vector}visitFloat(){return Ha.FloatVector}visitFloat16(){return Ha.Float16Vector}visitFloat32(){return Ha.Float32Vector}visitFloat64(){return Ha.Float64Vector}visitUtf8(){return JR.Utf8Vector}visitBinary(){return LR.BinaryVector}visitFixedSizeBinary(){return WR.FixedSizeBinaryVector}visitDate(){return id.DateVector}visitDateDay(){return id.DateDayVector}visitDateMillisecond(){return id.DateMillisecondVector}visitTimestamp(){return Rs.TimestampVector}visitTimestampSecond(){return Rs.TimestampSecondVector}visitTimestampMillisecond(){return Rs.TimestampMillisecondVector}visitTimestampMicrosecond(){return Rs.TimestampMicrosecondVector}visitTimestampNanosecond(){return Rs.TimestampNanosecondVector}visitTime(){return Es.TimeVector}visitTimeSecond(){return Es.TimeSecondVector}visitTimeMillisecond(){return Es.TimeMillisecondVector}visitTimeMicrosecond(){return Es.TimeMicrosecondVector}visitTimeNanosecond(){return Es.TimeNanosecondVector}visitDecimal(){return qR.DecimalVector}visitList(){return YR.ListVector}visitStruct(){return $R.StructVector}visitUnion(){return sd.UnionVector}visitDenseUnion(){return sd.DenseUnionVector}visitSparseUnion(){return sd.SparseUnionVector}visitDictionary(){return zR.DictionaryVector}visitInterval(){return nd.IntervalVector}visitIntervalDayTime(){return nd.IntervalDayTimeVector}visitIntervalYearMonth(){return nd.IntervalYearMonthVector}visitFixedSizeList(){return HR.FixedSizeListVector}visitMap(){return GR.MapVector}};Ln.GetVectorConstructor=od;Ln.instance=new od});var mr=E(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.vectorFromValuesWithType=U.StructRow=U.MapRow=U.Utf8Vector=U.SparseUnionVector=U.DenseUnionVector=U.UnionVector=U.TimeNanosecondVector=U.TimeMicrosecondVector=U.TimeMillisecondVector=U.TimeSecondVector=U.TimeVector=U.TimestampNanosecondVector=U.TimestampMicrosecondVector=U.TimestampMillisecondVector=U.TimestampSecondVector=U.TimestampVector=U.StructVector=U.NullVector=U.MapVector=U.ListVector=U.Uint64Vector=U.Uint32Vector=U.Uint16Vector=U.Uint8Vector=U.Int64Vector=U.Int32Vector=U.Int16Vector=U.Int8Vector=U.IntVector=U.IntervalYearMonthVector=U.IntervalDayTimeVector=U.IntervalVector=U.Float64Vector=U.Float32Vector=U.Float16Vector=U.FloatVector=U.FixedSizeListVector=U.FixedSizeBinaryVector=U.DictionaryVector=U.DecimalVector=U.DateMillisecondVector=U.DateDayVector=U.DateVector=U.Chunked=U.BoolVector=U.BinaryVector=U.BaseVector=U.Vector=void 0;var QR=Le();Object.defineProperty(U,"Vector",{enumerable:!0,get:function(){return QR.Vector}});var ZR=qe();Object.defineProperty(U,"BaseVector",{enumerable:!0,get:function(){return ZR.BaseVector}});var XR=wl();Object.defineProperty(U,"BinaryVector",{enumerable:!0,get:function(){return XR.BinaryVector}});var eE=Tl();Object.defineProperty(U,"BoolVector",{enumerable:!0,get:function(){return eE.BoolVector}});var tE=ci();Object.defineProperty(U,"Chunked",{enumerable:!0,get:function(){return tE.Chunked}});var ad=Bl();Object.defineProperty(U,"DateVector",{enumerable:!0,get:function(){return ad.DateVector}});Object.defineProperty(U,"DateDayVector",{enumerable:!0,get:function(){return ad.DateDayVector}});Object.defineProperty(U,"DateMillisecondVector",{enumerable:!0,get:function(){return ad.DateMillisecondVector}});var rE=Sl();Object.defineProperty(U,"DecimalVector",{enumerable:!0,get:function(){return rE.DecimalVector}});var iE=Ea();Object.defineProperty(U,"DictionaryVector",{enumerable:!0,get:function(){return iE.DictionaryVector}});var nE=Fl();Object.defineProperty(U,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return nE.FixedSizeBinaryVector}});var sE=Dl();Object.defineProperty(U,"FixedSizeListVector",{enumerable:!0,get:function(){return sE.FixedSizeListVector}});var Ya=Cl();Object.defineProperty(U,"FloatVector",{enumerable:!0,get:function(){return Ya.FloatVector}});Object.defineProperty(U,"Float16Vector",{enumerable:!0,get:function(){return Ya.Float16Vector}});Object.defineProperty(U,"Float32Vector",{enumerable:!0,get:function(){return Ya.Float32Vector}});Object.defineProperty(U,"Float64Vector",{enumerable:!0,get:function(){return Ya.Float64Vector}});var ud=Ul();Object.defineProperty(U,"IntervalVector",{enumerable:!0,get:function(){return ud.IntervalVector}});Object.defineProperty(U,"IntervalDayTimeVector",{enumerable:!0,get:function(){return ud.IntervalDayTimeVector}});Object.defineProperty(U,"IntervalYearMonthVector",{enumerable:!0,get:function(){return ud.IntervalYearMonthVector}});var Ur=ka();Object.defineProperty(U,"IntVector",{enumerable:!0,get:function(){return Ur.IntVector}});Object.defineProperty(U,"Int8Vector",{enumerable:!0,get:function(){return Ur.Int8Vector}});Object.defineProperty(U,"Int16Vector",{enumerable:!0,get:function(){return Ur.Int16Vector}});Object.defineProperty(U,"Int32Vector",{enumerable:!0,get:function(){return Ur.Int32Vector}});Object.defineProperty(U,"Int64Vector",{enumerable:!0,get:function(){return Ur.Int64Vector}});Object.defineProperty(U,"Uint8Vector",{enumerable:!0,get:function(){return Ur.Uint8Vector}});Object.defineProperty(U,"Uint16Vector",{enumerable:!0,get:function(){return Ur.Uint16Vector}});Object.defineProperty(U,"Uint32Vector",{enumerable:!0,get:function(){return Ur.Uint32Vector}});Object.defineProperty(U,"Uint64Vector",{enumerable:!0,get:function(){return Ur.Uint64Vector}});var oE=zl();Object.defineProperty(U,"ListVector",{enumerable:!0,get:function(){return oE.ListVector}});var aE=Wl();Object.defineProperty(U,"MapVector",{enumerable:!0,get:function(){return aE.MapVector}});var uE=Hl();Object.defineProperty(U,"NullVector",{enumerable:!0,get:function(){return uE.NullVector}});var cE=Yl();Object.defineProperty(U,"StructVector",{enumerable:!0,get:function(){return cE.StructVector}});var Cs=Gl();Object.defineProperty(U,"TimestampVector",{enumerable:!0,get:function(){return Cs.TimestampVector}});Object.defineProperty(U,"TimestampSecondVector",{enumerable:!0,get:function(){return Cs.TimestampSecondVector}});Object.defineProperty(U,"TimestampMillisecondVector",{enumerable:!0,get:function(){return Cs.TimestampMillisecondVector}});Object.defineProperty(U,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return Cs.TimestampMicrosecondVector}});Object.defineProperty(U,"TimestampNanosecondVector",{enumerable:!0,get:function(){return Cs.TimestampNanosecondVector}});var Us=Kl();Object.defineProperty(U,"TimeVector",{enumerable:!0,get:function(){return Us.TimeVector}});Object.defineProperty(U,"TimeSecondVector",{enumerable:!0,get:function(){return Us.TimeSecondVector}});Object.defineProperty(U,"TimeMillisecondVector",{enumerable:!0,get:function(){return Us.TimeMillisecondVector}});Object.defineProperty(U,"TimeMicrosecondVector",{enumerable:!0,get:function(){return Us.TimeMicrosecondVector}});Object.defineProperty(U,"TimeNanosecondVector",{enumerable:!0,get:function(){return Us.TimeNanosecondVector}});var cd=$l();Object.defineProperty(U,"UnionVector",{enumerable:!0,get:function(){return cd.UnionVector}});Object.defineProperty(U,"DenseUnionVector",{enumerable:!0,get:function(){return cd.DenseUnionVector}});Object.defineProperty(U,"SparseUnionVector",{enumerable:!0,get:function(){return cd.SparseUnionVector}});var lE=Jl();Object.defineProperty(U,"Utf8Vector",{enumerable:!0,get:function(){return lE.Utf8Vector}});var Ug=ms();Object.defineProperty(U,"MapRow",{enumerable:!0,get:function(){return Ug.MapRow}});Object.defineProperty(U,"StructRow",{enumerable:!0,get:function(){return Ug.StructRow}});var Ms=ag(),ld=Se(),xn=Le(),Mg=ci(),Wi=qe(),dE=sr(),Ga=ct(),kg=ke(),Vg=Xl(),Pg=Sc(),Ng=Fg(),Lg=Rg(),xg=ed(),qg=Eg(),zg=Cg();xn.Vector.new=fE;xn.Vector.from=pE;function fE(r,...e){return new(zg.instance.getVisitFn(r)())(r,...e)}function hE(r,e){if(Ga.isIterable(e))return xn.Vector.from({nullValues:[null,void 0],type:r(),values:e});if(Ga.isAsyncIterable(e))return xn.Vector.from({nullValues:[null,void 0],type:r(),values:e});let{values:t=[],type:i=r(),nullValues:n=[null,void 0]}={...e};return Ga.isIterable(t)?xn.Vector.from({nullValues:n,...e,type:i}):xn.Vector.from({nullValues:n,...e,type:i})}U.vectorFromValuesWithType=hE;function pE(r){let{values:e=[],...t}={nullValues:[null,void 0],...r};if(Ga.isIterable(e)){let i=[...kg.Builder.throughIterable(t)(e)];return i.length===1?i[0]:Mg.Chunked.concat(i)}return(async i=>{let n=kg.Builder.throughAsyncIterable(t);for await(let s of n(e))i.push(s);return i.length===1?i[0]:Mg.Chunked.concat(i)})([])}Wi.BaseVector.prototype.get=function(e){return Vg.instance.visit(this,e)};Wi.BaseVector.prototype.set=function(e,t){return Pg.instance.visit(this,e,t)};Wi.BaseVector.prototype.indexOf=function(e,t){return Ng.instance.visit(this,e,t)};Wi.BaseVector.prototype.toArray=function(){return Lg.instance.visit(this)};Wi.BaseVector.prototype.getByteWidth=function(){return qg.instance.visit(this.type)};Wi.BaseVector.prototype[Symbol.iterator]=function(){return xg.instance.visit(this)};Wi.BaseVector.prototype._bindDataAccessors=bE;Object.keys(ld.Type).map(r=>ld.Type[r]).filter(r=>typeof r=="number").filter(r=>r!==ld.Type.NONE).forEach(r=>{let e=zg.instance.visit(r);e.prototype.get=Ms.partial1(Vg.instance.getVisitFn(r)),e.prototype.set=Ms.partial2(Pg.instance.getVisitFn(r)),e.prototype.indexOf=Ms.partial2(Ng.instance.getVisitFn(r)),e.prototype.toArray=Ms.partial0(Lg.instance.getVisitFn(r)),e.prototype.getByteWidth=yE(qg.instance.getVisitFn(r)),e.prototype[Symbol.iterator]=Ms.partial0(xg.instance.getVisitFn(r))});function yE(r){return function(){return r(this.type)}}function mE(r){return function(e){return this.isValid(e)?r.call(this,e):null}}function _E(r){return function(e,t){dE.setBool(this.nullBitmap,this.offset+e,t!=null)&&r.call(this,e,t)}}function bE(){let r=this.nullBitmap;r&&r.byteLength>0&&(this.get=mE(this.get),this.set=_E(this.set))}});var Os=E(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.Table=void 0;var gE=On(),Wg=Xe(),dd=Er(),vE=ks(),fd=ve(),Hg=Sn(),hd=ct(),Yg=Ba(),Gg=gl(),pd=mr(),tt=class extends pd.Chunked{constructor(...e){let t=null;e[0]instanceof Wg.Schema&&(t=e.shift());let i=Hg.selectArgs(dd.RecordBatch,e);if(!t&&!(t=i[0]&&i[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");i[0]||(i[0]=new dd._InternalEmptyPlaceholderRecordBatch(t));super(new fd.Struct(t.fields),i);this._schema=t,this._chunks=i}static empty(e=new Wg.Schema([])){return new tt(e,[])}static from(e){if(!e)return tt.empty();if(typeof e=="object"){let i=hd.isIterable(e.values)?jE(e):hd.isAsyncIterable(e.values)?wE(e):null;if(i!==null)return i}let t=vE.RecordBatchReader.from(e);return hd.isPromise(t)?(async()=>await tt.from(await t))():t.isSync()&&(t=t.open())?t.schema?new tt(t.schema,[...t]):tt.empty():(async i=>{let n=await i,s=n.schema,c=[];if(s){for await(let v of n)c.push(v);return new tt(s,c)}return tt.empty()})(t.open())}static async fromAsync(e){return await tt.from(e)}static fromStruct(e){return tt.new(e.data.childData,e.type.children)}static new(...e){return new tt(...Gg.distributeColumnsIntoRecordBatches(Hg.selectColumnArgs(e)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(e=this._chunks){return new tt(this._schema,e)}getColumn(e){return this.getColumnAt(this.getColumnIndex(e))}getColumnAt(e){return this.getChildAt(e)}getColumnIndex(e){return this._schema.fields.findIndex(t=>t.name===e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;let t,i,n=this._schema.fields,s=this._children||(this._children=[]);if(i=s[e])return i;if(t=n[e]){let c=this._chunks.map(v=>v.getChildAt(e)).filter(v=>v!=null);if(c.length>0)return s[e]=new gE.Column(t,c)}return null}serialize(e="binary",t=!0){return(t?Yg.RecordBatchStreamWriter:Yg.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...e){let t=this._schema.fields.reduce((i,n,s)=>i.set(n.name,s),new Map);return this.selectAt(...e.map(i=>t.get(i)).filter(i=>i>-1))}selectAt(...e){let t=this._schema.selectAt(...e);return new tt(t,this._chunks.map(({length:i,data:{childData:n}})=>new dd.RecordBatch(t,i,e.map(s=>n[s]).filter(Boolean))))}assign(e){let t=this._schema.fields,[i,n]=e.schema.fields.reduce((v,B,S)=>{let[C,K]=v,be=t.findIndex(pe=>pe.name===B.name);return~be?K[be]=S:C.push(S),v},[[],[]]),s=this._schema.assign(e.schema),c=[...t.map((v,B,S,C=n[B])=>C===void 0?this.getColumnAt(B):e.getColumnAt(C)),...i.map(v=>e.getColumnAt(v))].filter(Boolean);return new tt(...Gg.distributeVectorsIntoRecordBatches(s,c))}};Ka.Table=tt;function jE(r){let{type:e}=r;return e instanceof fd.Struct?tt.fromStruct(pd.StructVector.from(r)):null}function wE(r){let{type:e}=r;return e instanceof fd.Struct?pd.StructVector.from(r).then(t=>tt.fromStruct(t)):null}});var Er=E(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn._InternalEmptyPlaceholderRecordBatch=qn.RecordBatch=void 0;var yd=Yt(),md=Os(),TE=Le(),IE=it(),BE=Xe(),SE=ct(),OE=ci(),FE=Sn(),_d=ve(),DE=gl(),AE=mr(),bi=class extends AE.StructVector{constructor(...e){let t,i=e[0],n;if(e[1]instanceof yd.Data)[,t,n]=e;else{let s=i.fields,[,c,v]=e;t=yd.Data.Struct(new _d.Struct(s),0,c,0,null,v)}super(t,n);this._schema=i}static from(e){return SE.isIterable(e.values),md.Table.from(e)}static new(...e){let[t,i]=FE.selectFieldArgs(e),n=i.filter(s=>s instanceof TE.Vector);return new bi(...DE.ensureSameLengthData(new BE.Schema(t),n.map(s=>s.data)))}clone(e,t=this._children){return new bi(this._schema,e,t)}concat(...e){let t=this._schema,i=OE.Chunked.flatten(this,...e);return new md.Table(t,i.map(({data:n})=>new bi(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=$a.collect(this))}select(...e){let t=this._schema.fields.reduce((i,n,s)=>i.set(n.name,s),new Map);return this.selectAt(...e.map(i=>t.get(i)).filter(i=>i>-1))}selectAt(...e){let t=this._schema.selectAt(...e),i=e.map(n=>this.data.childData[n]).filter(Boolean);return new bi(t,this.length,i)}};qn.RecordBatch=bi;var Kg=class extends bi{constructor(e){super(e,0,e.fields.map(t=>yd.Data.new(t.type,0,0,0)))}};qn._InternalEmptyPlaceholderRecordBatch=Kg;var $a=class extends IE.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new $a().visit(e.data,new _d.Struct(e.schema.fields)).dictionaries}visit(e,t){return _d.DataType.isDictionary(t)?this.visitDictionary(e,t):(e.childData.forEach((i,n)=>this.visit(i,t.children[n].type)),this)}visitDictionary(e,t){let i=e.dictionary;return i&&i.length>0&&this.dictionaries.set(t.id,i),this}}});var ks=E(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.AsyncRecordBatchFileReader=Lt.RecordBatchFileReader=Lt.AsyncRecordBatchStreamReader=Lt.RecordBatchStreamReader=Lt.RecordBatchReader=void 0;var $g=Le(),Ja=Se(),Jg=Vc(),Qg=ns(),Zg=si(),Vs=Lc(),Xg=R_(),bd=Er(),Hi=en(),Pt=pa(),Nt=ct(),vr=class extends Hi.ReadableInterop{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 Nt.isPromise(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 Qg.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Qg.default.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof vr?e:Nt.isArrowJSON(e)?RE(e):Nt.isFileHandle(e)?UE(e):Nt.isPromise(e)?(async()=>await vr.from(await e))():Nt.isFetchResponse(e)||Nt.isReadableDOMStream(e)||Nt.isReadableNodeStream(e)||Nt.isAsyncIterable(e)?CE(new Zg.AsyncByteStream(e)):EE(new Zg.ByteStream(e))}static readAll(e){return e instanceof vr?e.isSync()?iv(e):nv(e):Nt.isArrowJSON(e)||ArrayBuffer.isView(e)||Nt.isIterable(e)||Nt.isIteratorResult(e)?iv(e):nv(e)}};Lt.RecordBatchReader=vr;var zn=class extends vr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}};Lt.RecordBatchStreamReader=zn;var Wn=class extends vr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};Lt.AsyncRecordBatchStreamReader=Wn;var Qa=class extends zn{constructor(e){super(e);this._impl=e}};Lt.RecordBatchFileReader=Qa;var gd=class extends Wn{constructor(e){super(e);this._impl=e}};Lt.AsyncRecordBatchFileReader=gd;var vd=class{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}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){return new bd.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:i,isDelta:n,data:s}=e,{dictionaries:c,schema:v}=this,B=c.get(i);if(n||!B){let S=v.dictionaries.get(i);return B&&n?B.concat($g.Vector.new(this._loadVectors(s,t,[S])[0])):$g.Vector.new(this._loadVectors(s,t,[S])[0])}return B}_loadVectors(e,t,i){return new Xg.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}},Ps=class extends vd{constructor(e,t){super(t);this._reader=Nt.isArrowJSON(e)?new Pt.JSONMessageReader(this._handle=e):new Pt.MessageReader(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=rv(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Hi.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Hi.ITERATOR_DONE}next(){if(this.closed)return Hi.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(i,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new bd._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Ns=class extends vd{constructor(e,t){super(t);this._reader=new Pt.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(e){return this.closed||(this.autoDestroy=rv(this,e),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(e):Hi.ITERATOR_DONE}async return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(e):Hi.ITERATOR_DONE}async next(){if(this.closed)return Hi.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=await this._readNextMessageAndValidate();)if(e.isSchema())await this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(i,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new bd._InternalEmptyPlaceholderRecordBatch(this.schema)}):await this.return()}async _readNextMessageAndValidate(e){return await this._reader.readMessage(e)}},jd=class extends Ps{constructor(e,t){super(e instanceof Vs.RandomAccessFile?e:new Vs.RandomAccessFile(e),t)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Ja.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null}_readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Ja.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,c)}}}_readFooter(){let{_handle:e}=this,t=e.size-Pt.magicAndPadding,i=e.readInt32(t),n=e.readAt(t-i,i);return Jg.Footer.decode(n)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}},ev=class extends Ns{constructor(e,...t){let i=typeof t[0]!="number"?t.shift():void 0,n=t[0]instanceof Map?t.shift():void 0;super(e instanceof Vs.AsyncRandomAccessFile?e:new Vs.AsyncRandomAccessFile(e,i),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}async open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=await this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&await this._readDictionaryBatch(this._dictionaryIndex++)}return await super.open(e)}async readRecordBatch(e){if(this.closed)return null;this._footer||await this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Ja.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),s=await this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null}async _readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Ja.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),s=await this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,c)}}}async _readFooter(){let{_handle:e}=this;e._pending&&await e._pending;let t=e.size-Pt.magicAndPadding,i=await e.readInt32(t),n=await e.readAt(t-i,i);return Jg.Footer.decode(n)}async _readNextMessageAndValidate(e){if(this._footer||await this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&await this._handle.seek(t.offset))return await this._reader.readMessage(e)}return null}},tv=class extends Ps{constructor(e,t){super(e,t)}_loadVectors(e,t,i){return new Xg.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}};function rv(r,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:r.autoDestroy}function*iv(r){let e=vr.from(r);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}async function*nv(r){let e=await vr.from(r);try{if(!(await e.open({autoDestroy:!1})).closed)do yield e;while(!(await e.reset().open()).closed)}finally{await e.cancel()}}function RE(r){return new zn(new tv(r))}function EE(r){let e=r.peek(Pt.magicLength+7&~7);return e&&e.byteLength>=4?Pt.checkForMagicArrowString(e)?new Qa(new jd(r.read())):new zn(new Ps(r)):new zn(new Ps(function*(){}()))}async function CE(r){let e=await r.peek(Pt.magicLength+7&~7);return e&&e.byteLength>=4?Pt.checkForMagicArrowString(e)?new Qa(new jd(await r.read())):new Wn(new Ns(r)):new Wn(new Ns(async function*(){}()))}async function UE(r){let{size:e}=await r.stat(),t=new Vs.AsyncRandomAccessFile(r,e);return e>=Pt.magicX2AndPadding&&Pt.checkForMagicArrowString(await t.readAt(0,Pt.magicLength+7&~7))?new gd(new ev(t)):new Wn(new Ns(t))}});var av=E(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.toDOMStream=void 0;var sv=Ge(),ov=ct();function ME(r,e){if(ov.isAsyncIterable(r))return VE(r,e);if(ov.isIterable(r))return kE(r,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}Za.toDOMStream=ME;function kE(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,start(c){s(c,t||(t=r[Symbol.iterator]()))},pull(c){t?s(c,t):c.close()},cancel(){(t&&t.return&&t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});function s(c,v){let B,S=null,C=c.desiredSize||null;for(;!(S=v.next(i?C:null)).done;)if(ArrayBuffer.isView(S.value)&&(B=sv.toUint8Array(S.value))&&(C!=null&&i&&(C=C-B.byteLength+1),S.value=B),c.enqueue(S.value),C!=null&&--C<=0)return;c.close()}}function VE(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,async start(c){await s(c,t||(t=r[Symbol.asyncIterator]()))},async pull(c){t?await s(c,t):c.close()},async cancel(){(t&&t.return&&await t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});async function s(c,v){let B,S=null,C=c.desiredSize||null;for(;!(S=await v.next(i?C:null)).done;)if(ArrayBuffer.isView(S.value)&&(B=sv.toUint8Array(S.value))&&(C!=null&&i&&(C=C-B.byteLength+1),S.value=B),c.enqueue(S.value),C!=null&&--C<=0)return;c.close()}}});var lv=E(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.BuilderTransform=Hn.builderThroughDOMStream=void 0;var PE=ea();function NE(r){return new wd(r)}Hn.builderThroughDOMStream=NE;var wd=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:i,["queueingStrategy"]:n="count",...s}=e;this._controller=null,this._builder=PE.Builder.new(s),this._getSize=n!=="bytes"?uv:cv;let{["highWaterMark"]:c=n==="bytes"?2**14:1e3}={...t},{["highWaterMark"]:v=n==="bytes"?2**14:1e3}={...i};this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:B=>{this._maybeFlush(this._builder,this._controller=B)},start:B=>{this._maybeFlush(this._builder,this._controller=B)}},{highWaterMark:c,size:n!=="bytes"?uv:cv}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:v,size:B=>this._writeValueAndReturnChunkSize(B)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){t!==null&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,t===null?e.close():e.enqueue(t)}};Hn.BuilderTransform=wd;var uv=r=>r.length,cv=r=>r.byteLength});var dv=E(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.recordBatchReaderThroughDOMStream=void 0;var LE=si(),xE=ks();function qE(r,e){let t=new LE.AsyncByteQueue,i=null,n=new ReadableStream({async cancel(){await t.close()},async start(v){await c(v,i||(i=await s()))},async pull(v){i?await c(v,i):v.close()}});return{writable:new WritableStream(t,{highWaterMark:2**14,...r}),readable:n};async function s(){return await(await xE.RecordBatchReader.from(t)).open(e)}async function c(v,B){let S=v.desiredSize,C=null;for(;!(C=await B.next()).done;)if(v.enqueue(C.value),S!=null&&--S<=0)return;v.close()}}Xa.recordBatchReaderThroughDOMStream=qE});var fv=E(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.recordBatchWriterThroughDOMStream=void 0;var zE=si();function WE(r,e){let t=new this(r),i=new zE.AsyncByteStream(t),n=new ReadableStream({type:"bytes",async cancel(){await i.cancel()},async pull(c){await s(c)},async start(c){await s(c)}},{highWaterMark:2**14,...e});return{writable:new WritableStream(t,r),readable:n};async function s(c){let v=null,B=c.desiredSize;for(;v=await i.read(B||null);)if(c.enqueue(v),B!=null&&(B-=v.byteLength)<=0)return;c.close()}}eu.recordBatchWriterThroughDOMStream=WE});var Fd=E(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.custom=fe.or=fe.and=fe.col=fe.lit=fe.CustomPredicate=fe.Not=fe.GTeq=fe.LTeq=fe.Equals=fe.Or=fe.And=fe.CombinationPredicate=fe.ComparisonPredicate=fe.Predicate=fe.Col=fe.Literal=fe.Value=void 0;var HE=Ea(),gi=class{eq(e){return e instanceof gi||(e=new Mr(e)),new Id(this,e)}le(e){return e instanceof gi||(e=new Mr(e)),new Bd(this,e)}ge(e){return e instanceof gi||(e=new Mr(e)),new Sd(this,e)}lt(e){return new $n(this.ge(e))}gt(e){return new $n(this.le(e))}ne(e){return new $n(this.eq(e))}};fe.Value=gi;var Mr=class extends gi{constructor(e){super();this.v=e}};fe.Literal=Mr;var Td=class extends gi{constructor(e){super();this.name=e}bind(e){if(!this.colidx){this.colidx=-1;let i=e.schema.fields;for(let n=-1;++n<i.length;)if(i[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error(`Failed to bind Col "${this.name}"`)}let t=this.vector=e.getChildAt(this.colidx);return i=>t.get(i)}};fe.Col=Td;var Yn=class{and(...e){return new Gn(this,...e)}or(...e){return new Kn(this,...e)}not(){return new $n(this)}};fe.Predicate=Yn;var Ls=class extends Yn{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Mr?this.right instanceof Mr?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Mr?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};fe.ComparisonPredicate=Ls;var xs=class extends Yn{constructor(...e){super();this.children=e}};fe.CombinationPredicate=xs;xs.prototype.children=Object.freeze([]);var Gn=class extends xs{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Gn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.every(s=>s(i,n))}};fe.And=Gn;var Kn=class extends xs{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Kn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.some(s=>s(i,n))}};fe.Or=Kn;var Id=class extends Ls{_bindLitLit(e,t,i){let n=t.v==i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)==s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);if(t.vector instanceof HE.DictionaryVector){let s,c=t.vector;return c.dictionary!==this.lastDictionary?(s=c.reverseLookup(i.v),this.lastDictionary=c.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:v=>c.getKey(v)===s}else return(s,c)=>n(s,c)==i.v}_bindLitCol(e,t,i){return this._bindColLit(e,i,t)}};fe.Equals=Id;var Bd=class extends Ls{_bindLitLit(e,t,i){let n=t.v<=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)<=s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);return(s,c)=>n(s,c)<=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,c)=>t.v<=n(s,c)}};fe.LTeq=Bd;var Sd=class extends Ls{_bindLitLit(e,t,i){let n=t.v>=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)>=s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);return(s,c)=>n(s,c)>=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,c)=>t.v>=n(s,c)}};fe.GTeq=Sd;var $n=class extends Yn{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(i,n)=>!t(i,n)}};fe.Not=$n;var Od=class extends Yn{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};fe.CustomPredicate=Od;function YE(r){return new Mr(r)}fe.lit=YE;function GE(r){return new Td(r)}fe.col=GE;function KE(...r){return new Gn(...r)}fe.and=KE;function $E(...r){return new Kn(...r)}fe.or=$E;function JE(r,e){return new Od(r,e)}fe.custom=JE});var _v=E(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.FilteredDataFrame=vi.CountByResult=vi.DataFrame=void 0;var Jn=Os(),hv=ka(),Dd=Xe(),pv=Fd(),QE=Er(),yv=ve();Jn.Table.prototype.countBy=function(r){return new Yi(this.chunks).countBy(r)};Jn.Table.prototype.scan=function(r,e){return new Yi(this.chunks).scan(r,e)};Jn.Table.prototype.scanReverse=function(r,e){return new Yi(this.chunks).scanReverse(r,e)};Jn.Table.prototype.filter=function(r){return new Yi(this.chunks).filter(r)};var Yi=class extends Jn.Table{filter(e){return new qs(this.chunks,e)}scan(e,t){let i=this.chunks,n=i.length;for(let s=-1;++s<n;){let c=i[s];t&&t(c);for(let v=-1,B=c.length;++v<B;)e(v,c)}}scanReverse(e,t){let i=this.chunks,n=i.length;for(let s=n;--s>=0;){let c=i[s];t&&t(c);for(let v=c.length;--v>=0;)e(v,c)}}countBy(e){let t=this.chunks,i=t.length,n=typeof e=="string"?new pv.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!yv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(s.length)/Math.log(256)),v=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,B=new v(s.dictionary.length);for(let S=-1;++S<i;){let C=t[S];n.bind(C);let K=n.vector.indices;for(let be=-1,pe=C.length;++be<pe;){let Zt=K.get(be);Zt!==null&&B[Zt]++}}return new tu(s.dictionary,hv.IntVector.from(B))}};vi.DataFrame=Yi;var tu=class extends Jn.Table{constructor(e,t){let i=new Dd.Schema([new Dd.Field("values",e.type),new Dd.Field("counts",t.type)]);super(new QE.RecordBatch(i,t.length,[e,t]))}toJSON(){let e=this.getColumnAt(0),t=this.getColumnAt(1),i={};for(let n=-1;++n<this.length;)i[e.get(n)]=t.get(n);return i}};vi.CountByResult=tu;var mv=class{constructor(e,t){this.batches=e,this.predicate=t,this.batchIndex=0,this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch)}next(){for(;this.batchIndex<this.batches.length;){for(;this.index<this.batch.length;){if(this.predicateFunc(this.index,this.batch))return{value:this.batch.get(this.index++)};this.index++}++this.batchIndex<this.batches.length&&(this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch))}return{done:!0,value:null}}[Symbol.iterator](){return this}},qs=class extends Yi{constructor(e,t){super(e);this._predicate=t}scan(e,t){let i=this._chunks,n=i.length;for(let s=-1;++s<n;){let c=i[s],v=this._predicate.bind(c),B=!1;for(let S=-1,C=c.length;++S<C;)v(S,c)&&(t&&!B&&(t(c),B=!0),e(S,c))}}scanReverse(e,t){let i=this._chunks,n=i.length;for(let s=n;--s>=0;){let c=i[s],v=this._predicate.bind(c),B=!1;for(let S=c.length;--S>=0;)v(S,c)&&(t&&!B&&(t(c),B=!0),e(S,c))}}count(){let e=0,t=this._chunks,i=t.length;for(let n=-1;++n<i;){let s=t[n],c=this._predicate.bind(s);for(let v=-1,B=s.length;++v<B;)c(v,s)&&++e}return e}[Symbol.iterator](){return new mv(this._chunks,this._predicate)}filter(e){return new qs(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,i=t.length,n=typeof e=="string"?new pv.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!yv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(s.length)/Math.log(256)),v=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,B=new v(s.dictionary.length);for(let S=-1;++S<i;){let C=t[S],K=this._predicate.bind(C);n.bind(C);let be=n.vector.indices;for(let pe=-1,Zt=C.length;++pe<Zt;){let kr=be.get(pe);kr!==null&&K(pe,C)&&B[kr]++}}return new tu(s.dictionary,hv.IntVector.from(B))}};vi.FilteredDataFrame=qs});var vv=E(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.util=_.predicate=_.CountByResult=_.FilteredDataFrame=_.DataFrame=_.RecordBatch=_.Message=_.JSONMessageReader=_.AsyncMessageReader=_.MessageReader=_.RecordBatchJSONWriter=_.RecordBatchStreamWriter=_.RecordBatchFileWriter=_.RecordBatchWriter=_.AsyncRecordBatchStreamReader=_.AsyncRecordBatchFileReader=_.RecordBatchStreamReader=_.RecordBatchFileReader=_.RecordBatchReader=_.AsyncByteQueue=_.AsyncByteStream=_.ByteStream=_.Utf8Builder=_.SparseUnionBuilder=_.DenseUnionBuilder=_.UnionBuilder=_.TimeNanosecondBuilder=_.TimeMicrosecondBuilder=_.TimeMillisecondBuilder=_.TimeSecondBuilder=_.TimeBuilder=_.TimestampNanosecondBuilder=_.TimestampMicrosecondBuilder=_.TimestampMillisecondBuilder=_.TimestampSecondBuilder=_.TimestampBuilder=_.StructBuilder=_.NullBuilder=_.MapBuilder=_.ListBuilder=_.Uint64Builder=_.Uint32Builder=_.Uint16Builder=_.Uint8Builder=_.Int64Builder=_.Int32Builder=_.Int16Builder=_.Int8Builder=_.IntBuilder=_.IntervalYearMonthBuilder=_.IntervalDayTimeBuilder=_.IntervalBuilder=_.Float64Builder=_.Float32Builder=_.Float16Builder=_.FloatBuilder=_.FixedSizeListBuilder=_.FixedSizeBinaryBuilder=_.DictionaryBuilder=_.DecimalBuilder=_.DateMillisecondBuilder=_.DateDayBuilder=_.DateBuilder=_.BoolBuilder=_.BinaryBuilder=_.Builder=_.Utf8Vector=_.SparseUnionVector=_.DenseUnionVector=_.UnionVector=_.TimeNanosecondVector=_.TimeMicrosecondVector=_.TimeMillisecondVector=_.TimeSecondVector=_.TimeVector=_.TimestampNanosecondVector=_.TimestampMicrosecondVector=_.TimestampMillisecondVector=_.TimestampSecondVector=_.TimestampVector=_.StructVector=_.NullVector=_.MapVector=_.ListVector=_.Uint64Vector=_.Uint32Vector=_.Uint16Vector=_.Uint8Vector=_.Int64Vector=_.Int32Vector=_.Int16Vector=_.Int8Vector=_.IntVector=_.IntervalYearMonthVector=_.IntervalDayTimeVector=_.IntervalVector=_.Float64Vector=_.Float32Vector=_.Float16Vector=_.FloatVector=_.FixedSizeListVector=_.FixedSizeBinaryVector=_.DictionaryVector=_.DecimalVector=_.DateMillisecondVector=_.DateDayVector=_.DateVector=_.Chunked=_.BoolVector=_.BinaryVector=_.BaseVector=_.Vector=_.Field=_.Schema=_.Visitor=_.Column=_.Table=_.Map_=_.FixedSizeList=_.IntervalYearMonth=_.IntervalDayTime=_.Interval=_.Dictionary=_.SparseUnion=_.DenseUnion=_.Union=_.Struct=_.List=_.Decimal=_.TimeNanosecond=_.TimeMicrosecond=_.TimeMillisecond=_.TimeSecond=_.Time=_.TimestampNanosecond=_.TimestampMicrosecond=_.TimestampMillisecond=_.TimestampSecond=_.Timestamp=_.DateMillisecond=_.DateDay=_.Date_=_.FixedSizeBinary=_.Binary=_.Utf8=_.Float64=_.Float32=_.Float16=_.Float=_.Uint64=_.Uint32=_.Uint16=_.Uint8=_.Int64=_.Int32=_.Int16=_.Int8=_.Int=_.Bool=_.Null=_.DataType=_.Data=_.BufferType=_.Type=_.MessageHeader=_.MetadataVersion=_.IntervalUnit=_.UnionMode=_.Precision=_.TimeUnit=_.DateUnit=void 0;var Qn=Gr();Object.defineProperty(_,"DateUnit",{enumerable:!0,get:function(){return Qn.DateUnit}});Object.defineProperty(_,"TimeUnit",{enumerable:!0,get:function(){return Qn.TimeUnit}});Object.defineProperty(_,"Precision",{enumerable:!0,get:function(){return Qn.Precision}});Object.defineProperty(_,"UnionMode",{enumerable:!0,get:function(){return Qn.UnionMode}});Object.defineProperty(_,"IntervalUnit",{enumerable:!0,get:function(){return Qn.IntervalUnit}});Object.defineProperty(_,"MetadataVersion",{enumerable:!0,get:function(){return Qn.MetadataVersion}});var ZE=po();Object.defineProperty(_,"MessageHeader",{enumerable:!0,get:function(){return ZE.MessageHeader}});var bv=Se();Object.defineProperty(_,"Type",{enumerable:!0,get:function(){return bv.Type}});Object.defineProperty(_,"BufferType",{enumerable:!0,get:function(){return bv.BufferType}});var XE=Yt();Object.defineProperty(_,"Data",{enumerable:!0,get:function(){return XE.Data}});var ne=ve();Object.defineProperty(_,"DataType",{enumerable:!0,get:function(){return ne.DataType}});Object.defineProperty(_,"Null",{enumerable:!0,get:function(){return ne.Null}});Object.defineProperty(_,"Bool",{enumerable:!0,get:function(){return ne.Bool}});Object.defineProperty(_,"Int",{enumerable:!0,get:function(){return ne.Int}});Object.defineProperty(_,"Int8",{enumerable:!0,get:function(){return ne.Int8}});Object.defineProperty(_,"Int16",{enumerable:!0,get:function(){return ne.Int16}});Object.defineProperty(_,"Int32",{enumerable:!0,get:function(){return ne.Int32}});Object.defineProperty(_,"Int64",{enumerable:!0,get:function(){return ne.Int64}});Object.defineProperty(_,"Uint8",{enumerable:!0,get:function(){return ne.Uint8}});Object.defineProperty(_,"Uint16",{enumerable:!0,get:function(){return ne.Uint16}});Object.defineProperty(_,"Uint32",{enumerable:!0,get:function(){return ne.Uint32}});Object.defineProperty(_,"Uint64",{enumerable:!0,get:function(){return ne.Uint64}});Object.defineProperty(_,"Float",{enumerable:!0,get:function(){return ne.Float}});Object.defineProperty(_,"Float16",{enumerable:!0,get:function(){return ne.Float16}});Object.defineProperty(_,"Float32",{enumerable:!0,get:function(){return ne.Float32}});Object.defineProperty(_,"Float64",{enumerable:!0,get:function(){return ne.Float64}});Object.defineProperty(_,"Utf8",{enumerable:!0,get:function(){return ne.Utf8}});Object.defineProperty(_,"Binary",{enumerable:!0,get:function(){return ne.Binary}});Object.defineProperty(_,"FixedSizeBinary",{enumerable:!0,get:function(){return ne.FixedSizeBinary}});Object.defineProperty(_,"Date_",{enumerable:!0,get:function(){return ne.Date_}});Object.defineProperty(_,"DateDay",{enumerable:!0,get:function(){return ne.DateDay}});Object.defineProperty(_,"DateMillisecond",{enumerable:!0,get:function(){return ne.DateMillisecond}});Object.defineProperty(_,"Timestamp",{enumerable:!0,get:function(){return ne.Timestamp}});Object.defineProperty(_,"TimestampSecond",{enumerable:!0,get:function(){return ne.TimestampSecond}});Object.defineProperty(_,"TimestampMillisecond",{enumerable:!0,get:function(){return ne.TimestampMillisecond}});Object.defineProperty(_,"TimestampMicrosecond",{enumerable:!0,get:function(){return ne.TimestampMicrosecond}});Object.defineProperty(_,"TimestampNanosecond",{enumerable:!0,get:function(){return ne.TimestampNanosecond}});Object.defineProperty(_,"Time",{enumerable:!0,get:function(){return ne.Time}});Object.defineProperty(_,"TimeSecond",{enumerable:!0,get:function(){return ne.TimeSecond}});Object.defineProperty(_,"TimeMillisecond",{enumerable:!0,get:function(){return ne.TimeMillisecond}});Object.defineProperty(_,"TimeMicrosecond",{enumerable:!0,get:function(){return ne.TimeMicrosecond}});Object.defineProperty(_,"TimeNanosecond",{enumerable:!0,get:function(){return ne.TimeNanosecond}});Object.defineProperty(_,"Decimal",{enumerable:!0,get:function(){return ne.Decimal}});Object.defineProperty(_,"List",{enumerable:!0,get:function(){return ne.List}});Object.defineProperty(_,"Struct",{enumerable:!0,get:function(){return ne.Struct}});Object.defineProperty(_,"Union",{enumerable:!0,get:function(){return ne.Union}});Object.defineProperty(_,"DenseUnion",{enumerable:!0,get:function(){return ne.DenseUnion}});Object.defineProperty(_,"SparseUnion",{enumerable:!0,get:function(){return ne.SparseUnion}});Object.defineProperty(_,"Dictionary",{enumerable:!0,get:function(){return ne.Dictionary}});Object.defineProperty(_,"Interval",{enumerable:!0,get:function(){return ne.Interval}});Object.defineProperty(_,"IntervalDayTime",{enumerable:!0,get:function(){return ne.IntervalDayTime}});Object.defineProperty(_,"IntervalYearMonth",{enumerable:!0,get:function(){return ne.IntervalYearMonth}});Object.defineProperty(_,"FixedSizeList",{enumerable:!0,get:function(){return ne.FixedSizeList}});Object.defineProperty(_,"Map_",{enumerable:!0,get:function(){return ne.Map_}});var eC=Os();Object.defineProperty(_,"Table",{enumerable:!0,get:function(){return eC.Table}});var tC=On();Object.defineProperty(_,"Column",{enumerable:!0,get:function(){return tC.Column}});var rC=it();Object.defineProperty(_,"Visitor",{enumerable:!0,get:function(){return rC.Visitor}});var gv=Xe();Object.defineProperty(_,"Schema",{enumerable:!0,get:function(){return gv.Schema}});Object.defineProperty(_,"Field",{enumerable:!0,get:function(){return gv.Field}});var te=mr();Object.defineProperty(_,"Vector",{enumerable:!0,get:function(){return te.Vector}});Object.defineProperty(_,"BaseVector",{enumerable:!0,get:function(){return te.BaseVector}});Object.defineProperty(_,"BinaryVector",{enumerable:!0,get:function(){return te.BinaryVector}});Object.defineProperty(_,"BoolVector",{enumerable:!0,get:function(){return te.BoolVector}});Object.defineProperty(_,"Chunked",{enumerable:!0,get:function(){return te.Chunked}});Object.defineProperty(_,"DateVector",{enumerable:!0,get:function(){return te.DateVector}});Object.defineProperty(_,"DateDayVector",{enumerable:!0,get:function(){return te.DateDayVector}});Object.defineProperty(_,"DateMillisecondVector",{enumerable:!0,get:function(){return te.DateMillisecondVector}});Object.defineProperty(_,"DecimalVector",{enumerable:!0,get:function(){return te.DecimalVector}});Object.defineProperty(_,"DictionaryVector",{enumerable:!0,get:function(){return te.DictionaryVector}});Object.defineProperty(_,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return te.FixedSizeBinaryVector}});Object.defineProperty(_,"FixedSizeListVector",{enumerable:!0,get:function(){return te.FixedSizeListVector}});Object.defineProperty(_,"FloatVector",{enumerable:!0,get:function(){return te.FloatVector}});Object.defineProperty(_,"Float16Vector",{enumerable:!0,get:function(){return te.Float16Vector}});Object.defineProperty(_,"Float32Vector",{enumerable:!0,get:function(){return te.Float32Vector}});Object.defineProperty(_,"Float64Vector",{enumerable:!0,get:function(){return te.Float64Vector}});Object.defineProperty(_,"IntervalVector",{enumerable:!0,get:function(){return te.IntervalVector}});Object.defineProperty(_,"IntervalDayTimeVector",{enumerable:!0,get:function(){return te.IntervalDayTimeVector}});Object.defineProperty(_,"IntervalYearMonthVector",{enumerable:!0,get:function(){return te.IntervalYearMonthVector}});Object.defineProperty(_,"IntVector",{enumerable:!0,get:function(){return te.IntVector}});Object.defineProperty(_,"Int8Vector",{enumerable:!0,get:function(){return te.Int8Vector}});Object.defineProperty(_,"Int16Vector",{enumerable:!0,get:function(){return te.Int16Vector}});Object.defineProperty(_,"Int32Vector",{enumerable:!0,get:function(){return te.Int32Vector}});Object.defineProperty(_,"Int64Vector",{enumerable:!0,get:function(){return te.Int64Vector}});Object.defineProperty(_,"Uint8Vector",{enumerable:!0,get:function(){return te.Uint8Vector}});Object.defineProperty(_,"Uint16Vector",{enumerable:!0,get:function(){return te.Uint16Vector}});Object.defineProperty(_,"Uint32Vector",{enumerable:!0,get:function(){return te.Uint32Vector}});Object.defineProperty(_,"Uint64Vector",{enumerable:!0,get:function(){return te.Uint64Vector}});Object.defineProperty(_,"ListVector",{enumerable:!0,get:function(){return te.ListVector}});Object.defineProperty(_,"MapVector",{enumerable:!0,get:function(){return te.MapVector}});Object.defineProperty(_,"NullVector",{enumerable:!0,get:function(){return te.NullVector}});Object.defineProperty(_,"StructVector",{enumerable:!0,get:function(){return te.StructVector}});Object.defineProperty(_,"TimestampVector",{enumerable:!0,get:function(){return te.TimestampVector}});Object.defineProperty(_,"TimestampSecondVector",{enumerable:!0,get:function(){return te.TimestampSecondVector}});Object.defineProperty(_,"TimestampMillisecondVector",{enumerable:!0,get:function(){return te.TimestampMillisecondVector}});Object.defineProperty(_,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return te.TimestampMicrosecondVector}});Object.defineProperty(_,"TimestampNanosecondVector",{enumerable:!0,get:function(){return te.TimestampNanosecondVector}});Object.defineProperty(_,"TimeVector",{enumerable:!0,get:function(){return te.TimeVector}});Object.defineProperty(_,"TimeSecondVector",{enumerable:!0,get:function(){return te.TimeSecondVector}});Object.defineProperty(_,"TimeMillisecondVector",{enumerable:!0,get:function(){return te.TimeMillisecondVector}});Object.defineProperty(_,"TimeMicrosecondVector",{enumerable:!0,get:function(){return te.TimeMicrosecondVector}});Object.defineProperty(_,"TimeNanosecondVector",{enumerable:!0,get:function(){return te.TimeNanosecondVector}});Object.defineProperty(_,"UnionVector",{enumerable:!0,get:function(){return te.UnionVector}});Object.defineProperty(_,"DenseUnionVector",{enumerable:!0,get:function(){return te.DenseUnionVector}});Object.defineProperty(_,"SparseUnionVector",{enumerable:!0,get:function(){return te.SparseUnionVector}});Object.defineProperty(_,"Utf8Vector",{enumerable:!0,get:function(){return te.Utf8Vector}});var se=ea();Object.defineProperty(_,"Builder",{enumerable:!0,get:function(){return se.Builder}});Object.defineProperty(_,"BinaryBuilder",{enumerable:!0,get:function(){return se.BinaryBuilder}});Object.defineProperty(_,"BoolBuilder",{enumerable:!0,get:function(){return se.BoolBuilder}});Object.defineProperty(_,"DateBuilder",{enumerable:!0,get:function(){return se.DateBuilder}});Object.defineProperty(_,"DateDayBuilder",{enumerable:!0,get:function(){return se.DateDayBuilder}});Object.defineProperty(_,"DateMillisecondBuilder",{enumerable:!0,get:function(){return se.DateMillisecondBuilder}});Object.defineProperty(_,"DecimalBuilder",{enumerable:!0,get:function(){return se.DecimalBuilder}});Object.defineProperty(_,"DictionaryBuilder",{enumerable:!0,get:function(){return se.DictionaryBuilder}});Object.defineProperty(_,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return se.FixedSizeBinaryBuilder}});Object.defineProperty(_,"FixedSizeListBuilder",{enumerable:!0,get:function(){return se.FixedSizeListBuilder}});Object.defineProperty(_,"FloatBuilder",{enumerable:!0,get:function(){return se.FloatBuilder}});Object.defineProperty(_,"Float16Builder",{enumerable:!0,get:function(){return se.Float16Builder}});Object.defineProperty(_,"Float32Builder",{enumerable:!0,get:function(){return se.Float32Builder}});Object.defineProperty(_,"Float64Builder",{enumerable:!0,get:function(){return se.Float64Builder}});Object.defineProperty(_,"IntervalBuilder",{enumerable:!0,get:function(){return se.IntervalBuilder}});Object.defineProperty(_,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return se.IntervalDayTimeBuilder}});Object.defineProperty(_,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return se.IntervalYearMonthBuilder}});Object.defineProperty(_,"IntBuilder",{enumerable:!0,get:function(){return se.IntBuilder}});Object.defineProperty(_,"Int8Builder",{enumerable:!0,get:function(){return se.Int8Builder}});Object.defineProperty(_,"Int16Builder",{enumerable:!0,get:function(){return se.Int16Builder}});Object.defineProperty(_,"Int32Builder",{enumerable:!0,get:function(){return se.Int32Builder}});Object.defineProperty(_,"Int64Builder",{enumerable:!0,get:function(){return se.Int64Builder}});Object.defineProperty(_,"Uint8Builder",{enumerable:!0,get:function(){return se.Uint8Builder}});Object.defineProperty(_,"Uint16Builder",{enumerable:!0,get:function(){return se.Uint16Builder}});Object.defineProperty(_,"Uint32Builder",{enumerable:!0,get:function(){return se.Uint32Builder}});Object.defineProperty(_,"Uint64Builder",{enumerable:!0,get:function(){return se.Uint64Builder}});Object.defineProperty(_,"ListBuilder",{enumerable:!0,get:function(){return se.ListBuilder}});Object.defineProperty(_,"MapBuilder",{enumerable:!0,get:function(){return se.MapBuilder}});Object.defineProperty(_,"NullBuilder",{enumerable:!0,get:function(){return se.NullBuilder}});Object.defineProperty(_,"StructBuilder",{enumerable:!0,get:function(){return se.StructBuilder}});Object.defineProperty(_,"TimestampBuilder",{enumerable:!0,get:function(){return se.TimestampBuilder}});Object.defineProperty(_,"TimestampSecondBuilder",{enumerable:!0,get:function(){return se.TimestampSecondBuilder}});Object.defineProperty(_,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return se.TimestampMillisecondBuilder}});Object.defineProperty(_,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return se.TimestampMicrosecondBuilder}});Object.defineProperty(_,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return se.TimestampNanosecondBuilder}});Object.defineProperty(_,"TimeBuilder",{enumerable:!0,get:function(){return se.TimeBuilder}});Object.defineProperty(_,"TimeSecondBuilder",{enumerable:!0,get:function(){return se.TimeSecondBuilder}});Object.defineProperty(_,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return se.TimeMillisecondBuilder}});Object.defineProperty(_,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return se.TimeMicrosecondBuilder}});Object.defineProperty(_,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return se.TimeNanosecondBuilder}});Object.defineProperty(_,"UnionBuilder",{enumerable:!0,get:function(){return se.UnionBuilder}});Object.defineProperty(_,"DenseUnionBuilder",{enumerable:!0,get:function(){return se.DenseUnionBuilder}});Object.defineProperty(_,"SparseUnionBuilder",{enumerable:!0,get:function(){return se.SparseUnionBuilder}});Object.defineProperty(_,"Utf8Builder",{enumerable:!0,get:function(){return se.Utf8Builder}});var Ad=si();Object.defineProperty(_,"ByteStream",{enumerable:!0,get:function(){return Ad.ByteStream}});Object.defineProperty(_,"AsyncByteStream",{enumerable:!0,get:function(){return Ad.AsyncByteStream}});Object.defineProperty(_,"AsyncByteQueue",{enumerable:!0,get:function(){return Ad.AsyncByteQueue}});var zs=ks();Object.defineProperty(_,"RecordBatchReader",{enumerable:!0,get:function(){return zs.RecordBatchReader}});Object.defineProperty(_,"RecordBatchFileReader",{enumerable:!0,get:function(){return zs.RecordBatchFileReader}});Object.defineProperty(_,"RecordBatchStreamReader",{enumerable:!0,get:function(){return zs.RecordBatchStreamReader}});Object.defineProperty(_,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return zs.AsyncRecordBatchFileReader}});Object.defineProperty(_,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return zs.AsyncRecordBatchStreamReader}});var ru=Ba();Object.defineProperty(_,"RecordBatchWriter",{enumerable:!0,get:function(){return ru.RecordBatchWriter}});Object.defineProperty(_,"RecordBatchFileWriter",{enumerable:!0,get:function(){return ru.RecordBatchFileWriter}});Object.defineProperty(_,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return ru.RecordBatchStreamWriter}});Object.defineProperty(_,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return ru.RecordBatchJSONWriter}});var Rd=pa();Object.defineProperty(_,"MessageReader",{enumerable:!0,get:function(){return Rd.MessageReader}});Object.defineProperty(_,"AsyncMessageReader",{enumerable:!0,get:function(){return Rd.AsyncMessageReader}});Object.defineProperty(_,"JSONMessageReader",{enumerable:!0,get:function(){return Rd.JSONMessageReader}});var iC=Ni();Object.defineProperty(_,"Message",{enumerable:!0,get:function(){return iC.Message}});var nC=Er();Object.defineProperty(_,"RecordBatch",{enumerable:!0,get:function(){return nC.RecordBatch}});var Ed=_v();Object.defineProperty(_,"DataFrame",{enumerable:!0,get:function(){return Ed.DataFrame}});Object.defineProperty(_,"FilteredDataFrame",{enumerable:!0,get:function(){return Ed.FilteredDataFrame}});Object.defineProperty(_,"CountByResult",{enumerable:!0,get:function(){return Ed.CountByResult}});var sC=ls(),oC=qc(),aC=sr(),uC=os(),cC=Ge(),lC=bs(),dC=Fd();_.predicate=dC;var Cd=nl();_.util={...sC,...oC,...aC,...uC,...cC,...lC,compareSchemas:Cd.compareSchemas,compareFields:Cd.compareFields,compareTypes:Cd.compareTypes}});var Pd=E(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.Utf8Builder=b.SparseUnionBuilder=b.DenseUnionBuilder=b.UnionBuilder=b.TimeNanosecondBuilder=b.TimeMicrosecondBuilder=b.TimeMillisecondBuilder=b.TimeSecondBuilder=b.TimeBuilder=b.TimestampNanosecondBuilder=b.TimestampMicrosecondBuilder=b.TimestampMillisecondBuilder=b.TimestampSecondBuilder=b.TimestampBuilder=b.StructBuilder=b.NullBuilder=b.MapBuilder=b.ListBuilder=b.Uint64Builder=b.Uint32Builder=b.Uint16Builder=b.Uint8Builder=b.Int64Builder=b.Int32Builder=b.Int16Builder=b.Int8Builder=b.IntBuilder=b.IntervalYearMonthBuilder=b.IntervalDayTimeBuilder=b.IntervalBuilder=b.Float64Builder=b.Float32Builder=b.Float16Builder=b.FloatBuilder=b.FixedSizeListBuilder=b.FixedSizeBinaryBuilder=b.DictionaryBuilder=b.DecimalBuilder=b.DateMillisecondBuilder=b.DateDayBuilder=b.DateBuilder=b.BoolBuilder=b.BinaryBuilder=b.Builder=b.util=b.predicate=b.CountByResult=b.FilteredDataFrame=b.DataFrame=b.RecordBatch=b.Message=b.JSONMessageReader=b.AsyncMessageReader=b.MessageReader=b.RecordBatchJSONWriter=b.RecordBatchStreamWriter=b.RecordBatchFileWriter=b.RecordBatchWriter=b.AsyncRecordBatchStreamReader=b.AsyncRecordBatchFileReader=b.RecordBatchStreamReader=b.RecordBatchFileReader=b.RecordBatchReader=b.AsyncByteQueue=b.AsyncByteStream=b.ByteStream=b.Utf8Vector=b.SparseUnionVector=b.DenseUnionVector=b.UnionVector=b.TimeNanosecondVector=b.TimeMicrosecondVector=b.TimeMillisecondVector=b.TimeSecondVector=b.TimeVector=b.TimestampNanosecondVector=b.TimestampMicrosecondVector=b.TimestampMillisecondVector=b.TimestampSecondVector=b.TimestampVector=b.StructVector=b.NullVector=b.MapVector=b.ListVector=b.Uint64Vector=b.Uint32Vector=b.Uint16Vector=b.Uint8Vector=b.Int64Vector=b.Int32Vector=b.Int16Vector=b.Int8Vector=b.IntVector=b.IntervalYearMonthVector=b.IntervalDayTimeVector=b.IntervalVector=b.Float64Vector=b.Float32Vector=b.Float16Vector=b.FloatVector=b.FixedSizeListVector=b.FixedSizeBinaryVector=b.DictionaryVector=b.DecimalVector=b.DateMillisecondVector=b.DateDayVector=b.DateVector=b.Chunked=b.BoolVector=b.BinaryVector=b.BaseVector=b.Vector=b.Visitor=b.Field=b.Schema=b.Column=b.Table=b.Map_=b.FixedSizeList=b.IntervalYearMonth=b.IntervalDayTime=b.Interval=b.Dictionary=b.SparseUnion=b.DenseUnion=b.Union=b.Struct=b.List=b.Decimal=b.TimeNanosecond=b.TimeMicrosecond=b.TimeMillisecond=b.TimeSecond=b.Time=b.TimestampNanosecond=b.TimestampMicrosecond=b.TimestampMillisecond=b.TimestampSecond=b.Timestamp=b.DateMillisecond=b.DateDay=b.Date_=b.FixedSizeBinary=b.Binary=b.Utf8=b.Float64=b.Float32=b.Float16=b.Float=b.Uint64=b.Uint32=b.Uint16=b.Uint8=b.Int64=b.Int32=b.Int16=b.Int8=b.Int=b.Bool=b.Null=b.DataType=b.Data=b.BufferType=b.UnionMode=b.Type=b.TimeUnit=b.Precision=b.MetadataVersion=b.MessageHeader=b.IntervalUnit=b.DateUnit=void 0;var fC=ns(),hC=ea(),Ud=ks(),Md=Ba(),pC=av(),yC=lv(),kd=dv(),Vd=fv();fC.default.toDOMStream=pC.toDOMStream;hC.Builder.throughDOM=yC.builderThroughDOMStream;Ud.RecordBatchReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Ud.RecordBatchFileReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Ud.RecordBatchStreamReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Md.RecordBatchWriter.throughDOM=Vd.recordBatchWriterThroughDOMStream;Md.RecordBatchFileWriter.throughDOM=Vd.recordBatchWriterThroughDOMStream;Md.RecordBatchStreamWriter.throughDOM=Vd.recordBatchWriterThroughDOMStream;var O=vv();Object.defineProperty(b,"DateUnit",{enumerable:!0,get:function(){return O.DateUnit}});Object.defineProperty(b,"IntervalUnit",{enumerable:!0,get:function(){return O.IntervalUnit}});Object.defineProperty(b,"MessageHeader",{enumerable:!0,get:function(){return O.MessageHeader}});Object.defineProperty(b,"MetadataVersion",{enumerable:!0,get:function(){return O.MetadataVersion}});Object.defineProperty(b,"Precision",{enumerable:!0,get:function(){return O.Precision}});Object.defineProperty(b,"TimeUnit",{enumerable:!0,get:function(){return O.TimeUnit}});Object.defineProperty(b,"Type",{enumerable:!0,get:function(){return O.Type}});Object.defineProperty(b,"UnionMode",{enumerable:!0,get:function(){return O.UnionMode}});Object.defineProperty(b,"BufferType",{enumerable:!0,get:function(){return O.BufferType}});Object.defineProperty(b,"Data",{enumerable:!0,get:function(){return O.Data}});Object.defineProperty(b,"DataType",{enumerable:!0,get:function(){return O.DataType}});Object.defineProperty(b,"Null",{enumerable:!0,get:function(){return O.Null}});Object.defineProperty(b,"Bool",{enumerable:!0,get:function(){return O.Bool}});Object.defineProperty(b,"Int",{enumerable:!0,get:function(){return O.Int}});Object.defineProperty(b,"Int8",{enumerable:!0,get:function(){return O.Int8}});Object.defineProperty(b,"Int16",{enumerable:!0,get:function(){return O.Int16}});Object.defineProperty(b,"Int32",{enumerable:!0,get:function(){return O.Int32}});Object.defineProperty(b,"Int64",{enumerable:!0,get:function(){return O.Int64}});Object.defineProperty(b,"Uint8",{enumerable:!0,get:function(){return O.Uint8}});Object.defineProperty(b,"Uint16",{enumerable:!0,get:function(){return O.Uint16}});Object.defineProperty(b,"Uint32",{enumerable:!0,get:function(){return O.Uint32}});Object.defineProperty(b,"Uint64",{enumerable:!0,get:function(){return O.Uint64}});Object.defineProperty(b,"Float",{enumerable:!0,get:function(){return O.Float}});Object.defineProperty(b,"Float16",{enumerable:!0,get:function(){return O.Float16}});Object.defineProperty(b,"Float32",{enumerable:!0,get:function(){return O.Float32}});Object.defineProperty(b,"Float64",{enumerable:!0,get:function(){return O.Float64}});Object.defineProperty(b,"Utf8",{enumerable:!0,get:function(){return O.Utf8}});Object.defineProperty(b,"Binary",{enumerable:!0,get:function(){return O.Binary}});Object.defineProperty(b,"FixedSizeBinary",{enumerable:!0,get:function(){return O.FixedSizeBinary}});Object.defineProperty(b,"Date_",{enumerable:!0,get:function(){return O.Date_}});Object.defineProperty(b,"DateDay",{enumerable:!0,get:function(){return O.DateDay}});Object.defineProperty(b,"DateMillisecond",{enumerable:!0,get:function(){return O.DateMillisecond}});Object.defineProperty(b,"Timestamp",{enumerable:!0,get:function(){return O.Timestamp}});Object.defineProperty(b,"TimestampSecond",{enumerable:!0,get:function(){return O.TimestampSecond}});Object.defineProperty(b,"TimestampMillisecond",{enumerable:!0,get:function(){return O.TimestampMillisecond}});Object.defineProperty(b,"TimestampMicrosecond",{enumerable:!0,get:function(){return O.TimestampMicrosecond}});Object.defineProperty(b,"TimestampNanosecond",{enumerable:!0,get:function(){return O.TimestampNanosecond}});Object.defineProperty(b,"Time",{enumerable:!0,get:function(){return O.Time}});Object.defineProperty(b,"TimeSecond",{enumerable:!0,get:function(){return O.TimeSecond}});Object.defineProperty(b,"TimeMillisecond",{enumerable:!0,get:function(){return O.TimeMillisecond}});Object.defineProperty(b,"TimeMicrosecond",{enumerable:!0,get:function(){return O.TimeMicrosecond}});Object.defineProperty(b,"TimeNanosecond",{enumerable:!0,get:function(){return O.TimeNanosecond}});Object.defineProperty(b,"Decimal",{enumerable:!0,get:function(){return O.Decimal}});Object.defineProperty(b,"List",{enumerable:!0,get:function(){return O.List}});Object.defineProperty(b,"Struct",{enumerable:!0,get:function(){return O.Struct}});Object.defineProperty(b,"Union",{enumerable:!0,get:function(){return O.Union}});Object.defineProperty(b,"DenseUnion",{enumerable:!0,get:function(){return O.DenseUnion}});Object.defineProperty(b,"SparseUnion",{enumerable:!0,get:function(){return O.SparseUnion}});Object.defineProperty(b,"Dictionary",{enumerable:!0,get:function(){return O.Dictionary}});Object.defineProperty(b,"Interval",{enumerable:!0,get:function(){return O.Interval}});Object.defineProperty(b,"IntervalDayTime",{enumerable:!0,get:function(){return O.IntervalDayTime}});Object.defineProperty(b,"IntervalYearMonth",{enumerable:!0,get:function(){return O.IntervalYearMonth}});Object.defineProperty(b,"FixedSizeList",{enumerable:!0,get:function(){return O.FixedSizeList}});Object.defineProperty(b,"Map_",{enumerable:!0,get:function(){return O.Map_}});Object.defineProperty(b,"Table",{enumerable:!0,get:function(){return O.Table}});Object.defineProperty(b,"Column",{enumerable:!0,get:function(){return O.Column}});Object.defineProperty(b,"Schema",{enumerable:!0,get:function(){return O.Schema}});Object.defineProperty(b,"Field",{enumerable:!0,get:function(){return O.Field}});Object.defineProperty(b,"Visitor",{enumerable:!0,get:function(){return O.Visitor}});Object.defineProperty(b,"Vector",{enumerable:!0,get:function(){return O.Vector}});Object.defineProperty(b,"BaseVector",{enumerable:!0,get:function(){return O.BaseVector}});Object.defineProperty(b,"BinaryVector",{enumerable:!0,get:function(){return O.BinaryVector}});Object.defineProperty(b,"BoolVector",{enumerable:!0,get:function(){return O.BoolVector}});Object.defineProperty(b,"Chunked",{enumerable:!0,get:function(){return O.Chunked}});Object.defineProperty(b,"DateVector",{enumerable:!0,get:function(){return O.DateVector}});Object.defineProperty(b,"DateDayVector",{enumerable:!0,get:function(){return O.DateDayVector}});Object.defineProperty(b,"DateMillisecondVector",{enumerable:!0,get:function(){return O.DateMillisecondVector}});Object.defineProperty(b,"DecimalVector",{enumerable:!0,get:function(){return O.DecimalVector}});Object.defineProperty(b,"DictionaryVector",{enumerable:!0,get:function(){return O.DictionaryVector}});Object.defineProperty(b,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return O.FixedSizeBinaryVector}});Object.defineProperty(b,"FixedSizeListVector",{enumerable:!0,get:function(){return O.FixedSizeListVector}});Object.defineProperty(b,"FloatVector",{enumerable:!0,get:function(){return O.FloatVector}});Object.defineProperty(b,"Float16Vector",{enumerable:!0,get:function(){return O.Float16Vector}});Object.defineProperty(b,"Float32Vector",{enumerable:!0,get:function(){return O.Float32Vector}});Object.defineProperty(b,"Float64Vector",{enumerable:!0,get:function(){return O.Float64Vector}});Object.defineProperty(b,"IntervalVector",{enumerable:!0,get:function(){return O.IntervalVector}});Object.defineProperty(b,"IntervalDayTimeVector",{enumerable:!0,get:function(){return O.IntervalDayTimeVector}});Object.defineProperty(b,"IntervalYearMonthVector",{enumerable:!0,get:function(){return O.IntervalYearMonthVector}});Object.defineProperty(b,"IntVector",{enumerable:!0,get:function(){return O.IntVector}});Object.defineProperty(b,"Int8Vector",{enumerable:!0,get:function(){return O.Int8Vector}});Object.defineProperty(b,"Int16Vector",{enumerable:!0,get:function(){return O.Int16Vector}});Object.defineProperty(b,"Int32Vector",{enumerable:!0,get:function(){return O.Int32Vector}});Object.defineProperty(b,"Int64Vector",{enumerable:!0,get:function(){return O.Int64Vector}});Object.defineProperty(b,"Uint8Vector",{enumerable:!0,get:function(){return O.Uint8Vector}});Object.defineProperty(b,"Uint16Vector",{enumerable:!0,get:function(){return O.Uint16Vector}});Object.defineProperty(b,"Uint32Vector",{enumerable:!0,get:function(){return O.Uint32Vector}});Object.defineProperty(b,"Uint64Vector",{enumerable:!0,get:function(){return O.Uint64Vector}});Object.defineProperty(b,"ListVector",{enumerable:!0,get:function(){return O.ListVector}});Object.defineProperty(b,"MapVector",{enumerable:!0,get:function(){return O.MapVector}});Object.defineProperty(b,"NullVector",{enumerable:!0,get:function(){return O.NullVector}});Object.defineProperty(b,"StructVector",{enumerable:!0,get:function(){return O.StructVector}});Object.defineProperty(b,"TimestampVector",{enumerable:!0,get:function(){return O.TimestampVector}});Object.defineProperty(b,"TimestampSecondVector",{enumerable:!0,get:function(){return O.TimestampSecondVector}});Object.defineProperty(b,"TimestampMillisecondVector",{enumerable:!0,get:function(){return O.TimestampMillisecondVector}});Object.defineProperty(b,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return O.TimestampMicrosecondVector}});Object.defineProperty(b,"TimestampNanosecondVector",{enumerable:!0,get:function(){return O.TimestampNanosecondVector}});Object.defineProperty(b,"TimeVector",{enumerable:!0,get:function(){return O.TimeVector}});Object.defineProperty(b,"TimeSecondVector",{enumerable:!0,get:function(){return O.TimeSecondVector}});Object.defineProperty(b,"TimeMillisecondVector",{enumerable:!0,get:function(){return O.TimeMillisecondVector}});Object.defineProperty(b,"TimeMicrosecondVector",{enumerable:!0,get:function(){return O.TimeMicrosecondVector}});Object.defineProperty(b,"TimeNanosecondVector",{enumerable:!0,get:function(){return O.TimeNanosecondVector}});Object.defineProperty(b,"UnionVector",{enumerable:!0,get:function(){return O.UnionVector}});Object.defineProperty(b,"DenseUnionVector",{enumerable:!0,get:function(){return O.DenseUnionVector}});Object.defineProperty(b,"SparseUnionVector",{enumerable:!0,get:function(){return O.SparseUnionVector}});Object.defineProperty(b,"Utf8Vector",{enumerable:!0,get:function(){return O.Utf8Vector}});Object.defineProperty(b,"ByteStream",{enumerable:!0,get:function(){return O.ByteStream}});Object.defineProperty(b,"AsyncByteStream",{enumerable:!0,get:function(){return O.AsyncByteStream}});Object.defineProperty(b,"AsyncByteQueue",{enumerable:!0,get:function(){return O.AsyncByteQueue}});Object.defineProperty(b,"RecordBatchReader",{enumerable:!0,get:function(){return O.RecordBatchReader}});Object.defineProperty(b,"RecordBatchFileReader",{enumerable:!0,get:function(){return O.RecordBatchFileReader}});Object.defineProperty(b,"RecordBatchStreamReader",{enumerable:!0,get:function(){return O.RecordBatchStreamReader}});Object.defineProperty(b,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return O.AsyncRecordBatchFileReader}});Object.defineProperty(b,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return O.AsyncRecordBatchStreamReader}});Object.defineProperty(b,"RecordBatchWriter",{enumerable:!0,get:function(){return O.RecordBatchWriter}});Object.defineProperty(b,"RecordBatchFileWriter",{enumerable:!0,get:function(){return O.RecordBatchFileWriter}});Object.defineProperty(b,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return O.RecordBatchStreamWriter}});Object.defineProperty(b,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return O.RecordBatchJSONWriter}});Object.defineProperty(b,"MessageReader",{enumerable:!0,get:function(){return O.MessageReader}});Object.defineProperty(b,"AsyncMessageReader",{enumerable:!0,get:function(){return O.AsyncMessageReader}});Object.defineProperty(b,"JSONMessageReader",{enumerable:!0,get:function(){return O.JSONMessageReader}});Object.defineProperty(b,"Message",{enumerable:!0,get:function(){return O.Message}});Object.defineProperty(b,"RecordBatch",{enumerable:!0,get:function(){return O.RecordBatch}});Object.defineProperty(b,"DataFrame",{enumerable:!0,get:function(){return O.DataFrame}});Object.defineProperty(b,"FilteredDataFrame",{enumerable:!0,get:function(){return O.FilteredDataFrame}});Object.defineProperty(b,"CountByResult",{enumerable:!0,get:function(){return O.CountByResult}});Object.defineProperty(b,"predicate",{enumerable:!0,get:function(){return O.predicate}});Object.defineProperty(b,"util",{enumerable:!0,get:function(){return O.util}});Object.defineProperty(b,"Builder",{enumerable:!0,get:function(){return O.Builder}});Object.defineProperty(b,"BinaryBuilder",{enumerable:!0,get:function(){return O.BinaryBuilder}});Object.defineProperty(b,"BoolBuilder",{enumerable:!0,get:function(){return O.BoolBuilder}});Object.defineProperty(b,"DateBuilder",{enumerable:!0,get:function(){return O.DateBuilder}});Object.defineProperty(b,"DateDayBuilder",{enumerable:!0,get:function(){return O.DateDayBuilder}});Object.defineProperty(b,"DateMillisecondBuilder",{enumerable:!0,get:function(){return O.DateMillisecondBuilder}});Object.defineProperty(b,"DecimalBuilder",{enumerable:!0,get:function(){return O.DecimalBuilder}});Object.defineProperty(b,"DictionaryBuilder",{enumerable:!0,get:function(){return O.DictionaryBuilder}});Object.defineProperty(b,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return O.FixedSizeBinaryBuilder}});Object.defineProperty(b,"FixedSizeListBuilder",{enumerable:!0,get:function(){return O.FixedSizeListBuilder}});Object.defineProperty(b,"FloatBuilder",{enumerable:!0,get:function(){return O.FloatBuilder}});Object.defineProperty(b,"Float16Builder",{enumerable:!0,get:function(){return O.Float16Builder}});Object.defineProperty(b,"Float32Builder",{enumerable:!0,get:function(){return O.Float32Builder}});Object.defineProperty(b,"Float64Builder",{enumerable:!0,get:function(){return O.Float64Builder}});Object.defineProperty(b,"IntervalBuilder",{enumerable:!0,get:function(){return O.IntervalBuilder}});Object.defineProperty(b,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return O.IntervalDayTimeBuilder}});Object.defineProperty(b,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return O.IntervalYearMonthBuilder}});Object.defineProperty(b,"IntBuilder",{enumerable:!0,get:function(){return O.IntBuilder}});Object.defineProperty(b,"Int8Builder",{enumerable:!0,get:function(){return O.Int8Builder}});Object.defineProperty(b,"Int16Builder",{enumerable:!0,get:function(){return O.Int16Builder}});Object.defineProperty(b,"Int32Builder",{enumerable:!0,get:function(){return O.Int32Builder}});Object.defineProperty(b,"Int64Builder",{enumerable:!0,get:function(){return O.Int64Builder}});Object.defineProperty(b,"Uint8Builder",{enumerable:!0,get:function(){return O.Uint8Builder}});Object.defineProperty(b,"Uint16Builder",{enumerable:!0,get:function(){return O.Uint16Builder}});Object.defineProperty(b,"Uint32Builder",{enumerable:!0,get:function(){return O.Uint32Builder}});Object.defineProperty(b,"Uint64Builder",{enumerable:!0,get:function(){return O.Uint64Builder}});Object.defineProperty(b,"ListBuilder",{enumerable:!0,get:function(){return O.ListBuilder}});Object.defineProperty(b,"MapBuilder",{enumerable:!0,get:function(){return O.MapBuilder}});Object.defineProperty(b,"NullBuilder",{enumerable:!0,get:function(){return O.NullBuilder}});Object.defineProperty(b,"StructBuilder",{enumerable:!0,get:function(){return O.StructBuilder}});Object.defineProperty(b,"TimestampBuilder",{enumerable:!0,get:function(){return O.TimestampBuilder}});Object.defineProperty(b,"TimestampSecondBuilder",{enumerable:!0,get:function(){return O.TimestampSecondBuilder}});Object.defineProperty(b,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return O.TimestampMillisecondBuilder}});Object.defineProperty(b,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return O.TimestampMicrosecondBuilder}});Object.defineProperty(b,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return O.TimestampNanosecondBuilder}});Object.defineProperty(b,"TimeBuilder",{enumerable:!0,get:function(){return O.TimeBuilder}});Object.defineProperty(b,"TimeSecondBuilder",{enumerable:!0,get:function(){return O.TimeSecondBuilder}});Object.defineProperty(b,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return O.TimeMillisecondBuilder}});Object.defineProperty(b,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return O.TimeMicrosecondBuilder}});Object.defineProperty(b,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return O.TimeNanosecondBuilder}});Object.defineProperty(b,"UnionBuilder",{enumerable:!0,get:function(){return O.UnionBuilder}});Object.defineProperty(b,"DenseUnionBuilder",{enumerable:!0,get:function(){return O.DenseUnionBuilder}});Object.defineProperty(b,"SparseUnionBuilder",{enumerable:!0,get:function(){return O.SparseUnionBuilder}});Object.defineProperty(b,"Utf8Builder",{enumerable:!0,get:function(){return O.Utf8Builder}})});var iu=E(()=>{});var Ld=E(()=>{});var jv=E(()=>{});var vC={};BS(vC,{registerWorker:()=>Sv});var pu;(function(s){s[s.NONE=0]="NONE",s[s.DEBUG=1]="DEBUG",s[s.INFO=2]="INFO",s[s.WARNING=3]="WARNING",s[s.ERROR=4]="ERROR"})(pu||(pu={}));var yu;(function(s){s[s.NONE=0]="NONE",s[s.CONNECT=1]="CONNECT",s[s.DISCONNECT=2]="DISCONNECT",s[s.OPEN=3]="OPEN",s[s.QUERY=4]="QUERY"})(yu||(yu={}));var mu;(function(c){c[c.NONE=0]="NONE",c[c.OK=1]="OK",c[c.ERROR=2]="ERROR",c[c.START=3]="START",c[c.RUN=4]="RUN",c[c.CAPTURE=5]="CAPTURE"})(mu||(mu={}));var _u;(function(s){s[s.NONE=0]="NONE",s[s.WEB_WORKER=1]="WEB_WORKER",s[s.NODE_WORKER=2]="NODE_WORKER",s[s.BINDINGS=3]="BINDINGS",s[s.ASYNC_DUCKDB=4]="ASYNC_DUCKDB"})(_u||(_u={}));var mC=class{constructor(e,t,i){this.db=e;this.conn=t;this.header=i;this._first=!0,this._depleted=!1,this._inFlight=null}async next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e;return this._inFlight!=null?(e=await this._inFlight,this._inFlight=null):e=await this.db.fetchQueryResults(this.conn),this._depleted=e.length==0,this._depleted||(this._inFlight=this.db.fetchQueryResults(this.conn)),{done:this._depleted,value:e}}[Symbol.asyncIterator](){return this}};var we;(function($){$.COLLECT_FILE_STATISTICS="COLLECT_FILE_STATISTICS",$.CONNECT="CONNECT",$.COPY_FILE_TO_BUFFER="COPY_FILE_TO_BUFFER",$.COPY_FILE_TO_PATH="COPY_FILE_TO_PATH",$.DISCONNECT="DISCONNECT",$.DROP_FILE="DROP_FILE",$.DROP_FILES="DROP_FILES",$.EXPORT_FILE_STATISTICS="EXPORT_FILE_STATISTICS",$.FETCH_QUERY_RESULTS="FETCH_QUERY_RESULTS",$.FLUSH_FILES="FLUSH_FILES",$.GET_FEATURE_FLAGS="GET_FEATURE_FLAGS",$.GET_VERSION="GET_VERSION",$.INSERT_ARROW_FROM_IPC_STREAM="INSERT_ARROW_FROM_IPC_STREAM",$.INSERT_CSV_FROM_PATH="IMPORT_CSV_FROM_PATH",$.INSERT_JSON_FROM_PATH="IMPORT_JSON_FROM_PATH",$.INSTANTIATE="INSTANTIATE",$.OPEN="OPEN",$.PING="PING",$.REGISTER_FILE_BUFFER="REGISTER_FILE_BUFFER",$.REGISTER_FILE_HANDLE="REGISTER_FILE_HANDLE",$.REGISTER_FILE_URL="REGISTER_FILE_URL",$.RESET="RESET",$.RUN_QUERY="RUN_QUERY",$.SEND_QUERY="SEND_QUERY",$.TOKENIZE="TOKENIZE"})(we||(we={}));var ot;(function(ue){ue.CONNECTION_INFO="CONNECTION_INFO",ue.ERROR="ERROR",ue.FEATURE_FLAGS="FEATURE_FLAGS",ue.FILE_BUFFER="FILE_BUFFER",ue.FILE_SIZE="FILE_SIZE",ue.FILE_STATISTICS="FILE_STATISTICS",ue.LOG="LOG",ue.OK="OK",ue.QUERY_PLAN="QUERY_PLAN",ue.QUERY_RESULT="QUERY_RESULT",ue.QUERY_RESULT_CHUNK="QUERY_RESULT_CHUNK",ue.QUERY_START="QUERY_START",ue.REGISTERED_FILE="REGISTERED_FILE",ue.SCRIPT_TOKENS="SCRIPT_TOKENS",ue.SUCCESS="SUCCESS",ue.VERSION_STRING="VERSION_STRING"})(ot||(ot={}));var he=Dy(Pd());function Zn(r,e){switch(e.typeId){case he.Type.Binary:return{name:r,type:"binary"};case he.Type.Bool:return{name:r,type:"bool"};case he.Type.Date:return{name:r,type:"date"};case he.Type.DateDay:return{name:r,type:"date32[d]"};case he.Type.DateMillisecond:return{name:r,type:"date64[ms]"};case he.Type.Decimal:{let t=e;return{name:r,type:"decimal",precision:t.precision,scale:t.scale}}case he.Type.Float:return{name:r,type:"float"};case he.Type.Float16:return{name:r,type:"float16"};case he.Type.Float32:return{name:r,type:"float32"};case he.Type.Float64:return{name:r,type:"float64"};case he.Type.Int:return{name:r,type:"int32"};case he.Type.Int16:return{name:r,type:"int16"};case he.Type.Int32:return{name:r,type:"int32"};case he.Type.Int64:return{name:r,type:"int64"};case he.Type.Uint16:return{name:r,type:"uint16"};case he.Type.Uint32:return{name:r,type:"uint32"};case he.Type.Uint64:return{name:r,type:"uint64"};case he.Type.Uint8:return{name:r,type:"uint8"};case he.Type.IntervalDayTime:return{name:r,type:"interval[dt]"};case he.Type.IntervalYearMonth:return{name:r,type:"interval[m]"};case he.Type.List:{let t=e;return{name:r,type:"list",children:[Zn(t.valueField.name,t.valueField.type)]}}case he.Type.FixedSizeBinary:return{name:r,type:"fixedsizebinary",byteWidth:e.byteWidth};case he.Type.Null:return{name:r,type:"null"};case he.Type.Utf8:return{name:r,type:"utf8"};case he.Type.Struct:return{name:r,type:"struct",children:e.children.map(i=>Zn(i.name,i.type))};case he.Type.Time:return{name:r,type:"time[s]"};case he.Type.TimeMicrosecond:return{name:r,type:"time[us]"};case he.Type.TimeMillisecond:return{name:r,type:"time[ms]"};case he.Type.TimeNanosecond:return{name:r,type:"time[ns]"};case he.Type.TimeSecond:return{name:r,type:"time[s]"};case he.Type.Timestamp:return{name:r,type:"timestamp",timezone:e.timezone||void 0};case he.Type.TimestampSecond:return{name:r,type:"timestamp[s]",timezone:e.timezone||void 0};case he.Type.TimestampMicrosecond:return{name:r,type:"timestamp[us]",timezone:e.timezone||void 0};case he.Type.TimestampNanosecond:return{name:r,type:"timestamp[ns]",timezone:e.timezone||void 0};case he.Type.TimestampMillisecond:return{name:r,type:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error(`unsupported arrow type: ${e.toString()}`)}var Nd=class{constructor(){this._bindings=null;this._nextMessageId=0}log(e){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:ot.LOG,data:e},[])}sendOK(e){this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.OK,data:null},[])}failWith(e,t){let i={name:t.name,message:t.message,stack:t.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.ERROR,data:i},[])}async onMessage(e){switch(e.type){case we.PING:this.sendOK(e);return;case we.INSTANTIATE:this._bindings!=null&&this.failWith(e,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(e.data[0],e.data[1]),this.sendOK(e)}catch(t){this._bindings=null,this.failWith(e,t)}return;default:break}if(!this._bindings)return this.failWith(e,new Error("duckdb is not initialized"));try{switch(e.type){case we.GET_VERSION:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.VERSION_STRING,data:this._bindings.getVersion()},[]);break;case we.GET_FEATURE_FLAGS:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.FEATURE_FLAGS,data:this._bindings.getFeatureFlags()},[]);break;case we.RESET:this._bindings.reset(),this.sendOK(e);break;case we.OPEN:this._bindings.open(e.data),this.sendOK(e);break;case we.DROP_FILE:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.SUCCESS,data:this._bindings.dropFile(e.data)},[]);break;case we.DROP_FILES:this._bindings.dropFiles(),this.sendOK(e);break;case we.FLUSH_FILES:this._bindings.flushFiles(),this.sendOK(e);break;case we.CONNECT:{let t=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.CONNECTION_INFO,data:t.handle},[]);break}case we.DISCONNECT:this._bindings.disconnect(e.data),this.sendOK(e);break;case we.RUN_QUERY:{let t=this._bindings.runQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.QUERY_RESULT,data:t},[t.buffer]);break}case we.SEND_QUERY:{let t=this._bindings.sendQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.QUERY_START,data:t},[t.buffer]);break}case we.FETCH_QUERY_RESULTS:{let t=this._bindings.fetchQueryResults(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.QUERY_RESULT_CHUNK,data:t},[t.buffer]);break}case we.REGISTER_FILE_URL:this._bindings.registerFileURL(e.data[0],e.data[1]),this.sendOK(e);break;case we.REGISTER_FILE_BUFFER:this._bindings.registerFileBuffer(e.data[0],e.data[1]),this.sendOK(e);break;case we.REGISTER_FILE_HANDLE:this._bindings.registerFileHandle(e.data[0],e.data[1]),this.sendOK(e);break;case we.COPY_FILE_TO_PATH:this._bindings.copyFileToPath(e.data[0],e.data[1]),this.sendOK(e);break;case we.COPY_FILE_TO_BUFFER:{let t=this._bindings.copyFileToBuffer(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.FILE_BUFFER,data:t},[]);break}case we.COLLECT_FILE_STATISTICS:this._bindings.collectFileStatistics(e.data[0],e.data[1]),this.sendOK(e);break;case we.EXPORT_FILE_STATISTICS:{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.FILE_STATISTICS,data:this._bindings.exportFileStatistics(e.data)},[]);break}case we.INSERT_ARROW_FROM_IPC_STREAM:{this._bindings.insertArrowFromIPCStream(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case we.INSERT_CSV_FROM_PATH:{this._bindings.insertCSVFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case we.INSERT_JSON_FROM_PATH:{this._bindings.insertJSONFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case we.TOKENIZE:{let t=this._bindings.tokenize(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.SCRIPT_TOKENS,data:t},[]);break}}}catch(t){return this.failWith(e,t)}}};var Tv={},_C=function(){var r=Tv.url;return function(e){e=e||{};var t=typeof e!="undefined"?e:{},i,n;t.ready=new Promise(function(o,a){i=o,n=a});var s={},c;for(c in t)t.hasOwnProperty(c)&&(s[c]=t[c]);var v=[],B="./this.program",S=function(o,a){throw a},C=typeof window=="object",K=typeof importScripts=="function",be=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",pe="";function Zt(o){return t.locateFile?t.locateFile(o,pe):pe+o}var kr,ue,Gi,Ov,Ki,$i;be?(K?pe=iu().dirname(pe)+"/":pe=__dirname+"/",kr=function(a,u){return Ki||(Ki=Ld()),$i||($i=iu()),a=$i.normalize(a),Ki.readFileSync(a,u?null:"utf8")},Gi=function(a){var u=kr(a,!0);return u.buffer||(u=new Uint8Array(u)),$d(u.buffer),u},ue=function(a,u,l){Ki||(Ki=Ld()),$i||($i=iu()),a=$i.normalize(a),Ki.readFile(a,function(d,f){d?l(d):u(f.buffer)})},process.argv.length>1&&(B=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(o){if(!(o instanceof fu))throw o}),process.on("unhandledRejection",qt),S=function(o,a){if(of())throw process.exitCode=o,a;process.exit(o)},t.inspect=function(){return"[Emscripten Module object]"}):(C||K)&&(K?pe=self.location.href:typeof document!="undefined"&&document.currentScript&&(pe=document.currentScript.src),r&&(pe=r),pe.indexOf("blob:")!==0?pe=pe.substr(0,pe.lastIndexOf("/")+1):pe="",kr=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},K&&(Gi=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),ue=function(o,a,u){var l=new XMLHttpRequest;l.open("GET",o,!0),l.responseType="arraybuffer",l.onload=function(){if(l.status==200||l.status==0&&l.response){a(l.response);return}u()},l.onerror=u,l.send(null)},Ov=function(o){document.title=o});var Fv=t.print||console.log.bind(console),Vr=t.printErr||console.warn.bind(console);for(c in s)s.hasOwnProperty(c)&&(t[c]=s[c]);s=null,t.arguments&&(v=t.arguments),t.thisProgram&&(B=t.thisProgram),t.quit&&(S=t.quit);var Gd=0,_t=function(o){Gd=o},$=function(){return Gd},es;t.wasmBinary&&(es=t.wasmBinary);var Dv=t.noExitRuntime||!0;typeof WebAssembly!="object"&&qt("no native wasm support detected");var Ws,nu=!1,Kd;function $d(o,a){o||qt("Assertion failed: "+a)}function Av(o){var a=t["_"+o];return $d(a,"Cannot call unknown function "+o+", make sure it is exported"),a}function Rv(o,a,u,l,d){var f={string:function(R){var N=0;if(R!=null&&R!==0){var le=(R.length<<2)+1;N=cu(le),Ev(R,N,le)}return N},array:function(R){var N=cu(R.length);return Xd(R,N),N}};function h(R){return a==="string"?Hs(R):a==="boolean"?Boolean(R):R}var p=Av(o),y=[],m=0;if(l)for(var g=0;g<l.length;g++){var j=f[u[g]];j?(m===0&&(m=w()),y[g]=j(l[g])):y[g]=l[g]}var F=p.apply(null,y);return F=h(F),m!==0&&T(m),F}var Jd=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function Qd(o,a,u){for(var l=a+u,d=a;o[d]&&!(d>=l);)++d;if(d-a>16&&o.subarray&&Jd)return Jd.decode(o.subarray(a,d));for(var f="";a<d;){var h=o[a++];if(!(h&128)){f+=String.fromCharCode(h);continue}var p=o[a++]&63;if((h&224)==192){f+=String.fromCharCode((h&31)<<6|p);continue}var y=o[a++]&63;if((h&240)==224?h=(h&15)<<12|p<<6|y:h=(h&7)<<18|p<<12|y<<6|o[a++]&63,h<65536)f+=String.fromCharCode(h);else{var m=h-65536;f+=String.fromCharCode(55296|m>>10,56320|m&1023)}}return f}function Hs(o,a){return o?Qd(Ji,o,a):""}function Zd(o,a,u,l){if(!(l>0))return 0;for(var d=u,f=u+l-1,h=0;h<o.length;++h){var p=o.charCodeAt(h);if(p>=55296&&p<=57343){var y=o.charCodeAt(++h);p=65536+((p&1023)<<10)|y&1023}if(p<=127){if(u>=f)break;a[u++]=p}else if(p<=2047){if(u+1>=f)break;a[u++]=192|p>>6,a[u++]=128|p&63}else if(p<=65535){if(u+2>=f)break;a[u++]=224|p>>12,a[u++]=128|p>>6&63,a[u++]=128|p&63}else{if(u+3>=f)break;a[u++]=240|p>>18,a[u++]=128|p>>12&63,a[u++]=128|p>>6&63,a[u++]=128|p&63}}return a[u]=0,u-d}function Ev(o,a,u){return Zd(o,Ji,a,u)}function Cv(o){for(var a=0,u=0;u<o.length;++u){var l=o.charCodeAt(u);l>=55296&&l<=57343&&(l=65536+((l&1023)<<10)|o.charCodeAt(++u)&1023),l<=127?++a:l<=2047?a+=2:l<=65535?a+=3:a+=4}return a}function Xd(o,a){Xt.set(o,a)}function Uv(o,a,u){for(var l=0;l<o.length;++l)Xt[a++>>0]=o.charCodeAt(l);u||(Xt[a>>0]=0)}function Mv(o,a){return o%a>0&&(o+=a-o%a),o}var ef,Xt,Ji,kv,Vv,ce,Pv,Nv,Lv;function tf(o){ef=o,t.HEAP8=Xt=new Int8Array(o),t.HEAP16=kv=new Int16Array(o),t.HEAP32=ce=new Int32Array(o),t.HEAPU8=Ji=new Uint8Array(o),t.HEAPU16=Vv=new Uint16Array(o),t.HEAPU32=Pv=new Uint32Array(o),t.HEAPF32=Nv=new Float32Array(o),t.HEAPF64=Lv=new Float64Array(o)}var jC=t.INITIAL_MEMORY||16777216,H,rf=[],nf=[],xv=[],sf=[],qv=!1,zv=!1,Wv=0;function of(){return Dv||Wv>0}function Hv(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Jv(t.preRun.shift());Ys(rf)}function Yv(){qv=!0,Ys(nf)}function Gv(){Ys(xv)}function Kv(){zv=!0}function $v(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Zv(t.postRun.shift());Ys(sf)}function Jv(o){rf.unshift(o)}function Qv(o){nf.unshift(o)}function Zv(o){sf.unshift(o)}var ji=0,su=null,ts=null;function Xv(o){ji++,t.monitorRunDependencies&&t.monitorRunDependencies(ji)}function ej(o){if(ji--,t.monitorRunDependencies&&t.monitorRunDependencies(ji),ji==0&&(su!==null&&(clearInterval(su),su=null),ts)){var a=ts;ts=null,a()}}t.preloadedImages={},t.preloadedAudios={};function qt(o){t.onAbort&&t.onAbort(o),o+="",Vr(o),nu=!0,Kd=1,o="abort("+o+"). Build with -s ASSERTIONS=1 for more info.";var a=new WebAssembly.RuntimeError(o);throw n(a),a}var tj="data:application/octet-stream;base64,";function af(o){return o.startsWith(tj)}var jt;t.locateFile?(jt="duckdb_wasm.wasm",af(jt)||(jt=Zt(jt))):jt=new URL("duckdb_wasm.wasm",Tv.url).toString();function uf(o){try{if(o==jt&&es)return new Uint8Array(es);if(Gi)return Gi(o);throw"both async and sync fetching of the wasm failed"}catch(a){qt(a)}}function rj(){return!es&&(C||K)&&typeof fetch=="function"?fetch(jt,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+jt+"'";return o.arrayBuffer()}).catch(function(){return uf(jt)}):Promise.resolve().then(function(){return uf(jt)})}function ij(){var o={a:ww};function a(h,p){var y=h.exports;t.asm=y,Ws=t.asm.xe,tf(Ws.buffer),H=t.asm.Ae,Qv(t.asm.ye),ej("wasm-instantiate")}Xv("wasm-instantiate");function u(h){a(h.instance)}function l(h){return rj().then(function(p){var y=WebAssembly.instantiate(p,o);return y}).then(h,function(p){Vr("failed to asynchronously prepare wasm: "+p),qt(p)})}function d(){return!es&&typeof WebAssembly.instantiateStreaming=="function"&&!af(jt)&&typeof fetch=="function"?fetch(jt,{credentials:"same-origin"}).then(function(h){var p=WebAssembly.instantiateStreaming(h,o);return p.then(u,function(y){return Vr("wasm streaming compile failed: "+y),Vr("falling back to ArrayBuffer instantiation"),l(u)})}):l(u)}if(t.instantiateWasm)try{var f=t.instantiateWasm(o,a);return f}catch(h){return Vr("Module.instantiateWasm callback failed with error: "+h),!1}return d().catch(n),{}}function Ys(o){for(;o.length>0;){var a=o.shift();if(typeof a=="function"){a(t);continue}var u=a.func;typeof u=="number"?a.arg===void 0?H.get(u)():H.get(u)(a.arg):u(a.arg===void 0?null:a.arg)}}function nj(o){return lu(o+16)+16}function Qi(o){this.excPtr=o,this.ptr=o-16,this.set_type=function(a){ce[this.ptr+4>>2]=a},this.get_type=function(){return ce[this.ptr+4>>2]},this.set_destructor=function(a){ce[this.ptr+8>>2]=a},this.get_destructor=function(){return ce[this.ptr+8>>2]},this.set_refcount=function(a){ce[this.ptr>>2]=a},this.set_caught=function(a){a=a?1:0,Xt[this.ptr+12>>0]=a},this.get_caught=function(){return Xt[this.ptr+12>>0]!=0},this.set_rethrown=function(a){a=a?1:0,Xt[this.ptr+13>>0]=a},this.get_rethrown=function(){return Xt[this.ptr+13>>0]!=0},this.init=function(a,u){this.set_type(a),this.set_destructor(u),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var a=ce[this.ptr>>2];ce[this.ptr>>2]=a+1},this.release_ref=function(){var a=ce[this.ptr>>2];return ce[this.ptr>>2]=a-1,a===1}}function rs(o){this.free=function(){du(this.ptr),this.ptr=0},this.set_base_ptr=function(a){ce[this.ptr>>2]=a},this.get_base_ptr=function(){return ce[this.ptr>>2]},this.set_adjusted_ptr=function(a){ce[this.ptr+4>>2]=a},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return ce[this.ptr+4>>2]},this.get_exception_ptr=function(){var a=df(this.get_exception_info().get_type());if(a)return ce[this.get_base_ptr()>>2];var u=this.get_adjusted_ptr();return u!==0?u:this.get_base_ptr()},this.get_exception_info=function(){return new Qi(this.get_base_ptr())},o===void 0?(this.ptr=lu(8),this.set_adjusted_ptr(0)):this.ptr=o}var Gs=[];function sj(o){o.add_ref()}var Ks=0;function oj(o){var a=new rs(o),u=a.get_exception_info();return u.get_caught()||(u.set_caught(!0),Ks--),u.set_rethrown(!1),Gs.push(a),sj(u),a.get_exception_ptr()}var Pr=0;function cf(o){return du(new Qi(o).ptr)}function aj(o){if(o.release_ref()&&!o.get_rethrown()){var a=o.get_destructor();a&&H.get(a)(o.excPtr),cf(o.excPtr)}}function uj(){I(0);var o=Gs.pop();aj(o.get_exception_info()),o.free(),Pr=0}function cj(o){var a=new rs(o),u=a.get_base_ptr();throw Pr||(Pr=u),a.free(),u}function lj(){var o=Pr;if(!o)return _t(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return _t(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(eo(h,u,l.get_adjusted_ptr_addr()))return _t(h),l.ptr|0}return _t(u),l.ptr|0}function dj(){var o=Pr;if(!o)return _t(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return _t(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(eo(h,u,l.get_adjusted_ptr_addr()))return _t(h),l.ptr|0}return _t(u),l.ptr|0}function fj(){var o=Pr;if(!o)return _t(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return _t(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(eo(h,u,l.get_adjusted_ptr_addr()))return _t(h),l.ptr|0}return _t(u),l.ptr|0}function hj(){var o=Gs.pop();o||qt("no exception to throw");var a=o.get_exception_info(),u=o.get_base_ptr();throw a.get_rethrown()?o.free():(Gs.push(o),a.set_rethrown(!0),a.set_caught(!1),Ks++),Pr=u,u}function pj(o,a,u){var l=new Qi(o);throw l.init(a,u),Pr=o,Ks++,o}function yj(){return Ks}var Ze={mappings:{},buffers:[null,[],[]],printChar:function(o,a){var u=Ze.buffers[o];a===0||a===10?((o===1?Fv:Vr)(Qd(u,0)),u.length=0):u.push(a)},varargs:void 0,get:function(){Ze.varargs+=4;var o=ce[Ze.varargs-4>>2];return o},getStr:function(o){var a=Hs(o);return a},get64:function(o,a){return o}};function mj(o,a){return o=Ze.getStr(o),Ze.doAccess(o,a)}function _j(o){return ce[lf()>>2]=o,o}function bj(o,a,u){return Ze.varargs=u,0}function gj(o,a){}function vj(o,a,u,l){}function jj(o,a,u){}function wj(){return 42}function Tj(o,a,u){return Ze.varargs=u,0}var Ij=function(o,a,u){return Vr("warning: unsupported syscall: __sys_madvise1"),0};function Bj(o,a){return o=Ze.getStr(o),Ze.doMkdir(o,a)}function Sj(o,a,u){Ze.varargs=u}function Oj(o,a){}function Fj(o){}function Dj(o,a){}function Aj(o){}function Rj(){qt()}var ou;be?ou=function(){var o=process.hrtime();return o[0]*1e3+o[1]/1e6}:ou=function(){return performance.now()};var Ej=!0;function Cj(o,a){var u;if(o===0)u=Date.now();else if((o===1||o===4)&&Ej)u=ou();else return _j(28),-1;return ce[a>>2]=u/1e3|0,ce[a+4>>2]=u%1e3*1e3*1e3|0,0}function Uj(o,a){qt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Mj(o,a){qt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function kj(o,a){return globalThis.DUCKDB_RUNTIME.createDirectory(t,o,a)}function Vj(o,a){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,o,a)}function Pj(o,a){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,o,a)}function Nj(o,a){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,o,a)}function Lj(o){return globalThis.DUCKDB_RUNTIME.closeFile(t,o)}function xj(o,a){return globalThis.DUCKDB_RUNTIME.checkFile(t,o,a)}function qj(o){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,o)}function zj(o){return globalThis.DUCKDB_RUNTIME.getFileSize(t,o)}function Wj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.moveFile(t,o,a,u,l)}function Hj(o){return globalThis.DUCKDB_RUNTIME.openFile(t,o)}function Yj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.readFile(t,o,a,u,l)}function Gj(o,a){return globalThis.DUCKDB_RUNTIME.truncateFile(t,o,a)}function Kj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.writeFile(t,o,a,u,l)}function $j(o,a){return globalThis.DUCKDB_RUNTIME.glob(t,o,a)}function Jj(o){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,o)}function Qj(){return 2147483648}function Zj(o,a,u){Ji.copyWithin(o,a,a+u)}function Xj(o){try{return Ws.grow(o-ef.byteLength+65535>>>16),tf(Ws.buffer),1}catch(a){}}function ew(o){var a=Ji.length;o=o>>>0;var u=2147483648;if(o>u)return!1;for(var l=1;l<=4;l*=2){var d=a*(1+.2/l);d=Math.min(d,o+100663296);var f=Math.min(u,Mv(Math.max(o,d),65536)),h=Xj(f);if(h)return!0}return!1}var au={};function tw(){return B||"./this.program"}function is(){if(!is.strings){var o=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:o,_:tw()};for(var u in au)au[u]===void 0?delete a[u]:a[u]=au[u];var l=[];for(var u in a)l.push(u+"="+a[u]);is.strings=l}return is.strings}function rw(o,a){var u=0;return is().forEach(function(l,d){var f=a+u;ce[o+d*4>>2]=f,Uv(l,f),u+=l.length+1}),0}function iw(o,a){var u=is();ce[o>>2]=u.length;var l=0;return u.forEach(function(d){l+=d.length+1}),ce[a>>2]=l,0}function nw(o){return 0}function sw(o,a){var u=o==1||o==2?2:qt();return Xt[a>>0]=u,0}function ow(o,a,u,l,d,f){var h=Ze.getStreamFromFD(o),p=Ze.doReadv(h,a,u,l);return ce[f>>2]=p,0}function aw(o,a,u,l,d,f){var h=Ze.getStreamFromFD(o),p=Ze.doWritev(h,a,u,l);return ce[f>>2]=p,0}function uw(o,a,u,l){var d=Ze.getStreamFromFD(o),f=Ze.doReadv(d,a,u);return ce[l>>2]=f,0}function cw(o,a,u,l,d){}function lw(o){var a=Ze.getStreamFromFD(o);return a.stream_ops&&a.stream_ops.fsync?-a.stream_ops.fsync(a):0}function dw(o,a,u,l){for(var d=0,f=0;f<u;f++){for(var h=ce[a+f*8>>2],p=ce[a+(f*8+4)>>2],y=0;y<p;y++)Ze.printChar(o,Ji[h+y]);d+=p}return ce[l>>2]=d,0}function fw(){return $()}function hw(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var o=new Uint8Array(1);return function(){return crypto.getRandomValues(o),o[0]}}else if(be)try{var a=jv();return function(){return a.randomBytes(1)[0]}}catch(u){}return function(){qt("randomDevice")}}function $s(o,a){$s.randomDevice||($s.randomDevice=hw());for(var u=0;u<a;u++)Xt[o+u>>0]=$s.randomDevice();return 0}function pw(o){return o}function yw(o){_t(o)}var mw=0;function _w(o,a,u){return o==14&&(mw=ce[a>>2]),0}function bw(o,a,u){return _w(o,a,u)}function Js(o){return o%4==0&&(o%100!=0||o%400==0)}function uu(o,a){for(var u=0,l=0;l<=a;u+=o[l++]);return u}var Qs=[31,29,31,30,31,30,31,31,30,31,30,31],Zs=[31,28,31,30,31,30,31,31,30,31,30,31];function Xs(o,a){for(var u=new Date(o.getTime());a>0;){var l=Js(u.getFullYear()),d=u.getMonth(),f=(l?Qs:Zs)[d];if(a>f-u.getDate())a-=f-u.getDate()+1,u.setDate(1),d<11?u.setMonth(d+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else return u.setDate(u.getDate()+a),u}return u}function gw(o,a,u,l){var d=ce[l+40>>2],f={tm_sec:ce[l>>2],tm_min:ce[l+4>>2],tm_hour:ce[l+8>>2],tm_mday:ce[l+12>>2],tm_mon:ce[l+16>>2],tm_year:ce[l+20>>2],tm_wday:ce[l+24>>2],tm_yday:ce[l+28>>2],tm_isdst:ce[l+32>>2],tm_gmtoff:ce[l+36>>2],tm_zone:d?Hs(d):""},h=Hs(u),p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var y in p)h=h.replace(new RegExp(y,"g"),p[y]);var m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"];function j(M,G,Ee){for(var _e=typeof M=="number"?M.toString():M||"";_e.length<G;)_e=Ee[0]+_e;return _e}function F(M,G){return j(M,G,"0")}function R(M,G){function Ee(dt){return dt<0?-1:dt>0?1:0}var _e;return(_e=Ee(M.getFullYear()-G.getFullYear()))===0&&(_e=Ee(M.getMonth()-G.getMonth()))===0&&(_e=Ee(M.getDate()-G.getDate())),_e}function N(M){switch(M.getDay()){case 0:return new Date(M.getFullYear()-1,11,29);case 1:return M;case 2:return new Date(M.getFullYear(),0,3);case 3:return new Date(M.getFullYear(),0,2);case 4:return new Date(M.getFullYear(),0,1);case 5:return new Date(M.getFullYear()-1,11,31);case 6:return new Date(M.getFullYear()-1,11,30)}}function le(M){var G=Xs(new Date(M.tm_year+1900,0,1),M.tm_yday),Ee=new Date(G.getFullYear(),0,4),_e=new Date(G.getFullYear()+1,0,4),dt=N(Ee),Nr=N(_e);return R(dt,G)<=0?R(Nr,G)<=0?G.getFullYear()+1:G.getFullYear():G.getFullYear()-1}var ge={"%a":function(M){return m[M.tm_wday].substring(0,3)},"%A":function(M){return m[M.tm_wday]},"%b":function(M){return g[M.tm_mon].substring(0,3)},"%B":function(M){return g[M.tm_mon]},"%C":function(M){var G=M.tm_year+1900;return F(G/100|0,2)},"%d":function(M){return F(M.tm_mday,2)},"%e":function(M){return j(M.tm_mday,2," ")},"%g":function(M){return le(M).toString().substring(2)},"%G":function(M){return le(M)},"%H":function(M){return F(M.tm_hour,2)},"%I":function(M){var G=M.tm_hour;return G==0?G=12:G>12&&(G-=12),F(G,2)},"%j":function(M){return F(M.tm_mday+uu(Js(M.tm_year+1900)?Qs:Zs,M.tm_mon-1),3)},"%m":function(M){return F(M.tm_mon+1,2)},"%M":function(M){return F(M.tm_min,2)},"%n":function(){return`
18
- `},"%p":function(M){return M.tm_hour>=0&&M.tm_hour<12?"AM":"PM"},"%S":function(M){return F(M.tm_sec,2)},"%t":function(){return" "},"%u":function(M){return M.tm_wday||7},"%U":function(M){var G=new Date(M.tm_year+1900,0,1),Ee=G.getDay()===0?G:Xs(G,7-G.getDay()),_e=new Date(M.tm_year+1900,M.tm_mon,M.tm_mday);if(R(Ee,_e)<0){var dt=uu(Js(_e.getFullYear())?Qs:Zs,_e.getMonth()-1)-31,Nr=31-Ee.getDate(),wi=Nr+dt+_e.getDate();return F(Math.ceil(wi/7),2)}return R(Ee,G)===0?"01":"00"},"%V":function(M){var G=new Date(M.tm_year+1900,0,4),Ee=new Date(M.tm_year+1901,0,4),_e=N(G),dt=N(Ee),Nr=Xs(new Date(M.tm_year+1900,0,1),M.tm_yday);if(R(Nr,_e)<0)return"53";if(R(dt,Nr)<=0)return"01";var wi;return _e.getFullYear()<M.tm_year+1900?wi=M.tm_yday+32-_e.getDate():wi=M.tm_yday+1-_e.getDate(),F(Math.ceil(wi/7),2)},"%w":function(M){return M.tm_wday},"%W":function(M){var G=new Date(M.tm_year,0,1),Ee=G.getDay()===1?G:Xs(G,G.getDay()===0?1:7-G.getDay()+1),_e=new Date(M.tm_year+1900,M.tm_mon,M.tm_mday);if(R(Ee,_e)<0){var dt=uu(Js(_e.getFullYear())?Qs:Zs,_e.getMonth()-1)-31,Nr=31-Ee.getDate(),wi=Nr+dt+_e.getDate();return F(Math.ceil(wi/7),2)}return R(Ee,G)===0?"01":"00"},"%y":function(M){return(M.tm_year+1900).toString().substring(2)},"%Y":function(M){return M.tm_year+1900},"%z":function(M){var G=M.tm_gmtoff,Ee=G>=0;return G=Math.abs(G)/60,G=G/60*100+G%60,(Ee?"+":"-")+String("0000"+G).slice(-4)},"%Z":function(M){return M.tm_zone},"%%":function(){return"%"}};for(var y in ge)h.includes(y)&&(h=h.replace(new RegExp(y,"g"),ge[y](f)));var Be=jw(h,!1);return Be.length>a?0:(Xd(Be,o),Be.length-1)}function vw(o,a,u,l){return gw(o,a,u,l)}function jw(o,a,u){var l=u>0?u:Cv(o)+1,d=new Array(l),f=Zd(o,d,0,d.length);return a&&(d.length=f),d}var ww={i:nj,A:oj,G:uj,b:lj,n:dj,I:fj,j:cf,ra:hj,t:pj,E:yj,c:cj,se:mj,ea:bj,La:gj,Ka:vj,Ma:jj,la:wj,Oa:Tj,Ja:Ij,Na:Bj,oa:Sj,qe:Oj,ka:Fj,na:Dj,ma:Aj,fa:Rj,ja:Cj,ua:Uj,we:Mj,Aa:kj,Ba:Vj,ya:Pj,za:Nj,Ta:Lj,wa:xj,Da:qj,Fa:zj,xa:Wj,Ga:Hj,da:Yj,Ca:Gj,Ea:Kj,va:$j,oe:Jj,qb:Qj,Ua:Zj,Ic:ew,Qa:rw,Ra:iw,_:nw,Sa:sw,ce:ow,ob:aw,qa:uw,je:cw,re:lw,ga:dw,a:fw,Ha:$s,W:GT,K:FT,R:hT,wb:zB,X:YT,M:zT,sa:fT,xb:qB,u:_T,U:t0,ue:JT,Y:NT,V:e0,ve:$T,e:sT,aa:LT,B:kT,Lb:FB,d:oT,$:KT,ta:QT,h:uT,Ib:RB,l:dT,pa:ST,o:cT,z:jT,w:bT,Q:qT,x:gT,v:wT,p:MT,L:AT,J:RT,Mb:OB,Pb:IB,Rb:wB,Nb:SB,Jb:AB,Qb:TB,qc:JI,he:a0,jd:nI,cd:dI,ge:u0,Ac:LI,xd:W0,Xa:pS,Wa:yS,Wd:g0,id:sI,Qc:BI,Qd:B0,Vb:bB,Bc:NI,Va:mS,Xd:b0,Ud:j0,Dc:VI,dd:lI,Id:C0,ad:hI,kb:XB,Vd:v0,$d:p0,Sd:T0,wd:H0,fb:nS,Ya:hS,kd:iI,fe:c0,Yc:_I,cb:aS,vb:WB,ed:cI,gb:iS,tc:GI,Td:w0,Zc:mI,vd:Y0,$c:pI,_c:yI,Uc:jI,oc:ZI,Mc:DI,Pc:SI,Oc:OI,Tb:vB,Nc:FI,de:d0,Bb:PB,Cb:VB,le:n0,ke:s0,hd:oI,ne:r0,Xb:mB,Ub:gB,Ob:BB,Wb:_B,Fb:UB,wc:WI,ub:HB,Hb:EB,Gb:CB,Fd:k0,Kb:DB,Eb:MB,_b:hB,zd:q0,Kc:RI,Bd:L0,qd:Q0,Ab:NB,zb:LB,jc:iB,yb:xB,Gd:M0,rc:$I,od:X0,Za:fS,bc:lB,mb:QB,md:tI,Lc:AI,Gc:UI,s:iT,k:aT,C:ET,ba:UT,rb:KB,D:VT,ca:CT,sb:GB,f:nT,T:yT,O:WT,dc:pT,g:mT,m:lT,te:ZT,q:DT,r:BT,ia:xT,y:vT,P:OT,N:PT,S:TT,pe:XT,ha:HT,Z:IT,Xc:bI,pb:$B,yd:z0,Ec:kI,Nd:F0,pc:QI,uc:YI,jb:eS,Dd:P0,zc:xI,db:oS,Sc:TI,Tc:wI,Hc:CI,Od:O0,xc:zI,vc:HI,kc:rB,Rd:I0,Rc:II,Wc:gI,Yb:yB,gc:oB,Jd:E0,Kd:R0,hb:rS,Pd:S0,Ld:A0,yc:qI,ec:uB,nc:XI,Vc:vI,eb:sS,be:f0,ee:l0,ie:o0,bd:fI,Zb:pB,Md:D0,ic:nB,hc:sB,pd:Z0,ib:tS,Ad:x0,ud:G0,_a:dS,fc:aB,lb:ZB,me:i0,_d:y0,sd:$0,lc:tB,$b:fB,Sb:jB,Zd:m0,Yd:_0,td:K0,gd:aI,fd:uI,nd:eI,tb:YB,ld:rI,cc:cB,Db:kB,bb:uS,mc:eB,nb:JB,rd:J0,Cc:PI,$a:lS,ab:cS,ac:dB,ae:h0,Ed:V0,Fc:MI,Jc:EI,sc:KI,Hd:U0,Cd:N0,H:pw,F:yw,Ia:bw,Pa:vw},wC=ij(),Tw=t.___wasm_call_ctors=function(){return(Tw=t.___wasm_call_ctors=t.asm.ye).apply(null,arguments)},Iw=t._main=function(){return(Iw=t._main=t.asm.ze).apply(null,arguments)},Bw=t._duckdb_web_fs_glob_add_path=function(){return(Bw=t._duckdb_web_fs_glob_add_path=t.asm.Be).apply(null,arguments)},Sw=t._duckdb_web_clear_response=function(){return(Sw=t._duckdb_web_clear_response=t.asm.Ce).apply(null,arguments)},Ow=t._duckdb_web_fail_with=function(){return(Ow=t._duckdb_web_fail_with=t.asm.De).apply(null,arguments)},Fw=t._duckdb_web_reset=function(){return(Fw=t._duckdb_web_reset=t.asm.Ee).apply(null,arguments)},Dw=t._duckdb_web_connect=function(){return(Dw=t._duckdb_web_connect=t.asm.Fe).apply(null,arguments)},Aw=t._duckdb_web_disconnect=function(){return(Aw=t._duckdb_web_disconnect=t.asm.Ge).apply(null,arguments)},Rw=t._duckdb_web_flush_files=function(){return(Rw=t._duckdb_web_flush_files=t.asm.He).apply(null,arguments)},Ew=t._duckdb_web_flush_file=function(){return(Ew=t._duckdb_web_flush_file=t.asm.Ie).apply(null,arguments)},Cw=t._duckdb_web_open=function(){return(Cw=t._duckdb_web_open=t.asm.Je).apply(null,arguments)},Uw=t._duckdb_web_collect_file_stats=function(){return(Uw=t._duckdb_web_collect_file_stats=t.asm.Ke).apply(null,arguments)},Mw=t._duckdb_web_export_file_stats=function(){return(Mw=t._duckdb_web_export_file_stats=t.asm.Le).apply(null,arguments)},kw=t._duckdb_web_fs_drop_file=function(){return(kw=t._duckdb_web_fs_drop_file=t.asm.Me).apply(null,arguments)},Vw=t._duckdb_web_fs_drop_files=function(){return(Vw=t._duckdb_web_fs_drop_files=t.asm.Ne).apply(null,arguments)},Pw=t._duckdb_web_fs_get_file_info=function(){return(Pw=t._duckdb_web_fs_get_file_info=t.asm.Oe).apply(null,arguments)},Nw=t._duckdb_web_fs_set_file_descriptor=function(){return(Nw=t._duckdb_web_fs_set_file_descriptor=t.asm.Pe).apply(null,arguments)},Lw=t._duckdb_web_fs_register_file_url=function(){return(Lw=t._duckdb_web_fs_register_file_url=t.asm.Qe).apply(null,arguments)},xw=t._duckdb_web_fs_register_file_buffer=function(){return(xw=t._duckdb_web_fs_register_file_buffer=t.asm.Re).apply(null,arguments)},qw=t._duckdb_web_copy_file_to_buffer=function(){return(qw=t._duckdb_web_copy_file_to_buffer=t.asm.Se).apply(null,arguments)},zw=t._duckdb_web_copy_file_to_path=function(){return(zw=t._duckdb_web_copy_file_to_path=t.asm.Te).apply(null,arguments)},Ww=t._duckdb_web_get_version=function(){return(Ww=t._duckdb_web_get_version=t.asm.Ue).apply(null,arguments)},Hw=t._duckdb_web_get_feature_flags=function(){return(Hw=t._duckdb_web_get_feature_flags=t.asm.Ve).apply(null,arguments)},Yw=t._duckdb_web_tokenize=function(){return(Yw=t._duckdb_web_tokenize=t.asm.We).apply(null,arguments)},Gw=t._duckdb_web_prepared_statement_create=function(){return(Gw=t._duckdb_web_prepared_statement_create=t.asm.Xe).apply(null,arguments)},Kw=t._duckdb_web_prepared_statement_close=function(){return(Kw=t._duckdb_web_prepared_statement_close=t.asm.Ye).apply(null,arguments)},$w=t._duckdb_web_prepared_statement_run=function(){return($w=t._duckdb_web_prepared_statement_run=t.asm.Ze).apply(null,arguments)},Jw=t._duckdb_web_prepared_statement_send=function(){return(Jw=t._duckdb_web_prepared_statement_send=t.asm._e).apply(null,arguments)},Qw=t._duckdb_web_query_run=function(){return(Qw=t._duckdb_web_query_run=t.asm.$e).apply(null,arguments)},Zw=t._duckdb_web_query_send=function(){return(Zw=t._duckdb_web_query_send=t.asm.af).apply(null,arguments)},Xw=t._duckdb_web_query_fetch_results=function(){return(Xw=t._duckdb_web_query_fetch_results=t.asm.bf).apply(null,arguments)},eT=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(eT=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.cf).apply(null,arguments)},tT=t._duckdb_web_insert_csv_from_path=function(){return(tT=t._duckdb_web_insert_csv_from_path=t.asm.df).apply(null,arguments)},rT=t._duckdb_web_insert_json_from_path=function(){return(rT=t._duckdb_web_insert_json_from_path=t.asm.ef).apply(null,arguments)},lf=t.___errno_location=function(){return(lf=t.___errno_location=t.asm.ff).apply(null,arguments)},w=t.stackSave=function(){return(w=t.stackSave=t.asm.gf).apply(null,arguments)},T=t.stackRestore=function(){return(T=t.stackRestore=t.asm.hf).apply(null,arguments)},cu=t.stackAlloc=function(){return(cu=t.stackAlloc=t.asm.jf).apply(null,arguments)},I=t._setThrew=function(){return(I=t._setThrew=t.asm.kf).apply(null,arguments)},eo=t.___cxa_can_catch=function(){return(eo=t.___cxa_can_catch=t.asm.lf).apply(null,arguments)},df=t.___cxa_is_pointer_type=function(){return(df=t.___cxa_is_pointer_type=t.asm.mf).apply(null,arguments)},lu=t._malloc=function(){return(lu=t._malloc=t.asm.nf).apply(null,arguments)},du=t._free=function(){return(du=t._free=t.asm.of).apply(null,arguments)},ff=t.dynCall_jiji=function(){return(ff=t.dynCall_jiji=t.asm.pf).apply(null,arguments)},hf=t.dynCall_jiiii=function(){return(hf=t.dynCall_jiiii=t.asm.qf).apply(null,arguments)},pf=t.dynCall_iiiiij=function(){return(pf=t.dynCall_iiiiij=t.asm.rf).apply(null,arguments)},yf=t.dynCall_iiiiijj=function(){return(yf=t.dynCall_iiiiijj=t.asm.sf).apply(null,arguments)},mf=t.dynCall_viijii=function(){return(mf=t.dynCall_viijii=t.asm.tf).apply(null,arguments)},_f=t.dynCall_j=function(){return(_f=t.dynCall_j=t.asm.uf).apply(null,arguments)},bf=t.dynCall_ji=function(){return(bf=t.dynCall_ji=t.asm.vf).apply(null,arguments)},gf=t.dynCall_iij=function(){return(gf=t.dynCall_iij=t.asm.wf).apply(null,arguments)},vf=t.dynCall_viij=function(){return(vf=t.dynCall_viij=t.asm.xf).apply(null,arguments)},jf=t.dynCall_viijji=function(){return(jf=t.dynCall_viijji=t.asm.yf).apply(null,arguments)},wf=t.dynCall_viijj=function(){return(wf=t.dynCall_viijj=t.asm.zf).apply(null,arguments)},Tf=t.dynCall_viiijj=function(){return(Tf=t.dynCall_viiijj=t.asm.Af).apply(null,arguments)},If=t.dynCall_viiji=function(){return(If=t.dynCall_viiji=t.asm.Bf).apply(null,arguments)},Bf=t.dynCall_vijjj=function(){return(Bf=t.dynCall_vijjj=t.asm.Cf).apply(null,arguments)},Sf=t.dynCall_iiijj=function(){return(Sf=t.dynCall_iiijj=t.asm.Df).apply(null,arguments)},Of=t.dynCall_viiij=function(){return(Of=t.dynCall_viiij=t.asm.Ef).apply(null,arguments)},Ff=t.dynCall_viijij=function(){return(Ff=t.dynCall_viijij=t.asm.Ff).apply(null,arguments)},Df=t.dynCall_viji=function(){return(Df=t.dynCall_viji=t.asm.Gf).apply(null,arguments)},Af=t.dynCall_iiiijj=function(){return(Af=t.dynCall_iiiijj=t.asm.Hf).apply(null,arguments)},Rf=t.dynCall_viijiiiii=function(){return(Rf=t.dynCall_viijiiiii=t.asm.If).apply(null,arguments)},Ef=t.dynCall_viiiiijiiii=function(){return(Ef=t.dynCall_viiiiijiiii=t.asm.Jf).apply(null,arguments)},Cf=t.dynCall_viiiijj=function(){return(Cf=t.dynCall_viiiijj=t.asm.Kf).apply(null,arguments)},Uf=t.dynCall_iiijiiii=function(){return(Uf=t.dynCall_iiijiiii=t.asm.Lf).apply(null,arguments)},Mf=t.dynCall_vij=function(){return(Mf=t.dynCall_vij=t.asm.Mf).apply(null,arguments)},kf=t.dynCall_jij=function(){return(kf=t.dynCall_jij=t.asm.Nf).apply(null,arguments)},Vf=t.dynCall_jiiij=function(){return(Vf=t.dynCall_jiiij=t.asm.Of).apply(null,arguments)},Pf=t.dynCall_iiij=function(){return(Pf=t.dynCall_iiij=t.asm.Pf).apply(null,arguments)},Nf=t.dynCall_iiiiijjiijj=function(){return(Nf=t.dynCall_iiiiijjiijj=t.asm.Qf).apply(null,arguments)},Lf=t.dynCall_viijiijji=function(){return(Lf=t.dynCall_viijiijji=t.asm.Rf).apply(null,arguments)},xf=t.dynCall_vjjijij=function(){return(xf=t.dynCall_vjjijij=t.asm.Sf).apply(null,arguments)},qf=t.dynCall_vijjji=function(){return(qf=t.dynCall_vijjji=t.asm.Tf).apply(null,arguments)},zf=t.dynCall_vjjii=function(){return(zf=t.dynCall_vjjii=t.asm.Uf).apply(null,arguments)},Wf=t.dynCall_viiiiiji=function(){return(Wf=t.dynCall_viiiiiji=t.asm.Vf).apply(null,arguments)},Hf=t.dynCall_jiiijji=function(){return(Hf=t.dynCall_jiiijji=t.asm.Wf).apply(null,arguments)},Yf=t.dynCall_iijj=function(){return(Yf=t.dynCall_iijj=t.asm.Xf).apply(null,arguments)},Gf=t.dynCall_iiijjii=function(){return(Gf=t.dynCall_iiijjii=t.asm.Yf).apply(null,arguments)},Kf=t.dynCall_iijjii=function(){return(Kf=t.dynCall_iijjii=t.asm.Zf).apply(null,arguments)},$f=t.dynCall_viiiij=function(){return($f=t.dynCall_viiiij=t.asm._f).apply(null,arguments)},Jf=t.dynCall_vijii=function(){return(Jf=t.dynCall_vijii=t.asm.$f).apply(null,arguments)},Qf=t.dynCall_viijjii=function(){return(Qf=t.dynCall_viijjii=t.asm.ag).apply(null,arguments)},Zf=t.dynCall_vijj=function(){return(Zf=t.dynCall_vijj=t.asm.bg).apply(null,arguments)},Xf=t.dynCall_jijjij=function(){return(Xf=t.dynCall_jijjij=t.asm.cg).apply(null,arguments)},eh=t.dynCall_jiijii=function(){return(eh=t.dynCall_jiijii=t.asm.dg).apply(null,arguments)},th=t.dynCall_jijiii=function(){return(th=t.dynCall_jijiii=t.asm.eg).apply(null,arguments)},rh=t.dynCall_viijiiij=function(){return(rh=t.dynCall_viijiiij=t.asm.fg).apply(null,arguments)},ih=t.dynCall_vijiiiji=function(){return(ih=t.dynCall_vijiiiji=t.asm.gg).apply(null,arguments)},nh=t.dynCall_jiiji=function(){return(nh=t.dynCall_jiiji=t.asm.hg).apply(null,arguments)},sh=t.dynCall_viiijij=function(){return(sh=t.dynCall_viiijij=t.asm.ig).apply(null,arguments)},oh=t.dynCall_viijiijj=function(){return(oh=t.dynCall_viijiijj=t.asm.jg).apply(null,arguments)},ah=t.dynCall_viiiiijj=function(){return(ah=t.dynCall_viiiiijj=t.asm.kg).apply(null,arguments)},uh=t.dynCall_viiijji=function(){return(uh=t.dynCall_viiijji=t.asm.lg).apply(null,arguments)},ch=t.dynCall_iiiij=function(){return(ch=t.dynCall_iiiij=t.asm.mg).apply(null,arguments)},lh=t.dynCall_iiiiiji=function(){return(lh=t.dynCall_iiiiiji=t.asm.ng).apply(null,arguments)},dh=t.dynCall_iiiji=function(){return(dh=t.dynCall_iiiji=t.asm.og).apply(null,arguments)},fh=t.dynCall_iiiiji=function(){return(fh=t.dynCall_iiiiji=t.asm.pg).apply(null,arguments)},hh=t.dynCall_jii=function(){return(hh=t.dynCall_jii=t.asm.qg).apply(null,arguments)},ph=t.dynCall_jiii=function(){return(ph=t.dynCall_jiii=t.asm.rg).apply(null,arguments)},yh=t.dynCall_iijjijj=function(){return(yh=t.dynCall_iijjijj=t.asm.sg).apply(null,arguments)},mh=t.dynCall_viiiijiiiii=function(){return(mh=t.dynCall_viiiijiiiii=t.asm.tg).apply(null,arguments)},_h=t.dynCall_viiiijiiii=function(){return(_h=t.dynCall_viiiijiiii=t.asm.ug).apply(null,arguments)},bh=t.dynCall_viiijii=function(){return(bh=t.dynCall_viiijii=t.asm.vg).apply(null,arguments)},gh=t.dynCall_viiiiiij=function(){return(gh=t.dynCall_viiiiiij=t.asm.wg).apply(null,arguments)},vh=t.dynCall_viiijjj=function(){return(vh=t.dynCall_viiijjj=t.asm.xg).apply(null,arguments)},jh=t.dynCall_iiijiii=function(){return(jh=t.dynCall_iiijiii=t.asm.yg).apply(null,arguments)},wh=t.dynCall_iiiiijii=function(){return(wh=t.dynCall_iiiiijii=t.asm.zg).apply(null,arguments)},Th=t.dynCall_viijiii=function(){return(Th=t.dynCall_viijiii=t.asm.Ag).apply(null,arguments)},Ih=t.dynCall_iiijiij=function(){return(Ih=t.dynCall_iiijiij=t.asm.Bg).apply(null,arguments)},Bh=t.dynCall_vijiii=function(){return(Bh=t.dynCall_vijiii=t.asm.Cg).apply(null,arguments)},Sh=t.dynCall_iijjiii=function(){return(Sh=t.dynCall_iijjiii=t.asm.Dg).apply(null,arguments)},Oh=t.dynCall_iijjiiii=function(){return(Oh=t.dynCall_iijjiiii=t.asm.Eg).apply(null,arguments)},Fh=t.dynCall_iiji=function(){return(Fh=t.dynCall_iiji=t.asm.Fg).apply(null,arguments)},Dh=t.dynCall_iijji=function(){return(Dh=t.dynCall_iijji=t.asm.Gg).apply(null,arguments)},Ah=t.dynCall_vijiiii=function(){return(Ah=t.dynCall_vijiiii=t.asm.Hg).apply(null,arguments)},Rh=t.dynCall_iijiiii=function(){return(Rh=t.dynCall_iijiiii=t.asm.Ig).apply(null,arguments)},Eh=t.dynCall_viiiji=function(){return(Eh=t.dynCall_viiiji=t.asm.Jg).apply(null,arguments)},Ch=t.dynCall_iiiijiii=function(){return(Ch=t.dynCall_iiiijiii=t.asm.Kg).apply(null,arguments)},Uh=t.dynCall_vijij=function(){return(Uh=t.dynCall_vijij=t.asm.Lg).apply(null,arguments)},Mh=t.dynCall_iiijjjj=function(){return(Mh=t.dynCall_iiijjjj=t.asm.Mg).apply(null,arguments)},kh=t.dynCall_jijj=function(){return(kh=t.dynCall_jijj=t.asm.Ng).apply(null,arguments)},Vh=t.dynCall_viiiijiiiiiiii=function(){return(Vh=t.dynCall_viiiijiiiiiiii=t.asm.Og).apply(null,arguments)},Ph=t.dynCall_ij=function(){return(Ph=t.dynCall_ij=t.asm.Pg).apply(null,arguments)},Nh=t.dynCall_jj=function(){return(Nh=t.dynCall_jj=t.asm.Qg).apply(null,arguments)},Lh=t.dynCall_jjj=function(){return(Lh=t.dynCall_jjj=t.asm.Rg).apply(null,arguments)},xh=t.dynCall_iji=function(){return(xh=t.dynCall_iji=t.asm.Sg).apply(null,arguments)},qh=t.dynCall_vjii=function(){return(qh=t.dynCall_vjii=t.asm.Tg).apply(null,arguments)},zh=t.dynCall_vjiiii=function(){return(zh=t.dynCall_vjiiii=t.asm.Ug).apply(null,arguments)},Wh=t.dynCall_viiiiijiii=function(){return(Wh=t.dynCall_viiiiijiii=t.asm.Vg).apply(null,arguments)},Hh=t.dynCall_vijji=function(){return(Hh=t.dynCall_vijji=t.asm.Wg).apply(null,arguments)},Yh=t.dynCall_iiijii=function(){return(Yh=t.dynCall_iiijii=t.asm.Xg).apply(null,arguments)},Gh=t.dynCall_jiij=function(){return(Gh=t.dynCall_jiij=t.asm.Yg).apply(null,arguments)},Kh=t.dynCall_iiiijjii=function(){return(Kh=t.dynCall_iiiijjii=t.asm.Zg).apply(null,arguments)},$h=t.dynCall_iiiiijji=function(){return($h=t.dynCall_iiiiijji=t.asm._g).apply(null,arguments)},Jh=t.dynCall_viiiiji=function(){return(Jh=t.dynCall_viiiiji=t.asm.$g).apply(null,arguments)},Qh=t.dynCall_viiijjii=function(){return(Qh=t.dynCall_viiijjii=t.asm.ah).apply(null,arguments)},Zh=t.dynCall_viiiijji=function(){return(Zh=t.dynCall_viiiijji=t.asm.bh).apply(null,arguments)},Xh=t.dynCall_viiiijjii=function(){return(Xh=t.dynCall_viiiijjii=t.asm.ch).apply(null,arguments)},ep=t.dynCall_viiiiijji=function(){return(ep=t.dynCall_viiiiijji=t.asm.dh).apply(null,arguments)},tp=t.dynCall_jiiiij=function(){return(tp=t.dynCall_jiiiij=t.asm.eh).apply(null,arguments)},rp=t.dynCall_iijiji=function(){return(rp=t.dynCall_iijiji=t.asm.fh).apply(null,arguments)},ip=t.dynCall_viiijijiji=function(){return(ip=t.dynCall_viiijijiji=t.asm.gh).apply(null,arguments)},np=t.dynCall_vjiiiji=function(){return(np=t.dynCall_vjiiiji=t.asm.hh).apply(null,arguments)},sp=t.dynCall_viiijjij=function(){return(sp=t.dynCall_viiijjij=t.asm.ih).apply(null,arguments)},op=t.dynCall_vijijjiij=function(){return(op=t.dynCall_vijijjiij=t.asm.jh).apply(null,arguments)},ap=t.dynCall_viijjij=function(){return(ap=t.dynCall_viijjij=t.asm.kh).apply(null,arguments)},up=t.dynCall_viiijjiij=function(){return(up=t.dynCall_viiijjiij=t.asm.lh).apply(null,arguments)},cp=t.dynCall_viiiijjjj=function(){return(cp=t.dynCall_viiiijjjj=t.asm.mh).apply(null,arguments)},lp=t.dynCall_jiijijii=function(){return(lp=t.dynCall_jiijijii=t.asm.nh).apply(null,arguments)},dp=t.dynCall_viijiiiiij=function(){return(dp=t.dynCall_viijiiiiij=t.asm.oh).apply(null,arguments)},fp=t.dynCall_viijiiiijj=function(){return(fp=t.dynCall_viijiiiijj=t.asm.ph).apply(null,arguments)},hp=t.dynCall_viiijiiiijjj=function(){return(hp=t.dynCall_viiijiiiijjj=t.asm.qh).apply(null,arguments)},pp=t.dynCall_viijijiiiijjj=function(){return(pp=t.dynCall_viijijiiiijjj=t.asm.rh).apply(null,arguments)},yp=t.dynCall_iijjjj=function(){return(yp=t.dynCall_iijjjj=t.asm.sh).apply(null,arguments)},mp=t.dynCall_iiijji=function(){return(mp=t.dynCall_iiijji=t.asm.th).apply(null,arguments)},_p=t.dynCall_vijijiiiijjj=function(){return(_p=t.dynCall_vijijiiiijjj=t.asm.uh).apply(null,arguments)},bp=t.dynCall_iiiiiiji=function(){return(bp=t.dynCall_iiiiiiji=t.asm.vh).apply(null,arguments)},gp=t.dynCall_jijijjij=function(){return(gp=t.dynCall_jijijjij=t.asm.wh).apply(null,arguments)},vp=t.dynCall_vijjij=function(){return(vp=t.dynCall_vijjij=t.asm.xh).apply(null,arguments)},jp=t.dynCall_viijjj=function(){return(jp=t.dynCall_viijjj=t.asm.yh).apply(null,arguments)},wp=t.dynCall_jiiijj=function(){return(wp=t.dynCall_jiiijj=t.asm.zh).apply(null,arguments)},Tp=t.dynCall_viijiiii=function(){return(Tp=t.dynCall_viijiiii=t.asm.Ah).apply(null,arguments)},Ip=t.dynCall_iiijij=function(){return(Ip=t.dynCall_iiijij=t.asm.Bh).apply(null,arguments)},Bp=t.dynCall_viiijiii=function(){return(Bp=t.dynCall_viiijiii=t.asm.Ch).apply(null,arguments)},Sp=t.dynCall_viijjji=function(){return(Sp=t.dynCall_viijjji=t.asm.Dh).apply(null,arguments)},Op=t.dynCall_iiiiiij=function(){return(Op=t.dynCall_iiiiiij=t.asm.Eh).apply(null,arguments)},Fp=t.dynCall_iiiiiiiiiiji=function(){return(Fp=t.dynCall_iiiiiiiiiiji=t.asm.Fh).apply(null,arguments)},Dp=t.dynCall_jiiiiiii=function(){return(Dp=t.dynCall_jiiiiiii=t.asm.Gh).apply(null,arguments)},Ap=t.dynCall_iidj=function(){return(Ap=t.dynCall_iidj=t.asm.Hh).apply(null,arguments)},Rp=t.dynCall_jiiijii=function(){return(Rp=t.dynCall_jiiijii=t.asm.Ih).apply(null,arguments)},Ep=t.dynCall_ijji=function(){return(Ep=t.dynCall_ijji=t.asm.Jh).apply(null,arguments)},Cp=t.dynCall_iiiiiiiij=function(){return(Cp=t.dynCall_iiiiiiiij=t.asm.Kh).apply(null,arguments)},Up=t.dynCall_iiiiiiij=function(){return(Up=t.dynCall_iiiiiiij=t.asm.Lh).apply(null,arguments)},Mp=t.dynCall_iiiiiiiiiiiij=function(){return(Mp=t.dynCall_iiiiiiiiiiiij=t.asm.Mh).apply(null,arguments)},kp=t.dynCall_iiiiiiiji=function(){return(kp=t.dynCall_iiiiiiiji=t.asm.Nh).apply(null,arguments)},Vp=t.dynCall_iiiidjj=function(){return(Vp=t.dynCall_iiiidjj=t.asm.Oh).apply(null,arguments)},Pp=t.dynCall_jiiiii=function(){return(Pp=t.dynCall_jiiiii=t.asm.Ph).apply(null,arguments)},Np=t.dynCall_jiiiiiijii=function(){return(Np=t.dynCall_jiiiiiijii=t.asm.Qh).apply(null,arguments)},Lp=t.dynCall_iiiijji=function(){return(Lp=t.dynCall_iiiijji=t.asm.Rh).apply(null,arguments)},xp=t.dynCall_jiiiiii=function(){return(xp=t.dynCall_jiiiiii=t.asm.Sh).apply(null,arguments)},qp=t.dynCall_jiiiijii=function(){return(qp=t.dynCall_jiiiijii=t.asm.Th).apply(null,arguments)},zp=t.dynCall_jiiiijiiiiiiii=function(){return(zp=t.dynCall_jiiiijiiiiiiii=t.asm.Uh).apply(null,arguments)},Wp=t.dynCall_jiiiiijiiii=function(){return(Wp=t.dynCall_jiiiiijiiii=t.asm.Vh).apply(null,arguments)},Hp=t.dynCall_jiiijiii=function(){return(Hp=t.dynCall_jiiijiii=t.asm.Wh).apply(null,arguments)},Yp=t.dynCall_fiijii=function(){return(Yp=t.dynCall_fiijii=t.asm.Xh).apply(null,arguments)},Gp=t.dynCall_diijii=function(){return(Gp=t.dynCall_diijii=t.asm.Yh).apply(null,arguments)},Kp=t.dynCall_vijijj=function(){return(Kp=t.dynCall_vijijj=t.asm.Zh).apply(null,arguments)},$p=t.dynCall_jf=function(){return($p=t.dynCall_jf=t.asm._h).apply(null,arguments)},Jp=t.dynCall_jd=function(){return(Jp=t.dynCall_jd=t.asm.$h).apply(null,arguments)},Qp=t.dynCall_jiijiiiii=function(){return(Qp=t.dynCall_jiijiiiii=t.asm.ai).apply(null,arguments)},Zp=t.dynCall_jiijiijiii=function(){return(Zp=t.dynCall_jiijiijiii=t.asm.bi).apply(null,arguments)},Xp=t.dynCall_jiijjiii=function(){return(Xp=t.dynCall_jiijjiii=t.asm.ci).apply(null,arguments)},ey=t.dynCall_iijiii=function(){return(ey=t.dynCall_iijiii=t.asm.di).apply(null,arguments)},ty=t.dynCall_jiiiiji=function(){return(ty=t.dynCall_jiiiiji=t.asm.ei).apply(null,arguments)},ry=t.dynCall_vijiijj=function(){return(ry=t.dynCall_vijiijj=t.asm.fi).apply(null,arguments)},iy=t.dynCall_vifiijj=function(){return(iy=t.dynCall_vifiijj=t.asm.gi).apply(null,arguments)},ny=t.dynCall_vidiijj=function(){return(ny=t.dynCall_vidiijj=t.asm.hi).apply(null,arguments)},sy=t.dynCall_viiiiij=function(){return(sy=t.dynCall_viiiiij=t.asm.ii).apply(null,arguments)},oy=t.dynCall_ijj=function(){return(oy=t.dynCall_ijj=t.asm.ji).apply(null,arguments)},ay=t.dynCall_ijjiii=function(){return(ay=t.dynCall_ijjiii=t.asm.ki).apply(null,arguments)},uy=t.dynCall_vijijjji=function(){return(uy=t.dynCall_vijijjji=t.asm.li).apply(null,arguments)},cy=t.dynCall_viiiiijjji=function(){return(cy=t.dynCall_viiiiijjji=t.asm.mi).apply(null,arguments)},ly=t.dynCall_viijijj=function(){return(ly=t.dynCall_viijijj=t.asm.ni).apply(null,arguments)},dy=t.dynCall_iiijiijj=function(){return(dy=t.dynCall_iiijiijj=t.asm.oi).apply(null,arguments)},fy=t.dynCall_viiijijjj=function(){return(fy=t.dynCall_viiijijjj=t.asm.pi).apply(null,arguments)},hy=t.dynCall_iijiijj=function(){return(hy=t.dynCall_iijiijj=t.asm.qi).apply(null,arguments)},py=t.dynCall_viiijjjji=function(){return(py=t.dynCall_viiijjjji=t.asm.ri).apply(null,arguments)},yy=t.dynCall_viiiijiii=function(){return(yy=t.dynCall_viiiijiii=t.asm.si).apply(null,arguments)},my=t.dynCall_iijii=function(){return(my=t.dynCall_iijii=t.asm.ti).apply(null,arguments)},_y=t.dynCall_vijjiiii=function(){return(_y=t.dynCall_vijjiiii=t.asm.ui).apply(null,arguments)},by=t.dynCall_vijijjiiiii=function(){return(by=t.dynCall_vijijjiiiii=t.asm.vi).apply(null,arguments)},gy=t.dynCall_vijjiiiii=function(){return(gy=t.dynCall_vijjiiiii=t.asm.wi).apply(null,arguments)},vy=t.dynCall_iiijjji=function(){return(vy=t.dynCall_iiijjji=t.asm.xi).apply(null,arguments)},jy=t.dynCall_iiiiijjj=function(){return(jy=t.dynCall_iiiiijjj=t.asm.yi).apply(null,arguments)},wy=t.dynCall_jijiiii=function(){return(wy=t.dynCall_jijiiii=t.asm.zi).apply(null,arguments)},Ty=t.dynCall_iiijjjii=function(){return(Ty=t.dynCall_iiijjjii=t.asm.Ai).apply(null,arguments)},Iy=t.dynCall_iiiiijjji=function(){return(Iy=t.dynCall_iiiiijjji=t.asm.Bi).apply(null,arguments)},By=t.dynCall_iiiijjj=function(){return(By=t.dynCall_iiiijjj=t.asm.Ci).apply(null,arguments)},Sy=t.dynCall_viijiji=function(){return(Sy=t.dynCall_viijiji=t.asm.Di).apply(null,arguments)};function iT(o){var a=w();try{H.get(o)()}catch(u){if(T(a),u!==u+0&&u!=="longjmp")throw u;I(1,0)}}function nT(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function sT(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function oT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function aT(o,a){var u=w();try{H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function uT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function cT(o,a,u,l,d,f){var h=w();try{return H.get(o)(a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function lT(o,a,u,l,d){var f=w();try{H.get(o)(a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function dT(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function fT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function hT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function pT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function yT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function mT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function _T(o){var a=w();try{return H.get(o)()}catch(u){if(T(a),u!==u+0&&u!=="longjmp")throw u;I(1,0)}}function bT(o,a,u,l,d,f,h,p){var y=w();try{return H.get(o)(a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function gT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function vT(o,a,u,l,d,f,h,p){var y=w();try{H.get(o)(a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function jT(o,a,u,l,d,f,h){var p=w();try{return H.get(o)(a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function wT(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function TT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function IT(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le){var ge=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R,N,le)}catch(Be){if(T(ge),Be!==Be+0&&Be!=="longjmp")throw Be;I(1,0)}}function BT(o,a,u,l,d,f,h){var p=w();try{H.get(o)(a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function ST(o,a,u,l,d,f){var h=w();try{return H.get(o)(a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function OT(o,a,u,l,d,f,h,p,y){var m=w();try{H.get(o)(a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function FT(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function DT(o,a,u,l,d,f){var h=w();try{H.get(o)(a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function AT(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be,M,G){var Ee=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be,M,G)}catch(_e){if(T(Ee),_e!==_e+0&&_e!=="longjmp")throw _e;I(1,0)}}function RT(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be,M,G,Ee){var _e=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be,M,G,Ee)}catch(dt){if(T(_e),dt!==dt+0&&dt!=="longjmp")throw dt;I(1,0)}}function ET(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function CT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function UT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function MT(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le){var ge=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R,N,le)}catch(Be){if(T(ge),Be!==Be+0&&Be!=="longjmp")throw Be;I(1,0)}}function kT(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function VT(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function PT(o,a,u,l,d,f,h,p,y,m){var g=w();try{H.get(o)(a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function NT(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function LT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function xT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function qT(o,a,u,l,d,f,h,p,y){var m=w();try{return H.get(o)(a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function zT(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function WT(o,a,u,l,d,f){var h=w();try{H.get(o)(a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function HT(o,a,u,l,d,f,h,p,y,m,g,j,F,R){var N=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R)}catch(le){if(T(N),le!==le+0&&le!=="longjmp")throw le;I(1,0)}}function YT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function GT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function KT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function $T(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function JT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function QT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function ZT(o,a,u,l,d,f,h,p,y,m){var g=w();try{H.get(o)(a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function XT(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function e0(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function t0(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function r0(o,a,u,l,d){var f=w();try{return hf(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function i0(o,a,u,l,d,f,h){var p=w();try{wf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function n0(o,a){var u=w();try{return bf(o,a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function s0(o,a,u){var l=w();try{return hh(o,a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function o0(o,a,u,l,d,f,h){var p=w();try{mf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function a0(o,a,u,l,d,f,h){var p=w();try{return pf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function u0(o,a,u,l,d,f,h,p,y){var m=w();try{return yf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function c0(o,a,u,l){var d=w();try{return gf(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function l0(o,a,u,l,d,f){var h=w();try{If(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function d0(o){var a=w();try{return _f(o)}catch(u){if(T(a),u!==u+0&&u!=="longjmp")throw u;I(1,0)}}function f0(o,a,u,l,d){var f=w();try{vf(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function h0(o,a,u,l,d,f,h,p){var y=w();try{Bf(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function p0(o,a,u,l,d,f,h){var p=w();try{return Sf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function y0(o,a,u,l,d,f,h,p){var y=w();try{jf(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function m0(o,a,u,l){var d=w();try{Mf(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function _0(o,a,u,l,d){var f=w();try{Df(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function b0(o,a,u,l,d){var f=w();try{return Pf(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function g0(o,a,u,l,d,f){var h=w();try{return ch(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function v0(o,a,u,l,d,f,h,p){var y=w();try{return Ip(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function j0(o,a,u,l,d,f){var h=w();try{return dh(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function w0(o,a,u,l,d,f){var h=w();try{return Yf(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function T0(o,a,u,l,d,f,h,p){var y=w();try{return mp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function I0(o,a,u,l,d,f){var h=w();try{Of(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function B0(o,a,u,l,d,f,h,p){var y=w();try{return Af(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function S0(o,a,u,l,d,f,h,p){var y=w();try{Tf(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function O0(o,a,u,l,d,f,h,p,y){var m=w();try{Cf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function F0(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{Ef(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function D0(o,a,u,l,d,f,h,p,y,m){var g=w();try{Rf(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function A0(o,a,u,l,d,f,h,p,y){var m=w();try{uh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function R0(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{ip(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function E0(o,a,u,l,d,f,h,p,y){var m=w();try{sh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function C0(o,a,u,l,d,f,h,p,y){var m=w();try{return Uf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function U0(o,a,u,l,d,f,h){var p=w();try{zf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function M0(o,a,u,l){var d=w();try{return kf(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function k0(o,a,u,l,d,f){var h=w();try{return Vf(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function V0(o,a,u,l,d,f,h,p,y){var m=w();try{qf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function P0(o,a,u,l,d,f,h){var p=w();try{$f(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function N0(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{xf(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function L0(o,a,u,l,d,f){var h=w();try{return nh(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function x0(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{Lf(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function q0(o,a,u,l,d,f,h,p,y){var m=w();try{return Hf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function z0(o,a,u,l,d,f,h,p,y){var m=w();try{Wf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function W0(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N){var le=w();try{return Nf(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N)}catch(ge){if(T(le),ge!==ge+0&&ge!=="longjmp")throw ge;I(1,0)}}function H0(o,a,u,l,d,f,h,p,y){var m=w();try{return Gf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function Y0(o,a,u,l,d,f,h,p){var y=w();try{return Kf(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function G0(o,a,u,l,d,f,h,p){var y=w();try{Ff(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function K0(o,a,u,l,d,f){var h=w();try{Jf(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function $0(o,a,u,l,d,f,h,p,y){var m=w();try{Qf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function J0(o,a,u,l,d,f){var h=w();try{Zf(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function Q0(o,a,u,l,d,f,h){var p=w();try{return eh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function Z0(o,a,u,l,d,f,h,p,y,m){var g=w();try{rh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function X0(o,a,u,l,d,f,h){var p=w();try{return th(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function eI(o,a,u,l,d,f,h,p,y,m){var g=w();try{ih(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function tI(o,a,u,l,d,f,h,p,y){var m=w();try{return Xf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function rI(o,a,u,l,d,f,h){var p=w();try{Uh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function iI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return Mh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function nI(o,a,u,l,d,f,h,p){var y=w();try{return lh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function sI(o,a,u,l,d,f,h){var p=w();try{return fh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function oI(o,a,u,l){var d=w();try{return ph(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function aI(o,a,u,l,d,f,h){var p=w();try{Bh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function uI(o,a,u,l,d,f,h,p){var y=w();try{Ah(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function cI(o,a,u,l,d,f,h,p){var y=w();try{return Rh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function lI(o,a,u,l,d,f,h,p){var y=w();try{return jh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function dI(o,a,u,l,d,f,h,p,y){var m=w();try{return wh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function fI(o,a,u,l,d,f,h,p){var y=w();try{Th(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function hI(o,a,u,l,d,f,h,p,y){var m=w();try{return Ih(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function pI(o,a,u,l,d,f,h,p,y){var m=w();try{return Sh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function yI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Oh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function mI(o,a,u,l,d,f,h){var p=w();try{return Dh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function _I(o,a,u,l,d){var f=w();try{return Fh(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function bI(o,a,u,l,d,f,h,p,y){var m=w();try{gh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function gI(o,a,u,l,d,f,h,p){var y=w();try{bh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function vI(o,a,u,l,d,f,h,p,y,m){var g=w();try{vh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function jI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return yh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function wI(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{mh(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function TI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{_h(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function II(o,a,u,l,d,f,h){var p=w();try{Eh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function BI(o,a,u,l,d,f,h,p,y){var m=w();try{return Ch(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function SI(o,a,u,l){var d=w();try{return xh(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function OI(o,a,u,l,d){var f=w();try{return oy(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function FI(o,a,u,l,d,f,h,p){var y=w();try{return ay(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function DI(o,a,u){var l=w();try{return Ph(o,a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function AI(o,a,u){var l=w();try{return Nh(o,a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function RI(o,a,u,l,d){var f=w();try{return Gh(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function EI(o,a,u,l,d,f,h){var p=w();try{zh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function CI(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N){var le=w();try{Vh(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N)}catch(ge){if(T(le),ge!==ge+0&&ge!=="longjmp")throw ge;I(1,0)}}function UI(o,a,u,l,d){var f=w();try{return Lh(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function MI(o,a,u,l,d){var f=w();try{qh(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function kI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{Wh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function VI(o,a,u,l,d,f,h){var p=w();try{return Yh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function PI(o,a,u,l,d,f,h){var p=w();try{Hh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function NI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Kh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function LI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return $h(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function xI(o,a,u,l,d,f,h,p){var y=w();try{Jh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function qI(o,a,u,l,d,f,h,p,y,m){var g=w();try{Qh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function zI(o,a,u,l,d,f,h,p,y,m){var g=w();try{Zh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function WI(o,a,u,l,d,f,h){var p=w();try{return tp(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function HI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{Xh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function YI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{ep(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function GI(o,a,u,l,d,f,h,p){var y=w();try{return rp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function KI(o,a,u,l,d,f,h,p,y){var m=w();try{np(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function $I(o,a,u,l,d){var f=w();try{return ff(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function JI(o,a,u,l,d,f,h,p,y){var m=w();try{return bp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function QI(o,a,u,l,d,f,h,p,y,m){var g=w();try{ah(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function ZI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return yp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function XI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{sp(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function eB(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{op(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function tB(o,a,u,l,d,f,h,p,y,m){var g=w();try{ap(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function rB(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{cp(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function iB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return lp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function nB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{dp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function sB(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{fp(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function oB(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le){var ge=w();try{hp(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le)}catch(Be){if(T(ge),Be!==Be+0&&Be!=="longjmp")throw Be;I(1,0)}}function aB(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be){var M=w();try{pp(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be)}catch(G){if(T(M),G!==G+0&&G!=="longjmp")throw G;I(1,0)}}function uB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{up(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function cB(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge){var Be=w();try{_p(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge)}catch(M){if(T(Be),M!==M+0&&M!=="longjmp")throw M;I(1,0)}}function lB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return gp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function dB(o,a,u,l,d,f,h,p,y){var m=w();try{vp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function fB(o,a,u,l,d,f,h,p,y){var m=w();try{jp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function hB(o,a,u,l,d,f,h,p){var y=w();try{return wp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function pB(o,a,u,l,d,f,h,p,y){var m=w();try{Tp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function yB(o,a,u,l,d,f,h,p,y){var m=w();try{Bp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function mB(o,a,u,l,d,f){var h=w();try{return Pp(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function _B(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return Np(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function bB(o,a,u,l,d,f,h,p,y){var m=w();try{return Lp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function gB(o,a,u,l,d,f,h){var p=w();try{return xp(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function vB(o,a,u,l,d,f){var h=w();try{return Ep(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function jB(o,a,u,l,d,f,h,p,y,m){var g=w();try{Sp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function wB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Cp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function TB(o,a,u,l,d,f,h,p){var y=w();try{return Op(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function IB(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{return Fp(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function BB(o,a,u,l,d,f,h,p){var y=w();try{return Dp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function SB(o,a,u,l,d,f,h,p,y){var m=w();try{return Up(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function OB(o,a,u,l,d,f,h,p,y,m,g,j,F,R){var N=w();try{return Mp(o,a,u,l,d,f,h,p,y,m,g,j,F,R)}catch(le){if(T(N),le!==le+0&&le!=="longjmp")throw le;I(1,0)}}function FB(o,a,u,l,d){var f=w();try{return Ap(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function DB(o,a,u,l,d,f,h,p){var y=w();try{return Rp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function AB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return kp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function RB(o,a,u,l,d,f,h,p,y){var m=w();try{return Vp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function EB(o,a,u,l,d,f,h,p,y){var m=w();try{return qp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function CB(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N){var le=w();try{return zp(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N)}catch(ge){if(T(le),ge!==ge+0&&ge!=="longjmp")throw ge;I(1,0)}}function UB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return Wp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function MB(o,a,u,l,d,f,h,p,y){var m=w();try{return Hp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function kB(o,a,u,l,d,f,h,p,y){var m=w();try{Kp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function VB(o,a){var u=w();try{return $p(o,a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function PB(o,a){var u=w();try{return Jp(o,a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function NB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Qp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function LB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return Zp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function xB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Xp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function qB(o,a,u,l,d,f,h){var p=w();try{return Yp(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function zB(o,a,u,l,d,f,h){var p=w();try{return Gp(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function WB(o,a,u,l,d,f,h){var p=w();try{return ey(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function HB(o,a,u,l,d,f,h,p){var y=w();try{return ty(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function YB(o,a,u,l,d,f,h,p,y,m){var g=w();try{ry(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function GB(o,a,u,l,d,f,h,p,y){var m=w();try{iy(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function KB(o,a,u,l,d,f,h,p,y){var m=w();try{ny(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function $B(o,a,u,l,d,f,h,p){var y=w();try{sy(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function JB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{uy(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function QB(o,a,u,l,d,f){var h=w();try{return kh(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function ZB(o,a,u,l,d,f,h,p,y,m){var g=w();try{ly(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function XB(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return dy(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function eS(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{cy(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function tS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{oh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function rS(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{fy(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function iS(o,a,u,l,d,f,h,p,y,m){var g=w();try{return hy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function nS(o,a,u,l,d,f,h,p,y,m){var g=w();try{return vy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function sS(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{py(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function oS(o,a,u,l,d,f,h,p,y,m){var g=w();try{yy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function aS(o,a,u,l,d,f){var h=w();try{return my(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function uS(o,a,u,l,d,f,h,p,y,m,g,j,F,R){var N=w();try{by(o,a,u,l,d,f,h,p,y,m,g,j,F,R)}catch(le){if(T(N),le!==le+0&&le!=="longjmp")throw le;I(1,0)}}function cS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{gy(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function lS(o,a,u,l,d,f,h,p,y,m){var g=w();try{_y(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function dS(o,a,u,l,d,f,h,p,y){var m=w();try{Sy(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function fS(o,a,u,l,d,f,h,p){var y=w();try{return wy(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function hS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return Ty(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function pS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return jy(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function yS(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return Iy(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function mS(o,a,u,l,d,f,h,p,y,m){var g=w();try{return By(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}t.ccall=Rv;var to;function fu(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var _S=!1;ts=function o(){to||hu(),to||(ts=o)};function bS(o){var a=t._main,u=0,l=0;try{var d=a(u,l);gS(d,!0)}catch(h){if(h instanceof fu||h=="unwind")return;var f=h;h&&typeof h=="object"&&h.stack&&(f=[h,h.stack]),Vr("exception thrown: "+f),S(1,h)}finally{_S=!0}}function hu(o){if(o=o||v,ji>0||(Hv(),ji>0))return;function a(){to||(to=!0,t.calledRun=!0,!nu&&(Yv(),Gv(),i(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),Oy&&bS(o),$v()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),a()},1)):a()}t.run=hu;function gS(o,a){Kd=o,of()||(Kv(),t.onExit&&t.onExit(o),nu=!0),S(o,new fu(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var Oy=!0;return t.noInitialRun&&(Oy=!1),hu(),e.ready}}(),wv=_C;var xt=Dy(Pd()),xd=class{constructor(e,t,i){this.bindings=e;this.conn=t;this.header=i;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=e.length==0,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},qd=class{constructor(e,t){this._bindings=e,this._conn=t}get handle(){return this._conn}close(){this._bindings.disconnect(this._conn)}runQuery(e){let t=this._bindings.runQuery(this._conn,e),i=xt.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),xt.Table.from(i)}sendQuery(e){let t=this._bindings.sendQuery(this._conn,e),i=new xd(this._bindings,this._conn,t),n=xt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}createPreparedStatement(e){return this._bindings.createPreparedStatement(this._conn,e)}closePreparedStatement(e){this._bindings.closePreparedStatement(this._conn,e)}runPreparedStatement(e,t){let i=this._bindings.runPreparedStatement(this._conn,e,t),n=xt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isFile()),xt.Table.from(n)}sendPreparedStatement(e,t){let i=this._bindings.sendPreparedStatement(this._conn,e,t),n=new xd(this._bindings,this._conn,i),s=xt.RecordBatchReader.from(n);return console.assert(s.isSync()),console.assert(s.isStream()),s}insertArrowTable(e,t){e.schema.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually"),this.insertArrowBatches(e.schema,e.chunks,t)}insertArrowBatches(e,t,i){e.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");let n=new xt.AsyncByteQueue,s=new xt.RecordBatchStreamWriter().reset(n,e);s.writeAll(t),s.close();let c=s.toUint8Array(!0);this._bindings.insertArrowFromIPCStream(this._conn,c,i)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}};var Oe;(function(e){e[e.SUCCESS=0]="SUCCESS"})(Oe||(Oe={}));function bC(){let r=new TextDecoder;return e=>(typeof SharedArrayBuffer!="undefined"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),r.decode(e))}var gC=bC();function Je(r,e){console.error(e),r.ccall("duckdb_web_fail_with",null,["string"],[e])}function Xn(r,e,t){let i=r.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function Te(r,e,t){return gC(r.HEAPU8.subarray(e,e+t))}var at;(function(i){i[i.BUFFER=0]="BUFFER",i[i.NATIVE=1]="NATIVE",i[i.HTTP=3]="HTTP"})(at||(at={}));function Re(r,e,t,i){let n=r.stackSave(),s=r.stackAlloc(3*8);t.unshift("number"),i.unshift(s),r.ccall(e,null,t,i);let c=r.HEAPF64[(s>>3)+0],v=r.HEAPF64[(s>>3)+1],B=r.HEAPF64[(s>>3)+2];return r.stackRestore(n),[c,v,B]}function Qe(r){r.ccall("duckdb_web_clear_response",null,[],[])}var zd=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),i=new Uint8Array(new ArrayBuffer(e.byteLength));i.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=i}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};var Iv;(function(s){s[s.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",s[s.WASM_THREADS=2]="WASM_THREADS",s[s.WASM_SIMD=4]="WASM_SIMD",s[s.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",s[s.EMIT_BIGINT=16]="EMIT_BIGINT"})(Iv||(Iv={}));var Wd=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this._logger=e,this._runtime=t}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(){return this._instance!=null?this:(this._initPromise!=null&&await this._initPromise,this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this)}open(e){let[t,i,n]=Re(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));Qe(this.mod)}reset(){let[e,t,i]=Re(this.mod,"duckdb_web_reset",[],[]);if(e!==Oe.SUCCESS)throw new Error(Te(this.mod,t,i));Qe(this.mod)}getVersion(){let[e,t,i]=Re(this.mod,"duckdb_web_get_version",[],[]);if(e!==Oe.SUCCESS)throw new Error(Te(this.mod,t,i));let n=Te(this.mod,t,i);return Qe(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,i,n]=Re(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));let s=Te(this.mod,i,n);return Qe(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new qd(this,e)}disconnect(e){this.mod.ccall("duckdb_web_disconnect",null,["number"],[e])}runQuery(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));let c=Xn(this.mod,n,s);return Qe(this.mod),c}sendQuery(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));let c=Xn(this.mod,n,s);return Qe(this.mod),c}fetchQueryResults(e){let[t,i,n]=Re(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));let s=Xn(this.mod,i,n);return Qe(this.mod),s}createPreparedStatement(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_prepared_statement_create",["number","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));return Qe(this.mod),n}closePreparedStatement(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_prepared_statement_close",["number","number"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));Qe(this.mod)}runPreparedStatement(e,t,i){let[n,s,c]=Re(this.mod,"duckdb_web_prepared_statement_run",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==Oe.SUCCESS)throw new Error(Te(this.mod,s,c));let v=Xn(this.mod,s,c);return Qe(this.mod),v}sendPreparedStatement(e,t,i){let[n,s,c]=Re(this.mod,"duckdb_web_prepared_statement_send",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==Oe.SUCCESS)throw new Error(Te(this.mod,s,c));let v=Xn(this.mod,s,c);return Qe(this.mod),v}insertArrowFromIPCStream(e,t,i){let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let c=i?JSON.stringify(i):"",[v,B,S]=Re(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,c]);if(v!==Oe.SUCCESS)throw new Error(Te(this.mod,B,S))}insertCSVFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let S in i.columns)i.columnsFlat.push(Zn(S,i.columns[S]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[c,v,B]=Re(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(c!==Oe.SUCCESS)throw new Error(Te(this.mod,v,B))}insertJSONFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let S in i.columns)i.columnsFlat.push(Zn(S,i.columns[S]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[c,v,B]=Re(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(c!==Oe.SUCCESS)throw new Error(Te(this.mod,v,B))}finishInsert(e,t){}registerFileURL(e,t){t===void 0&&(t=e);let[i,n,s]=Re(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));Qe(this.mod)}registerFileBuffer(e,t){let i=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(i,i+t.length).set(t);let[s,c,v]=Re(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,i,t.length]);if(s!==Oe.SUCCESS)throw new Error(Te(this.mod,c,v));Qe(this.mod)}registerFileHandle(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,e]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));if(Qe(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let c of this.pthread.runningWorkers)c.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let c of this.pthread.unusedWorkers)c.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){return this.mod.ccall("duckdb_web_fs_drop_file","boolean",["string"],[e])}dropFiles(){this.mod.ccall("duckdb_web_fs_drop_files",null,[],[])}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));Qe(this.mod)}copyFileToBuffer(e){let[t,i,n]=Re(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));let s=this.mod.HEAPU8.subarray(i,i+n),c=new Uint8Array(s.length);return c.set(s),Qe(this.mod),c}collectFileStatistics(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s))}exportFileStatistics(e){let[t,i,n]=Re(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));return new zd(this.mod.HEAPU8.subarray(i,i+n))}};var Hd=class extends Wd{constructor(e,t,i,n){super(e,t);this.mainModuleURL=i,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${t} path=${e}`)}instantiateWasm(e,t){return globalThis.DUCKDB_RUNTIME=this._runtime,WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(fetch(this.mainModuleURL),e).then(i=>{t(i.instance,i.module)}):fetch(this.mainModuleURL).then(i=>i.arrayBuffer()).then(i=>WebAssembly.instantiate(i,e).then(n=>{t(n.instance,n.module)})).catch(i=>{console.error("Failed to instantiate WASM:",i)}),[]}};var Yd=class extends Hd{constructor(e,t,i,n=null){super(e,t,i,n)}instantiateImpl(e){return wv({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var ut={fileInfoCache:new Map,getFileInfo(r,e){try{let t=ut.fileInfoCache.get(e);if(t)return t;let[i,n,s]=Re(r,"duckdb_web_fs_get_file_info",["number"],[e]);if(i!==Oe.SUCCESS)throw new Error(Te(r,n,s));let c=Te(r,n,s);Qe(r);let v=JSON.parse(c);if(v==null)return null;let B={...v,blob:null};return ut.fileInfoCache.set(e,B),B}catch(t){return Je(r,t.toString()),null}},testPlatformFeature:(r,e)=>{switch(e){case 1:return typeof BigInt64Array!="undefined";default:return console.warn(`test for unknown feature: ${e}`),!1}},openFile:(r,e)=>{try{ut.fileInfoCache.delete(e);let t=ut.getFileInfo(r,e);switch(t?.data_protocol){case at.HTTP:{let i=new XMLHttpRequest;i.open("HEAD",t.data_url,!1),i.setRequestHeader("Range","bytes=0-"),i.send(null);let n=!1;if(i.status==206?n=!0:i.status==200&&(n=i.getResponseHeader("Accept-Ranges")==="bytes"),!n)return Je(r,`File does not support range requests: ${t.file_name}`),0;break}case at.NATIVE:{if(!ut._files?.get(t.file_name))return Je(r,`No handle available for file: ${t.file_name}`),0;break}}}catch(t){Je(r,t.toString())}return 0},glob:(r,e,t)=>{try{let i=Te(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let s=!1;if(n.status==206)s=!0;else if(n.status==200)s=n.getResponseHeader("Accept-Ranges")==="bytes";else{Je(r,`HEAD request failed: ${i}`);return}if(!s){Je(r,`File does not support range requests: ${i}`);return}r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(i){return Je(r,i.toString()),0}},checkFile:(r,e,t)=>{try{let i=Te(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let s=!1;if(n.status==206)s=!0;else if(n.status==200)s=n.getResponseHeader("Accept-Ranges")==="bytes";else return!1;return!!s}}catch(i){return!1}return!1},syncFile:(r,e)=>{},closeFile:(r,e)=>{let t=ut.getFileInfo(r,e);switch(ut.fileInfoCache.delete(e),t?.data_protocol){case at.HTTP:break;case at.NATIVE:return}},truncateFile:(r,e,t)=>{switch(ut.getFileInfo(r,e)?.data_protocol){case at.HTTP:Je(r,"Cannot truncate a http file");return;case at.NATIVE:Je(r,"truncateFile not implemented");return}return 0},readFile(r,e,t,i,n){try{let s=ut.getFileInfo(r,e);switch(s?.data_protocol){case at.HTTP:{if(!s.data_url)return Je(r,`Missing data URL for file ${e}`),0;let c=new XMLHttpRequest;if(c.open("GET",s.data_url,!1),c.responseType="arraybuffer",c.setRequestHeader("Range",`bytes=${n}-${n+i-1}`),c.send(null),c.status==206||c.status==200&&i==c.response.byteLength&&n==0){let v=new Uint8Array(c.response,0,Math.min(c.response.byteLength,i));return r.HEAPU8.set(v,t),v.byteLength}else return c.status==200?(Je(r,`Range request for ${s.data_url} did not return a partial response: ${c.status} "${c.statusText}"`),0):(Je(r,`Range request for ${s.data_url} did returned non-success status: ${c.status} "${c.statusText}"`),0)}case at.NATIVE:{let c=ut._files?.get(s.file_name);if(!c)return Je(r,`No handle available for file: ${s.file_name}`),0;let v=c.slice(n,n+i),B=new Uint8Array(new FileReaderSync().readAsArrayBuffer(v));return r.HEAPU8.set(B,t),B.byteLength}}return 0}catch(s){return Je(r,s.toString()),0}},writeFile:(r,e,t,i,n)=>{switch(ut.getFileInfo(r,e)?.data_protocol){case at.HTTP:return Je(r,"Cannot write to HTTP file"),0;case at.NATIVE:return Je(r,"writefile not implemented"),0}return 0},getFileSize:(r,e)=>{try{let t=ut.getFileInfo(r,e);switch(t?.data_protocol){case at.NATIVE:{let i=ut._files?.get(t.file_name);return i?i.size:(Je(r,`No handle available for file: ${t.file_name}`),0)}case at.HTTP:{if(!t.data_url)throw new Error(`Missing data URL for file ${e}`);let i=new XMLHttpRequest;if(i.open("HEAD",t.data_url,!1),i.send(null),i.status==200){let n=i.getResponseHeader("Content-Length");if(n)return parseInt(n);throw Error(`HEAD ${t.data_url} does not contain the HTTP header: Content-Length`)}else throw Error(`HEAD ${t.data_url} returned non-success status: ${i.status} "${i.statusText}"`)}}return 0}catch(t){return Je(r,t.toString()),0}},getLastFileModificationTime:(r,e)=>{let t=ut.getFileInfo(r,e);switch(t?.data_protocol){case at.NATIVE:{if(!ut._files?.get(t.file_name))throw Error(`No handle available for file: ${t.file_name}`);return 0}case at.HTTP:return new Date().getTime()}return 0},checkDirectory:(r,e,t)=>!1,createDirectory:(r,e,t)=>{},removeDirectory:(r,e,t)=>{},listDirectoryEntries:(r,e,t)=>!1,moveFile:(r,e,t,i,n)=>{},removeFile:(r,e,t)=>{}};var Bv=class extends Nd{postMessage(e,t){globalThis.postMessage(e,t)}async instantiate(e,t){return await new Yd(this,ut,e,t).instantiate()}};function Sv(){let r=new Bv;globalThis.onmessage=async e=>{await r.onMessage(e.data)}}Sv();return vC;})();
17
+ }`),this._dictionaries=[],this._recordBatches=[],super.close()}};yr.RecordBatchJSONWriter=Ia;function yl(r,e){let t=e;e instanceof ll.Table&&(t=e.chunks,r.reset(void 0,e.schema));for(let i of t)r.write(i);return r.finish()}async function ml(r,e){for await(let t of e)r.write(t);return r.finish()}function Fb({name:r,type:e,nullable:t}){let i=new $D.JSONTypeAssembler;return{name:r,nullable:t,type:i.visit(e),children:(e.children||[]).map(Fb),dictionary:GD.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:i.visit(e.indices)}:void 0}}function ZD(r,e,t=!1){let i=new KD.Field(`${e}`,r.type,r.nullCount>0),n=Ob.JSONVectorAssembler.assemble(new YD.Column(i,[r]));return JSON.stringify({id:e,isDelta:t,data:{count:r.length,columns:n}},null,2)}function XD(r){return JSON.stringify({count:r.length,columns:Ob.JSONVectorAssembler.assemble(r)},null,2)}});var gl=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.distributeVectorsIntoRecordBatches=hi.distributeColumnsIntoRecordBatches=hi.ensureSameLengthData=void 0;var Db=Yt(),_l=Xe(),eA=ci(),tA=Er(),bl=new Uint8Array(0),Ab=r=>[bl,bl,new Uint8Array(r),bl];function rA(r,e,t=e.reduce((i,n)=>Math.max(i,n.length),0)){let i,n,s=-1,c=e.length,v=[...r.fields],B=[],S=(t+63&~63)>>3;for(;++s<c;)(i=e[s])&&i.length===t?B[s]=i:((n=v[s]).nullable||(v[s]=v[s].clone({nullable:!0})),B[s]=i?i._changeLengthAndBackfillNullBitmap(t):Db.Data.new(n.type,0,t,t,Ab(S)));return[new _l.Schema(v),t,B]}hi.ensureSameLengthData=rA;function iA(r){return Rb(new _l.Schema(r.map(({field:e})=>e)),r)}hi.distributeColumnsIntoRecordBatches=iA;function Rb(r,e){return nA(r,e.map(t=>t instanceof eA.Chunked?t.chunks.map(i=>i.data):[t.data]))}hi.distributeVectorsIntoRecordBatches=Rb;function nA(r,e){let t=[...r.fields],i=[],n={numBatches:e.reduce((K,be)=>Math.max(K,be.length),0)},s=0,c=0,v=-1,B=e.length,S,C=[];for(;n.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,v=-1;++v<B;)C[v]=S=e[v].shift(),c=Math.min(c,S?S.length:c);isFinite(c)&&(C=sA(t,c,C,e,n),c>0&&(i[s++]=[c,C.slice()]))}return[r=new _l.Schema(t,r.metadata),i.map(K=>new tA.RecordBatch(r,...K))]}function sA(r,e,t,i,n){let s,c,v=0,B=-1,S=i.length,C=(e+63&~63)>>3;for(;++B<S;)(s=t[B])&&(v=s.length)>=e?v===e?t[B]=s:(t[B]=s.slice(0,e),s=s.slice(e,v-e),n.numBatches=Math.max(n.numBatches,i[B].unshift(s))):((c=r[B]).nullable||(r[B]=c.clone({nullable:!0})),t[B]=s?s._changeLengthAndBackfillNullBitmap(e):Db.Data.new(c.type,0,e,e,Ab(C)));return t}});var qe=E(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.BaseVector=void 0;var oA=Se(),aA=ci(),uA=bs(),vl=Le(),jl=class extends vl.AbstractVector{constructor(e,t){super();this._children=t,this.numChildren=e.childData.length,this._bindDataAccessors(this.data=e)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return`${oA.Type[this.typeId]}Vector`}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(e,t=this._children){return vl.Vector.new(e,t)}concat(...e){return aA.Chunked.concat(this,...e)}slice(e,t){return uA.clampRange(this,e,t,this._sliceInternal)}isValid(e){if(this.nullCount>0){let t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}getChildAt(e){return e<0||e>=this.numChildren?null:(this._children||(this._children=[]))[e]||(this._children[e]=vl.Vector.new(this.data.childData[e]))}toJSON(){return[...this]}_sliceInternal(e,t,i){return e.clone(e.data.slice(t,i-t),null)}_bindDataAccessors(e){}};Sa.BaseVector=jl;jl.prototype[Symbol.isConcatSpreadable]=!0});var wl=E(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.BinaryVector=void 0;var cA=Le(),lA=qe(),dA=ve(),Eb=class extends lA.BaseVector{asUtf8(){return cA.Vector.new(this.data.clone(new dA.Utf8))}};Oa.BinaryVector=Eb});var Tl=E(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.BoolVector=void 0;var fA=ve(),hA=qe(),pA=mr(),Cb=class extends hA.BaseVector{static from(e){return pA.vectorFromValuesWithType(()=>new fA.Bool,e)}};Fa.BoolVector=Cb});var Bl=E(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.DateMillisecondVector=pi.DateDayVector=pi.DateVector=void 0;var yA=Se(),mA=qe(),Ub=mr(),Il=ve(),Da=class extends mA.BaseVector{static from(...e){return e.length===2?Ub.vectorFromValuesWithType(()=>e[1]===yA.DateUnit.DAY?new Il.DateDay:new Il.DateMillisecond,e[0]):Ub.vectorFromValuesWithType(()=>new Il.DateMillisecond,e[0])}};pi.DateVector=Da;var Mb=class extends Da{};pi.DateDayVector=Mb;var kb=class extends Da{};pi.DateMillisecondVector=kb});var Sl=E(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.DecimalVector=void 0;var _A=qe(),Vb=class extends _A.BaseVector{};Aa.DecimalVector=Vb});var Ea=E(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.DictionaryVector=void 0;var bA=Yt(),Pb=Le(),gA=qe(),vA=mr(),jA=ve(),Ol=class extends gA.BaseVector{constructor(e){super(e);this.indices=Pb.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,i,n]=e,s=new jA.Dictionary(t.type,i,null,null);return Pb.Vector.new(bA.Data.Dictionary(s,0,n.length,0,null,n,t))}return vA.vectorFromValuesWithType(()=>e[0].type,e[0])}get dictionary(){return this.data.dictionary}reverseLookup(e){return this.dictionary.indexOf(e)}getKey(e){return this.indices.get(e)}getValue(e){return this.dictionary.get(e)}setKey(e,t){return this.indices.set(e,t)}setValue(e,t){return this.dictionary.set(e,t)}};Ra.DictionaryVector=Ol;Ol.prototype.indices=null});var Fl=E(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.FixedSizeBinaryVector=void 0;var wA=qe(),Nb=class extends wA.BaseVector{};Ca.FixedSizeBinaryVector=Nb});var Dl=E(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.FixedSizeListVector=void 0;var TA=qe(),Lb=class extends TA.BaseVector{};Ua.FixedSizeListVector=Lb});var Cl=E(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.Float64Vector=_r.Float32Vector=_r.Float16Vector=_r.FloatVector=void 0;var IA=Yt(),BA=Le(),SA=qe(),OA=mr(),zi=ve(),Fs=class extends SA.BaseVector{static from(e){let t=AA(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let i=DA(e.constructor)||t;if(t===null&&(t=i),t&&t===i){let n=new t,s=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!FA(t,e.constructor))return BA.Vector.new(IA.Data.Float(n,0,s,0,null,e))}}if(t)return OA.vectorFromValuesWithType(()=>new t,e);throw e instanceof DataView||e instanceof ArrayBuffer?new TypeError(`Cannot infer float type from instance of ${e.constructor.name}`):new TypeError("Unrecognized FloatVector input")}};_r.FloatVector=Fs;var Al=class extends Fs{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};_r.Float16Vector=Al;var Rl=class extends Fs{};_r.Float32Vector=Rl;var El=class extends Fs{};_r.Float64Vector=El;var FA=(r,e)=>r===zi.Float16&&e!==Uint16Array,DA=r=>{switch(r){case Uint16Array:return zi.Float16;case Float32Array:return zi.Float32;case Float64Array:return zi.Float64;default:return null}},AA=r=>{switch(r){case Al:return zi.Float16;case Rl:return zi.Float32;case El:return zi.Float64;default:return null}}});var Ul=E(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.IntervalYearMonthVector=yi.IntervalDayTimeVector=yi.IntervalVector=void 0;var RA=qe(),Ma=class extends RA.BaseVector{};yi.IntervalVector=Ma;var xb=class extends Ma{};yi.IntervalDayTimeVector=xb;var qb=class extends Ma{};yi.IntervalYearMonthVector=qb});var ka=E(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Uint64Vector=Ye.Uint32Vector=Ye.Uint16Vector=Ye.Uint8Vector=Ye.Int64Vector=Ye.Int32Vector=Ye.Int16Vector=Ye.Int8Vector=Ye.IntVector=void 0;var EA=Yt(),CA=Le(),UA=qe(),MA=mr(),zb=ct(),Wb=Ge(),Ne=ve(),br=class extends UA.BaseVector{static from(...e){let[t,i=!1]=e,n=PA(this,i);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let s=VA(t.constructor,i)||n;if(n===null&&(n=s),n&&n===s){let c=new n,v=t.byteLength/c.ArrayType.BYTES_PER_ELEMENT;return kA(n,t.constructor)&&(v*=.5),CA.Vector.new(EA.Data.Int(c,0,v,0,null,t))}}if(n)return MA.vectorFromValuesWithType(()=>new n,t);throw t instanceof DataView||t instanceof ArrayBuffer?new TypeError(`Cannot infer integer type from instance of ${t.constructor.name}`):new TypeError("Unrecognized IntVector input")}};Ye.IntVector=br;var Ml=class extends br{};Ye.Int8Vector=Ml;var kl=class extends br{};Ye.Int16Vector=kl;var Vl=class extends br{};Ye.Int32Vector=Vl;var Pl=class extends br{toBigInt64Array(){return Wb.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};Ye.Int64Vector=Pl;var Nl=class extends br{};Ye.Uint8Vector=Nl;var Ll=class extends br{};Ye.Uint16Vector=Ll;var xl=class extends br{};Ye.Uint32Vector=xl;var ql=class extends br{toBigUint64Array(){return Wb.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};Ye.Uint64Vector=ql;var kA=(r,e)=>(r===Ne.Int64||r===Ne.Uint64)&&(e===Int32Array||e===Uint32Array),VA=(r,e)=>{switch(r){case Int8Array:return Ne.Int8;case Int16Array:return Ne.Int16;case Int32Array:return e?Ne.Int64:Ne.Int32;case zb.BigInt64Array:return Ne.Int64;case Uint8Array:return Ne.Uint8;case Uint16Array:return Ne.Uint16;case Uint32Array:return e?Ne.Uint64:Ne.Uint32;case zb.BigUint64Array:return Ne.Uint64;default:return null}},PA=(r,e)=>{switch(r){case Ml:return Ne.Int8;case kl:return Ne.Int16;case Vl:return e?Ne.Int64:Ne.Int32;case Pl:return Ne.Int64;case Nl:return Ne.Uint8;case Ll:return Ne.Uint16;case xl:return e?Ne.Uint64:Ne.Uint32;case ql:return Ne.Uint64;default:return null}}});var zl=E(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.ListVector=void 0;var NA=qe(),Hb=class extends NA.BaseVector{};Va.ListVector=Hb});var Wl=E(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.MapVector=void 0;var LA=ms(),xA=Le(),qA=qe(),zA=ve(),Yb=class extends qA.BaseVector{asList(){let e=this.type.children[0];return xA.Vector.new(this.data.clone(new zA.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:i,[e+1]:n}=this.valueOffsets;return new LA.MapRow(t.slice(i,n))}};Pa.MapVector=Yb});var Hl=E(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.NullVector=void 0;var WA=qe(),Gb=class extends WA.BaseVector{};Na.NullVector=Gb});var Yl=E(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.StructVector=void 0;var HA=ms(),YA=qe(),GA=Symbol.for("rowIndex"),Kb=class extends YA.BaseVector{bind(e){let t=this._row||(this._row=new HA.StructRow(this)),i=Object.create(t);return i[GA]=e,i}};La.StructVector=Kb});var Gl=E(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.TimestampNanosecondVector=Mt.TimestampMicrosecondVector=Mt.TimestampMillisecondVector=Mt.TimestampSecondVector=Mt.TimestampVector=void 0;var KA=qe(),Cn=class extends KA.BaseVector{};Mt.TimestampVector=Cn;var $b=class extends Cn{};Mt.TimestampSecondVector=$b;var Jb=class extends Cn{};Mt.TimestampMillisecondVector=Jb;var Qb=class extends Cn{};Mt.TimestampMicrosecondVector=Qb;var Zb=class extends Cn{};Mt.TimestampNanosecondVector=Zb});var Kl=E(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.TimeNanosecondVector=kt.TimeMicrosecondVector=kt.TimeMillisecondVector=kt.TimeSecondVector=kt.TimeVector=void 0;var $A=qe(),Un=class extends $A.BaseVector{};kt.TimeVector=Un;var Xb=class extends Un{};kt.TimeSecondVector=Xb;var eg=class extends Un{};kt.TimeMillisecondVector=eg;var tg=class extends Un{};kt.TimeMicrosecondVector=tg;var rg=class extends Un{};kt.TimeNanosecondVector=rg});var $l=E(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.SparseUnionVector=mi.DenseUnionVector=mi.UnionVector=void 0;var JA=qe(),xa=class extends JA.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};mi.UnionVector=xa;var ig=class extends xa{get valueOffsets(){return this.data.valueOffsets}};mi.DenseUnionVector=ig;var ng=class extends xa{};mi.SparseUnionVector=ng});var Jl=E(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.Utf8Vector=void 0;var QA=Le(),ZA=qe(),sg=ve(),XA=mr(),og=class extends ZA.BaseVector{static from(e){return XA.vectorFromValuesWithType(()=>new sg.Utf8,e)}asBinary(){return QA.Vector.new(this.data.clone(new sg.Binary))}};qa.Utf8Vector=og});var ag=E(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.partial2=_i.partial1=_i.partial0=void 0;function eR(r){return function(){return r(this)}}_i.partial0=eR;function tR(r){return function(e){return r(this,e)}}_i.partial1=tR;function rR(r){return function(e,t){return r(this,e,t)}}_i.partial2=rR});var Xl=E(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.instance=Mn.GetVisitor=void 0;var za=ls(),iR=it(),nR=Ti(),sR=os(),Vt=Se(),Q=class extends iR.Visitor{};Mn.GetVisitor=Q;var oR=(r,e)=>864e5*r[e],Ql=(r,e)=>4294967296*r[e+1]+(r[e]>>>0),aR=(r,e)=>4294967296*(r[e+1]/1e3)+(r[e]>>>0)/1e3,uR=(r,e)=>4294967296*(r[e+1]/1e6)+(r[e]>>>0)/1e6,ug=r=>new Date(r),cR=(r,e)=>ug(oR(r,e)),lR=(r,e)=>ug(Ql(r,e)),dR=(r,e)=>null,cg=(r,e,t)=>{let{[t]:i,[t+1]:n}=e;return i!=null&&n!=null?r.subarray(i,n):null},fR=({offset:r,values:e},t)=>{let i=r+t;return(e[i>>3]&1<<i%8)!=0},lg=({values:r},e)=>cR(r,e),dg=({values:r},e)=>lR(r,e*2),gr=({stride:r,values:e},t)=>e[r*t],fg=({stride:r,values:e},t)=>sR.uint16ToFloat64(e[r*t]),Zl=({stride:r,values:e,type:t},i)=>za.BN.new(e.subarray(r*i,r*(i+1)),t.isSigned),hR=({stride:r,values:e},t)=>e.subarray(r*t,r*(t+1)),pR=({values:r,valueOffsets:e},t)=>cg(r,e,t),yR=({values:r,valueOffsets:e},t)=>{let i=cg(r,e,t);return i!==null?nR.decodeUtf8(i):null},mR=(r,e)=>r.type.bitWidth<64?gr(r,e):Zl(r,e),_R=(r,e)=>r.type.precision!==Vt.Precision.HALF?gr(r,e):fg(r,e),bR=(r,e)=>r.type.unit===Vt.DateUnit.DAY?lg(r,e):dg(r,e),hg=({values:r},e)=>1e3*Ql(r,e*2),pg=({values:r},e)=>Ql(r,e*2),yg=({values:r},e)=>aR(r,e*2),mg=({values:r},e)=>uR(r,e*2),gR=(r,e)=>{switch(r.type.unit){case Vt.TimeUnit.SECOND:return hg(r,e);case Vt.TimeUnit.MILLISECOND:return pg(r,e);case Vt.TimeUnit.MICROSECOND:return yg(r,e);case Vt.TimeUnit.NANOSECOND:return mg(r,e)}},_g=({values:r,stride:e},t)=>r[e*t],bg=({values:r,stride:e},t)=>r[e*t],gg=({values:r},e)=>za.BN.signed(r.subarray(2*e,2*(e+1))),vg=({values:r},e)=>za.BN.signed(r.subarray(2*e,2*(e+1))),vR=(r,e)=>{switch(r.type.unit){case Vt.TimeUnit.SECOND:return _g(r,e);case Vt.TimeUnit.MILLISECOND:return bg(r,e);case Vt.TimeUnit.MICROSECOND:return gg(r,e);case Vt.TimeUnit.NANOSECOND:return vg(r,e)}},jR=({values:r},e)=>za.BN.decimal(r.subarray(4*e,4*(e+1))),wR=(r,e)=>{let t=r.getChildAt(0),{valueOffsets:i,stride:n}=r;return t.slice(i[e*n],i[e*n+1])},TR=(r,e)=>r.bind(e),IR=(r,e)=>r.bind(e),BR=(r,e)=>r.type.mode===Vt.UnionMode.Dense?jg(r,e):wg(r,e),jg=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(r.valueOffsets[e]):null},wg=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(e):null},SR=(r,e)=>r.getValue(r.getKey(e)),OR=(r,e)=>r.type.unit===Vt.IntervalUnit.DAY_TIME?Tg(r,e):Ig(r,e),Tg=({values:r},e)=>r.subarray(2*e,2*(e+1)),Ig=({values:r},e)=>{let t=r[e],i=new Int32Array(2);return i[0]=t/12|0,i[1]=t%12|0,i},FR=(r,e)=>{let t=r.getChildAt(0),{stride:i}=r;return t.slice(e*i,(e+1)*i)};Q.prototype.visitNull=dR;Q.prototype.visitBool=fR;Q.prototype.visitInt=mR;Q.prototype.visitInt8=gr;Q.prototype.visitInt16=gr;Q.prototype.visitInt32=gr;Q.prototype.visitInt64=Zl;Q.prototype.visitUint8=gr;Q.prototype.visitUint16=gr;Q.prototype.visitUint32=gr;Q.prototype.visitUint64=Zl;Q.prototype.visitFloat=_R;Q.prototype.visitFloat16=fg;Q.prototype.visitFloat32=gr;Q.prototype.visitFloat64=gr;Q.prototype.visitUtf8=yR;Q.prototype.visitBinary=pR;Q.prototype.visitFixedSizeBinary=hR;Q.prototype.visitDate=bR;Q.prototype.visitDateDay=lg;Q.prototype.visitDateMillisecond=dg;Q.prototype.visitTimestamp=gR;Q.prototype.visitTimestampSecond=hg;Q.prototype.visitTimestampMillisecond=pg;Q.prototype.visitTimestampMicrosecond=yg;Q.prototype.visitTimestampNanosecond=mg;Q.prototype.visitTime=vR;Q.prototype.visitTimeSecond=_g;Q.prototype.visitTimeMillisecond=bg;Q.prototype.visitTimeMicrosecond=gg;Q.prototype.visitTimeNanosecond=vg;Q.prototype.visitDecimal=jR;Q.prototype.visitList=wR;Q.prototype.visitStruct=IR;Q.prototype.visitUnion=BR;Q.prototype.visitDenseUnion=jg;Q.prototype.visitSparseUnion=wg;Q.prototype.visitDictionary=SR;Q.prototype.visitInterval=OR;Q.prototype.visitIntervalDayTime=Tg;Q.prototype.visitIntervalYearMonth=Ig;Q.prototype.visitFixedSizeList=FR;Q.prototype.visitMap=TR;Mn.instance=new Q});var Fg=E(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.instance=kn.IndexOfVisitor=void 0;var DR=it(),Bg=sr(),Sg=bs(),Z=class extends DR.Visitor{};kn.IndexOfVisitor=Z;function AR(r,e){return e===null&&r.length>0?0:-1}function RR(r,e){let{nullBitmap:t}=r.data;if(!t||r.nullCount<=0)return-1;let i=0;for(let n of new Bg.BitIterator(t,r.data.offset+(e||0),r.length,t,Bg.getBool)){if(!n)return i;++i}return-1}function de(r,e,t){if(e===void 0)return-1;if(e===null)return RR(r,t);let i=Sg.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}function Og(r,e,t){let i=Sg.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}Z.prototype.visitNull=AR;Z.prototype.visitBool=de;Z.prototype.visitInt=de;Z.prototype.visitInt8=de;Z.prototype.visitInt16=de;Z.prototype.visitInt32=de;Z.prototype.visitInt64=de;Z.prototype.visitUint8=de;Z.prototype.visitUint16=de;Z.prototype.visitUint32=de;Z.prototype.visitUint64=de;Z.prototype.visitFloat=de;Z.prototype.visitFloat16=de;Z.prototype.visitFloat32=de;Z.prototype.visitFloat64=de;Z.prototype.visitUtf8=de;Z.prototype.visitBinary=de;Z.prototype.visitFixedSizeBinary=de;Z.prototype.visitDate=de;Z.prototype.visitDateDay=de;Z.prototype.visitDateMillisecond=de;Z.prototype.visitTimestamp=de;Z.prototype.visitTimestampSecond=de;Z.prototype.visitTimestampMillisecond=de;Z.prototype.visitTimestampMicrosecond=de;Z.prototype.visitTimestampNanosecond=de;Z.prototype.visitTime=de;Z.prototype.visitTimeSecond=de;Z.prototype.visitTimeMillisecond=de;Z.prototype.visitTimeMicrosecond=de;Z.prototype.visitTimeNanosecond=de;Z.prototype.visitDecimal=de;Z.prototype.visitList=de;Z.prototype.visitStruct=de;Z.prototype.visitUnion=de;Z.prototype.visitDenseUnion=Og;Z.prototype.visitSparseUnion=Og;Z.prototype.visitDictionary=de;Z.prototype.visitInterval=de;Z.prototype.visitIntervalDayTime=de;Z.prototype.visitIntervalYearMonth=de;Z.prototype.visitFixedSizeList=de;Z.prototype.visitMap=de;kn.instance=new Z});var ed=E(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.instance=Vn.IteratorVisitor=void 0;var Wa=Se(),ER=it(),CR=sr(),Dg=Xl(),X=class extends ER.Visitor{};Vn.IteratorVisitor=X;function UR(r){let e=Dg.instance.getVisitFn(r);return new CR.BitIterator(r.data.nullBitmap,r.data.offset,r.length,r,(t,i,n,s)=>(n&1<<s)!=0?e(t,i):null)}var Ag=class{constructor(e,t){this.vector=e,this.getFn=t,this.index=0}next(){return this.index<this.vector.length?{value:this.getFn(this.vector,this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};function oe(r){if(r.nullCount>0)return UR(r);let{type:e,typeId:t,length:i}=r;return r.stride===1&&(t===Wa.Type.Timestamp||t===Wa.Type.Int&&e.bitWidth!==64||t===Wa.Type.Time&&e.bitWidth!==64||t===Wa.Type.Float&&e.precision>0)?r.data.values.subarray(0,i)[Symbol.iterator]():new Ag(r,Dg.instance.getVisitFn(r))}X.prototype.visitNull=oe;X.prototype.visitBool=oe;X.prototype.visitInt=oe;X.prototype.visitInt8=oe;X.prototype.visitInt16=oe;X.prototype.visitInt32=oe;X.prototype.visitInt64=oe;X.prototype.visitUint8=oe;X.prototype.visitUint16=oe;X.prototype.visitUint32=oe;X.prototype.visitUint64=oe;X.prototype.visitFloat=oe;X.prototype.visitFloat16=oe;X.prototype.visitFloat32=oe;X.prototype.visitFloat64=oe;X.prototype.visitUtf8=oe;X.prototype.visitBinary=oe;X.prototype.visitFixedSizeBinary=oe;X.prototype.visitDate=oe;X.prototype.visitDateDay=oe;X.prototype.visitDateMillisecond=oe;X.prototype.visitTimestamp=oe;X.prototype.visitTimestampSecond=oe;X.prototype.visitTimestampMillisecond=oe;X.prototype.visitTimestampMicrosecond=oe;X.prototype.visitTimestampNanosecond=oe;X.prototype.visitTime=oe;X.prototype.visitTimeSecond=oe;X.prototype.visitTimeMillisecond=oe;X.prototype.visitTimeMicrosecond=oe;X.prototype.visitTimeNanosecond=oe;X.prototype.visitDecimal=oe;X.prototype.visitList=oe;X.prototype.visitStruct=oe;X.prototype.visitUnion=oe;X.prototype.visitDenseUnion=oe;X.prototype.visitSparseUnion=oe;X.prototype.visitDictionary=oe;X.prototype.visitInterval=oe;X.prototype.visitIntervalDayTime=oe;X.prototype.visitIntervalYearMonth=oe;X.prototype.visitFixedSizeList=oe;X.prototype.visitMap=oe;Vn.instance=new X});var Rg=E(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.instance=Pn.ToArrayVisitor=void 0;var Ds=Se(),MR=it(),kR=ed(),ee=class extends MR.Visitor{};Pn.ToArrayVisitor=ee;function ae(r){let{type:e,length:t,stride:i}=r;switch(e.typeId){case Ds.Type.Int:case Ds.Type.Float:case Ds.Type.Decimal:case Ds.Type.Time:case Ds.Type.Timestamp:return r.data.values.subarray(0,t*i)}return[...kR.instance.visit(r)]}ee.prototype.visitNull=ae;ee.prototype.visitBool=ae;ee.prototype.visitInt=ae;ee.prototype.visitInt8=ae;ee.prototype.visitInt16=ae;ee.prototype.visitInt32=ae;ee.prototype.visitInt64=ae;ee.prototype.visitUint8=ae;ee.prototype.visitUint16=ae;ee.prototype.visitUint32=ae;ee.prototype.visitUint64=ae;ee.prototype.visitFloat=ae;ee.prototype.visitFloat16=ae;ee.prototype.visitFloat32=ae;ee.prototype.visitFloat64=ae;ee.prototype.visitUtf8=ae;ee.prototype.visitBinary=ae;ee.prototype.visitFixedSizeBinary=ae;ee.prototype.visitDate=ae;ee.prototype.visitDateDay=ae;ee.prototype.visitDateMillisecond=ae;ee.prototype.visitTimestamp=ae;ee.prototype.visitTimestampSecond=ae;ee.prototype.visitTimestampMillisecond=ae;ee.prototype.visitTimestampMicrosecond=ae;ee.prototype.visitTimestampNanosecond=ae;ee.prototype.visitTime=ae;ee.prototype.visitTimeSecond=ae;ee.prototype.visitTimeMillisecond=ae;ee.prototype.visitTimeMicrosecond=ae;ee.prototype.visitTimeNanosecond=ae;ee.prototype.visitDecimal=ae;ee.prototype.visitList=ae;ee.prototype.visitStruct=ae;ee.prototype.visitUnion=ae;ee.prototype.visitDenseUnion=ae;ee.prototype.visitSparseUnion=ae;ee.prototype.visitDictionary=ae;ee.prototype.visitInterval=ae;ee.prototype.visitIntervalDayTime=ae;ee.prototype.visitIntervalYearMonth=ae;ee.prototype.visitFixedSizeList=ae;ee.prototype.visitMap=ae;Pn.instance=new ee});var Eg=E(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.instance=Nn.ByteWidthVisitor=void 0;var VR=it(),PR=Se(),As=(r,e)=>r+e,td=r=>`Cannot compute the byte width of variable-width column ${r}`,rd=class extends VR.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(td(e))}visitUtf8(e){throw new Error(td(e))}visitBool(e){return 1/8}visitDecimal(e){return 16}visitDate(e){return(e.unit+1)*4}visitTime(e){return e.bitWidth/8}visitTimestamp(e){return e.unit===PR.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(td(e))}visitStruct(e){return this.visitFields(e.children).reduce(As,0)}visitUnion(e){return this.visitFields(e.children).reduce(As,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(As,0)}visitMap(e){return this.visitFields(e.children).reduce(As,0)}visitDictionary(e){return this.visit(e.indices)}visitFields(e){return(e||[]).map(t=>this.visit(t.type))}visitSchema(e){return this.visitFields(e.fields).reduce(As,0)}};Nn.ByteWidthVisitor=rd;Nn.instance=new rd});var Cg=E(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.instance=Ln.GetVectorConstructor=void 0;var NR=it(),LR=wl(),xR=Tl(),id=Bl(),qR=Sl(),zR=Ea(),WR=Fl(),HR=Dl(),Ha=Cl(),nd=Ul(),Cr=ka(),YR=zl(),GR=Wl(),KR=Hl(),$R=Yl(),Rs=Gl(),Es=Kl(),sd=$l(),JR=Jl(),od=class extends NR.Visitor{visitNull(){return KR.NullVector}visitBool(){return xR.BoolVector}visitInt(){return Cr.IntVector}visitInt8(){return Cr.Int8Vector}visitInt16(){return Cr.Int16Vector}visitInt32(){return Cr.Int32Vector}visitInt64(){return Cr.Int64Vector}visitUint8(){return Cr.Uint8Vector}visitUint16(){return Cr.Uint16Vector}visitUint32(){return Cr.Uint32Vector}visitUint64(){return Cr.Uint64Vector}visitFloat(){return Ha.FloatVector}visitFloat16(){return Ha.Float16Vector}visitFloat32(){return Ha.Float32Vector}visitFloat64(){return Ha.Float64Vector}visitUtf8(){return JR.Utf8Vector}visitBinary(){return LR.BinaryVector}visitFixedSizeBinary(){return WR.FixedSizeBinaryVector}visitDate(){return id.DateVector}visitDateDay(){return id.DateDayVector}visitDateMillisecond(){return id.DateMillisecondVector}visitTimestamp(){return Rs.TimestampVector}visitTimestampSecond(){return Rs.TimestampSecondVector}visitTimestampMillisecond(){return Rs.TimestampMillisecondVector}visitTimestampMicrosecond(){return Rs.TimestampMicrosecondVector}visitTimestampNanosecond(){return Rs.TimestampNanosecondVector}visitTime(){return Es.TimeVector}visitTimeSecond(){return Es.TimeSecondVector}visitTimeMillisecond(){return Es.TimeMillisecondVector}visitTimeMicrosecond(){return Es.TimeMicrosecondVector}visitTimeNanosecond(){return Es.TimeNanosecondVector}visitDecimal(){return qR.DecimalVector}visitList(){return YR.ListVector}visitStruct(){return $R.StructVector}visitUnion(){return sd.UnionVector}visitDenseUnion(){return sd.DenseUnionVector}visitSparseUnion(){return sd.SparseUnionVector}visitDictionary(){return zR.DictionaryVector}visitInterval(){return nd.IntervalVector}visitIntervalDayTime(){return nd.IntervalDayTimeVector}visitIntervalYearMonth(){return nd.IntervalYearMonthVector}visitFixedSizeList(){return HR.FixedSizeListVector}visitMap(){return GR.MapVector}};Ln.GetVectorConstructor=od;Ln.instance=new od});var mr=E(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.vectorFromValuesWithType=U.StructRow=U.MapRow=U.Utf8Vector=U.SparseUnionVector=U.DenseUnionVector=U.UnionVector=U.TimeNanosecondVector=U.TimeMicrosecondVector=U.TimeMillisecondVector=U.TimeSecondVector=U.TimeVector=U.TimestampNanosecondVector=U.TimestampMicrosecondVector=U.TimestampMillisecondVector=U.TimestampSecondVector=U.TimestampVector=U.StructVector=U.NullVector=U.MapVector=U.ListVector=U.Uint64Vector=U.Uint32Vector=U.Uint16Vector=U.Uint8Vector=U.Int64Vector=U.Int32Vector=U.Int16Vector=U.Int8Vector=U.IntVector=U.IntervalYearMonthVector=U.IntervalDayTimeVector=U.IntervalVector=U.Float64Vector=U.Float32Vector=U.Float16Vector=U.FloatVector=U.FixedSizeListVector=U.FixedSizeBinaryVector=U.DictionaryVector=U.DecimalVector=U.DateMillisecondVector=U.DateDayVector=U.DateVector=U.Chunked=U.BoolVector=U.BinaryVector=U.BaseVector=U.Vector=void 0;var QR=Le();Object.defineProperty(U,"Vector",{enumerable:!0,get:function(){return QR.Vector}});var ZR=qe();Object.defineProperty(U,"BaseVector",{enumerable:!0,get:function(){return ZR.BaseVector}});var XR=wl();Object.defineProperty(U,"BinaryVector",{enumerable:!0,get:function(){return XR.BinaryVector}});var eE=Tl();Object.defineProperty(U,"BoolVector",{enumerable:!0,get:function(){return eE.BoolVector}});var tE=ci();Object.defineProperty(U,"Chunked",{enumerable:!0,get:function(){return tE.Chunked}});var ad=Bl();Object.defineProperty(U,"DateVector",{enumerable:!0,get:function(){return ad.DateVector}});Object.defineProperty(U,"DateDayVector",{enumerable:!0,get:function(){return ad.DateDayVector}});Object.defineProperty(U,"DateMillisecondVector",{enumerable:!0,get:function(){return ad.DateMillisecondVector}});var rE=Sl();Object.defineProperty(U,"DecimalVector",{enumerable:!0,get:function(){return rE.DecimalVector}});var iE=Ea();Object.defineProperty(U,"DictionaryVector",{enumerable:!0,get:function(){return iE.DictionaryVector}});var nE=Fl();Object.defineProperty(U,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return nE.FixedSizeBinaryVector}});var sE=Dl();Object.defineProperty(U,"FixedSizeListVector",{enumerable:!0,get:function(){return sE.FixedSizeListVector}});var Ya=Cl();Object.defineProperty(U,"FloatVector",{enumerable:!0,get:function(){return Ya.FloatVector}});Object.defineProperty(U,"Float16Vector",{enumerable:!0,get:function(){return Ya.Float16Vector}});Object.defineProperty(U,"Float32Vector",{enumerable:!0,get:function(){return Ya.Float32Vector}});Object.defineProperty(U,"Float64Vector",{enumerable:!0,get:function(){return Ya.Float64Vector}});var ud=Ul();Object.defineProperty(U,"IntervalVector",{enumerable:!0,get:function(){return ud.IntervalVector}});Object.defineProperty(U,"IntervalDayTimeVector",{enumerable:!0,get:function(){return ud.IntervalDayTimeVector}});Object.defineProperty(U,"IntervalYearMonthVector",{enumerable:!0,get:function(){return ud.IntervalYearMonthVector}});var Ur=ka();Object.defineProperty(U,"IntVector",{enumerable:!0,get:function(){return Ur.IntVector}});Object.defineProperty(U,"Int8Vector",{enumerable:!0,get:function(){return Ur.Int8Vector}});Object.defineProperty(U,"Int16Vector",{enumerable:!0,get:function(){return Ur.Int16Vector}});Object.defineProperty(U,"Int32Vector",{enumerable:!0,get:function(){return Ur.Int32Vector}});Object.defineProperty(U,"Int64Vector",{enumerable:!0,get:function(){return Ur.Int64Vector}});Object.defineProperty(U,"Uint8Vector",{enumerable:!0,get:function(){return Ur.Uint8Vector}});Object.defineProperty(U,"Uint16Vector",{enumerable:!0,get:function(){return Ur.Uint16Vector}});Object.defineProperty(U,"Uint32Vector",{enumerable:!0,get:function(){return Ur.Uint32Vector}});Object.defineProperty(U,"Uint64Vector",{enumerable:!0,get:function(){return Ur.Uint64Vector}});var oE=zl();Object.defineProperty(U,"ListVector",{enumerable:!0,get:function(){return oE.ListVector}});var aE=Wl();Object.defineProperty(U,"MapVector",{enumerable:!0,get:function(){return aE.MapVector}});var uE=Hl();Object.defineProperty(U,"NullVector",{enumerable:!0,get:function(){return uE.NullVector}});var cE=Yl();Object.defineProperty(U,"StructVector",{enumerable:!0,get:function(){return cE.StructVector}});var Cs=Gl();Object.defineProperty(U,"TimestampVector",{enumerable:!0,get:function(){return Cs.TimestampVector}});Object.defineProperty(U,"TimestampSecondVector",{enumerable:!0,get:function(){return Cs.TimestampSecondVector}});Object.defineProperty(U,"TimestampMillisecondVector",{enumerable:!0,get:function(){return Cs.TimestampMillisecondVector}});Object.defineProperty(U,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return Cs.TimestampMicrosecondVector}});Object.defineProperty(U,"TimestampNanosecondVector",{enumerable:!0,get:function(){return Cs.TimestampNanosecondVector}});var Us=Kl();Object.defineProperty(U,"TimeVector",{enumerable:!0,get:function(){return Us.TimeVector}});Object.defineProperty(U,"TimeSecondVector",{enumerable:!0,get:function(){return Us.TimeSecondVector}});Object.defineProperty(U,"TimeMillisecondVector",{enumerable:!0,get:function(){return Us.TimeMillisecondVector}});Object.defineProperty(U,"TimeMicrosecondVector",{enumerable:!0,get:function(){return Us.TimeMicrosecondVector}});Object.defineProperty(U,"TimeNanosecondVector",{enumerable:!0,get:function(){return Us.TimeNanosecondVector}});var cd=$l();Object.defineProperty(U,"UnionVector",{enumerable:!0,get:function(){return cd.UnionVector}});Object.defineProperty(U,"DenseUnionVector",{enumerable:!0,get:function(){return cd.DenseUnionVector}});Object.defineProperty(U,"SparseUnionVector",{enumerable:!0,get:function(){return cd.SparseUnionVector}});var lE=Jl();Object.defineProperty(U,"Utf8Vector",{enumerable:!0,get:function(){return lE.Utf8Vector}});var Ug=ms();Object.defineProperty(U,"MapRow",{enumerable:!0,get:function(){return Ug.MapRow}});Object.defineProperty(U,"StructRow",{enumerable:!0,get:function(){return Ug.StructRow}});var Ms=ag(),ld=Se(),xn=Le(),Mg=ci(),Wi=qe(),dE=sr(),Ga=ct(),kg=ke(),Vg=Xl(),Pg=Sc(),Ng=Fg(),Lg=Rg(),xg=ed(),qg=Eg(),zg=Cg();xn.Vector.new=fE;xn.Vector.from=pE;function fE(r,...e){return new(zg.instance.getVisitFn(r)())(r,...e)}function hE(r,e){if(Ga.isIterable(e))return xn.Vector.from({nullValues:[null,void 0],type:r(),values:e});if(Ga.isAsyncIterable(e))return xn.Vector.from({nullValues:[null,void 0],type:r(),values:e});let{values:t=[],type:i=r(),nullValues:n=[null,void 0]}={...e};return Ga.isIterable(t)?xn.Vector.from({nullValues:n,...e,type:i}):xn.Vector.from({nullValues:n,...e,type:i})}U.vectorFromValuesWithType=hE;function pE(r){let{values:e=[],...t}={nullValues:[null,void 0],...r};if(Ga.isIterable(e)){let i=[...kg.Builder.throughIterable(t)(e)];return i.length===1?i[0]:Mg.Chunked.concat(i)}return(async i=>{let n=kg.Builder.throughAsyncIterable(t);for await(let s of n(e))i.push(s);return i.length===1?i[0]:Mg.Chunked.concat(i)})([])}Wi.BaseVector.prototype.get=function(e){return Vg.instance.visit(this,e)};Wi.BaseVector.prototype.set=function(e,t){return Pg.instance.visit(this,e,t)};Wi.BaseVector.prototype.indexOf=function(e,t){return Ng.instance.visit(this,e,t)};Wi.BaseVector.prototype.toArray=function(){return Lg.instance.visit(this)};Wi.BaseVector.prototype.getByteWidth=function(){return qg.instance.visit(this.type)};Wi.BaseVector.prototype[Symbol.iterator]=function(){return xg.instance.visit(this)};Wi.BaseVector.prototype._bindDataAccessors=bE;Object.keys(ld.Type).map(r=>ld.Type[r]).filter(r=>typeof r=="number").filter(r=>r!==ld.Type.NONE).forEach(r=>{let e=zg.instance.visit(r);e.prototype.get=Ms.partial1(Vg.instance.getVisitFn(r)),e.prototype.set=Ms.partial2(Pg.instance.getVisitFn(r)),e.prototype.indexOf=Ms.partial2(Ng.instance.getVisitFn(r)),e.prototype.toArray=Ms.partial0(Lg.instance.getVisitFn(r)),e.prototype.getByteWidth=yE(qg.instance.getVisitFn(r)),e.prototype[Symbol.iterator]=Ms.partial0(xg.instance.getVisitFn(r))});function yE(r){return function(){return r(this.type)}}function mE(r){return function(e){return this.isValid(e)?r.call(this,e):null}}function _E(r){return function(e,t){dE.setBool(this.nullBitmap,this.offset+e,t!=null)&&r.call(this,e,t)}}function bE(){let r=this.nullBitmap;r&&r.byteLength>0&&(this.get=mE(this.get),this.set=_E(this.set))}});var Os=E(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.Table=void 0;var gE=On(),Wg=Xe(),dd=Er(),vE=ks(),fd=ve(),Hg=Sn(),hd=ct(),Yg=Ba(),Gg=gl(),pd=mr(),tt=class extends pd.Chunked{constructor(...e){let t=null;e[0]instanceof Wg.Schema&&(t=e.shift());let i=Hg.selectArgs(dd.RecordBatch,e);if(!t&&!(t=i[0]&&i[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");i[0]||(i[0]=new dd._InternalEmptyPlaceholderRecordBatch(t));super(new fd.Struct(t.fields),i);this._schema=t,this._chunks=i}static empty(e=new Wg.Schema([])){return new tt(e,[])}static from(e){if(!e)return tt.empty();if(typeof e=="object"){let i=hd.isIterable(e.values)?jE(e):hd.isAsyncIterable(e.values)?wE(e):null;if(i!==null)return i}let t=vE.RecordBatchReader.from(e);return hd.isPromise(t)?(async()=>await tt.from(await t))():t.isSync()&&(t=t.open())?t.schema?new tt(t.schema,[...t]):tt.empty():(async i=>{let n=await i,s=n.schema,c=[];if(s){for await(let v of n)c.push(v);return new tt(s,c)}return tt.empty()})(t.open())}static async fromAsync(e){return await tt.from(e)}static fromStruct(e){return tt.new(e.data.childData,e.type.children)}static new(...e){return new tt(...Gg.distributeColumnsIntoRecordBatches(Hg.selectColumnArgs(e)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(e=this._chunks){return new tt(this._schema,e)}getColumn(e){return this.getColumnAt(this.getColumnIndex(e))}getColumnAt(e){return this.getChildAt(e)}getColumnIndex(e){return this._schema.fields.findIndex(t=>t.name===e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;let t,i,n=this._schema.fields,s=this._children||(this._children=[]);if(i=s[e])return i;if(t=n[e]){let c=this._chunks.map(v=>v.getChildAt(e)).filter(v=>v!=null);if(c.length>0)return s[e]=new gE.Column(t,c)}return null}serialize(e="binary",t=!0){return(t?Yg.RecordBatchStreamWriter:Yg.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...e){let t=this._schema.fields.reduce((i,n,s)=>i.set(n.name,s),new Map);return this.selectAt(...e.map(i=>t.get(i)).filter(i=>i>-1))}selectAt(...e){let t=this._schema.selectAt(...e);return new tt(t,this._chunks.map(({length:i,data:{childData:n}})=>new dd.RecordBatch(t,i,e.map(s=>n[s]).filter(Boolean))))}assign(e){let t=this._schema.fields,[i,n]=e.schema.fields.reduce((v,B,S)=>{let[C,K]=v,be=t.findIndex(pe=>pe.name===B.name);return~be?K[be]=S:C.push(S),v},[[],[]]),s=this._schema.assign(e.schema),c=[...t.map((v,B,S,C=n[B])=>C===void 0?this.getColumnAt(B):e.getColumnAt(C)),...i.map(v=>e.getColumnAt(v))].filter(Boolean);return new tt(...Gg.distributeVectorsIntoRecordBatches(s,c))}};Ka.Table=tt;function jE(r){let{type:e}=r;return e instanceof fd.Struct?tt.fromStruct(pd.StructVector.from(r)):null}function wE(r){let{type:e}=r;return e instanceof fd.Struct?pd.StructVector.from(r).then(t=>tt.fromStruct(t)):null}});var Er=E(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn._InternalEmptyPlaceholderRecordBatch=qn.RecordBatch=void 0;var yd=Yt(),md=Os(),TE=Le(),IE=it(),BE=Xe(),SE=ct(),OE=ci(),FE=Sn(),_d=ve(),DE=gl(),AE=mr(),bi=class extends AE.StructVector{constructor(...e){let t,i=e[0],n;if(e[1]instanceof yd.Data)[,t,n]=e;else{let s=i.fields,[,c,v]=e;t=yd.Data.Struct(new _d.Struct(s),0,c,0,null,v)}super(t,n);this._schema=i}static from(e){return SE.isIterable(e.values),md.Table.from(e)}static new(...e){let[t,i]=FE.selectFieldArgs(e),n=i.filter(s=>s instanceof TE.Vector);return new bi(...DE.ensureSameLengthData(new BE.Schema(t),n.map(s=>s.data)))}clone(e,t=this._children){return new bi(this._schema,e,t)}concat(...e){let t=this._schema,i=OE.Chunked.flatten(this,...e);return new md.Table(t,i.map(({data:n})=>new bi(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=$a.collect(this))}select(...e){let t=this._schema.fields.reduce((i,n,s)=>i.set(n.name,s),new Map);return this.selectAt(...e.map(i=>t.get(i)).filter(i=>i>-1))}selectAt(...e){let t=this._schema.selectAt(...e),i=e.map(n=>this.data.childData[n]).filter(Boolean);return new bi(t,this.length,i)}};qn.RecordBatch=bi;var Kg=class extends bi{constructor(e){super(e,0,e.fields.map(t=>yd.Data.new(t.type,0,0,0)))}};qn._InternalEmptyPlaceholderRecordBatch=Kg;var $a=class extends IE.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new $a().visit(e.data,new _d.Struct(e.schema.fields)).dictionaries}visit(e,t){return _d.DataType.isDictionary(t)?this.visitDictionary(e,t):(e.childData.forEach((i,n)=>this.visit(i,t.children[n].type)),this)}visitDictionary(e,t){let i=e.dictionary;return i&&i.length>0&&this.dictionaries.set(t.id,i),this}}});var ks=E(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.AsyncRecordBatchFileReader=Lt.RecordBatchFileReader=Lt.AsyncRecordBatchStreamReader=Lt.RecordBatchStreamReader=Lt.RecordBatchReader=void 0;var $g=Le(),Ja=Se(),Jg=Vc(),Qg=ns(),Zg=si(),Vs=Lc(),Xg=R_(),bd=Er(),Hi=en(),Pt=pa(),Nt=ct(),vr=class extends Hi.ReadableInterop{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 Nt.isPromise(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 Qg.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Qg.default.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof vr?e:Nt.isArrowJSON(e)?RE(e):Nt.isFileHandle(e)?UE(e):Nt.isPromise(e)?(async()=>await vr.from(await e))():Nt.isFetchResponse(e)||Nt.isReadableDOMStream(e)||Nt.isReadableNodeStream(e)||Nt.isAsyncIterable(e)?CE(new Zg.AsyncByteStream(e)):EE(new Zg.ByteStream(e))}static readAll(e){return e instanceof vr?e.isSync()?iv(e):nv(e):Nt.isArrowJSON(e)||ArrayBuffer.isView(e)||Nt.isIterable(e)||Nt.isIteratorResult(e)?iv(e):nv(e)}};Lt.RecordBatchReader=vr;var zn=class extends vr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}};Lt.RecordBatchStreamReader=zn;var Wn=class extends vr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};Lt.AsyncRecordBatchStreamReader=Wn;var Qa=class extends zn{constructor(e){super(e);this._impl=e}};Lt.RecordBatchFileReader=Qa;var gd=class extends Wn{constructor(e){super(e);this._impl=e}};Lt.AsyncRecordBatchFileReader=gd;var vd=class{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}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){return new bd.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:i,isDelta:n,data:s}=e,{dictionaries:c,schema:v}=this,B=c.get(i);if(n||!B){let S=v.dictionaries.get(i);return B&&n?B.concat($g.Vector.new(this._loadVectors(s,t,[S])[0])):$g.Vector.new(this._loadVectors(s,t,[S])[0])}return B}_loadVectors(e,t,i){return new Xg.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}},Ps=class extends vd{constructor(e,t){super(t);this._reader=Nt.isArrowJSON(e)?new Pt.JSONMessageReader(this._handle=e):new Pt.MessageReader(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=rv(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Hi.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Hi.ITERATOR_DONE}next(){if(this.closed)return Hi.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(i,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new bd._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Ns=class extends vd{constructor(e,t){super(t);this._reader=new Pt.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(e){return this.closed||(this.autoDestroy=rv(this,e),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(e):Hi.ITERATOR_DONE}async return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(e):Hi.ITERATOR_DONE}async next(){if(this.closed)return Hi.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=await this._readNextMessageAndValidate();)if(e.isSchema())await this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(i,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new bd._InternalEmptyPlaceholderRecordBatch(this.schema)}):await this.return()}async _readNextMessageAndValidate(e){return await this._reader.readMessage(e)}},jd=class extends Ps{constructor(e,t){super(e instanceof Vs.RandomAccessFile?e:new Vs.RandomAccessFile(e),t)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Ja.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null}_readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Ja.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,c)}}}_readFooter(){let{_handle:e}=this,t=e.size-Pt.magicAndPadding,i=e.readInt32(t),n=e.readAt(t-i,i);return Jg.Footer.decode(n)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}},ev=class extends Ns{constructor(e,...t){let i=typeof t[0]!="number"?t.shift():void 0,n=t[0]instanceof Map?t.shift():void 0;super(e instanceof Vs.AsyncRandomAccessFile?e:new Vs.AsyncRandomAccessFile(e,i),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}async open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=await this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&await this._readDictionaryBatch(this._dictionaryIndex++)}return await super.open(e)}async readRecordBatch(e){if(this.closed)return null;this._footer||await this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Ja.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),s=await this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null}async _readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Ja.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),s=await this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,c)}}}async _readFooter(){let{_handle:e}=this;e._pending&&await e._pending;let t=e.size-Pt.magicAndPadding,i=await e.readInt32(t),n=await e.readAt(t-i,i);return Jg.Footer.decode(n)}async _readNextMessageAndValidate(e){if(this._footer||await this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&await this._handle.seek(t.offset))return await this._reader.readMessage(e)}return null}},tv=class extends Ps{constructor(e,t){super(e,t)}_loadVectors(e,t,i){return new Xg.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}};function rv(r,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:r.autoDestroy}function*iv(r){let e=vr.from(r);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}async function*nv(r){let e=await vr.from(r);try{if(!(await e.open({autoDestroy:!1})).closed)do yield e;while(!(await e.reset().open()).closed)}finally{await e.cancel()}}function RE(r){return new zn(new tv(r))}function EE(r){let e=r.peek(Pt.magicLength+7&~7);return e&&e.byteLength>=4?Pt.checkForMagicArrowString(e)?new Qa(new jd(r.read())):new zn(new Ps(r)):new zn(new Ps(function*(){}()))}async function CE(r){let e=await r.peek(Pt.magicLength+7&~7);return e&&e.byteLength>=4?Pt.checkForMagicArrowString(e)?new Qa(new jd(await r.read())):new Wn(new Ns(r)):new Wn(new Ns(async function*(){}()))}async function UE(r){let{size:e}=await r.stat(),t=new Vs.AsyncRandomAccessFile(r,e);return e>=Pt.magicX2AndPadding&&Pt.checkForMagicArrowString(await t.readAt(0,Pt.magicLength+7&~7))?new gd(new ev(t)):new Wn(new Ns(t))}});var av=E(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.toDOMStream=void 0;var sv=Ge(),ov=ct();function ME(r,e){if(ov.isAsyncIterable(r))return VE(r,e);if(ov.isIterable(r))return kE(r,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}Za.toDOMStream=ME;function kE(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,start(c){s(c,t||(t=r[Symbol.iterator]()))},pull(c){t?s(c,t):c.close()},cancel(){(t&&t.return&&t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});function s(c,v){let B,S=null,C=c.desiredSize||null;for(;!(S=v.next(i?C:null)).done;)if(ArrayBuffer.isView(S.value)&&(B=sv.toUint8Array(S.value))&&(C!=null&&i&&(C=C-B.byteLength+1),S.value=B),c.enqueue(S.value),C!=null&&--C<=0)return;c.close()}}function VE(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,async start(c){await s(c,t||(t=r[Symbol.asyncIterator]()))},async pull(c){t?await s(c,t):c.close()},async cancel(){(t&&t.return&&await t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});async function s(c,v){let B,S=null,C=c.desiredSize||null;for(;!(S=await v.next(i?C:null)).done;)if(ArrayBuffer.isView(S.value)&&(B=sv.toUint8Array(S.value))&&(C!=null&&i&&(C=C-B.byteLength+1),S.value=B),c.enqueue(S.value),C!=null&&--C<=0)return;c.close()}}});var lv=E(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.BuilderTransform=Hn.builderThroughDOMStream=void 0;var PE=ea();function NE(r){return new wd(r)}Hn.builderThroughDOMStream=NE;var wd=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:i,["queueingStrategy"]:n="count",...s}=e;this._controller=null,this._builder=PE.Builder.new(s),this._getSize=n!=="bytes"?uv:cv;let{["highWaterMark"]:c=n==="bytes"?2**14:1e3}={...t},{["highWaterMark"]:v=n==="bytes"?2**14:1e3}={...i};this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:B=>{this._maybeFlush(this._builder,this._controller=B)},start:B=>{this._maybeFlush(this._builder,this._controller=B)}},{highWaterMark:c,size:n!=="bytes"?uv:cv}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:v,size:B=>this._writeValueAndReturnChunkSize(B)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){t!==null&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,t===null?e.close():e.enqueue(t)}};Hn.BuilderTransform=wd;var uv=r=>r.length,cv=r=>r.byteLength});var dv=E(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.recordBatchReaderThroughDOMStream=void 0;var LE=si(),xE=ks();function qE(r,e){let t=new LE.AsyncByteQueue,i=null,n=new ReadableStream({async cancel(){await t.close()},async start(v){await c(v,i||(i=await s()))},async pull(v){i?await c(v,i):v.close()}});return{writable:new WritableStream(t,{highWaterMark:2**14,...r}),readable:n};async function s(){return await(await xE.RecordBatchReader.from(t)).open(e)}async function c(v,B){let S=v.desiredSize,C=null;for(;!(C=await B.next()).done;)if(v.enqueue(C.value),S!=null&&--S<=0)return;v.close()}}Xa.recordBatchReaderThroughDOMStream=qE});var fv=E(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.recordBatchWriterThroughDOMStream=void 0;var zE=si();function WE(r,e){let t=new this(r),i=new zE.AsyncByteStream(t),n=new ReadableStream({type:"bytes",async cancel(){await i.cancel()},async pull(c){await s(c)},async start(c){await s(c)}},{highWaterMark:2**14,...e});return{writable:new WritableStream(t,r),readable:n};async function s(c){let v=null,B=c.desiredSize;for(;v=await i.read(B||null);)if(c.enqueue(v),B!=null&&(B-=v.byteLength)<=0)return;c.close()}}eu.recordBatchWriterThroughDOMStream=WE});var Fd=E(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.custom=fe.or=fe.and=fe.col=fe.lit=fe.CustomPredicate=fe.Not=fe.GTeq=fe.LTeq=fe.Equals=fe.Or=fe.And=fe.CombinationPredicate=fe.ComparisonPredicate=fe.Predicate=fe.Col=fe.Literal=fe.Value=void 0;var HE=Ea(),gi=class{eq(e){return e instanceof gi||(e=new Mr(e)),new Id(this,e)}le(e){return e instanceof gi||(e=new Mr(e)),new Bd(this,e)}ge(e){return e instanceof gi||(e=new Mr(e)),new Sd(this,e)}lt(e){return new $n(this.ge(e))}gt(e){return new $n(this.le(e))}ne(e){return new $n(this.eq(e))}};fe.Value=gi;var Mr=class extends gi{constructor(e){super();this.v=e}};fe.Literal=Mr;var Td=class extends gi{constructor(e){super();this.name=e}bind(e){if(!this.colidx){this.colidx=-1;let i=e.schema.fields;for(let n=-1;++n<i.length;)if(i[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error(`Failed to bind Col "${this.name}"`)}let t=this.vector=e.getChildAt(this.colidx);return i=>t.get(i)}};fe.Col=Td;var Yn=class{and(...e){return new Gn(this,...e)}or(...e){return new Kn(this,...e)}not(){return new $n(this)}};fe.Predicate=Yn;var Ls=class extends Yn{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Mr?this.right instanceof Mr?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Mr?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};fe.ComparisonPredicate=Ls;var xs=class extends Yn{constructor(...e){super();this.children=e}};fe.CombinationPredicate=xs;xs.prototype.children=Object.freeze([]);var Gn=class extends xs{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Gn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.every(s=>s(i,n))}};fe.And=Gn;var Kn=class extends xs{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Kn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.some(s=>s(i,n))}};fe.Or=Kn;var Id=class extends Ls{_bindLitLit(e,t,i){let n=t.v==i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)==s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);if(t.vector instanceof HE.DictionaryVector){let s,c=t.vector;return c.dictionary!==this.lastDictionary?(s=c.reverseLookup(i.v),this.lastDictionary=c.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:v=>c.getKey(v)===s}else return(s,c)=>n(s,c)==i.v}_bindLitCol(e,t,i){return this._bindColLit(e,i,t)}};fe.Equals=Id;var Bd=class extends Ls{_bindLitLit(e,t,i){let n=t.v<=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)<=s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);return(s,c)=>n(s,c)<=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,c)=>t.v<=n(s,c)}};fe.LTeq=Bd;var Sd=class extends Ls{_bindLitLit(e,t,i){let n=t.v>=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)>=s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);return(s,c)=>n(s,c)>=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,c)=>t.v>=n(s,c)}};fe.GTeq=Sd;var $n=class extends Yn{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(i,n)=>!t(i,n)}};fe.Not=$n;var Od=class extends Yn{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};fe.CustomPredicate=Od;function YE(r){return new Mr(r)}fe.lit=YE;function GE(r){return new Td(r)}fe.col=GE;function KE(...r){return new Gn(...r)}fe.and=KE;function $E(...r){return new Kn(...r)}fe.or=$E;function JE(r,e){return new Od(r,e)}fe.custom=JE});var _v=E(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.FilteredDataFrame=vi.CountByResult=vi.DataFrame=void 0;var Jn=Os(),hv=ka(),Dd=Xe(),pv=Fd(),QE=Er(),yv=ve();Jn.Table.prototype.countBy=function(r){return new Yi(this.chunks).countBy(r)};Jn.Table.prototype.scan=function(r,e){return new Yi(this.chunks).scan(r,e)};Jn.Table.prototype.scanReverse=function(r,e){return new Yi(this.chunks).scanReverse(r,e)};Jn.Table.prototype.filter=function(r){return new Yi(this.chunks).filter(r)};var Yi=class extends Jn.Table{filter(e){return new qs(this.chunks,e)}scan(e,t){let i=this.chunks,n=i.length;for(let s=-1;++s<n;){let c=i[s];t&&t(c);for(let v=-1,B=c.length;++v<B;)e(v,c)}}scanReverse(e,t){let i=this.chunks,n=i.length;for(let s=n;--s>=0;){let c=i[s];t&&t(c);for(let v=c.length;--v>=0;)e(v,c)}}countBy(e){let t=this.chunks,i=t.length,n=typeof e=="string"?new pv.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!yv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(s.length)/Math.log(256)),v=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,B=new v(s.dictionary.length);for(let S=-1;++S<i;){let C=t[S];n.bind(C);let K=n.vector.indices;for(let be=-1,pe=C.length;++be<pe;){let Zt=K.get(be);Zt!==null&&B[Zt]++}}return new tu(s.dictionary,hv.IntVector.from(B))}};vi.DataFrame=Yi;var tu=class extends Jn.Table{constructor(e,t){let i=new Dd.Schema([new Dd.Field("values",e.type),new Dd.Field("counts",t.type)]);super(new QE.RecordBatch(i,t.length,[e,t]))}toJSON(){let e=this.getColumnAt(0),t=this.getColumnAt(1),i={};for(let n=-1;++n<this.length;)i[e.get(n)]=t.get(n);return i}};vi.CountByResult=tu;var mv=class{constructor(e,t){this.batches=e,this.predicate=t,this.batchIndex=0,this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch)}next(){for(;this.batchIndex<this.batches.length;){for(;this.index<this.batch.length;){if(this.predicateFunc(this.index,this.batch))return{value:this.batch.get(this.index++)};this.index++}++this.batchIndex<this.batches.length&&(this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch))}return{done:!0,value:null}}[Symbol.iterator](){return this}},qs=class extends Yi{constructor(e,t){super(e);this._predicate=t}scan(e,t){let i=this._chunks,n=i.length;for(let s=-1;++s<n;){let c=i[s],v=this._predicate.bind(c),B=!1;for(let S=-1,C=c.length;++S<C;)v(S,c)&&(t&&!B&&(t(c),B=!0),e(S,c))}}scanReverse(e,t){let i=this._chunks,n=i.length;for(let s=n;--s>=0;){let c=i[s],v=this._predicate.bind(c),B=!1;for(let S=c.length;--S>=0;)v(S,c)&&(t&&!B&&(t(c),B=!0),e(S,c))}}count(){let e=0,t=this._chunks,i=t.length;for(let n=-1;++n<i;){let s=t[n],c=this._predicate.bind(s);for(let v=-1,B=s.length;++v<B;)c(v,s)&&++e}return e}[Symbol.iterator](){return new mv(this._chunks,this._predicate)}filter(e){return new qs(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,i=t.length,n=typeof e=="string"?new pv.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!yv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(s.length)/Math.log(256)),v=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,B=new v(s.dictionary.length);for(let S=-1;++S<i;){let C=t[S],K=this._predicate.bind(C);n.bind(C);let be=n.vector.indices;for(let pe=-1,Zt=C.length;++pe<Zt;){let kr=be.get(pe);kr!==null&&K(pe,C)&&B[kr]++}}return new tu(s.dictionary,hv.IntVector.from(B))}};vi.FilteredDataFrame=qs});var vv=E(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.util=_.predicate=_.CountByResult=_.FilteredDataFrame=_.DataFrame=_.RecordBatch=_.Message=_.JSONMessageReader=_.AsyncMessageReader=_.MessageReader=_.RecordBatchJSONWriter=_.RecordBatchStreamWriter=_.RecordBatchFileWriter=_.RecordBatchWriter=_.AsyncRecordBatchStreamReader=_.AsyncRecordBatchFileReader=_.RecordBatchStreamReader=_.RecordBatchFileReader=_.RecordBatchReader=_.AsyncByteQueue=_.AsyncByteStream=_.ByteStream=_.Utf8Builder=_.SparseUnionBuilder=_.DenseUnionBuilder=_.UnionBuilder=_.TimeNanosecondBuilder=_.TimeMicrosecondBuilder=_.TimeMillisecondBuilder=_.TimeSecondBuilder=_.TimeBuilder=_.TimestampNanosecondBuilder=_.TimestampMicrosecondBuilder=_.TimestampMillisecondBuilder=_.TimestampSecondBuilder=_.TimestampBuilder=_.StructBuilder=_.NullBuilder=_.MapBuilder=_.ListBuilder=_.Uint64Builder=_.Uint32Builder=_.Uint16Builder=_.Uint8Builder=_.Int64Builder=_.Int32Builder=_.Int16Builder=_.Int8Builder=_.IntBuilder=_.IntervalYearMonthBuilder=_.IntervalDayTimeBuilder=_.IntervalBuilder=_.Float64Builder=_.Float32Builder=_.Float16Builder=_.FloatBuilder=_.FixedSizeListBuilder=_.FixedSizeBinaryBuilder=_.DictionaryBuilder=_.DecimalBuilder=_.DateMillisecondBuilder=_.DateDayBuilder=_.DateBuilder=_.BoolBuilder=_.BinaryBuilder=_.Builder=_.Utf8Vector=_.SparseUnionVector=_.DenseUnionVector=_.UnionVector=_.TimeNanosecondVector=_.TimeMicrosecondVector=_.TimeMillisecondVector=_.TimeSecondVector=_.TimeVector=_.TimestampNanosecondVector=_.TimestampMicrosecondVector=_.TimestampMillisecondVector=_.TimestampSecondVector=_.TimestampVector=_.StructVector=_.NullVector=_.MapVector=_.ListVector=_.Uint64Vector=_.Uint32Vector=_.Uint16Vector=_.Uint8Vector=_.Int64Vector=_.Int32Vector=_.Int16Vector=_.Int8Vector=_.IntVector=_.IntervalYearMonthVector=_.IntervalDayTimeVector=_.IntervalVector=_.Float64Vector=_.Float32Vector=_.Float16Vector=_.FloatVector=_.FixedSizeListVector=_.FixedSizeBinaryVector=_.DictionaryVector=_.DecimalVector=_.DateMillisecondVector=_.DateDayVector=_.DateVector=_.Chunked=_.BoolVector=_.BinaryVector=_.BaseVector=_.Vector=_.Field=_.Schema=_.Visitor=_.Column=_.Table=_.Map_=_.FixedSizeList=_.IntervalYearMonth=_.IntervalDayTime=_.Interval=_.Dictionary=_.SparseUnion=_.DenseUnion=_.Union=_.Struct=_.List=_.Decimal=_.TimeNanosecond=_.TimeMicrosecond=_.TimeMillisecond=_.TimeSecond=_.Time=_.TimestampNanosecond=_.TimestampMicrosecond=_.TimestampMillisecond=_.TimestampSecond=_.Timestamp=_.DateMillisecond=_.DateDay=_.Date_=_.FixedSizeBinary=_.Binary=_.Utf8=_.Float64=_.Float32=_.Float16=_.Float=_.Uint64=_.Uint32=_.Uint16=_.Uint8=_.Int64=_.Int32=_.Int16=_.Int8=_.Int=_.Bool=_.Null=_.DataType=_.Data=_.BufferType=_.Type=_.MessageHeader=_.MetadataVersion=_.IntervalUnit=_.UnionMode=_.Precision=_.TimeUnit=_.DateUnit=void 0;var Qn=Gr();Object.defineProperty(_,"DateUnit",{enumerable:!0,get:function(){return Qn.DateUnit}});Object.defineProperty(_,"TimeUnit",{enumerable:!0,get:function(){return Qn.TimeUnit}});Object.defineProperty(_,"Precision",{enumerable:!0,get:function(){return Qn.Precision}});Object.defineProperty(_,"UnionMode",{enumerable:!0,get:function(){return Qn.UnionMode}});Object.defineProperty(_,"IntervalUnit",{enumerable:!0,get:function(){return Qn.IntervalUnit}});Object.defineProperty(_,"MetadataVersion",{enumerable:!0,get:function(){return Qn.MetadataVersion}});var ZE=po();Object.defineProperty(_,"MessageHeader",{enumerable:!0,get:function(){return ZE.MessageHeader}});var bv=Se();Object.defineProperty(_,"Type",{enumerable:!0,get:function(){return bv.Type}});Object.defineProperty(_,"BufferType",{enumerable:!0,get:function(){return bv.BufferType}});var XE=Yt();Object.defineProperty(_,"Data",{enumerable:!0,get:function(){return XE.Data}});var ne=ve();Object.defineProperty(_,"DataType",{enumerable:!0,get:function(){return ne.DataType}});Object.defineProperty(_,"Null",{enumerable:!0,get:function(){return ne.Null}});Object.defineProperty(_,"Bool",{enumerable:!0,get:function(){return ne.Bool}});Object.defineProperty(_,"Int",{enumerable:!0,get:function(){return ne.Int}});Object.defineProperty(_,"Int8",{enumerable:!0,get:function(){return ne.Int8}});Object.defineProperty(_,"Int16",{enumerable:!0,get:function(){return ne.Int16}});Object.defineProperty(_,"Int32",{enumerable:!0,get:function(){return ne.Int32}});Object.defineProperty(_,"Int64",{enumerable:!0,get:function(){return ne.Int64}});Object.defineProperty(_,"Uint8",{enumerable:!0,get:function(){return ne.Uint8}});Object.defineProperty(_,"Uint16",{enumerable:!0,get:function(){return ne.Uint16}});Object.defineProperty(_,"Uint32",{enumerable:!0,get:function(){return ne.Uint32}});Object.defineProperty(_,"Uint64",{enumerable:!0,get:function(){return ne.Uint64}});Object.defineProperty(_,"Float",{enumerable:!0,get:function(){return ne.Float}});Object.defineProperty(_,"Float16",{enumerable:!0,get:function(){return ne.Float16}});Object.defineProperty(_,"Float32",{enumerable:!0,get:function(){return ne.Float32}});Object.defineProperty(_,"Float64",{enumerable:!0,get:function(){return ne.Float64}});Object.defineProperty(_,"Utf8",{enumerable:!0,get:function(){return ne.Utf8}});Object.defineProperty(_,"Binary",{enumerable:!0,get:function(){return ne.Binary}});Object.defineProperty(_,"FixedSizeBinary",{enumerable:!0,get:function(){return ne.FixedSizeBinary}});Object.defineProperty(_,"Date_",{enumerable:!0,get:function(){return ne.Date_}});Object.defineProperty(_,"DateDay",{enumerable:!0,get:function(){return ne.DateDay}});Object.defineProperty(_,"DateMillisecond",{enumerable:!0,get:function(){return ne.DateMillisecond}});Object.defineProperty(_,"Timestamp",{enumerable:!0,get:function(){return ne.Timestamp}});Object.defineProperty(_,"TimestampSecond",{enumerable:!0,get:function(){return ne.TimestampSecond}});Object.defineProperty(_,"TimestampMillisecond",{enumerable:!0,get:function(){return ne.TimestampMillisecond}});Object.defineProperty(_,"TimestampMicrosecond",{enumerable:!0,get:function(){return ne.TimestampMicrosecond}});Object.defineProperty(_,"TimestampNanosecond",{enumerable:!0,get:function(){return ne.TimestampNanosecond}});Object.defineProperty(_,"Time",{enumerable:!0,get:function(){return ne.Time}});Object.defineProperty(_,"TimeSecond",{enumerable:!0,get:function(){return ne.TimeSecond}});Object.defineProperty(_,"TimeMillisecond",{enumerable:!0,get:function(){return ne.TimeMillisecond}});Object.defineProperty(_,"TimeMicrosecond",{enumerable:!0,get:function(){return ne.TimeMicrosecond}});Object.defineProperty(_,"TimeNanosecond",{enumerable:!0,get:function(){return ne.TimeNanosecond}});Object.defineProperty(_,"Decimal",{enumerable:!0,get:function(){return ne.Decimal}});Object.defineProperty(_,"List",{enumerable:!0,get:function(){return ne.List}});Object.defineProperty(_,"Struct",{enumerable:!0,get:function(){return ne.Struct}});Object.defineProperty(_,"Union",{enumerable:!0,get:function(){return ne.Union}});Object.defineProperty(_,"DenseUnion",{enumerable:!0,get:function(){return ne.DenseUnion}});Object.defineProperty(_,"SparseUnion",{enumerable:!0,get:function(){return ne.SparseUnion}});Object.defineProperty(_,"Dictionary",{enumerable:!0,get:function(){return ne.Dictionary}});Object.defineProperty(_,"Interval",{enumerable:!0,get:function(){return ne.Interval}});Object.defineProperty(_,"IntervalDayTime",{enumerable:!0,get:function(){return ne.IntervalDayTime}});Object.defineProperty(_,"IntervalYearMonth",{enumerable:!0,get:function(){return ne.IntervalYearMonth}});Object.defineProperty(_,"FixedSizeList",{enumerable:!0,get:function(){return ne.FixedSizeList}});Object.defineProperty(_,"Map_",{enumerable:!0,get:function(){return ne.Map_}});var eC=Os();Object.defineProperty(_,"Table",{enumerable:!0,get:function(){return eC.Table}});var tC=On();Object.defineProperty(_,"Column",{enumerable:!0,get:function(){return tC.Column}});var rC=it();Object.defineProperty(_,"Visitor",{enumerable:!0,get:function(){return rC.Visitor}});var gv=Xe();Object.defineProperty(_,"Schema",{enumerable:!0,get:function(){return gv.Schema}});Object.defineProperty(_,"Field",{enumerable:!0,get:function(){return gv.Field}});var te=mr();Object.defineProperty(_,"Vector",{enumerable:!0,get:function(){return te.Vector}});Object.defineProperty(_,"BaseVector",{enumerable:!0,get:function(){return te.BaseVector}});Object.defineProperty(_,"BinaryVector",{enumerable:!0,get:function(){return te.BinaryVector}});Object.defineProperty(_,"BoolVector",{enumerable:!0,get:function(){return te.BoolVector}});Object.defineProperty(_,"Chunked",{enumerable:!0,get:function(){return te.Chunked}});Object.defineProperty(_,"DateVector",{enumerable:!0,get:function(){return te.DateVector}});Object.defineProperty(_,"DateDayVector",{enumerable:!0,get:function(){return te.DateDayVector}});Object.defineProperty(_,"DateMillisecondVector",{enumerable:!0,get:function(){return te.DateMillisecondVector}});Object.defineProperty(_,"DecimalVector",{enumerable:!0,get:function(){return te.DecimalVector}});Object.defineProperty(_,"DictionaryVector",{enumerable:!0,get:function(){return te.DictionaryVector}});Object.defineProperty(_,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return te.FixedSizeBinaryVector}});Object.defineProperty(_,"FixedSizeListVector",{enumerable:!0,get:function(){return te.FixedSizeListVector}});Object.defineProperty(_,"FloatVector",{enumerable:!0,get:function(){return te.FloatVector}});Object.defineProperty(_,"Float16Vector",{enumerable:!0,get:function(){return te.Float16Vector}});Object.defineProperty(_,"Float32Vector",{enumerable:!0,get:function(){return te.Float32Vector}});Object.defineProperty(_,"Float64Vector",{enumerable:!0,get:function(){return te.Float64Vector}});Object.defineProperty(_,"IntervalVector",{enumerable:!0,get:function(){return te.IntervalVector}});Object.defineProperty(_,"IntervalDayTimeVector",{enumerable:!0,get:function(){return te.IntervalDayTimeVector}});Object.defineProperty(_,"IntervalYearMonthVector",{enumerable:!0,get:function(){return te.IntervalYearMonthVector}});Object.defineProperty(_,"IntVector",{enumerable:!0,get:function(){return te.IntVector}});Object.defineProperty(_,"Int8Vector",{enumerable:!0,get:function(){return te.Int8Vector}});Object.defineProperty(_,"Int16Vector",{enumerable:!0,get:function(){return te.Int16Vector}});Object.defineProperty(_,"Int32Vector",{enumerable:!0,get:function(){return te.Int32Vector}});Object.defineProperty(_,"Int64Vector",{enumerable:!0,get:function(){return te.Int64Vector}});Object.defineProperty(_,"Uint8Vector",{enumerable:!0,get:function(){return te.Uint8Vector}});Object.defineProperty(_,"Uint16Vector",{enumerable:!0,get:function(){return te.Uint16Vector}});Object.defineProperty(_,"Uint32Vector",{enumerable:!0,get:function(){return te.Uint32Vector}});Object.defineProperty(_,"Uint64Vector",{enumerable:!0,get:function(){return te.Uint64Vector}});Object.defineProperty(_,"ListVector",{enumerable:!0,get:function(){return te.ListVector}});Object.defineProperty(_,"MapVector",{enumerable:!0,get:function(){return te.MapVector}});Object.defineProperty(_,"NullVector",{enumerable:!0,get:function(){return te.NullVector}});Object.defineProperty(_,"StructVector",{enumerable:!0,get:function(){return te.StructVector}});Object.defineProperty(_,"TimestampVector",{enumerable:!0,get:function(){return te.TimestampVector}});Object.defineProperty(_,"TimestampSecondVector",{enumerable:!0,get:function(){return te.TimestampSecondVector}});Object.defineProperty(_,"TimestampMillisecondVector",{enumerable:!0,get:function(){return te.TimestampMillisecondVector}});Object.defineProperty(_,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return te.TimestampMicrosecondVector}});Object.defineProperty(_,"TimestampNanosecondVector",{enumerable:!0,get:function(){return te.TimestampNanosecondVector}});Object.defineProperty(_,"TimeVector",{enumerable:!0,get:function(){return te.TimeVector}});Object.defineProperty(_,"TimeSecondVector",{enumerable:!0,get:function(){return te.TimeSecondVector}});Object.defineProperty(_,"TimeMillisecondVector",{enumerable:!0,get:function(){return te.TimeMillisecondVector}});Object.defineProperty(_,"TimeMicrosecondVector",{enumerable:!0,get:function(){return te.TimeMicrosecondVector}});Object.defineProperty(_,"TimeNanosecondVector",{enumerable:!0,get:function(){return te.TimeNanosecondVector}});Object.defineProperty(_,"UnionVector",{enumerable:!0,get:function(){return te.UnionVector}});Object.defineProperty(_,"DenseUnionVector",{enumerable:!0,get:function(){return te.DenseUnionVector}});Object.defineProperty(_,"SparseUnionVector",{enumerable:!0,get:function(){return te.SparseUnionVector}});Object.defineProperty(_,"Utf8Vector",{enumerable:!0,get:function(){return te.Utf8Vector}});var se=ea();Object.defineProperty(_,"Builder",{enumerable:!0,get:function(){return se.Builder}});Object.defineProperty(_,"BinaryBuilder",{enumerable:!0,get:function(){return se.BinaryBuilder}});Object.defineProperty(_,"BoolBuilder",{enumerable:!0,get:function(){return se.BoolBuilder}});Object.defineProperty(_,"DateBuilder",{enumerable:!0,get:function(){return se.DateBuilder}});Object.defineProperty(_,"DateDayBuilder",{enumerable:!0,get:function(){return se.DateDayBuilder}});Object.defineProperty(_,"DateMillisecondBuilder",{enumerable:!0,get:function(){return se.DateMillisecondBuilder}});Object.defineProperty(_,"DecimalBuilder",{enumerable:!0,get:function(){return se.DecimalBuilder}});Object.defineProperty(_,"DictionaryBuilder",{enumerable:!0,get:function(){return se.DictionaryBuilder}});Object.defineProperty(_,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return se.FixedSizeBinaryBuilder}});Object.defineProperty(_,"FixedSizeListBuilder",{enumerable:!0,get:function(){return se.FixedSizeListBuilder}});Object.defineProperty(_,"FloatBuilder",{enumerable:!0,get:function(){return se.FloatBuilder}});Object.defineProperty(_,"Float16Builder",{enumerable:!0,get:function(){return se.Float16Builder}});Object.defineProperty(_,"Float32Builder",{enumerable:!0,get:function(){return se.Float32Builder}});Object.defineProperty(_,"Float64Builder",{enumerable:!0,get:function(){return se.Float64Builder}});Object.defineProperty(_,"IntervalBuilder",{enumerable:!0,get:function(){return se.IntervalBuilder}});Object.defineProperty(_,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return se.IntervalDayTimeBuilder}});Object.defineProperty(_,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return se.IntervalYearMonthBuilder}});Object.defineProperty(_,"IntBuilder",{enumerable:!0,get:function(){return se.IntBuilder}});Object.defineProperty(_,"Int8Builder",{enumerable:!0,get:function(){return se.Int8Builder}});Object.defineProperty(_,"Int16Builder",{enumerable:!0,get:function(){return se.Int16Builder}});Object.defineProperty(_,"Int32Builder",{enumerable:!0,get:function(){return se.Int32Builder}});Object.defineProperty(_,"Int64Builder",{enumerable:!0,get:function(){return se.Int64Builder}});Object.defineProperty(_,"Uint8Builder",{enumerable:!0,get:function(){return se.Uint8Builder}});Object.defineProperty(_,"Uint16Builder",{enumerable:!0,get:function(){return se.Uint16Builder}});Object.defineProperty(_,"Uint32Builder",{enumerable:!0,get:function(){return se.Uint32Builder}});Object.defineProperty(_,"Uint64Builder",{enumerable:!0,get:function(){return se.Uint64Builder}});Object.defineProperty(_,"ListBuilder",{enumerable:!0,get:function(){return se.ListBuilder}});Object.defineProperty(_,"MapBuilder",{enumerable:!0,get:function(){return se.MapBuilder}});Object.defineProperty(_,"NullBuilder",{enumerable:!0,get:function(){return se.NullBuilder}});Object.defineProperty(_,"StructBuilder",{enumerable:!0,get:function(){return se.StructBuilder}});Object.defineProperty(_,"TimestampBuilder",{enumerable:!0,get:function(){return se.TimestampBuilder}});Object.defineProperty(_,"TimestampSecondBuilder",{enumerable:!0,get:function(){return se.TimestampSecondBuilder}});Object.defineProperty(_,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return se.TimestampMillisecondBuilder}});Object.defineProperty(_,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return se.TimestampMicrosecondBuilder}});Object.defineProperty(_,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return se.TimestampNanosecondBuilder}});Object.defineProperty(_,"TimeBuilder",{enumerable:!0,get:function(){return se.TimeBuilder}});Object.defineProperty(_,"TimeSecondBuilder",{enumerable:!0,get:function(){return se.TimeSecondBuilder}});Object.defineProperty(_,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return se.TimeMillisecondBuilder}});Object.defineProperty(_,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return se.TimeMicrosecondBuilder}});Object.defineProperty(_,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return se.TimeNanosecondBuilder}});Object.defineProperty(_,"UnionBuilder",{enumerable:!0,get:function(){return se.UnionBuilder}});Object.defineProperty(_,"DenseUnionBuilder",{enumerable:!0,get:function(){return se.DenseUnionBuilder}});Object.defineProperty(_,"SparseUnionBuilder",{enumerable:!0,get:function(){return se.SparseUnionBuilder}});Object.defineProperty(_,"Utf8Builder",{enumerable:!0,get:function(){return se.Utf8Builder}});var Ad=si();Object.defineProperty(_,"ByteStream",{enumerable:!0,get:function(){return Ad.ByteStream}});Object.defineProperty(_,"AsyncByteStream",{enumerable:!0,get:function(){return Ad.AsyncByteStream}});Object.defineProperty(_,"AsyncByteQueue",{enumerable:!0,get:function(){return Ad.AsyncByteQueue}});var zs=ks();Object.defineProperty(_,"RecordBatchReader",{enumerable:!0,get:function(){return zs.RecordBatchReader}});Object.defineProperty(_,"RecordBatchFileReader",{enumerable:!0,get:function(){return zs.RecordBatchFileReader}});Object.defineProperty(_,"RecordBatchStreamReader",{enumerable:!0,get:function(){return zs.RecordBatchStreamReader}});Object.defineProperty(_,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return zs.AsyncRecordBatchFileReader}});Object.defineProperty(_,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return zs.AsyncRecordBatchStreamReader}});var ru=Ba();Object.defineProperty(_,"RecordBatchWriter",{enumerable:!0,get:function(){return ru.RecordBatchWriter}});Object.defineProperty(_,"RecordBatchFileWriter",{enumerable:!0,get:function(){return ru.RecordBatchFileWriter}});Object.defineProperty(_,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return ru.RecordBatchStreamWriter}});Object.defineProperty(_,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return ru.RecordBatchJSONWriter}});var Rd=pa();Object.defineProperty(_,"MessageReader",{enumerable:!0,get:function(){return Rd.MessageReader}});Object.defineProperty(_,"AsyncMessageReader",{enumerable:!0,get:function(){return Rd.AsyncMessageReader}});Object.defineProperty(_,"JSONMessageReader",{enumerable:!0,get:function(){return Rd.JSONMessageReader}});var iC=Ni();Object.defineProperty(_,"Message",{enumerable:!0,get:function(){return iC.Message}});var nC=Er();Object.defineProperty(_,"RecordBatch",{enumerable:!0,get:function(){return nC.RecordBatch}});var Ed=_v();Object.defineProperty(_,"DataFrame",{enumerable:!0,get:function(){return Ed.DataFrame}});Object.defineProperty(_,"FilteredDataFrame",{enumerable:!0,get:function(){return Ed.FilteredDataFrame}});Object.defineProperty(_,"CountByResult",{enumerable:!0,get:function(){return Ed.CountByResult}});var sC=ls(),oC=qc(),aC=sr(),uC=os(),cC=Ge(),lC=bs(),dC=Fd();_.predicate=dC;var Cd=nl();_.util={...sC,...oC,...aC,...uC,...cC,...lC,compareSchemas:Cd.compareSchemas,compareFields:Cd.compareFields,compareTypes:Cd.compareTypes}});var Pd=E(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.Utf8Builder=b.SparseUnionBuilder=b.DenseUnionBuilder=b.UnionBuilder=b.TimeNanosecondBuilder=b.TimeMicrosecondBuilder=b.TimeMillisecondBuilder=b.TimeSecondBuilder=b.TimeBuilder=b.TimestampNanosecondBuilder=b.TimestampMicrosecondBuilder=b.TimestampMillisecondBuilder=b.TimestampSecondBuilder=b.TimestampBuilder=b.StructBuilder=b.NullBuilder=b.MapBuilder=b.ListBuilder=b.Uint64Builder=b.Uint32Builder=b.Uint16Builder=b.Uint8Builder=b.Int64Builder=b.Int32Builder=b.Int16Builder=b.Int8Builder=b.IntBuilder=b.IntervalYearMonthBuilder=b.IntervalDayTimeBuilder=b.IntervalBuilder=b.Float64Builder=b.Float32Builder=b.Float16Builder=b.FloatBuilder=b.FixedSizeListBuilder=b.FixedSizeBinaryBuilder=b.DictionaryBuilder=b.DecimalBuilder=b.DateMillisecondBuilder=b.DateDayBuilder=b.DateBuilder=b.BoolBuilder=b.BinaryBuilder=b.Builder=b.util=b.predicate=b.CountByResult=b.FilteredDataFrame=b.DataFrame=b.RecordBatch=b.Message=b.JSONMessageReader=b.AsyncMessageReader=b.MessageReader=b.RecordBatchJSONWriter=b.RecordBatchStreamWriter=b.RecordBatchFileWriter=b.RecordBatchWriter=b.AsyncRecordBatchStreamReader=b.AsyncRecordBatchFileReader=b.RecordBatchStreamReader=b.RecordBatchFileReader=b.RecordBatchReader=b.AsyncByteQueue=b.AsyncByteStream=b.ByteStream=b.Utf8Vector=b.SparseUnionVector=b.DenseUnionVector=b.UnionVector=b.TimeNanosecondVector=b.TimeMicrosecondVector=b.TimeMillisecondVector=b.TimeSecondVector=b.TimeVector=b.TimestampNanosecondVector=b.TimestampMicrosecondVector=b.TimestampMillisecondVector=b.TimestampSecondVector=b.TimestampVector=b.StructVector=b.NullVector=b.MapVector=b.ListVector=b.Uint64Vector=b.Uint32Vector=b.Uint16Vector=b.Uint8Vector=b.Int64Vector=b.Int32Vector=b.Int16Vector=b.Int8Vector=b.IntVector=b.IntervalYearMonthVector=b.IntervalDayTimeVector=b.IntervalVector=b.Float64Vector=b.Float32Vector=b.Float16Vector=b.FloatVector=b.FixedSizeListVector=b.FixedSizeBinaryVector=b.DictionaryVector=b.DecimalVector=b.DateMillisecondVector=b.DateDayVector=b.DateVector=b.Chunked=b.BoolVector=b.BinaryVector=b.BaseVector=b.Vector=b.Visitor=b.Field=b.Schema=b.Column=b.Table=b.Map_=b.FixedSizeList=b.IntervalYearMonth=b.IntervalDayTime=b.Interval=b.Dictionary=b.SparseUnion=b.DenseUnion=b.Union=b.Struct=b.List=b.Decimal=b.TimeNanosecond=b.TimeMicrosecond=b.TimeMillisecond=b.TimeSecond=b.Time=b.TimestampNanosecond=b.TimestampMicrosecond=b.TimestampMillisecond=b.TimestampSecond=b.Timestamp=b.DateMillisecond=b.DateDay=b.Date_=b.FixedSizeBinary=b.Binary=b.Utf8=b.Float64=b.Float32=b.Float16=b.Float=b.Uint64=b.Uint32=b.Uint16=b.Uint8=b.Int64=b.Int32=b.Int16=b.Int8=b.Int=b.Bool=b.Null=b.DataType=b.Data=b.BufferType=b.UnionMode=b.Type=b.TimeUnit=b.Precision=b.MetadataVersion=b.MessageHeader=b.IntervalUnit=b.DateUnit=void 0;var fC=ns(),hC=ea(),Ud=ks(),Md=Ba(),pC=av(),yC=lv(),kd=dv(),Vd=fv();fC.default.toDOMStream=pC.toDOMStream;hC.Builder.throughDOM=yC.builderThroughDOMStream;Ud.RecordBatchReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Ud.RecordBatchFileReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Ud.RecordBatchStreamReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Md.RecordBatchWriter.throughDOM=Vd.recordBatchWriterThroughDOMStream;Md.RecordBatchFileWriter.throughDOM=Vd.recordBatchWriterThroughDOMStream;Md.RecordBatchStreamWriter.throughDOM=Vd.recordBatchWriterThroughDOMStream;var O=vv();Object.defineProperty(b,"DateUnit",{enumerable:!0,get:function(){return O.DateUnit}});Object.defineProperty(b,"IntervalUnit",{enumerable:!0,get:function(){return O.IntervalUnit}});Object.defineProperty(b,"MessageHeader",{enumerable:!0,get:function(){return O.MessageHeader}});Object.defineProperty(b,"MetadataVersion",{enumerable:!0,get:function(){return O.MetadataVersion}});Object.defineProperty(b,"Precision",{enumerable:!0,get:function(){return O.Precision}});Object.defineProperty(b,"TimeUnit",{enumerable:!0,get:function(){return O.TimeUnit}});Object.defineProperty(b,"Type",{enumerable:!0,get:function(){return O.Type}});Object.defineProperty(b,"UnionMode",{enumerable:!0,get:function(){return O.UnionMode}});Object.defineProperty(b,"BufferType",{enumerable:!0,get:function(){return O.BufferType}});Object.defineProperty(b,"Data",{enumerable:!0,get:function(){return O.Data}});Object.defineProperty(b,"DataType",{enumerable:!0,get:function(){return O.DataType}});Object.defineProperty(b,"Null",{enumerable:!0,get:function(){return O.Null}});Object.defineProperty(b,"Bool",{enumerable:!0,get:function(){return O.Bool}});Object.defineProperty(b,"Int",{enumerable:!0,get:function(){return O.Int}});Object.defineProperty(b,"Int8",{enumerable:!0,get:function(){return O.Int8}});Object.defineProperty(b,"Int16",{enumerable:!0,get:function(){return O.Int16}});Object.defineProperty(b,"Int32",{enumerable:!0,get:function(){return O.Int32}});Object.defineProperty(b,"Int64",{enumerable:!0,get:function(){return O.Int64}});Object.defineProperty(b,"Uint8",{enumerable:!0,get:function(){return O.Uint8}});Object.defineProperty(b,"Uint16",{enumerable:!0,get:function(){return O.Uint16}});Object.defineProperty(b,"Uint32",{enumerable:!0,get:function(){return O.Uint32}});Object.defineProperty(b,"Uint64",{enumerable:!0,get:function(){return O.Uint64}});Object.defineProperty(b,"Float",{enumerable:!0,get:function(){return O.Float}});Object.defineProperty(b,"Float16",{enumerable:!0,get:function(){return O.Float16}});Object.defineProperty(b,"Float32",{enumerable:!0,get:function(){return O.Float32}});Object.defineProperty(b,"Float64",{enumerable:!0,get:function(){return O.Float64}});Object.defineProperty(b,"Utf8",{enumerable:!0,get:function(){return O.Utf8}});Object.defineProperty(b,"Binary",{enumerable:!0,get:function(){return O.Binary}});Object.defineProperty(b,"FixedSizeBinary",{enumerable:!0,get:function(){return O.FixedSizeBinary}});Object.defineProperty(b,"Date_",{enumerable:!0,get:function(){return O.Date_}});Object.defineProperty(b,"DateDay",{enumerable:!0,get:function(){return O.DateDay}});Object.defineProperty(b,"DateMillisecond",{enumerable:!0,get:function(){return O.DateMillisecond}});Object.defineProperty(b,"Timestamp",{enumerable:!0,get:function(){return O.Timestamp}});Object.defineProperty(b,"TimestampSecond",{enumerable:!0,get:function(){return O.TimestampSecond}});Object.defineProperty(b,"TimestampMillisecond",{enumerable:!0,get:function(){return O.TimestampMillisecond}});Object.defineProperty(b,"TimestampMicrosecond",{enumerable:!0,get:function(){return O.TimestampMicrosecond}});Object.defineProperty(b,"TimestampNanosecond",{enumerable:!0,get:function(){return O.TimestampNanosecond}});Object.defineProperty(b,"Time",{enumerable:!0,get:function(){return O.Time}});Object.defineProperty(b,"TimeSecond",{enumerable:!0,get:function(){return O.TimeSecond}});Object.defineProperty(b,"TimeMillisecond",{enumerable:!0,get:function(){return O.TimeMillisecond}});Object.defineProperty(b,"TimeMicrosecond",{enumerable:!0,get:function(){return O.TimeMicrosecond}});Object.defineProperty(b,"TimeNanosecond",{enumerable:!0,get:function(){return O.TimeNanosecond}});Object.defineProperty(b,"Decimal",{enumerable:!0,get:function(){return O.Decimal}});Object.defineProperty(b,"List",{enumerable:!0,get:function(){return O.List}});Object.defineProperty(b,"Struct",{enumerable:!0,get:function(){return O.Struct}});Object.defineProperty(b,"Union",{enumerable:!0,get:function(){return O.Union}});Object.defineProperty(b,"DenseUnion",{enumerable:!0,get:function(){return O.DenseUnion}});Object.defineProperty(b,"SparseUnion",{enumerable:!0,get:function(){return O.SparseUnion}});Object.defineProperty(b,"Dictionary",{enumerable:!0,get:function(){return O.Dictionary}});Object.defineProperty(b,"Interval",{enumerable:!0,get:function(){return O.Interval}});Object.defineProperty(b,"IntervalDayTime",{enumerable:!0,get:function(){return O.IntervalDayTime}});Object.defineProperty(b,"IntervalYearMonth",{enumerable:!0,get:function(){return O.IntervalYearMonth}});Object.defineProperty(b,"FixedSizeList",{enumerable:!0,get:function(){return O.FixedSizeList}});Object.defineProperty(b,"Map_",{enumerable:!0,get:function(){return O.Map_}});Object.defineProperty(b,"Table",{enumerable:!0,get:function(){return O.Table}});Object.defineProperty(b,"Column",{enumerable:!0,get:function(){return O.Column}});Object.defineProperty(b,"Schema",{enumerable:!0,get:function(){return O.Schema}});Object.defineProperty(b,"Field",{enumerable:!0,get:function(){return O.Field}});Object.defineProperty(b,"Visitor",{enumerable:!0,get:function(){return O.Visitor}});Object.defineProperty(b,"Vector",{enumerable:!0,get:function(){return O.Vector}});Object.defineProperty(b,"BaseVector",{enumerable:!0,get:function(){return O.BaseVector}});Object.defineProperty(b,"BinaryVector",{enumerable:!0,get:function(){return O.BinaryVector}});Object.defineProperty(b,"BoolVector",{enumerable:!0,get:function(){return O.BoolVector}});Object.defineProperty(b,"Chunked",{enumerable:!0,get:function(){return O.Chunked}});Object.defineProperty(b,"DateVector",{enumerable:!0,get:function(){return O.DateVector}});Object.defineProperty(b,"DateDayVector",{enumerable:!0,get:function(){return O.DateDayVector}});Object.defineProperty(b,"DateMillisecondVector",{enumerable:!0,get:function(){return O.DateMillisecondVector}});Object.defineProperty(b,"DecimalVector",{enumerable:!0,get:function(){return O.DecimalVector}});Object.defineProperty(b,"DictionaryVector",{enumerable:!0,get:function(){return O.DictionaryVector}});Object.defineProperty(b,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return O.FixedSizeBinaryVector}});Object.defineProperty(b,"FixedSizeListVector",{enumerable:!0,get:function(){return O.FixedSizeListVector}});Object.defineProperty(b,"FloatVector",{enumerable:!0,get:function(){return O.FloatVector}});Object.defineProperty(b,"Float16Vector",{enumerable:!0,get:function(){return O.Float16Vector}});Object.defineProperty(b,"Float32Vector",{enumerable:!0,get:function(){return O.Float32Vector}});Object.defineProperty(b,"Float64Vector",{enumerable:!0,get:function(){return O.Float64Vector}});Object.defineProperty(b,"IntervalVector",{enumerable:!0,get:function(){return O.IntervalVector}});Object.defineProperty(b,"IntervalDayTimeVector",{enumerable:!0,get:function(){return O.IntervalDayTimeVector}});Object.defineProperty(b,"IntervalYearMonthVector",{enumerable:!0,get:function(){return O.IntervalYearMonthVector}});Object.defineProperty(b,"IntVector",{enumerable:!0,get:function(){return O.IntVector}});Object.defineProperty(b,"Int8Vector",{enumerable:!0,get:function(){return O.Int8Vector}});Object.defineProperty(b,"Int16Vector",{enumerable:!0,get:function(){return O.Int16Vector}});Object.defineProperty(b,"Int32Vector",{enumerable:!0,get:function(){return O.Int32Vector}});Object.defineProperty(b,"Int64Vector",{enumerable:!0,get:function(){return O.Int64Vector}});Object.defineProperty(b,"Uint8Vector",{enumerable:!0,get:function(){return O.Uint8Vector}});Object.defineProperty(b,"Uint16Vector",{enumerable:!0,get:function(){return O.Uint16Vector}});Object.defineProperty(b,"Uint32Vector",{enumerable:!0,get:function(){return O.Uint32Vector}});Object.defineProperty(b,"Uint64Vector",{enumerable:!0,get:function(){return O.Uint64Vector}});Object.defineProperty(b,"ListVector",{enumerable:!0,get:function(){return O.ListVector}});Object.defineProperty(b,"MapVector",{enumerable:!0,get:function(){return O.MapVector}});Object.defineProperty(b,"NullVector",{enumerable:!0,get:function(){return O.NullVector}});Object.defineProperty(b,"StructVector",{enumerable:!0,get:function(){return O.StructVector}});Object.defineProperty(b,"TimestampVector",{enumerable:!0,get:function(){return O.TimestampVector}});Object.defineProperty(b,"TimestampSecondVector",{enumerable:!0,get:function(){return O.TimestampSecondVector}});Object.defineProperty(b,"TimestampMillisecondVector",{enumerable:!0,get:function(){return O.TimestampMillisecondVector}});Object.defineProperty(b,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return O.TimestampMicrosecondVector}});Object.defineProperty(b,"TimestampNanosecondVector",{enumerable:!0,get:function(){return O.TimestampNanosecondVector}});Object.defineProperty(b,"TimeVector",{enumerable:!0,get:function(){return O.TimeVector}});Object.defineProperty(b,"TimeSecondVector",{enumerable:!0,get:function(){return O.TimeSecondVector}});Object.defineProperty(b,"TimeMillisecondVector",{enumerable:!0,get:function(){return O.TimeMillisecondVector}});Object.defineProperty(b,"TimeMicrosecondVector",{enumerable:!0,get:function(){return O.TimeMicrosecondVector}});Object.defineProperty(b,"TimeNanosecondVector",{enumerable:!0,get:function(){return O.TimeNanosecondVector}});Object.defineProperty(b,"UnionVector",{enumerable:!0,get:function(){return O.UnionVector}});Object.defineProperty(b,"DenseUnionVector",{enumerable:!0,get:function(){return O.DenseUnionVector}});Object.defineProperty(b,"SparseUnionVector",{enumerable:!0,get:function(){return O.SparseUnionVector}});Object.defineProperty(b,"Utf8Vector",{enumerable:!0,get:function(){return O.Utf8Vector}});Object.defineProperty(b,"ByteStream",{enumerable:!0,get:function(){return O.ByteStream}});Object.defineProperty(b,"AsyncByteStream",{enumerable:!0,get:function(){return O.AsyncByteStream}});Object.defineProperty(b,"AsyncByteQueue",{enumerable:!0,get:function(){return O.AsyncByteQueue}});Object.defineProperty(b,"RecordBatchReader",{enumerable:!0,get:function(){return O.RecordBatchReader}});Object.defineProperty(b,"RecordBatchFileReader",{enumerable:!0,get:function(){return O.RecordBatchFileReader}});Object.defineProperty(b,"RecordBatchStreamReader",{enumerable:!0,get:function(){return O.RecordBatchStreamReader}});Object.defineProperty(b,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return O.AsyncRecordBatchFileReader}});Object.defineProperty(b,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return O.AsyncRecordBatchStreamReader}});Object.defineProperty(b,"RecordBatchWriter",{enumerable:!0,get:function(){return O.RecordBatchWriter}});Object.defineProperty(b,"RecordBatchFileWriter",{enumerable:!0,get:function(){return O.RecordBatchFileWriter}});Object.defineProperty(b,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return O.RecordBatchStreamWriter}});Object.defineProperty(b,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return O.RecordBatchJSONWriter}});Object.defineProperty(b,"MessageReader",{enumerable:!0,get:function(){return O.MessageReader}});Object.defineProperty(b,"AsyncMessageReader",{enumerable:!0,get:function(){return O.AsyncMessageReader}});Object.defineProperty(b,"JSONMessageReader",{enumerable:!0,get:function(){return O.JSONMessageReader}});Object.defineProperty(b,"Message",{enumerable:!0,get:function(){return O.Message}});Object.defineProperty(b,"RecordBatch",{enumerable:!0,get:function(){return O.RecordBatch}});Object.defineProperty(b,"DataFrame",{enumerable:!0,get:function(){return O.DataFrame}});Object.defineProperty(b,"FilteredDataFrame",{enumerable:!0,get:function(){return O.FilteredDataFrame}});Object.defineProperty(b,"CountByResult",{enumerable:!0,get:function(){return O.CountByResult}});Object.defineProperty(b,"predicate",{enumerable:!0,get:function(){return O.predicate}});Object.defineProperty(b,"util",{enumerable:!0,get:function(){return O.util}});Object.defineProperty(b,"Builder",{enumerable:!0,get:function(){return O.Builder}});Object.defineProperty(b,"BinaryBuilder",{enumerable:!0,get:function(){return O.BinaryBuilder}});Object.defineProperty(b,"BoolBuilder",{enumerable:!0,get:function(){return O.BoolBuilder}});Object.defineProperty(b,"DateBuilder",{enumerable:!0,get:function(){return O.DateBuilder}});Object.defineProperty(b,"DateDayBuilder",{enumerable:!0,get:function(){return O.DateDayBuilder}});Object.defineProperty(b,"DateMillisecondBuilder",{enumerable:!0,get:function(){return O.DateMillisecondBuilder}});Object.defineProperty(b,"DecimalBuilder",{enumerable:!0,get:function(){return O.DecimalBuilder}});Object.defineProperty(b,"DictionaryBuilder",{enumerable:!0,get:function(){return O.DictionaryBuilder}});Object.defineProperty(b,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return O.FixedSizeBinaryBuilder}});Object.defineProperty(b,"FixedSizeListBuilder",{enumerable:!0,get:function(){return O.FixedSizeListBuilder}});Object.defineProperty(b,"FloatBuilder",{enumerable:!0,get:function(){return O.FloatBuilder}});Object.defineProperty(b,"Float16Builder",{enumerable:!0,get:function(){return O.Float16Builder}});Object.defineProperty(b,"Float32Builder",{enumerable:!0,get:function(){return O.Float32Builder}});Object.defineProperty(b,"Float64Builder",{enumerable:!0,get:function(){return O.Float64Builder}});Object.defineProperty(b,"IntervalBuilder",{enumerable:!0,get:function(){return O.IntervalBuilder}});Object.defineProperty(b,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return O.IntervalDayTimeBuilder}});Object.defineProperty(b,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return O.IntervalYearMonthBuilder}});Object.defineProperty(b,"IntBuilder",{enumerable:!0,get:function(){return O.IntBuilder}});Object.defineProperty(b,"Int8Builder",{enumerable:!0,get:function(){return O.Int8Builder}});Object.defineProperty(b,"Int16Builder",{enumerable:!0,get:function(){return O.Int16Builder}});Object.defineProperty(b,"Int32Builder",{enumerable:!0,get:function(){return O.Int32Builder}});Object.defineProperty(b,"Int64Builder",{enumerable:!0,get:function(){return O.Int64Builder}});Object.defineProperty(b,"Uint8Builder",{enumerable:!0,get:function(){return O.Uint8Builder}});Object.defineProperty(b,"Uint16Builder",{enumerable:!0,get:function(){return O.Uint16Builder}});Object.defineProperty(b,"Uint32Builder",{enumerable:!0,get:function(){return O.Uint32Builder}});Object.defineProperty(b,"Uint64Builder",{enumerable:!0,get:function(){return O.Uint64Builder}});Object.defineProperty(b,"ListBuilder",{enumerable:!0,get:function(){return O.ListBuilder}});Object.defineProperty(b,"MapBuilder",{enumerable:!0,get:function(){return O.MapBuilder}});Object.defineProperty(b,"NullBuilder",{enumerable:!0,get:function(){return O.NullBuilder}});Object.defineProperty(b,"StructBuilder",{enumerable:!0,get:function(){return O.StructBuilder}});Object.defineProperty(b,"TimestampBuilder",{enumerable:!0,get:function(){return O.TimestampBuilder}});Object.defineProperty(b,"TimestampSecondBuilder",{enumerable:!0,get:function(){return O.TimestampSecondBuilder}});Object.defineProperty(b,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return O.TimestampMillisecondBuilder}});Object.defineProperty(b,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return O.TimestampMicrosecondBuilder}});Object.defineProperty(b,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return O.TimestampNanosecondBuilder}});Object.defineProperty(b,"TimeBuilder",{enumerable:!0,get:function(){return O.TimeBuilder}});Object.defineProperty(b,"TimeSecondBuilder",{enumerable:!0,get:function(){return O.TimeSecondBuilder}});Object.defineProperty(b,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return O.TimeMillisecondBuilder}});Object.defineProperty(b,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return O.TimeMicrosecondBuilder}});Object.defineProperty(b,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return O.TimeNanosecondBuilder}});Object.defineProperty(b,"UnionBuilder",{enumerable:!0,get:function(){return O.UnionBuilder}});Object.defineProperty(b,"DenseUnionBuilder",{enumerable:!0,get:function(){return O.DenseUnionBuilder}});Object.defineProperty(b,"SparseUnionBuilder",{enumerable:!0,get:function(){return O.SparseUnionBuilder}});Object.defineProperty(b,"Utf8Builder",{enumerable:!0,get:function(){return O.Utf8Builder}})});var iu=E(()=>{});var Ld=E(()=>{});var jv=E(()=>{});var vC={};BS(vC,{registerWorker:()=>Sv});var pu;(function(s){s[s.NONE=0]="NONE",s[s.DEBUG=1]="DEBUG",s[s.INFO=2]="INFO",s[s.WARNING=3]="WARNING",s[s.ERROR=4]="ERROR"})(pu||(pu={}));var yu;(function(s){s[s.NONE=0]="NONE",s[s.CONNECT=1]="CONNECT",s[s.DISCONNECT=2]="DISCONNECT",s[s.OPEN=3]="OPEN",s[s.QUERY=4]="QUERY"})(yu||(yu={}));var mu;(function(c){c[c.NONE=0]="NONE",c[c.OK=1]="OK",c[c.ERROR=2]="ERROR",c[c.START=3]="START",c[c.RUN=4]="RUN",c[c.CAPTURE=5]="CAPTURE"})(mu||(mu={}));var _u;(function(s){s[s.NONE=0]="NONE",s[s.WEB_WORKER=1]="WEB_WORKER",s[s.NODE_WORKER=2]="NODE_WORKER",s[s.BINDINGS=3]="BINDINGS",s[s.ASYNC_DUCKDB=4]="ASYNC_DUCKDB"})(_u||(_u={}));var mC=class{constructor(e,t,i){this.db=e;this.conn=t;this.header=i;this._first=!0,this._depleted=!1,this._inFlight=null}async next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e;return this._inFlight!=null?(e=await this._inFlight,this._inFlight=null):e=await this.db.fetchQueryResults(this.conn),this._depleted=e.length==0,this._depleted||(this._inFlight=this.db.fetchQueryResults(this.conn)),{done:this._depleted,value:e}}[Symbol.asyncIterator](){return this}};var we;(function($){$.COLLECT_FILE_STATISTICS="COLLECT_FILE_STATISTICS",$.CONNECT="CONNECT",$.COPY_FILE_TO_BUFFER="COPY_FILE_TO_BUFFER",$.COPY_FILE_TO_PATH="COPY_FILE_TO_PATH",$.DISCONNECT="DISCONNECT",$.DROP_FILE="DROP_FILE",$.DROP_FILES="DROP_FILES",$.EXPORT_FILE_STATISTICS="EXPORT_FILE_STATISTICS",$.FETCH_QUERY_RESULTS="FETCH_QUERY_RESULTS",$.FLUSH_FILES="FLUSH_FILES",$.GET_FEATURE_FLAGS="GET_FEATURE_FLAGS",$.GET_VERSION="GET_VERSION",$.INSERT_ARROW_FROM_IPC_STREAM="INSERT_ARROW_FROM_IPC_STREAM",$.INSERT_CSV_FROM_PATH="IMPORT_CSV_FROM_PATH",$.INSERT_JSON_FROM_PATH="IMPORT_JSON_FROM_PATH",$.INSTANTIATE="INSTANTIATE",$.OPEN="OPEN",$.PING="PING",$.REGISTER_FILE_BUFFER="REGISTER_FILE_BUFFER",$.REGISTER_FILE_HANDLE="REGISTER_FILE_HANDLE",$.REGISTER_FILE_URL="REGISTER_FILE_URL",$.RESET="RESET",$.RUN_QUERY="RUN_QUERY",$.SEND_QUERY="SEND_QUERY",$.TOKENIZE="TOKENIZE"})(we||(we={}));var ot;(function(ue){ue.CONNECTION_INFO="CONNECTION_INFO",ue.ERROR="ERROR",ue.FEATURE_FLAGS="FEATURE_FLAGS",ue.FILE_BUFFER="FILE_BUFFER",ue.FILE_SIZE="FILE_SIZE",ue.FILE_STATISTICS="FILE_STATISTICS",ue.LOG="LOG",ue.OK="OK",ue.QUERY_PLAN="QUERY_PLAN",ue.QUERY_RESULT="QUERY_RESULT",ue.QUERY_RESULT_CHUNK="QUERY_RESULT_CHUNK",ue.QUERY_START="QUERY_START",ue.REGISTERED_FILE="REGISTERED_FILE",ue.SCRIPT_TOKENS="SCRIPT_TOKENS",ue.SUCCESS="SUCCESS",ue.VERSION_STRING="VERSION_STRING"})(ot||(ot={}));var he=Dy(Pd());function Zn(r,e){switch(e.typeId){case he.Type.Binary:return{name:r,type:"binary"};case he.Type.Bool:return{name:r,type:"bool"};case he.Type.Date:return{name:r,type:"date"};case he.Type.DateDay:return{name:r,type:"date32[d]"};case he.Type.DateMillisecond:return{name:r,type:"date64[ms]"};case he.Type.Decimal:{let t=e;return{name:r,type:"decimal",precision:t.precision,scale:t.scale}}case he.Type.Float:return{name:r,type:"float"};case he.Type.Float16:return{name:r,type:"float16"};case he.Type.Float32:return{name:r,type:"float32"};case he.Type.Float64:return{name:r,type:"float64"};case he.Type.Int:return{name:r,type:"int32"};case he.Type.Int16:return{name:r,type:"int16"};case he.Type.Int32:return{name:r,type:"int32"};case he.Type.Int64:return{name:r,type:"int64"};case he.Type.Uint16:return{name:r,type:"uint16"};case he.Type.Uint32:return{name:r,type:"uint32"};case he.Type.Uint64:return{name:r,type:"uint64"};case he.Type.Uint8:return{name:r,type:"uint8"};case he.Type.IntervalDayTime:return{name:r,type:"interval[dt]"};case he.Type.IntervalYearMonth:return{name:r,type:"interval[m]"};case he.Type.List:{let t=e;return{name:r,type:"list",children:[Zn(t.valueField.name,t.valueField.type)]}}case he.Type.FixedSizeBinary:return{name:r,type:"fixedsizebinary",byteWidth:e.byteWidth};case he.Type.Null:return{name:r,type:"null"};case he.Type.Utf8:return{name:r,type:"utf8"};case he.Type.Struct:return{name:r,type:"struct",children:e.children.map(i=>Zn(i.name,i.type))};case he.Type.Time:return{name:r,type:"time[s]"};case he.Type.TimeMicrosecond:return{name:r,type:"time[us]"};case he.Type.TimeMillisecond:return{name:r,type:"time[ms]"};case he.Type.TimeNanosecond:return{name:r,type:"time[ns]"};case he.Type.TimeSecond:return{name:r,type:"time[s]"};case he.Type.Timestamp:return{name:r,type:"timestamp",timezone:e.timezone||void 0};case he.Type.TimestampSecond:return{name:r,type:"timestamp[s]",timezone:e.timezone||void 0};case he.Type.TimestampMicrosecond:return{name:r,type:"timestamp[us]",timezone:e.timezone||void 0};case he.Type.TimestampNanosecond:return{name:r,type:"timestamp[ns]",timezone:e.timezone||void 0};case he.Type.TimestampMillisecond:return{name:r,type:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error(`unsupported arrow type: ${e.toString()}`)}var Nd=class{constructor(){this._bindings=null;this._nextMessageId=0}log(e){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:ot.LOG,data:e},[])}sendOK(e){this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.OK,data:null},[])}failWith(e,t){let i={name:t.name,message:t.message,stack:t.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.ERROR,data:i},[])}async onMessage(e){switch(e.type){case we.PING:this.sendOK(e);return;case we.INSTANTIATE:this._bindings!=null&&this.failWith(e,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(e.data[0],e.data[1]),this.sendOK(e)}catch(t){this._bindings=null,this.failWith(e,t)}return;default:break}if(!this._bindings)return this.failWith(e,new Error("duckdb is not initialized"));try{switch(e.type){case we.GET_VERSION:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.VERSION_STRING,data:this._bindings.getVersion()},[]);break;case we.GET_FEATURE_FLAGS:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.FEATURE_FLAGS,data:this._bindings.getFeatureFlags()},[]);break;case we.RESET:this._bindings.reset(),this.sendOK(e);break;case we.OPEN:this._bindings.open(e.data),this.sendOK(e);break;case we.DROP_FILE:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.SUCCESS,data:this._bindings.dropFile(e.data)},[]);break;case we.DROP_FILES:this._bindings.dropFiles(),this.sendOK(e);break;case we.FLUSH_FILES:this._bindings.flushFiles(),this.sendOK(e);break;case we.CONNECT:{let t=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.CONNECTION_INFO,data:t.handle},[]);break}case we.DISCONNECT:this._bindings.disconnect(e.data),this.sendOK(e);break;case we.RUN_QUERY:{let t=this._bindings.runQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.QUERY_RESULT,data:t},[t.buffer]);break}case we.SEND_QUERY:{let t=this._bindings.sendQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.QUERY_START,data:t},[t.buffer]);break}case we.FETCH_QUERY_RESULTS:{let t=this._bindings.fetchQueryResults(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.QUERY_RESULT_CHUNK,data:t},[t.buffer]);break}case we.REGISTER_FILE_URL:this._bindings.registerFileURL(e.data[0],e.data[1]),this.sendOK(e);break;case we.REGISTER_FILE_BUFFER:this._bindings.registerFileBuffer(e.data[0],e.data[1]),this.sendOK(e);break;case we.REGISTER_FILE_HANDLE:this._bindings.registerFileHandle(e.data[0],e.data[1]),this.sendOK(e);break;case we.COPY_FILE_TO_PATH:this._bindings.copyFileToPath(e.data[0],e.data[1]),this.sendOK(e);break;case we.COPY_FILE_TO_BUFFER:{let t=this._bindings.copyFileToBuffer(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.FILE_BUFFER,data:t},[]);break}case we.COLLECT_FILE_STATISTICS:this._bindings.collectFileStatistics(e.data[0],e.data[1]),this.sendOK(e);break;case we.EXPORT_FILE_STATISTICS:{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.FILE_STATISTICS,data:this._bindings.exportFileStatistics(e.data)},[]);break}case we.INSERT_ARROW_FROM_IPC_STREAM:{this._bindings.insertArrowFromIPCStream(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case we.INSERT_CSV_FROM_PATH:{this._bindings.insertCSVFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case we.INSERT_JSON_FROM_PATH:{this._bindings.insertJSONFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case we.TOKENIZE:{let t=this._bindings.tokenize(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ot.SCRIPT_TOKENS,data:t},[]);break}}}catch(t){return this.failWith(e,t)}}};var Tv={},_C=function(){var r=Tv.url;return function(e){e=e||{};var t=typeof e!="undefined"?e:{},i,n;t.ready=new Promise(function(o,a){i=o,n=a});var s={},c;for(c in t)t.hasOwnProperty(c)&&(s[c]=t[c]);var v=[],B="./this.program",S=function(o,a){throw a},C=typeof window=="object",K=typeof importScripts=="function",be=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",pe="";function Zt(o){return t.locateFile?t.locateFile(o,pe):pe+o}var kr,ue,Gi,Ov,Ki,$i;be?(K?pe=iu().dirname(pe)+"/":pe=__dirname+"/",kr=function(a,u){return Ki||(Ki=Ld()),$i||($i=iu()),a=$i.normalize(a),Ki.readFileSync(a,u?null:"utf8")},Gi=function(a){var u=kr(a,!0);return u.buffer||(u=new Uint8Array(u)),$d(u.buffer),u},ue=function(a,u,l){Ki||(Ki=Ld()),$i||($i=iu()),a=$i.normalize(a),Ki.readFile(a,function(d,f){d?l(d):u(f.buffer)})},process.argv.length>1&&(B=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(o){if(!(o instanceof fu))throw o}),process.on("unhandledRejection",qt),S=function(o,a){if(of())throw process.exitCode=o,a;process.exit(o)},t.inspect=function(){return"[Emscripten Module object]"}):(C||K)&&(K?pe=self.location.href:typeof document!="undefined"&&document.currentScript&&(pe=document.currentScript.src),r&&(pe=r),pe.indexOf("blob:")!==0?pe=pe.substr(0,pe.lastIndexOf("/")+1):pe="",kr=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},K&&(Gi=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),ue=function(o,a,u){var l=new XMLHttpRequest;l.open("GET",o,!0),l.responseType="arraybuffer",l.onload=function(){if(l.status==200||l.status==0&&l.response){a(l.response);return}u()},l.onerror=u,l.send(null)},Ov=function(o){document.title=o});var Fv=t.print||console.log.bind(console),Vr=t.printErr||console.warn.bind(console);for(c in s)s.hasOwnProperty(c)&&(t[c]=s[c]);s=null,t.arguments&&(v=t.arguments),t.thisProgram&&(B=t.thisProgram),t.quit&&(S=t.quit);var Gd=0,_t=function(o){Gd=o},$=function(){return Gd},es;t.wasmBinary&&(es=t.wasmBinary);var Dv=t.noExitRuntime||!0;typeof WebAssembly!="object"&&qt("no native wasm support detected");var Ws,nu=!1,Kd;function $d(o,a){o||qt("Assertion failed: "+a)}function Av(o){var a=t["_"+o];return $d(a,"Cannot call unknown function "+o+", make sure it is exported"),a}function Rv(o,a,u,l,d){var f={string:function(R){var N=0;if(R!=null&&R!==0){var le=(R.length<<2)+1;N=cu(le),Ev(R,N,le)}return N},array:function(R){var N=cu(R.length);return Xd(R,N),N}};function h(R){return a==="string"?Hs(R):a==="boolean"?Boolean(R):R}var p=Av(o),y=[],m=0;if(l)for(var g=0;g<l.length;g++){var j=f[u[g]];j?(m===0&&(m=w()),y[g]=j(l[g])):y[g]=l[g]}var F=p.apply(null,y);return F=h(F),m!==0&&T(m),F}var Jd=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function Qd(o,a,u){for(var l=a+u,d=a;o[d]&&!(d>=l);)++d;if(d-a>16&&o.subarray&&Jd)return Jd.decode(o.subarray(a,d));for(var f="";a<d;){var h=o[a++];if(!(h&128)){f+=String.fromCharCode(h);continue}var p=o[a++]&63;if((h&224)==192){f+=String.fromCharCode((h&31)<<6|p);continue}var y=o[a++]&63;if((h&240)==224?h=(h&15)<<12|p<<6|y:h=(h&7)<<18|p<<12|y<<6|o[a++]&63,h<65536)f+=String.fromCharCode(h);else{var m=h-65536;f+=String.fromCharCode(55296|m>>10,56320|m&1023)}}return f}function Hs(o,a){return o?Qd(Ji,o,a):""}function Zd(o,a,u,l){if(!(l>0))return 0;for(var d=u,f=u+l-1,h=0;h<o.length;++h){var p=o.charCodeAt(h);if(p>=55296&&p<=57343){var y=o.charCodeAt(++h);p=65536+((p&1023)<<10)|y&1023}if(p<=127){if(u>=f)break;a[u++]=p}else if(p<=2047){if(u+1>=f)break;a[u++]=192|p>>6,a[u++]=128|p&63}else if(p<=65535){if(u+2>=f)break;a[u++]=224|p>>12,a[u++]=128|p>>6&63,a[u++]=128|p&63}else{if(u+3>=f)break;a[u++]=240|p>>18,a[u++]=128|p>>12&63,a[u++]=128|p>>6&63,a[u++]=128|p&63}}return a[u]=0,u-d}function Ev(o,a,u){return Zd(o,Ji,a,u)}function Cv(o){for(var a=0,u=0;u<o.length;++u){var l=o.charCodeAt(u);l>=55296&&l<=57343&&(l=65536+((l&1023)<<10)|o.charCodeAt(++u)&1023),l<=127?++a:l<=2047?a+=2:l<=65535?a+=3:a+=4}return a}function Xd(o,a){Xt.set(o,a)}function Uv(o,a,u){for(var l=0;l<o.length;++l)Xt[a++>>0]=o.charCodeAt(l);u||(Xt[a>>0]=0)}function Mv(o,a){return o%a>0&&(o+=a-o%a),o}var ef,Xt,Ji,kv,Vv,ce,Pv,Nv,Lv;function tf(o){ef=o,t.HEAP8=Xt=new Int8Array(o),t.HEAP16=kv=new Int16Array(o),t.HEAP32=ce=new Int32Array(o),t.HEAPU8=Ji=new Uint8Array(o),t.HEAPU16=Vv=new Uint16Array(o),t.HEAPU32=Pv=new Uint32Array(o),t.HEAPF32=Nv=new Float32Array(o),t.HEAPF64=Lv=new Float64Array(o)}var jC=t.INITIAL_MEMORY||16777216,H,rf=[],nf=[],xv=[],sf=[],qv=!1,zv=!1,Wv=0;function of(){return Dv||Wv>0}function Hv(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Jv(t.preRun.shift());Ys(rf)}function Yv(){qv=!0,Ys(nf)}function Gv(){Ys(xv)}function Kv(){zv=!0}function $v(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Zv(t.postRun.shift());Ys(sf)}function Jv(o){rf.unshift(o)}function Qv(o){nf.unshift(o)}function Zv(o){sf.unshift(o)}var ji=0,su=null,ts=null;function Xv(o){ji++,t.monitorRunDependencies&&t.monitorRunDependencies(ji)}function ej(o){if(ji--,t.monitorRunDependencies&&t.monitorRunDependencies(ji),ji==0&&(su!==null&&(clearInterval(su),su=null),ts)){var a=ts;ts=null,a()}}t.preloadedImages={},t.preloadedAudios={};function qt(o){t.onAbort&&t.onAbort(o),o+="",Vr(o),nu=!0,Kd=1,o="abort("+o+"). Build with -s ASSERTIONS=1 for more info.";var a=new WebAssembly.RuntimeError(o);throw n(a),a}var tj="data:application/octet-stream;base64,";function af(o){return o.startsWith(tj)}var jt;t.locateFile?(jt="duckdb_wasm.wasm",af(jt)||(jt=Zt(jt))):jt=new URL("duckdb_wasm.wasm",Tv.url).toString();function uf(o){try{if(o==jt&&es)return new Uint8Array(es);if(Gi)return Gi(o);throw"both async and sync fetching of the wasm failed"}catch(a){qt(a)}}function rj(){return!es&&(C||K)&&typeof fetch=="function"?fetch(jt,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+jt+"'";return o.arrayBuffer()}).catch(function(){return uf(jt)}):Promise.resolve().then(function(){return uf(jt)})}function ij(){var o={a:ww};function a(h,p){var y=h.exports;t.asm=y,Ws=t.asm.xe,tf(Ws.buffer),H=t.asm.Ae,Qv(t.asm.ye),ej("wasm-instantiate")}Xv("wasm-instantiate");function u(h){a(h.instance)}function l(h){return rj().then(function(p){var y=WebAssembly.instantiate(p,o);return y}).then(h,function(p){Vr("failed to asynchronously prepare wasm: "+p),qt(p)})}function d(){return!es&&typeof WebAssembly.instantiateStreaming=="function"&&!af(jt)&&typeof fetch=="function"?fetch(jt,{credentials:"same-origin"}).then(function(h){var p=WebAssembly.instantiateStreaming(h,o);return p.then(u,function(y){return Vr("wasm streaming compile failed: "+y),Vr("falling back to ArrayBuffer instantiation"),l(u)})}):l(u)}if(t.instantiateWasm)try{var f=t.instantiateWasm(o,a);return f}catch(h){return Vr("Module.instantiateWasm callback failed with error: "+h),!1}return d().catch(n),{}}function Ys(o){for(;o.length>0;){var a=o.shift();if(typeof a=="function"){a(t);continue}var u=a.func;typeof u=="number"?a.arg===void 0?H.get(u)():H.get(u)(a.arg):u(a.arg===void 0?null:a.arg)}}function nj(o){return lu(o+16)+16}function Qi(o){this.excPtr=o,this.ptr=o-16,this.set_type=function(a){ce[this.ptr+4>>2]=a},this.get_type=function(){return ce[this.ptr+4>>2]},this.set_destructor=function(a){ce[this.ptr+8>>2]=a},this.get_destructor=function(){return ce[this.ptr+8>>2]},this.set_refcount=function(a){ce[this.ptr>>2]=a},this.set_caught=function(a){a=a?1:0,Xt[this.ptr+12>>0]=a},this.get_caught=function(){return Xt[this.ptr+12>>0]!=0},this.set_rethrown=function(a){a=a?1:0,Xt[this.ptr+13>>0]=a},this.get_rethrown=function(){return Xt[this.ptr+13>>0]!=0},this.init=function(a,u){this.set_type(a),this.set_destructor(u),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var a=ce[this.ptr>>2];ce[this.ptr>>2]=a+1},this.release_ref=function(){var a=ce[this.ptr>>2];return ce[this.ptr>>2]=a-1,a===1}}function rs(o){this.free=function(){du(this.ptr),this.ptr=0},this.set_base_ptr=function(a){ce[this.ptr>>2]=a},this.get_base_ptr=function(){return ce[this.ptr>>2]},this.set_adjusted_ptr=function(a){ce[this.ptr+4>>2]=a},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return ce[this.ptr+4>>2]},this.get_exception_ptr=function(){var a=df(this.get_exception_info().get_type());if(a)return ce[this.get_base_ptr()>>2];var u=this.get_adjusted_ptr();return u!==0?u:this.get_base_ptr()},this.get_exception_info=function(){return new Qi(this.get_base_ptr())},o===void 0?(this.ptr=lu(8),this.set_adjusted_ptr(0)):this.ptr=o}var Gs=[];function sj(o){o.add_ref()}var Ks=0;function oj(o){var a=new rs(o),u=a.get_exception_info();return u.get_caught()||(u.set_caught(!0),Ks--),u.set_rethrown(!1),Gs.push(a),sj(u),a.get_exception_ptr()}var Pr=0;function cf(o){return du(new Qi(o).ptr)}function aj(o){if(o.release_ref()&&!o.get_rethrown()){var a=o.get_destructor();a&&H.get(a)(o.excPtr),cf(o.excPtr)}}function uj(){I(0);var o=Gs.pop();aj(o.get_exception_info()),o.free(),Pr=0}function cj(o){var a=new rs(o),u=a.get_base_ptr();throw Pr||(Pr=u),a.free(),u}function lj(){var o=Pr;if(!o)return _t(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return _t(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(eo(h,u,l.get_adjusted_ptr_addr()))return _t(h),l.ptr|0}return _t(u),l.ptr|0}function dj(){var o=Pr;if(!o)return _t(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return _t(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(eo(h,u,l.get_adjusted_ptr_addr()))return _t(h),l.ptr|0}return _t(u),l.ptr|0}function fj(){var o=Pr;if(!o)return _t(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return _t(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(eo(h,u,l.get_adjusted_ptr_addr()))return _t(h),l.ptr|0}return _t(u),l.ptr|0}function hj(){var o=Gs.pop();o||qt("no exception to throw");var a=o.get_exception_info(),u=o.get_base_ptr();throw a.get_rethrown()?o.free():(Gs.push(o),a.set_rethrown(!0),a.set_caught(!1),Ks++),Pr=u,u}function pj(o,a,u){var l=new Qi(o);throw l.init(a,u),Pr=o,Ks++,o}function yj(){return Ks}var Ze={mappings:{},buffers:[null,[],[]],printChar:function(o,a){var u=Ze.buffers[o];a===0||a===10?((o===1?Fv:Vr)(Qd(u,0)),u.length=0):u.push(a)},varargs:void 0,get:function(){Ze.varargs+=4;var o=ce[Ze.varargs-4>>2];return o},getStr:function(o){var a=Hs(o);return a},get64:function(o,a){return o}};function mj(o,a){return o=Ze.getStr(o),Ze.doAccess(o,a)}function _j(o){return ce[lf()>>2]=o,o}function bj(o,a,u){return Ze.varargs=u,0}function gj(o,a){}function vj(o,a,u,l){}function jj(o,a,u){}function wj(){return 42}function Tj(o,a,u){return Ze.varargs=u,0}var Ij=function(o,a,u){return Vr("warning: unsupported syscall: __sys_madvise1"),0};function Bj(o,a){return o=Ze.getStr(o),Ze.doMkdir(o,a)}function Sj(o,a,u){Ze.varargs=u}function Oj(o,a){}function Fj(o){}function Dj(o,a){}function Aj(o){}function Rj(){qt()}var ou;be?ou=function(){var o=process.hrtime();return o[0]*1e3+o[1]/1e6}:ou=function(){return performance.now()};var Ej=!0;function Cj(o,a){var u;if(o===0)u=Date.now();else if((o===1||o===4)&&Ej)u=ou();else return _j(28),-1;return ce[a>>2]=u/1e3|0,ce[a+4>>2]=u%1e3*1e3*1e3|0,0}function Uj(o,a){qt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Mj(o,a){qt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function kj(o,a){return globalThis.DUCKDB_RUNTIME.createDirectory(t,o,a)}function Vj(o,a){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,o,a)}function Pj(o,a){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,o,a)}function Nj(o,a){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,o,a)}function Lj(o){return globalThis.DUCKDB_RUNTIME.closeFile(t,o)}function xj(o,a){return globalThis.DUCKDB_RUNTIME.checkFile(t,o,a)}function qj(o){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,o)}function zj(o){return globalThis.DUCKDB_RUNTIME.getFileSize(t,o)}function Wj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.moveFile(t,o,a,u,l)}function Hj(o){return globalThis.DUCKDB_RUNTIME.openFile(t,o)}function Yj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.readFile(t,o,a,u,l)}function Gj(o,a){return globalThis.DUCKDB_RUNTIME.truncateFile(t,o,a)}function Kj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.writeFile(t,o,a,u,l)}function $j(o,a){return globalThis.DUCKDB_RUNTIME.glob(t,o,a)}function Jj(o){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,o)}function Qj(){return 2147483648}function Zj(o,a,u){Ji.copyWithin(o,a,a+u)}function Xj(o){try{return Ws.grow(o-ef.byteLength+65535>>>16),tf(Ws.buffer),1}catch{}}function ew(o){var a=Ji.length;o=o>>>0;var u=2147483648;if(o>u)return!1;for(var l=1;l<=4;l*=2){var d=a*(1+.2/l);d=Math.min(d,o+100663296);var f=Math.min(u,Mv(Math.max(o,d),65536)),h=Xj(f);if(h)return!0}return!1}var au={};function tw(){return B||"./this.program"}function is(){if(!is.strings){var o=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:o,_:tw()};for(var u in au)au[u]===void 0?delete a[u]:a[u]=au[u];var l=[];for(var u in a)l.push(u+"="+a[u]);is.strings=l}return is.strings}function rw(o,a){var u=0;return is().forEach(function(l,d){var f=a+u;ce[o+d*4>>2]=f,Uv(l,f),u+=l.length+1}),0}function iw(o,a){var u=is();ce[o>>2]=u.length;var l=0;return u.forEach(function(d){l+=d.length+1}),ce[a>>2]=l,0}function nw(o){return 0}function sw(o,a){var u=o==1||o==2?2:qt();return Xt[a>>0]=u,0}function ow(o,a,u,l,d,f){var h=Ze.getStreamFromFD(o),p=Ze.doReadv(h,a,u,l);return ce[f>>2]=p,0}function aw(o,a,u,l,d,f){var h=Ze.getStreamFromFD(o),p=Ze.doWritev(h,a,u,l);return ce[f>>2]=p,0}function uw(o,a,u,l){var d=Ze.getStreamFromFD(o),f=Ze.doReadv(d,a,u);return ce[l>>2]=f,0}function cw(o,a,u,l,d){}function lw(o){var a=Ze.getStreamFromFD(o);return a.stream_ops&&a.stream_ops.fsync?-a.stream_ops.fsync(a):0}function dw(o,a,u,l){for(var d=0,f=0;f<u;f++){for(var h=ce[a+f*8>>2],p=ce[a+(f*8+4)>>2],y=0;y<p;y++)Ze.printChar(o,Ji[h+y]);d+=p}return ce[l>>2]=d,0}function fw(){return $()}function hw(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var o=new Uint8Array(1);return function(){return crypto.getRandomValues(o),o[0]}}else if(be)try{var a=jv();return function(){return a.randomBytes(1)[0]}}catch{}return function(){qt("randomDevice")}}function $s(o,a){$s.randomDevice||($s.randomDevice=hw());for(var u=0;u<a;u++)Xt[o+u>>0]=$s.randomDevice();return 0}function pw(o){return o}function yw(o){_t(o)}var mw=0;function _w(o,a,u){return o==14&&(mw=ce[a>>2]),0}function bw(o,a,u){return _w(o,a,u)}function Js(o){return o%4==0&&(o%100!=0||o%400==0)}function uu(o,a){for(var u=0,l=0;l<=a;u+=o[l++]);return u}var Qs=[31,29,31,30,31,30,31,31,30,31,30,31],Zs=[31,28,31,30,31,30,31,31,30,31,30,31];function Xs(o,a){for(var u=new Date(o.getTime());a>0;){var l=Js(u.getFullYear()),d=u.getMonth(),f=(l?Qs:Zs)[d];if(a>f-u.getDate())a-=f-u.getDate()+1,u.setDate(1),d<11?u.setMonth(d+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else return u.setDate(u.getDate()+a),u}return u}function gw(o,a,u,l){var d=ce[l+40>>2],f={tm_sec:ce[l>>2],tm_min:ce[l+4>>2],tm_hour:ce[l+8>>2],tm_mday:ce[l+12>>2],tm_mon:ce[l+16>>2],tm_year:ce[l+20>>2],tm_wday:ce[l+24>>2],tm_yday:ce[l+28>>2],tm_isdst:ce[l+32>>2],tm_gmtoff:ce[l+36>>2],tm_zone:d?Hs(d):""},h=Hs(u),p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var y in p)h=h.replace(new RegExp(y,"g"),p[y]);var m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"];function j(M,G,Ee){for(var _e=typeof M=="number"?M.toString():M||"";_e.length<G;)_e=Ee[0]+_e;return _e}function F(M,G){return j(M,G,"0")}function R(M,G){function Ee(dt){return dt<0?-1:dt>0?1:0}var _e;return(_e=Ee(M.getFullYear()-G.getFullYear()))===0&&(_e=Ee(M.getMonth()-G.getMonth()))===0&&(_e=Ee(M.getDate()-G.getDate())),_e}function N(M){switch(M.getDay()){case 0:return new Date(M.getFullYear()-1,11,29);case 1:return M;case 2:return new Date(M.getFullYear(),0,3);case 3:return new Date(M.getFullYear(),0,2);case 4:return new Date(M.getFullYear(),0,1);case 5:return new Date(M.getFullYear()-1,11,31);case 6:return new Date(M.getFullYear()-1,11,30)}}function le(M){var G=Xs(new Date(M.tm_year+1900,0,1),M.tm_yday),Ee=new Date(G.getFullYear(),0,4),_e=new Date(G.getFullYear()+1,0,4),dt=N(Ee),Nr=N(_e);return R(dt,G)<=0?R(Nr,G)<=0?G.getFullYear()+1:G.getFullYear():G.getFullYear()-1}var ge={"%a":function(M){return m[M.tm_wday].substring(0,3)},"%A":function(M){return m[M.tm_wday]},"%b":function(M){return g[M.tm_mon].substring(0,3)},"%B":function(M){return g[M.tm_mon]},"%C":function(M){var G=M.tm_year+1900;return F(G/100|0,2)},"%d":function(M){return F(M.tm_mday,2)},"%e":function(M){return j(M.tm_mday,2," ")},"%g":function(M){return le(M).toString().substring(2)},"%G":function(M){return le(M)},"%H":function(M){return F(M.tm_hour,2)},"%I":function(M){var G=M.tm_hour;return G==0?G=12:G>12&&(G-=12),F(G,2)},"%j":function(M){return F(M.tm_mday+uu(Js(M.tm_year+1900)?Qs:Zs,M.tm_mon-1),3)},"%m":function(M){return F(M.tm_mon+1,2)},"%M":function(M){return F(M.tm_min,2)},"%n":function(){return`
18
+ `},"%p":function(M){return M.tm_hour>=0&&M.tm_hour<12?"AM":"PM"},"%S":function(M){return F(M.tm_sec,2)},"%t":function(){return" "},"%u":function(M){return M.tm_wday||7},"%U":function(M){var G=new Date(M.tm_year+1900,0,1),Ee=G.getDay()===0?G:Xs(G,7-G.getDay()),_e=new Date(M.tm_year+1900,M.tm_mon,M.tm_mday);if(R(Ee,_e)<0){var dt=uu(Js(_e.getFullYear())?Qs:Zs,_e.getMonth()-1)-31,Nr=31-Ee.getDate(),wi=Nr+dt+_e.getDate();return F(Math.ceil(wi/7),2)}return R(Ee,G)===0?"01":"00"},"%V":function(M){var G=new Date(M.tm_year+1900,0,4),Ee=new Date(M.tm_year+1901,0,4),_e=N(G),dt=N(Ee),Nr=Xs(new Date(M.tm_year+1900,0,1),M.tm_yday);if(R(Nr,_e)<0)return"53";if(R(dt,Nr)<=0)return"01";var wi;return _e.getFullYear()<M.tm_year+1900?wi=M.tm_yday+32-_e.getDate():wi=M.tm_yday+1-_e.getDate(),F(Math.ceil(wi/7),2)},"%w":function(M){return M.tm_wday},"%W":function(M){var G=new Date(M.tm_year,0,1),Ee=G.getDay()===1?G:Xs(G,G.getDay()===0?1:7-G.getDay()+1),_e=new Date(M.tm_year+1900,M.tm_mon,M.tm_mday);if(R(Ee,_e)<0){var dt=uu(Js(_e.getFullYear())?Qs:Zs,_e.getMonth()-1)-31,Nr=31-Ee.getDate(),wi=Nr+dt+_e.getDate();return F(Math.ceil(wi/7),2)}return R(Ee,G)===0?"01":"00"},"%y":function(M){return(M.tm_year+1900).toString().substring(2)},"%Y":function(M){return M.tm_year+1900},"%z":function(M){var G=M.tm_gmtoff,Ee=G>=0;return G=Math.abs(G)/60,G=G/60*100+G%60,(Ee?"+":"-")+String("0000"+G).slice(-4)},"%Z":function(M){return M.tm_zone},"%%":function(){return"%"}};for(var y in ge)h.includes(y)&&(h=h.replace(new RegExp(y,"g"),ge[y](f)));var Be=jw(h,!1);return Be.length>a?0:(Xd(Be,o),Be.length-1)}function vw(o,a,u,l){return gw(o,a,u,l)}function jw(o,a,u){var l=u>0?u:Cv(o)+1,d=new Array(l),f=Zd(o,d,0,d.length);return a&&(d.length=f),d}var ww={i:nj,A:oj,G:uj,b:lj,n:dj,I:fj,j:cf,ra:hj,u:pj,E:yj,c:cj,se:mj,ea:bj,La:gj,Ka:vj,Ma:jj,la:wj,Oa:Tj,Ja:Ij,Na:Bj,oa:Sj,qe:Oj,ka:Fj,na:Dj,ma:Aj,fa:Rj,ja:Cj,ua:Uj,we:Mj,Aa:kj,Ba:Vj,ya:Pj,za:Nj,Ta:Lj,wa:xj,Da:qj,Fa:zj,xa:Wj,Ga:Hj,da:Yj,Ca:Gj,Ea:Kj,va:$j,oe:Jj,qb:Qj,Ua:Zj,Ic:ew,Qa:rw,Ra:iw,_:nw,Sa:sw,ce:ow,ob:aw,qa:uw,je:cw,re:lw,ga:dw,a:fw,Ha:$s,W:GT,K:FT,R:hT,wb:zB,X:YT,M:zT,sa:fT,xb:qB,s:_T,U:t0,ue:JT,Y:NT,V:e0,ve:$T,e:sT,aa:LT,B:kT,Lb:FB,d:oT,$:KT,ta:QT,h:uT,Ib:RB,l:dT,pa:ST,o:cT,z:jT,w:bT,Q:qT,x:gT,v:wT,p:MT,L:AT,J:RT,Mb:OB,Pb:IB,Rb:wB,Nb:SB,Jb:AB,Qb:TB,qc:JI,he:a0,jd:nI,cd:dI,ge:u0,Ac:LI,xd:W0,Xa:pS,Wa:yS,Wd:g0,id:sI,Qc:BI,Qd:B0,Vb:bB,Bc:NI,Va:mS,Xd:b0,Ud:j0,Dc:VI,dd:lI,Id:C0,ad:hI,kb:XB,Vd:v0,$d:p0,Sd:T0,wd:H0,fb:nS,Ya:hS,kd:iI,fe:c0,Yc:_I,cb:aS,vb:WB,ed:cI,gb:iS,tc:GI,Td:w0,Zc:mI,vd:Y0,$c:pI,_c:yI,Uc:jI,oc:ZI,Mc:DI,Pc:SI,Oc:OI,Tb:vB,Nc:FI,de:d0,Bb:PB,Cb:VB,le:n0,ke:s0,hd:oI,ne:r0,Xb:mB,Ub:gB,Ob:BB,Wb:_B,Fb:UB,wc:WI,ub:HB,Hb:EB,Gb:CB,Fd:k0,Kb:DB,Eb:MB,_b:hB,zd:q0,Kc:RI,Bd:L0,qd:Q0,Ab:NB,zb:LB,jc:iB,yb:xB,Gd:M0,rc:$I,od:X0,Za:fS,bc:lB,mb:QB,md:tI,Lc:AI,Gc:UI,t:iT,k:aT,C:ET,ba:UT,rb:KB,D:VT,ca:CT,sb:GB,f:nT,T:yT,O:WT,dc:pT,g:mT,m:lT,te:ZT,q:DT,r:BT,ia:xT,y:vT,P:OT,N:PT,S:TT,pe:XT,ha:HT,Z:IT,Xc:bI,pb:$B,yd:z0,Ec:kI,Nd:F0,pc:QI,uc:YI,jb:eS,Dd:P0,zc:xI,db:oS,Sc:TI,Tc:wI,Hc:CI,Od:O0,xc:zI,vc:HI,kc:rB,Rd:I0,Rc:II,Wc:gI,Yb:yB,gc:oB,Jd:E0,Kd:R0,hb:rS,Pd:S0,Ld:A0,yc:qI,ec:uB,nc:XI,Vc:vI,eb:sS,be:f0,ee:l0,ie:o0,bd:fI,Zb:pB,Md:D0,ic:nB,hc:sB,pd:Z0,ib:tS,Ad:x0,ud:G0,_a:dS,fc:aB,lb:ZB,me:i0,_d:y0,sd:$0,lc:tB,$b:fB,Sb:jB,Zd:m0,Yd:_0,td:K0,gd:aI,fd:uI,nd:eI,tb:YB,ld:rI,cc:cB,Db:kB,bb:uS,mc:eB,nb:JB,rd:J0,Cc:PI,$a:lS,ab:cS,ac:dB,ae:h0,Ed:V0,Fc:MI,Jc:EI,sc:KI,Hd:U0,Cd:N0,H:pw,F:yw,Ia:bw,Pa:vw},wC=ij(),Tw=t.___wasm_call_ctors=function(){return(Tw=t.___wasm_call_ctors=t.asm.ye).apply(null,arguments)},Iw=t._main=function(){return(Iw=t._main=t.asm.ze).apply(null,arguments)},Bw=t._duckdb_web_fs_glob_add_path=function(){return(Bw=t._duckdb_web_fs_glob_add_path=t.asm.Be).apply(null,arguments)},Sw=t._duckdb_web_clear_response=function(){return(Sw=t._duckdb_web_clear_response=t.asm.Ce).apply(null,arguments)},Ow=t._duckdb_web_fail_with=function(){return(Ow=t._duckdb_web_fail_with=t.asm.De).apply(null,arguments)},Fw=t._duckdb_web_reset=function(){return(Fw=t._duckdb_web_reset=t.asm.Ee).apply(null,arguments)},Dw=t._duckdb_web_connect=function(){return(Dw=t._duckdb_web_connect=t.asm.Fe).apply(null,arguments)},Aw=t._duckdb_web_disconnect=function(){return(Aw=t._duckdb_web_disconnect=t.asm.Ge).apply(null,arguments)},Rw=t._duckdb_web_flush_files=function(){return(Rw=t._duckdb_web_flush_files=t.asm.He).apply(null,arguments)},Ew=t._duckdb_web_flush_file=function(){return(Ew=t._duckdb_web_flush_file=t.asm.Ie).apply(null,arguments)},Cw=t._duckdb_web_open=function(){return(Cw=t._duckdb_web_open=t.asm.Je).apply(null,arguments)},Uw=t._duckdb_web_collect_file_stats=function(){return(Uw=t._duckdb_web_collect_file_stats=t.asm.Ke).apply(null,arguments)},Mw=t._duckdb_web_export_file_stats=function(){return(Mw=t._duckdb_web_export_file_stats=t.asm.Le).apply(null,arguments)},kw=t._duckdb_web_fs_drop_file=function(){return(kw=t._duckdb_web_fs_drop_file=t.asm.Me).apply(null,arguments)},Vw=t._duckdb_web_fs_drop_files=function(){return(Vw=t._duckdb_web_fs_drop_files=t.asm.Ne).apply(null,arguments)},Pw=t._duckdb_web_fs_get_file_info=function(){return(Pw=t._duckdb_web_fs_get_file_info=t.asm.Oe).apply(null,arguments)},Nw=t._duckdb_web_fs_set_file_descriptor=function(){return(Nw=t._duckdb_web_fs_set_file_descriptor=t.asm.Pe).apply(null,arguments)},Lw=t._duckdb_web_fs_register_file_url=function(){return(Lw=t._duckdb_web_fs_register_file_url=t.asm.Qe).apply(null,arguments)},xw=t._duckdb_web_fs_register_file_buffer=function(){return(xw=t._duckdb_web_fs_register_file_buffer=t.asm.Re).apply(null,arguments)},qw=t._duckdb_web_copy_file_to_buffer=function(){return(qw=t._duckdb_web_copy_file_to_buffer=t.asm.Se).apply(null,arguments)},zw=t._duckdb_web_copy_file_to_path=function(){return(zw=t._duckdb_web_copy_file_to_path=t.asm.Te).apply(null,arguments)},Ww=t._duckdb_web_get_version=function(){return(Ww=t._duckdb_web_get_version=t.asm.Ue).apply(null,arguments)},Hw=t._duckdb_web_get_feature_flags=function(){return(Hw=t._duckdb_web_get_feature_flags=t.asm.Ve).apply(null,arguments)},Yw=t._duckdb_web_tokenize=function(){return(Yw=t._duckdb_web_tokenize=t.asm.We).apply(null,arguments)},Gw=t._duckdb_web_prepared_statement_create=function(){return(Gw=t._duckdb_web_prepared_statement_create=t.asm.Xe).apply(null,arguments)},Kw=t._duckdb_web_prepared_statement_close=function(){return(Kw=t._duckdb_web_prepared_statement_close=t.asm.Ye).apply(null,arguments)},$w=t._duckdb_web_prepared_statement_run=function(){return($w=t._duckdb_web_prepared_statement_run=t.asm.Ze).apply(null,arguments)},Jw=t._duckdb_web_prepared_statement_send=function(){return(Jw=t._duckdb_web_prepared_statement_send=t.asm._e).apply(null,arguments)},Qw=t._duckdb_web_query_run=function(){return(Qw=t._duckdb_web_query_run=t.asm.$e).apply(null,arguments)},Zw=t._duckdb_web_query_send=function(){return(Zw=t._duckdb_web_query_send=t.asm.af).apply(null,arguments)},Xw=t._duckdb_web_query_fetch_results=function(){return(Xw=t._duckdb_web_query_fetch_results=t.asm.bf).apply(null,arguments)},eT=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(eT=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.cf).apply(null,arguments)},tT=t._duckdb_web_insert_csv_from_path=function(){return(tT=t._duckdb_web_insert_csv_from_path=t.asm.df).apply(null,arguments)},rT=t._duckdb_web_insert_json_from_path=function(){return(rT=t._duckdb_web_insert_json_from_path=t.asm.ef).apply(null,arguments)},lf=t.___errno_location=function(){return(lf=t.___errno_location=t.asm.ff).apply(null,arguments)},w=t.stackSave=function(){return(w=t.stackSave=t.asm.gf).apply(null,arguments)},T=t.stackRestore=function(){return(T=t.stackRestore=t.asm.hf).apply(null,arguments)},cu=t.stackAlloc=function(){return(cu=t.stackAlloc=t.asm.jf).apply(null,arguments)},I=t._setThrew=function(){return(I=t._setThrew=t.asm.kf).apply(null,arguments)},eo=t.___cxa_can_catch=function(){return(eo=t.___cxa_can_catch=t.asm.lf).apply(null,arguments)},df=t.___cxa_is_pointer_type=function(){return(df=t.___cxa_is_pointer_type=t.asm.mf).apply(null,arguments)},lu=t._malloc=function(){return(lu=t._malloc=t.asm.nf).apply(null,arguments)},du=t._free=function(){return(du=t._free=t.asm.of).apply(null,arguments)},ff=t.dynCall_jiji=function(){return(ff=t.dynCall_jiji=t.asm.pf).apply(null,arguments)},hf=t.dynCall_jiiii=function(){return(hf=t.dynCall_jiiii=t.asm.qf).apply(null,arguments)},pf=t.dynCall_iiiiij=function(){return(pf=t.dynCall_iiiiij=t.asm.rf).apply(null,arguments)},yf=t.dynCall_iiiiijj=function(){return(yf=t.dynCall_iiiiijj=t.asm.sf).apply(null,arguments)},mf=t.dynCall_viijii=function(){return(mf=t.dynCall_viijii=t.asm.tf).apply(null,arguments)},_f=t.dynCall_j=function(){return(_f=t.dynCall_j=t.asm.uf).apply(null,arguments)},bf=t.dynCall_ji=function(){return(bf=t.dynCall_ji=t.asm.vf).apply(null,arguments)},gf=t.dynCall_iij=function(){return(gf=t.dynCall_iij=t.asm.wf).apply(null,arguments)},vf=t.dynCall_viij=function(){return(vf=t.dynCall_viij=t.asm.xf).apply(null,arguments)},jf=t.dynCall_viijji=function(){return(jf=t.dynCall_viijji=t.asm.yf).apply(null,arguments)},wf=t.dynCall_viijj=function(){return(wf=t.dynCall_viijj=t.asm.zf).apply(null,arguments)},Tf=t.dynCall_viiijj=function(){return(Tf=t.dynCall_viiijj=t.asm.Af).apply(null,arguments)},If=t.dynCall_viiji=function(){return(If=t.dynCall_viiji=t.asm.Bf).apply(null,arguments)},Bf=t.dynCall_vijjj=function(){return(Bf=t.dynCall_vijjj=t.asm.Cf).apply(null,arguments)},Sf=t.dynCall_iiijj=function(){return(Sf=t.dynCall_iiijj=t.asm.Df).apply(null,arguments)},Of=t.dynCall_viiij=function(){return(Of=t.dynCall_viiij=t.asm.Ef).apply(null,arguments)},Ff=t.dynCall_viijij=function(){return(Ff=t.dynCall_viijij=t.asm.Ff).apply(null,arguments)},Df=t.dynCall_viji=function(){return(Df=t.dynCall_viji=t.asm.Gf).apply(null,arguments)},Af=t.dynCall_iiiijj=function(){return(Af=t.dynCall_iiiijj=t.asm.Hf).apply(null,arguments)},Rf=t.dynCall_viijiiiii=function(){return(Rf=t.dynCall_viijiiiii=t.asm.If).apply(null,arguments)},Ef=t.dynCall_viiiiijiiii=function(){return(Ef=t.dynCall_viiiiijiiii=t.asm.Jf).apply(null,arguments)},Cf=t.dynCall_viiiijj=function(){return(Cf=t.dynCall_viiiijj=t.asm.Kf).apply(null,arguments)},Uf=t.dynCall_iiijiiii=function(){return(Uf=t.dynCall_iiijiiii=t.asm.Lf).apply(null,arguments)},Mf=t.dynCall_vij=function(){return(Mf=t.dynCall_vij=t.asm.Mf).apply(null,arguments)},kf=t.dynCall_jij=function(){return(kf=t.dynCall_jij=t.asm.Nf).apply(null,arguments)},Vf=t.dynCall_jiiij=function(){return(Vf=t.dynCall_jiiij=t.asm.Of).apply(null,arguments)},Pf=t.dynCall_iiij=function(){return(Pf=t.dynCall_iiij=t.asm.Pf).apply(null,arguments)},Nf=t.dynCall_iiiiijjiijj=function(){return(Nf=t.dynCall_iiiiijjiijj=t.asm.Qf).apply(null,arguments)},Lf=t.dynCall_viijiijji=function(){return(Lf=t.dynCall_viijiijji=t.asm.Rf).apply(null,arguments)},xf=t.dynCall_vjjijij=function(){return(xf=t.dynCall_vjjijij=t.asm.Sf).apply(null,arguments)},qf=t.dynCall_vijjji=function(){return(qf=t.dynCall_vijjji=t.asm.Tf).apply(null,arguments)},zf=t.dynCall_vjjii=function(){return(zf=t.dynCall_vjjii=t.asm.Uf).apply(null,arguments)},Wf=t.dynCall_viiiiiji=function(){return(Wf=t.dynCall_viiiiiji=t.asm.Vf).apply(null,arguments)},Hf=t.dynCall_jiiijji=function(){return(Hf=t.dynCall_jiiijji=t.asm.Wf).apply(null,arguments)},Yf=t.dynCall_iijj=function(){return(Yf=t.dynCall_iijj=t.asm.Xf).apply(null,arguments)},Gf=t.dynCall_iiijjii=function(){return(Gf=t.dynCall_iiijjii=t.asm.Yf).apply(null,arguments)},Kf=t.dynCall_iijjii=function(){return(Kf=t.dynCall_iijjii=t.asm.Zf).apply(null,arguments)},$f=t.dynCall_viiiij=function(){return($f=t.dynCall_viiiij=t.asm._f).apply(null,arguments)},Jf=t.dynCall_vijii=function(){return(Jf=t.dynCall_vijii=t.asm.$f).apply(null,arguments)},Qf=t.dynCall_viijjii=function(){return(Qf=t.dynCall_viijjii=t.asm.ag).apply(null,arguments)},Zf=t.dynCall_vijj=function(){return(Zf=t.dynCall_vijj=t.asm.bg).apply(null,arguments)},Xf=t.dynCall_jijjij=function(){return(Xf=t.dynCall_jijjij=t.asm.cg).apply(null,arguments)},eh=t.dynCall_jiijii=function(){return(eh=t.dynCall_jiijii=t.asm.dg).apply(null,arguments)},th=t.dynCall_jijiii=function(){return(th=t.dynCall_jijiii=t.asm.eg).apply(null,arguments)},rh=t.dynCall_viijiiij=function(){return(rh=t.dynCall_viijiiij=t.asm.fg).apply(null,arguments)},ih=t.dynCall_vijiiiji=function(){return(ih=t.dynCall_vijiiiji=t.asm.gg).apply(null,arguments)},nh=t.dynCall_jiiji=function(){return(nh=t.dynCall_jiiji=t.asm.hg).apply(null,arguments)},sh=t.dynCall_viiijij=function(){return(sh=t.dynCall_viiijij=t.asm.ig).apply(null,arguments)},oh=t.dynCall_viijiijj=function(){return(oh=t.dynCall_viijiijj=t.asm.jg).apply(null,arguments)},ah=t.dynCall_viiiiijj=function(){return(ah=t.dynCall_viiiiijj=t.asm.kg).apply(null,arguments)},uh=t.dynCall_viiijji=function(){return(uh=t.dynCall_viiijji=t.asm.lg).apply(null,arguments)},ch=t.dynCall_iiiij=function(){return(ch=t.dynCall_iiiij=t.asm.mg).apply(null,arguments)},lh=t.dynCall_iiiiiji=function(){return(lh=t.dynCall_iiiiiji=t.asm.ng).apply(null,arguments)},dh=t.dynCall_iiiji=function(){return(dh=t.dynCall_iiiji=t.asm.og).apply(null,arguments)},fh=t.dynCall_iiiiji=function(){return(fh=t.dynCall_iiiiji=t.asm.pg).apply(null,arguments)},hh=t.dynCall_jii=function(){return(hh=t.dynCall_jii=t.asm.qg).apply(null,arguments)},ph=t.dynCall_jiii=function(){return(ph=t.dynCall_jiii=t.asm.rg).apply(null,arguments)},yh=t.dynCall_iijjijj=function(){return(yh=t.dynCall_iijjijj=t.asm.sg).apply(null,arguments)},mh=t.dynCall_viiiijiiiii=function(){return(mh=t.dynCall_viiiijiiiii=t.asm.tg).apply(null,arguments)},_h=t.dynCall_viiiijiiii=function(){return(_h=t.dynCall_viiiijiiii=t.asm.ug).apply(null,arguments)},bh=t.dynCall_viiijii=function(){return(bh=t.dynCall_viiijii=t.asm.vg).apply(null,arguments)},gh=t.dynCall_viiiiiij=function(){return(gh=t.dynCall_viiiiiij=t.asm.wg).apply(null,arguments)},vh=t.dynCall_viiijjj=function(){return(vh=t.dynCall_viiijjj=t.asm.xg).apply(null,arguments)},jh=t.dynCall_iiijiii=function(){return(jh=t.dynCall_iiijiii=t.asm.yg).apply(null,arguments)},wh=t.dynCall_iiiiijii=function(){return(wh=t.dynCall_iiiiijii=t.asm.zg).apply(null,arguments)},Th=t.dynCall_viijiii=function(){return(Th=t.dynCall_viijiii=t.asm.Ag).apply(null,arguments)},Ih=t.dynCall_iiijiij=function(){return(Ih=t.dynCall_iiijiij=t.asm.Bg).apply(null,arguments)},Bh=t.dynCall_vijiii=function(){return(Bh=t.dynCall_vijiii=t.asm.Cg).apply(null,arguments)},Sh=t.dynCall_iijjiii=function(){return(Sh=t.dynCall_iijjiii=t.asm.Dg).apply(null,arguments)},Oh=t.dynCall_iijjiiii=function(){return(Oh=t.dynCall_iijjiiii=t.asm.Eg).apply(null,arguments)},Fh=t.dynCall_iiji=function(){return(Fh=t.dynCall_iiji=t.asm.Fg).apply(null,arguments)},Dh=t.dynCall_iijji=function(){return(Dh=t.dynCall_iijji=t.asm.Gg).apply(null,arguments)},Ah=t.dynCall_vijiiii=function(){return(Ah=t.dynCall_vijiiii=t.asm.Hg).apply(null,arguments)},Rh=t.dynCall_iijiiii=function(){return(Rh=t.dynCall_iijiiii=t.asm.Ig).apply(null,arguments)},Eh=t.dynCall_viiiji=function(){return(Eh=t.dynCall_viiiji=t.asm.Jg).apply(null,arguments)},Ch=t.dynCall_iiiijiii=function(){return(Ch=t.dynCall_iiiijiii=t.asm.Kg).apply(null,arguments)},Uh=t.dynCall_vijij=function(){return(Uh=t.dynCall_vijij=t.asm.Lg).apply(null,arguments)},Mh=t.dynCall_iiijjjj=function(){return(Mh=t.dynCall_iiijjjj=t.asm.Mg).apply(null,arguments)},kh=t.dynCall_jijj=function(){return(kh=t.dynCall_jijj=t.asm.Ng).apply(null,arguments)},Vh=t.dynCall_viiiijiiiiiiii=function(){return(Vh=t.dynCall_viiiijiiiiiiii=t.asm.Og).apply(null,arguments)},Ph=t.dynCall_ij=function(){return(Ph=t.dynCall_ij=t.asm.Pg).apply(null,arguments)},Nh=t.dynCall_jj=function(){return(Nh=t.dynCall_jj=t.asm.Qg).apply(null,arguments)},Lh=t.dynCall_jjj=function(){return(Lh=t.dynCall_jjj=t.asm.Rg).apply(null,arguments)},xh=t.dynCall_iji=function(){return(xh=t.dynCall_iji=t.asm.Sg).apply(null,arguments)},qh=t.dynCall_vjii=function(){return(qh=t.dynCall_vjii=t.asm.Tg).apply(null,arguments)},zh=t.dynCall_vjiiii=function(){return(zh=t.dynCall_vjiiii=t.asm.Ug).apply(null,arguments)},Wh=t.dynCall_viiiiijiii=function(){return(Wh=t.dynCall_viiiiijiii=t.asm.Vg).apply(null,arguments)},Hh=t.dynCall_vijji=function(){return(Hh=t.dynCall_vijji=t.asm.Wg).apply(null,arguments)},Yh=t.dynCall_iiijii=function(){return(Yh=t.dynCall_iiijii=t.asm.Xg).apply(null,arguments)},Gh=t.dynCall_jiij=function(){return(Gh=t.dynCall_jiij=t.asm.Yg).apply(null,arguments)},Kh=t.dynCall_iiiijjii=function(){return(Kh=t.dynCall_iiiijjii=t.asm.Zg).apply(null,arguments)},$h=t.dynCall_iiiiijji=function(){return($h=t.dynCall_iiiiijji=t.asm._g).apply(null,arguments)},Jh=t.dynCall_viiiiji=function(){return(Jh=t.dynCall_viiiiji=t.asm.$g).apply(null,arguments)},Qh=t.dynCall_viiijjii=function(){return(Qh=t.dynCall_viiijjii=t.asm.ah).apply(null,arguments)},Zh=t.dynCall_viiiijji=function(){return(Zh=t.dynCall_viiiijji=t.asm.bh).apply(null,arguments)},Xh=t.dynCall_viiiijjii=function(){return(Xh=t.dynCall_viiiijjii=t.asm.ch).apply(null,arguments)},ep=t.dynCall_viiiiijji=function(){return(ep=t.dynCall_viiiiijji=t.asm.dh).apply(null,arguments)},tp=t.dynCall_jiiiij=function(){return(tp=t.dynCall_jiiiij=t.asm.eh).apply(null,arguments)},rp=t.dynCall_iijiji=function(){return(rp=t.dynCall_iijiji=t.asm.fh).apply(null,arguments)},ip=t.dynCall_viiijijiji=function(){return(ip=t.dynCall_viiijijiji=t.asm.gh).apply(null,arguments)},np=t.dynCall_vjiiiji=function(){return(np=t.dynCall_vjiiiji=t.asm.hh).apply(null,arguments)},sp=t.dynCall_viiijjij=function(){return(sp=t.dynCall_viiijjij=t.asm.ih).apply(null,arguments)},op=t.dynCall_vijijjiij=function(){return(op=t.dynCall_vijijjiij=t.asm.jh).apply(null,arguments)},ap=t.dynCall_viijjij=function(){return(ap=t.dynCall_viijjij=t.asm.kh).apply(null,arguments)},up=t.dynCall_viiijjiij=function(){return(up=t.dynCall_viiijjiij=t.asm.lh).apply(null,arguments)},cp=t.dynCall_viiiijjjj=function(){return(cp=t.dynCall_viiiijjjj=t.asm.mh).apply(null,arguments)},lp=t.dynCall_jiijijii=function(){return(lp=t.dynCall_jiijijii=t.asm.nh).apply(null,arguments)},dp=t.dynCall_viijiiiiij=function(){return(dp=t.dynCall_viijiiiiij=t.asm.oh).apply(null,arguments)},fp=t.dynCall_viijiiiijj=function(){return(fp=t.dynCall_viijiiiijj=t.asm.ph).apply(null,arguments)},hp=t.dynCall_viiijiiiijjj=function(){return(hp=t.dynCall_viiijiiiijjj=t.asm.qh).apply(null,arguments)},pp=t.dynCall_viijijiiiijjj=function(){return(pp=t.dynCall_viijijiiiijjj=t.asm.rh).apply(null,arguments)},yp=t.dynCall_iijjjj=function(){return(yp=t.dynCall_iijjjj=t.asm.sh).apply(null,arguments)},mp=t.dynCall_iiijji=function(){return(mp=t.dynCall_iiijji=t.asm.th).apply(null,arguments)},_p=t.dynCall_vijijiiiijjj=function(){return(_p=t.dynCall_vijijiiiijjj=t.asm.uh).apply(null,arguments)},bp=t.dynCall_iiiiiiji=function(){return(bp=t.dynCall_iiiiiiji=t.asm.vh).apply(null,arguments)},gp=t.dynCall_jijijjij=function(){return(gp=t.dynCall_jijijjij=t.asm.wh).apply(null,arguments)},vp=t.dynCall_vijjij=function(){return(vp=t.dynCall_vijjij=t.asm.xh).apply(null,arguments)},jp=t.dynCall_viijjj=function(){return(jp=t.dynCall_viijjj=t.asm.yh).apply(null,arguments)},wp=t.dynCall_jiiijj=function(){return(wp=t.dynCall_jiiijj=t.asm.zh).apply(null,arguments)},Tp=t.dynCall_viijiiii=function(){return(Tp=t.dynCall_viijiiii=t.asm.Ah).apply(null,arguments)},Ip=t.dynCall_iiijij=function(){return(Ip=t.dynCall_iiijij=t.asm.Bh).apply(null,arguments)},Bp=t.dynCall_viiijiii=function(){return(Bp=t.dynCall_viiijiii=t.asm.Ch).apply(null,arguments)},Sp=t.dynCall_viijjji=function(){return(Sp=t.dynCall_viijjji=t.asm.Dh).apply(null,arguments)},Op=t.dynCall_iiiiiij=function(){return(Op=t.dynCall_iiiiiij=t.asm.Eh).apply(null,arguments)},Fp=t.dynCall_iiiiiiiiiiji=function(){return(Fp=t.dynCall_iiiiiiiiiiji=t.asm.Fh).apply(null,arguments)},Dp=t.dynCall_jiiiiiii=function(){return(Dp=t.dynCall_jiiiiiii=t.asm.Gh).apply(null,arguments)},Ap=t.dynCall_iidj=function(){return(Ap=t.dynCall_iidj=t.asm.Hh).apply(null,arguments)},Rp=t.dynCall_jiiijii=function(){return(Rp=t.dynCall_jiiijii=t.asm.Ih).apply(null,arguments)},Ep=t.dynCall_ijji=function(){return(Ep=t.dynCall_ijji=t.asm.Jh).apply(null,arguments)},Cp=t.dynCall_iiiiiiiij=function(){return(Cp=t.dynCall_iiiiiiiij=t.asm.Kh).apply(null,arguments)},Up=t.dynCall_iiiiiiij=function(){return(Up=t.dynCall_iiiiiiij=t.asm.Lh).apply(null,arguments)},Mp=t.dynCall_iiiiiiiiiiiij=function(){return(Mp=t.dynCall_iiiiiiiiiiiij=t.asm.Mh).apply(null,arguments)},kp=t.dynCall_iiiiiiiji=function(){return(kp=t.dynCall_iiiiiiiji=t.asm.Nh).apply(null,arguments)},Vp=t.dynCall_iiiidjj=function(){return(Vp=t.dynCall_iiiidjj=t.asm.Oh).apply(null,arguments)},Pp=t.dynCall_jiiiii=function(){return(Pp=t.dynCall_jiiiii=t.asm.Ph).apply(null,arguments)},Np=t.dynCall_jiiiiiijii=function(){return(Np=t.dynCall_jiiiiiijii=t.asm.Qh).apply(null,arguments)},Lp=t.dynCall_iiiijji=function(){return(Lp=t.dynCall_iiiijji=t.asm.Rh).apply(null,arguments)},xp=t.dynCall_jiiiiii=function(){return(xp=t.dynCall_jiiiiii=t.asm.Sh).apply(null,arguments)},qp=t.dynCall_jiiiijii=function(){return(qp=t.dynCall_jiiiijii=t.asm.Th).apply(null,arguments)},zp=t.dynCall_jiiiijiiiiiiii=function(){return(zp=t.dynCall_jiiiijiiiiiiii=t.asm.Uh).apply(null,arguments)},Wp=t.dynCall_jiiiiijiiii=function(){return(Wp=t.dynCall_jiiiiijiiii=t.asm.Vh).apply(null,arguments)},Hp=t.dynCall_jiiijiii=function(){return(Hp=t.dynCall_jiiijiii=t.asm.Wh).apply(null,arguments)},Yp=t.dynCall_fiijii=function(){return(Yp=t.dynCall_fiijii=t.asm.Xh).apply(null,arguments)},Gp=t.dynCall_diijii=function(){return(Gp=t.dynCall_diijii=t.asm.Yh).apply(null,arguments)},Kp=t.dynCall_vijijj=function(){return(Kp=t.dynCall_vijijj=t.asm.Zh).apply(null,arguments)},$p=t.dynCall_jf=function(){return($p=t.dynCall_jf=t.asm._h).apply(null,arguments)},Jp=t.dynCall_jd=function(){return(Jp=t.dynCall_jd=t.asm.$h).apply(null,arguments)},Qp=t.dynCall_jiijiiiii=function(){return(Qp=t.dynCall_jiijiiiii=t.asm.ai).apply(null,arguments)},Zp=t.dynCall_jiijiijiii=function(){return(Zp=t.dynCall_jiijiijiii=t.asm.bi).apply(null,arguments)},Xp=t.dynCall_jiijjiii=function(){return(Xp=t.dynCall_jiijjiii=t.asm.ci).apply(null,arguments)},ey=t.dynCall_iijiii=function(){return(ey=t.dynCall_iijiii=t.asm.di).apply(null,arguments)},ty=t.dynCall_jiiiiji=function(){return(ty=t.dynCall_jiiiiji=t.asm.ei).apply(null,arguments)},ry=t.dynCall_vijiijj=function(){return(ry=t.dynCall_vijiijj=t.asm.fi).apply(null,arguments)},iy=t.dynCall_vifiijj=function(){return(iy=t.dynCall_vifiijj=t.asm.gi).apply(null,arguments)},ny=t.dynCall_vidiijj=function(){return(ny=t.dynCall_vidiijj=t.asm.hi).apply(null,arguments)},sy=t.dynCall_viiiiij=function(){return(sy=t.dynCall_viiiiij=t.asm.ii).apply(null,arguments)},oy=t.dynCall_ijj=function(){return(oy=t.dynCall_ijj=t.asm.ji).apply(null,arguments)},ay=t.dynCall_ijjiii=function(){return(ay=t.dynCall_ijjiii=t.asm.ki).apply(null,arguments)},uy=t.dynCall_vijijjji=function(){return(uy=t.dynCall_vijijjji=t.asm.li).apply(null,arguments)},cy=t.dynCall_viiiiijjji=function(){return(cy=t.dynCall_viiiiijjji=t.asm.mi).apply(null,arguments)},ly=t.dynCall_viijijj=function(){return(ly=t.dynCall_viijijj=t.asm.ni).apply(null,arguments)},dy=t.dynCall_iiijiijj=function(){return(dy=t.dynCall_iiijiijj=t.asm.oi).apply(null,arguments)},fy=t.dynCall_viiijijjj=function(){return(fy=t.dynCall_viiijijjj=t.asm.pi).apply(null,arguments)},hy=t.dynCall_iijiijj=function(){return(hy=t.dynCall_iijiijj=t.asm.qi).apply(null,arguments)},py=t.dynCall_viiijjjji=function(){return(py=t.dynCall_viiijjjji=t.asm.ri).apply(null,arguments)},yy=t.dynCall_viiiijiii=function(){return(yy=t.dynCall_viiiijiii=t.asm.si).apply(null,arguments)},my=t.dynCall_iijii=function(){return(my=t.dynCall_iijii=t.asm.ti).apply(null,arguments)},_y=t.dynCall_vijjiiii=function(){return(_y=t.dynCall_vijjiiii=t.asm.ui).apply(null,arguments)},by=t.dynCall_vijijjiiiii=function(){return(by=t.dynCall_vijijjiiiii=t.asm.vi).apply(null,arguments)},gy=t.dynCall_vijjiiiii=function(){return(gy=t.dynCall_vijjiiiii=t.asm.wi).apply(null,arguments)},vy=t.dynCall_iiijjji=function(){return(vy=t.dynCall_iiijjji=t.asm.xi).apply(null,arguments)},jy=t.dynCall_iiiiijjj=function(){return(jy=t.dynCall_iiiiijjj=t.asm.yi).apply(null,arguments)},wy=t.dynCall_jijiiii=function(){return(wy=t.dynCall_jijiiii=t.asm.zi).apply(null,arguments)},Ty=t.dynCall_iiijjjii=function(){return(Ty=t.dynCall_iiijjjii=t.asm.Ai).apply(null,arguments)},Iy=t.dynCall_iiiiijjji=function(){return(Iy=t.dynCall_iiiiijjji=t.asm.Bi).apply(null,arguments)},By=t.dynCall_iiiijjj=function(){return(By=t.dynCall_iiiijjj=t.asm.Ci).apply(null,arguments)},Sy=t.dynCall_viijiji=function(){return(Sy=t.dynCall_viijiji=t.asm.Di).apply(null,arguments)};function iT(o){var a=w();try{H.get(o)()}catch(u){if(T(a),u!==u+0&&u!=="longjmp")throw u;I(1,0)}}function nT(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function sT(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function oT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function aT(o,a){var u=w();try{H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function uT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function cT(o,a,u,l,d,f){var h=w();try{return H.get(o)(a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function lT(o,a,u,l,d){var f=w();try{H.get(o)(a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function dT(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function fT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function hT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function pT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function yT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function mT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function _T(o){var a=w();try{return H.get(o)()}catch(u){if(T(a),u!==u+0&&u!=="longjmp")throw u;I(1,0)}}function bT(o,a,u,l,d,f,h,p){var y=w();try{return H.get(o)(a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function gT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function vT(o,a,u,l,d,f,h,p){var y=w();try{H.get(o)(a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function jT(o,a,u,l,d,f,h){var p=w();try{return H.get(o)(a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function wT(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function TT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function IT(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le){var ge=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R,N,le)}catch(Be){if(T(ge),Be!==Be+0&&Be!=="longjmp")throw Be;I(1,0)}}function BT(o,a,u,l,d,f,h){var p=w();try{H.get(o)(a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function ST(o,a,u,l,d,f){var h=w();try{return H.get(o)(a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function OT(o,a,u,l,d,f,h,p,y){var m=w();try{H.get(o)(a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function FT(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function DT(o,a,u,l,d,f){var h=w();try{H.get(o)(a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function AT(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be,M,G){var Ee=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be,M,G)}catch(_e){if(T(Ee),_e!==_e+0&&_e!=="longjmp")throw _e;I(1,0)}}function RT(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be,M,G,Ee){var _e=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be,M,G,Ee)}catch(dt){if(T(_e),dt!==dt+0&&dt!=="longjmp")throw dt;I(1,0)}}function ET(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function CT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function UT(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function MT(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le){var ge=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R,N,le)}catch(Be){if(T(ge),Be!==Be+0&&Be!=="longjmp")throw Be;I(1,0)}}function kT(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function VT(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function PT(o,a,u,l,d,f,h,p,y,m){var g=w();try{H.get(o)(a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function NT(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function LT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function xT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function qT(o,a,u,l,d,f,h,p,y){var m=w();try{return H.get(o)(a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function zT(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function WT(o,a,u,l,d,f){var h=w();try{H.get(o)(a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function HT(o,a,u,l,d,f,h,p,y,m,g,j,F,R){var N=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j,F,R)}catch(le){if(T(N),le!==le+0&&le!=="longjmp")throw le;I(1,0)}}function YT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function GT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function KT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function $T(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function JT(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function QT(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function ZT(o,a,u,l,d,f,h,p,y,m){var g=w();try{H.get(o)(a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function XT(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function e0(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function t0(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function r0(o,a,u,l,d){var f=w();try{return hf(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function i0(o,a,u,l,d,f,h){var p=w();try{wf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function n0(o,a){var u=w();try{return bf(o,a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function s0(o,a,u){var l=w();try{return hh(o,a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function o0(o,a,u,l,d,f,h){var p=w();try{mf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function a0(o,a,u,l,d,f,h){var p=w();try{return pf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function u0(o,a,u,l,d,f,h,p,y){var m=w();try{return yf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function c0(o,a,u,l){var d=w();try{return gf(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function l0(o,a,u,l,d,f){var h=w();try{If(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function d0(o){var a=w();try{return _f(o)}catch(u){if(T(a),u!==u+0&&u!=="longjmp")throw u;I(1,0)}}function f0(o,a,u,l,d){var f=w();try{vf(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function h0(o,a,u,l,d,f,h,p){var y=w();try{Bf(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function p0(o,a,u,l,d,f,h){var p=w();try{return Sf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function y0(o,a,u,l,d,f,h,p){var y=w();try{jf(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function m0(o,a,u,l){var d=w();try{Mf(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function _0(o,a,u,l,d){var f=w();try{Df(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function b0(o,a,u,l,d){var f=w();try{return Pf(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function g0(o,a,u,l,d,f){var h=w();try{return ch(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function v0(o,a,u,l,d,f,h,p){var y=w();try{return Ip(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function j0(o,a,u,l,d,f){var h=w();try{return dh(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function w0(o,a,u,l,d,f){var h=w();try{return Yf(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function T0(o,a,u,l,d,f,h,p){var y=w();try{return mp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function I0(o,a,u,l,d,f){var h=w();try{Of(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function B0(o,a,u,l,d,f,h,p){var y=w();try{return Af(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function S0(o,a,u,l,d,f,h,p){var y=w();try{Tf(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function O0(o,a,u,l,d,f,h,p,y){var m=w();try{Cf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function F0(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{Ef(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function D0(o,a,u,l,d,f,h,p,y,m){var g=w();try{Rf(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function A0(o,a,u,l,d,f,h,p,y){var m=w();try{uh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function R0(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{ip(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function E0(o,a,u,l,d,f,h,p,y){var m=w();try{sh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function C0(o,a,u,l,d,f,h,p,y){var m=w();try{return Uf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function U0(o,a,u,l,d,f,h){var p=w();try{zf(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function M0(o,a,u,l){var d=w();try{return kf(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function k0(o,a,u,l,d,f){var h=w();try{return Vf(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function V0(o,a,u,l,d,f,h,p,y){var m=w();try{qf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function P0(o,a,u,l,d,f,h){var p=w();try{$f(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function N0(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{xf(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function L0(o,a,u,l,d,f){var h=w();try{return nh(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function x0(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{Lf(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function q0(o,a,u,l,d,f,h,p,y){var m=w();try{return Hf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function z0(o,a,u,l,d,f,h,p,y){var m=w();try{Wf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function W0(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N){var le=w();try{return Nf(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N)}catch(ge){if(T(le),ge!==ge+0&&ge!=="longjmp")throw ge;I(1,0)}}function H0(o,a,u,l,d,f,h,p,y){var m=w();try{return Gf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function Y0(o,a,u,l,d,f,h,p){var y=w();try{return Kf(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function G0(o,a,u,l,d,f,h,p){var y=w();try{Ff(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function K0(o,a,u,l,d,f){var h=w();try{Jf(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function $0(o,a,u,l,d,f,h,p,y){var m=w();try{Qf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function J0(o,a,u,l,d,f){var h=w();try{Zf(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function Q0(o,a,u,l,d,f,h){var p=w();try{return eh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function Z0(o,a,u,l,d,f,h,p,y,m){var g=w();try{rh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function X0(o,a,u,l,d,f,h){var p=w();try{return th(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function eI(o,a,u,l,d,f,h,p,y,m){var g=w();try{ih(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function tI(o,a,u,l,d,f,h,p,y){var m=w();try{return Xf(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function rI(o,a,u,l,d,f,h){var p=w();try{Uh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function iI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return Mh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function nI(o,a,u,l,d,f,h,p){var y=w();try{return lh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function sI(o,a,u,l,d,f,h){var p=w();try{return fh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function oI(o,a,u,l){var d=w();try{return ph(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function aI(o,a,u,l,d,f,h){var p=w();try{Bh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function uI(o,a,u,l,d,f,h,p){var y=w();try{Ah(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function cI(o,a,u,l,d,f,h,p){var y=w();try{return Rh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function lI(o,a,u,l,d,f,h,p){var y=w();try{return jh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function dI(o,a,u,l,d,f,h,p,y){var m=w();try{return wh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function fI(o,a,u,l,d,f,h,p){var y=w();try{Th(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function hI(o,a,u,l,d,f,h,p,y){var m=w();try{return Ih(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function pI(o,a,u,l,d,f,h,p,y){var m=w();try{return Sh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function yI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Oh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function mI(o,a,u,l,d,f,h){var p=w();try{return Dh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function _I(o,a,u,l,d){var f=w();try{return Fh(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function bI(o,a,u,l,d,f,h,p,y){var m=w();try{gh(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function gI(o,a,u,l,d,f,h,p){var y=w();try{bh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function vI(o,a,u,l,d,f,h,p,y,m){var g=w();try{vh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function jI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return yh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function wI(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{mh(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function TI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{_h(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function II(o,a,u,l,d,f,h){var p=w();try{Eh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function BI(o,a,u,l,d,f,h,p,y){var m=w();try{return Ch(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function SI(o,a,u,l){var d=w();try{return xh(o,a,u,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;I(1,0)}}function OI(o,a,u,l,d){var f=w();try{return oy(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function FI(o,a,u,l,d,f,h,p){var y=w();try{return ay(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function DI(o,a,u){var l=w();try{return Ph(o,a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function AI(o,a,u){var l=w();try{return Nh(o,a,u)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;I(1,0)}}function RI(o,a,u,l,d){var f=w();try{return Gh(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function EI(o,a,u,l,d,f,h){var p=w();try{zh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function CI(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N){var le=w();try{Vh(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N)}catch(ge){if(T(le),ge!==ge+0&&ge!=="longjmp")throw ge;I(1,0)}}function UI(o,a,u,l,d){var f=w();try{return Lh(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function MI(o,a,u,l,d){var f=w();try{qh(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function kI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{Wh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function VI(o,a,u,l,d,f,h){var p=w();try{return Yh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function PI(o,a,u,l,d,f,h){var p=w();try{Hh(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function NI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Kh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function LI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return $h(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function xI(o,a,u,l,d,f,h,p){var y=w();try{Jh(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function qI(o,a,u,l,d,f,h,p,y,m){var g=w();try{Qh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function zI(o,a,u,l,d,f,h,p,y,m){var g=w();try{Zh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function WI(o,a,u,l,d,f,h){var p=w();try{return tp(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function HI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{Xh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function YI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{ep(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function GI(o,a,u,l,d,f,h,p){var y=w();try{return rp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function KI(o,a,u,l,d,f,h,p,y){var m=w();try{np(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function $I(o,a,u,l,d){var f=w();try{return ff(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function JI(o,a,u,l,d,f,h,p,y){var m=w();try{return bp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function QI(o,a,u,l,d,f,h,p,y,m){var g=w();try{ah(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function ZI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return yp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function XI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{sp(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function eB(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{op(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function tB(o,a,u,l,d,f,h,p,y,m){var g=w();try{ap(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function rB(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{cp(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function iB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return lp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function nB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{dp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function sB(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{fp(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function oB(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le){var ge=w();try{hp(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le)}catch(Be){if(T(ge),Be!==Be+0&&Be!=="longjmp")throw Be;I(1,0)}}function aB(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be){var M=w();try{pp(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge,Be)}catch(G){if(T(M),G!==G+0&&G!=="longjmp")throw G;I(1,0)}}function uB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{up(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function cB(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge){var Be=w();try{_p(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N,le,ge)}catch(M){if(T(Be),M!==M+0&&M!=="longjmp")throw M;I(1,0)}}function lB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return gp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function dB(o,a,u,l,d,f,h,p,y){var m=w();try{vp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function fB(o,a,u,l,d,f,h,p,y){var m=w();try{jp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function hB(o,a,u,l,d,f,h,p){var y=w();try{return wp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function pB(o,a,u,l,d,f,h,p,y){var m=w();try{Tp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function yB(o,a,u,l,d,f,h,p,y){var m=w();try{Bp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function mB(o,a,u,l,d,f){var h=w();try{return Pp(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function _B(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return Np(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function bB(o,a,u,l,d,f,h,p,y){var m=w();try{return Lp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function gB(o,a,u,l,d,f,h){var p=w();try{return xp(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function vB(o,a,u,l,d,f){var h=w();try{return Ep(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function jB(o,a,u,l,d,f,h,p,y,m){var g=w();try{Sp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function wB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Cp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function TB(o,a,u,l,d,f,h,p){var y=w();try{return Op(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function IB(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{return Fp(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function BB(o,a,u,l,d,f,h,p){var y=w();try{return Dp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function SB(o,a,u,l,d,f,h,p,y){var m=w();try{return Up(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function OB(o,a,u,l,d,f,h,p,y,m,g,j,F,R){var N=w();try{return Mp(o,a,u,l,d,f,h,p,y,m,g,j,F,R)}catch(le){if(T(N),le!==le+0&&le!=="longjmp")throw le;I(1,0)}}function FB(o,a,u,l,d){var f=w();try{return Ap(o,a,u,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;I(1,0)}}function DB(o,a,u,l,d,f,h,p){var y=w();try{return Rp(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function AB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return kp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function RB(o,a,u,l,d,f,h,p,y){var m=w();try{return Vp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function EB(o,a,u,l,d,f,h,p,y){var m=w();try{return qp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function CB(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N){var le=w();try{return zp(o,a,u,l,d,f,h,p,y,m,g,j,F,R,N)}catch(ge){if(T(le),ge!==ge+0&&ge!=="longjmp")throw ge;I(1,0)}}function UB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return Wp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function MB(o,a,u,l,d,f,h,p,y){var m=w();try{return Hp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function kB(o,a,u,l,d,f,h,p,y){var m=w();try{Kp(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function VB(o,a){var u=w();try{return $p(o,a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function PB(o,a){var u=w();try{return Jp(o,a)}catch(l){if(T(u),l!==l+0&&l!=="longjmp")throw l;I(1,0)}}function NB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Qp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function LB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return Zp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function xB(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Xp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function qB(o,a,u,l,d,f,h){var p=w();try{return Yp(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function zB(o,a,u,l,d,f,h){var p=w();try{return Gp(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function WB(o,a,u,l,d,f,h){var p=w();try{return ey(o,a,u,l,d,f,h)}catch(y){if(T(p),y!==y+0&&y!=="longjmp")throw y;I(1,0)}}function HB(o,a,u,l,d,f,h,p){var y=w();try{return ty(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function YB(o,a,u,l,d,f,h,p,y,m){var g=w();try{ry(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function GB(o,a,u,l,d,f,h,p,y){var m=w();try{iy(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function KB(o,a,u,l,d,f,h,p,y){var m=w();try{ny(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function $B(o,a,u,l,d,f,h,p){var y=w();try{sy(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function JB(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{uy(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function QB(o,a,u,l,d,f){var h=w();try{return kh(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function ZB(o,a,u,l,d,f,h,p,y,m){var g=w();try{ly(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function XB(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return dy(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function eS(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{cy(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function tS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{oh(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function rS(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{fy(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function iS(o,a,u,l,d,f,h,p,y,m){var g=w();try{return hy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function nS(o,a,u,l,d,f,h,p,y,m){var g=w();try{return vy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function sS(o,a,u,l,d,f,h,p,y,m,g,j,F){var R=w();try{py(o,a,u,l,d,f,h,p,y,m,g,j,F)}catch(N){if(T(R),N!==N+0&&N!=="longjmp")throw N;I(1,0)}}function oS(o,a,u,l,d,f,h,p,y,m){var g=w();try{yy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function aS(o,a,u,l,d,f){var h=w();try{return my(o,a,u,l,d,f)}catch(p){if(T(h),p!==p+0&&p!=="longjmp")throw p;I(1,0)}}function uS(o,a,u,l,d,f,h,p,y,m,g,j,F,R){var N=w();try{by(o,a,u,l,d,f,h,p,y,m,g,j,F,R)}catch(le){if(T(N),le!==le+0&&le!=="longjmp")throw le;I(1,0)}}function cS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{gy(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function lS(o,a,u,l,d,f,h,p,y,m){var g=w();try{_y(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}function dS(o,a,u,l,d,f,h,p,y){var m=w();try{Sy(o,a,u,l,d,f,h,p,y)}catch(g){if(T(m),g!==g+0&&g!=="longjmp")throw g;I(1,0)}}function fS(o,a,u,l,d,f,h,p){var y=w();try{return wy(o,a,u,l,d,f,h,p)}catch(m){if(T(y),m!==m+0&&m!=="longjmp")throw m;I(1,0)}}function hS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return Ty(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function pS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return jy(o,a,u,l,d,f,h,p,y,m,g)}catch(F){if(T(j),F!==F+0&&F!=="longjmp")throw F;I(1,0)}}function yS(o,a,u,l,d,f,h,p,y,m,g,j){var F=w();try{return Iy(o,a,u,l,d,f,h,p,y,m,g,j)}catch(R){if(T(F),R!==R+0&&R!=="longjmp")throw R;I(1,0)}}function mS(o,a,u,l,d,f,h,p,y,m){var g=w();try{return By(o,a,u,l,d,f,h,p,y,m)}catch(j){if(T(g),j!==j+0&&j!=="longjmp")throw j;I(1,0)}}t.ccall=Rv;var to;function fu(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var _S=!1;ts=function o(){to||hu(),to||(ts=o)};function bS(o){var a=t._main,u=0,l=0;try{var d=a(u,l);gS(d,!0)}catch(h){if(h instanceof fu||h=="unwind")return;var f=h;h&&typeof h=="object"&&h.stack&&(f=[h,h.stack]),Vr("exception thrown: "+f),S(1,h)}finally{_S=!0}}function hu(o){if(o=o||v,ji>0||(Hv(),ji>0))return;function a(){to||(to=!0,t.calledRun=!0,!nu&&(Yv(),Gv(),i(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),Oy&&bS(o),$v()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),a()},1)):a()}t.run=hu;function gS(o,a){Kd=o,of()||(Kv(),t.onExit&&t.onExit(o),nu=!0),S(o,new fu(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var Oy=!0;return t.noInitialRun&&(Oy=!1),hu(),e.ready}}(),wv=_C;var xt=Dy(Pd()),xd=class{constructor(e,t,i){this.bindings=e;this.conn=t;this.header=i;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=e.length==0,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},qd=class{constructor(e,t){this._bindings=e,this._conn=t}get handle(){return this._conn}close(){this._bindings.disconnect(this._conn)}runQuery(e){let t=this._bindings.runQuery(this._conn,e),i=xt.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),xt.Table.from(i)}sendQuery(e){let t=this._bindings.sendQuery(this._conn,e),i=new xd(this._bindings,this._conn,t),n=xt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}createPreparedStatement(e){return this._bindings.createPreparedStatement(this._conn,e)}closePreparedStatement(e){this._bindings.closePreparedStatement(this._conn,e)}runPreparedStatement(e,t){let i=this._bindings.runPreparedStatement(this._conn,e,t),n=xt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isFile()),xt.Table.from(n)}sendPreparedStatement(e,t){let i=this._bindings.sendPreparedStatement(this._conn,e,t),n=new xd(this._bindings,this._conn,i),s=xt.RecordBatchReader.from(n);return console.assert(s.isSync()),console.assert(s.isStream()),s}insertArrowTable(e,t){e.schema.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually"),this.insertArrowBatches(e.schema,e.chunks,t)}insertArrowBatches(e,t,i){e.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");let n=new xt.AsyncByteQueue,s=new xt.RecordBatchStreamWriter().reset(n,e);s.writeAll(t),s.close();let c=s.toUint8Array(!0);this._bindings.insertArrowFromIPCStream(this._conn,c,i)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}};var Oe;(function(e){e[e.SUCCESS=0]="SUCCESS"})(Oe||(Oe={}));function bC(){let r=new TextDecoder;return e=>(typeof SharedArrayBuffer!="undefined"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),r.decode(e))}var gC=bC();function Je(r,e){console.error(e),r.ccall("duckdb_web_fail_with",null,["string"],[e])}function Xn(r,e,t){let i=r.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function Te(r,e,t){return gC(r.HEAPU8.subarray(e,e+t))}var at;(function(i){i[i.BUFFER=0]="BUFFER",i[i.NATIVE=1]="NATIVE",i[i.HTTP=3]="HTTP"})(at||(at={}));function Re(r,e,t,i){let n=r.stackSave(),s=r.stackAlloc(3*8);t.unshift("number"),i.unshift(s),r.ccall(e,null,t,i);let c=r.HEAPF64[(s>>3)+0],v=r.HEAPF64[(s>>3)+1],B=r.HEAPF64[(s>>3)+2];return r.stackRestore(n),[c,v,B]}function Qe(r){r.ccall("duckdb_web_clear_response",null,[],[])}var zd=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),i=new Uint8Array(new ArrayBuffer(e.byteLength));i.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=i}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};var Iv;(function(s){s[s.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",s[s.WASM_THREADS=2]="WASM_THREADS",s[s.WASM_SIMD=4]="WASM_SIMD",s[s.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",s[s.EMIT_BIGINT=16]="EMIT_BIGINT"})(Iv||(Iv={}));var Wd=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this._logger=e,this._runtime=t}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(){return this._instance!=null?this:(this._initPromise!=null&&await this._initPromise,this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this)}open(e){let[t,i,n]=Re(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));Qe(this.mod)}reset(){let[e,t,i]=Re(this.mod,"duckdb_web_reset",[],[]);if(e!==Oe.SUCCESS)throw new Error(Te(this.mod,t,i));Qe(this.mod)}getVersion(){let[e,t,i]=Re(this.mod,"duckdb_web_get_version",[],[]);if(e!==Oe.SUCCESS)throw new Error(Te(this.mod,t,i));let n=Te(this.mod,t,i);return Qe(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,i,n]=Re(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));let s=Te(this.mod,i,n);return Qe(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new qd(this,e)}disconnect(e){this.mod.ccall("duckdb_web_disconnect",null,["number"],[e])}runQuery(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));let c=Xn(this.mod,n,s);return Qe(this.mod),c}sendQuery(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));let c=Xn(this.mod,n,s);return Qe(this.mod),c}fetchQueryResults(e){let[t,i,n]=Re(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));let s=Xn(this.mod,i,n);return Qe(this.mod),s}createPreparedStatement(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_prepared_statement_create",["number","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));return Qe(this.mod),n}closePreparedStatement(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_prepared_statement_close",["number","number"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));Qe(this.mod)}runPreparedStatement(e,t,i){let[n,s,c]=Re(this.mod,"duckdb_web_prepared_statement_run",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==Oe.SUCCESS)throw new Error(Te(this.mod,s,c));let v=Xn(this.mod,s,c);return Qe(this.mod),v}sendPreparedStatement(e,t,i){let[n,s,c]=Re(this.mod,"duckdb_web_prepared_statement_send",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==Oe.SUCCESS)throw new Error(Te(this.mod,s,c));let v=Xn(this.mod,s,c);return Qe(this.mod),v}insertArrowFromIPCStream(e,t,i){let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let c=i?JSON.stringify(i):"",[v,B,S]=Re(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,c]);if(v!==Oe.SUCCESS)throw new Error(Te(this.mod,B,S))}insertCSVFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let S in i.columns)i.columnsFlat.push(Zn(S,i.columns[S]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[c,v,B]=Re(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(c!==Oe.SUCCESS)throw new Error(Te(this.mod,v,B))}insertJSONFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let S in i.columns)i.columnsFlat.push(Zn(S,i.columns[S]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[c,v,B]=Re(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(c!==Oe.SUCCESS)throw new Error(Te(this.mod,v,B))}finishInsert(e,t){}registerFileURL(e,t){t===void 0&&(t=e);let[i,n,s]=Re(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));Qe(this.mod)}registerFileBuffer(e,t){let i=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(i,i+t.length).set(t);let[s,c,v]=Re(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,i,t.length]);if(s!==Oe.SUCCESS)throw new Error(Te(this.mod,c,v));Qe(this.mod)}registerFileHandle(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,e]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));if(Qe(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let c of this.pthread.runningWorkers)c.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let c of this.pthread.unusedWorkers)c.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){return this.mod.ccall("duckdb_web_fs_drop_file","boolean",["string"],[e])}dropFiles(){this.mod.ccall("duckdb_web_fs_drop_files",null,[],[])}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s));Qe(this.mod)}copyFileToBuffer(e){let[t,i,n]=Re(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));let s=this.mod.HEAPU8.subarray(i,i+n),c=new Uint8Array(s.length);return c.set(s),Qe(this.mod),c}collectFileStatistics(e,t){let[i,n,s]=Re(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(i!==Oe.SUCCESS)throw new Error(Te(this.mod,n,s))}exportFileStatistics(e){let[t,i,n]=Re(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==Oe.SUCCESS)throw new Error(Te(this.mod,i,n));return new zd(this.mod.HEAPU8.subarray(i,i+n))}};var Hd=class extends Wd{constructor(e,t,i,n){super(e,t);this.mainModuleURL=i,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${t} path=${e}`)}instantiateWasm(e,t){return globalThis.DUCKDB_RUNTIME=this._runtime,WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(fetch(this.mainModuleURL),e).then(i=>{t(i.instance,i.module)}):fetch(this.mainModuleURL).then(i=>i.arrayBuffer()).then(i=>WebAssembly.instantiate(i,e).then(n=>{t(n.instance,n.module)})).catch(i=>{console.error("Failed to instantiate WASM:",i)}),[]}};var Yd=class extends Hd{constructor(e,t,i,n=null){super(e,t,i,n)}instantiateImpl(e){return wv({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var ut={fileInfoCache:new Map,getFileInfo(r,e){try{let t=ut.fileInfoCache.get(e);if(t)return t;let[i,n,s]=Re(r,"duckdb_web_fs_get_file_info",["number"],[e]);if(i!==Oe.SUCCESS)throw new Error(Te(r,n,s));let c=Te(r,n,s);Qe(r);let v=JSON.parse(c);if(v==null)return null;let B={...v,blob:null};return ut.fileInfoCache.set(e,B),B}catch(t){return Je(r,t.toString()),null}},testPlatformFeature:(r,e)=>{switch(e){case 1:return typeof BigInt64Array!="undefined";default:return console.warn(`test for unknown feature: ${e}`),!1}},openFile:(r,e)=>{try{ut.fileInfoCache.delete(e);let t=ut.getFileInfo(r,e);switch(t?.data_protocol){case at.HTTP:{let i=new XMLHttpRequest;i.open("HEAD",t.data_url,!1),i.setRequestHeader("Range","bytes=0-"),i.send(null);let n=!1;if(i.status==206?n=!0:i.status==200&&(n=i.getResponseHeader("Accept-Ranges")==="bytes"),!n)return Je(r,`File does not support range requests: ${t.file_name}`),0;break}case at.NATIVE:{if(!ut._files?.get(t.file_name))return Je(r,`No handle available for file: ${t.file_name}`),0;break}}}catch(t){Je(r,t.toString())}return 0},glob:(r,e,t)=>{try{let i=Te(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let s=!1;if(n.status==206)s=!0;else if(n.status==200)s=n.getResponseHeader("Accept-Ranges")==="bytes";else{Je(r,`HEAD request failed: ${i}`);return}if(!s){Je(r,`File does not support range requests: ${i}`);return}r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(i){return Je(r,i.toString()),0}},checkFile:(r,e,t)=>{try{let i=Te(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let s=!1;if(n.status==206)s=!0;else if(n.status==200)s=n.getResponseHeader("Accept-Ranges")==="bytes";else return!1;return!!s}}catch{return!1}return!1},syncFile:(r,e)=>{},closeFile:(r,e)=>{let t=ut.getFileInfo(r,e);switch(ut.fileInfoCache.delete(e),t?.data_protocol){case at.HTTP:break;case at.NATIVE:return}},truncateFile:(r,e,t)=>{switch(ut.getFileInfo(r,e)?.data_protocol){case at.HTTP:Je(r,"Cannot truncate a http file");return;case at.NATIVE:Je(r,"truncateFile not implemented");return}return 0},readFile(r,e,t,i,n){try{let s=ut.getFileInfo(r,e);switch(s?.data_protocol){case at.HTTP:{if(!s.data_url)return Je(r,`Missing data URL for file ${e}`),0;let c=new XMLHttpRequest;if(c.open("GET",s.data_url,!1),c.responseType="arraybuffer",c.setRequestHeader("Range",`bytes=${n}-${n+i-1}`),c.send(null),c.status==206||c.status==200&&i==c.response.byteLength&&n==0){let v=new Uint8Array(c.response,0,Math.min(c.response.byteLength,i));return r.HEAPU8.set(v,t),v.byteLength}else return c.status==200?(Je(r,`Range request for ${s.data_url} did not return a partial response: ${c.status} "${c.statusText}"`),0):(Je(r,`Range request for ${s.data_url} did returned non-success status: ${c.status} "${c.statusText}"`),0)}case at.NATIVE:{let c=ut._files?.get(s.file_name);if(!c)return Je(r,`No handle available for file: ${s.file_name}`),0;let v=c.slice(n,n+i),B=new Uint8Array(new FileReaderSync().readAsArrayBuffer(v));return r.HEAPU8.set(B,t),B.byteLength}}return 0}catch(s){return Je(r,s.toString()),0}},writeFile:(r,e,t,i,n)=>{switch(ut.getFileInfo(r,e)?.data_protocol){case at.HTTP:return Je(r,"Cannot write to HTTP file"),0;case at.NATIVE:return Je(r,"writefile not implemented"),0}return 0},getFileSize:(r,e)=>{try{let t=ut.getFileInfo(r,e);switch(t?.data_protocol){case at.NATIVE:{let i=ut._files?.get(t.file_name);return i?i.size:(Je(r,`No handle available for file: ${t.file_name}`),0)}case at.HTTP:{if(!t.data_url)throw new Error(`Missing data URL for file ${e}`);let i=new XMLHttpRequest;if(i.open("HEAD",t.data_url,!1),i.send(null),i.status==200){let n=i.getResponseHeader("Content-Length");if(n)return parseInt(n);throw Error(`HEAD ${t.data_url} does not contain the HTTP header: Content-Length`)}else throw Error(`HEAD ${t.data_url} returned non-success status: ${i.status} "${i.statusText}"`)}}return 0}catch(t){return Je(r,t.toString()),0}},getLastFileModificationTime:(r,e)=>{let t=ut.getFileInfo(r,e);switch(t?.data_protocol){case at.NATIVE:{if(!ut._files?.get(t.file_name))throw Error(`No handle available for file: ${t.file_name}`);return 0}case at.HTTP:return new Date().getTime()}return 0},checkDirectory:(r,e,t)=>!1,createDirectory:(r,e,t)=>{},removeDirectory:(r,e,t)=>{},listDirectoryEntries:(r,e,t)=>!1,moveFile:(r,e,t,i,n)=>{},removeFile:(r,e,t)=>{}};var Bv=class extends Nd{postMessage(e,t){globalThis.postMessage(e,t)}async instantiate(e,t){return await new Yd(this,ut,e,t).instantiate()}};function Sv(){let r=new Bv;globalThis.onmessage=async e=>{await r.onMessage(e.data)}}Sv();return vC;})();
19
19
  //# sourceMappingURL=duckdb-browser-async.worker.js.map