@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 25.3 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
let t;const e=new Array(128).fill(void 0);function _(t){return e[t]}e.push(void 0,null,!0,!1);let n=e.length;function r(t){n===e.length&&e.push(e.length+1);const _=n;return n=e[_],e[_]=t,_}function i(e,_){try{return e.apply(this,_)}catch(n){t.__wbindgen_exn_store(r(n))}}const o="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&o.decode();let s=null;function a(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(t.memory.buffer)),s}function g(t,e){return t>>>=0,o.decode(a().subarray(t,t+e))}let c=0;const d="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},u="function"==typeof d.encodeInto?function(t,e){return d.encodeInto(t,e)}:function(t,e){const _=d.encode(t);return e.set(_),{read:t.length,written:_.length}};function w(t,e,_){if(void 0===_){const _=d.encode(t),n=e(_.length,1)>>>0;return a().subarray(n,n+_.length).set(_),c=_.length,n}let n=t.length,r=e(n,1)>>>0;const i=a();let o=0;for(;o<n;o++){const e=t.charCodeAt(o);if(e>127)break;i[r+o]=e}if(o!==n){0!==o&&(t=t.slice(o)),r=_(r,n,n=o+3*t.length,1)>>>0;const e=a().subarray(r+o,r+n);o+=u(t,e).written,r=_(r,n,o,1)>>>0}return c=o,r}let l=null;function b(){return(null===l||!0===l.buffer.detached||void 0===l.buffer.detached&&l.buffer!==t.memory.buffer)&&(l=new DataView(t.memory.buffer)),l}function p(t){return null==t}function f(t){t<132||(e[t]=n,n=t)}function y(t){const e=_(t);return f(t),e}const h="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>{t.__wbindgen_export_4.get(e.dtor)(e.a,e.b)}));function m(e,_,n,r){const i={a:e,b:_,cnt:1,dtor:n},o=(...e)=>{i.cnt++;const _=i.a;i.a=0;try{return r(_,i.b,...e)}finally{0===--i.cnt?(t.__wbindgen_export_4.get(i.dtor)(_,i.b),h.unregister(i)):i.a=_}};return o.original=i,h.register(o,i,i),o}function k(t,e){return t>>>=0,a().subarray(t/1,t/1+e)}function I(){t.enableTracing()}let F=null;function v(){return null!==F&&0!==F.byteLength||(F=new Float64Array(t.memory.buffer)),F}function T(t,e){return t>>>=0,v().subarray(t/8,t/8+e)}let x=null;function z(){return null!==x&&0!==x.byteLength||(x=new Uint32Array(t.memory.buffer)),x}function q(t,e){return t>>>=0,z().subarray(t/4,t/4+e)}function R(t,e){t>>>=0;const _=b(),n=[];for(let r=t;r<t+4*e;r+=4)n.push(y(_.getUint32(r,!0)));return n}let O=null;function M(){return null!==O&&0!==O.byteLength||(O=new Uint16Array(t.memory.buffer)),O}function A(t,e){const _=e(2*t.length,2)>>>0;return M().set(t,_/2),c=t.length,_}function j(e,_,n){const i=w(e,t.__wbindgen_malloc,t.__wbindgen_realloc),o=c;return y(t.readMetadata(i,o,r(_),r(n)))}function W(t,e){const _=e(1*t.length,1)>>>0;return a().set(t,_/1),c=t.length,_}function C(e){const _=W(e,t.__wbindgen_malloc),n=c;return y(t.readMetadataFromFile(_,n))}function L(t,e){if(!(t instanceof e))throw new Error(`expected instance of ${e.name}`)}function B(e,_,n,i,o){const s=w(e,t.__wbindgen_malloc,t.__wbindgen_realloc),a=c;L(i,N);var g=i.__destroy_into_raw();let d=0;p(o)||(L(o,J),d=o.__destroy_into_raw());return y(t.readFile(s,a,r(_),r(n),g,d))}function S(e,_){let n=0;p(e)||(L(e,J),n=e.__destroy_into_raw());const r=W(_,t.__wbindgen_malloc),i=c;return y(t.readFileFromBinary(n,r,i))}function U(e,_,n){t._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h94c9328f486d7193(e,_,r(n))}function D(e,_,n,i){t.wasm_bindgen__convert__closures__invoke2_mut__ha20fd0c25f0fd1fd(e,_,r(n),r(i))}const E=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"}),P=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_columndescriptor_free(e>>>0,1)));class V{static __wrap(t){t>>>=0;const e=Object.create(V.prototype);return e.__wbg_ptr=t,G.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_columndescriptor_free(e,0)}name(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_name(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}physicalType(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_physicalType(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}logicalType(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_logicalType(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=g(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}encodings(){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_encodings(r,this.__wbg_ptr);var e=b().getInt32(r+0,!0),_=b().getInt32(r+4,!0),n=R(e,_).slice();return t.__wbindgen_free(e,4*_,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}pageEncodings(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_pageEncodings(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=R(e,_).slice(),t.__wbindgen_free(e,4*_,4)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}numValues(){return t.columndescriptor_numValues(this.__wbg_ptr)}compression(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_compression(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}compressedSize(){return t.columndescriptor_compressedSize(this.__wbg_ptr)}uncompressedSize(){return t.columndescriptor_uncompressedSize(this.__wbg_ptr)}nullCount(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_nullCount(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getBigInt64(n+8,!0);return 0===e?void 0:_}finally{t.__wbindgen_add_to_stack_pointer(16)}}distinctCount(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_distinctCount(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getBigInt64(n+8,!0);return 0===e?void 0:_}finally{t.__wbindgen_add_to_stack_pointer(16)}}minValue(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_minValue(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=k(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}maxValue(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_maxValue(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=k(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_fieldmetadata_free(e>>>0,1)));class Y{static __wrap(t){t>>>=0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,X.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_fieldmetadata_free(e,0)}get name(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.fieldmetadata_name(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}get index(){return t.fieldmetadata_index(this.__wbg_ptr)}get type(){const e=t.fieldmetadata_esri_type(this.__wbg_ptr);return P[e]}get physicalType(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.fieldmetadata_physical_type(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=g(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}get logicalType(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.fieldmetadata_logical_type(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=g(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}}const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_filemetadata_free(e>>>0,1)));class N{static __wrap(t){t>>>=0;const e=Object.create(N.prototype);return e.__wbg_ptr=t,H.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_filemetadata_free(e,0)}version(){return t.filemetadata_version(this.__wbg_ptr)}numRows(){return t.filemetadata_numRows(this.__wbg_ptr)>>>0}numFields(){return t.filemetadata_numFields(this.__wbg_ptr)>>>0}numColumns(){return t.filemetadata_numColumns(this.__wbg_ptr)>>>0}createdBy(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.filemetadata_createdBy(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=g(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}keyValueMetadata(e){try{const r=t.__wbindgen_add_to_stack_pointer(-16),i=w(e,t.__wbindgen_malloc,t.__wbindgen_realloc),o=c;t.filemetadata_keyValueMetadata(r,this.__wbg_ptr,i,o);var _=b().getInt32(r+0,!0),n=b().getInt32(r+4,!0);let s;return 0!==_&&(s=g(_,n).slice(),t.__wbindgen_free(_,1*n,1)),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}keys(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.filemetadata_keys(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=R(e,_).slice(),t.__wbindgen_free(e,4*_,4)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}getFieldIndex(e){const _=w(e,t.__wbindgen_malloc,t.__wbindgen_realloc),n=c,r=t.filemetadata_getFieldIndex(this.__wbg_ptr,_,n);return 16777215===r?void 0:r}getFieldByIndex(e){const _=t.filemetadata_getFieldByIndex(this.__wbg_ptr,e);return 0===_?void 0:Y.__wrap(_)}getFields(){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.filemetadata_getFields(r,this.__wbg_ptr);var e=b().getInt32(r+0,!0),_=b().getInt32(r+4,!0),n=R(e,_).slice();return t.__wbindgen_free(e,4*_,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_geometryinfodescriptor_free(e>>>0,1)));class J{static __wrap(t){t>>>=0;const e=Object.create(J.prototype);return e.__wbg_ptr=t,$.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_geometryinfodescriptor_free(e,0)}get geometryType(){const e=t.__wbg_get_geometryinfodescriptor_geometryType(this.__wbg_ptr);return 4===e?void 0:e}set geometryType(e){t.__wbg_set_geometryinfodescriptor_geometryType(this.__wbg_ptr,p(e)?4:e)}get wkbIndex(){const e=t.__wbg_get_geometryinfodescriptor_wkbIndex(this.__wbg_ptr);return 16777215===e?void 0:e}set wkbIndex(e){t.__wbg_set_geometryinfodescriptor_wkbIndex(this.__wbg_ptr,p(e)?16777215:e)}get lngIndex(){const e=t.__wbg_get_geometryinfodescriptor_lngIndex(this.__wbg_ptr);return 16777215===e?void 0:e}set lngIndex(e){t.__wbg_set_geometryinfodescriptor_lngIndex(this.__wbg_ptr,p(e)?16777215:e)}get latIndex(){const e=t.__wbg_get_geometryinfodescriptor_latIndex(this.__wbg_ptr);return 16777215===e?void 0:e}set latIndex(e){t.__wbg_set_geometryinfodescriptor_latIndex(this.__wbg_ptr,p(e)?16777215:e)}get xIndex(){const e=t.__wbg_get_geometryinfodescriptor_xIndex(this.__wbg_ptr);return 16777215===e?void 0:e}set xIndex(e){t.__wbg_set_geometryinfodescriptor_xIndex(this.__wbg_ptr,p(e)?16777215:e)}get inWkid(){const e=t.__wbg_get_geometryinfodescriptor_inWkid(this.__wbg_ptr);return 4294967297===e?void 0:e}set inWkid(e){t.__wbg_set_geometryinfodescriptor_inWkid(this.__wbg_ptr,p(e)?4294967297:e>>>0)}get outWkid(){const e=t.__wbg_get_geometryinfodescriptor_outWkid(this.__wbg_ptr);return 4294967297===e?void 0:e}set outWkid(e){t.__wbg_set_geometryinfodescriptor_outWkid(this.__wbg_ptr,p(e)?4294967297:e>>>0)}static new(){const e=t.geometryinfodescriptor_new();return J.__wrap(e)}setMultiscaleInfo(e){L(e,Q);var _=e.__destroy_into_raw();t.geometryinfodescriptor_setMultiscaleInfo(this.__wbg_ptr,_)}}const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_multiscaleinfo_free(e>>>0,1)));class Q{static __wrap(t){t>>>=0;const e=Object.create(Q.prototype);return e.__wbg_ptr=t,K.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_multiscaleinfo_free(e,0)}static new(){const e=t.multiscaleinfo_new();return Q.__wrap(e)}push(e,_,n,r,i){t.multiscaleinfo_push(this.__wbg_ptr,e,_,n,r,i)}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_pageencodingdescriptor_free(e>>>0,1)));class tt{static __wrap(t){t>>>=0;const e=Object.create(tt.prototype);return e.__wbg_ptr=t,Z.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_pageencodingdescriptor_free(e,0)}pageType(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.pageencodingdescriptor_pageType(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}encoding(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.pageencodingdescriptor_encoding(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}count(){return t.pageencodingdescriptor_count(this.__wbg_ptr)}}const et="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_parquetchunk_free(e>>>0,1)));class _t{static __wrap(t){t>>>=0;const e=Object.create(_t.prototype);return e.__wbg_ptr=t,et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_parquetchunk_free(e,0)}size(){return t.parquetchunk_size(this.__wbg_ptr)>>>0}hasField(e){return 0!==t.parquetchunk_hasField(this.__wbg_ptr,e)}readX(e){return t.parquetchunk_readX(this.__wbg_ptr,e)}readY(e){return t.parquetchunk_readY(this.__wbg_ptr,e)}readCoords(e){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.parquetchunk_readCoords(r,this.__wbg_ptr,e);var _=b().getInt32(r+0,!0),n=b().getInt32(r+4,!0);let i;return 0!==_&&(i=T(_,n).slice(),t.__wbindgen_free(_,8*n,8)),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}readLengths(e){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.parquetchunk_readLengths(r,this.__wbg_ptr,e);var _=b().getInt32(r+0,!0),n=b().getInt32(r+4,!0);let i;return 0!==_&&(i=q(_,n).slice(),t.__wbindgen_free(_,4*n,4)),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}readGeometryTransformed(e,_,n,r,i){const o=t.parquetchunk_readGeometryTransformed(this.__wbg_ptr,e,_,n,r,i);return 0===o?void 0:ot.__wrap(o)}boundsXMin(e){return t.parquetchunk_boundsXMin(this.__wbg_ptr,e)}boundsYMin(e){return t.parquetchunk_boundsYMin(this.__wbg_ptr,e)}boundsXMax(e){return t.parquetchunk_boundsXMax(this.__wbg_ptr,e)}boundsYMax(e){return t.parquetchunk_boundsYMax(this.__wbg_ptr,e)}readAttribute(e,_){return y(t.parquetchunk_readAttribute(this.__wbg_ptr,e,_))}}const nt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_parquetfile_free(e>>>0,1)));class rt{static __wrap(t){t>>>=0;const e=Object.create(rt.prototype);return e.__wbg_ptr=t,nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_parquetfile_free(e,0)}metadata(){const e=t.parquetfile_metadata(this.__wbg_ptr);return N.__wrap(e)}rowGroups(){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.parquetfile_rowGroups(r,this.__wbg_ptr);var e=b().getInt32(r+0,!0),_=b().getInt32(r+4,!0),n=R(e,_).slice();return t.__wbindgen_free(e,4*_,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}readChunksWithCallback(e,_){const n=A(e,t.__wbindgen_malloc),i=c;return y(t.parquetfile_readChunksWithCallback(this.__wbg_ptr,n,i,r(_)))}readFirstChunk(e){const _=A(e,t.__wbindgen_malloc),n=c;return y(t.parquetfile_readFirstChunk(this.__wbg_ptr,_,n))}readAllChunks(e){const _=A(e,t.__wbindgen_malloc),n=c;return y(t.parquetfile_readAllChunks(this.__wbg_ptr,_,n))}updateChunks(e){const _=A(e,t.__wbindgen_malloc),n=c;return y(t.parquetfile_updateChunks(this.__wbg_ptr,_,n))}}const it="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_quantizedgeometry_free(e>>>0,1)));class ot{static __wrap(t){t>>>=0;const e=Object.create(ot.prototype);return e.__wbg_ptr=t,it.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,it.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_quantizedgeometry_free(e,0)}readCoordsUnsafe(){return y(t.quantizedgeometry_readCoordsUnsafe(this.__wbg_ptr))}readLengthsUnsafe(){return y(t.quantizedgeometry_readLengthsUnsafe(this.__wbg_ptr))}}const st="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_rangeproviderjs_free(e>>>0,1)));class at{static __wrap(t){t>>>=0;const e=Object.create(at.prototype);return e.__wbg_ptr=t,st.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,st.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_rangeproviderjs_free(e,0)}static new(e,_){const n=t.rangeproviderjs_new(r(e),r(_));return at.__wrap(n)}static withFetch(){const e=t.rangeproviderjs_withFetch();return at.__wrap(e)}}const gt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_rowgroup_free(e>>>0,1)));class ct{static __wrap(t){t>>>=0;const e=Object.create(ct.prototype);return e.__wbg_ptr=t,gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_rowgroup_free(e,0)}columns(){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.rowgroup_columns(r,this.__wbg_ptr);var e=b().getInt32(r+0,!0),_=b().getInt32(r+4,!0),n=R(e,_).slice();return t.__wbindgen_free(e,4*_,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}}async function dt(t,e){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,e)}catch(_){if("application/wasm"==t.headers.get("Content-Type"))throw _;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_)}const n=await t.arrayBuffer();return await WebAssembly.instantiate(n,e)}{const _=await WebAssembly.instantiate(t,e);return _ instanceof WebAssembly.Instance?{instance:_,module:t}:_}}function ut(){const e={wbg:{}};return e.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return r(_(t).buffer)},e.wbg.__wbg_call_672a4d21634d4a24=function(){return i((function(t,e){return r(_(t).call(_(e)))}),arguments)},e.wbg.__wbg_call_7cccdd69e0791ae2=function(){return i((function(t,e,n){return r(_(t).call(_(e),_(n)))}),arguments)},e.wbg.__wbg_call_b8adc8b1d0a0d8eb=function(){return i((function(t,e,n,i,o){return r(_(t).call(_(e),_(n),_(i),_(o)))}),arguments)},e.wbg.__wbg_columndescriptor_new=function(t){return r(V.__wrap(t))},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,_){let n,r;try{n=e,r=_,console.error(g(e,_))}finally{t.__wbindgen_free(n,r,1)}},e.wbg.__wbg_fieldmetadata_new=function(t){return r(Y.__wrap(t))},e.wbg.__wbg_filemetadata_new=function(t){return r(N.__wrap(t))},e.wbg.__wbg_length_a446193dc22c12f8=function(t){return _(t).length},e.wbg.__wbg_new_23a2665fac83c611=function(t,e){try{var _={a:t,b:e},n=(t,e)=>{const n=_.a;_.a=0;try{return D(n,_.b,t,e)}finally{_.a=n}};return r(new Promise(n))}finally{_.a=_.b=0}},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return r(new Error)},e.wbg.__wbg_new_a12002a7f91c75be=function(t){return r(new Uint8Array(_(t)))},e.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,e){return r(new Function(g(t,e)))},e.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212=function(t,e,n){return r(new Uint32Array(_(t),e>>>0,n>>>0))},e.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff=function(t,e,n){return r(new Int16Array(_(t),e>>>0,n>>>0))},e.wbg.__wbg_pageencodingdescriptor_new=function(t){return r(tt.__wrap(t))},e.wbg.__wbg_parquetchunk_new=function(t){return r(_t.__wrap(t))},e.wbg.__wbg_parquetfile_new=function(t){return r(rt.__wrap(t))},e.wbg.__wbg_queueMicrotask_98e746b9f850fe3d=function(t){queueMicrotask(_(t))},e.wbg.__wbg_queueMicrotask_c847cc8372bec908=function(t){return r(_(t).queueMicrotask)},e.wbg.__wbg_resolve_4851785c9c5f573d=function(t){return r(Promise.resolve(_(t)))},e.wbg.__wbg_rowgroup_new=function(t){return r(ct.__wrap(t))},e.wbg.__wbg_set_65595bdd868b3009=function(t,e,n){_(t).set(_(e),n>>>0)},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const r=w(_(n).stack,t.__wbindgen_malloc,t.__wbindgen_realloc),i=c;b().setInt32(e+4,i,!0),b().setInt32(e+0,r,!0)},e.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t="undefined"==typeof global?null:global;return p(t)?0:r(t)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t="undefined"==typeof globalThis?null:globalThis;return p(t)?0:r(t)},e.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t="undefined"==typeof self?null:self;return p(t)?0:r(t)},e.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t="undefined"==typeof window?null:window;return p(t)?0:r(t)},e.wbg.__wbg_then_44b73946d2fb3e7d=function(t,e){return r(_(t).then(_(e)))},e.wbg.__wbg_then_48b406749878a531=function(t,e,n){return r(_(t).then(_(e),_(n)))},e.wbg.__wbg_valueOf_fdbb54fcdfe33477=function(t){return _(t).valueOf()},e.wbg.__wbindgen_array_new=function(){return r([])},e.wbg.__wbindgen_array_push=function(t,e){_(t).push(y(e))},e.wbg.__wbindgen_cb_drop=function(t){const e=y(t).original;if(1==e.cnt--)return e.a=0,!0;return!1},e.wbg.__wbindgen_closure_wrapper1479=function(t,e,_){return r(m(t,e,79,U))},e.wbg.__wbindgen_is_function=function(t){return"function"==typeof _(t)},e.wbg.__wbindgen_is_undefined=function(t){return void 0===_(t)},e.wbg.__wbindgen_memory=function(){return r(t.memory)},e.wbg.__wbindgen_number_new=function(t){return r(t)},e.wbg.__wbindgen_object_clone_ref=function(t){return r(_(t))},e.wbg.__wbindgen_object_drop_ref=function(t){y(t)},e.wbg.__wbindgen_string_new=function(t,e){return r(g(t,e))},e.wbg.__wbindgen_throw=function(t,e){throw new Error(g(t,e))},e.wbg.__wbindgen_uint8_array_new=function(e,_){var n=k(e,_).slice();t.__wbindgen_free(e,1*_,1);return r(n)},e}function wt(e,_){return t=e.exports,bt.__wbindgen_wasm_module=_,l=null,F=null,O=null,x=null,s=null,t.__wbindgen_start(),t}function lt(e){if(void 0!==t)return t;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const _=ut();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return wt(new WebAssembly.Instance(e,_),e)}async function bt(e){if(void 0!==t)return t;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const _=ut();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await dt(await e,_);return wt(n,r)}export{V as ColumnDescriptor,Y as FieldMetadata,N as FileMetadata,J as GeometryInfoDescriptor,E as GeometryType,Q as MultiScaleInfo,tt as PageEncodingDescriptor,_t as ParquetChunk,rt as ParquetFile,ot as QuantizedGeometry,at as RangeProviderJs,ct as RowGroup,bt as default,I as enableTracing,lt as initSync,B as readFile,S as readFileFromBinary,j as readMetadata,C as readMetadataFromFile};